# Step 1: Data selection

#### Open up the example data file
Launch PRIMER, then click **File** > **Open...** from the main menu, navigate to the folder named '<ins>NE_NZ_holdfasts</ins>' in the '<ins>Examples_P8</ins>' directory, and select '<ins>NE_NZ_holdfast_fauna.pri</ins>'. Click **Open** to display the species matrix.

[![01._Holdfast_data.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/01-holdfast-data.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/01-holdfast-data.png)

Click on **Edit** > **Indicators...**

[![02a._Edit_Indicators_menu.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/02a-edit-indicators-menu.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/02a-edit-indicators-menu.png)

You will see that there are indicators for the variables in this datasheet that show the taxonomic groups in which each species (or taxon) variable belongs, with different levels of the taxonomic hierarchy being provided as different indicators (i.e., 'Genus', 'Family', 'Order', 'Class' and 'Phylum'). There is also an indicator to identify whether individual taxa were counted (enumerated) or quantified on an ordinal scale ('Ordinal' = 'N' or 'Y', respectively). 

[![02._Edit_Indicators.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/02-edit-indicators.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/02-edit-indicators.png)

Click **OK** on the 'Indicators' dialog, so the data matrix is the active item in the workspace again.

#### Select a subset of variables, using an indicator
We wish to select just the mollusc species for the analysis.
1. From the '<ins>NE_NZ_holdfast_fauna.pri</ins>' data sheet, click **Select** > **Variables...**

[![03._Select_variables_menu_item.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/03-select-variables-menu-item.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/03-select-variables-menu-item.png)

2. In the 'Select Variables' dialog, choose ($\bullet$Indicator levels > <ins>Phylum</ins>) and click **Levels...**.

[![04._Select_Variables_dialog.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/04-select-variables-dialog.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/04-select-variables-dialog.png)

3. In the 'Selection' dialog, click on the word '<ins>Mollusca</ins>' in the list of 'Available' phylum categories, and click on the single-right-arrow button: [![05._Right_arrow.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/05-right-arrow.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/05-right-arrow.png). This will move the word 'Mollusca' over to the 'Include:' box on the right-hand side of the 'Selection' dialog window.  Click **OK**. 

[![05._Selection_window_all.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/05-selection-window-all.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/05-selection-window-all.png)

4. Now that we have selected the Molluscs, and we are back in the 'Select Variables' dialog window, we ***also*** want to choose to '$\checkmark$ Output selection to new worksheet', as shown below. This will kick out just the variables that we have selected into a new worksheet for ensuing analysis. We can now click **OK** on the 'Select Variables' dialog.

[![05B._Output_to_new_worksheet.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/05b-output-to-new-worksheet.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/05b-output-to-new-worksheet.png)

Voila! Now you have just the mollusc species alone in a new worksheet called '<ins>Data1</ins>'<sup>¶</sup>.

[![05C._Subsetted_data_(molluscs).png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/05c-subsetted-data-molluscs.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/05c-subsetted-data-molluscs.png)

#### Rename the selected subset of data
From the subsetted data matrix ('<ins>Data1</ins>'), if you click on **Edit** > **Properties...**, you will see that this new sheet now only has 105 variables ('Number of rows:').

To change the name of the data sheet, click, hover and click again on the name '<ins>Data1</ins>' in the Explorer tree window (*or* click **File** > **Rename Data** *or* hit the 'F2' key) and type in a new name for the subsetted data sheet: <ins>Molluscs</ins>.

[![07._Explorer_tree_change_name.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/07-explorer-tree-change-name.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/07-explorer-tree-change-name.png)

At this point, you might like to save your workspace. Click **File** > **Save Workspace As...** > (Filename: <ins>NZ_holdfast_molluscs.pwk</ins>).

----
<sup>¶</sup> ***An aside**: Note that whenever you have selected a subset of data (this might be a subset of variables, as done here, or a subset of samples, or both), then the original data matrix on which the operation has been done will have a blue background colour to indicate that you have done this, like so:*

[![06._Selected_data_(in_blue)_HF.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/06-selected-data-in-blue-hf.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/06-selected-data-in-blue-hf.png)

*Any analyses done on a selected subset of data will only be performed on that subset. It is usually a good idea to **duplicate and rename** a selected subset of data, so as to keep any analysis done on that subset of data clear and separate from the (full) original dataset. To duplicate an item in the Explorer tree, click **Tools** > **Duplicate**. To rename the duplicated item, hit F2 (or click **File** > **Rename Data**).*

*Note that subsetting does not affect the original full data matrix of information in any way, which is still always there. You can clear any subset selection (of variables and/or samples) by clicking on **Select** > **All** to return to the full data matrix in its entirety. The blue background colour will go away when you do that, and the formerly selected data will yet be highlighted in yellow-orange hues.*

[![06._Highlighted_data_(orange)_HF.png](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/scaled-1680-/06-highlighted-data-orange-hf.png)](https://learninghub.primer-e.com/uploads/images/gallery/2026-02/06-highlighted-data-orange-hf.png)

*Clicking on **Select** > **Highlighted** can then be used to re-instate the selection from before, if desired.*