Error: "Error in 1:ncol(y) : argument of length 0" when attempting correlation analysis
<p>I am reading in a csv file consisting of two columns of data from two sources.I would like to find the p values between them, however, I get the error mentioned in the title. </p>

<pre><code>library(psych)
RfileX = read.csv(fpath, header = TRUE)
x = as.matrix(RfileX)
a=x[1:52,1]
b=x[1:52,2]
print(corr.test(a,b, adjust = "none"), short = FALSE)
</code></pre>

<p>Data for reference (What do the Ls mean?, thanks)</p>

<pre><code>structure(list(A1 = c(2L, 2L, 2L, 3L, 2L, 2L, 2L, 2L, 2L, 3L), 
    B1 = c(3L, 3L, 2L, 3L, 2L, 3L, 3L, 3L, 2L, 2L)), .Names = c("A1", 
    "B1"), row.names = c(NA, 10L), class = "data.frame")
</code></pre>