How do I select imported data in R?

Asked

Viewed 66 times

1

I need to analyze my data with PCA on R (version 3.3.2), and the tutorial I have from an older version does not seem to apply.
I imported the data in .xlsx and according to what I know, I need to select the numerical data for PCA analysis using the package stats, excluding the rows and columns that name the variables.
The commands I had to test are: dadosnumericos <- dados[,3:25], as an example, and several error messages appear.

  • 2

    Welcome to Stack Overflow in English. Since you tried to do something, can you structure the question better, emphasizing your attempts, along with the error messages? It’ll make it easier for anyone to help you.

  • 2

    Hi Paola, are you sure you were able to load the data correctly? If you can, edit your question by adding the result of when you run str(dados) on the console of R. So it will be easier to understand what may be going wrong p/you. It will also be easier if you add in your question a copy of the error messages that appeared to you. Thank you!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.