calculate the correlation for factor type of data in R

i want to calculate the correlation matrix (data class is factor). How should I do that? the error which I saw is : Error in cor(mydata_students, method = "pearson") : 'x' must be numeric

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum