From 459b457292bdc3aee3439292955260e87c4e70f4 Mon Sep 17 00:00:00 2001 From: Philipp Baumann Date: Mon, 4 Sep 2023 21:51:11 +0000 Subject: [PATCH] Deploy from Github Actions build 6077821158 [ci skip] Build URL: https://github.com/philipp-baumann/simplerspec/actions/runs/6077821158 Commit: 0817d73c18d112134bfa78fb6d5f621bdf74bedd --- .nojekyll | 1 + dev/.nojekyll | 1 + dev/404.html | 148 ------------ dev/LICENSE.html | 433 +++++++++++++--------------------- dev/authors.html | 139 ++++------- dev/index.html | 378 +++++++++++++++-------------- dev/news/index.html | 161 +++---------- dev/pkgdown.css | 87 ++++--- dev/pkgdown.js | 4 +- dev/pkgdown.yml | 8 +- dev/reference/assess_multimodels.html | 178 +++++--------- dev/reference/average_spc.html | 170 ++++--------- dev/reference/bind_lcols_dts.html | 170 ++++--------- dev/reference/create_vip_rects.html | 142 +++-------- dev/reference/evaluate_model.html | 183 +++++--------- dev/reference/extract_lcols2dts.html | 158 ++++--------- dev/reference/extract_pls_vip.html | 144 +++-------- dev/reference/fit_pls.html | 375 +++++++++++++---------------- dev/reference/fit_rf.html | 298 ++++++++++------------- dev/reference/gather_spc.html | 175 ++++---------- dev/reference/index.html | 252 ++++---------------- dev/reference/join_chem_spec.html | 160 ++++--------- dev/reference/join_spc_chem.html | 160 ++++--------- dev/reference/merge_dts.html | 191 +++++---------- dev/reference/merge_dts_l.html | 191 +++++---------- dev/reference/pipe.html | 115 ++------- dev/reference/plot_pls_vip.html | 217 ++++++----------- dev/reference/plot_spc.html | 272 ++++++++------------- dev/reference/plot_spc_ext.html | 360 ++++++++++++---------------- dev/reference/predict_from_spc.html | 162 ++++--------- dev/reference/preprocess_spc.html | 168 ++++--------- dev/reference/read_asd.html | 142 +++-------- dev/reference/read_asd_bin.html | 173 +++++--------- dev/reference/read_opus_bin_univ.html | 165 ++++--------- dev/reference/read_opus_univ.html | 172 ++++---------- dev/reference/remove_outliers.html | 182 +++++--------- dev/reference/resample_spc.html | 267 ++++++++------------- dev/reference/select_ref_spc.html | 163 ++++--------- dev/reference/select_spc_vars.html | 180 +++++--------- dev/reference/slice_xvalues.html | 184 +++++---------- dev/reference/split_df2l.html | 152 ++++-------- dev/sitemap.xml | 12 + 42 files changed, 2430 insertions(+), 4963 deletions(-) create mode 100644 .nojekyll create mode 100644 dev/.nojekyll delete mode 100644 dev/404.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ + diff --git a/dev/.nojekyll b/dev/.nojekyll new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dev/.nojekyll @@ -0,0 +1 @@ + diff --git a/dev/404.html b/dev/404.html deleted file mode 100644 index c3629a4..0000000 --- a/dev/404.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - -Page not found (404) • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
- -
-
- - -Content not found. Please use links in the navbar. - -
- - - -
- - - -
- - -
-

Site built with pkgdown 1.5.1.

-
- -
-
- - - - - - - - diff --git a/dev/LICENSE.html b/dev/LICENSE.html index 430df06..6dfc472 100644 --- a/dev/LICENSE.html +++ b/dev/LICENSE.html @@ -1,66 +1,12 @@ - - - - - - - -GNU GENERAL PUBLIC LICENSE • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -GNU GENERAL PUBLIC LICENSE • simplerspec - + + - - - -
-
- -
- -
+
- - + + diff --git a/dev/reference/read_asd_bin.html b/dev/reference/read_asd_bin.html index bff6d59..dabb27f 100644 --- a/dev/reference/read_asd_bin.html +++ b/dev/reference/read_asd_bin.html @@ -1,72 +1,17 @@ - - - - - - - -Read ASD binary files and gather spectra and metadata in tibble data -frame. — read_asd_bin • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Read ASD binary files and gather spectra and metadata in tibble data +frame. — read_asd_bin • simplerspec - - - - - - - - - - + + - - - -
-
- -
- -
+
@@ -129,61 +61,74 @@ tibble is compatible with the simplerspec spectra processing and modeling framework.

