compute_LL: Calculate the liquid limit from the flow curve

View source: R/compute_LL.R

compute_LLR Documentation

Calculate the liquid limit from the flow curve

Description

Uses a blow count of 25 to interpolate the liquid limit.

Usage

compute_LL(df)

Arguments

df

data frame containing columns named water_content and blow_count. Water contents may be easily computed with add_w() once the raw data is joined with the appropriate set of tin tares from example_tin_tares.

Details

\lifecycle

maturing

Value

numeric vector (length 1) containing the liquid limit as a decimal

References

ASTM D4318 - 17e1

Examples

# These operations work best with the pipe and other tidyverse conventions
library(dplyr)
library(magrittr)
library(purrr)
library(tidyr)

# compute LL for one sample
sample_2_LL <- example_LL_data[5:8, ] %>%
  left_join(example_tin_tares$`2020-05-24`) %>%
  add_w() %>%
  compute_LL()
sample_2_LL

# use dplyr and purrr to iterate over multiple samples using a list-column
# inside a nested tibble
example_LL_data %>%
  left_join(example_tin_tares$`2020-05-24`) %>%
  add_w() %>%
  group_by(expt_mix_num) %>%
  nest() %>%
  mutate(LL = map_dbl(data, compute_LL) )

evanmascitti/soiltestr documentation built on Oct. 6, 2022, 5:32 p.m.