Learn R Programming

sdsfun (version 0.7.0)

tbl_all2int: convert discrete variables in a tibble to integers

Description

convert discrete variables in a tibble to integers

Usage

tbl_all2int(tbl)

Value

A converted tibble,data.frame or sf object.

Arguments

tbl

A tibble,data.frame or sf object.

Examples

Run this code
demotbl = tibble::tibble(x = c(1,2,3,3,1),
                         y = letters[1:5],
                         z = c(1L,1L,2L,2L,3L),
                         m = factor(letters[1:5],levels = letters[5:1]))
tbl_all2int(demotbl)

Run the code above in your browser using DataLab