sectionAddStation: Add a CTD Station to a Section

Description Usage Arguments Value Historical note Author(s) See Also Examples

View source: R/section.R

Description

Add a CTD profile to an existing section.

Usage

1

Arguments

section

A section to which a station is to be added.

station

A ctd object holding data for the station to be added.

Value

An object of class section.

Historical note

Until March 2015, this operation was carried out with the + operator, but at that time, the syntax was flagged by the development version of R, so it was changed to the present form.

Author(s)

Dan Kelley

See Also

Other things related to section data: [[,section-method, [[<-,section-method, as.section, handleFlags,section-method, plot,section-method, read.section, section-class, sectionGrid, sectionSmooth, sectionSort, section, subset,section-method, summary,section-method

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(oce)
data(ctd)
ctd2 <- ctd
ctd2[["temperature"]] <- ctd2[["temperature"]] + 0.5
ctd2[["latitude"]] <- ctd2[["latitude"]] + 0.1
section <- as.section(c("ctd", "ctd2"))
ctd3 <- ctd
ctd3[["temperature"]] <- ctd[["temperature"]] + 1
ctd3[["latitude"]] <- ctd[["latitude"]] + 0.1
ctd3[["station"]] <- "Stn 3"
sectionAddStation(section, ctd3)

oce documentation built on May 29, 2017, 12:19 p.m.

Search within the oce package
Search all R packages, documentation and source code