0 votes
in R Basics by
What is the difference between seq(4) and seq_along(4)?

1 Answer

0 votes
by

 seq(4) produces a vector from 1 to 4 (c(1, 2, 3, 4)), whereas seq_along(4) produces a vector of length(4), or 1 (c(1)).

...