Re: [R] using foumula to calculate a column in dataframe

2014-07-28 Thread Jeff Newmiller
On Mon, 28 Jul 2014, Jeff Newmiller wrote: On Mon, 28 Jul 2014, Pavneet Arora wrote: Hello All, I need to calculate a column (Vupper) using a formula, but I am not sure how to. It will be easier to explain with an example. Again this is my dataset: dput(nd) structure(list(week = c(1, 2, 3, 4,

Re: [R] using foumula to calculate a column in dataframe

2014-07-28 Thread Jeff Newmiller
On Mon, 28 Jul 2014, Pavneet Arora wrote: Hello All, I need to calculate a column (Vupper) using a formula, but I am not sure how to. It will be easier to explain with an example. Again this is my dataset: dput(nd) structure(list(week = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1