Skip to content

food.web() function - Getting "Error: replacement has length zero" #56

@hollyannperryman

Description

@hollyannperryman

Hei! I am continuing the testing out of ReactiveAtlantis functions with the inputs and outputs from the Gulf of Mexico Atlantis model, and I ran into an error with the food.web() function. I was trying to look at the food webs for the shrimp groups (BSH, PSH, and WSH) over time, and I start getting the stated error. At first I thought it had something to do with the column headers in the groups.csv file, so I changed the headers that are getting called in the food.web() function (from what I could see in the r code). It fixed the issue for some of the other fish groups, but I am still getting the error with the shrimp groups. I attached the files I am using in the function in case you wanted to test it yourself.
GulfGroupsForR.csv
GOM_OUTDietCheck.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions