Skip to content

Commit 81646e7

Browse files
authored
mergelist: isFrame -> isDataFrame (#7194)
1 parent d854391 commit 81646e7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/mergelist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void mergeIndexAttrib(SEXP to, SEXP from) {
3232
}
3333

3434
SEXP cbindlist(SEXP x, SEXP copyArg) {
35-
if (!isNewList(x) || isFrame(x))
35+
if (!isNewList(x) || isDataFrame(x))
3636
error(_("'%s' must be a list"), "x");
3737
bool copy = (bool)LOGICAL(copyArg)[0];
3838
const bool verbose = GetVerbose();

src/utils.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,8 @@ bool isRectangularList(SEXP x) {
533533
return isRectangular(x);
534534
}
535535

536-
// TODO: use isDataFrame (when included in any R release).
537-
// isDataTable(x) || isFrame(x) || isRectangularList(x)
538536
bool perhapsDataTable(SEXP x) {
539-
return isDataTable(x) || isFrame(x) || isRectangularList(x);
537+
return isDataTable(x) || isDataFrame(x) || isRectangularList(x);
540538
}
541539
SEXP perhapsDataTableR(SEXP x) {
542540
return ScalarLogical(perhapsDataTable(x));

0 commit comments

Comments
 (0)