View source: R/31_pre_processing_functions.R
validate_and_convert_data | R Documentation |
Checks whether the input is a matrix or data frame, and converts it to a matrix if valid.
validate_and_convert_data(data, name)
data |
A matrix or data frame. |
name |
A string used in error messages to identify the variable name. |
A numeric matrix.
validate_and_convert_data(data.frame(x = 1:3, y = 4:6), "example_data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.