Skip to content
Prev 67830 / 398506 Next

String in data frame

Please read `An Introduction to R': R does not have `strings' or 
`namelists' whereas it does have `lists' but d$num is not one.

To communicate, you need a common language with your readers.  You are not 
speaking R, and your `examples' are not R output.

I suspect d$num is a numeric vector and d$name is a factor.  Please look 
up those concepts and the help for c(), noting that `NA' is a logical 
vector.  In particular you need to understand

      The default method combines its arguments to form a vector. All
      arguments are coerced to a common type which is the type of the
      returned value.
On Fri, 15 Apr 2005, Cuichang Zhao wrote:

            

        
PLEASE do as we ask (and not sent HTML mail).