Skip to content
Prev 319316 / 398506 Next

extract values

Data in x is never > 1820:
Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
 0.8465  1.2890  1.5660  1.5710  1.8050  3.4340

And your object is a vector: trying to extract the first column with
x[,1] is meaningless, because x has no dimensions.
NULL

It looks to me as if you want to extract values of x where the *names*
are > 1820, but the names are character, so maybe:

x1 <- x[as.numeric(names(x)) > 1820]

is what you're looking for.

Sarah
On Tue, Mar 12, 2013 at 1:50 PM, catalin roibu <catalinroibu at gmail.com> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org