View source: R/DesignContrast.R
dataFrameTwoVecs | R Documentation |
Build a data.frame from two vectors of potential different lengths
dataFrameTwoVecs(vec1, vec2, col.names = c("Vec1", "Vec2"))
vec1 |
A vector |
vec2 |
Another vector |
col.names |
A character vector of length 2 giving column names of the output The shorter vector of the two are extended to the same length by appending empty strings. |
A data.frame
of two columns. The row count matches the longer vector
dataFrameTwoVecs(LETTERS[1:5], letters[2:9])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.