Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>Edited to clean up some typos and address the multiple K value issue.</em></p> <p>I'm going to assume that you've placed all your .csv files in a single directory (and there's nothing else in this directory). I will also assume that each .csv really do have the same structure (same number of columns, in the same order). I would begin by generating a list of the file names:</p> <pre><code>myCSVs &lt;- list.files("path/to/directory") </code></pre> <p>Then I would 'loop' over the list of file names using <code>lapply</code>, reading each file into a data frame using <code>read.csv</code>:</p> <pre><code>setwd("path/to/directory") #This function just reads in the file and # appends a column with the K val taken from the file # name. You may need to tinker with the particulars here. myFun &lt;- function(fn){ tmp &lt;- read.csv(fn) tmp$K &lt;- strsplit(fn,".",fixed = TRUE)[[1]][1] tmp } dataList &lt;- lapply(myCSVs, FUN = myFun,...) </code></pre> <p>Depending on the structure of your .csv's you may need to pass some additional arguments to <code>read.csv</code>. Finally, I would combine this list of data frames into a single data frame:</p> <pre><code>myData &lt;- do.call(rbind, dataList) </code></pre> <p>Then you should have all your data in a single data frame, <code>myData</code>, that you can pass to <code>ggplot</code>.</p> <p>As for the statistical aspect of your question, it's a little difficult to offer an opinion without concrete examples of your data. Once you've figured the programming part out, you could ask a separate question that provides some sample data (either here, or on stats.stackexchange.com) and folks will be able to suggest some visualization or analysis techniques that may help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload