Displaying 20 results from an estimated 1000 matches similar to: "Date-Time-Stamp input method for user-specific formats"
2005 Feb 03
3
Reading Dates in a csv File
Hi all. I'm reading in a flat, comma-delimited flat file using read.csv.
It works marvelously for the most part. I am using the colClasses argument
to, basically, create numeric, factor and character classes for the columns
I'm reading in. However, a couple of the fields in the file are date
fields. I'm fully aware that POSIXct can be used as a class, however the
field must obey,
2011 May 21
1
DocumentTermMatrix error
Hi all,
I have tried to create a DocumentTermMatrix with a tm package, but i get this error :
Error in tolower(txt) :
invalid input 'PROD Z LAHKO GNETNO MELJNO GLINO, ... in 'utf8towcs'
I tried doing this as it is showed in :
http://www.r-project.org/doc/Rnews/Rnews_2008-2.pdf (An Introduction to Text Mining),
with this R code :
2009 Nov 01
4
convert list to Dataframe
Hi. I have a huge list called twitter:
> dim(twitter)
NULL
> str(twitter)
List of 1
$ :Classes 'PlainTextDocument', 'TextDocument', 'character' atomic
[1:35575] 11999;10:47:14;20;10;2009;ObamaLouverture;Trails Mixed Lessons For
Governance From Campaigner-in-chief: President obama jumps campaign 09
tuesday..
2012 Jan 08
2
cannot find package in Packages>>Install Packages
Hi. I am trying to install a package called DMwR
http://cran.r-project.org/web/packages/DMwR/index.html
located here:
http://cran.r-project.org/bin/windows/contrib/r-release/DMwR_0.2.1.zip
on windows 7.
I am using R 2.10.1.
I also tried typing something like this but it did not work well.
install.packages(c("
http://cran.r-project.org/bin/windows/contrib/r-release/DMwR_0.2.1.zip
2013 Mar 22
3
Double condition
Hi,
I would appreciate if somebody could help me with this small issue...
I have a dataframe like this (originaly has more than 100 000 rows):
> subz
jul time dtime fix ddawn ddusk day
101608 15006 2011-02-01 19:14:49 19.24694 noon 7.916667 19.88333 1
101609 15006 2011-02-01 19:24:49 19.41361 midnight 7.916667 19.56667 1
101610 15006 2011-02-01
2001 Nov 26
3
Doing things with POSIXt
Dear R-Users,
I have a data file with timestamps and I wanted to use POSIXct time data
type to represent the respective column. I played around with the type and
found a couple of issues:
* there seems to be no direct way of reading datetimes into a variable.
Let's say this is my file
"1992-02-27 23:03:20 PST"
"1992-02-27 22:29:56 PST"
"1992-01-14 01:03:30 PST"
2017 Mar 09
2
Error in formatDL(nm, txt, indent = max(nchar(nm, "w")) + 3)
This error can arise when getOption("width") is too small. 80 seems to be the
limit for me with R-3.3.2 on Windows.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Wed, Mar 8, 2017 at 10:28 PM, Spencer Graves
<spencer.graves at prodsyse.com> wrote:
> Hello:
>
>
> I tried "debug(help)" with the problem mentioned below. It stopped
> with a call to
2013 Dec 13
3
Minutes after midnight to time
Is there a quick function that can convert minutes (seconds) after midnight
to a time?
i.e 670.93 (minutes after midnight) --> 11:10:56.**
I know it can be done by hand but I thought there must be a function for
this already.
Thank you.
[[alternative HTML version deleted]]
2010 Jul 13
1
Time Variable and Historical Interest Rates
Guys, I wrote to the finance mailing list earlier with my questions but was
directed here.
Sorry for the repeat.
---------------
library(quantmod)
....
now <- Sys.time()
midnight <- strptime() # <---- I want to make this a static variable
that will be equal to 12:00:00 am but I dont know what to put here. I keep
getting NA for everything I do
if(now == midnight) {
2006 Apr 10
3
timeAlign
I use POSIXct for datetimes. Is thee a timeAlign function that I can
use where :
align by year
direction -1 ==> start of this year
direction 1 ==> start of next year
align by week
direction -1 ==> date on last sunday
direction 1 ==> date on next sunday
align by day
direction -1 ==> time at past midnight
direction 1 ==> time at this comming
2011 Apr 06
0
Curious treatment of entities in xmlTreeParse
Hello!
I am not experienced enough to know whether I have found a bug or
whether I am just ignorant.
I have been trying to use the tm package to read in material from RSS
2.0 feeds, which has required grappling with writing a reader for that
flavour of XML. I get an error - "Error : 1: EntityRef: expecting ';' -
which I think I've tracked down.
The feed being processed is from
2011 May 18
0
text mining problem using TM package
Hi, I’m using R (TM package) for text mining and I’m having problems
filtering articles out of my data set by local meta data.
Here is the code:
*data <- ("C:/… /19970331")*
* *
* *
*rs <- ReutersSource(data , encoding = "UTF-8")*
*RC <- VCorpus(DirSource(data), readerControl = list(reader =
readRCV1asPlain,*
*
language = "en_US",*
*
load =
2004 Apr 30
2
Playing with time ranges...
Playing with time ranges - using the examples found in one of the
asterisk cook books... (pdf - page 17)
; After Hours
include => night_menu|00:00-08:00|Tue-Fri|*|*
include => night_menu|17:00-24:00|Mon-Thu|*|*
this gives...
... pbx.c:2962 get_timerange: 24:00 isn't a valid end time....
-- Including context 'night_menu|17:00-24:00|Mon-Thu|*|*' in context
'default'
2008 Jun 26
2
Oops: zfs-auto-snapshot with at scheduling
Hi all,
I''ll attach a new version zfs-auto-snapshot including some more
improvements, and probably some new bugs. Seriously, I have
tested it, but certainly not all functionality, so please let me know
about any (new) problems you come across.
Except from the change log:
- Added support to schedule using at(1), see
README.zfs-auto-snapshot.txt
- take_snapshot will only run if
2007 Oct 08
2
Applying function to data.frame
Hi,
If I have the following data.frame
>y
time val
1 08:00:05.834 1
2 08:03:13.345 2
3 08:10:12.443 3
>
and the following function which converts the time string to the number
of milliseconds since midnight
> str_to_millis
function( s )
{
a <- as.numeric( unlist( strsplit(s,":",fixed="TRUE") ) )
m <- a[1]*3600000 + a[2]*60000 + a[3]*1000
}
2010 Nov 05
2
ActiveRecords queries: .where vs .find
I have a dataset, which contains a day column that I would like to
retrieve results on. Is there any reason why daily_stats.where(''day =
Date(?)'', dte).first returns and empty set,
daily_stats.find(:first, :conditions => [''date(day) = ?'', dte])
returns the correct data and daily_stats.where({:created_at =>
(date.midnight - 1.day)..date.midnight}).first
2006 Aug 01
2
making backgroundrb cron
Hello,
i need to have some jobs scheduled in the background and executed at
specific times. I wanted to make a worker who does that - and it works a
little bit - but i had an enlightment... why not make bgdrb itself play that
role? i mean, the MiddleMan has already everything needed! a timer thread,
currently used only for deleting old workers and the workers itself. since
im not familiar with
2007 Jan 17
2
problem with unlist POSIX date at midnight
Dear R-users,
I use unlist of POSIX dates to extract the year, hour etc. With that I
can search for files in my database which are in the form
'yyyymmddhh_synops.txt'
However, I get stucked during midnight where unlist just gives NA's.
The script is given below, the problem accurs at acc.period[16]
(midnight). However when I write out the character, unlist works well.
But
2004 Jul 15
17
VoicePulse changes
I'm a bit displeased at the way this happened. I received an email from
VoicePulse. Here's some excerpts:
------------------
>We're sending you this important update so you can take advantage of
improvements we've
>been making to your VoicePulse Connect! service.
>We've been working hard on improving the audio quality and reliability
of your Connect!
>service,
2009 Jan 22
2
time date stamp since, january 1st 1970
Hello, we are receiving some data, sample below - with a weird time/date
stamp format, we need some help with R on converting this time date
stamp to a useable field in R, date and time in a data-frame. The
developer says its the number of milliseconds since midnight, January 1,
1970.
sample: *1232558018624*
---------------------
How do I interpret the time stamp? Is there a date, i need