Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integers <- c(1, 2, 3, 4, 5)
- squares <- integers ^ 2 # A function applied to a vector is applied to each item in the vector
- # Expected result:
- # 1 4 9 16 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement