dataFrameDao: A Data Access Object (DAO) that stores the data in the...

Description Usage Arguments Value Generally about DAO objects See Also Examples

View source: R/dataFrameDao.R

Description

DAO is a list that provides basic backend CRUD functionality to the crudTableServer. This DAO stores internally the data into a data frame, that is, the data are NOT stored on the disk in any way.

Usage

1

Arguments

d

A data frame to create DAO object for

Value

An S3 object of class dao, which is a list having as elements the functions described above

Generally about DAO objects

Generally, all DAO objects have to provide the following functions:

See Also

sqlDao, is.dao

Examples

1
2
3
4
5
6
7
d <- CO2[1:5, ]
dao <- dataFrameDao(d)
str(dao$getAttributes())
print(dao$getData())
dao$insert(list(Plant='Qn1', Type='Quebec', Treatment='chilled', conc=1000, uptake=2000))
dao$delete(1)
print(dao$getData)

beerda/crudtable documentation built on July 13, 2020, 2:16 p.m.