Skip to content
Prev 31247 / 398506 Next

array to data.frame

Dear Peter:

Does the following not work in certain situations:

A <- array(1:4, dim=c(2,2))
dimnames(A) <- list(NULL, c("a", "b"))
as.data.frame(A)

Or is it deprecated for other reasons?

Thanks,
Spencer Graves
Peter Dalgaard BSA wrote: