Load the BAP package into the global environment with library().

suppressPackageStartupMessages(
  library("BAP")
)

The ISD table is contained within the BAP package. Use data() to load the ISD table (isd.df) into the global environment.

data("isd.df")

Import your data. In this case, I will use an example data set provided by E. Mosher that is also contained within the BAP package.

data("bap.df")

Use data_prep() to put your data in the proper format.

bap.df <- data_prep(bap.df)

Use calc.isd() to produce a table calculated ISD values for each ISD model. WARNING: I do not think this has been thoroughly vetted. Please spend sometime checking the output. A good place to start is to compare to output calculated previously in excel or some other platform

final.df <- calc.isd(bap.df, isd.df)


zsmith27/BAP documentation built on April 23, 2023, 10:19 a.m.