Package 'sapid'

Title: A Strategy to Analyze Plant Extracts Taste In Depth
Description: This package provides the infrastructure to implement a Strategy to Analyze Plant Extracts Taste In Depth.
Authors: Adriano Rutz [aut, cre]
Maintainer: Adriano Rutz <[email protected]>
License: GPL (>= 3)
Version: 0.0.0.9001
Built: 2025-01-12 09:28:52 UTC
Source: https://github.com/adafede/sapid

Help Index


Get session info

Description

Get session info

Usage

get_session_info(session)

Arguments

session

Session

Examples

NULL

Clean terms

Description

Replace terms in a given string using a dictionary, with intelligent matching and case-insensitive handling.

Usage

harmonize_terms(dictionary, x, mode = "word", fallback = FALSE)

Arguments

dictionary

Path to the dictionary file or a data frame containing replacement terms

x

Character string to be cleaned

mode

Replacement mode: 'word' for word boundary matching, 'substring' for partial matching

fallback

Logical, whether to fall back to original string if no replacements occur

Value

Character string with terms replaced

Examples

## Not run: 
harmonize_terms(
  dictionary = "path/to/dictionary.csv",
  x = "Some text with specific terms"
)

## End(Not run)

Harmonize terms df

Description

Harmonize terms df

Usage

harmonize_terms_df(
  df,
  dictionary_generic_path,
  dictionary_napping_path,
  dictionary_specific_path
)

Arguments

df

Df

dictionary_generic_path

Dictionary generic path

dictionary_napping_path

Dictionary napping path

dictionary_specific_path

Dictionary specific path

Examples

NULL

Load consistent profiles

Description

Load consistent profiles

Usage

load_consistent_profiles(input, min_jury = 2L)

Arguments

input

Input

min_jury

Min jury. Default to 2.

Examples

NULL

Load session

Description

Load session

Usage

load_session(input_dir, session_info, tab)

Arguments

input_dir

Input dir

session_info

Session info

tab

Tab

Examples

NULL