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

data issues on LBSPR script #15

Open
Gabriellecotonea opened this issue Sep 23, 2022 · 2 comments
Open

data issues on LBSPR script #15

Gabriellecotonea opened this issue Sep 23, 2022 · 2 comments

Comments

@Gabriellecotonea
Copy link

Hello Adrian !

I have got some issus when trying to run the LBSPR script with my data. I followed the script as it is explains but the problem appears in the "Reading in Example CSV" part when I try to create the object with my length frequency data in this command ;
Len2 <- new("LB_lengths", LB_pars=MyPars, file=paste0(datdir, "/LFreq_MultiYrHead.csv"), dataType="freq", header=TRUE)

I tried several thing, but the file is related to the function DataDir with sends everything to a place I can't find on my laptop. Even by changing the data in the csv file directly in the LBSPR package it doesn't change anything when importing data. So I tried to change the data directory with the DataDir function but it's not working. And finally, without the DataDir function, and by using read.csv2 with my file it's not working, maybe because of the "new" function?

Anyway, can you help me so that I can run the script with my data please ? I hope my explanations are clear !

Thanks in adavance
Gabrielle Cotonéa

@AdrianHordyk
Copy link
Owner

It's hard to diagnose the problem without seeing the error messages, or having reproducible code. Can you share an example data file and the code that's giving the error, as well as the error messages it is producing?

@Gabriellecotonea
Copy link
Author

Hi,
I finally managed to import my data and apply the model to it.
But I have another question; I would like to bootstrap the length frequency data to get the uncertainty around the SPR as you did for Palau in 2015. I don't really know how to do it, do you have some advice or a document that could help me?

Thanks

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

No branches or pull requests

2 participants