.convert_to_data.frame | R Documentation |
StudySpecification
is a data.frame
.Helper function for StudySpecification
replacers to ensure
replacement is a properly named data.frame
.convert_to_data.frame(value, specification, type)
value |
A |
specification |
A |
type |
One of "t", "f", "u" or "b" |
When given a replacement set of values (e.g vector
or matrix
),
this ensures that the replacement is a named data.frame
.
Input vector
: Since it cannot be named, a vector can only be used to
replace an existing component. If the existing component has more than 1
column, uses the name of the first column.
Input matrix
or data.frame
: If unnamed and replacing existing
component, must have no more columns than original component. (If less
columns, uses the name of the first few columns.) If named, can replace any
number of columns.
data.frame
containing named column(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.