tbl_convert_column_zscore: Scale numeric columns

Description Usage Arguments Value Examples

View source: R/tbl_convert.R

Description

Scale numeric columns from a tbl. It uses base::scale() to scale the numeric vector.

Usage

1

Arguments

tbl

a tbl.

scale

TRUE look at scale argument of function base::scale().

center

TRUE look at center argument of function base::scale().

Value

a tbl.

Examples

1
2
3
4
5
## Not run: 
tbl <- tibble(x = c(0,1,2,0,3,5) , y = c(0,1,2,0,3,5) , z = c(0,1,2,0,3,5) , zz = letters[1:6])
tbl %>% tbl_convert_column_zscore()

## End(Not run)

cparsania/TidyWrappers documentation built on Feb. 6, 2022, 3:25 p.m.