tableWD: Summary Tables for 'Windata' objects

Description Usage Arguments Author(s) See Also Examples

View source: R/tableWD.R

Description

This function returns the values plotted with plotWD function.

Usage

1
2
tableWD(datawd, ane = NA, var = c("mean"), type = "histogram",
  by = "none", since = NULL, to = NULL, binwidth = 1)

Arguments

datawd

an object of class windata.

ane

a vector of character strings with anemometers names to plot.

var

a vector of character strings the the variables to plot: ave, min, max, freq.

type

type of plot: histogram, rose, profiles and boxplot. See also Details.

by

an optional string stating if the plot is divided in panels by month or hour.

since

an optional string with initial date to be taken into account to make the plot. The string format is 'YYYY-MM-DD'.

to

an optional string indicating final date to be taken into account to make the plot. The string format is 'YYYY-MM-DD'.

binwidth

an optional bindwidth interval used in histogram plots.

Author(s)

Mariano Bonoli Escobar, Diego Edwards, Valeria Gogni, Ruben Bufanio

See Also

plotWD

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
data("wdMtTom", package = "WindResource")
data("wd10", package = "WindResource")

## Getting anemometer names
wdMtTom$ane$ane.names
wd10$ane$ane.names

## Histogram
tableWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="none")
tableWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="none", binwidth=.5)
tableWD(data=wdMtTom, ane="Anem24bMS", type="histogram", by="hour")

## Rose
tableWD (data=wdMtTom, ane=c("Anem24bMS", "Anem37aMS"), var="mean", type="rose", by="none")
tableWD (data=wdMtTom, ane=c("Anem37aMS"), var="mean", type="rose", by="month")

## Boxplot
tableWD (data=wdMtTom, ane="Anem24bMS", type="boxplot", by="hour")
tableWD (data=wdMtTom, ane="Anem24bMS", type="boxplot", by="month")

## Profile
tableWD (data=wdMtTom, ane="Anem24aMS", var="ave", type="profile", by="hour")
tableWD (data=wdMtTom,  ane="Anem24aMS",  var="ave", type="profile", by="month")

## Turbulence Analysis
tableWD (data=wd10, ane="ane10", type="turbulence")

## Fit
tableWD (data=wdMtTom, ane="Anem37aMS", type="fit")

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