I have a matrix with several unordered categorical variables. Each row represents a type of individual. Each column represents the number of times each type of individual was found to be in that particular condition.
Type coal cobalt concrete copper gold
A 12 0 0 19 5
B 5 0 0 11 0
C 4 2 0 14 1
D 1 3 15 0 1
E 0 20 2 1 9
My question is very simple: I want to know if there is a correlation between the type of the individual (A, B or C) with a particular condition (copper, gold, etc).
Which test should I use? If possible, I would like to get the answer by using R.
Thanks!