Hi
generated DF is not what you expect it is
> set.seed(1)
> DF <- matrix(sample(1:9,9),ncol=10,nrow=9)
> DF
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,]333333333 3
[2,]999999999 9
[3,]5
There are some problems with your example. Your code does not produce anything
like your example data frame because you draw only 9 values without
replacement. Your code produces 10 columns, each with the same permutation of
the values 1:9.
Then your desired output does not make sense in terms
I have a data frame each with 10 variables of integer data for various
attributes about each row of data, and I need to know the highest 5
variables related to each of
row in this data frame and output that to a new data frame. In addition to
the 5 highest variable names, I also need to
3 matches
Mail list logo