powered by
Get the number of digits of an integer variable.
get_integer_length(variable)
Returns a vector with the number of digits places.
The integer variable from which to get the length.
# Example data frame my_data <- dummy_data(100) my_data[["age_length"]] <- get_integer_length(my_data[["age"]])
Run the code above in your browser using DataLab