centfac: Numeric Centered Factor Levels

Description Usage Arguments Author(s) Examples

View source: R/panel.groups.segplot.R

Description

This function receveis a factor and return a numeric vector with equally spaced factor levels centered at 0.

Usage

1
centfac(group, space = NULL)

Arguments

group

A factor.

space

A numeric value to be used as the space between levels. If NULL, the space is determined by the group.

Author(s)

Walmes Zeviani, walmes@ufpr.br.

Examples

1
2
3
4
centfac(warpbreaks$tension)
centfac(warpbreaks$tension, space = 1)
centfac(warpbreaks$wool)
centfac(warpbreaks$wool, space = 1)

walmes/wzRfun documentation built on Aug. 10, 2021, 2:19 p.m.