Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. integers <- c(1, 2, 3, 4, 5)
  2. squares <- integers ^ 2 # A function applied to a vector is applied to each item in the vector
  3. # Expected result:
  4. # 1 4 9 16 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement