dl <- seq(40, 0, -5)
hl <- seq(0, 16, 2)
d <- 30
hcc <- 12
h <- max(hl)
df <- data.frame(dl = dl,
hl = hl,
d = d,
hcc = hcc,
h = h)
df
myparams <- c(0.3, 0.8, 0.00003)
taperpoly.fx(hl = df$hl, hcc = df$hcc, paramod = myparams, n = 2)
df$y <- taperpoly.fx(hl = df$hl, hcc = df$hcc, paramod = myparams, n = 2)
## the n parameter is not necesary
df$y2 <- taperpoly.fx(hl = df$hl, hcc = df$hcc, paramod = myparams)
df$dl.h <- df$y * df$d
df
Run the code above in your browser using DataLab