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
The underlying problem is that you use the variable name x. That leads to a mix up because the first argument of subset is also x. With NSE you then effectively get
subset(x, x$NAME_1 == x$NAME_1)
While it works as expected with another variable name, like this
AramburuMerlos
changed the title
subset(SpatVector, NSE = TRUE) fails when the logical expression includes a data.frame with same column name as in SpatVectorsubset(SpatVector, NSE = TRUE) fails when the logical expression includes an object xSep 10, 2024
Maybe I should just avoid using the same column names or the NSE in these cases, but:
The text was updated successfully, but these errors were encountered: