coerce: Coerce functions

coerceR Documentation

Coerce functions

Description

  • asInteger: convert x to an integer and throw an error if x is not a numeric.

Usage

asInteger(x)

Arguments

x

input argument.

Author(s)

Johannes Rainer

Examples

## Convert numeric to integer
asInteger(3.4)

asInteger(3)

rformassspectrometry/MsCoreUtils documentation built on April 26, 2024, 1:09 a.m.