I'm trying to check the relationship of two weather variables in list format, because I'm putting data from the last six months (for example) in a list and so on for every month of the year. But I would like to know if there is a way to apply correlation to these lists. I know that the data used in the cor function must be numeric, but in the case of list, how to proceed? Does R have a specific role that performs this work?
For example, in python I found posts that indicated a way, it would be something like this this and this
Part of the two lists I would like to correlate with variable V1 and V2
V1
c(149.6, 251, 161, 244.3, 760.7, 185.5)
c(26.434432, 26.192469, 26.379851, 26.158357, 25.848118, 26.676528)
c(251, 161, 244.3, 760.7, 185.5, 44.3)
c(26.192469, 26.379851, 26.158357, 25.848118, 26.676528, 26.655914)
c(161, 244.3, 760.7, 185.5, 44.3, 3.8)
V2
c(26.379851, 26.158357, 25.848118, 26.676528, 26.655914, 26.85959)
c(244.3, 760.7, 185.5, 44.3, 3.8, 0.5)
c(26.158357, 25.848118, 26.676528, 26.655914, 26.85959, 27.271498)
c(760.7, 185.5, 44.3, 3.8, 0.5, 2.2)
c(25.848118, 26.676528, 26.655914, 26.85959, 27.271498, 0)
I appreciate any help!