I got an error when trying to extract a 1-column subset of a data frame (called "my.output") created by dplyr/summarize. The ncol() function says that my.output has 4 columns, but "my.output[4]" fails. Note that converting my.output using as.data.frame() makes for a happy ending.
Is this the intended behavior of dplyr?
Tx,
John
library(dplyr)
# set up data frame
rows = 100
repcnt = 50
sexes = c("Female", "Male")
heights = c("Med", "Short", "Tall")