View source: R/create_dataset_summary_table.R
get_first_element_class | R Documentation |
Retrieve the class of the first element of a vector
get_first_element_class(input_vector)
input_vector |
A vector whose first element's class is to be retrieved. |
The class of the first element of the input vector.
# Get the class of the first element in a numeric vector
get_first_element_class(c(1, 2, 3)) # Returns "numeric"
# Get the class of the first element in a character vector
get_first_element_class(c("apple", "banana", "cherry")) # Returns "character"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.