setWindData: Conversion of dataframe in class windata object

Description Usage Arguments Details Value Author(s) Examples

View source: R/setWindData.R

Description

Shape a dataframe in a class 'windata' object

Usage

1
2
3
4
5
6
7
setWindData(data, name = NA, date.var, date.format = c("YYYYMMDD",
  "YYYY-MM-DD", "YYYY.MM.DD", "DD/MM/YYYY"), time.var, time.format = c("HHMM",
  "HHMMSS", "HH:MM", "HH:MM:SS", "HH.MM", "HH.MM.SS"), ane.names, ane.height,
  speed.ave.var, speed.min.var = NA, speed.max.var = NA,
  speed.sd.var = NA, speed.unit = NA, dir.var, dir.unit = "deg",
  temp.var = NA, temp.unit = "C", pres.var = NA, pres.unit = "bar",
  NA.values = NA)

Arguments

data

a dataframe to be converted

name

unit wind's atmospheric pressures. At the moment, the unit that can be used is 'deg'.

date.var

the name of the variable that contains the dates of measurements

date.format

the admit formats are: - 'YYYYMMDD','YYYY-MM-DD','YYYY.MM.DD' or 'DD/MM/YYYY'

time.var

the name of the variable that contains the times of measurements

time.format

the admit formats are: - 'HHMM','HHMMSS','HH:MM','HH:MM:SS','HH.MM' or 'HH.MM.SS'

ane.names

the names to indicate the differents anemometers in the list.

ane.height

the heights of the anemometers

speed.ave.var

the name/s of the variable/s that contains the average speeds measures.

speed.min.var

the name/s of the variable/s that contains the min speeds measures.

speed.max.var

the name/s of the variable/s that contains the max speeds measures.

speed.sd.var

the name/s of the variable/s that contains the desvest standar of speeds measures.

speed.unit

unit wind speed. At the moment, the unit that can be use is 'm/s'.

dir.var

the name/s of the variable/s that contains the wind's direction measures

dir.unit

unit wind's directions. At the moment, the unit that can be used is 'deg'.

temp.var

the name/s of the variable/s that contains the wind's temperature measures

temp.unit

unit wind's temperatures. At the moment, the unit that can be used is 'deg'.

pres.var

he name/s of the variable/s that contains the wind's atmospheric pressures measures.

pres.unit

unit wind's atmospheric pressures. At the moment, the unit that can be used is 'deg'.

NA.values

unit wind's atmospheric pressures. At the moment, the unit that can be used is 'deg'.

Details

The object windata is a list with the parameters that were mencionated before.

Value

Object of class 'windata' (see details).

Author(s)

Valeria Gogni, Mariano Bonoli, Ruben Bufanio, Diego Edwards

Examples

1
2
3
4
5
# simple example using the windspeed data set
data(wd)
 
# let's examine windspeed to see the variables' names
head(wd)

mbonoli/WindResource documentation built on May 22, 2019, 12:56 p.m.