Hi, I'm Roslina, PhD student of University of South Australia, Australia from school Maths and Stats. I use S-Plus before and now has started using R-package. I used to analyse rainfall data using julian date. Is there any similar function that you can suggest to me to be used in R-package? Thank you so much for your attention and help [[alternative HTML version deleted]]
Hi,
I'm Roslina, PhD student of University of South Australia, Australia
from school Maths and Stats. I use S-Plus before and now has started
using R-package. I used
to analyse rainfall data using julian date. Is there any similar
function that you can suggest to me to be used in R-package? Thank you
so much for your attention and help.
Here are some of my codes:
# dt1-data
# mt1-begin month, mt2- end month, nn=year, n= no of years
# da - days in the following month
# yr1 - year begin
define.date1<-function(dt1,mt1,mt2,nn,da)
{ mt2<-mt2+1
start<-julian(mt1, 1, nn, origin=c(month=1, day=1, year=1971))+1
end<-julian(mt2, 1, nn, origin=c(month=1, day=1, year=1971))+da
a<-dt1[start:end,]
#am<-as.matrix(a[,5])
}
seq.date1<-function(dt1,mt1,mt2,n,yr1,da)
{ yr1<-yr1-1
for (i in 1:n)
{ kp1<-define.date1(dt1,mt1,mt2,yr1+i,da)
if (i==1) kp2<-kp1
else kp2<-rbind(kp2,kp1)
}
kp2
[[alternative HTML version deleted]]
Rosalina,
You should start by reading the Posting Guide - it has helpful advice on
how to solve a problem yourself and how to craft postings to get good
answers.
The Posting Guide says:
[some basics deleted]
Do your homework before posting: If it is clear that you have done basic
background research, you are far more likely to get an informative
response. See also Further Resources further down this page.
* Do help.search("keyword") and apropos("keyword") with
different
keywords (type this at the R prompt).
[other helpful suggestions deleted]
---------------------------------------------------------------------
and doing exactly that on my system yields:
--------------------------------------------------------------------
Help files with alias or concept or title matching .julian. using fuzzy
matching:
weekdays(base) Extract Parts of a POSIXt or Date
Object
day.of.week(chron) Convert between Julian and Calendar
Dates
TimeDateCoercion(fCalendar) timeDate Class, Coercion and
Transformation
date.ddmmmyy(survival) Format a Julian date
date.mdy(survival) Convert from Julian Dates to Month,
Day, and Year
date.mmddyy(survival) Format a Julian date
date.mmddyyyy(survival) Format a Julian date
mdy.date(survival) Convert to Julian Dates
Type 'help(FOO, package = PKG)' to inspect entry 'FOO(PKG)
TITLE'.
---------------------------------------------------------------------
which should be enough to get you going.
Also, you will want to consult Rnews which had an informative article on
handling dates a few years back.
HTH,
Chuck
On Mon, 7 Jan 2008, Zakaria, Roslinazairimah - zakry001 wrote:
> Hi,
>
> I'm Roslina, PhD student of University of South Australia, Australia
> from school Maths and Stats. I use S-Plus before and now has started
> using R-package. I used
>
> to analyse rainfall data using julian date. Is there any similar
>
> function that you can suggest to me to be used in R-package? Thank you
>
> so much for your attention and help
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
Good afternoon, I've installed R on Suse 10.3 compiling the source files. I opne the program on shell configuration and i have a problem saving the workspace and *.R or *.Rdata files. I 've read the manual and written the comand as it says but the output is: save.image() Errore in gzfile(file, "wb") : impossibile aprire la connessione Inoltre: Warning message: In gzfile(file, "wb") : impossibile aprire il file compresso '.RDataTmp' an output error. So i've tried in windows, but i've had the same problem. How could i save the data and the files in R? I apologize for my english but it'not my language. Thanks a lot to everybody Danilo