properties: properties - used to check a data.frame before...

View source: R/rutils.R

propertiesR Documentation

properties - used to check a data.frame before standardization

Description

properties - used to check a data.frame before standardization. The maximum and minimum are constrained to four decimal places. It allows for columns of NAs and for Posix columns. In case one uses tibbles this function now checks and internally changes the indat into a strict data.frame. This will not influence the external use but it does allow the properties to be obtained.

Usage

properties(indat, dimout = FALSE)

Arguments

indat

the data.frame containing the data fields to be used in the subsequent standardization. It tabulates the number of NAs and the number of unique values for each variable and finds the minimum and maximum of the numeric variables

dimout

determines whether or noth the dimensions of the data.frame are printed to the screen or not; defaults to FALSE

Value

a data.frame with the rows being each variable from the input input data.frame and the columns being the number of NAs, the number of unique values, and minimum and maximum (where possible).

Examples

## Not run: 
 data(abdat)
 properties(abdat$fish)

## End(Not run)

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.