round_data: Round data.table columns

View source: R/stackable_functions.R

round_dataR Documentation

Round data.table columns

Description

A stackable wrapper for round to turn it into a stackable transformation

Usage

round_data(
  my_dt = NULL,
  col_names = NULL,
  digits = 0,
  my_summary = "Rounding data.",
  sample_key = get_default_sample_key(),
  readme_path = NULL
)

Arguments

my_dt

data.table input

col_names

Vector of character strings to name the columns that will have this operation performed on them. Uses operatable_columns

digits

Integer to specify how mnay decimal digits to round to. See round 'digits' argument.

my_summary

Character string to change the default comment that will be appended to my_dt.

sample_key

Character string to specify the column that is the sample key. This column will not be operated upon.

readme_path

Optional path to which the comments will be appended.

Details

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ round_data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.