-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
53 lines (37 loc) · 2.05 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tidyspec <img src="tidyspec_ggplot2.png" align="right" height="138" alt="" />
<!-- badges: start -->
<!-- badges: end -->
The goal of **tidyspec** is to provide a friendly pipeline for spectroscopy analysis using the tidy data philosophy.
## Installation
You can install the development version of tidyspec from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("marceelrf/tidyspec")
```
## About
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_`:
- **Transformation**: Convert data from absorbance to transmittance (`spec_abs2trans`) & from transmittance to absorbance (`spec_trans2abs`).
- **Normalize**: Normalize the data to range 0-1 (`spec_norm_01`), normalize between a custom range (`spec_norm_minmax`), or normalize to have a standard deviation of one (`spec_norm_var`).
- **Baseline correction**: Correct the baseline using the the *rolling ball* algorithm (`spec_blc_rollingBall`) or *Iterative Restricted Least Squares* (`spec_blc_irls`). The function `spec_bl` return the baseline vectors (`spec_bl_rollingBall`, `spec_bl_irls`).
- **Smooth correction**: Smooth the data using the average window (`spec_smooth_avg`) or using the Savitzky-Golay algorithm (`spec_smooth_sga`).
- **Derivative**: Create differential data from the spectra (`spec_diff`).
- **Preview**: Preview your data while applying changes statically (`spec_smartplot`) or interactively (`spec_smartplotly`).
- **Import/Export**: This family functions will be created in the next moment.
## Example
This is a basic example which shows you how to solve a common problem:
```{r example,eval=FALSE}
library(tidyspec)
## basic example code
```