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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -