Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get getTrophicLevel() to work #16

Closed
camillanovaglio opened this issue Feb 20, 2014 · 1 comment
Closed

can't get getTrophicLevel() to work #16

camillanovaglio opened this issue Feb 20, 2014 · 1 comment

Comments

@camillanovaglio
Copy link

Hi,
I would like to extrapolate trophic levels for a subset of fish.data:

getTrophicLevel(fish.data[1:10]) # works

reef <- which_fish("reef", "habitat", fish.data)
reef_troph<-getTrophicLevel(fish.data[reef]) # does not work

Error in xpathApply(summaryPage, "//*[contains(@href, '/Ecology/FishEcologySummary.php')][1]", :
subscript out of bounds

What am I doing wrong?

Cheers,
Cami

@tpoisot
Copy link

tpoisot commented Mar 18, 2014

Hi @camillanovaglio

It can be that the fish you are trying to look at has no /Ecology/FishEcologySummary.php page associated. Can you copy/paste the output of fish.data[1:10] ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants