Skip to content
Prev 319323 / 398506 Next

extract values

Hello,

I don't understand. Your object is a vector, with a dim attribute, so 
x[, 1] is meaningless. And all the values are less than 1820:

any(x > 1820)  # FALSE

Given the names attribute of your data, is it the values of x 
corresponding to names greater than 1820? If so, try

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


Hope this helps,

Rui Barradas

Em 12-03-2013 17:50, catalin roibu escreveu: