How to set my dataframe for a Mantel test and how should I run it.

I have a project for a class and my professor wants me to try ton run a Mantel test to assess differences in distance from water source according to temperature and precipitation. I have very little experience in both statistics and R, so I'm scratching my head trying to figure out how to set up the dataset and test.
I want to seed if distance from water (which is distance from ponds, streams, and ponds and streams) is correlated to temperature (TAVG) and precipitation (precip) and snowfall (snow).

This is how I set up the CSV file.
head(bison.dist.water)
date time dist.stream dist.pond dist.stream.pond precip snow SNWD TAVG
1 10/23/2012 9:00:00 PM 76.42 52.06 52.06 0 0 0 21.95
2 10/23/2012 10:00:00 PM 72.73 52.55 52.55 0 0 0 21.95
3 10/23/2012 11:00:00 PM 71.69 48.10 48.10 0 0 0 21.95
4 10/23/2012 9:00:00 PM 72.84 47.47 47.47 0 0 0 21.95
5 10/23/2012 10:00:00 PM 75.03 42.66 42.66 0 0 0 21.95
6 10/23/2012 11:00:00 PM 75.92 87.53 75.92 0 0 0 21.95

How the data is structured

str(bison.dist.water)
'data.frame': 81973 obs. of 9 variables:
date : chr "10/23/2012" "10/23/2012" "10/23/2012" "10/23/2012" ... time : chr "9:00:00 PM" "10:00:00 PM" "11:00:00 PM" "9:00:00 PM" ...
dist.stream : num 76.4 72.7 71.7 72.8 75 ... dist.pond : num 52.1 52.5 48.1 47.5 42.7 ...
dist.stream.pond: num 52.1 52.5 48.1 47.5 42.7 ... precip : num 0 0 0 0 0 0 0 0 0 0 ...
snow : int 0 0 0 0 0 0 0 0 0 0 ... SNWD : int 0 0 0 0 0 0 0 0 0 0 ...
$ TAVG : num 21.9 21.9 21.9 21.9 21.9 ...

As far as I understand Mantel correlates two distance matrices so I'm assuming it would be i.e., distance when temperature is low vs when it's high and I was thinking about use annual average temperature as the threshold.
So, if that is correct I need help on how to set it up.

Thanks!