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
For partially named lists, how = "names" currently replaces the names of previously unnamed elements (not satisfying the condition argument) by blank ("") names:
x <- list(list(a = 1, b = 2, c = 3))
names(x)
#> NULL
y <- rrapply(x, condition = \(x, .xname) .xname == "b", f = \(x) "b", how = "names")
names(y)
#> [1] ""
Expected behavior: x and y should remain identical.
The text was updated successfully, but these errors were encountered:
For partially named lists,
how = "names"
currently replaces the names of previously unnamed elements (not satisfying thecondition
argument) by blank (""
) names:Expected behavior:
x
andy
should remain identical.The text was updated successfully, but these errors were encountered: