Re: [R] data frame question

From: Stefan Grosse <>
Date: Thu, 14 Feb 2008 18:27:07 +0100

On Thursday 14 February 2008 06:12:23 pm joseph wrote:

jo> I have a data frame df1 in which I would like to multiply col1
jo> by 2.
jo> The way I did it does not allow me to keep the old data
jo> frame.
jo> How can I do this and be able to create a new data frame
jo> df2?
jo> > df1$col1=df1$col1*2


Stefan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 14 Feb 2008 - 17:36:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Feb 2008 - 18:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive