[R] vector problems
    Christopher Fonnesbeck 
    chris at fonnesbeck.net
       
    Mon Nov  5 16:01:40 CET 2001
    
    
  
I dont get it:
> is.vector(c(mydf[1]))
[1] TRUE
> unique(c(mydf[1]))
Error in unique(c(mydf[1])) : unique() applies only to vectors
> 
Is it a vector or not? This stuff is driving me nuts. I'm simply trying
to convince R that my grouping vector is actually a vector so that
unique will work. Its just a vector of numbers, so why shouldnt it work?
-- 
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
Christopher J. Fonnesbeck 
Ph.D. Student
Georgia Co-operative Wildlife Unit
University of Georgia 
Athens, GA 30602
email: chris at fonnesbeck.net
       cfonnesb at stat.uga.edu
Yahoo: fonnesbeck_chris
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list