Description Usage Arguments Details Value Examples
Insert new annotation
1 2 | db_annotate(db, object, annotationtext = NULL, type = "Site group",
annotationcode = NULL)
|
db |
database connecton object |
object |
An existing object in the database to annotate such as a site or specimen code. |
annotationtext |
Text of annotation |
type |
annotation type from controlled vocab |
annotationcode |
Optionally, a unique codename for the annotation |
This function adds an existing annotation to an existing feature in the database such as a site code, sampling feature, or action. Once objects are annotated, they can be more easily queried as a group based on these labels or tags that are not otherwise represented in the database structure. Either an annotation code or annotation text must be provided to identify the annotation
TRUE if successful
1 2 3 4 | db <- rodm2::create_sqlite(connect = TRUE)
db_describe_annotation(db, annotationtypecv = "Site group", annotationtext = "Riparian wells")
db_describe_site(db, site_code = "Site 001")
db_annotate(db, object = "Site 001", annotationtext = "Riparian wells")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.