An R package for Chronological objects which can handle dates and times, written by David James.
Questions tagged [chron]
111 questions
0
votes
0 answers
Subtracting r objects of class 'times'
I have two objects of class 'times' generated using chron that I am trying to compare. On the surface they look identical:
> str(x)
Class 'times' atomic [1:6] 0.04444 0.05417 0.05486 0.00208 0.01111 ...
..- attr(*, "format")= chr…

lcabral
- 25
- 7
0
votes
0 answers
Format Time in R independent of a Date
How do I format time independent of a date in R? I have a time vector that I would like to add and subtract; however, when I format the vector as POSIXct(), POSIXlt(), or strptime() R attaches a date to it:
> sample
V1
1 1:23
2 5:20
3 2:28
4…

DataProphets
- 156
- 3
- 17
0
votes
1 answer
Problems locale language with converting string to dates
I have problems with converting strings into dates. First I encountered the problem and figured out that as.chron is using the Dutch abbrevations. Therefore I thought that changing the locale would solve this problem. However after doing this I…

Twan Houwers
- 23
- 4
0
votes
1 answer
Spring is not running my @Scheduled(cron = "0,30 * * * * *")
Following is code
I am using spring.boot.version 1.4.1.RELEASE now
Nothing is printed when I start the server
I am using @Scheduled annotation to run a cron job but It never starts
Same code works fine if I create new project and use following…

vk1
- 166
- 6
- 15
0
votes
1 answer
R / chron - data.frame tag by time-range
First question to stackoverflow so apologies if I don't follow etiquette...
I have a table df similar to the following:
subject_id date_time
1 1999-10-20 19:08:00
2 1983-03-16 00:28:14
....
I'm trying to add further columns to…

Nickopotamus
- 51
- 6
0
votes
1 answer
Installing package "chron" in R
Running Ubuntu 14.04 and while installing the package chron on R, I get the following message:
* installing *source* package ‘chron’ ...
** package ‘chron’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include…
0
votes
1 answer
How to lock screen 30 minutes after unlock
I would like my children to only use the computer for 30 minutes, at which time I would like the screen to be locked. At that point, if I choose to unlock the screen again, I would like the screen to lock again in another 30 minutes.
How can I write…

aam
- 1
0
votes
1 answer
24:00 hour support in R
R supports time from 00:00 to 23:59. Is there a way to change it to 24:00. creating a POSIXct object of "2012-12-03 24:00" makes it "2012-12-04 00:00". For my dataset(TMY3) this is problematic.
As a workaround I have replaced all instance of "24:00"…

MySchizoBuddy
- 1,138
- 13
- 20
0
votes
0 answers
scheduled task from plesk "unable to resolve host address"
Under my virtualHost, I need to schedule a task. Done it from plesk , and working till a week ago.
I have tried adding another task, and then it stop worked.
The task is wget http://mydomain.it/cron/scrape.php . and obviously called from external…

giuseppe
- 827
- 1
- 9
- 19
0
votes
1 answer
How to convert variable to time format when values have different formatting
I am trying to convert a variable that contains that length of time of a phone call from a factor into a chronological format using the chron function. However, the values for calls that were less then 1 hour are reported as m:s, while calls that…

Andrews
- 325
- 3
- 13
0
votes
1 answer
Reassign the starting Julian date (July 1st = Julian date 1, southern hemisphere)
My data set includes various observations at different stages throughout the year.
year when samples were collected.
site location of measurement
Class physical stage during r of measurement
date date of measurement
Julian Julian date
The final…

hesaguy
- 55
- 1
- 5
0
votes
1 answer
How do I run a Jenkins job on a weekend, AFTER another job has completed?
I have a job in Jenkins that I only want to run on Saturday, but it must only be ran after another job is finished (this is a report job, so data must be in place).
I understand how to use the Jenkins con expressions, but can I chain that in…

user1151133
- 25
- 5
0
votes
1 answer
How to aggregate tweets per minute
I´ve done some for-fun twitter-mining. I used twitters streaming-APi and recorded the tweets before, while and after a football match. Now i want to do a ggplot2-graph that shows the frequency of tweets on the football match.
In the original…

SEMson
- 1,285
- 3
- 20
- 25
0
votes
0 answers
Creating and appending csv files
I am working on my first python project and am in over my head.
I am trying to collect bike share data from an xml feed.
I want to capture this data every n minutes, lets say 5 for now, then create a csv file of that data.
Additionally I want to…

pedrohobo
- 3
- 1
0
votes
1 answer
Converting date from MS Excel 2010 to R's Date format
With a data set imported from MS Excel 2010, similar to df which is:
x0 xx d1 d2
2014-04-29 16189 1944-04-27 1944-04-29
2014-04-29 16189 1944-04-27 1944-04-29
2014-04-29 16189 1944-04-27 1944-04-29
2014-04-29 16189 1944-04-27…

Duna
- 725
- 2
- 7
- 16