Skip to contents

This function lists all fields (columns) available in a specified RIO table.

Usage

rio_list_fields(
  table_name,
  table_id = NULL,
  include_info = TRUE,
  pattern = NULL
)

Arguments

table_name

The name of the table to retrieve fields for.

table_id

The ID of the table. If NULL, table_name will be used to look up the ID.

include_info

Logical indicating whether to include field type information. Default is TRUE.

pattern

Optional pattern to filter field names. Default is NULL (no filtering).

Value

A tibble with information about each field.

Examples

if (FALSE) { # \dontrun{
# List all fields in the onderwijslocaties table
fields <- rio_list_fields("onderwijslocaties")

# Filter fields containing "datum"
date_fields <- rio_list_fields("onderwijslocaties", pattern = "datum")
} # }