[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 explain how I can obtain the
distribution of my data?

Thanks,

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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)
'data.frame':   1 obs. of  17 variables:
 $ Id  : int 7471
 $ idSimulacion: int 0
 $ fe_corte: POSIXct, format: "2008-11-30"#  I
want this format
 $ fe_ini_ope  : POSIXct, format: "2008-12-01 06:00:00" # R changes
to "-mm-dd hh:MM:ss"
 $ fe_ven_ope  : POSIXct, format: "2008-12-01"
 $ plazo   : int 1
 $ imp_ope : num 8e+06


Thanks in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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.
 Please contact the application's support tean for more information.


is it a bug? is there something wrong ?

The sqlSave is:

sqlSave(cnn, VencimientosxDia, tablename = "Copia", append = TRUE, safer =
TRUE, rownames = FALSE, colnames = FALSE)

Thanks

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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 doesn't a date

How can I do a loop with dates and get the index of each date? are there a
method to convert the index i to date?


Thanks in advance.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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, destfile = "D:\\users2\\r-intro.pdf",cacheOK =
FALSE)
Any ideas how I can resolve this problem?

Thanks in advance,

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.