Dear List,
I have a newbie question. I have read in a data.frame as follows:
data = read.table(table.txt, header = T)
data
X1 X2 X3 X4
A AB AC AB AC
B AB AC AA AB
C AA AB AA AB
D AA AB AB AC
E AB AA AA AB
F AB AA AB AC
B AB AC AB AA
I would like to replace AA values by BB in column X2. I
Thanks a lot Gabor, that was very helpful. All sorted now!
Best
David
Your columns are factors, not character strings. Use as.is = TRUE as
an argument to read.table. Also its a bit dangerous to use T
although
not wrong. Its safer to use TRUE.
On 9/7/07, [EMAIL PROTECTED] [EMAIL