read_cnes: Read forecast from CNES

Description Usage Arguments Value Examples

View source: R/read-cnes.R

Description

Read forecast from CNES

Usage

1
read_cnes(path)

Arguments

path

Path to the file(s) to read, if path is a directory, all files starting with prev are read.

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
## Not run: 

library(antaresWeeklyMargin)

# read only one file
prev1 <- read_cnes("Prev_hebdo_CNES/prev1")
prev1

# read several files
prev12 <- read_cnes(c(
  "Prev_hebdo_CNES/prev1",
  "Prev_hebdo_CNES/prev2"
))
prev12

# read the whole directory
prev_all <- read_cnes("Prev_hebdo_CNES/")
prev_all


## End(Not run)

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