search for: nonexisting_column

Displaying 2 results from an estimated 2 matches for "nonexisting_column".

2020 Feb 22
0
Change 77844 breaking pkgs [Re: dimnames incoherence?]
...dozen CRAN packages breaking in R-devel >= r77884. One case is exactly as you (Bill) mention above: people using dd[[.]] <- .. where they should use single [.]. In one package, I see an inefficient for loop over all rows of a data frame 'dd' for(i in 1:nrow(dd)) { ... dd$<nonexisting_column>[[i]] <- <one character string> } This used to work -- as said quite inefficiently: for i=1 it created the **full** data frame column and then, once the column exists, it presumably does assign one entry after the other... Now this code breaks (later!) in the package now, because t...
2020 Feb 22
2
dimnames incoherence?
>>>>> William Dunlap >>>>> on Fri, 21 Feb 2020 14:05:49 -0800 writes: > If we change the behavior NULL--[[--assignment from > `[[<-`(NULL, 1, "a" ) # gives "a" (*not* a list) > to > `[[<-`(NULL, 1, "a" ) # gives list("a") > then we have more consistency there *and* your bug