Re: [R] Re-grouping data in R

2012-08-07 Thread Rui Barradas
Hello, Inline. Em 07-08-2012 19:56, Abraham Mathew escreveu: I have a data frame with a column of values that I want to bucket (group) into specific levels. str(dat)'data.frame': 3678 obs. of 39 variables: $ id : int 23 76 129 156 166 180 200 214 296 344 ...

Re: [R] Re-grouping data in R

2012-08-07 Thread David L Carlson
Your first command erases all the data in that column: dat$final_purchase_amount<- NA so when you refer to it later, it consists of only NAs. -- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 >