ensure_columns: Ensure that a data frame has the required columns or signal...

View source: R/process_responses.R

ensure_columnsR Documentation

Ensure that a data frame has the required columns or signal with a message

Description

Ensure that a data frame has the required columns or signal with a message

Usage

ensure_columns(data, required_columns, signal, message_prefix = "")

Arguments

data

The data.frame to check.

required_columns

A character vector of columns to ensure.

signal

The method used to signal if any of the columns are missing (e.g. abort).

message_prefix

A string to prepend to the message.

Value

A logical indicating if all the columns were present (TRUE) or not (FALSE).


UCLATALL/CourseKataData documentation built on Dec. 4, 2023, 2:25 a.m.