getMap: Access (maybe after creating) a persistent named list in a...

Description Usage Arguments Value Examples

Description

This function creates an object of S3 class "motusMap", which behaves like a named list, allowing access via the $ and [[ ]] operators. Elements assigned to the list are immediately stored in table name in the database pointed to by src. An element can be removed from the list by assigning NULL to it.

Usage

1
getMap(src, name = "meta")

Arguments

src

dplyr src_sqlite to a database or an SQLiteConnection

name

name of table in database; default: "meta"

Value

an object of class "motusMap".

Examples

1
2
3
4
5
x = getMap(safeSrcSQLite("SG-1234BBBK5678.motus"), "meta")
x$recvSerno
x$MACAddr <- "01235a3be098"
x$recvSerno <- NULL
x[["MACAddr"]]

jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.