Description Usage Arguments Details Value Author(s) Examples
Sorts the data frame by a column index in the given order
1 | sortData(x,i,b)
|
x |
A data frame |
i |
A numeric column index of the data frame to sort it by |
b |
User specified sorting order, ascending (FALSE) or descending (TRUE) |
defaults are used: i = 1, b = FALSE, if not specified
sorted data by the input column index
Bhakti Dwivedi & Jeanne Kowalski
1 2 3 4 | samples <- c("s1","s2","s3","s4","s5","s6","s7","s8","s9","s10")
zscores <- c(3.83,2.70,2.67,2.31,1.70,1.25,-0.42,-1.01,-2.43,-3.37)
my.data = data.frame(samples,zscores)
sortData(my.data,2,TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.