-
read_asd_bin(fnames)
+
+
read_asd_bin(fnames)
+
-

Arguments

- - - - - - -
fnames

Character vector containing full paths of ASD binary files -to be read

+
+

Arguments

+
fnames
+

Character vector containing full paths of ASD binary files +to be read

-

Value

+
+
+

Value

+ -

A spectral tibble (data frame) containing the follwing columns:

-
unique_id

Character vector. Unique identifier containing file name +

A spectral tibble (data frame) containing the follwing columns:

+
unique_id
+

Character vector. Unique identifier containing file name pasted with date and time.

-
file_id

Character vector containing file names and exension

-
sample_id

Character vector containing files names without extension

-
metadata

List-column. List of data frames containing spectral + +

file_id
+

Character vector containing file names and exension

+ +
sample_id
+

Character vector containing files names without extension

+ +
metadata
+

List-column. List of data frames containing spectral metadata

-
wavelengths

List-column. List of wavelengths vectors (numeric).

-
spc_radiance

List-column. List of data.tables containing + +

wavelengths
+

List-column. List of wavelengths vectors (numeric).

+ +
spc_radiance
+

List-column. List of data.tables containing radiance sample spectra.

-
spc_reference

List-column. List of data.tables containing + +

spc_reference
+

List-column. List of data.tables containing reference reflectance spectra.

-
spc

List-column. List of data.tables containing final reflectance + +

spc
+

List-column. List of data.tables containing final reflectance spectra.

+
+
-
- +
- - + + diff --git a/dev/reference/read_opus_bin_univ.html b/dev/reference/read_opus_bin_univ.html index 8d5cf2f..cb7e1fd 100644 --- a/dev/reference/read_opus_bin_univ.html +++ b/dev/reference/read_opus_bin_univ.html @@ -1,68 +1,13 @@ - - - - - - - -Read a Bruker OPUS spectrum binary file — read_opus_bin_univ • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Read a Bruker OPUS spectrum binary file — read_opus_bin_univ • simplerspec - + + - - - -
-
- -
- -
+
@@ -122,66 +54,61 @@ Bruker Vertex FTIR Instrument" /> Bruker Vertex FTIR Instrument

-
read_opus_bin_univ(file_path, extract = c("spc"),
-print_progress = TRUE, atm_comp_minus4offset = FALSE)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
file_path

Character vector with path to file

extract

Character vector of spectra types to extract from OPUS binary -file. Default is c("spc"), which will extract the final spectra, e.g. +

+
read_opus_bin_univ(file_path, extract = c("spc"),
+print_progress = TRUE, atm_comp_minus4offset = FALSE)
+
+ +
+

Arguments

+
file_path
+

Character vector with path to file

+ + +
extract
+

Character vector of spectra types to extract from OPUS binary +file. Default is c("spc"), which will extract the final spectra, e.g. expressed in absorbance (named AB in Bruker OPUS programs). Possible additional values for the character vector supplied to extract are "ScSm" (single channel spectrum of the sample measurement), \ code"ScRf" (single channel spectrum of the reference measurment), "IgSm" (interferogram of the sample measurment) and "IgRf" -(interferogram of the reference measurement).

print_progress

Logical (default TRUE) whether a message is -printed when an OPUS binary file is parsed into an R list entry.

atm_comp_minus4offset

Logical whether spectra after atmospheric +(interferogram of the reference measurement).

+ + +
print_progress
+

Logical (default TRUE) whether a message is +printed when an OPUS binary file is parsed into an R list entry.

+ + +
atm_comp_minus4offset
+

