@grosscol, I am formatting x as a number in excel, and the environment recognizes it as a number as well.
Here's what the code looks like:
> class('bph')
[1] "character"
> #correlation test
> corr.test('bph', 'VCRate1', use = "pairwise" , method="pearson", adjust="holm",
+ alpha=.05,ci=TRUE)
Error in cor(x, y, use = use, method = method) : 'x' must be numeric
For the as.numeric code, I get this:
as.numeric('bph')
[1] NA
Warning message:
NAs introduced by coercion