dot-clean.table.var.names: .clean.table.var.names

.clean.table.var.namesR Documentation

.clean.table.var.names

Description

the comp.mean and means functions return a data.frame with this aspect

Usage

.clean.table.var.names(x, DEBUG = FALSE)

Details

|var.name |group.var |group | n.valid| n.missing| min| max| mean| sd| median| IQR| se| ci.upper| ci.lower| p.norm| p.norm.exact|nor.test |is.normal | |:——–|:———|:——|——-:|———:|———:|———:|—-:|–:|———:|—–:|—-:|——–:|——–:|——:|————:|:——–|:———| |AGE |SEX |Female | 18| 3| 20.66345| 37.46681| 31| 4| 32.11929| 4.65| 0.97| 32.90| 29.10| 0.24| 0.2364976|SW |TRUE | |AGE |SEX |Male | 13| 3| 23.45472| 38.11588| 31| 5| 31.72284| 8.57| 1.47| 33.87| 28.13| 0.29| 0.2878895|SW |TRUE | |HEIGHT |SEX |Female | 18| 3| 120.00000| 205.00000| 174| 23| 182.00000| 32.25| 5.52| 184.83| 163.17| 0.09| 0.0861440|SW |TRUE | |HEIGHT |SEX |Male | 12| 4| 120.00000| 193.00000| 161| 25| 163.00000| 33.50| 7.26| 175.22| 146.78| 0.30| 0.2990383|SW |TRUE |

But there are as show multiple instances of the variable name and the group name The desired output is:

|var.name |group.var |group | n.valid| n.missing| min| max| mean| sd| median| IQR| se| ci.upper| ci.lower| p.norm| p.norm.exact|nor.test |is.normal | |:——–|:———|:——|——-:|———:|———:|———:|—-:|–:|———:|—–:|—-:|——–:|——–:|——:|————:|:——–|:———| |AGE |data_$SEX |Female | 18| 3| 20.66345| 37.46681| 31| 4| 32.11929| 4.65| 0.97| 32.90| 29.10| 0.24| 0.2364976|SW |TRUE | | | |Male | 13| 3| 23.45472| 38.11588| 31| 5| 31.72284| 8.57| 1.47| 33.87| 28.13| 0.29| 0.2878895|SW |TRUE | |HEIGHT |data_$SEX |Female | 18| 3| 120.00000| 205.00000| 174| 23| 182.00000| 32.25| 5.52| 184.83| 163.17| 0.09| 0.0861440|SW |TRUE | | | |Male | 12| 4| 120.00000| 193.00000| 161| 25| 163.00000| 33.50| 7.26| 175.22| 146.78| 0.30| 0.2990383|SW |TRUE |

This is what this function does

It does something similar for stat columns but instead of leaving the first instance leaves the last one


feranpre/feR documentation built on Nov. 22, 2022, 2:29 a.m.