model.frame {FLCore} | R Documentation

## Method model.frame

### Description

`model.frame` returns a `data.frame` with the variables in a wide format, to be used by a `formula` in any model method.

### Generic function

model.frame(formula)

### Methods

signature(formula=FLlst) :
  Returns a wide data.frame
signature(formula=FLComp) :
  Returns a wide data.frame

### Author(s)

The FLR Team

### See Also

model.frame, FLQuants-class, FLlst-class

### Examples

    data(ple4)
    flqs <- FLQuants(stock=stock.n(ple4), catch=catch.n(ple4))
    fmf <- model.frame(flqs)
    head(fmf)

[Package FLCore version 2.2 Index]