How to get output variables of PCA from class H2ODimReductionModel in R?



Hi everyone,

I was facing memory issues and hence used the H2O package. I was trying to do feature selection and decided to go forward with PCA. I normalized by continuous variables and applied PCA using H2O package as follows:

final_features<-h2o.prcomp(training_frame = combine, k = 8, transform = "NONE")

However, the object final_features is of class H2ODimReductionModel. I am unable to get these variables back into the data frame.
What should be the next step to extract those features from this data type?

Thanks in advance!