similar to: [R-SIG-Finance] FinCenter in timeSeries with "merge", "cbind" and "rbind"

Displaying 20 results from an estimated 800 matches similar to: "[R-SIG-Finance] FinCenter in timeSeries with "merge", "cbind" and "rbind""

2005 Apr 19
1
timeSeries Date Warning messages: Set timezone to GMT!
Hello, I must be doing something wrong that's very obvious. But I just don't see it. I changed my Windows Time Zone to GMT and my Financial Center to Montreal. But I still get several warnings. >Sys.timezone() [1] "GMT Daylight Time" >myFinCenter [1] "Montreal" >Sys.timeDate() [1] "Montreal" [1] [2005-04-19 10:55:02] Warning messages: 1: Set
2004 Dec 12
1
Re: [R-sig-finance] dates and times on Windows for fMetrics
# Here is the solution: require(fBasics) # Be sure that R is running in time zone GMT. # Set your Windows environment variable to "GMT" # Your PC Windows clock can still run in any other time zone! # My clock is now running in Zurich in Europe. Date = c("2003-10-09", "2003-10-10", "2003-10-13", "2003-10-14") Open = c(1.27, 1.25, 1.27,
2009 Jul 10
1
getting a timeseries element into a string
I have a timeseries object, ts, and want to get the first date in the series into a string so I can concatenate it with a SQL query. Input and output are shown below. I must be missing something very basic, but I can't seem to pry the data ("2008-07-01") into a string variable. Any suggestions would be appreciated. Thank you, Andrew =====script: class(ts) (ts[1,0]) #returns
2007 Dec 11
0
holidayNYSE missing some
John Putz wrote: > Thanks. > > */ > email: /**/johnputz3655@yahoo.com/* <mailto:johnputz3655@yahoo.com> > */home: 206-632-6522 > cell: 206-910-5229/* > > > ----- Original Message ---- > From: Joe W. Byers <ecjbosu@aol.com> > To: John Putz <johnputz3655@yahoo.com> > Cc: r-sig-finance@stat.math.ethz.ch > Sent: Friday, December 7, 2007
2011 Jan 12
1
snowfall
Hello, Just wondering why I am unable to run this in parallel. A dput of my dataset is attached at the end. Please use to create my data object. I want to run this function in parallel (not sure if this is an efficient implementation): #Function to calculate the time to maturity for the option require(fCalendar,quietly=TRUE) #Trying to calculate the trading days
2009 Jan 27
2
Can I create a timeDate object using only year and week of the year values?
For a model I am working on, I have samples organized by year and week of the year. For this model, the data (year and week) comes from the basic sample data, but I require a value representing the amount of time since the sample was taken (actually, for the purpose of the model, it is sufficient to use the number of weeks from the middle of the sample week to the present). What I have found so
2010 Jan 07
1
Return values in fExtremes package
Hi, I was usuing the fExtemes package, and wanted to obtain some of the values returned from the function gumbelFit(). For example, in the following code, I would like to access 'mu' and 'beta' from the object 'para'. How should I go about doing this? Is there any generic method to access the object? ----------------------------------- >library("fExtremes")
2006 Jul 06
2
use of apply in a data frame on a row by row basis
Hello all, I'm trying to use the apply function on a data frame, by applying a function that takes a one row data.frame as argument . Here's the example : myfun = function(x) paste(x$f1 , x$f2) df = data.frame(f1 = c(1,4,10),f2 = "hello") apply(df,1,myfun) ==> Does not work (I get "character(0)" ) Though : myfun(df[1,]) works, and myfun(df) works as well. So if
2004 Dec 13
2
read attribute
How can I get a single attribute value of an object ? I jhave the tiemSeries object > ts1 Open 2003-10-09 02:00:00 1.27 2003-10-10 02:00:00 1.25 2003-10-13 02:00:00 1.27 2003-10-14 02:00:00 1.29 When I unclass ts1 I get: > unclass(ts1) list() attr(,"Data") Open 2003-10-09 02:00:00 1.27 2003-10-10 02:00:00 1.25 2003-10-13 02:00:00 1.27
2009 Mar 05
1
Problem using RMySQL and fCalendar
Hello: I am trying to use fCalendar for date arithmetic and the RMySQL package for accessing a MySQL database. The fCalendar math operations seem to work fine UNTIL I load the RMySQL package. Here is a demonstration: ean at fibonacci:~/Desktop/amCharts/rsa-metrics$ R R version 2.7.1 (2008-06-23) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free
2018 Feb 12
2
problema de fechas
Las fechas están en formato ?Date? del paquete ?lubridate?, pero me encuentro el mismo problema usando fechas en formato POSIXct. Saludos, Patricio > El 13 feb 2018, a las 0:08, Javier Marcuzzi <javier.ruben.marcuzzi en gmail.com> escribió: > > Estimado Patricio > > Hay más de una forma para trabajar con fechas, y no es lo mismo dependiendo el sistema, a mi me
2018 Feb 12
4
problema de fechas
Tengo un vector de fechas en formato R: > fechas <- c(?2016-07-15?, ?2016-10-12?, ?2017-02-11?) quiero que las fechas de 2017 (la tercera del vector del ejemplo) pasen a ser NA > fechas2 <- ifelse(fechas > ?2016-12-31?, NA, fechas) El problema que me encuentro es que el resultado (fechas2) es un vector numérico y no un vector de fechas. No encuentro la solución. Se agradecen
2016 Aug 29
2
encontrar fechas saltadas
Hola Javier. Quizás no me expliqué bien: Estoy usando esta función para identificar fechas saltadas de una base de datos en formato d/m/A; > mi_serie <- c > ref_serie <- seq(from = min(mi_serie), to = max(mi_serie) ) > > dif_series <- setdiff( ref_serie, mi_serie) > > dif_series > length( dif_series) El problema es que en REF_SERIE, me dice que los cálculos los
2014 Sep 08
3
problema con los cambios de marcas temporales en el eje X
Muchísimas gracias Carlos, de verdad que te agradezco la ayuda, pero no es lo que voy buscando. Quiero colocar en el eje de abscisas la secuencia temporal de los meses, es decir, agosto septiembre, octubre, etc? pero no las fechas de las toma de datos, sino que aparezca la marca de un mes, y la siguiente marca sea la del siguiente mes, etc?, y además que las muestras estén separadas de acuerdo con
2010 Jul 05
3
Problemas para graficar barras de error y fechas en el eje-x (SOLUCIONADO)
Hola Carlos, afortunadamente, encontré una solución a mi problema (hasta ahora al menos me funciona, veremos si más adelante se me complica con alguna otra cosa) Llogré resolver el problema usando el parámetro "labels" de la función "axis()". Lo que hice es algo así: *datos <- read.table(....)* #en el archivo datos, tengo una columna con las fechas en formato julian hecha
2016 Aug 30
2
encontrar fechas saltadas
Hola, Vuelve a instalar el paquete "lubridate" y nos dices si sigues con el problema. Saludos, Carlos Ortega www.qualityexcellence.es El 30 de agosto de 2016, 14:53, Javier Valdes Cantallopts (DGA) < javier.valdes en mop.gov.cl> escribió: > Hola Carlos y a todos los miembros. > > Al llamar a ?lubridate? me encontré con el siguiente problema: > > 1] date hour T
2014 Sep 08
2
problema con los cambios de marcas temporales en el eje X
Muchas gracias Carlos, previo a mi correo, entre las pruebas que hice estaba una parecida a la que apuntas de la siguiente manera: attach (Libro1) plot (xbar~as.Date(fechas,"%d/%m/%y"), ylim=c(400,660), xaxt="n", type="b", pch=19,cex=1) xlabels<-strptime(fecha,format="%d/%m/%Y") axis.Date (1,at=xlabels,format="%b-%y")
2016 Aug 30
2
encontrar fechas saltadas
?El considerar las horas, minutos y segundos, depende de lo que quieras hacer. - Puedes incorporarlo en el campo fecha con la función de lubridate: "ymd_hms()". - Pero luego al crear el vector de referencia para encontrar los faltantes tienes que crear un vector secuencia entre la fecha mínima y la máxima. Este vector de referencia no tiene dudas de que es entre el max y
2016 Aug 30
2
encontrar fechas saltadas
Hola, Usé "textConnection" para poder utilizar tus propios datos y leerlos con read.table. En tu caso, si tienes los datos en un .csv, simplemente tienes que leerlos con read.table y utilizar la parte que sigue a "library(lubridate)" en el código que compartí ayer: coger la columna de fechas, leerla con "lubridate" y compararla con el vector de referencia. El error
2016 Aug 29
4
encontrar fechas saltadas
?Hola, "setdiff()" efectivamente funciona sobre vectores numéricos (no fechas). Para fechas, es mejor hacerlo de esta forma (utilizando tus datos): > > Lines <- "fecha hora datos + 20/11/12 2:00:04AM 12.905 + 21/11/12 3:00:04AM 12.889 + 22/11/12 4:00:03AM 12.873 + 23/11/12 5:00:03AM 12.861 + 29/11/12 11:00:03AM 12.804 + " > > datIn <-