[R] Find mean of values in three-dimensional array

2016-06-15 Thread Nick Tulli
Hey R-Help, I've got a three dimensional array which I pulled from a netcdf file. The data in array are the humidity values of locations in the United States over a time period. The three dimensions are [longitude, latitude, days], 141x81x92. My goal is to find the mean value at each longitude/lat

[R] find longest consecutive streak in double

2016-06-05 Thread Nick Tulli
Hey guys. Learning R after gaining a background in Python this year, and I'm translating my Python projects to R now. This is the first time I'm posting to the mailing list. Essentially, I have 92 data points in one double that I created from a netcdf file. Those 92 data points represent a measure