Learn R Programming

IFC (version 0.2.1)

readIFC: IFC Files Generic Reader

Description

Reads IFC data from IFC files no matter if they are FCS, DAF, RIF or CIF.

Usage

readIFC(fileName, ...)

Value

an object of class `IFC_data`.

Arguments

fileName

path to file.

...

arguments to pass to ExtractFromDAF or ExtractFromXIF or ExtractFromFCS.

Details

If input 'fileName' is a DAF file ExtractFromDAF will be used to read the file.
If it is a CIF or RIF file readIFC will use ExtractFromXIF.
Finally, if 'fileName' is not a DAF, nor a CIF, nor a RIF file readIFC will use ExtractFromFCS.

Examples

Run this code
if(requireNamespace("IFCdata", quietly = TRUE)) {
  ## use a rif file, but you can also read daf or cif
  file_rif <- system.file("extdata", "example.rif", package = "IFCdata")
  rif <- readIFC(fileName = file_rif)
} else {
  message(sprintf('Please run `install.packages("IFCdata", repos = "%s", type = "source")` %s',
                  'https://gitdemont.github.io/IFCdata/',
                  'to install extra files required to run this example.'))
}

Run the code above in your browser using DataLab