Is an error expected in this situation (`spc.bin(na.rm = 2)`)? ``` r suppressPackageStartupMessages(library(hyperSpec)) # Example 1: Error data(flu, package = "hyperSpec") flu[[3, , 3, wl.index = TRUE]] <- NA_real_ spc.bin(flu, 1, na.rm = 2) #> Error in tapply(spc@wavelength, bin, mean, na.rm = na.rm > 0): arguments must have same length ``` <sup>Created on 2020-08-03 by the [reprex package](https://reprex.tidyverse.org) (v0.3.0)</sup> <details> <summary>More examples</summary> ``` r suppressPackageStartupMessages(library(hyperSpec)) # Example 2: Error data(flu, package = "hyperSpec") flu[[, , 3, wl.index = TRUE]] <- NA_real_ spc.bin(flu, 1, na.rm = 2) #> Error in tapply(spc@wavelength, bin, mean, na.rm = na.rm > 0): arguments must have same length # Example 3: Error data(flu, package = "hyperSpec") flu[[3, ]] <- NA_real_ spc.bin(flu, 1, na.rm = 2) #> Error in tapply(spc@wavelength, bin, mean, na.rm = na.rm > 0): arguments must have same length ``` </details>
Activity
Add note that tests for spc.bin(na.rm = 2) are missing
GegznaV commentedon Aug 12, 2021
Reopened as: