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

View source: R/getMap.R

getMapR Documentation

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

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

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


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

MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.