fast_apply_sd_na_rm_T: Function similar to the function...

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

This function is similar to the function apply(X,dim,sd,na.rm=TRUE) but written thanks to the Rcpp package and therefore faster than apply(X,dim,sd,na.rm=TRUE).

Usage

1

Arguments

X

A data matrix containing numeric and missing values.

dim

A numeric value: 1 if the standard deviation has to be computed for each row of X, or 2 if the standard deviation has to be computed for each column of X.

Value

A numeric vector containing the standard deviation of observed values in either each row or each column of X.

Author(s)

Quentin Giai Gianetto <[email protected]>

Examples

1
2
3
4
5
6
## The function is currently defined as
##function (X, dim)
##{
##    .Call("imp4p_fast_apply_sd_na_rm_T", PACKAGE = "imp4p", X,
##        dim)
##  }

imp4p documentation built on Dec. 12, 2017, 1:04 a.m.