roundx_df {roundyh}R Documentation

Applying the rounding function to all numeric values of dataframe while excluding characters

Description

Applying the rounding function to all numeric values of dataframe while excluding characters

Usage

roundx_df(df, dp)

Arguments

df

a dataframe

dp

decimal place to round to

Value

a dataframe

Examples

roundx_df(data.frame(c(1.111, 1, 1.11), c(1, 1, 1), c("a", "b", "c")), 1)

[Package roundyh version 0.1.0 Index]