R语言做图时错误提示Error in cor(exprset4, method = "spearman") : 'x' 必需是数值

在用命令
exprset4 <- read.table("exprset4.txt",sep = ",",header = TRUE,check.names = F)
expcor <- cor(exprset4, method = "spearman")时出现这个错误
求帮忙解答,刚学R的初学者,csv格式,txt格式都试过,在excel里改成数值格式也尝试了,

img

你好同学,请尝试以下在cor函数之前使用

exprset4<-as.numeric(exprset4)

转化成数值之后才能够行得通

img