# NOT RUN {
## col
### get all genera at one level up
upstream("Pinus contorta", db = 'col', upto = 'genus')
### goes to same level, Abies is a genus
upstream("Abies", db = 'col', upto = 'genus')
upstream('Pinus contorta', db = 'col', upto = 'family')
upstream('Poa annua', db = 'col', upto = 'family')
upstream('Poa annua', db = 'col', upto = 'order')
## itis
upstream(x='Pinus contorta', db = 'itis', upto = 'genus')
## both
upstream(get_ids('Pinus contorta', db = c('col','itis')), upto = 'genus')
# Use rows parameter to select certain
upstream('Poa annua', db = 'col', upto = 'genus')
upstream('Poa annua', db = 'col', upto = 'genus', rows=1)
# use curl options
res <- upstream('Poa annua', db = 'col', upto = 'genus', verbose = TRUE)
# }
Run the code above in your browser using DataLab