I want to do a PCA analysis using prcomp with a dataset that has duplicate factors in the first two columns followed by numerical vectors:
Genus1 Species1 6.320000 8.720000 6.420000
Genus2 Species2 8.430000 11.780000 4.490000
Genus2 Species2 8.310000 10.940000 4.180000
Genus3 Species3 9.290000 13.060000 5.990000
Genus3 Species3 8.960000 13.320000 6.36000
How can I turn this dataset into the correct format to run with prcomp such that the PC scores will in the same order as the original dataset?