I am using the following loop to output the growth parameters/coefficients 'L infinity' and 'K', I would like to know if there is a way that I can get the code to output the printed values into a df, as there are over 400 different Haul_IDs and copying them individually from the output will take me an age.
for(a in unique(growth$Haul_ID)) {
svTypical <- vbStarts(Height_t2~t2,data=growth[growth$Haul_ID==a,],plot=FALSE) #can add or remove plot=TRUE
print(a)
print(svTypical)
unlist(svTypical) #unlist to save space when viewing results
}
In the dataframe all I need is;
Haul ID L infinity K