Description Usage Arguments Author(s) References Examples

View source: R/twoway.formula.R

The formula method reshapes the data set from long to wide format and calls the default method.

1 2 |

`formula` |
A formula of the form |

`data` |
The name of the data set, containing a row vector, column factor and a numeric response |

`subset` |
An expression to subset the data (unused) |

`na.action` |
What to do with NAs? (unused) |

`...` |
other arguments, passed down |

Michael Friendly and Richard Heiberger

the conversion of long to wide in a formula method was suggested on https://stackoverflow.com/questions/50469320/how-to-write-a-formula-method-that-converts-long-to-wide

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.