Description Usage Arguments Value References
View source: R/add_water_depth.R
This function adds an attribute with water depth to the stations dataframe extracted for a certain position (lat, lon) based on batymetry.
1 | add_water_depth(stations, bathymetry, col_lon, col_lat, col_name)
|
stations |
Dataframe (tibble) with the attributes "Lat_DD_midpt" and "Lon_DD_midpt". |
bathymetry |
An xyz dataframe (tibble) or object of class bathy created by the marmap package. |
col_lon |
Column name with longitudes in stations dataframe |
col_lat |
Column name with latitudes in stations dataframe |
col_name |
New column name in which the extracted depth will be added. |
Returns a dataframe with depth added in a new column based on bathymetry.
marmap R-package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.