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{
8383 return LENGTH (rn);
8484 }
8585
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 (); }
9789
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 (); }
10592
10693 static DataFrame_Impl create (){
10794 return DataFrame_Impl () ;
You can’t perform that action at this time.
0 commit comments