Logical whether spectra after atmospheric compensation are read with an offset of -4 bites from Bruker OPUS -files. Default is FALSE.

+files. Default is FALSE.

+
+
-
- +
- - + + diff --git a/dev/reference/read_opus_univ.html b/dev/reference/read_opus_univ.html index 78c883f..e72b910 100644 --- a/dev/reference/read_opus_univ.html +++ b/dev/reference/read_opus_univ.html @@ -1,69 +1,14 @@ - - - - - - - -Read a list of Bruker OPUS spectrum binary files. — read_opus_univ • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Read a list of Bruker OPUS spectrum binary files. — read_opus_univ • simplerspec - - - - - - - - - - + + - - - -
-
- -
- -
+

Read multiple spectral files measured with a Bruker FTIR Instrument. Files containing spectra are in OPUS binary format. -read_opus_univ is a wrapper for read_opus_bin_univ())

+read_opus_univ is a wrapper for read_opus_bin_univ())

+
+ +
+
read_opus_univ(fnames, extract = c("spc"), parallel = FALSE,
+atm_comp_minus4offset = FALSE)
-
read_opus_univ(fnames, extract = c("spc"), parallel = FALSE,
-atm_comp_minus4offset = FALSE)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
fnames

List of character vectors containing full path names of spectra

extract

Character vector of spectra types to extract from file. +

+

Arguments

+
fnames
+

List of character vectors containing full path names of spectra

+ + +
extract
+

Character vector of spectra types to extract from file. Possible values are: "spc" (AB block in Bruker Opus software), "spc_nocomp" (Spectra before final atmospheric compensation; only present if background correction has been set in Opus), "ScSm" (Single channel spectrum of the sample), "ScRf" (Single channel spectrum of the sample), "IgSm" (Interferogram of the sample), "IgRf" (Interferogram of the reference). Default is - extract = c("spc").

parallel

Logical (TRUE or FALSE indicating whether +extract = c("spc").

+ + +
parallel
+

Logical (TRUE or FALSE indicating whether files are read in parallel (multiple processors or multiple cores)). Default is parallel = FALSE. If TRUE a parallel backend needs -to be registered, e.g. by using the doParallel package.

atm_comp_minus4offset

Logical whether spectra after atmospheric +to be registered, e.g. by using the doParallel package.

+ + +
atm_comp_minus4offset
+

Logical whether spectra after atmospheric compensation are read with an offset of -4 bites from Bruker OPUS -files. Default is FALSE.

+files. Default is FALSE.

-

Value

+
+
+

Value

+ -

out List spectra and metadata (parameters) extracted from +

out List spectra and metadata (parameters) extracted from Bruker OPUS spectrometer files. List names are the names of the OPUS files whose spectral data were extracted.

+
+
-
- +
- - + + diff --git a/dev/reference/remove_outliers.html b/dev/reference/remove_outliers.html index 56d0c92..8544273 100644 --- a/dev/reference/remove_outliers.html +++ b/dev/reference/remove_outliers.html @@ -1,68 +1,13 @@ - - - - - - - -Remove outlier spectra — remove_outliers • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Remove outlier spectra — remove_outliers • simplerspec + + - - - - -
-
- -
- -
+
@@ -122,75 +54,71 @@ pcout() function of the mvoutlier package." /> pcout() function of the mvoutlier package.

-
remove_outliers(list_spectra, remove = TRUE)
+
+
remove_outliers(list_spectra, remove = TRUE)
+
-

Arguments

- - - - - - - - - - -
list_spectra

List that contains averaged +

+

Arguments

+
list_spectra
+

List that contains averaged spectral information in list element MIR_mean (data.frame) and metadata in -data_meta (data.frame).

remove

logical expression (TRUE or FALSE) +data_meta (data.frame).

+ + +
remove
+

logical expression (TRUE or FALSE) that specifies weather spectra shall be removed. -If rm = FALSE, there will be no outlier removal

- -

Value

- -

Returns list spectra_out that contains:

    -
  • MIR_mean: Outlier removed MIR spectra as - data.frame object. If remove = FALSE, - the function will - return almost identical list identical to list_spectra, - except that the first indices column of the spectral - data frame MIR_mean is removed - (This is done for both options - remove = TRUE and remove = FALSE).

  • +If rm = FALSE, there will be no outlier removal

    + +
+
+

Value

+ + +

Returns list spectra_out that contains:

  • MIR_mean: Outlier removed MIR spectra as +data.frame object. If remove = FALSE, +the function will +return almost identical list identical to list_spectra, +except that the first indices column of the spectral +data frame MIR_mean is removed +(This is done for both options +remove = TRUE and remove = FALSE).

  • data_meta: metadata data.frame, identical - as in the list_spectra input list.

  • +as in the list_spectra input list.

  • plot_out: (optional) ggplot2 graph - that shows all spectra (absorbance on x-axis and wavenumber - on y-axis) with outlier marked, if - remove = TRUE.

  • -
- -

Details

- +that shows all spectra (absorbance on x-axis and wavenumber +on y-axis) with outlier marked, if +remove = TRUE.

+
+
+

Details

This is an optional function if one wants to remove outliers.

+
+
- - - + + diff --git a/dev/reference/resample_spc.html b/dev/reference/resample_spc.html index 2cf5321..0f67ba7 100644 --- a/dev/reference/resample_spc.html +++ b/dev/reference/resample_spc.html @@ -1,74 +1,19 @@ - - - - - - - -Resample spectra in list-column to new x-axis interval — resample_spc • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Resample spectra in list-column to new x-axis interval — resample_spc • simplerspec - - - - - - - - - - - - - + + -
-
- -
- -
+
@@ -128,119 +60,117 @@ spectrometer devices and/or measurement settings)." /> corresponding x-axis values that are both stored in list-columns of a spectra tibble. A spectra tibble hosts spectra, x-axis vectors, metadata, and further linked data with standardized naming conventions. Data input for -resampling can for example be generated with simplerspec::gather_spc(). +resampling can for example be generated with simplerspec::gather_spc(). Resampling is a key harmonizing step to process and later model spectra measured at different resolutions and spectral ranges (i.e., different spectrometer devices and/or measurement settings).

