count_db_ids: Return the number of ids

Description Usage Arguments Details Value See Also Examples

View source: R/db-get-tools.R

Description

Return the number of ids in a user's restez database.

Usage

1
count_db_ids(db = "nucleotide")

Arguments

db

character, database name

Details

Requires an open connection. If no connection or db 0 is returned.

Value

integer

See Also

Other database: db_create, db_delete, db_download, demo_db_create, is_in_db, list_db_ids

Examples

1
2
3
4
5
6
7
8
library(restez)
restez_path_set(filepath = tempdir())
demo_db_create(n = 5)
restez_connect()
(count_db_ids())

# delete demo after example
db_delete(everything = TRUE)

restez documentation built on Nov. 27, 2018, 1:05 a.m.