[R] Margins in dcast (reshape2)

Ista Zahn istazahn at gmail.com
Wed Jun 26 13:12:17 CEST 2013

Hi Johannes,

I think the documentation is wrong. The Readme at
https://github.com/hadley/reshape says grand_row and grand_col have
been dropped. You should submit a bug report at
https://github.com/hadley/reshape/issues describing the documentation


On Wed, Jun 26, 2013 at 4:15 AM, Johannes Radinger
<johannesradinger at gmail.com> wrote:
> Hi,
> I'd like to get mean values for the margins of my casted data.frame.
> For the casting I am using dcast() from reshape2. However, when I set
> the margins parameter (margins=c("grand\_row")) I get following error
> concerning
> an unrecognized escape character '\_'. So what is the correct command
> to get the outermost margins only in reshape2?
> /johannes
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list