convertIntegers: Conversion for integer vector.

Description Usage Arguments Value Examples

View source: R/convertInteger.R

Description

Convert numeric vector to integer vector if the numeric vector fully represents an integer vector, e.g. c(1, 5) to c(1L, 5L). Otherwise the argument is returned unchanged.

Usage

1

Arguments

x

[any]
Argument.

Value

Either an integer vector if conversion was done or x unchanged.

Examples

1
2
3
4

berndbischl/BBmisc documentation built on Nov. 29, 2017, 5:10 a.m.