The links provided do not solve the issue. Here is my edited problem:
There are hundreds of columns and I need to run cor
for several.
1) I have to delete "character" columns from my df before running cor.
2) I also have to convert "logical" columns to "numeric". These "logical" columns are already in format of 1 or 0.
3) In each row are additional potential issues: (A) blank cells, (B) cells that say "N/A"
4) Basically, looking to run cor and trying to remove obstacles in way of doing that.
sapply(dfcor,class)
cor(dfcor, use = "complete.obs")
Error message:
Error in cor(dfcor, use = "complete.obs") : 'x' must be numeric