Learn R Programming

dominanceanalysis (version 2.0.0)

centerOnGroup: Center the variables on groups mean.

Description

Returns a dataframe with variables groups means as x.mean and centered variables a x.centered

Usage

centerOnGroup(x, g)

Arguments

x

dataframe

g

grouping factor

Value

New dataframe