File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -83,25 +83,12 @@ namespace Rcpp{
83
83
return LENGTH (rn);
84
84
}
85
85
86
- // Leave in place for a year
87
- // before making defunct
88
- inline int nrows () const {
89
- return DataFrame_Impl::nrow ();
90
- }
91
-
92
- // Adds size attribute accessors that mimic
93
- // those available in R and the Matrix class
94
- inline int rows () const {
95
- return DataFrame_Impl::nrow ();
96
- }
86
+ // Offer multiple variants to accomodate both old interface here and signatures in other classes
87
+ inline int nrows () const { return DataFrame_Impl::nrow (); }
88
+ inline int rows () const { return DataFrame_Impl::nrow (); }
97
89
98
- inline int ncol () const {
99
- return DataFrame_Impl::length ();
100
- }
101
-
102
- inline int cols () const {
103
- return DataFrame_Impl::length ();
104
- }
90
+ inline int ncol () const { return DataFrame_Impl::length (); }
91
+ inline int cols () const { return DataFrame_Impl::length (); }
105
92
106
93
static DataFrame_Impl create (){
107
94
return DataFrame_Impl () ;
You can’t perform that action at this time.
0 commit comments