[R] daylight

2012-10-23 Thread bambus
hi there, does anyone know how to calculate the amount of daylight on every day of the year in R? I mean the time between sunrise and sunset. thanks -- View this message in context: http://r.789695.n4.nabble.com/daylight-tp4647213.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] data dividing

2012-10-16 Thread bambus
ok thanks, but I just got it right. Although I don't know what was the problem. just thanks for your effort!!! -- View this message in context: http://r.789695.n4.nabble.com/data-dividing-tp4646314p4646325.html Sent from the R help mailing list archive at Nabble.com. _

[R] data dividing

2012-10-16 Thread bambus
hey I'd like to divide my data into four seasons. for this I made a function: Jahreszeit <- function(x) { if (x<=02 || x==12) {return("Winter") }else{ if (x>=03 && x<=05) {return("Fruehling") }else{ if (x>=06 && x<=08) {return("Sommer") }else{ if (x>=09 && x<=11) {return("Herbst") } Now, I