search for: formattign

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

Did you mean: formating
2008 Jan 08
1
retaining "POSIXct" formatting when using apply(muff, FUN=MAX) on POSIXct dataframe?
...ing when using apply, with FUN=max? #example: mydata <- rep(Sys.time(), 10) mydf <- data.frame(matrix(data=mydata, nrow=2, ncol=length(mydata) ) ) for(i in seq(mydf))class(mydf[[i]]) <- class(mydata) str(mydf) maxdates <- apply(mydf,2,max,na.rm=T) str(maxdates) #Why is the formattign now "chr", and not "POSIXct"? #Is there a good way to retin "POSIXct" formatting? --------------------------------- [[alternative HTML version deleted]]