Displaying 20 results from an estimated 700 matches similar to: "problem in plotting numeric x by POSIXt class with lattice"
2006 Mar 28
1
Passing the input name to "text_field_with_auto_complete"
I have a view with two auto complete input boxes. How do I give the
input a name like I can for "text_input" helper?
I''ve looked at the docs
(http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000462)
but cant make sense of it...
<p><label for="search_start_station">From</label><br/>
<%=
2011 Mar 23
0
suggestions re trunc.POSIXt
Dear all,
I hope this is a right place to post this; r-help might be appropriate
but it looks like I'm suggesting a change in base package, so I
decided to post here. (+ Apologies if that has been changed recently
-- the version I'm using is R.2.12.2 on Windows.)
I've noticed an unexpected behavior of trunc.POSIXt:
foo <- seq(as.POSIXct( "2009-10-23 22:00:00"),
2011 Mar 25
2
Preserving the class of POSIXt objects
Dear all,
I am working with a list of objects each of which contains two POSIXct
objects (say, $Start and $End) and a number of different data in
addition to that. Now an easy way to extract Start times of all object
could be sapply(x, "[", "Start") but this converts them all to
numeric, and so does sapply(x, "[[", "Start"). lapply preserves the
class but
2013 Mar 05
1
Reading Wyoming radiosonde data files with RadioSonde package
Hi,
I need to do some analysis on historic daily radiosonde data I download
from the Wyoming Univ. web page (
http://weather.uwyo.edu/upperair/sounding.html).
I am trying to use the RadioSonde package (V 1.3), but the format of the
files from Wyoming don't match what RadioSonde is expecting.
Has anyone used the Radiosonde package on the Wyoming data?
Here is a sample of the Wyoming file
2008 Jan 26
5
autoprovision 200+ linksys phones setup
Hi there,
We have plans to install an office (not call center) with the following setup:
200 linksys 942 phones (sip + g711) on a LAN
a server with a dual port E1 sangoma and a remora card with 4 fxo modules.
So far when we want to setup a linksys phone, we need to use the http
interface of each phone, disable/enable a lot of things and plug it
into the network. this is not the best scenario for
2011 Jul 17
6
Buildung Wine on OS X
Hi folks out there,
I'm new to this project but very keen on more information. The reason I want to have Wine, is because I want to get "Klingon Academy" on OS X. On every Windows Revision above Win 98 the game fails, so I thought: "Why not do it the other way around and try Wine?"
So, here I am. And after the first look into the Wiki page, I was VERY confused on how I
2005 Apr 14
1
xtable POSIXt
Hi,
I was trying like to print out data frame with POSIXct column
in html format using xtable package, but I got error message
when trying to print the table. Here is example:
aaa<-data.frame(as.POSIXct(strptime('03 2005', '%d %Y')),0)
aaa.tab<-xtable(aaa)
print(aaa.tab)
Error in Math.POSIXt(x + ifelse(x == 0, 1, 0)) :
abs not defined for POSIXt objects
2006 May 06
0
'col'-parameter in 'hist.POSIXt'
Hi guys.
The 'col'-parameter in the 'hist'-method for the classes 'POSIXt' and
'date' does not perform as it does in the default 'hist'-method.
Unfortunately, it does not only change the filling color of the boxes,
but also the color of the axislines.
[Using 'graphics'-package version 2.2.0]
Examples:
# with POSIXct-object
hist(.leap.seconds,
2005 Jan 05
1
hist.POSIXt filled bars - axis color changes
Hi all,
I'm plotting a histogram of dates and would like to shade the bars, e.g.
hist(.leap.seconds,"years",col='gray',freq=T)
-but the axis color also changes, how do I prevent that?
thx in advance
Janus
[[alternative HTML version deleted]]
2003 Aug 18
1
round.POSIXt sometimes crashes R (PR#3763)
Full_Name: andrea capodicasa
Version: 1.7.0
OS: w2k sp3
Submission from: (NULL) (212.17.194.154)
Hi all,
the problem is when you try to round.Posix an empty vector of dates
Please give a look to this code:
> data=seq(ISOdate(2001,1,1),by="day",length=3)
> data
[1] "2001-01-01 13:00:00 ora solare Europa occidentale"
[2] "2001-01-02 13:00:00 ora solare Europa
2006 Sep 25
0
na.encode in format for Date and POSIXt classes
Hello!
na.encode does not have any effect on format of NA values of Date and
POSIXct (POSIXlt?) "atomic" classes in a data.frame. Here is the example
(the same in R 2.3.1 and 2.5.0 (2006-09-19 r39409)):
testData <- data.frame(num=c(NA, 2.6),
int=c(1, NA),
fac=factor(c(NA, "abc")),
cha=c("a",
2007 Feb 21
1
Adding difftime objects to POSIXt objects
Hello,
?DateTimeClasses states that "one can add or subtract a number of
seconds or a 'difftime' object from a date-time object, but not add two
date-time objects."
So, is the below expected behavior?
> x <- Sys.time()
> x
[1] "2007-02-21 16:19:56 CST"
> x + as.difftime("1","%H")
[1] "2007-02-21 16:19:57 CST"
Warning
2010 Apr 29
1
bug in cut.POSIXt(..., breaks = <numeric>) and cut.Date
x <- seq(as.POSIXct("2000-01-01"), by = "days", length = 20)
cut(x, breaks = 3)
# Error in `levels<-.factor`(`*tmp*`, value = character(0)) :
# number of levels differs
cut(as.Date(x), breaks = 3)
# Error in `levels<-.factor`(`*tmp*`, value = character(0)) :
# number of levels differs
Index: base/R/datetime.R
2002 May 17
0
round.POSIXt gets certain values wrong
For certain values, round.POSIXt(tm,'day') does not round to midnight
as documented. The reason is that trunc.POSIXt() does not adjust the
value of the isdst element. Assuming my assessment of the reason is
correct, I have a potential solution to offer. Additional discussion
is in bug report #1543.
-Don
> x <- c(as.POSIXct('2001-4-1 3:15'),as.POSIXct('2001-5-2
2009 Feb 17
0
Problem with +(POSIXt, difftime) dispatching -- WAS: How to create sequence of constant time interval
There seems to be a problem in the way `+` is dispatched for
POSIXt/difftime (R 2.8.0 Windows).
With the following definitions:
t0 <- as.POSIXct('2009-01-01 00:00')
halfhour.mins <- as.difftime(30,units='mins')
I would have thought that the straightforward answer to Suresh's
question would be something like
t0 + halfhour.mins * (0:47)
And indeed, if we
2004 Mar 30
1
seq.POSIXt() bug not fixed in R 1.8.1 (PR#4558)
I am still experiencing problems with seq.POSIXt() missing off the last day
of the series:
> seq(as.POSIXct("2004-03-25"),as.POSIXct("2004-03-31"),by="DSTdays")
[1] "2004-03-25 GMT Standard Time" "2004-03-26 GMT Standard Time"
"2004-03-27 GMT Standard Time"
[4] "2004-03-28 GMT Standard Time" "2004-03-29 GMT Daylight
2007 Oct 08
2
Incompatible methods ("-.POSIXt", "Ops.difftime") for "-"
Dear all,
according to the Help-page of DateTimeClasses {base} I should be able to do
time - z
with
time date-time objects
z a numeric vector (in seconds) or an object of class "difftime".
However, on R version 2.6.0 (Windows XP) I get
> Sys.time() - as.difftime(c("0:3:20", "11:23:15"))
Time differences in mins
[1] 1191837998 1191837318
2001 Aug 09
1
bug (and fix) in seq.POSIXt (PR#1046)
I can't reach r-project.org at the moment so cannot check whether this
is a known bug.
> version
_
platform i386-pc-mingw32
arch x86
os Win32
system x86, Win32
status
major 1
minor 3.0
year 2001
month 06
day 22
language R
The
2002 May 12
0
{round,trunc}.POSIXt and daylight savings time (PR#1543)
I have found what looks like a small problem in trunc.POSIXt()
involving the transition to/from standard time and daylight savings
time. Assuming my assessment is correct, I have a potential solution
to offer.
If a time in daylight savings time is rounded such that the rounded
value is on the other side of the transition, the isdst element does
not get changed accordingly. I have tested only
2009 Sep 09
1
Monkey patching +.POSIXt
Hi all,
This summer I've been working with a grad student to bring more of the
date time classes from JODA (http://joda-time.sourceforge.net/) into
R. To make these work seamlessly with existing date time objects, we
need to patch +.POSIXt. (The ruby community uses the term
monkey-patching for this sort of ill-advised, by sometimes necessary,
internal hackery, hence the title.) The problem is