Scale rows considering numeric columns from a tbl.

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

Arguments

tbl

a tbl.

scale

TRUE for further details refer scale argument of function scale. base::scale().

center

TRUE for further details refer center argument of function scale.

Value

a tbl.

See also

Examples

if (FALSE) { set.seed(12345) tbl <- tibble(x = sample(c(1:10) , 5) , y = sample(c(1:10) , 5) , z = sample(c(1:10) , 5) , zz = letters[1:5]) tbl %>% tbl_convert_row_zscore() }