I have a vector with 663 elements. I would like to create random samples from the vector equal to the length of the vector (i.e. 663). Said differently, I would like to take random samples from all possible orderings of the 663 elements. My goal would be to create a data frame of the N random samples or randomly selected permutations.
perms <- as.data.frame(permn(1:663))
samples <- replicate(100, table(sample(1:663, 663,replace = F)))
a <- 1:663 #vector of 663 elements perms <- as.data.frame(replicate(100, sample(a)))