Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8440745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:22:34+00:00 2026-06-10T08:22:34+00:00

The data.table has a nice feature that suppresses output to the head and tail

  • 0

The data.table has a nice feature that suppresses output to the head and tail of the table.

Is it possible to view / print more than 100 rows at once?

library(data.table)
## Convert the ubiquitous "iris" data to a data.table
dtIris = as.data.table(iris)
## Printing 100 rows is possible
dtIris[1:100, ]
## Printing 101 rows is truncated
dtIris[1:101, ]

I often have data.table results that are somewhat large (e.g. 200 rows) that I just want to view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:22:36+00:00Added an answer on June 10, 2026 at 8:22 am

    The print method of data.table has an argument nrows:

    args(data.table:::print.data.table)
    function (x, nrows = 100L, digits = NULL, ...) 
    

    You can use this to control how many rows get printed:

    print(dtIris, nrow=105)
    .....
    99:          5.1         2.5          3.0         1.1 versicolor
    100:          5.7         2.8          4.1         1.3 versicolor
    101:          6.3         3.3          6.0         2.5  virginica
    102:          5.8         2.7          5.1         1.9  virginica
    103:          7.1         3.0          5.9         2.1  virginica
    104:          6.3         2.9          5.6         1.8  virginica
    105:          6.5         3.0          5.8         2.2  virginica
         Sepal.Length Sepal.Width Petal.Length Petal.Width    Species
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The new table has an auto-increment that I want to use for the data
I have a table that has data like below(sorted by date) COL_A | COL_B
My application has a table that contains snapshot inventory data from each year. For
I have a data table which already has some values, plus it is getting
I'm using cakephp and trying to check if a table has data entered in
I am using an sqlite database to store log data. My table has a
my Current MySQL table employee_data has 13k rows with 17 columns. The data in
I have an access table which has some cells as blank ( no data
Probably it has been asked before but I cannot find an answer. Table Data
I have a table of data which has posts, then I have a separate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.