View source: R/read.snapshot.R
read.snapshot | R Documentation |
Reads IAMC-style .csv files obtained as a IIASA snapshot into a quitte data frame, filtering the data. This function is helpful if the csv file is large and R runs out of memory loading it completely. This function requires head, tail and grep on your system. If not supported, use read.quitte().
read.snapshot(file, keep = list(), filter.function = NULL)
file |
Path of single IAMC-style .csv/.mif file |
keep |
list with quitte columns as names and data points that should be kept. Using 'grep', this list is used to extract the data before reading it into R. The more you restrict the data here, the faster the data is read. |
filter.function |
A function used to filter data during read, see read.quitte description. |
A quitte data frame.
Oliver Richters
## Not run:
read.filter.snapshot("snapshot.csv", list(scenario = c("CurPol", "NDC"), region = "World"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.