dsort | R Documentation |
Sort data according to columns in data frame
dsort(data, x, ..., decreasing = FALSE, return.order = FALSE)
data |
Data frame |
x |
variable to order by |
... |
additional variables to order by |
decreasing |
sort order (vector of length x) |
return.order |
return order |
data.frame
data(data="hubble",package="lava") dsort(hubble, "sigma") dsort(hubble, hubble$sigma,"v") dsort(hubble,~sigma+v) dsort(hubble,~sigma-v) ## with direct asignment dsort(hubble) <- ~sigma-v
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.