Learn R Programming

MetStaT (version 1.0)

MetStaT.ConvertToNumeric: Converts a matrix of strings to numeric values

Description

This function takes a matrix containing string values and converts them to numeric values wherever possible. Strings of value "na" (case insensitive) are converted to NA without giving a warning. Uninterpretable strings also result in a NA value, but do generate a warning.

Usage

MetStaT.ConvertToNumeric(matrix)

Arguments

matrix
a matrix of string values.

Value

A numerical matrix is returned.