search for: dataearly2008

Displaying 1 result from an estimated 1 matches for "dataearly2008".

2008 Oct 30
1
trying to figure out reorder.factor in gdata
I'm trying to make a factor with levels for day of week, appear as Monday-Sunday, rather than alphabetically. I'm using reorder.factor from gdata package, but obviously not using it properly. What am I doing wrong? Thanks. >data <- read.table("DataEarly2008.txt", sep=" ", header=T, as.is=1:2) >str(data) 'data.frame': 7953 obs. of 9 variables: $ AdmitDate : chr "6/28/2004" "9/24/2004" "12/29/2004" "3/15/2005" ... $ DischargeDate : chr "6/24/2008" "5/15/2008&qu...