metadata
(containing fillable
and filename
), data
(containing
longitude
and latitude
) and processingLog
.coastline[["longitude"]]
or coastline[["latitude"]]
, with
abbreviations (e.g. coastline[["lo"]]
) being permitted so long
as they are distinct. However, metadata must be named in full.} coastline[["longitude"]] <- value
, and of course the same can be
done for latitude
.}
show
method (e.g.
show(coastline)
) displays information about the object.}
oce
dataset
named coastlineWorld
came from Natural Earth.coastlineWorld
, and the
.rda
files with e.g., for a
shapefile-formate file is named "mycoastline.shp"
to be stored
in a directory named /data/coastlines
, one might do as
follows. mycoastline <- oce::read.oce("mycoastline.shp")
save(mycoastline, file="/data/coastlines/mycoastline.rda")
tools::resaveRdaFiles("/data/coastlines/mycoastline.rda", compress="auto")
after which accessing the saved mycoastline
dataset is as simple as
writing
load("/data/coastlines/mycoastline.rda")
Note: it is important to save the coastline with a new name, to avoid
conflicts with coastlineWorld
in the present package, and
coastlineWorldMedium
and coastlineWorldFine
in the
as.coastline
to convert data to this form,
read.coastline
to read data in various formats, and
plot.coastline
to plot coastlines.