[R] identical(length(x), 1) returns FALSE, but print(length(x)) is 1, length(x)==1 is TRUE, and is.integer(lenght(x)) is TRUE????

Corrado ct529 at york.ac.uk
Tue Sep 15 19:04:24 CEST 2009


On Tuesday 15 September 2009 17:28:02 Gavin Simpson wrote:
> [note you don't give us your x so I'm making this up - This is what
> Duncan was going on about in an earlier thread, give us something we can
> just paste into R and it works]

Dear Gavin,

I do not understand what more information! Take any vector of length 1, for 
example x<-1. Plus all the command that where in my previous email ....

What is the logic behind  

identical(length(x),1)

being false?

Regards
-- 
Corrado Topi

Global Climate Change & Biodiversity Indicators
Area 18,Department of Biology
University of York, York, YO10 5YW, UK
Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk




More information about the R-help mailing list