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
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