Skip to content

Commit 08f6fee

Browse files
use select parm instead of x in is.numeric
1 parent d834811 commit 08f6fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/fwrite.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fwrite = function(x, file="", append=FALSE, quote="auto",
4343
}
4444
# Handle select argument using .shallow()
4545
if (!is.null(select)) {
46-
cols = if (is.numeric(x)) { # numeric/integer avoids O(#cols) name-match overhead
46+
cols = if (is.numeric(select)) { # numeric/integer avoids O(#cols) name-match overhead
4747
as.integer(select)
4848
} else {
4949
colnamesInt(x, select)

0 commit comments

Comments
 (0)