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 |
Get session info
get_session_info(session)
get_session_info(session)
session |
Session |
NULL
NULL
Replace terms in a given string using a dictionary, with intelligent matching and case-insensitive handling.
harmonize_terms(dictionary, x, mode = "word", fallback = FALSE)
harmonize_terms(dictionary, x, mode = "word", fallback = FALSE)
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 |
Character string with terms replaced
## Not run: harmonize_terms( dictionary = "path/to/dictionary.csv", x = "Some text with specific terms" ) ## End(Not run)
## Not run: harmonize_terms( dictionary = "path/to/dictionary.csv", x = "Some text with specific terms" ) ## End(Not run)
Harmonize terms df
harmonize_terms_df( df, dictionary_generic_path, dictionary_napping_path, dictionary_specific_path )
harmonize_terms_df( df, dictionary_generic_path, dictionary_napping_path, dictionary_specific_path )
df |
Df |
dictionary_generic_path |
Dictionary generic path |
dictionary_napping_path |
Dictionary napping path |
dictionary_specific_path |
Dictionary specific path |
NULL
NULL
Load consistent profiles
load_consistent_profiles(input, min_jury = 2L)
load_consistent_profiles(input, min_jury = 2L)
input |
Input |
min_jury |
Min jury. Default to 2. |
NULL
NULL
Load session
load_session(input_dir, session_info, tab)
load_session(input_dir, session_info, tab)
input_dir |
Input dir |
session_info |
Session info |
tab |
Tab |
NULL
NULL