cull | R Documentation |
This function takes a set of vectors, data frames, or matrices and removes the last values/rows so that they all have a length/number of rows equal to the shortest among them.
cull(...)
... |
Vectors, matrices, or data frames. |
A list with one element per object supplied as an argument to the function.
a <- 1:10
b <- 1:20
c <- letters
cull(a, b, c)
x <- data.frame(x=1:10, y=letters[1:10])
y <- data.frame(x=1:26, y=letters)
cull(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.