aar_import: Import AAR Data

Description Usage Arguments Value Examples

View source: R/aar_import.R

Description

A set of functions to convert AAR data into tidy dataframes for use in R.

Usage

1
aar_import(file_name, machine = "HPLC", conc_unit = "pmol", na_rep = FALSE)

Arguments

file_name

path to a .csv file containing AAR data in the following format:

- Sample name/ID is in the first column, labelled sample_name

- All other info columns follow sample_name

- The last column before concentration and D/L data is the total concentration, labelled total_conc

- Amino acid concentration columns are in the form form asx_c etc. (all lowercase)

- L-Thr, L-His and L-Arg should just be named thr_c, his_c, arg_c for HPLC

- Amino acid D/L columns are in the form asx, glx, ser etc.

- All instances of #DIV/0! have been converted to NA

machine

"UHPLC" or "HPLC"

conc_unit

if your concentration data is in pmol / mg (the default for NE_aar spreadsheets), use "nmol" to convert to nmol / mg

na_rep

replace all values of 0 with NA

Value

Returns a tidy table for use in ggplot2

Examples

1
aar_data <- aar_import("/R/Data/HGAB perforam.csv", machine = "UHPLC", conc_unit = "nmol", na_rep = TRUE)

PSBroccoli/Test1 documentation built on Jan. 8, 2020, 12:02 a.m.