[R] Distribution fitting

2008-12-15 Thread Fernando Bizuet
Hello R-helpers, I have a lot of series of data and I want to obtain the best probability distributions (and the distribution to estimate parameters) of each serie. Besides this paper http://cran.r-project.org/doc/contrib/Ricci-distributions-en.pdf, do you know if there are other papers that expl

[R] how can I change the format attribute of POSIXct class

2008-12-12 Thread Fernando Bizuet
Hello, I have a POSIXct column in a dataframe, but when I change the value assigment (for instance, VencimientosxDia$fe_ini_ope <- as.Date(fecha) ) automatically change the format attribute with "2008-12-01 06:00:00". How can I drop the hh:mm:ss from format attribute? > str(VencimientosxDia) 'da

[R] RODBC and Microsft Visual C++ Runtime Library

2008-12-12 Thread Fernando Bizuet
Hello, I am using RODBC and some times when I use a sqlSave I recive this message: Microsft Visual C++ Runtime Library RunTime Error! Program C:\Archivo de programa\R\R-2.8.0\bin\Rgui.exe This application has requested the Runtime to terminate it in an unusual way. P

[R] loop with dates

2008-12-12 Thread Fernando Bizuet
Hello, I am trying to do a loop with dates, but when I try to use the index is not a date. Fcorte <- as.Date('2008/11/30',format = "%Y/%m/%d") fini <- Fcorte + 1 ffin <- seq(fini,by='months',length=2)[2] - 1 for (i in seq(fini,to = ffin, by='days')) print (weekdays(i)) # i does

[R] Problems when I try to download.file pdfs

2008-11-14 Thread Fernando Bizuet
Hello, I have been trying to download a pdf file but I only receive a blank sheets. I used the option internet2 in windows: Rgui.exe --internet2 but I recieved the same result. I use the next command: ulr2 <- "http://cran.r-project.org/doc/manuals/R-intro.pdf"; download.file(url = ulr2, destf