read_meteologica2: Read Meteologica file

Description Usage Arguments Value Examples

View source: R/read-meteologica2.R

Description

Read Meteologica file

Usage

1
read_meteologica2(path, country = NULL, date = NULL, time = NULL)

Arguments

path

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

country

filter files to read only one country.

date

filter files to read by date(s), using a Date or a character with format %Y-%m-%d.

time

filter files to read by time, e.g. "00" or "12".

Value

a data.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

library(antaresWeeklyMargin)

# ALL files in Europe folder
meteo <- read_meteologica2(
  path = "meteologica/Europe"
)

# only for a specific date and time
meteo <- read_meteologica2(
  path = "meteologica/Europe", 
  date = "2018-05-24", 
  time = "12"
)


## End(Not run)

rte-antares-rpackage/antaresWeeklyMargin documentation built on July 25, 2019, 8:23 p.m.