Displaying 3 results from an estimated 3 matches for "posixtime".
2000 Jul 20
4
RFC: System and time support functions in R
...le.info returns times as days/fractional days since 1 Jan
1970, which chron() can interpret. But that is not *quite* correct,
as not all days are the same length due to the (rare) use of
leap-seconds. And chron does not know about timezones.
My suggestion here is to implement a time class called POSIXtime which is
just POSIX's time_t. (Number of seconds since 1 Jan 1970.) And another time
class POSIXtm which is an R list giving a struct tm (secs, mins, hours, day
of month, month, year, day of week, day of year). (I think it also needs
to record the timezone used.) Then we can have R functions...
2009 Jan 13
2
particulars of importing/loading libraries
...Sklyar
Depends: R (>= 2.7.1), methods
Maintainer: Oleg Sklyar <osklyar at maninvestments.com>
Description: pack1
LazyLoad: yes
License: Proprietary
URL: http://www.maninvestments.com
LazyLoad: no
--- pack1: NAMESPACE ------
import(methods)
exportPattern("^[^\\.]")
exportClasses(posixTime)
exportMethods(as.POSIXct)
--- pack1: posix.R ------
setClass("posixTime", "numeric")
setGeneric("as.POSIXct")
setMethod("as.POSIXct", signature(x="posixTime"),
function(x, tz) {
z = x at .Data
attr(z,"class") = c(&qu...
2010 Sep 01
0
problems with JGR and standard R GUI closing during calculations
..."numeric"))
dat$times <- as.chron(dat$times,patt)
dat
}
## to get activation diameters
getDact <- function(size,perc,fccn) approx(perc,size,(1-fccn)*100)$y
## format times for output
formatTimes <- function (x, patt = "%m/%d/%Y %H:%M:%S") {
posixtime <- as.POSIXct(paste(as.Date(dates(x)), times(x)%%1))
format(posixtime, patt)
}
###import data ***(where the GUI will close)****
smps <- read.smps("SMPS_OL_cuml_v2.txt")
fccn <- read.fCCN("fCCN_ONLY_forSMPS_v1.txt")
###output table by fCCN times
## loop
DactTable <...