-
resample_spc(
-  spc_tbl,
-  column_in = "spc",
-  x_unit = c("wavenumber", "wavelength"),
-  wn_lower = 500,
-  wn_upper = 4000,
-  wn_interval = 2,
-  wl_lower = 350,
-  wl_upper = 2500,
-  wl_interval = 1,
-  interpol_method = c("linear", "spline")
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
spc_tbl

Spectra data embedded in a tibble object (classes +

+
resample_spc(
+  spc_tbl,
+  column_in = "spc",
+  x_unit = c("wavenumber", "wavelength"),
+  wn_lower = 500,
+  wn_upper = 4000,
+  wn_interval = 2,
+  wl_lower = 350,
+  wl_upper = 2500,
+  wl_interval = 1,
+  interpol_method = c("linear", "spline")
+)
+
+ +
+

Arguments

+
spc_tbl
+

Spectra data embedded in a tibble object (classes "tbl_df", "tbl", "data.frame"). The spectra tibble needs to contain at least of one of the the spectra columns spc, spc_rs, spc_mean, spc_nocomp, sc_sm, sc_rf, or spc_pre (list-columns with spectral data.tables), and wavenumbers or wavelengths (list-column with vectors of x-axis values corresponding to each spectrum). The help section "Matching spectrum type and corresponding x-axis type" describes the spectra types -and corresponding x-axis types.

column_in

Character vector of length 1L or symbol/name -specifying the name of list-column that contains the spectra to be resampled.

x_unit

Character vector of length 1L specifying the measurement unit +and corresponding x-axis types.

+ + +
column_in
+

Character vector of length 1L or symbol/name +specifying the name of list-column that contains the spectra to be resampled.

+ + +
x_unit
+

Character vector of length 1L specifying the measurement unit of the x-axis values (list-column) of the input spectra in spc_tbl. Possible values are "wavenumber" (default) or "wavelength". Wavenumber is a convenient unit of frequency in the mid-infrared spectral range, where wavelength is often used as spatial period for the visible and -near-infrared range.

wn_lower

Numeric value of lowest wavenumber. This argument will only +near-infrared range.

+ + +
wn_lower
+

Numeric value of lowest wavenumber. This argument will only be used if x_unit = "wavenumber". The value serves as starting value for the new wavenumber sequence that the spectra will be resampled upon. Default -value is 500 (i.e., in reciprocal centimeters).

wn_upper

Numeric value of highest wavenumber. This argument will only +value is 500 (i.e., in reciprocal centimeters).

+ + +
wn_upper
+

Numeric value of highest wavenumber. This argument will only be used if x_unit = "wavenumber. The value will be used as last value of the new wavenumber sequence that the spectra will be resampled upon. Default -value is 4000 (i.e., in reciprocal centimeters).

wn_interval

Numeric value of the wavenumber increment for the new +value is 4000 (i.e., in reciprocal centimeters).

+ + +
wn_interval
+

Numeric value of the wavenumber increment for the new wavenumber sequence that the spectra will be resampled upon. Default value -is 2 (i.e., in reciprocal centimeters).

wl_lower

Numeric value of lowest wavelength. This argument will only +is 2 (i.e., in reciprocal centimeters).

+ + +
wl_lower
+

Numeric value of lowest wavelength. This argument will only be used if x_unit = "wavelength". The value serves as starting value of the new wavenumber sequence that the spectra will be resampled upon. -Default value is 350 (i.e. in nanometers).

wl_upper

Numeric value of highest wavelength. This argument will only +Default value is 350 (i.e. in nanometers).

+ + +
wl_upper
+

Numeric value of highest wavelength. This argument will only be used if x_unit = "wavelength". The value will be used as last value of the new wavenumber sequence that the spectra will be resampled upon. Default -value is 2500 (i.e., in nanometers).

wl_interval

Numeric value of the wavelength increment for the new +value is 2500 (i.e., in nanometers).

+ + +
wl_interval
+

Numeric value of the wavelength increment for the new wavenumber sequence that the spectra will be resampled upon. This argument will only be used if x_unit = "wavelength". Default value is 1 (i.e., in -nanometers).

interpol_method

Character of "linear" (default) or "spline" with +nanometers).

+ + +
interpol_method
+

Character of "linear" (default) or "spline" with the interpolation method. "spline" uses a cubic spline to interpolate the -input spectra at given x-axis values to new equispaced x-axis intervals.

+input spectra at given x-axis values to new equispaced x-axis intervals.

-

Value

+
+
+

Value

+ -

A spectra tibble (spc_tbl) containing two added list-columns:

    -
  • spc_rs: Resampled spectra as list of data.tables

  • +

    A spectra tibble (spc_tbl) containing two added list-columns:

    • spc_rs: Resampled spectra as list of data.tables

    • wavenumbers_rs or wavelengths_rs: Resampled x-axis values as list of numeric vectors

    • -
    - -

    Matching spectrum type and corresponding x-axis type

    - +
+
+

Matching spectrum type and corresponding x-axis type

The combinations of input spectrum types (column_in) and corresponding x-axis types are generated from a simple lookup list. The following key-value(s) pairs can be matched at given key, which is the column -name from column_in containing the spectra.

    -
  • "spc" : "wavenumbers" or "wavelengths" (raw spectra)

  • +name from column_in containing the spectra.

    • "spc" : "wavenumbers" or "wavelengths" (raw spectra)

    • "spc_rs" : "wavenumbers_rs" or "wavelengths_rs") (resampled spectra)

    • "spc_mean" : "wavenumbers_rs" or "wavelengths_rs" (mean spectra)

    • "spc_nocomp" "wavenumbers" or "wavelengths" (spectra prior @@ -250,34 +180,29 @@ sample spectra)

    • "sc_rf" : c("wavenumbers_sc_rf", "wavelengths_sc_rf") (single channel reference spectra)

    • "spc_pre" : "xvalues_pre" (preprocessed spectra)

    • -
    - +
