Skip to content
Prev 302647 / 398506 Next

Re-grouping data in R

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