pushSmetIntoIni: Pushes SMET object file into a 'meteoioini-class' object

View source: R/pushsmetintoini.R

pushSmetIntoIniR Documentation

Pushes SMET object file into a meteoioini-class object

Description

Pushes SMET object file into a meteoioini-class object

Usage

pushSmetIntoIni(
  ...,
  smetlist = NULL,
  ini = as.meteoioini("test"),
  smetwdir = system.file("temp", package = "RSMET"),
  force.smetdir = TRUE,
  new.ini.file = NA,
  append = FALSE
)

Arguments

...

smet-class objects

smetlist

(alternative) list of smet-class objects

ini

a meteoioini-class object

smetwdir

optional working directory used for SMET writing on disks. Default is the package internal directory system.file("temp",package="RSMET").

force.smetdir

logical value. In case it is TRUE the SMETs are written on smetwdir directory, otherwise thay can be written on slot(ini,"Input")$METEOPAH directory if specified.

new.ini.file

character string. DEfault is NA. If it is specified, the returned meteoioini-class object is saved as the new.ini.file file.

append

logical value. Default is codeFALSE. If it is TRUE SMETs will be appended to the pre-existing ones. If it is TRUE, force.smetdir and smetwdir arguments will be ingored.

Value

An updated meteoioini-class object.

Examples


ini <- as.meteoioini("test")

AA <- as.smet("test")
BB <- as.smet("test")


newini <- pushSmetIntoIni(AA,BB,ini=ini)
newini <- pushSmetIntoIni(AA=AA,BB=BB,ini=ini)
newini <- pushSmetIntoIni(AA=AA,BB=BB,ini=ini)




##  NOT YET IMPLEMENTED


ecor/RSMET documentation built on Aug. 30, 2023, 2:04 a.m.