-
Notifications
You must be signed in to change notification settings - Fork 27
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
Understanding PCA using Stack Overflow data | Julia Silge #74
Comments
Hi Julia! library(broom) tidied_pca <- bind_cols(Tag = colnames(tags_scaled), tidied_pca Thanks again for your help and btw are you coming someday to Europe? :-) |
@PatoLocos Can you use the broom tidiers, like library(broom)
x <- matrix(rnorm(200), nrow = 20)
pc <- irlba::prcomp_irlba(x, n = 3)
tidy(pc, matrix = "rotation")
#> # A tibble: 30 × 3
#> column PC value
#> <int> <dbl> <dbl>
#> 1 1 1 -0.575
#> 2 1 2 -0.176
#> 3 1 3 -0.175
#> 4 2 1 0.126
#> 5 2 2 0.146
#> 6 2 3 -0.319
#> 7 3 1 -0.349
#> 8 3 2 -0.110
#> 9 3 3 -0.0494
#> 10 4 1 -0.0242
#> # … with 20 more rows
#> # ℹ Use `print(n = ...)` to see more rows Created on 2022-08-08 by the reprex package (v2.0.1) |
Hi, |
@PatoLocos I haven't traveled outside the US since before the pandemic but I am starting to maybe feel ready. We'll see! |
Understanding PCA using Stack Overflow data | Julia Silge
A data science blog
https://juliasilge.com/blog/stack-overflow-pca/
The text was updated successfully, but these errors were encountered: