nickmckay / GeoChronR

Development repository for GeoChronR
http://nickmckay.github.io/GeoChronR/
MIT License
32 stars 3 forks source link

corout: choose time window for correlation? #59

Closed ekthomas closed 2 years ago

ekthomas commented 2 years ago

Hi Nick! Is there a way in the corout function to choose a time window to do the correlation? For example, I'd like to look at the correlation of a couple records in the Baffin Bay region before and after the Nares Strait opened ~9.3 ka, but do those correlations separately. Thanks! Elizabeth

nickmckay commented 2 years ago

Hi Elizabeth.

Yes! corEns() has an option called bin.vec that lets you specify a vector of bins over which the correlation will take place. So you could specify bin.vec = seq(9300,12700,by = 100), for example, to do the correlation before, and then something else after.

That work? Let me know if you run into trouble.

ekthomas commented 2 years ago

Thanks Nick, that worked great! Hmmm I gotta get better at deciphering code ;), sorry to bug you about that!