Learn R Programming

SPOT (version 2.11.10)

repairNonNumeric: 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

Run this code
# NOT RUN {
x <- matrix(10*runif(12),4,3)
types <- c("numeric","factor","factor")
repairNonNumeric(x,types)

# }

Run the code above in your browser using DataLab