Learn R Programming

vkR (version 0.2)

db_update: Update existing records

Description

Update existing records

Usage

db_update(
  object,
  key,
  collection,
  suffix = "",
  db_name = db_getActive(),
  upsert = FALSE
)

Arguments

object

Object to insert

key

Key

collection

Collection name

suffix

Collection suffix

db_name

Database name

upsert

Insert a new document if no matching document exists