Displaying 20 results from an estimated 10000 matches similar to: "Time rather than dates?"
2006 Mar 02
4
Skip last NA's?
I wonder if anyone could help me find an expression for skipping the last
missing values in a vector? The kind of material I have is something like
x<-c(23,12,NA,23,24,21,NA,NA,NA)
I would like to skip the last NA's, but not the ones in between other
vallues. Any hints? (Why not do this by simply take x[1:6]? I have several
vectors a couple of thousand observations long with varying
2006 May 30
4
Add text/numbers to x axis?
Is there any simple way to add text to the x axis in R? I have tried to
add simple characters in R without any greater sucess. As an example of
what I want to do is the added C in the following "dumb" plot (produced
with MacAnova using the option "dumb:T"):
++------+-------+------+-------+------+-------+------+-------++
1+ :
2006 May 30
4
Automate concatenation?
I have this typical problem of joining a number of vectors with similar
names - a1, a2,..., a10 - which should be concatenated into one. Using
c(a1,a2,a3,a4,a5,a6,a,a8,a9,a10) naturally works, but I would like to do
it with less manual input. My attempts to use paste() gives a vector of
the vector names, see below. The question is how to do the the
concatenation? Any suggestions?
2005 Sep 20
5
Add function to histogram?
Is there any neat way to add a curve (frequency function or the like) to a
histogram or other plots? I haven't found one yet...
Robert
2006 Mar 08
1
info() function?
I would like to have some function for getting an overview of the
variables in a worksheet. Class, dimesions, length, number of missing
values,... Guess it wouldn't be that hard to set up such a function, but I
guess there are others who have made it already. Or is it already a
standard feature in the base package? Any suggestions?
Robert
2012 Nov 05
1
Dates as POSIXt
When I try to do linear interpolation between financial contracts with maturities on different dates in different months I have come across some behavior I haven't seen before.
I have a data frame in R which is loaded from an access database so I can't provide a working example. It was loaded using this code:
> dbPath <- "H:/pathToDB/DB.mdb"
> channel <-
2001 Oct 31
4
strptime bug (PR#1155)
## rw1031 Version 1.3.1 (2001-08-31)
## > version
## _
## platform i386-pc-mingw32
## arch x86
## os Win32
## system x86, Win32
## status
## major 1
## minor 3.1
## year 2001
## month 08
## day 31
## language R
## The
2008 Jan 11
3
Date range queries return zero results
Hello,
I am having trouble getting data ranges to work correctly. I am using
the following command to load the db:
index << {:title => row[7].to_i,
:date => Date.strptime(row[3], ''%Y-%m-%d''),
:page_id => row[5].to_i,
:page => row[6].to_i,
:content_type => row[1].to_i,
2009 Nov 11
1
Unexpected behavior for as.date()
The date library was written 20 or so years ago. It was a very good
first effort, but the newer Date library has superior functionality in
nearly every way. The date library is still available, for legacy
projects such as yours, but I do not advise it for new work. To answer
your specific questions:
1. What you have is a real bug. The underlying C routine that scans
through the text returns
2006 Mar 14
2
Date problem
Hello,
I have some "stupid" problems managing "date" data.
I have a colomn "date", which I converted from a character representation:
for example:
a="26/02/06"
date=strptime(a,format="%d/%m/%y")
For one part of the analysis, I'm interested only in the month and the
year, so I did:
m.y=strftime(date,format="%m/%y")
This returns me
2010 Nov 24
3
Custom ticks on x axis when dates are involved
Hi,
I have a set of irregular time series and i want to produce a simple plot, with dates on x axis and attribute value of y axis. This is simple enough but my x axis is divided automatically by ticks every 5 years. I would like to have a tick every year at January 1st. I am not sure how i can do that - i end up with something very close to what i want, but it is clunky and not very correct. I
2002 Apr 18
1
strptime mysteriously adds a day - 0S-specific: Linux and (PR#1467)
On Thu, 18 Apr 2002, Martin Maechler wrote:
> >>>>> "Jason" == Jason Turner <jasont@indigoindustrial.co.nz> writes:
>
> Jason> strptime() mysteriously adds a day to a date, unless the year
> Jason> is specified. Tested on:
> Jason> Linux (RedHat 6.0) - R version 1.4.1 and R-devel.
> Jason> Windows - R version 1.4.1
>
2009 Jul 04
1
Date code conversion
Hi,
Is there a function that will convert this sort of date code which
looks like "years from 1900 + month_number + day_number" with no
spaces? As an example Jan. 3rd 2008 would be written as 1080103.
Thanks,
Mark
2005 Nov 10
4
write.table read.table with Dates
I've found several similar issues with write.table/read.table
with Dates on this list, but trying to follow this advice I still
get an error.
First, I read in data from several files, constructing several date/time
columns using ISOdatetime
> str(Tall$Begin)
'POSIXct', format: chr [1:40114] "2005-10-02 00:00:00" "2005-10-02
00:00:00" ...
> length(Tall$Begin)
2011 Jun 22
3
Documenting variables, dataframes and files?
Every now and then I realize that my attempts to document what all dataframes consist of are unsufficient. So far, I have been writing notes in an external file. Are there any better ways to do this within R? One possibility could be to set up the data as packages, but I would like to have a solution on a lower level, closer to data. I can't find any pointers in the standard manuals.
2009 Jul 11
2
Date conversions
Hi all,
I'm having a little bit of trouble with some date conversions and
am hoping someone can help me out. Thanks in advance.
OK, I have two sources of data that provide date info in a csv file
differently. I've attached a small zipped file with two text files
that illustrate both. (Is it ok to send attachments to this list? Not
sure. It's very small.) I need to be able to
2007 Mar 21
1
bug and patch: strptime first-of-month error in (possibly unsupported use of) "%j" format (PR#9577)
Full_Name: John Brzustowski
Version: R-devel-trunk
OS: linux (problem under Windows too)
Submission from: (NULL) (74.101.124.238)
(This bug was discovered by Phil Taylor, Acadia University.)
I'm not sure from reading the documentation whether strptime(x, "%j") is meant
to be supported, but if so, there is a bug which prevents it from working on the
first day of months after
2002 Feb 07
12
R graphs in LaTeX documents?
I have tried to find a neat way to include graphs from R in LaTeX documents,
but have not succeeded (I work with a WinEdt/MikTeX combination). The two
roads I have stumbled along so far are the following:
*Generate postscript files and convert them into EPS files by means of
GhostScript or other not so straightforward tools.
*Generate pictex files and include these.
None of these solutions have
2001 Jul 24
1
strptime and "impossible" dates
Typically, when I use strptime with "impossible" dates I get an NA, which is
what I expect.
> version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 1
minor 3.0
year 2001
month 06
2016 Mar 15
4
Regression in strptime
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Sat, 12 Mar 2016 19:11:40 +0100 writes:
> OK, .Internal is not necessary to reproduce oddity in this area. I also see things like (notice 1980)
>> strptime(paste0(sample(1900:1999,80,replace=TRUE),"/01/01"), "%Y/%m/%d", tz="CET")
...............
>