View source: R/genetic_algorithm.R
windata_format | R Documentation |
Helper Function, which transforms winddata to an acceptable format
windata_format(df)
df |
The wind data with speeds, direction and optionally a probability column. If not assigned, it will be calculated |
A list of windspeed and probabilities
Other Helper Functions:
get_grids()
,
grid_area()
,
hexa_area()
,
isSpatial()
,
permutations()
,
readinteger()
,
readintegerSel()
,
splitAt()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.