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 9121631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:54:23+00:00 2026-06-17T05:54:23+00:00

I am using sink() function for printing R output to excel/text file. my program

  • 0

I am using sink() function for printing R output to excel/text file. my program output is too large. I found at the end of Excel/text output file a message

[ reached getOption("max.print") -- omitted 5326 rows ] 

Also I have more than one large outputs to print. I also want them on separate (different) sheets of one excel file .

Actually, the output comes in matrix form, as the value of loop increases, the rows and columns of square matrices also increases. the function append does not work due to difference of rows and columns number. to avoid this error I used if condition and deal separately using rbind for similar matrices. But there is more than 5 thousand iteration through double loop (and the method also repeats), so it is impossible to write 1000’s of if and rbind conditions and save them into separate sheets and files.

  • 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-17T05:54:24+00:00Added an answer on June 17, 2026 at 5:54 am

    if you don’t want a csv you can use package xlsx and it is pretty easy to save multiple sheets e.g.

    df1 <- data.frame(x=1:100, y=1:100)   # make data
    df2 <- data.frame(x=1:1000, y=1:1000) 
    
    library(xlsx)
    
    wb <- createWorkbook()         # create blank workbook
    sheet1 <- createSheet(wb, sheetName="mysheet1") # create different sheets
    sheet2 <- createSheet(wb, sheetName="mysheet2")
    addDataFrame(df1, sheet1)  # add data to the sheets
    addDataFrame(df2, sheet2)
    saveWorkbook(wb, "mysheets.xlsx")  # write the file with multiple sheets
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can i play two video in sink using canvas and html5.
Using ASIHTTPRequest, I downloaded a zip file containing a folder with several audio files.
How do you sink both the console input and the console output to a
I am trying to run a program, that encrypts and decrypts using AES. (from
I want to do speech recognition using Sphinx. I'm looking to capture the output/incoming
I'm working with the WebBrowser control, using the DesignMode function for editing HTML. I'm
I am using C# to build an event sink to monitor a specific exchange
UPDATE: SOLVED I've discovered the issue. Using the .libPaths() function, I was able to
I'm trying to decompress a file that was compressed using the DEFLATE algorithm and
Possible Duplicate: R suppress startupMessages from dependency I've read about using sink(NUL) / sink(/dev/null)

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.