Why does this code:
sapply(c(1, 3, 4, 0), print)
Returns:
[1] 1
[1] 3
[1] 4
[1] 0
[1] 1 3 4 0
Why it returns the input too?
See Question&Answers more detail:osWhy does this code:
sapply(c(1, 3, 4, 0), print)
Returns:
[1] 1
[1] 3
[1] 4
[1] 0
[1] 1 3 4 0
Why it returns the input too?
See Question&Answers more detail:os