You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass wavelength range as a variable, functions [ and [[ fail. If I pass the formula directly, no issue is present.
Is it a bug or did I do something wrong?
suppressPackageStartupMessages(library(hyperSpec))
# Worksflu[, 1:2, min~320]
#> hyperSpec object#> 6 spectra#> 2 data columns#> 0 data points / spectrum#> wavelength: lambda/nm [numeric]#> data: (6 rows x 2 columns)#> 1. spc: I[fl]/"a.u." [matrix, array0]#> 2. filename: filename [character] rawdata/flu1.txt rawdata/flu2.txt ... rawdata/flu6.txt# Failswl_range<-min~320flu[, 1:2, wl_range]
#> Error in Re(from): non-numeric argument to function
Original issue was:
When I pass wavelength range as a variable, functions
[
and[[
fail. If I pass the formula directly, no issue is present.Is it a bug or did I do something wrong?
Created on 2020-07-14 by the reprex package (v0.3.0)
For the subsequent valuable comments and discussion, see:
The text was updated successfully, but these errors were encountered: