silco {bSi} | R Documentation |
Calculate concentration(C0) of Silica from samples
Description
This function calculates C0 values based on the provided slope (m) and y-intercept (y) from the tdgraph function. The sample data is loaded from a CSV file and the intercept (c) from plotStdC function is used.
Usage
silco(m, y, c, data, output_dir = tempdir())
Arguments
m |
The slope value (replace with the actual slope from plotStdC). |
y |
The y-intercept (replace with the actual intercept from tdgraph). |
c |
The intercept (replace with the actual intercept from plotStdC). |
data |
Path to the CSV file containing output values from plotStdC. |
output_dir |
The directory where the output CSV file should be saved. Defaults to the temporary directory (tempdir()). |
Value
A data frame with sample_id and C0 values.
Examples
data <- system.file("extdata", "WLO6output.csv", package = "bSi")
m <- 5.6073 # Replace with the actual slope from plotStdC
y <- 0.1234 # Replace with the actual intercept from tdgraph
c <- 0.5678 # Replace with the actual intercept from plotStdC
C0 <- silco(m, y, c, data)
[Package bSi version 1.0.0 Index]