isoreader (version 1.3.2)

iso_parse_file_info: Parse file info

Description

Convenience function to batch parse file info (iso_get_file_info) columns in isofile objects for the most common parsing calls. Uses the parse_ functions exported from readr and described in extract_data. Note that for less common parsing calls or calls that require additional parameters to the parsing function, it is better to parse columns one-by-one using iso_mutate_file_info instead.

Usage

iso_parse_file_info(
  iso_files,
  number = c(),
  double = c(),
  integer = c(),
  logical = c(),
  datetime = c(),
  text = c(),
  quiet = default(quiet)
)

Arguments

iso_files

collection of iso_file objects

number

dplyr-style select condition to choose columns that should be converted to a number using parse_number. Use c(...) to select multiple columns.

double

dplyr-style select condition to choose columns that should be converted to a double using parse_double. Use c(...) to select multiple columns.

integer

dplyr-style select condition to choose columns that should be converted to an integer using parse_integer. Use c(...) to select multiple columns.

logical

dplyr-style select condition to choose columns that should be converted to a boolean (TRUE/FALSE) using parse_logical. Use c(...) to select multiple columns.

datetime

dplyr-style select condition to choose columns that should be converted to a date-time using parse_datetime. Use c(...) to select multiple columns.

text

dplyr-style select condition to choose columns that should be converted to text using as.character. Use c(...) to select multiple columns.

quiet

whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages. Set parameter to overwrite global defaults for this function or set global defaults with calls to iso_turn_info_messages_on and iso_turn_info_messages_off

See Also

Other file_info operations: iso_add_file_info.iso_file_list(), iso_filter_files(), iso_mutate_file_info(), iso_rename_file_info(), iso_select_file_info(), iso_set_file_root()