[R] Help using order with data.frame
Bert Gunter
gunter.berton at gene.com
Sun Mar 16 06:09:56 CET 2014
Indeed you are -- the syntax for selecting columns of a data frame (or
components from a list).
Advice: Read "An Introduction to R" or online tutorial of your choice
to learn proper syntax.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch
On Sat, Mar 15, 2014 at 9:21 PM, Jason Rupert <jasonkrupert at yahoo.com> wrote:
> Evidently, I'm overlooking something simple. I'm trying to used order with data.frame.
>
>
> For example:
>
> t = data.frame(x = c(11,12,14), y = c(19,20,21), z = c(10,9,7))
> t[order(z), ]
> Error in order(z) : object 'z' not found
>
> Thank you for any insights and advice provided.
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list