getAllCompoundIds {ChemmineR} | R Documentation

## 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

### Author(s)

Kevin Horan

### Examples

       #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")

[Package ChemmineR version 3.39.2 Index]