fix_m: Change the column name 'm1' to 'm' unless both 'm1' and 'm2'...

View source: R/fix-m.R

fix_mR Documentation

Change the column name 'm1' to 'm' unless both 'm1' and 'm2' exist

Description

Change the column name 'm1' to 'm' unless both 'm1' and 'm2' exist

Usage

fix_m(mc)

Arguments

mc

A data frame of posteriors as seen in the MCMC output csv files

Details

Fo column names of data frame mc: If m1 and m2 both exist, no change If only m1 exists, change the name to m

Value

A data frame the same as mc but with modifications (see details)


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.