search for: tdiff

Displaying 7 results from an estimated 7 matches for "tdiff".

Did you mean: diff
2011 Jul 27
1
create a index.date column
Dear R users, I created a matrix that tells me the first day of use of a category by id. #Calculate time difference test$tdiff<-as.numeric(difftime(as.Date("2002-09-01"), test$ftime, units = "days")) # obtain the index date per person and dcategory index.date.test<-tapply(test$tdiff, list(test$id, test$rcat), max) Nonetheless, at the moment I think will be more useful to create a column in m...
2012 Feb 17
2
(subscript) logical subscript too long in using apply
Dear ALL I have this function in R: func_LN <- function(data){ med_ge <- matrix(c(rep(NA,nrow(data)*ncol(data))), nrow = nrow(data), ncol=ncol(data), byrow=TRUE) T <- matrix(c(rep(NA,length(n)*ncol(data))), nrow = length(n), ncol=ncol(data), byrow=TRUE) Tdiff<- matrix(c(rep(NA,length(n)*ncol(data))), nrow = length(n), ncol=ncol(data), byrow=TRUE) T1<- c(rep(NA,ncol(data))) T0<- c(rep(NA,ncol(data))) cov_rank<-matrix(c(rep(NA,ncol(data)*ncol(data))), nrow = ncol(data), ncol = ncol(data) , byrow=TRUE) med <- c(rep(NA,ncol(data))) mean_ge &...
2002 Jun 27
1
Building from a source-code library under windows
...if void nlme_two_comp_zero_CI_lag (long int *norow, double *maxoorder, double *OMAT, long int *ndrow, double *maxdorder, double *DMAT, long int *logparam, long int *logresp, double *Resp) { long int i, j, No = *norow, Nd = *ndrow, LogParam = *logparam, LogResp = *logresp; double Tdiff, a, b, k21, origReset, counterDose, id, T1, constReseti, constResetj, MaxOORDER = *maxoorder, MaxDORDER = *maxdorder, *OTime, *ITIME, *CL, *CLD, *V1, *VSS, *Tlag, *OID, *OORDER, *DTime, *DDose, *DID, *DORDER, *DEVID, *OrigDTime, *OrigDDose, *OrigDID, *OrigDORDER, *OrigDEVID, *tempDTi...
2007 Oct 29
1
time difference error
Hello! I have a problem making a new variabel in a dataframe that consists of a time difference. It seems that the new variable gets into the dataframe but I cant look at it anymoore. Here is what hapens. > tdiff<- difftime(Kontrolltid, Starttid, units="auto")> tdiffTime differences in mins [1] 168 NA NA 165 175 140 191 195 130 160 135 165 330 178 141 NA 119 90 70[20] 99 115 70 65 90 90 65 90 75 85 93 52 75 60 90 105 70 65 60[39] 85 110 65 60 98 62 71 61 41 80...
2014 Nov 17
2
Bug-report:rsync may hung if time jumps backwards
...sync-2.6.9/util.c 2014-11-11 13:02:11.495609639 +0800 +++ rsync-2.6.9/BUILD/rsync-2.6.9/util.c 2014-11-11 13:01:37.606569696 +0800 @@ -1174,8 +1174,11 @@ * Always returns TRUE. (In the future it might return FALSE if * interrupted.) **/ + int msleep(int t) { + +#if 0 int tdiff = 0; struct timeval tval, t1, t2; @@ -1192,7 +1195,8 @@ tdiff = (t2.tv_sec - t1.tv_sec)*1000 + (t2.tv_usec - t1.tv_usec)/1000; } - +#endif + usleep(t*1000); return True; } Is it a correct fix? any comments would be appreciated!!! -------------- next...
2013 Apr 12
2
[Bug 9789] New: rsync hangs when NTP update system clock time
...ng through the code of rsync it looks like there is problem in msleep function. It uses gettimeofday linux API. If system clock time changes between two successive calls to this function then the time difference will be a very large value which is getting assigned to a 32bit signed integer variable tdiff. Since that time difference is larger than 2^31, tdiff finally gets a large negative number. this number is passed as positive value in the select call used for sleeping. Thus ultimately leading to rsync hang for a very large amount of time. In my case it hanged for 550hrs. I tried to assigned NTP...
1999 Mar 09
2
summary() of lm() problem (PR#135)
...NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 315, 315, 190, NA, NA, NA, NA, NA, NA, NA, 4, 4, 8, 440, 440, 440, 390, 390, NA, NA, NA, NA, NA, NA, NA, NA, 3, 3, NA, NA, NA, NA, NA), .Dim = c(10, 83), .Dimnames = list(NULL, c("pxid", "ddiff", "tdiff", "td30", "td60", "td90", "td120", "td180", "td240", "td300", "td360", "td420", "td480", "td2000", "dbase", "db1", "db1.5", "db2", "db2.5...