Note that there are some explanatory texts on larger screens.

plurals
  1. POChecking row format of csv
    primarykey
    data
    text
    <p>I am trying to import some data (below) and checking to see if I have the appropriate number of rows for later analysis.</p> <pre><code>repexample &lt;- structure(list(QueueName = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 3L, 3L, 3L, 3L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L ), .Label = c(" Overall", "CCM4.usci_retention_eng", "usci_helpdesk" ), class = "factor"), X8Tile = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L), .Label = c(" Average", "1", "2", "3", "4", "5", "6", "7", "8"), class = "factor"), Actual = c(508.1821504, 334.6994838, 404.9048759, 469.4068667, 489.2800416, 516.5744106, 551.7966176, 601.5103783, 720.9810622, 262.4622533, 250.2777778, 264.8281938, 272.2807882, 535.2466968, 278.25, 409.9285714, 511.6635101, 553, 641, 676.1111111, 778.5517241, 886.3666667), Calls = c(54948L, 6896L, 8831L, 7825L, 5768L, 7943L, 5796L, 8698L, 3191L, 1220L, 360L, 454L, 406L, 248L, 11L, 9L, 94L, 1L, 65L, 9L, 29L, 30L), Pop = c(41L, 6L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 3L, 1L, 1L, 1L, 11L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L)), .Names = c("QueueName", "X8Tile", "Actual", "Calls", "Pop"), class = "data.frame", row.names = c(NA, -22L)) </code></pre> <p>The data gives 5 columns and is one example of some data that I would typically import (via a .csv file). As you can see there are three unique values in the column "<code>QueueName</code>". For each unique value in "<code>QueueName</code>" I want to check that it has 9 rows, or the corresponding values in the column "X8Tile" ( Average, 1, 2, 3, 4, 5, 6, 7, 8). As an example the "<code>QueueName</code>" Overall has all of the necessary rows, but <code>usci_helpdesk</code> does not.</p> <p>So my <strong>first priority</strong> is to at least identify if one of the unique values in "<code>QueueName</code>" does not have all of the necessary rows.</p> <p>My <strong>second priority</strong> would be to remove all of the rows corresponding to a unique "QueueName" that does not meet the requirements. </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. 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