read.gadget.file: Read gadget input file, return gadgetfile S3 class...

View source: R/gadgetfile.R

read.gadget.fileR Documentation

Read gadget input file, return gadgetfile S3 class representing file

Description

Read gadget input file, return gadgetfile S3 class representing file

Usage

read.gadget.file(
  path,
  file_name,
  file_type = "generic",
  fileEncoding = "UTF-8",
  missingOkay = FALSE,
  recursive = TRUE
)

Arguments

path

Base directory to read file from

file_name

File name, or path relative to (path), to read

file_type

What sort of gadget file this is, e.g. 'time', 'area', ... See Rgadget::gadget_filetypes for recognised types

fileEncoding

Character encoding of file, defaults to "UTF-8"

missingOkay

If TRUE, return an empty gadgetfile object if file does not exist.

recursive

Read in all nested files too (default TRUE)?


gadget-framework/rgadget documentation built on July 20, 2022, 12:16 p.m.