elena1234

How to create a new column

Apr 6th, 2022 (edited)
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.12 KB | None | 0 0
  1. #Ex 9: Create a new column called performance, which is calculated by hp/wt.
  2. df$performance <- df$hp / df$wt
  3. print(df)
  4.  
Add Comment
Please, Sign In to add comment