MomX / Momocs

:dove: Morphometrics using R
http://momx.github.io/Momocs/
52 stars 19 forks source link

Issue creating object from fgProcrustes #215

Closed Lauraaas closed 3 years ago

Lauraaas commented 3 years ago

Hi,

I have been having issues creating an object from the fgProcrustes function. The GPA is carried out and produces a graph however I cannot create an object from it to use in the PCA. Here is some example code:

winggpa <- fgProcrustes(wings, tol=0.1) %>% stack() iteration: 1 gain: 53084 iteration: 2 gain: 0.1323 iteration: 3 gain: 0.056732 will soon be deprecated, see ?pile

wingpca <- PCA(winggpa) Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), : 'data' must be of a vector type, was 'NULL'

The object 'winggpa' is Null (empty) so cannot be selected for use in other functions, I am not sure if there is something I am missing or perhaps a bug.

This is using R3.6.3 and a fresh install of MOMOCS from Github. Any advice is much appreciated.

vbonhomme commented 3 years ago

Are you sure winggpa is really null? If not could you please send it to me with save()

Le mer. 20 janv. 2021 11:44, Lauraaas notifications@github.com a écrit :

Hi,

I have been having issues creating an object from the fgProcrustes function. The GPA is carried out and produces a graph however I cannot create an object from it to use in the PCA. Here is some example code:

winggpa <- fgProcrustes(wings, tol=0.1) %>% stack() iteration: 1 gain: 53084 iteration: 2 gain: 0.1323 iteration: 3 gain: 0.056732 will soon be deprecated, see ?pile

wingpca <- PCA(winggpa) Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), : 'data' must be of a vector type, was 'NULL'

The object 'winggpa' is Null (empty) so cannot be selected for use in other functions, I am not sure if there is something I am missing or perhaps a bug.

This is using R3.6.3 and a fresh install of MOMOCS from Github. Any advice is much appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MomX/Momocs/issues/215, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABECQFSKLTAMTVKYTZGZUSLS22XZLANCNFSM4WKPCO6A .

Lauraaas commented 3 years ago

Yes, in the values section of global environment it is listed as NULL.

Screenshot 2021-01-20 at 11 35 11