hasFormat: hasFormat

View source: R/DataTypes.R

hasFormatR Documentation

hasFormat

Description

hasFormat

Usage

hasFormat(...)

## S3 method for class 'collector'
hasFormat(...)

## S3 method for class 'col_spec'
hasFormat(...)

## S3 method for class ''function''
hasFormat(...)

Arguments

...

A collection of objects or atomic vectors. All elements must have the same type.

Details

Basic lists are not supported, i.e. hasFormat(c(col_time(), col_double()) will not work.

Value

A list of logicals. If the input contains vectors with length > 1 or lists the returned list is nested.

Methods (by class)

  • hasFormat(collector): Accepts lists of S3 class collector as generated by vroom::col*_().

  • hasFormat(col_spec): Accepts column specification objects

  • hasFormat(`function`): Accepts vroom::col*_() functions. No nesting allowed (because it would create a list).

Examples

hasFormat("t", "d", "i", "T")
hasFormat(c("t", "d", "i", "T"))

SigurdJanson/shinyCSVImpoMod documentation built on Jan. 5, 2023, 3:57 a.m.