read.fews: read data in the fews clipboard format

View source: R/read.fews.r

read.fewsR Documentation

read data in the fews clipboard format

Description

read date in the format when copying data from fews to the clipboard

Usage

read.fews(
  x,
  dec = ",",
  param = T,
  loc.name = T,
  loc.ID = F,
  date.t0 = F,
  time.t0 = F
)

Arguments

x

character string. path to the file that will be read.

dec

chracter. decimal seperator

param

logical. Should the parameter be included in the header?

loc.name

logical. Should the location name be included in the header?

loc.ID

logical. Should the location ID be included in the header?

date.t0

logical. Should the date of t0 be included in the header?

time.t0

logical. Should the time of t0 be included in the header?

Details

The xts object that will be returned will be contain header information based on the parameters param, loc.name, loc.ID, date.t0 and time.t0. All that are TRUE will be concatenated using "_@_" as separator.

Value

an xts object

Author(s)

Simon Frey

Examples

   ### not run ###
   xx <- read.fews(x, dec=",", param = T, loc.name=T)

freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.