I understand you want to apply Principal Component Analysis(PCA) on features extracted from the images. You can achieve this by using the "pca" function which takes matrix as an input and returns principal component coefficients.
Refer to the following documentation link for more information and examples-