python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How would one create variables using lapply?
I have so many subdatasets in the list and so listing each dataset would be cumbersome and very tedious. Is there a way to achieve this using either lapply or purrr? Thanks in advance.
library(dplyr)
...

Moses
Votes: 0
Answers: 5
Apply a function to multiple columns of a SparkDataFrame, at once
In basic R, this is how I apply a function to multiple columns at once, using data.table :
d <- data.table(V1 = rep(1:2, 4:3), V2 = c(1, 2, 4, 5, 2, 3, 4), V3 = 1:7, V4 = sample(letters, 7))
Cols &...
Discus23
Votes: 0
Answers: 1
How create any metric descriptive statistics by group for all variables in R
Suppose i have these data
glucose=
structure(list(GR = c(1L, 2L, 1L, 2L, 1L, 2L, 2L, 2L, 1L, 1L,
2L, 1L, 2L, 2L, 1L, 1L, 1L, 2L, 2L, 1L), glucose.1 = c(5.5, 4.77,
5.52, 4.97, 4.4, 5.54, 4.85, 5.5, 5...
psysky
Votes: 0
Answers: 0
sapply over vector for each element in a list
I have a large list that includes extracted terms from a corpus.
mylist <- list(c("flower"),
c("plant", "animal", "cats", "doggy&quo...

ayeh
Votes: 0
Answers: 1