Re: [R] Pb with date time sequence with period<1sec

2015-09-10 Thread peter dalgaard
Plus, current dates are an awful lot of seconds since 1970-01-01, so the relative error on second-scale differences is bigger than you might think: > as.numeric(Sys.time()) [1] 1441874878 and since relative representation errors are of the order 1e-16, the corresponding absolute errors are abou

Re: [R] Pb with date time sequence with period<1sec

2015-09-09 Thread Sarah Goslee
Looks like R FAQ 7.31 to me. https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f On Wed, Sep 9, 2015 at 4:19 AM, DE wrote: > Hi, > > I'd like to create a date-time seq with a period of 0.05 s, over several > days. > > # try : > start<-strptime(nom_f

[R] Pb with date time sequence with period<1sec

2015-09-09 Thread DE
Hi, I'd like to create a date-time seq with a period of 0.05 s, over several days. # try : start<-strptime(nom_fich,format="%y%m%d") time<-seq(from=start, by=0.05, length.out = 86400*20*3) print(as.POSIXlt(time[2])$sec) # result is 0.0495 and not 0.05 as expected But If I am looking at the

Re: [R] Pb

2014-05-15 Thread Prof Brian Ripley
On 15/05/2014 11:19, ilias.khatt...@bbox.fr wrote: Hi, I'm an engineer student who work on a project with hadoop & R. I installed the ODBC driver and configure it and it works with excel but I earn some problems with R. I think it's maybe because of my OS which is a Mavericks

[R] Pb

2014-05-15 Thread ilias . khattari
Hi, I'm an engineer student who work on a project with hadoop & R. I installed the ODBC driver and configure it and it works with excel but I earn some problems with R. I think it's maybe because of my OS which is a Mavericks. I saw there are no binaries files for my OS in the RO

[R] pb with 4D dicom data and oro.dicom

2011-12-01 Thread jean-paul.vallee
Hello, I have the following problem. After a PACS upgrade in our hospital, the dynamic 3D images acquired after contrast media injection with a 3T Philips MRI are all saved in a single 4D file instead of a series of 2D images containing multiple 3D images over time. I used to convert this serie

[R] Pb building sets of S4 / RefClass objects with package "sets"

2011-10-07 Thread Johnny Paulo
Hi, does anyone know if it is possible to construct sets of S4 objects? It seems the constructor set does not like it: Error in as.vector(x, "character") : cannot coerce type 'environment' to vector of type 'character' Regards Johnny [[alternative HTML version deleted]]

Re: [R] Pb with \t interpretation in R

2011-08-29 Thread Duncan Murdoch
On 29/08/2011 3:29 PM, Imbeaud (Inserm U674) wrote: Hi, I have to deal with a huge .txt table (~485.577 rows and 469 columns,> 1.5 Go file) I used the read.table function > tmp=read.table("data.txt", header=TRUE, sep="\t", fill=TRUE, na.strings="NA", comment.char="", stringsAsFactors = FALSE)

[R] Pb with \t interpretation in R

2011-08-29 Thread Imbeaud (Inserm U674)
Hi, I have to deal with a huge .txt table (~485.577 rows and 469 columns, > 1.5 Go file) I used the read.table function > tmp=read.table("data.txt", header=TRUE, sep="\t", fill=TRUE, na.strings="NA", comment.char="", stringsAsFactors = FALSE) However, I encounter troubles in interpreting some "\t"

Re: [R] pb with Date format using filled.contour

2011-03-02 Thread Prof Brian Ripley
On Wed, 2 Mar 2011, Xavier Bodin wrote: Hi R-help community, Can anyone tell me why, while using : x <- seq(as.Date("2001-01-01"),as.Date("2001-01-01") + nrow(volcano)-1,1) y <- seq(1, ncol(volcano),1) when I plot the volcano matrix with that command : filled.contour(x,y,volcano) the

[R] pb with Date format using filled.contour

2011-03-02 Thread Xavier Bodin
Hi R-help community, Can anyone tell me why, while using : x <- seq(as.Date("2001-01-01"),as.Date("2001-01-01") + nrow(volcano)-1,1) y <- seq(1, ncol(volcano),1) when I plot the volcano matrix with that command : filled.contour(x,y,volcano) the graph has a Date format on X-axis, ok ..

Re: [R] pb with optimimization and fitdistr

2009-11-04 Thread Ravi Varadhan
Behalf Of Nicolas Turenne Sent: Wednesday, November 04, 2009 12:17 PM To: r-help@r-project.org Subject: [R] pb with optimimization and fitdistr Hello i try to fit a data series (N below) with a model consisting of a mixture of two beta distributions for that i am using fitdistr of package MASS a

[R] pb with optimimization and fitdistr

2009-11-04 Thread Nicolas Turenne
Hello i try to fit a data series (N below) with a model consisting of a mixture of two beta distributions for that i am using fitdistr of package MASS as follows > library(MASS) > N=c(796,3586,4089,3364,2745,1992,1120,432,99,10,0,0) > d2 = (N-min(N)+0.01)/(max(N)-min(N)+0.002) > mixtBet