Skip to content
Back to formatted view

Raw Message

Message-ID: <1307461809314-3580000.post@n4.nabble.com>
Date: 2011-06-07T15:50:09Z
From: William Armstrong
Subject: Sorting a data frame with values of different lengths
In-Reply-To: <BANLkTi=w=7hqgP6TTNw1T_R-YCnxs28RFQ@mail.gmail.com>

Thanks for catching that, Sarah.

It seems like the problem was that I was using the c() function to combine
terms (including W) that I was adding to a data frame.

This caused R to convert the numeric W to a character string.

I fixed this by using data.frame() and then rbind() instead of c() and
rbind(), which is now giving me the results I was expecting.

Thank you very much for your help.

Billy

--
View this message in context: http://r.789695.n4.nabble.com/Sorting-a-data-frame-with-values-of-different-lengths-tp3579653p3580000.html
Sent from the R help mailing list archive at Nabble.com.