Skip to content

Instantly share code, notes, and snippets.

@srerickson
Created March 5, 2015 18:42
Show Gist options
  • Save srerickson/b98c00f6737c5f7ae9d1 to your computer and use it in GitHub Desktop.
Save srerickson/b98c00f6737c5f7ae9d1 to your computer and use it in GitHub Desktop.
27,28c27,38
< write.csv(mydata.pca,file=paste("PCA-using-",dataset,".csv", sep=""))
< write.csv(mydata.pca$eig,file=paste("PCA-Eigenvalues-using",dataset,"-memberships.csv", sep=""))
---
> # Table 3 in the paper
> write.csv(round(mydata.pca$eig,digits=2),file=paste("PCA-Eigenvalues-using-",dataset1,"-memberships.csv", sep=""))
>
> # Table 4 in the paper
> write.csv(round(mydata.pca$var$contrib,digits=2),file=paste("PCA-VarContrib-using-",dataset1,"-memberships.csv", sep=""))
>
> # Table 5 in the paper
> write.csv(round(mydata2.pca$eig,digits=2),file=paste("PCA-Eigenvalues-using-",dataset2,"-memberships.csv", sep=""))
>
> # Table 6 in the paper
> write.csv(round(mydata2.pca$var$contrib,digits=2),file=paste("PCA-VarContrib-using-",dataset2,"-memberships.csv", sep=""))
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment