generatePivot: Function to generate a pivot table of percentage occurances

View source: R/metocean.R View source: R/metocean.R

generatePivotR Documentation

Function to generate a pivot table of percentage occurances

Description

Function to generate a pivot table of percentage occurances

Function to get a pivot table of Hm0 Tp occurances

Usage

generatePivot(df1, variables, target, bins, ...)

generatePivot(df1, variables, target, bins, ...)

Arguments

df1

Combined data frame

variables

vecotr of named variables within data frame

target

the value variable

bins

vector of bins for each of the named variables

input_df
variables

= atomic vector of input variable names for pivot table

bins

= atomic vector of bins for each of the variables

Value

pivot_table

Examples

generatePivot(df1,variables,target,bins)
generatePivot(df,c("Hm0","Tp"),bins = c())

rhydar/Metocean documentation built on May 9, 2022, 1:54 p.m.