> F1 <- factor("a")
> F2 <- factor("b")
> factor(c(as.character(F1), as.character(F2)))
[1] a b
Levels: a bhope this helps. spencer graves
Corey Moffet wrote:
try:
l <- factor(c('a','b')) l
At 12:15 PM 2/5/2004 -0600, Svetlana Eden wrote:
The funciton c() works differently for strings and for factors:With best wishes and kind regards I am
For strings:
l = c('a', 'b')[1] "a" "b"
l
For factors:
l = c(factor('a'), factor('b'))[1] 1 1
l
What should be the right technique for merging factors?
-- Svetlana Eden Biostatistician II School of Medicine Department of Biostatistics Vanderbilt University
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Sincerely,
Corey A. Moffet Rangeland Scientist
USDA-ARS Northwest Watershed Research Center 800 Park Blvd, Plaza IV, Suite 105 Boise, ID 83712-7716
Voice: (208) 422-0718 FAX: (208) 334-1502
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
