Re: [R] reading Excel file

From: Hans-Peter <>
Date: Wed, 26 Mar 2008 15:44:00 +0100

yet another possibility...

if you look at 'help(package=xlsReadWrite)' you'll find a function
'dateTimeToStr' by which you can convert your date-numbers from column 3
into a string. Something along (untested):

myRead <- function( fn ) {
  dat <- read.xls( file = fn, dateTimeAs = "numeric" )   dat[,3] <- dateTimeToStr( dat[,3] ) # or any other conversion function   dat

'dateTimeAs' argument is (probably) needed to retrieve plain numbers and
override the default conversion to date string.


	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 26 Mar 2008 - 14:45:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Mar 2008 - 15:30:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive