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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:50:16+00:00 2026-06-04T11:50:16+00:00

I have 102 text files, each containing of same type of data. Suppose data

  • 0

I have 102 text files, each containing of same type of data. Suppose data it is stored in variable d1 of the file f1.

In R:
I want to make plot between data in two files. say d1 vs d2 or d45 vs d85

I need to do these for all combinations ( 102C2 combinations)

How do I do that?

  • 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-04T11:50:17+00:00Added an answer on June 4, 2026 at 11:50 am

    This is a bit of an out there request, as there is no way you would be able to make sense of that many plots. E.g.:

    ncol(combn(1:102,2))
    

    Gives a total of 5151 plots for the unique combinations between the 102 sets of data. If your professor wants to manually search through all those plots, he better pour himself a large coffee. I would seriously reconsider what you are trying to find out from this data and maybe redefine the scope of your investigation.

    With that said, here’s some potential code that may or not be good advice given the circumstances. In fact, I’ll go so far as to suggest not running the below code with all of your files lest your computer explode.

    # This is how you would read text files into a list,
    # courtesy of this question (http://stackoverflow.com/q/9110110/496803):
    # raw <- list.files(pattern="*.txt")
    # listy <- lapply(raw, read.table)
    
    # set up some mock data instead
    listy <- list(1:3,4:6,7:9)
    
    # get every possible combination
    combos <- combn(1:length(listy),2)
    
    # define a function to plot each combination of data  
    multiplot <- function(x) {
        dev.new()
        plot(listy[[(x[1])]],listy[[x[2]]])
    }
    
    # Generate the plots separately.
    # This will probably kill your R session with
    # the number of plots you are generating.
    
    apply(combos,2,multiplot)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a bunch of data Im writing to a text file, each
I have a folder with 20 text files from several instrument runs. The data
I have a text file : ban.txt have content a:5:{i:14528;s:15: 118.71.102.176;i:6048;s:15: 113.22.109.137;i:16731;s:3: 118.71.102.76;i:2269;s:12: 1.52.251.63;i:9050;s:14:123.21.100.174;}
I want to have a text box that the user can type in that
All, I have a huge application that processes media files. I get 102% CPU
I have a text file: DATE 20090105 1 2.25 1.5 3 3.6 0.099 4
I have an XML document of the form: <metadata> <item name=Name type=xs:string length=102/> <item
I have a text file that denotes remarks with a single ' . Some
I have a big csv files with the following format: CSV FILE 1 id,
I have an HTML document, for example: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8> </head>

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.