Displaying 20 results from an estimated 3000 matches similar to: "times"
2009 Mar 18
2
run r scripts (tinn) via command
Hello, I am working on a project consisting of several r-scripts written in
the tinn editor. Is it possible to create a superior r script containing
commands to run the sub-scripts one by one?
-----
Tamara Hoebinger
University of Vienna
--
View this message in context: http://www.nabble.com/run-r-scripts-%28tinn%29-via-command-tp22580362p22580362.html
Sent from the R help mailing list archive
2009 Mar 31
1
Convert date to integer
Hello, I have a dataframe containing dates, times and other parameters. The
times have the format "h:m", e.g. 13:00 or 5:30, R classes them as factors.
I want to change the times to integers e.g. 13:00 -> 1300. I tried to use
"chron" to create a chronological object, but it didn't work for the times
(yust for the dates).
-----
Tamara Hoebinger
University of Vienna
--
2008 Nov 20
1
convert factors to numbers
Hello, I have a problem with reading a csv-file. One colum of the inputfile
consists of characters and numbers. After reading the csv-file I create a
new dataframe by dividing the values of that colum into more colums (then a
colum contains just characters or numbers) but the numbers are converted to
factors. How can I create the new dataframe without having the numbers
converted to factors?
2008 Nov 23
1
tklistbox - R-Objekt
Hello, I have a problem with a tklistbox. The user should be able to choose
one out of two calculation methods needed for further calculations. My
r-script for that purpose looks like that:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=4,selectmode="single",background="white")
tkgrid(tklabel(tt,text="select method for LAI
2000 Jul 12
1
plot.times error -- missing or illegal tck parameter (PR#601)
There seems no default setting for tck, causing problems
for plot.times()
> library(chron)
> dts <- dates(c("02/27/92", "02/27/92", "01/14/92",
+ "02/28/92", "02/01/92"))
> y<-chron(dts,out.format=c("dmy","h:m:s"))
> y
[1] 270292 270292 140192 280292 010292
> plot(y,1:5)
Error in axis(n, at =
2010 Jun 18
5
extract date time from a text file
I a have a text file where every line is like that:
"2007-12-03 13:50:17 Juan Perez"
("yy-mm-dd hh:mm:ss First Name Second Name")
I would like to make a data frame with two column one for date and the
other one for name.
When I use read.delim it was transformed in a data frame with 4 colums.
Bye,
Sebasti?n.
2011 Aug 05
3
excel dates and times in R
Hello,
I am having some fun dealing with dates and times. My input is a excel csv
file with two columns with data in the following format:
date time
25-Jun-1961 04:00:00
i.e. day - month - year hour:min:sec
I would like to have a single object in R that combines these and converts
them into a sensible R format (e.g.
2009 Jan 07
1
troubles performing Moran.I test
dear R users,
I have troubles performing Moran.I test as suggested on
http://www.ats.ucla.edu/stat/r/faq/morans_i.htm
my spatial data are longitude and lattitide of communities. The
calculation of the inverse distance matrix according to the homepage
(using my data)
datAL <- read.csv2("C:\\Konvergenz AL.csv", header=T)
ALdist <- as.matrix(dist(cbind(datAL$L?nge,
2007 Aug 29
1
Strage result with an append/strptime combination
Hi,
I keep on trying to write some small scripts in order to learn R but even
with basic scripts I have problems ...
I start with the name of a file which is in fact the time the file has been
generated (I cannot change the format). Then I convert namefile with
strptime. The problem occurs when I add another time from another file with
append. It displays some informations I don't want.
I
2009 Dec 01
4
median for time data
Hi everybody
How do I do to calculate the median and average of a colum of time data like
this: "8:50:10". I also need to plot the time difference between two colums
Thanks a lot
--
View this message in context: http://n4.nabble.com/median-for-time-data-tp932287p932287.html
Sent from the R help mailing list archive at Nabble.com.
2006 Jun 23
2
problem with hist() for 'times' objects from 'chron' package
Hello dear useRs and wizaRds,
I encountered the following problem using the hist() method for the
'times' classes
from package 'chron'. You should be able to recreate it using the code:
library(chron)
# pasted from chron help file (?chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92", "02/28/92",
"02/01/92"))
class(dts)
2011 Sep 16
1
Mystified - comparing chron times
I have two local variables: startTime and expectedStartTime. Both are chron
related objects.
When I look at the class for the objects I can see they are of class
"times".
When I print them to the console, they both read: "09:30:00"
When I print them as.numeric(), they both read: 0.3958333
When I try and compare them: (as.numeric(startTime) ==
as.numeric(expectedStartTime)) it
2012 Jun 01
1
Missing times chron
Dear all,
As a novice user of R I ran into a problem that's quite hard for me to
resolve. I have a database containing data of a clinical trial in which
patients are included that survived or died:
x <- matrix(data=c(1:5,0, "1/1/2012 00:00:00",0,0,"1/7/2012 00:00:00"),
nrow=5, ncol=2, dimnames= list(NULL,c("ID", "dateofdeath")))
My file is a .csv
2010 Jun 29
3
formating chron date times for printing
the date were created with chron with this argument
format=c(dates="Y/m/d", times="H:M:S"))
so I have the dates being displayed as
(10/06/22 12:00:00)
I would like to have them displayed as
"2010-06-22 12:00:00" or "%Y-%m-%d %H:%M:%S"
and then I can convert these for mergeing with another data frame
x <- (structure(c(14464, 14464.0104166667,
2016 Dec 30
2
Conversión de datos a fechas
Agradezco la ayuda recibida me vino muy bien,,, el problema de
instalar el paquete lubridate es que no está en los repositorios de
Debian,,, al usar RStudio creo que se debe instalar en
~/R/x86_64-pc-linux-gnu-library previa compilación de fuente bajada de
r-cran,,, cosa que será otro pedido de ayuda en el futuro si sale
mal,,,
Saludos Horacio
El día 30 de diciembre de 2016, 7:05, Carlos Ortega
2004 May 12
1
convert.times in chron, error when 59 < seconds < 60 (PR#6878)
Full_Name: Dennis Wolf
Version: 1.9.0
OS: Mac OS 10.3.3
Submission from: (NULL) (160.91.76.23)
platform powerpc-apple-darwin6.8
arch powerpc
os darwin6.8
system powerpc, darwin6.8
status
major 1
minor 9.0
year 2004
month 04
day
2016 Dec 29
5
Conversión de datos a fechas
Buenas, esta pregunta es un poco elemental, pero estoy haciendo mis
primeras experiencias en R.
Yo tengo un CSV con el siguiente formato...
fecha;Gastos;media móvil;Holt Winter
31/08/02;2498,5;;2498,5
29/09/02;2250,93;2320,63;2424,229
31/10/02;2212,46;2097,87;2360,6983
30/11/02;1830,22;2092,78;2201,55481
,,,,,,,
los guardo en un dataframe con gastos=read.csv2("indice_gastos.csv"),
2012 Dec 19
4
How to convert xts data into list
Hello,
How can I convert Close colume of the below xts time series data into a list of Close values ?
I'd like to plot Close values as a list.
> head(zc)
Close
(10/15/12 09:00:00) 252.40
(10/15/12 09:01:00) 253.10
(10/15/12 09:02:00) 253.15
(10/15/12 09:03:00) 253.30
(10/15/12 09:04:00) 253.25
(10/15/12 09:05:00) 253.45
I tried the below command to plot it.
2005 Mar 24
1
Histogram over times (without dates)
Dear Group,
Having a character vector like this one:
[1] "03:38:55" "07:42:38" "08:04:27" "08:17:13" "08:41:14" "08:46:58"
[7] "08:47:11" "08:53:51" "08:57:51" "08:58:56"
I try to do a histogram over times of a day. All I want to know, if my solution is proper or if there is another
2001 Mar 20
1
segmentation fault with chron.times()
I am running a simple R program, its skeleton is enclosed below.
The program reads about 80 files with about 5000 lines with coloumns of
data. After an unpredictable and variable number of loops for run to
run, it exits with segmentation fault or alternatively with the error
Error in names<-.default(*tmp*, value = fnames) :
Unimplemented feature in duplicate
Removing the call to