Hi lalitha,
You can try this way. I think it should solve the problem.
Data looks like this
Y X1
1 1
2 1
3 0
4 1
5 1
6 1
anal.data <- read.table("file.txt", header=T)\
attach(anal.data)
## objective is to change the value 1 in column X1 to Gamma
anal.data$X1 <- replace(anal.data$X1,anal.data$X1==1,"Gamma")
anal.data
this should replace all the "1"'s with Gamma. Hope this helps.
Sincerely
"However bad life may seem, there is always something you can do and succeed
at. While there is life, there is hope." Stephen Hawking
Anup Menon Nandialath
*********************************************************
http://www.soundclick.com/bands/7/tailgunner_music.htm *
*********************************************************
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.