hex-1923 max_pc argument for PCA allowed in R, rotation matrix returned as dataframe