🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

R for CRUTEM5 data

Started by
1 comment, last by fleabay 2 years, 2 months ago

I have an R code that reads in weather station data from around the world, and then calculates the trend for each station.

https://github.com/sjhalayka/crutem5_reader_R​

It finds that the mean trend is 0.163 +/- 0.184 degrees per decade. Because the trend is positive, there is global warming.

If I uncomment the line shown in the next link, the code fails at some point. It's driving me nuts.

https://github.com/sjhalayka/crutem5_reader_R/blob/28898497185fba4cdd0ac1a2f4935a134af7ea53/array.r#L87

Anyone know why?

Advertisement

I don't know R but if the ‘if’ is false it only excludes the first line/assignment. I think.

Maybe you intended to have a code block?

Sorry, just a guess…

ED: Did you mean "uncomment the 2 line(s)”? Wouldn't the remaining code still get ran once?

🙂🙂🙂🙂🙂<←The tone posse, ready for action.

This topic is closed to new replies.

Advertisement