Re: [R] re placing in character column

2009-10-28 Thread David Winsemius
On Oct 28, 2009, at 7:06 PM, David Winsemius wrote: On Oct 28, 2009, at 6:22 PM, Mark W. Miller wrote: I am guessing that your is not really an NA_character, but rather a factor with a level of "". See if str(s1) confirms my suspicions. df1 <- read.table(textConnection(" Firstname

Re: [R] re placing in character column

2009-10-28 Thread David Winsemius
On Oct 28, 2009, at 6:22 PM, Mark W. Miller wrote: I am guessing that your is not really an NA_character, but rather a factor with a level of "". See if str(s1) confirms my suspicions. df1 <- read.table(textConnection(" Firstname Lastname Age + 1Bob Smith 20 + 2 John

Re: [R] re placing in character column

2009-10-28 Thread Mark W. Miller
I am guessing that your is not really an NA_character, but rather a factor with a level of "". See if str(s1) confirms my suspicions. > df1 <- read.table(textConnection(" Firstname Lastname Age + 1Bob Smith 20 + 2 John Clark NA + 3 Andy 40"), header=T)