Skip to content
Prev 313088 / 398503 Next

Excluding all missing values with dcast ("reshape2" package)

Thanks for the response. The drop option of dcast was the first thing I
tried. Sorry for the lack of reproducibility, but my data set is large, I
couldn't find anything in the package examples, and I had hoped the
modification would be straightforward. Using dcast was my first choice
because it returns a data frame. I was successful using xtabs; there was
just the extra step of converting the returned table to a data frame.
Thanks again!

-M.L.

This is not a reproducible example ;)

anyways, dcast has an attribute:
drop
should missing combinations dropped or kept?

does that not do what you want?
On 03.12.2012, at 16:07, Michael.Laviolette at dhhs.state.nh.us wrote: