You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please see below the repro. The examples are taken from documentation of embed.
library(dimRed)
#> Loading required package: DRR#> Loading required package: kernlab#> Loading required package: CVST#> Loading required package: Matrix#> #> Attaching package: 'dimRed'#> The following object is masked from 'package:stats':#> #> embed#> The following object is masked from 'package:base':#> #> as.data.frame
as.data.frame(
embed(Species~Sepal.Length+Sepal.Width+Petal.Length+Petal.Width,
iris, "PCA", .keep.org.data=FALSE)
)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'as.data.frame': invalid class "dimRedResult" object: invalid object for slot "org.data" in class "dimRedResult": got class "NULL", should be or extend class "matrix"
as.data.frame(embed(iris[, 1:4], "PCA", .keep.org.data=FALSE))
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'as.data.frame': invalid class "dimRedResult" object: invalid object for slot "org.data" in class "dimRedResult": got class "NULL", should be or extend class "matrix"
in dimRedResults-class, the slot org.data can only be of class matrix, so I cannot just use a NULL. Should getOrgData and getData return a 0-column matrix silently or throw an error or a warning if the original data is not saved?
Hi there,
Please see below the repro. The examples are taken from documentation of
embed
.Created on 2022-08-28 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: