vc_integer: Validates If Integer

View source: R/vc_integer.R

vc_integerR Documentation

Validates If Integer

Description

Validates If Integer

Usage

vc_integer(data, x, ...)

Arguments

data

A data frame.

x

Column name from data (character string).

...

ignored.

Examples

dat <- data.frame(
    vals = c('9.99.99', '22', '22.', '22.34', '22.234', '23,456', '12,23', 'dog', NA),
    vals2 = c('123', '123,456', NA, 1, 0, 0, 0, 0, ""),
    stringsAsFactors = FALSE
)
vc_integer(dat, 'vals')
vc_integer(dat, 'vals2')

data-steve/valiData documentation built on Feb. 3, 2023, 12:21 a.m.