+
- - - + + diff --git a/dev/reference/select_ref_spc.html b/dev/reference/select_ref_spc.html index eaec137..173b574 100644 --- a/dev/reference/select_ref_spc.html +++ b/dev/reference/select_ref_spc.html @@ -1,70 +1,15 @@ - - - - - - - -Select a set of reference spectra to be measured by reference analysis -methods — select_ref_spc • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Select a set of reference spectra to be measured by reference analysis +methods — select_ref_spc • simplerspec - + + - - - -
-
- -
- -
+
@@ -125,59 +57,54 @@ methods Samples in this list will be analyzed using laboratory reference methods.

-
select_ref_spc(spc_tbl, ratio_ref, pc, print = TRUE)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
spc_tbl

Spectra as tibble objects that contain preprocessed spectra

ratio_ref

Ratio of desired reference samples to total sample number

pc

Number of principal components (numeric). If pc < 1, the number +

+
select_ref_spc(spc_tbl, ratio_ref, pc, print = TRUE)
+
+ +
+

Arguments

+
spc_tbl
+

Spectra as tibble objects that contain preprocessed spectra

+ + +
ratio_ref
+

Ratio of desired reference samples to total sample number

+ + +
pc
+

Number of principal components (numeric). If pc < 1, the number of principal components kept corresponds to the number of components -explaining at least (pc * 100) percent of the total variance.

