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 Oct. 24, 2024, 1:52 p.m.