Learn R Programming

ChemmineR (version 2.24.2)

getAllCompoundIds: Get ALl Compound Ids

Description

Return a vector of every compound id in the given database.

Usage

getAllCompoundIds(conn)

Arguments

conn
A database connection object, such as is returned by initDb.

Value

A vector of compound_id numbers

Examples

Run this code
   #create and initialize a new SQLite database
   conn = initDb("test1.db")

	data(sdfsample)

	#load data
	ids=loadSdf(conn,sdfsample)
	ids2=getAllCompoundIds(conn)
	#ids == ids2

	unlink("test1.db")

Run the code above in your browser using DataLab