collapse.smet: Coerces a 'smet-class' object to a data frame

collapse.smetR Documentation

Coerces a smet-class object to a data frame

Description

Coerces a smet-class object to a data frame

Usage

collapse.smet(x, y, headers = NULL, date.field = "timestamp")

Arguments

x

first smet-class object

y

second smet-class object

headers

header attributes to check before collapsing

date.field

field name used for date and time. Default is "timestamp", as used for SMET format.

Value

a collapsed smet-class object

Examples


smet1 <- as.smet(system.file("examples/zugspitze1.smet",package="RSMET"))
smet2 <- as.smet(system.file("examples/zugspitze2.smet",package="RSMET"))

newsmet <- collapse.smet(x=smet1,y=smet2)

newsmet_ <- collapse.smet(x=smet2,y=smet1)


x <- smet(system.file('examples/PIEM001114.smet',package="RSMET"))
y <- smet(system.file('examples/PIEM001114_20160308.smet',package="RSMET"))


xy <-  collapse.smet(x,y) 


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