[R] Finding the name "vector"

Allan Engelhardt allane at cybaea.com
Tue Mar 15 10:35:14 CET 2011


On 15/03/11 05:17, Joshua Wiley wrote:
> Hi Laura,
>
> ?is.vector

Consider methods::is if you might ever use attributes:

x<- 1:10
is.vector(x)
# [1] TRUE
comment(x)<- "Mine!"
is.vector(x)
# [1] FALSE
is(x, "vector")
# [1] TRUE


Allan



More information about the R-help mailing list