hud_spec_r_type: Translate HUD Export Specification Tables to useful R...

hud_spec_r_typeR Documentation

Translate HUD Export Specification Tables to useful R equivalents

Description

Given various inputs, provide a col_type specification in the format indicated by outtype

Usage

hud_spec_r_type(hud_spec, outtype = c("chr", "hud", "fun", "typ")[1])

Arguments

hud_spec

(data.frame) HUD Specification table. Output from hud_export_specs.

outtype

(character) One of:

  • "chr" Returns the class as a readr abbreviation (See cols)

  • "hud" (character) a type specification from HUD

  • "fun"a readr ⁠parse_*⁠ function (See parse_logical) (function)

  • "type" (character) The R data class

Examples

purrr::map(hud_export_specs(hud_pdf_data()), hud_spec_r_type)

COHHIO/hud.extract documentation built on Oct. 11, 2023, 11:29 a.m.