sanitiseTable: Sanitise a data table

View source: R/sanitise.R

sanitiseTableR Documentation

Sanitise a data table

Description

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

Usage

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

Arguments

x

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

maxRows

the maximum number of rows with which to restrict the table size

sigFig

the significant figures with which to round numeric columns

maxCharacters

the maximum number of characters allowed in a string before it is truncated

Value

A sanitised tibble or data.frame.

Examples

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

jasenfinch/metaboMisc documentation built on July 31, 2023, 2:28 a.m.