powered by
sample
x
transactions
sample(x, size, replace = FALSE, prob = NULL) ## S3 method for class 'itemMatrix': sample(x, size, replace = FALSE, prob = NULL)
itemMatrix-class
data("Adult_transactions") ## sample with replacement s <- sample(Adult_transactions, 500, replace = TRUE) s
Run the code above in your browser using DataLab