powered by
list.sample(.data, size, replace = FALSE, weight = 1, prob = NULL)
list
integer
logical
prob
NULL
vector
x <- lapply(1:3,function(i) { c(a=i,b=i^2)}) df <- lapply(1:3,function(i) { data.frame(a=i,b=i^2,c=letters[i])}) list.rbind(x) list.rbind(df)
Run the code above in your browser using DataLab