Description Usage Arguments Value See Also Examples
Captures scalar column metadata (row values) as column attributes. Excises rows with non-missing values of meta
, converting column values to column attributes. Afterward, column classes are re-optimized using default behavior of read.table
. It is an error if meta
is not in names(x)
.
1 2 3 |
x |
data.frame |
meta |
column in x giving names of attributes |
as.is |
passed to |
attributes |
preserve non-standard attributes (ignores names, row.names, class) |
na.rm |
if TRUE, NA values (presumably structural) will not be assigned as column attributes. |
... |
ignored arguments |
data.frame
Other pack: pack
,
unpack.data.frame
, unpack
Other methods: axislabel.data.frame
,
boxplot.data.frame
,
categorical.data.frame
,
corsplom.data.frame
,
densplot.data.frame
,
metaplot.data.frame
,
plot.metaplot_gtable
,
print.metaplot_gtable
,
scatter.data.frame
,
unpack.data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | foo <- data.frame(head(Theoph))
attr(foo$Subject, 'label') <- 'subject identifier'
attr(foo$Wt, 'label') <- 'weight'
attr(foo$Dose, 'label') <- 'dose'
attr(foo$Time, 'label') <- 'time'
attr(foo$conc, 'label') <- 'concentration'
attr(foo$Subject, 'guide') <- '////'
attr(foo$Wt, 'guide') <- 'kg'
attr(foo$Dose, 'guide') <- 'mg/kg'
attr(foo$Time, 'guide') <- 'h'
attr(foo$conc, 'guide') <- 'mg/L'
unpack(foo, pos = 1)
unpack(foo, pos = 2)
unpack(foo, pos = 3)
unpack(foo, pos = 4)
bar <- unpack(foo)
pack(bar)
attributes(pack(bar)$Subject)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.