Description Usage Arguments Author(s) Examples
This function adds a new data source (name/description and version) for tracking data within a bioassayR database. This can be used later to identify the source of any specific activity data within the database, or to limit analysis to data from specific source(s).
1 | addDataSource(database, description, version)
|
database |
A |
description |
A string containing a name or description of the new data source. This exact value will be used as a key for querying and loading data from this source. |
version |
A string with the version and/or date of the data source. This can be used to track the date in which a non-version data source was mirrored. |
Tyler Backman
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## create a test database
library(bioassayR)
filename <- tempfile()
mydb <- newBioassayDB(filename, indexed=FALSE)
## add a new data source
addDataSource(mydb, description="bioassayR_sample", version="1.0")
## list data sources loaded
mydb
## close and delete database
disconnectBioassayDB(mydb)
unlink(filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.