File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1386,14 +1386,14 @@ replace_dot_alias = function(e) {
13861386 # Replaces numerical lhs with respective names_x
13871387 if (is.character(lhs )){
13881388 m = chmatch(lhs , names_x )
1389- if (! anyNA(m )){
1389+ if (! anyNA(m )) {
13901390 # updates by reference to existing columns
13911391 cols = as.integer(m )
1392- newnames = NULL
1393- }else {
1392+ newnames = NULL
1393+ } else {
13941394 # Adding new column(s).
1395- newnames = setdiff(lhs , names_x )
1396- m [is.na(m )] = ncol(x )+ seq_len(length( newnames ) )
1395+ newnames = setdiff(lhs , names_x )
1396+ m [is.na(m )] = ncol(x ) + seq_along( newnames )
13971397 cols = as.integer(m )
13981398 # ok <- selfrefok above called without verbose -- only activated when
13991399 # ok=-1 which will trigger setalloccol with verbose in the next
You can’t perform that action at this time.
0 commit comments