View source: R/character_data.R View source: R/archive/data.R View source: R/archive/color_data.R View source: R/archive/character_data.R
| character_data | R Documentation |
Converts a matrix or data frame into a character vector, matrix or data frame. If na.action is a character then
all NAs are replaced by na.action (default: na.action="NA"). If na.action is a function then the function will be
applied to the result.
character_data(
x,
select = NULL,
out = c("data.frame", "matrix", "vector"),
na.action = "NA",
...,
title = NULL
)
x |
vector, matrix or data frame |
select |
vector: indicating columns to select (default: |
out |
output as |
na.action |
function or character: indicates what should happen when the data contain NAs |
... |
unused |
title |
character: title attribute (default |
the desired R object
character_data(iris) character_data(iris, out="matrix") character_data(iris, out="vector")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.