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 Aug. 4, 2024, 9:23 a.m.