Reading comma separated data from text files

hello all,

I am facing some difficulties regarding correspondence analysis, the major problem I am facing was reading the ".txt" file. this is the file I am facing difficulties with.

A <- read.table("Book1_ca_trail.txt",sep=',', header = TRUE, fill = TRUE, quote="\")

i have used this code which yield success initially when it comes to reading the file. however, I couldn't proceed further when I put it for the chi-square test or correspondence analysis. I am using the FactoMineR package for the correspondence analysis. Please help.

Unfortunately, I can not even upload the file as well

I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions.
For example, the guide emphasizes asking coding questions with formatted code-chunks and a reprex.

You may have noticed folks here requesting minimal reprexes, that's because asking questions this way saves answerers a lot of time.

Reproducible Examples:

  • help make your question clear and replicable
  • increases the probability folks will reach out and try to help,
  • reduces the number of back-and-forths required to understand the question,
  • and makes your question and suggested solutions more useful to folks in the future researching similar problems.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.