print

logical expression whether a plot (ggplot2) of sample selection +explaining at least (pc * 100) percent of the total variance.

+ + +
print
+

logical expression whether a plot (ggplot2) of sample selection for reference analysis is shown in PCA space -(TRUE or FALSE).

+(TRUE or FALSE).

+
+
- - - + + diff --git a/dev/reference/select_spc_vars.html b/dev/reference/select_spc_vars.html index b10c054..cffc51e 100644 --- a/dev/reference/select_spc_vars.html +++ b/dev/reference/select_spc_vars.html @@ -1,70 +1,15 @@ - - - - - - - -Select every n-th spectral variable for all spectra and x-values in spectral -tibble (<code>spc_tbl</code>) — select_spc_vars • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Select every n-th spectral variable for all spectra and x-values in spectral +tibble (spc_tbl) — select_spc_vars • simplerspec - - - - + + -
-
- -
- -
+
@@ -125,67 +57,63 @@ tibble (spc_tbl) tibble (spc_tbl)

-
select_spc_vars(
-  spc_tbl,
-  lcol_spc = "spc_pre",
-  lcol_xvalues = "xvalues_pre",
-  every = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
spc_tbl

Tibble data.frame containing spectra in list-column

lcol_spc

List-column containing spectra, specified with column -name as symbols or 1L character vector.

lcol_xvalues

List-column containing x-values, specified with -column name as symbols or 1L character vector.

every

Every n-th spectral positions to keep as 1L integer vector.

- -

Value

+
+
select_spc_vars(
+  spc_tbl,
+  lcol_spc = "spc_pre",
+  lcol_xvalues = "xvalues_pre",
+  every = NULL
+)
+
- +
+

Arguments

+
spc_tbl
+

Tibble data.frame containing spectra in list-column

+
lcol_spc
+

List-column containing spectra, specified with column +name as symbols or 1L character vector.

+ + +
lcol_xvalues
+

List-column containing x-values, specified with +column name as symbols or 1L character vector.

+ + +
every
+

Every n-th spectral positions to keep as 1L integer vector.

+ +
+
+

Value

+ + +

a spectral tibble

+
+
- - - + + diff --git a/dev/reference/slice_xvalues.html b/dev/reference/slice_xvalues.html index a87a6ab..f833213 100644 --- a/dev/reference/slice_xvalues.html +++ b/dev/reference/slice_xvalues.html @@ -1,69 +1,14 @@ - - - - - - - -Slice spectra into defined x-axis ranges — slice_xvalues • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Slice spectra into defined x-axis ranges — slice_xvalues • simplerspec - - - - - - - - - - - - - + + -
-
- -
- -
+
@@ -124,69 +56,73 @@ cut based on these ranges." /> cut based on these ranges.

-
slice_xvalues(spc_tbl, xunit_lcol = "wavenumbers", spc_lcol = "spc",
-  xvalues_cut = NULL)
+
+
slice_xvalues(
+  spc_tbl,
+  xunit_lcol = "wavenumbers",
+  spc_lcol = "spc",
+  xvalues_cut = NULL
+)
+
-

Arguments

- - - - - - - - - - - - - - - - - - -
spc_tbl

Spectral data in a tibble object (classes "tibble_df", "tbl" +

+

Arguments

+
spc_tbl
+

Spectral data in a tibble object (classes "tibble_df", "tbl" and "data.frame"). The spectra tibble is expected to contain at least the column spc (list-column with spectral matrices stored in a list) and wavenumbers or wavelengths (list-column that contains list -of x-axis values).

xunit_lcol

Character vector that specifies column name where x-axis -axis units are stored within spc_tbl. Default is "wavenumber".

spc_lcol

Character vector that specifies which column (list-column) -contains spectra to be sliced. Default is "spc".

xvalues_cut

List of numeric vectors that contains upper and lower bounds of respective regions to keep in spectra. The spectral regions outside -the xvalues_cut intervals will be cut out in the output spectra.

- -

Value

- -

Spectral tibble (data frame with list-columns) with sliced x-axis +of x-axis values).

+ + +
xunit_lcol
+

Character vector that specifies column name where x-axis +axis units are stored within spc_tbl. Default is "wavenumber".

+ + +
spc_lcol
+

Character vector that specifies which column (list-column) +contains spectra to be sliced. Default is "spc".

+ + +
xvalues_cut
+

List of numeric vectors that contains upper and lower bounds of respective regions to keep in spectra. The spectral regions outside +the xvalues_cut intervals will be cut out in the output spectra.

+ +
+
+

Value

+ + +

Spectral tibble (data frame with list-columns) with sliced x-axis column and spectral column. Both the x-axis list-column and the spectral -tibble list-column only contain data specified within the xvalues_cut -argument (list of numeric vectors).

+tibble list-column only contain data specified within the xvalues_cut

+ + +

argument (list of numeric vectors).

+
+
- - - + + diff --git a/dev/reference/split_df2l.html b/dev/reference/split_df2l.html index c5c8485..62e1c09 100644 --- a/dev/reference/split_df2l.html +++ b/dev/reference/split_df2l.html @@ -1,68 +1,13 @@ - - - - - - - -Split a tibble data frame into a list of tibbles by a group column — split_df2l • simplerspec - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Split a tibble data frame into a list of tibbles by a group column — split_df2l • simplerspec + + - - - - -
-
- -
- -
+
@@ -122,52 +54,50 @@ grouping column within tibble." /> grouping column within tibble.

-
split_df2l(tbl_df, group)
- -

Arguments

- - - - - - - - - - -
tbl_df

Tibble data frame

group

Character vector with name of column based on which tibble -is split into a list of tibbles

- -

Value

- -

List of tibbles. Each tibble contains data split by +

+
split_df2l(tbl_df, group)
+
+ +
+

Arguments

+
tbl_df
+

Tibble data frame

+ + +
group
+

Character vector with name of column based on which tibble +is split into a list of tibbles

+ +
+
+

Value

+ + +

List of tibbles. Each tibble contains data split by a group column within tbl_df.

+
+
- - - + + diff --git a/dev/sitemap.xml b/dev/sitemap.xml index 8e9c782..6024f58 100644 --- a/dev/sitemap.xml +++ b/dev/sitemap.xml @@ -1,9 +1,18 @@ + https://philipp-baumann.github.io/simplerspec/LICENSE.html + + + https://philipp-baumann.github.io/simplerspec/authors.html + + https://philipp-baumann.github.io/simplerspec/index.html + https://philipp-baumann.github.io/simplerspec/news/index.html + + https://philipp-baumann.github.io/simplerspec/reference/assess_multimodels.html @@ -34,6 +43,9 @@ https://philipp-baumann.github.io/simplerspec/reference/gather_spc.html + https://philipp-baumann.github.io/simplerspec/reference/index.html + + https://philipp-baumann.github.io/simplerspec/reference/join_chem_spec.html