Learn R Programming

MantaID (version 1.0.4)

mi_to_numer: Convert data to numeric, and for the ID column convert with fixed levels.

Description

Convert data to numeric, and for the ID column convert with fixed levels.

Usage

mi_to_numer(
  data,
  levels = c("*", 0:9, letters, LETTERS, "_", ".", "-", " ", "/", "\\", ":")
)

Value

A numeric data frame with numerical or factor type columns.

Arguments

data

A tibble with n position column(pos1,pos2,...) and class column.

levels

Characters accommodated in IDs.

Examples

Run this code
data(mi_data_procID)
mi_to_numer(mi_data_procID)

Run the code above in your browser using DataLab