.pcr_sd {pcr}R Documentation

Get vector standard deviation by a variable

Description

Get vector standard deviation by a variable

Usage

.pcr_sd(vec, var)

Arguments

vec

A vector of numerics

var

A grouping variable

Value

A vector of numerics

Examples

vec <- rnorm(6, 30, 1)
var <- rep(c('group1', 'group2'), 3)
pcr:::.pcr_sd(vec, var)


[Package pcr version 1.2.2 Index]