## Not run:
# ## col
# upstream("Pinus contorta", db = 'col', upto = 'genus') # get all genera at one level up
# upstream("Abies", db = 'col', upto = 'genus') # goes to same level, Abies is a 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', config=verbose())
# ## End(Not run)
Run the code above in your browser using DataLab