Re: [R] String in data frame

2005-04-15 Thread Prof Brian Ripley
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$

RE: [R] String in data frame

2005-04-15 Thread Bill.Venables
str <- as.character(d$name) should do the trick. (damn... my shift key just broke as well...) bill venables. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cuichang Zhao Sent: Saturday, 16 April 2005 2:00 PM To: r-help@stat.math.ethz.ch Subject: [R] St