Section 34 Data Management: Apply Functions on Columns

  • Create another column Weight_g by multiplying Weight_kg column with 1000.

  • Create a column with centered Age data as c_Age by subtracting mean(Age) from the Age_yr column.