Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cycFill

A vector or a list of a given length, filled cyclically by the given material


Description

Fills an object by the given material

Usage

cycFill(data, size)

Arguments

data

the material

size

the desired length

Details

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.

Value

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.

See Also

Used in the code of polyMgen.a,

Examples

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)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.