Description Usage Arguments Value Examples
View source: R/read-meteologica.R
Read Meteologica file
1 | read_meteologica(path, country = NULL)
|
path |
path to a directory containing forecast files or a single file. |
country |
filter files to read onlyone country |
a data.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# one file
one_file <- read_meteologica(
path = "20180214/PhotovoltaicPower/country-type-code-code_000000_00.csv"
)
# filter with a country
country <- read_meteologica(path = "20180214/PhotovoltaicPower/", country = "France")
# all files in subdir PhotovoltaicPower/
all_pp <- read_meteologica(path = "20180214/PhotovoltaicPower/")
all_pp[, .N, by = list(type, country)]
# all files in subdir 20180214/
all <- read_meteologica(path = "20180214/")
all[, .N, by = list(type, country)]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.