Displaying 20 results from an estimated 26 matches for "mytimes".
Did you mean:
mtimes
2011 Feb 14
3
how to order POSIXt objects ?
I have a problem ordering by descending magnitude a POSIXt object. Can
someone help please and let me know how to work around this. My goal is to
be able to order my data by DATE and then by descending TIME.
I have tried to include as much info as possible below. The problem stems
from trying to read in times from a CSV file. I have converted the character
time values to a POSIXt object using the
2008 Apr 15
1
by inconsistently strips class - with fix
...h
it is applied.
quick reason:
tapply strips class when simplify is set to TRUE (the default) due to
the class stripping behaviour of unlist.
quick answer:
This can be fixed by invoking tapply with simplify=FALSE, or changing
tapply to use do.call(c instead of unlist
executable example:
mytimes=data.frame(date = 1:3 + Sys.time(), set = c(1,1,2))
by(mytimes$date, mytimes$set, function(x)x)
INDICES: 1
[1] "2008-04-15 11:41:38 BST" "2008-04-15 11:41:39 BST"
----------------------------------------------------------------------------------------
INDICES: 2
[1] "2008...
2009 Aug 13
3
Finding minimum of time subset
Dear List,
I have a data frame of data taken every few seconds. I would like to subset the data to retain only the data taken on the quarter hour, and as close to the quarter hour as possible. So far I have figured out how to subset the data to the quarter hour, but not how to keep only the minimum time for each quarter hour.
For example:
2008 Oct 13
3
lattice panel question
Dear R users,
How to change lattice panel label/text from the automatically generated
label (based on the conditioning) to our own set of label?
for example:
someStuff <- data.frame(area = rep(c("SOUTH", "NORTH", "EAST", "WEST"), each
= 25),
group = rep(c("A","B","C","D"), each = 5),
2020 Mar 10
2
Fwd: Windows upssched does not work
Hi,
I have problem with upssched on windows. Upssched is not executed. I
have 2 scripts, 1 for notification in upsmon and second for scheduling
in upssched. Monitoring is working fine, script write to log. I'm
using binary windows installer 2.6.5-6 from NUT.
Here are my configs:
--- nut.conf
MODE=netclient
--- upsmon.conf
MONITOR ups_1000 at 192.168.3.95 1 <user> <password> slave
2008 Apr 14
3
Logistic regression
Dear all,
I am trying to fit a non linear regression model to time series data.
If I do this:
reg.logis = nls(myVar~SSlogis(myTime,Asym,xmid,scal))
I get this error message (translated to English from French):
Erreur in nls(y ~ 1/(1 + exp((xmid - x)/scal)), data = xy, start =
list(xmid = aux[1], :
le pas 0.000488281 became inferior to 'minFactor' of 0.000976562
I then tried to set
2011 Aug 31
1
formatting a 6 million row data set; creating a censoring variable
List,
Consider the following data.
gender mygroup id
1 F A 1
2 F B 2
3 F B 2
4 F B 2
5 F C 2
6 F C 2
7 F C 2
8 F D 2
9 F D 2
10 F D 2
11 F D 2
12 F D 2
13 F D 2
14 M A 3
15 M A 3
16 M A 3
17
2004 Jun 22
2
ts & daily timeseries
I have defined a daily timeseries for the 365 days of 2003 issuing:
myts = ts(dati[,2:10],frequency=365,)
> myts
Time Series:
Start = c(1, 1)
End = c(1, 365)
Frequency = 365
and
mytime = as.POSIXct(strptime(as.character(dati[,1]),format="%Y-%m-%d"))
contains the dates from "2003-01-01" to "2003-12-31"
How can I combine mytime and myts in order to list
2020 Mar 10
0
Fwd: Windows upssched does not work
On Tue, 10 Mar 2020, Radoslav Chovan wrote:
> I have problem with upssched on windows. Upssched is not executed. I
> have 2 scripts, 1 for notification in upsmon and second for scheduling
> in upssched. Monitoring is working fine, script write to log. I'm
> using binary windows installer 2.6.5-6 from NUT.
> --- upsmon.conf
> MONITOR ups_1000 at 192.168.3.95 1 <user>
2009 May 04
1
how to remove ( ) ? when using write.csv(chron.object)
Hello all,
I don' like to have ( ) around my datetime, when send the csv file to somebody.
How to remove it?
>library(chron)
>mydate <- c("2009-05-03","2009-06-07")
>mytime <- c("10:30:00","10:20:00")
>mydatetime <- chron(dates=mydate,times=mytime,format=c("y-m-d","h:m:s"))
>write.csv(mydatetime)
2012 Jan 26
2
Inserting a character into a character string XXXX
Hello everyone,
I have a character vector of 24 hour time values in the format hm
without the delimiting ":". How can I insert the ":" immediately to
the left of the second digit from the right?
mytimes<-scan(what="")
1457
1457
1310
1158
137
1855
Thanks!
Dan
2006 Jan 19
1
chron library: format.times, parse.format and h:m (PR#8507)
Due to the following lines in parse.format:
else if (nf == 3) {
sep <- ""
fmt <- substring(format, first = 1:3, last = 1:3)
}
If a format code has 3 characters, it will not use a separator:
> library(chron)
> mytime = times('7:15:00')
> format(mytime,'h:m')
[1] "0715"
- Phil Spector
2020 Mar 11
1
Fwd: Windows upssched does not work
ut 10. 3. 2020 o 16:34 Roger Price <roger at rogerprice.org> napísal(a):
>
> On Tue, 10 Mar 2020, Radoslav Chovan wrote:
>
> > I have problem with upssched on windows. Upssched is not executed. I
> > have 2 scripts, 1 for notification in upsmon and second for scheduling
> > in upssched. Monitoring is working fine, script write to log. I'm
> > using binary
2009 Sep 04
0
Mongrel Timeout for System Calls
I''ve got a problem with timing out a C RFC call.
Essentially, I''ve got code that initializes and executes an RFC to a
remote server that, depending on the server, could take a significant
amount of time to return a response.
To minimize end-user impact, I wrapped the call with a timeout of 20
seconds.
When I executed a test, it didn''t appear to do anything as the
2008 Nov 06
3
How to manipulate the time data without the date?
Hi,all
I only got the time data such as:
tms<-c("19:30:23","18:39:10".....)
I want to manipulate this time series data. For example, plus one second(or
minute) or minus one second
This data only has the time(h:m:s), without the date. I know that there are
chron package, ISOPix class and the timeDate class, but all these class need
the input of date.
How can we
2006 Aug 08
0
gamm question
Hello,
I have two gamm question (I am using gamm in mgcv).
1. In have, say 5 time series. Monthly data, 20 year. The 5 time series are from 5 stations. The data are in vectors, so I have fitted something along the lines of:
tmp<-gamm(Y ~ s(Year,by=station1)+s(Year,by=station2)+
s(Year,by=station3)+s(Year,by=station4)+
2006 Sep 14
1
working with strptime data
...uot;%m/%d/%Y %H:%M"))
And create a plot as such:
plot(MyTime,MyData)
----------------------------------------------------------
And here is a specific question:
How do I calculate the number of months than are spanned between two
POSIXct values?
(i.e. NumOfMonths <- MonthFunction(range(MyTimeStampData))
Thanks-in-advance,
- rich
2011 Sep 23
1
p values in coxph()
Hi,
I'm interested in building a Cox PH model for survival modeling, using 2
covariates (x1 and x2). x1 represents a 'baseline' covariate, whereas x2
represents a 'new' covariate, and my goal is to figure out where x2 adds
significant predictive information over x1.
Ideally, I could get a p-value for doing this. Originally, I thought of
doing some kind of likelihood ratio
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
# HG changeset patch
# User Zhigang Wang <zhigang.x.wang@oracle.com>
# Date 1342720736 14400
# Node ID ec9655b30a5fa5b5abb3e05505f681f9be559613
# Parent 43e21ce7f22151524b800a6cf0ac4ba1233b34a7
pygrub: add syslog support to pygrub
Currently, when pygrub failed, we don''t know the reason because xend/xl will
not capture the stderr message.
This patch will log the error message to
2008 Jul 02
1
Problem with strucchange package
Dear R Users,
I am attempting to use the strucchange package but get an error which is
difficult to decipher.
I get the following error with breakpoints:
> bp<-breakpoints(regr[,1]~regr[,2]+regr[,3])
Error in my.RSS.table[as.character(i), 3:4] <- c(pot.index[opt],
break.RSS[opt]) :
nothing to replace with
I was wondering if anyone has seen this issue before and off the top of