Displaying 1 result from an estimated 1 matches for "spot_frequency_readin".
2009 Oct 05
6
Date-Time-Stamp input method for user-specific formats
...type should be displayed as text or what to
do about it.
PLEA:
Please, can anyone give any help whatsoever, however tenuous?
CODE, DATA & RESULTS:
Function to Read required data, intended to make the datetime column of the
data (example given further below) into POSIXct values:
<<<
spot_frequency_readin <- function(file,nrows=-1) {
# create temp class
setClass("t_class2_", representation("character"))
setAs("character", "t_class2_", function(from) {sapply(from, function(x) {
if (nchar(x)==10) {
as.POSIXct(strptime(x,format="%d/%m/%Y"))
}
else...