Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v <- c(1, 2, 3, 4, 5)
- result <- sapply(v , function(num) num + 1)
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement