data: data with at least two columns, one with the length measurements, one with the sampling date
Lname: name of the length column
Dname: name of the date column
Fname: optional; name of column with frequency, in case each length was measured more than one time
bin_size: size of the bins in cm (Default: 2)
species: character; to store species name in lfq list
stock: character; to store stock ID or name in lfq list
comment: optional character; to store comments conerning the lfq list
Lmin: minimum length for the midLengths vector (default: 0)
length_unit: unit of length measurements, either "cm" (default), "mm" or "m"
plus_group: logical; should a plus group be created? If yes you will be asked to insert the length for the plus group in the console (default: FALSE). Instead of inserting the length of the plus group via the console, the value can be incorporated in a vector, e.g. plus_group = c(TRUE, 30).
aggregate_dates: logical; indicating whether dates should be lumped in monthly sampling times (assuming sampling always aound the 15th of each month; default is FALSE). More exact lumping can only done manually and then sampling dates provided in data.
plot: logical; should a graph of lfq data be displayed? (Default: FALSE)
Returns
A list of "lfq" class with
dates dates of sampling times (class Date),
midLengths midpoints of the length classes,
catch matrix with catches/counts per length class (row) and sampling date (column).