seasonder_getMUSICDualSolutionsProportion {SeaSondeR} | R Documentation |
Retrieve Proportion of Dual Solutions from MUSIC Data
Description
This function extracts the proportion of dual solutions from the MUSIC data in a SeaSondeRCS object.
Usage
seasonder_getMUSICDualSolutionsProportion(seasonder_cs_object)
Arguments
seasonder_cs_object |
A SeaSondeRCS object containing MUSIC data. |
Details
The function checks the MUSIC_data attribute for a dual_solutions_proportion value. If not available, it defaults to NA_real_.
Value
A numeric value representing the dual solutions proportion, or NA if not set.
Examples
# Minimal example for seasonder_getMUSICDualSolutionsProportion
cs_file <- system.file("css_data/CSS_TORA_24_04_04_0700.cs", package = "SeaSondeR")
apm_file <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")
apm_obj <- seasonder_readSeaSondeRAPMFile(apm_file)
cs_obj <- seasonder_createSeaSondeRCS(cs_file, seasonder_apm_object = apm_obj)
dual_prop <- seasonder_getMUSICDualSolutionsProportion(cs_obj)
print(dual_prop)
[Package SeaSondeR version 0.2.8 Index]