Re: [R] How to open a text file in my screen (not in the R session)?

2005-11-23 Thread Massimiliano Tripoli
You could use the following istruction: system("notepad predictions.txt",wait=FALSE) I hope this will be helpful. Regards, Massimiliano At 01:00 AM 11/23/2005, Molins, Jordi wrote: >In the middle of my code, I have the following: > >write.table(PredictionTest, file = "predictions.txt") > >wha

[R] Graph with values of coordinates of points in x axis

2005-06-15 Thread Massimiliano Tripoli
Hi all, I want to draw a line with the values of x marked in X axis. I tried with x <- c(0,6,12,18,24,30) #coordinates of points x y <- c(2,5,7,5,7,16) #coordinates of points y plot(x,type="n",xlab="Months",ylab="Y values",main="main",ylim=c(0,16),xlim=c(0,30)) lines(x,y) The graph shows b

[R] Julian dates

2004-01-28 Thread Massimiliano Tripoli
Hi all, I have problems with years of dates using "chron" package. I don't understand why R by this istruction: > dates("01/02/29",out.format="d/m/year") [1] 02/Jan/2029 > dates("01/02/30",out.format="d/m/year") [1] 02/Jan/1930 reads "29" as 2029 and "30" as 1930. How could I change to read "00"

[R] dates function

2004-01-28 Thread Massimiliano Tripoli
Hi all, I have problems with years of dates using "chron" package. I don't understand why R by this istruction: > dates("01/02/29",out.format="d/m/year") [1] 02/Jan/2029 > dates("01/02/30",out.format="d/m/year") [1] 02/Jan/1930 reads "29" as 2029 and "30" as 1930. How could I change to read "00"