get_protected_columns: Get protected columns from data

View source: R/get_-functions.R

get_protected_columnsR Documentation

Get protected columns from data

Description

Helper function to get the names of all columns in a data frame that are protected columns.

Usage

get_protected_columns(data = NULL)

Arguments

data

A data.frame (or similar) with predicted and observed values. See the details section of as_forecast() for additional information on required input formats.

Value

A character vector with the names of protected columns in the data. If data is NULL (default) then it returns a list of all columns that are protected in scoringutils.


epiforecasts/scoringutils documentation built on April 23, 2024, 4:56 p.m.