paran package - error message
Hi IS is data frame so it is not numeric. try str(IS) to see structure of your data. maybe just mat.IS <- as.matrix(IS) gives you desired result, but it depends on (undisclosed) IS structure BTW, do not use html formatting, it is useless in this list BTW2, you should spend at least few minutes to read basic docs, kindly offered by R-core in doc directory, especially R-intro which gives you quick info about objects and their properties. BTW3, your read.table is lacking header and sep and maybe dec specification so I doubt it reads your data properly. Cheers Petr
-----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Lee, Deborah Sent: Monday, August 24, 2020 12:52 PM To: r-help at r-project.org Subject: [R] paran package - error message I am trying to using the "paran" package in R for Horn's parallel
analysis.
According to the "paran" manual, the highlighted yellow ought to be a numerical matrix or data frame. It looks like this should be the file
name. Is
there something that I need to do
install.packages("paran")
library(paran)
IS<- read.table ("C:/Users/Deborah Lee/Documents/R/IS.csv") paran(IS,
cfa=TRUE, graph=TRUE, color=TRUE, col=c("black", "red", "blue"))
When I run the code above, I get the error message below.
in cor(x) : 'x' must be numeric
How do I set up my data (csv) file itself to make this a numerical matrix?
(FYI:
row 1 for headers for variables names). Thank you for your help. Deborah D. Lee, PhD Associate Director of Student Affairs Research and Assessment The Pennsylvania State University 105 White Building University Park, PA 16802 (814) 863-9609 [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code.