Description Usage Arguments Details Value Author(s) References See Also Examples
inner
is generic. inner.data.frame
imputes NA
for
cells within columns that represent extreme quantiles. By default, the
‘inner’ 95 percent of each column is preserved.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
data.frame |
prob |
the fraction of data to preserve |
tail |
the fraction of data to ignore at each extreme |
lo |
the probability below which data will be ignored |
hi |
the probability above which data will be ignored |
include.lowest |
whether to preserve values at probability equal to |
include.highest |
whether to preserve values at probability equal to |
preserve |
vector of names for columns to preserve but ignore |
id.var |
vector of names for columns that indicate data subsets |
measure.var |
vector of names for columns to limit |
na.rm |
passed to |
... |
passed to |
prob
and tail
are not actually used internally, but serve
only to calculate symmetric defaults for lo
and hi
. If
the latter are supplied, the former are ignored. Tails need not be
symmetric.
By default, all columns are classified as measure.var
: an attempt
will be made to limit such. Columns classified as preserve
will
simply be passed through to the result. Columns classified as id.var
specify row subsets that are limited independently of eachother. See examples.
a data frame with the same rows, columns, row order, and column order as x (except for dropped columns)
Tim Bergsma
http://metrumrg.googlecode.com
helpPrepare
1 2 3 4 5 6 7 | x <- airquality[c(1:10,32:41),]
x
inner(x,id.var=c('Month','Day'),na.rm=TRUE)#identity
inner(x,id.var='Month',preserve='Day',na.rm=TRUE)#quantiles within Month
inner(x,preserve=c('Month','Day'),na.rm=TRUE)#quantiles across all rows
inner(x,measure.var=c('Ozone','Solar.R','Wind','Temp'),na.rm=TRUE)# dropping Month, Day
inner(rock,prob=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.