[FLR-list] [FLR-devel] length
Laurie
lauriekell at googlemail.com
Tue May 14 19:11:41 CEST 2013
Think it would make sense to have a specific class inherited from FLPar
for length.
Laurie
On 14/05/13 15:05, Iago Mosqueira wrote:
>
>
> On 05/13/2013 05:51 PM, Laurie Kell wrote:
>> maybe allowing param dim to be named len in FLPar, as is allowed for
>> quant and age in FLQuant may be all that is needed.
> Right now the validity only checks that last dim is iter
>
> validFLPar <- function(object) {
>
> # Last dimension is called 'iter' ...
> if(names(dimnames(object))[length(dim(object))] != "iter")
> return("last dimension must be named 'iter'")
> # ... and the first 'params'
>
> return(TRUE)
> }
>
> So len will work, let's see which methods fail. But maybe for an
> specific type of information like this it would make more sense to have
> a class based on FLPar, with appropriate validity checks and specific
> methods. You could then dispatch on it any ALK method
>
>
> Iago
>
>>
>> On Mon, May 13, 2013 at 9:09 AM, Laurie <lauriekell at googlemail.com
>> <mailto:lauriekell at googlemail.com>> wrote:
>>
>> Thanks, I worked with Alberto Murta and José Francisco Loff to
>> implement ALKr which is on CRAN. There are some method for
>> simulation, e.g. to generate size from length and growth paramters
>> and also to simuate ALKs and LFDs, that will be in the next release.
>> I am thinking about how to store ALKs and length data in FLR and for
>> methods to work on them.
>>
>> Laurie
>>
>>
>>
>>
>> On 13/05/13 07:56, Ernesto wrote:
>>
>> HI,
>>
>> I'm about to start looking at it. My idea is to develop a method to
>> convert length to ages using vB (or other) to feed the a4a stock
>> assessment method. Still working on the details but I want to use vB
>> parameters and their uncertainty to introduce uncertainty on the
>> FLStock
>> object and run the model for each iteration. Kind of operating model
>> approach.
>>
>> I've done something similar for setting up M. It's all based on
>> a new
>> FLModelSim class (in dev now).
>>
>> You can take a look at it using the prototype. Source this one
>> https://raw.github.com/__ejardim/a4a/master/packages/__FLa4a/R/FLSimpleModel-class.R
>> <https://raw.github.com/ejardim/a4a/master/packages/FLa4a/R/FLSimpleModel-class.R>
>> and the new M class for a4a is here
>> https://raw.github.com/__ejardim/a4a/master/packages/__FLa4a/R/a4aM-class.R
>> <https://raw.github.com/ejardim/a4a/master/packages/FLa4a/R/a4aM-class.R>
>> , there's some examples.
>>
>> Best
>>
>> EJ
>>
>> On 05/10/2013 11:09 AM, Laurie wrote:
>>
>> Hi
>>
>> I am working on length and age data as part of linking the
>> ALKr package
>> and FLR.
>>
>> I was going to propose to use FLPar to add the length dim.
>>
>> Has anybody done anything with length, i.e. methods, data
>> classes etc....
>>
>> Laurie
>>
>> ------------------------------__------------------------------__------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph
>> databases and
>> their applications. This 200-page book is written by three
>> acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today!
>> http://p.sf.net/sfu/neotech___d2d_may
>> <http://p.sf.net/sfu/neotech_d2d_may>
>> _________________________________________________
>> FLR-devel mailing list
>> FLR-devel at lists.sourceforge.__net
>> <mailto:FLR-devel at lists.sourceforge.net>
>> https://lists.sourceforge.net/__lists/listinfo/flr-devel
>> <https://lists.sourceforge.net/lists/listinfo/flr-devel>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>
>>
>>
>> _______________________________________________
>> FLR-devel mailing list
>> FLR-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/flr-devel
>>
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
More information about the flr-list
mailing list