A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marceelrf/tidyspec below:

marceelrf/tidyspec: Analyze spectroscopy data using tidy-data philosophy

tidyspec

The goal of tidyspec is to provide a friendly pipeline for spectroscopy analysis using the tidy data philosophy.

You can install from CRAN:

install.packages("tidyspec")

You can install the development version of tidyspec from GitHub with:

# install.packages("devtools")
devtools::install_github("marceelrf/tidyspec")

The tidyspec package was design to enable the data analysis of spectroscopy data (as IR, Raman, NMR) with the tidy-data format. There are 6 families of functions in tidyspec, all starting with spec_:

The function set_spec_wn simplifies the use of functions by globally defining the column that contains the wave numbers. User can check the wavenumber column with check_wn_col.

This is a basic example which shows you how to solve a common problem:

head(CoHAspec)
#> # A tibble: 6 x 5
#>   Wavenumber CoHA01 CoHA025 CoHA05 CoHA100
#>        <dbl>  <dbl>   <dbl>  <dbl>   <dbl>
#> 1       399.  0.871    1.36  1.17    1.05 
#> 2       401.  0.893    1.24  1.05    0.925
#> 3       403.  0.910    1.20  0.997   0.876
#> 4       405.  0.914    1.19  0.982   0.867
#> 5       407.  0.908    1.18  0.965   0.857
#> 6       409.  0.887    1.14  0.936   0.828
Set the wavenumber column
set_spec_wn("Wavenumber")
#> Successfully set 'Wavenumber' as the default wavenumber column.

check_wn_col()
#> The current wavenumber column is: Wavenumber
spec_smartplot(CoHAspec)
#> Warning: wn_col not specified. Using default value: Wavenumber.
#> This message is shown at most once every 2 hours.
#> Warning: xmin not specified. Using default value: 399.1992.
#> This message is shown at most once every 2 hours.
#> Warning: xmax not specified. Using default value: 3999.706.
#> This message is shown at most once every 2 hours.

CoHAspec |>
    spec_abs2trans() |>
    spec_smartplot(type = "transmittance")

spec_select(CoHAspec, CoHA01) |>
  spec_smartplot(geom = "line")

Our plan is for tidyspec to be the first step toward a complete ecosystem for spectral data analysis. For spectral band analysis, we are creating the bandspec package that handles different band profiles. We also intend to create a package focused on producing publication-level graphics for spectral data. We haven’t thought of a name yet, so we welcome suggestions!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4