Github user jeffsteinmetz commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/208#issuecomment-195077353
  
    `print(mtcars) `
    
    returns text in a similar way as R as you suggested.
    Perhaps some hints in the interpreter docs.
    
    Not seeing the row names as the default zeppelin output was perhaps 
unexpected behavior for me – I would say I am a moderately frequent user of 
R.  
    I don’t live in it every day though.
    It does make sense that row names are really not part of the data frame 
columns.
    If somebody wants the row names as a column, they can
    myDF <- cbind(Row.Names = rownames(myDF), myDF)
    
    
    
    
    From:  elbamos
    Reply-To:  apache/incubator-zeppelin
    Date:  Thursday, March 10, 2016 at 1:28 PM
    To:  apache/incubator-zeppelin
    Cc:  Jeff Steinmetz
    Subject:  Re: [incubator-zeppelin] R Interpreter for Zeppelin (#208)
    
    The row id's aren't part of the table in R. Also, R actually is formatting 
the table in a specific way. Try returning a data_frame vs a data.frame in R 
and see what happens.
    
    If the user wants the "raw text" version, they simply call print() on the 
table to turn it into a string.
    
    This is a Zeppelin feature! 
    
    > On Mar 10, 2016, at 4:13 PM, Jeff Steinmetz <notificati...@github.com> 
wrote:
    > 
    > RE: the mtcars example above, R and rstudio returns the dataframe as 
simple text, not a formatted table and with all of the correct row ids.
    > 
    > > mtcars
    >                      mpg cyl  disp  hp drat    wt  qsec vs am gear carb
    > Mazda RX4           21.0   6 160.0 110 3.90 2.620 16.46  0  1    4    4
    > Mazda RX4 Wag       21.0   6 160.0 110 3.90 2.875 17.02  0  1    4    4
    > Datsun 710          22.8   4 108.0  93 3.85 2.320 18.61  1  1    4    1
    > Hornet 4 Drive      21.4   6 258.0 110 3.08 3.215 19.44  1  0    3    1
    > Hornet Sportabout   18.7   8 360.0 175 3.15 3.440 17.02  0  0    3    2
    > Valiant             18.1   6 225.0 105 2.76 3.460 20.22  1  0    3    1
    > Duster 360          14.3   8 360.0 245 3.21 3.570 15.84  0  0    3    4
    > Merc 240D           24.4   4 146.7  62 3.69 3.190 20.00  1  0    4    2
    > Merc 230            22.8   4 140.8  95 3.92 3.150 22.90  1  0    4    2
    > Merc 280            19.2   6 167.6 123 3.92 3.440 18.30  1  0    4    4
    > —
    > Reply to this email directly or view it on GitHub.
    > 
    
    —
    Reply to this email directly or view it on GitHub.
    
      
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to