# NOT RUN {
find_wls(white_led.source_spct)
find_wls(white_led.source_spct, target = "half.maximum")
find_wls(white_led.source_spct, target = 0.4)
find_wls(white_led.source_spct, target = 0.4, interpolate = TRUE)
find_wls(white_led.source_spct, target = c(0.3, 0.4))
find_wls(white_led.source_spct, target = c(0.3, 0.4), idfactor = "target")
find_wls(white_led.source_spct, target = c(0.3, 0.4), idfactor = TRUE)
find_wls(white_led.source_spct, target = c("HM", "HR"))
find_wls(white_led.source_spct, target = c("HM", "HR"), interpolate = TRUE)
led.df <- as.data.frame(white_led.source_spct)
find_wls(led.df, col.name = "s.e.irrad", col.name.x = "w.length")
find_wls(led.df, col.name = "s.e.irrad", col.name.x = "w.length",
target = 0.4)
find_wls(led.df, col.name = "s.e.irrad", col.name.x = "w.length",
target = c(0.3, 0.4))
find_wls(led.df, col.name = "s.e.irrad", col.name.x = "w.length",
target = 0.4, idfactor = "target")
# }
Run the code above in your browser using DataLab