seq()
is called with the one unnamed numerical argument data of length 1, as a result, it returns an integer sequence from 1 to the value of the argument. In a question seq(4)
is the command returns the integers 1,2,3,4
. While seq_along(4)
produces the vector of indices of a given factor.