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

  • Home
  • SEARCH
  • 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 6318373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:37:53+00:00 2026-05-24T15:37:53+00:00

Hi I have the data with 2 columns, name and salary. There are total

  • 0

Hi I have the data with 2 columns, name and salary. There are total 12 names and For each name there are 48 rows of salary I have splitted the data*(data has 48 rows for each name)* so that I got separate blocks of data for each name (likewise I got 12 blocks)
Now I want to convert each block of data into a 4R and 12C matrix and write that each block to a .pdf or .doc file
please tell me if it works in this direction or shud I try another way?

  • 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-05-24T15:37:53+00:00Added an answer on May 24, 2026 at 3:37 pm

    If you know latex, you can use xtable as explained in my comment. This will give you latex code for a table that you can copy-paste in your editor (or send to a text file, see the help files). So what you do can be done as :

    # some sample data, please give us that next time you post a question
    myframe <- data.frame(
        name=rep(letters[1:3],each=48),
        salary=runif(48*3,1000,2000)
    )
    # make the matrices
    mylist <- tapply(myframe$salary, myframe$name,matrix,nrow=4,byrow=T)
    # make some tables. If you want to format them, see the help files
    require(xtable)
    lapply(mylist,xtable)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose that you have a data frame with many rows and many columns. The
I have table in data base name train delay, with columns train number(int), DelayTime(int),
I have a Datatable with Id(guid) and Name(string) columns. I traverse through the data
I have datatable with column name tag and 100 rows of data.I need to
I have a matrix of data (the columns represent time, and the rows spectrum
I have a data table with many rows and columns. How can I display
I have data columns: id name type number 1 n1 t1 num1 2 n2
I have data grid view with columns product name and product image and I
I have a WSS list containing user profile data (Columns: Username, Name, DOB) etc.
I have this data (columns are depth, name, value, the order is correct): 0,

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.