time - R: Writing hms to XLS using XLConnect -
i trying write time-value excel-worksheet using r , xlconnect. time need write converted numeric value (seconds) hms.
however, when writing value written text rather time-value. how can change behaviour? ie. how tell xlconnect write time-value instead of text?
require(xlconnect) exc <- loadworkbook("test.xlsx", create = true) times<- c(60, 5.4, 361) times.hms<- hms::hms(times) mt<- data.frame(times= times.hms) createsheet(exc, "test") writeworksheet(exc, mt, sheet = "test") saveworkbook(exc)
Comments
Post a Comment