Learn R Programming

wrMisc (version 1.15.3.1)

rowSEMs: SEM for each row

Description

This function speed optimized SEM (standard error of the mean) for each row. The function takes a matrix or data.frame and treats each row as set of data for SEM; NAs are ignored from data. Note: NaN instances will be transformed to NA

Usage

rowSEMs(dat)

Value

This function returns a numeric vector with SEM values

Arguments

dat

matrix or data.frame

See Also

rowSds, colSds, colSums

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)
head(rowSEMs(dat1))

Run the code above in your browser using DataLab