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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:20:36+00:00 2026-06-12T08:20:36+00:00

I created a list which contains 105 matrices as follows: m<-vector(list,105) for (i in

  • 0

I created a list which contains 105 matrices as follows:

m<-vector("list",105)
for (i in 2:105) {
    m[[i-1]]<-Datos[(x[i-1]+1):x[i],1:14] }
m[[105]]<-Datos[(x[105]+1):533195,1:14]

For example a part of my matrix number 104 returns (In columns):

m[[104]]

    ID:                    
     8866 
     8866 
     8866 
     8866 
     8866 
     8866 
     8866 
     8866

  Date: 
     1990-4-15 
     1990-4-16
     1990-4-17
     1990-4-18
     1990-4-15
     1990-4-16
     1990-4-17
     1990-4-18

    Series: 
        APV 
        APV 
        APV 
        APV 
        INV 
        INV 
        INV 
        INV

These are some of my columns of the matrix. What I would like is to split this matrix using the series columns. I think it would be like a list of a list depending of the number of different Series there are. In this case there are 2: APV and INV ( Note that I don’t know the names of the series for each matrix, so there must be a function that extract the unique different series)

In summary, I would like that:

m[[104]][[1]] returns:

        ID:                    
         8866 
         8866 
         8866 
         8866 


      Date: 
         1990-4-15 
         1990-4-16
         1990-4-17
         1990-4-18


        Series: 
            APV 
            APV 
            APV 
            APV 



And m[[104]][[2]] returns:

        ID:                    
         8866 
         8866 
         8866 
         8866 


      Date: 
         1990-4-15 
         1990-4-16
         1990-4-17
         1990-4-18


        Series: 

            INV 
            INV 
            INV 
            INV

Or maybe you come up with a more efficient way to do this.

PD: Didn’t know how to put the columns at the same level

  • 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-12T08:20:37+00:00Added an answer on June 12, 2026 at 8:20 am

    Try this:

    library(plyr)
    lapply(m, dlply, "Series")
    

    or:

    lapply(m , function(x)split(x, x$Series))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SharePoint2010 list which contains around 15 lookup columns. I have created
I have created a dialog which contains a list view. The onclicklistener for the
I have created a ListView which contains a list of items. Each item in
I have created a list view which contains a list of images defined by
I've created A list of object emails which contains the email object which has
I have created a JPanel which contains an arbitrary number of JLabels, laid out
I have a 2D vector which contains objects. std::vector<std::vector<List> > ListPos; ListPos.clear(); std::vector<List> initPV;
I have a table which contains a list of Surveys (PK is ID) CREATE
Firstly I created a collection which is Collection list; and in a function RSS
I'm using a web service which returns a list of products. I created a

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.