Hi folks, I have a simple question that I just can't solve. I'm trying to merge two columns in my data frame.
> sessionInfo() R version 2.13.0 (2011-04-13) Platform: i686-pc-linux-gnu (32-bit) > head(dat) Year Month Number 2002 Jan 0 2002 Feb 0 2002 March 0 2002 April 1 2002 May 0 2002 June 0 I tried to do the following, but it doesn't work. dat$Time <- merge(dat[,1], dat[,2]) head(dat) Help, Abraham. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.