seasonder_createSeaSondeRCS.list {SeaSondeR} | R Documentation |
Create a SeaSondeRCS object from a list
Description
This method creates a SeaSondeRCS object directly from a list containing the header and data.
Usage
## S3 method for class 'list'
seasonder_createSeaSondeRCS(x, specs_path = NULL, ...)
Arguments
x |
A list with components |
specs_path |
Not used for list inputs. |
... |
Additional parameters that may be used for setting object attributes. |
Details
The function creates a new SeaSondeRCS object using new_SeaSondeRCS
with the provided header and data.
It then appends a processing step, generated by SeaSondeRCS_creation_step_text("list")
, to the object via
seasonder_setSeaSondeRCS_ProcessingSteps
.
Value
A SeaSondeRCS object.
See Also
new_SeaSondeRCS
,
seasonder_setSeaSondeRCS_ProcessingSteps
,
SeaSondeRCS_creation_step_text
Examples
# Given a list with header and data, create a SeaSondeRCS object
cs_file <- system.file("css_data/CSS_TORA_24_04_04_0700.cs", package = "SeaSondeR")
specs_path <- seasonder_defaultSpecsFilePath("CS")
temp_obj <- seasonder_readSeaSondeCSFile(cs_file, specs_path)
cs_list <- list(header = temp_obj$header, data = temp_obj$data)
rcs_object <- seasonder_createSeaSondeRCS(cs_list)
[Package SeaSondeR version 0.2.8 Index]