View source: R/convertTo.R View source: R/archive/data.R View source: R/archive/color_data.R
convertTo | R Documentation |
Converts an input object (vector, matrix or data frame) to an output asccording to the format in out
.
Variable, Row and column names are set, if possible as well as a attribute title
.
convertTo(x, coln, rown, title, out = c("data.frame", "matrix", "vector"))
x |
vector, matrix, or data frame: input |
coln |
character: column names if possible |
rown |
character: row names if possible |
title |
character: for title attribute |
out |
character: either |
the desired output object
str(convertTo(pi, "Col1", "Row1", "Title", out='data.frame')) str(convertTo(pi, "Col1", "Row1", "Title", out='matrix')) str(convertTo(pi, "Col1", "Row1", "Title", out='vector'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.