read_meteologica: Read Meteologica file

Description Usage Arguments Value Examples

Description

Read Meteologica file

Usage

1
read_meteologica(path, country = NULL)

Arguments

path

path to a directory containing forecast files or a single file.

country

filter files to read onlyone country

Value

a data.table

Examples

 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)

rte-antares-rpackage/antaresWeeklyMargin documentation built on May 16, 2019, 8:15 p.m.