windata_format: Transform Winddata

Description Usage Arguments Value See Also Examples

View source: R/genetic_algorithm.R

Description

Helper Function, which transforms winddata to an acceptable format

Usage

1

Arguments

df

The wind data with speeds, direction and optionally a probability column. If not assigned, it will be calculated

Value

A list of windspeed and probabilities

See Also

Other Helper Functions: dup_coords(), getDEM(), getISO3(), get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), readintegerSel(), readinteger(), splitAt()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
wind_df <- data.frame(ws = c(12, 30, 45), 
                      wd = c(0, 90, 150),
                      probab = 30:32)
windata_format(wind_df)

wind_df <- data.frame(speed = c(12, 30, 45), 
                      direction = c(90, 90, 150)
                      ,probab = c(10, 20, 60)
)
windata_format(wind_df)

wind_df <- data.frame(speed = c(12, 30, 45), 
                      direction = c(400, 90, 150)
)
windata_format(wind_df)

windfarmGA documentation built on May 5, 2021, 5:08 p.m.