tests/testthat/_snaps/prep_resample.md

Splines returns correct result

Code
  process(X, preprocess_recipe(prep_resample(c(1001, 1601, 100)), device = "unspecified"))
Output
            1001      1101      1201      1301      1401      1501      1601
  [1,] 0.2348344 0.2157702 0.2393240 0.2016263 0.2732467 0.3447218 0.3227538
  [2,] 0.2073387 0.1885274 0.2033857 0.1755752 0.2428310 0.3224450 0.2997420
  attr(,"preprocess_recipe")
  Spectral preprocessing recipe (device: "unspecified"): 
   - Step 1: prep_resample
      min_wav: 1001; max_wav: 1601; resolution: 100
  attr(,"processed_wavs")
  Spectral variables by preprocessing step:
    step_0: 46 spectral variables
    step_1: 7 spectral variables
Code
  process(X, preprocess_recipe(prep_resample(c(1001, 1676, 10)), device = "unspecified"))
Output
            1001      1011      1021      1031      1041      1051      1061
  [1,] 0.2348344 0.2334595 0.2316006 0.2293454 0.2272472 0.2254548 0.2239526
  [2,] 0.2073387 0.2057461 0.2035192 0.2009430 0.1989389 0.1973477 0.1959992
            1071      1081      1091      1101      1111      1121      1131
  [1,] 0.2225336 0.2204938 0.2179313 0.2157702 0.2145235 0.2143249 0.2153162
  [2,] 0.1948132 0.1930304 0.1906506 0.1885274 0.1871932 0.1867924 0.1873277
            1141      1151      1161      1171      1181      1191      1201
  [1,] 0.2186400 0.2233921 0.2271860 0.2308616 0.2351089 0.2390195 0.2393240
  [2,] 0.1893814 0.1926554 0.1959542 0.1986346 0.2008777 0.2030218 0.2033857
            1211      1221      1231      1241      1251     1261      1271
  [1,] 0.2346275 0.2266385 0.2195302 0.2150518 0.2120041 0.209472 0.2072404
  [2,] 0.2008917 0.1960833 0.1914460 0.1881727 0.1856878 0.183423 0.1812472
            1281      1291      1301      1311      1321      1331      1341
  [1,] 0.2055027 0.2037249 0.2016263 0.1996991 0.1996858 0.2020041 0.2059075
  [2,] 0.1793366 0.1774466 0.1755752 0.1742551 0.1747061 0.1773295 0.1817007
            1351      1361      1371      1381      1391      1401      1411
  [1,] 0.2124186 0.2205979 0.2286269 0.2406194 0.2567939 0.2732467 0.2910444
  [2,] 0.1879758 0.1950791 0.2017931 0.2117218 0.2259822 0.2428310 0.2637314
            1421      1431      1441      1451      1461      1471      1481
  [1,] 0.3088466 0.3224551 0.3311319 0.3362721 0.3399603 0.3421721 0.3433831
  [2,] 0.2868055 0.3064486 0.3190410 0.3251731 0.3283616 0.3291813 0.3279837
            1491      1501      1511      1521      1531      1541      1551
  [1,] 0.3445867 0.3447218 0.3429947 0.3395867 0.3353815 0.3309071 0.3267156
  [2,] 0.3255864 0.3224450 0.3186419 0.3142765 0.3105739 0.3078276 0.3055645
            1561      1571      1581      1591      1601      1611      1621
  [1,] 0.3253873 0.3263510 0.3262109 0.3249102 0.3227538 0.3205775 0.3230247
  [2,] 0.3050076 0.3054989 0.3046728 0.3025939 0.2997420 0.2967803 0.2958116
            1631      1641      1651      1661      1671
  [1,] 0.3272681 0.3255354 0.3238124 0.3277057 0.3378131
  [2,] 0.2955264 0.2926912 0.2913204 0.2937924 0.2988758
  attr(,"preprocess_recipe")
  Spectral preprocessing recipe (device: "unspecified"): 
   - Step 1: prep_resample
      min_wav: 1001; max_wav: 1676; resolution: 10
  attr(,"processed_wavs")
  Spectral variables by preprocessing step:
    step_0: 46 spectral variables
    step_1: 68 spectral variables


Try the proximetricsR package in your browser

Any scripts or data that you put into this service are public.

proximetricsR documentation built on Sept. 4, 2026, 5:08 p.m.