search for: timediff

Displaying 20 results from an estimated 21 matches for "timediff".

2014 Jul 11
2
outliers (Marta valdes lopez)
...ichero tiene los decimales como puntos y no como comas como tu le indicas. Te dejo un ejemplo #--------------------------------------------------------------------------------------------------------------------- setwd(dir="c:/Users/usuario/Desktop/") library(outliers) filename<-"timediff.csv" time<-read.csv(filename, sep=";",header=TRUE,dec=".") # Esto es lo que has de cambiar chisq.out.test(time$TimeDiff) # Ayuda adicional #--------------------------------------------------------------------- # Si no supones normalidad #-------------------------------...
2014 Jul 14
2
outliers (Marta valdes lopez)
...s maneras seguro que tienes un informe de como recogiste los datos y puedes trazar el origen de este dato en concreto. Creo que eso es mejor que cualquier test. De todas maneras a mi el test me sale: > setwd(dir="c:/Users/usuario/Desktop/")> library(outliers)> filename<-"timediff.csv"> time<-read.csv(filename, sep=";",header=TRUE,dec=".") # Esto es lo que has de cambiar> chisq.out.test(time$TimeDiff) chi-squared test for outlier data: time$TimeDiff X-squared = 73260.07, p-value < 2.2e-16 alternative hypothesis: highest value 14478.4 i...
2012 Jul 17
1
Script help: Determining Time Difference between two data points.
...names = c(NA, 100L), class = "data.frame") I am trying to write code that will check to see if the score is above a certain point, and then if it is, calculate how long it stays above that point. I'm not incredibly familiar with R, or programming in general. Here is my attempt: # TimeDiff is supposed to be a vector containing time objects. The first is subtracted from the last to give a time difference. #TimeTable is supposed to be a vector of time differences. for(i in seq(along=Data$Score)){ if(Data$Score[i]>=140){ (Data$Date[i])->TimeDiff[length(TimeDiff)+1]} # I put t...
2014 Jul 11
3
outliers
Hola! Quiero encontrar los outliers de una columna de datos que son diferencias de tiempo, aunque esta en formato numero no en horas. El paquete que encontre que me podria servir es el outliers e hice este script: library(outliers) filename<-"timediff.csv" time<-read.csv(filename, sep=";",header=TRUE,dec=",") chisq.out.test(time$TimeDiff) Pero me da error , he intentado ponerlo como numero en vez de como factor pero hago algo mal porque no me deja. Si alguien me puede dar una idea, muchas gracias! Un saludo -------...
2008 Mar 06
1
AEL - SQL and TIMEDIFF()
Hello list, I'm having some problem integrating the SELECT TIMEDIFF() and SELECT DATEDIFF() in my code. The syntax I'm using works without any problems if I run them directly from the MySQL Client, but from the Asterisk Dialplan it just wont work. Is there a limitation in the MySQL() application for the Asterisk dialplan that produces this error? <CODE>...
2010 Jul 22
1
Updating a Data Frame
...t, I want to update certain columns of this data-frame by calling in an update function. The function looks like this: # get events data. This populates a global event data frame in the R-script events <- getEvents(con, eventsFilePath) # events has columns eventid, timeStamp, isSynchronized, timeDiff; with millions of rows updateDB <- function(eventid, newTimeStamp, oldTimeStamp){ timeDiff <- newTimeStamp - oldTimeStamp #Update the events Data Frame events[events$eventid == eventid, "timestamp"] <<- newTimeStamp events[events$eventid == eventid, "isSynchronized&qu...
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi, I was trying to use the :select parameter to select a calculated row, but it appears that the parameter is not picked up by the paginate method. I want to add the following to the select statement: timediff(now(), created_on) as age So I tried: @story_pages, @stories = paginate :stories, {:per_page => 10, :include => ''user'', :select => ''timediff(now(), story.created_on) as story_age''} ... to no avail. I know I can create a method named "age"...
2012 Jun 14
3
Time difference between two dates/timing
...yMatrix <- *DATETIME HEADER1 HEADER2* 1/1/2010 0:10 197.1947 100.0859 1/1/2010 0:20 203.8811 100.1013 1/1/2010 0:30 206.564 100.0433 1/1/2010 0:40 207.9563 99.9393 i want to get the time difference in minutes between two date. TimeDiff <- MyMatrix[1,1] - MyMatrix[2,1] TimeDiff <- 10 (need to get like this ) Could you please help me ? -- View this message in context: http://r.789695.n4.nabble.com/Time-difference-between-two-dates-timing-tp4633353.html Sent from the R help mailing list archive at Nabble.com.
2010 Jul 25
1
Left Outer Join 2 DF's on Multiple Conditions
Hi, I am trying to execute the following SQL statement using two data frames: tab1, tab2 : Two Tables Select tab1.*, tab2.*, tab1.tobiiTime - tab2.ruiTime as timeDiff, IFNULL(n-m, -9999999) as alwaysIncrement FROM tab1 LEFT OUTER JOIN tab2 On tab1.data1 - tab2.mouseX = 0 And tab1.data2 - tab2.mouseY = 0 I am trying to do the following in R:- *#Getting error here:* data <- merge(tab1,tab2, all.x=TRUE, by=(data$data1 - data$mouseX == 0), by...
2009 Sep 24
2
aggregate() - error message
...fference in the two data sets. Could someone shed light on the error message ??Maybe that would help me figure out where the problem is. ? Thanks very much for any help. ? Juliane ? PS: The examples?below contain the ?first 5?rows ?of my two datafiles. ? ? ? TripsData?1 ???????????Trip Distance TimeDiff Tripmatch 7329 35,36 172.7453?? 0.0041???? 35,36 7371 36,35 172.7453?? 0.0004???? 35,36 7372 35,36 172.7453?? 0.0000???? 35,36 7373 36,35 172.7453?? 0.0004???? 35,36 7374 35,36 172.7453?? 0.0001???? 35,36 ? TripsData?2 ? ????????????Trip Distance TimeDiff Tripmatch 1617 19,20 1087.365?? 0.0441????...
2006 Jun 20
2
timediff
Hello, I've got 2 dates like these : "2006-02-08 17:12:55" "2006-02-08 17:15:26" I wish to get the middle of these two date : "2006-02-08 17 :14 :10" Is there is a function in R to do that ? Thks all guillaume [[alternative HTML version deleted]]
2009 Dec 07
1
Subset of time observations where timediff > 60 secs
Dear list members I have a rather large vector (part of a data frame) giving the time (date + time, POSIXct) of observations. The times are irregular (with both small and large jumps) but increasing, and there are several millions of them. I now wish to reduce my data set, so that I only have observations which are at least (for example) 60 seconds apart. Basically, I need (all) the indices
2005 Feb 08
0
Samba patch kludge-gmt fixes red files in WinCvs
...rce/lib/time.c Fri Oct 22 15:53:01 2004 @@ -28,6 +28,7 @@ int extra_time_offset = 0; +BOOL use_kludge_gmt = True; #ifndef CHAR_BIT #define CHAR_BIT 8 @@ -315,8 +316,11 @@ ret = (time_t)(d+0.5); /* this takes us from kludge-GMT to real GMT */ - ret -= get_serverzone(); - ret += LocTimeDiff(ret); + if (use_kludge_gmt) + { + ret -= get_serverzone(); + ret += LocTimeDiff(ret); + } return(ret); } @@ -359,8 +363,11 @@ ret = (time_t)(d+0.5); /* this takes us from kludge-GMT to real GMT */ - ret -= get_serverzone(); - ret += LocTimeDiff(ret); + if (use_kludge_gmt) + { +...
2014 Jul 09
3
error com un archivo
...ado con el archivo en excel y los datos de na estan correctos. library(chron) library(xlsx) filename<-"monicap_50.csv" DBxy<-read.csv(filename, sep=";",header=TRUE,dec=",") DBx<-na.omit(DBxy) names(DBx)<-c("Boat","DateTime","TimeDiff", "Latitude", "Longitude", "Course", "Speed", "distNm", "calcSpeed", "calcCourse", "distHb", "Harbour", "idTrip","vmsAngle", "calcAngle", "vmsLeg", "calcLeg&qu...
2005 Nov 03
8
Wintertime/summertime difference - Samba servers show wrong time ?
When the Central European Time was last switched back to standard, at 03:00 last Sunday, the October 30th, a process died on one of my Windows clients with a mysterious "unknown error". When it was restarted it just went merrily on with its task. Luckily it wasn't part of a life support system. I found out that the immediate cause was how file timestamps were interpreted/presented
2014 Jun 04
2
error de incompatible methods
...e y funciono hasta donde me dio error: setwd("C:/Users/Marta/Desktop/DB") library(chron) library(xlsx) filename<-"univerest_50.csv" DBxy<-read.csv(filename, sep=",",header=TRUE) DBx<-DBxy names(DBx)<-c("Boat","DateTime","TimeDiff", "Latitude", "Longitude", "Course", "Speed", "distNm", "calcSpeed", "calcCourse", "distHb", "Harbour", "idTrip","vmsAngle", "calcAngle", "vmsLeg", "calcLeg&qu...
2008 Apr 21
4
prod(0, 1:1000) ; 0 * Inf etc
I think most of us would expect prod(0:1000) to return 0, and ... ... it does. However, many of us also expect prod(x1, x2) to be equivalent to prod(c(x1,x2)) the same as we can expect that for min(), max(), sum() and such members of the "Summary" group. Consequently, prod(0, 1:1000) should also return 0, but as you see, it gives NaN which may be a bit puzzling... The
2004 Apr 07
0
samba-1.9.01 on MIPS32
Samba-1.9.01 Build Sysytem : RedHat 9 (2.4.20-8) Target System : MIPS32 CrossComplie : mipsel-uclibc- FLAGSM = -DLINUX LIBSM = -lcrypt -lnsl Running on MIPS32 embedded system # ./smbd -D -d5 -a Log : # cat /tmp/log timediff=28800 01/01/70 02:11:06 smbd version 1.9.01 started Copyright Andrew Tridgell 1992,1993,1994 Sysconfig: saved_ids = 0 uid=0 gid=0 euid=0 egid=0 Initialising global parameters Processing configuration file "/samba/smb.conf" Processing section "[global]" doing parameter l...
2014 Jun 03
3
error de incompatible methods
Hola!! Estoy intentando ejecutar un script com horas, al principio ejecute estos comandos DBx$Date<-strptime(DBx$Date, "%d-%m-%Y") ###Monicap use ; other use Y DBx$Year<-as.POSIXlt(DBx$Date)$year+1900 if(filename!="monicap_50.csv") {DBx$Time<-paste(DBx$Time, ":00", sep="")} Pero me daba el error de que mi base de datos tenia las
2008 Jan 31
1
Newbie: Using R to analyse Apache logs
hits=-2.5 tests=BAYES_00,FORGED_RCVD_HELO X-USF-Spam-Flag: NO Hi, I have a requirement to scan Apache logs and discover ``exceptions''. Exceptions can be of two types: 1. A single IP generating a large amount of traffic within a given time frame (for definable values of ``large'' and ``time frame''). 2. A single IP hitting a wide set of URLs on the server (indicates