tokami / TropFishR

Tropical Fisheries Analysis with R
24 stars 19 forks source link

Error in catchCurve #48

Open ccmorales2 opened 8 months ago

ccmorales2 commented 8 months ago

Hi, @tokami. I am recently having an error in completing the catchCurve and I am confused. I tried the code selar_res_cc <- catchCurve(selar_lfq_catch_vec, catch_columns = c(1, 2), reg_int = c(10.5, 14.5), calc_ogive = TRUE)

Here is the error message: Error in catchCurve(selar_lfq_catch_vec, catch_columns = c(1, 2), reg_int = c(10.5, : You need to assign values to Linf and K for the catch curve based on length-frequency data!

What should I do?

samrozmajeed commented 8 months ago

Hello, morales .

For me this code work well

res_cc <- catchCurve(lfq_catch_vec, reg_int = NULL,auto = FALSE , calc_ogive = TRUE,catch_columns = c(1,2))