checkForID: Check and make character ID column

View source: R/checks.R

checkForIDR Documentation

Check and make character ID column

Description

Checks for some sort of ID column, which is by default converted to character. Returns a message for failures. This is meant to work with dataset upload modules.

Usage

checkForID(data, message = NULL, idcol = "ID", aschar = T)

Arguments

data

A table.

message

A default message for failures.

idcol

Name of ID column, defaulting to "ID".

aschar

Convert ID column to character.

Value

A list with elements result with the result data and message with a message to show.


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.