sanitiseTable: Sanitise a data table

Description Usage Arguments Examples

View source: R/sanitise.R

Description

Sanitise a data table by restricting the number of rows or characters and rounding numeric columns.

Usage

1
sanitiseTable(x, maxRows = 5000, sigFig = 3, maxCharacters = 100)

Arguments

x

A tibble or data.frame containing the data to be sanitised

maxRows

Maximum number of rows with which to restrict the table

sigFig

Significant figures with which to round numeric columns

maxCharacters

Maximum number of characters allowed in a string before it is truncated

Examples

1
sanitiseTable(iris,maxRows = 10,sigFig = 1)

jasenfinch/metaboMisc documentation built on Feb. 10, 2022, 4:22 p.m.