repairNonNumeric: Repair Non-numeric Values

View source: R/misc.R

repairNonNumericR Documentation

Repair Non-numeric Values

Description

Round non-numeric columns of a matrix, specified by a vector of data given data types.

Usage

repairNonNumeric(x, types)

Arguments

x

matrix to be rounded

types

data types of the respective columns, numeric columns are specified by "numeric".

Examples

x <- matrix(10*runif(12),4,3)
types <- c("numeric","factor","factor")
repairNonNumeric(x,types)

martinzaefferer/COBBS documentation built on July 19, 2023, 4:12 a.m.