Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

round_df

Round doubles in a data.frame to a specified number of decimal places


Description

Round doubles in a data.frame to a specified number of decimal places

Usage

round_df(tbl, dec = 3)

Arguments

tbl

Data frame

dec

Number of decimals to show

Value

Data frame with rounded doubles

Examples

data.frame(x = as.factor(c("a", "b")), y = c(1L, 2L), z = c(-0.0005, 3.1)) %>%
  round_df(dec = 2)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.