Learn R Programming

webchem (version 0.4.0)

fn_percept: Retrieve flavor percepts from www.flavornet.org

Description

Retreive flavor percepts from http://www.flavornet.org. Flavornet is a database of 738 compounds with odors perceptible to humans detected using gas chromatography ofactometry (GCO).

Usage

fn_percept(CAS, verbose = TRUE, ...)

Arguments

CAS

character; CAS number to search by. See is.cas for correct formatting

verbose

logical; should a verbose output be printed on the console?

...

not currently used

Value

A named character vector containing flavor percepts or NA's in the case of CAS numbers that are not found

Examples

Run this code
# NOT RUN {
# might fail if website is not available
fn_percept("123-32-0")

CASs <- c("75-07-0",  "64-17-5",  "109-66-0", "78-94-4",  "78-93-3")
fn_percept(CASs)
# }

Run the code above in your browser using DataLab