[R] Concatenating variables

From: Doran, Harold <HDoran_at_air.org>
Date: Thu 05 Aug 2004 - 06:17:01 EST


Hi all:  

I'm having difficulty with something I believe is very simple, but I'm stuck. I have a large data frame that took days to clean and prepare. All I now need to do is concatenate three variables into a single column. For example, I have tenn$up, tenn$down, and tenn$stable which all have values of 1 or 0. I simply want to put all three columns together to create a pattern (e.g., 111, 101, 001).  

I tried c(tenn$up,tenn$down,tenn$stable)  

But this isn't working. Thanks for any help offered.  

Harold    

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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 Received on Thu Aug 05 06:25:40 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:41:57 EST