Issue with procD.lm
Closed this issue · 1 comments
apwoodbailey commented
Hi all,
I am trying to run this:
procD.lm(GPA$rotated~classifiers$locomotor_type,iter=9999,SS.type="III")
But get the following error code:
Error in rownames<-
(*tmp*
, value = nms) :
attempt to set 'rownames' on an object with no dimensions
This works on an older version of Geomorph but not on 4.0.1. It appears to be an issue with procD.lm specifically.
Any idea what to do?
Cheers
mlcollyer commented
You might try looking into geomorph.data.frame. The issue is one we would not like to happen, but the update for geomorph 4.0.1 was thrust upon us because of the R 4.1 update, and the loss of observation names in some functions. This error is caused by trying to assign names to a missing object. But why is the object missing? We will have to investigate this; it is probably the inadvertent result of one of our updates.
However, you are taking risks — anytime and not just with geomorph — when you ask R functions to try to figure out in which environment you are working. With your formula, you are telling R to work in the global environment and there, go digging for objects within objects (as made clear by the $ operator). With a geomorph data frame, the environment is unambiguous.
If the error persists after trying a geomorph.data.frame, we would like to know. We will investigate if we can find a patch for this lacking environment definition issue, but it might be an issue that can be avoided with a precise definition of data frame.
Mike
… On Oct 19, 2021, at 8:04 AM, apwoodbailey ***@***.***> wrote:
Hi all,
I am trying to run this:
procD.lm(GPA$rotated~classifiers$locomotor_type,iter=9999,SS.type="III")
But get the following error code:
Error in rownames<-(*tmp*, value = nms) :
attempt to set 'rownames' on an object with no dimensions
This works on an older version of Geomorph but not on 4.0.1. It appears to be an issue with procD.lm specifically.
Any idea what to do?
Cheers
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#38>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUNU4VZXQ2HM764MS7QXSDUHVNDPANCNFSM5GI66X3Q>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.