We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ddccd9 commit 72d5063Copy full SHA for 72d5063
1 file changed
R/data.table.R
@@ -139,15 +139,14 @@ replace_dot_alias = function(e) {
139
)
140
}
141
if (is.character(j)) {
142
- idx = match(j, names(k))
143
- if (is.na(idx)) {
+ j = match(j, names(k))
+ if (is.na(j)) {
144
if (is.null(err_msg_na)) {
145
internal_error("item '%s' not found in names of list", origj) # nocov
146
} else {
147
stopf(err_msg_na, origj)
148
149
150
- j = idx
151
152
.Call(Csetlistelt, k, as.integer(j), value)
153
} else if (is.environment(k) && exists(as.character(name[[3L]]), k, inherits = FALSE)) {
0 commit comments