Advertisement

R for CRUTEM5 data

Started by March 24, 2022 05:31 PM
1 comment, last by fleabay 2 years, 8 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?

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