Re: [R] Copying a dataframe

2013-03-07 Thread John Kane
With the orginal data.frame being df1 df2 <- data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1)))df2 <- data.frame(matrix(rep(NA, nrow(df1)*ncol(df1)), nrow = nrow(df1))) John Kane Kingston ON Canada > -Original Message- > From: sahanasrinivasan...@gmail.com > Sent: Th

Re: [R] Copying a dataframe

2013-03-07 Thread jim holtman
If you are just copying, why not: opdf <- tab On Thu, Mar 7, 2013 at 12:23 PM, Sahana Srinivasan < sahanasrinivasan...@gmail.com> wrote: > Hi, I am trying to create a data frame using the dimensions of another data > frame that I have input. This is the code I am using: > > tab is the data fra