I have a data frame named AE
, typically I set the row names to NULL to allow an rbind
. In this cases when I do that, the row.names are still "1","2", and do not allow a bind. I am not understanding what is different about this data.frame.
#load Data
AE <- structure(list(mean = c(0.363510076570372, 0.636489923429628),
SE = c(0.00728114835455055, 0.00728114835455055), grp = c("D",
"DP"), level = c("fair or poor health",
"good or better health"), counts = structure(list(counts = c(25405L,
25405L)), row.names = c("counts", "counts1"), class = "data.frame")), row.names = c(NA,
-2L), class = "data.frame")
#remove rownames
rownames( AE ) <- NULL
#this is the line i want to work
rbind( AE, AE)