library(oce)
data(ctd)
# Example 1: change latitude
ctd2 <- oceEdit(ctd,
item = "latitude", value = 47.8879,
reason = "illustration", person = "Dan Kelley"
)
# Example 2: add 0.1 dbar to pressure
ctd3 <- oceEdit(ctd, action = "x@data$pressure<-x@data$pressure+0.1")
Run the code above in your browser using DataLab