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
(setattr(secs, "class", "ITime")) # the first line that creates sec will create a local copy so we can use setattr() to avoid potential copy of class()<-
# TO DO (document/faq/example). Removed for now ... if ((roll || rolltolast) && missing(mult)) mult="last" # for when there is exact match to mult. This does not control cases where the roll is mult, that is always the last one.
216
216
.unsafe.opt() #3585
217
217
missingnomatch= missing(nomatch)
218
-
nomatch0= identical(nomatch,0) || identical(nomatch,0L) || identical(nomatch, FALSE) # for warning with row-numbers in i; #4353
218
+
nomatch0= identical(nomatch,0.0) || identical(nomatch,0L) || identical(nomatch, FALSE) # for warning with row-numbers in i; #4353
219
219
if (nomatch0) nomatch=NULL# retain nomatch=0|FALSE backwards compatibility, #857 #5214
220
220
if (!is.null(nomatch)) {
221
221
if (!(length(nomatch)==1L&& is.na(nomatch))) stopf("nomatch= must be either NA or NULL (or 0 for backwards compatibility which is the same as NULL but please use NULL)")
if (length(i) ==0L) internal_error("i became length-0") # nocov
3289
3289
## convert i to data.table with all combinations in rows.
3290
-
if(length(i) >1L&& prod(lengths(i)) >1e4){
3290
+
if(length(i) >1L&& prod(lengths(i)) >1e4L){
3291
3291
## CJ would result in more than 1e4 rows. This would be inefficient, especially memory-wise #2635
3292
3292
if (verbose) {catf("Subsetting optimization disabled because the cross-product of RHS values exceeds 1e4, causing memory problems.\n");flush.console()}
stopf("each column name results in only one item after splitting using sep, which means that all columns would be melted; to fix please either specify melt on all columns directly without using measure, or use a different sep/pattern specification")
0 commit comments