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

tbl_convert_column_zscore(tbl, scale = TRUE, center = TRUE)

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

if (FALSE) { 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() }