Displaying 20 results from an estimated 200 matches similar to: "Creating 2 week intervals (lubridate)"
2012 Nov 16
2
lubridate concatenation issue
I took a look at Hadley's lubridate which seems a very neat package, but i am having a small problem with concatenating lubridates to build vectors of it. Namely when function c( ) is applied to lubridate seems to change time to a local timezone in this particular case changing the date to previous one.
> d<-ymd('20111231')
> d
[1] "2011-12-31 UTC"
> c(d)
[1]
2010 Nov 17
0
lubridate v2.2 available on cran
Version 2.2 of the lubridate package is now available. lubridate makes it
easier to work with date-time data. For example, it provides:
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds: year(),
month(), day(), ...
* quick and easy functions to parse date-times: ymd(), dmy(), mdy(), ...
* helper functions for handling
2010 Nov 17
0
lubridate v2.2 available on cran
Version 2.2 of the lubridate package is now available. lubridate makes it
easier to work with date-time data. For example, it provides:
* simple functions to extract and modify components of a date-time,
such as years, months, days, hours, minutes, and seconds: year(),
month(), day(), ...
* quick and easy functions to parse date-times: ymd(), dmy(), mdy(), ...
* helper functions for handling
2010 Aug 31
0
New package: lubridate 0.1
Please find below the package announcement for the R package lubridate
available from cran.
Thank you,
Garrett Grolemund
Rice University
##lubridate
Date-time data can be frustrating to work with in R. R commands for
date-times are generally unintuitive and change depending on the type
of date-time object being used. Moreover, the methods we use with
date-times must be robust to time zones,
2010 Aug 31
0
New package: lubridate 0.1
Please find below the package announcement for the R package lubridate
available from cran.
Thank you,
Garrett Grolemund
Rice University
##lubridate
Date-time data can be frustrating to work with in R. R commands for
date-times are generally unintuitive and change depending on the type
of date-time object being used. Moreover, the methods we use with
date-times must be robust to time zones,
2011 Jul 29
2
How can I make before/after all a method?
I would like to turn this:
describe TestClass do
before :all do
# set some config
end
after :all do
# restore some config
end
# do a bunch of tests to this
end
into
describe TestClass do
with_config_value(X)
# do a bunch of tests to this
end
Basically, I want to include before :all and after :all clauses into a test.
However, I do not want this to apply toa ll tests.
Thanks in advance.
2009 Apr 11
3
winedevice.exe
Hi!
I was just wondering what this winedevice.exe actually does. I usually have uTorrent running in Wine all day, and sometimes winedevice.exe starts to use the full CPU. But if I just kill it, everything continues to work just fine... [Question]
Toa-Nuva
2004 Aug 06
2
stream sounds like poo for no apparent reason
nope no ALSA drivers, everything is supported in the freeBSD kernel..........
<p><p>>On Tue, Apr 23, 2002 at 01:16:34AM -0400, jim wrote:
>> here at wkdu.org our minds are blown trying to figure out what our
>> problem is, we are using a dell optiplex gx1 with a soundblaster live
>> card. we are getting a nasty hum on the line in. the thing is we plug
>>
2003 Jun 03
1
Local copy (root to mounted subdir) wanted - protocol error in io.c
Hello everybody,
maybe someone has also had this issue:
I try to copy the root partition "/" to a subdir "/Volumes/System". This is
not a cyclic recursion, because "/Volumes/System" is a mounted hard disk
partition. So I gave rsync the parameters "-x" for one-file-system, and
'--exclude "/Volumes/" ' also:
# rsync -ax --showtogo
2011 May 27
0
lubridate, as.POSIXct and a vector of times: bug or feature??
It took me some time to realize this annoying behavior was coming from
lubridate.
Perhaps this behavior is unexpected a result of cursory knowledge of it....
## The expected behavior
> sometimes=c(0,1,2,3)*60*60*24
> as.POSIXct( sometimes, origin='1970-01-01', tz='GMT')
[1] "1970-01-01 GMT" "1970-01-02 GMT" "1970-01-03 GMT" "1970-01-04
2012 Nov 13
1
Using lubridate to increment date by business days only
Hello,
I know how to increment a date by calendar date:
ticker$ldate <- ticker$tdate + days(5)
How do I increment it by business days only so that week-ends are not
counted?
So for example friday november 2 + 5days becomes friday november 9 & not
wednesday nov 7.
Thanks for your help.
--
View this message in context:
2012 Mar 06
0
lubridate 1.1.0
#lubridate
lubridate makes it easier to work with dates and times by providing
functions to identify and parse date-time data, extract and modify
components of a date-time (years, months, days, hours, minutes,
and seconds), perform accurate math on date-times, handle time zones and
Daylight Savings Time. lubridate has a consistent, memorable syntax that
makes working with dates less frustrating.
2012 Mar 06
0
lubridate 1.1.0
#lubridate
lubridate makes it easier to work with dates and times by providing
functions to identify and parse date-time data, extract and modify
components of a date-time (years, months, days, hours, minutes,
and seconds), perform accurate math on date-times, handle time zones and
Daylight Savings Time. lubridate has a consistent, memorable syntax that
makes working with dates less frustrating.
2016 Oct 20
2
Leveraging newer CMake features for Language standards
LLVM currently has CMake code to try to detect the various options needed
to compile with C++11 support that has been around since prior to the CMake
version bump. One of the nicer features that came with the newer required
CMake version is that very thing. Rather than try to discern this yourself
CMake has the CXX_STANDARD and CXX_STANDARD_REQUIRED target properties. If
set appropriately on a
2011 Aug 30
1
lubridate and intervals
Hiya,
maybe there is a native R function for this and if so please let me know!
I have 2 data.frames with start and end dates, they read in as strings and I
am converting to POSIXct. How can I check for overlap?
The end result ideally will be a single data.frame containing all the
columns of the other two with rows where there were date overlaps.
2012 Jan 11
2
lubridate does not install on FreeBSD any more
With newest R devel
#sessionInfo()
R Under development (unstable) (2012-01-10 r58085)
Platform: amd64-portbld-freebsd10.0 (64-bit)
locale:
[1]
de_DE.ISO8859-15/de_DE.ISO8859-15/de_DE.ISO8859-15/C/de_DE.ISO8859-15/de_DE.ISO8859-15
attached base packages:
[1] stats graphics grDevices utils datasets methods base
I get the following error when I try to build and install lubridate from
2004 Jun 14
4
Quirks with system.time and simulations
I tried the code that Richard O'Keefe posted last week, to wit:
library(chron)
ymd.to.POSIXlt <-
function (y, m, d) as.POSIXlt(chron(julian(y=y, x=m, d=d)))
n <- 100000
y <- sample(1970:2004, n, replace=TRUE)
m <- sample(1:12, n, replace=TRUE)
d <- sample(1:28, n, replace=TRUE)
system.time(ymd.to.POSIXlt(y, m, d))
[1] 8.78 0.10
2009 Jan 19
2
Ubuntu 8.10 fault on read access to 0x00000000
I have installed Paradox Corel and the first time all ok. After stopping computer Paradox is blocked
Unhandled page fault on read access to 0x00000000 at address 0x54da69 (thread 0009) and then start debugging.
I have read thet this problem is causated by policy of restriction of access in Ubuntu and it is semple change this, but I dont know the command.
2010 Dec 22
1
How to list used extensions + assign extension to a roaming phone
Hi list,
I have searched through asterisk command lines but haven't found how to do this:
- can I list the phones (callerid or IMSIs?) currently registered ?
If I do "dialplan show" that lists the configuration I loaded, e.g
[ Context 'sip-local' created by 'pbx_config' ]
'2102' => 1. Macro(dialSIP|IMSI1) [pbx_config]
'2103'
2012 Mar 30
1
lubridate:ymd_hm and coercion of class POSIXct. Smooth way to restore the date format.
Dear all,
I wish to create a POSIXct variable from date and time variables using the ymd_hm function in package lubridate. In some cases data for time is missing, which causes a problem for ymd_hm. I wish to find a smooth way to handle this.
# Some example data:
x <- data.frame(date = c("2011-09-22", "2011-07-28"), time = c("15:00", NA))
x
# paste date and