Displaying 20 results from an estimated 4000 matches similar to: "converting #sec to POSIX* format"
2004 May 04
1
rpart question
Wondered about the best way to control for input variables that have a
large number of levels in 'rpart' models. I understand the algorithm
searches through all possible splits (2^(k-1) for k levels) and so
variables with more levels are more prone to be good spliters... so I'm
looking for ways to compensate and adjust for this complexity.
For example, if two variables produce
2007 Aug 07
1
how to convert decimal date to its equivalent date format(YYYY.mm.dd.hr.min.sec)
Hello R Users,
How to convert decimal date to date as YYYY.mm.dd.hr.min.sec
For example, I have decimal date in one column , and want to convert and
write it in equivalent date(YYYY.mm.dd.hr.min.sec) in another next six
columns.
1979.000000
1979.020833
1979.041667
1979.062500
Is it possible in R ?
Kindly help,
Regards,
Yogesh
--
Dr. Yogesh K. Tiwari,
Scientist,
Indian Institute
2004 Mar 05
3
as.POSIXct problem
Hi all,
I'm having difficulty converting a 'dates' object to a POSIXct object:
testDATES<-c(35947,35971,36004,36008,36053,36066)
testDATES<-chron(dates=testDATES, format = c(dates = "m/d/y"),
origin=c(month = 12, day = 30, year = 1899))
>[1] 06/01/98 06/25/98 07/28/98 08/01/98 09/15/98 09/28/98
> as.POSIXct(testDATES)
[1] NA NA NA NA NA NA
2004 Nov 03
3
cut POSIX results in NA - bug?
Dear all
I try to make hourly average by cut() function, which almost works
as *I* expected. What puzled me is that if there is only one item at
the end of your data it results in NA.
Example will explain what I mean
datum<-seq(ISOdate(2004,8,31), ISOdate(2004,9,1), "min")
cut(datum[1370:1381],"hour", labels=F)
[1] 1 1 1 1 1 1 1 1 1 1 1 NA
2003 Nov 19
5
ISOdate returns incorrect date?
Dear all,
I have found the following (for me) incomprehensible behaviour of
ISOdate (POSIXct):
> ISOdate(1900,6,16)
[1] "1900-06-15 14:00:00 Westeurop?ische Sommerzeit"
> ISOdate(1950,6,16)
[1] "1950-06-16 14:00:00 Westeurop?ische Sommerzeit"
Note that in the first case I get the 15th of June back, not the 16th as
I would have expected!
This happened under R-1.7.1 on
2018 Mar 22
2
[ovirt-users] GlusterFS performance with only one drive per host?
On Mon, Mar 19, 2018 at 5:57 PM, Jayme <jaymef at gmail.com> wrote:
> I'm spec'ing a new oVirt build using three Dell R720's w/ 256GB. I'm
> considering storage options. I don't have a requirement for high amounts
> of storage, I have a little over 1TB to store but want some overhead so I'm
> thinking 2TB of usable space would be sufficient.
>
>
2002 Apr 29
2
Lotos 1-2-3 date to POSIXct
I have some data that was created for import into a Lotus 1-2-3 spreadsheet
and on of the columns is time. The
time is akin to Julian were the value 1 is mapped "01-Jan-00 12:00:00 AM" in
Lotus 1-2-3. Is there a function in an R package that can convert this
numeric vector to a POSIXct vector?
With best wishes and kind regards I am
Sincerely,
Corey A. Moffet
Instructor
Department
2003 May 29
5
Comparison Operator
Does R have a comparison operator similar to the Like function, for example:
a<-"Is a Fish"
b<-"Fish"
if(b in a){c<-TRUE}
Michael R Howard
Micron Technology Inc. Boise ID.
Fab C Engineering Software (FCES)
Software Engineer
2003 Nov 14
5
ISOdate() and strptime()
Dear R-people!
I am using R 1.8.0, under Windows XP.
While using ISOdate() and strptime(), I noticed the following behaviour when
"wrong" arguments (e.g., months>12) are given to these functions:
> ISOdate(year=2003,month=2,day=20) #ok
[1] "2003-02-20 13:00:00 Westeurop?ische Normalzeit"
> ISOdate(year=2003,month=2,day=30) #wrong day, but returns a value
[1]
2002 Oct 17
4
Posix Problem, difftime
I am having a series of problems using date time data that has been converted into a POSIXt and POSIXlt classes. I have hourly time series data from 1900 that has been converted from text data.
I assume most of my problems come from a mis-underdanding of the POSIX class. My matrix named (aa) for this year is approx 8700 by 4. When I try to calculate the length of posit column ( which is the
2004 Aug 19
2
proposed change to [.POSIXct
R developers,
The "tzone" attribute is stripped from a POSIXct object when the subscript
command is called ("[.POISXct"). This results in dates being printed in the
locale specific format after a subscript operation is applied to a POSIXct
object which has cause several problems for me in the past.
Here is an example of this problem under R 1.9.1:
> x <-
2004 Sep 22
5
block statistics with POSIX classes
I have a monthly price index series x, the related return series y = diff(log(x)) and a POSIXlt date-time variable dp. I would like to apply annual blocks to compute for example annual block maxima and mean of y.
When studying the POSIX classes, in the first stage of the learning curve, I computed the maximum drawdown of x:
> mdd <- maxdrawdown(x)
> max.dd <- mdd$maxdrawdown
> from
2016 Apr 18
4
as.Date
Dear All,
I have a data set containing year, month, day and counts as shown below:
data <- read.table("data.txt", col.names = c("year", "month", "day", "counts"))
Using the formula below, I converted the data to as date and plotted.
new.century <- data$year < 70
data$year <- ifelse(new.century, data$year + 2000, data$year + 1900)
2002 Apr 02
2
Trouble with R and cronjobs
I am having problems with trying to run R from a crontab job. I have a
c-shell file that calls the R script. I get an error concerning the X11
display (see below). I have included the c-shell file and the output from
the crontab job. It appears that my DISPLAY environmental variable is not
set. Is that necessary, even when the output of the plot command is to a png
file? Can someone tell me how to
2001 Dec 01
1
rsync-2.5.0 patch for "make check" bug
Attached is a patch for rsync 2.5.0 to fix the "make check" option.
The find command was not being passwd the current directory in the
hands.test and longdir.test testsuites, which caused them to fail
on SunOS 4.X and Solaris 2.X systems.
Tom
--
Tom L. Schmidt, Manager/SysAdmin Characterization Equipment
Micron Technology, Inc.
8000 S. Federal Way P.O. Box 6 Mail Stop 376 Boise,
2003 Dec 04
5
Processing calendar dates with R
I am a beginner in R with a background in SAS.
Are there built-in R methods of reading dates for calculating elapsed days
between two calendar dates? If so, are there any examples I can browse?
Thanks in anticipation.
John Byrne.
Lecturer in Information Systems.
Australian Catholic University.
2003 Apr 25
2
Posix data in Lattice
I have a number of plots that I'm trying to do using the lattice package,
unfortunately, they involve Posix values.
A small sample of the data is as follows:
Time TC.1 <Snipped>
1 2003-04-24 13:29:15 26.61
2 2003-04-24 13:29:30 26.48
3 2003-04-24 13:30:00 26.53
4 2003-04-24 13:30:30 27.85
<Snipped>
where
str(data)
`data.frame': 415 obs. of
2015 Nov 14
2
[cfe-dev] [Openmp-dev] LLVM Social in Austin - Nov. 15?
Hearing no opinions to the contrary, let's say Banger's 6pm (tomorrow). Address and web site below. I submitted online for a reservation early this morning, and I'll try to get an updated head count on Sunday morning.
-Hal
Sent from my Verizon Wireless 4G LTE DROID
On Nov 14, 2015 11:21 AM, Chandler Carruth <chandlerc at google.com> wrote:
Did this ever get settled?
On Fri,
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me.
I want to create a vector of Date objects from vectors of years, months, and
days.
One solution I found is:
years <- c(1991, 1992)
months <- c(1, 10)
days <- c(1, 2)
dates <- as.Date(ISOdate(years, months, days))
But, in this solution the ISOdate function converts the vectors into
characters,
which can cause serious
2010 Mar 10
4
cut.POSIXt misconception/feature/bug?
Dear all
recently I tried to split vector of dates according to some particular
date to 2 (more) chunks, but I was not able to perform correct setting.
When I want split to 3 chunks it partially works however from help page I
supposed to get result without NA.
Details:
Using both ?right = TRUE? and ?include.lowest = TRUE? will
include both ends of the range of dates.
dat <-