We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8bcc6e commit e38478aCopy full SHA for e38478a
1 file changed
inst/include/Rcpp/DataFrame.h
@@ -24,7 +24,7 @@ namespace Rcpp{
24
while( att != R_NilValue ){
25
if( TAG(att) == R_RowNamesSymbol ){
26
SEXP rn = CAR(att) ;
27
- if( TYPEOF(rn) == INTSXP && LENGTH(rn) == 2 && INTEGER(rn)[0] == NA_INTEGER ) return -INTEGER(rn)[1] ;
+ if( TYPEOF(rn) == INTSXP && LENGTH(rn) == 2 && INTEGER(rn)[0] == NA_INTEGER ) return abs(INTEGER(rn)[1]) ;
28
return LENGTH(rn) ;
29
}
30
att = CDR(att) ;
0 commit comments