readIFC {IFC} | R Documentation |
IFC Files Generic Reader
Description
Reads IFC data from IFC files no matter if they are FCS, DAF, RIF or CIF.
Usage
readIFC(fileName, ...)
Arguments
fileName |
path to file. |
... |
arguments to pass to |
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
.
Value
an object of class 'IFC_data'.
Examples
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.'))
}
[Package IFC version 0.2.1 Index]