Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row names are dropped when dataset for PCA is provided in form of a data frame #98

Closed
svkucheryavski opened this issue Mar 11, 2021 · 1 comment
Labels
Milestone

Comments

@svkucheryavski
Copy link
Owner

Here is the code which reproduces the issue:

r$> m <- pca(as.data.frame(people))                                                                                           

r$> rownames(m$res$cal$scores)                                                                                                
NULL

r$> m <- pca(people)                                                                                                          

r$> rownames(m$res$cal$scores)                                                                                                
 [1] "Lars"       "Peter"      "Rasmus"     "Lene"       "Mette"      "Gitte"      "Jens"       "Erik"       "Lotte"     
[10] "Heidi"      "Kaj"        "Gerda"      "Anne"       "Britta"     "Magnus"     "Casper"     "Luka"       "Federico"  
[19] "Dona"       "Fabrizia"   "Lisa"       "Benito"     "Franko"     "Alessandro" "Leonora"    "Giuliana"   "Giovanni"  
[28] "Leonardo"   "Marta"      "Rosetta"    "Romeo"      "Romina" 

In PLS everything works fine.

@svkucheryavski svkucheryavski added this to the 0.11.4 milestone Mar 11, 2021
svkucheryavski added a commit that referenced this issue Mar 11, 2021
svkucheryavski added a commit that referenced this issue Mar 11, 2021
@svkucheryavski
Copy link
Owner Author

fixed in the developing version (coming release 0.11.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant