R/utils.R
to_n.Rd
Replicate entries of a vector if required. Note that this will fail if x is not of length n or is not a scalar.
x
n
to_n(x, n)
(numeric) vector of numbers we want to analyze.
numeric
(count) how many entries we need.
count
Just input x if it has the required length already or is NULL, otherwise if it is scalar the replicated version of it with n entries.
NULL