A vector or a list of a given length, filled cyclically by the given material
Fills an object by the given material
cycFill(data, size)
data |
the material |
size |
the desired length |
The class of the output is the same as the class of the input.
The output object is filled cylically by the given material u.
Depending on the class of the given material,
the class of the result is vector or list.
The length of the result equals by the value of the size parameter.
Used in the code of polyMgen.a,
u <- c(4, 1, 3, 2) cycFill(u, 2) cycFill(u, 4) cycFill(u, 6) cycFill(u, 11) cycFill(u, 12) u <- as.list(c(4, 1, 3, 2)) cycFill(u, 2) cycFill(u, 4) cycFill(u, 6) cycFill(u, 11) cycFill(u, 12) # clean up # rm(u)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.