Learn R Programming

oce (version 0.9-20)

write.ctd: Write a CTD Data Object as a CSV File

Description

Writes a comma-separated file containing the data frame stored in the data slot of the first argument. The file is suitable for reading with a spreadsheet, or with read.csv. Note that the output file will retain none of the meta-data stored in object.

Usage

write.ctd(object, file = stop("'file' must be specified"))

Arguments

object
A ctd object, i.e. one inheriting from ctd-class.
file
Either a character string (the file name) or a connection. This is a mandatory argument.

See Also

The documentation for ctd-class explains the structure of CTD objects, and also outlines the other functions dealing with them.

Other things related to ctd data: [[,ctd-method, [[<-,ctd-method, as.ctd, cnvName2oceName, ctd-class, ctdDecimate, ctdFindProfiles, ctdRaw, ctdTrim, ctd, handleFlags,ctd-method, plot,ctd-method, plotProfile, plotScan, plotTS, read.ctd.itp, read.ctd.odf, read.ctd.sbe, read.ctd.woce.other, read.ctd.woce, read.ctd, subset,ctd-method, summary,ctd-method, woceNames2oceNames

Examples

Run this code
## Not run: 
# library(oce)
# data(ctd)
# write.ctd(ctd, "ctd.csv")
# d <- read.csv("ctd.csv")
# plot(as.ctd(d$salinity, d$temperature, d$pressure))
# ## End(Not run)

Run the code above in your browser using DataLab