[R] #Keeping row names when using as.data.frame.matrix

Tim tfox at mde.state.md.us
Fri May 17 18:46:29 CEST 2013

#question I have the following data set:



ScowNo<-c("4001","3002","4002","BR 8","4002","BR 8","4001")

dataset<- data.frame(EstimatedQuantity,Date,ScowNo)

#I'm trying to convert the data set into a contingency table and then back
into a regular data frame:


#I'm trying to keep the row names (in xtabsdata) as the dates.
#But the row names keep coming up as integers.
#How can I preserve the row names as dates when
#the table is converted back to a data frame?

View this message in context: http://r.789695.n4.nabble.com/Keeping-row-names-when-using-as-data-frame-matrix-tp4667344.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list