-
Notifications
You must be signed in to change notification settings - Fork 2
/
filtertextualcolumn.qmd
72 lines (51 loc) · 2.34 KB
/
filtertextualcolumn.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: "Filter rows based on text column"
author: "Cox Lab"
format:
html:
toc: true
toc-depth: 4
toc-expand: false
number-sections: true
number-depth: 4
editor: source
date: today
bibliography: references.bib
---
# General
- **Type:** - Matrix Processing
- **Heading:** - Filter rows
- **Source code:** [FilterTextualColumn.cs](https://github.com/JurgenCox/perseus-plugins/blob/master/PerseusPluginLib/Filter/FilterTextualColumn.cs)
# Brief description
Only those rows are kept that have a value in the textual column that matches the search string.
Output: The filtered matrix.
```{=html}
<!-- This comment and the line above it must be preserved when editing this file!
The recommended sections are these, but they may be changed on a case by case basis.
===== Detailed description =====
===== Parameters =====
===== Theoretical background =====
===== Examples =====
Make changes only below this line! -->
```
# Parameters
## Column
Selected text column the filtering is based on (default: first text column in the matrix).
## Search string
Specified text string that should be searched in the previously defined text column (default: empty).
## Match case
If checked, the cells of the text column will be searched for a matching substring (default: unchecked).
The results will be in a new generated categorical column called "Search: original column name".
"+" indicates, whether a match was successful.
## Match whole word
If checked, the text column will be searched to match the whole word of the specified term (default: checked).
The results will be in a new generated categorical column called "Search: original column name".
"+" indicates, whether a match was successful.
## Mode
The rows with the selected values will be kept/discarded depending on the selected "Mode" (default: "Remove matching rows").
If "Remove matching rows" is selected, rows having the values will be removed while all other rows will be kept.
If "Keep matching rows" is selected, the opposite will happen.
## Filter mode
The "Filter mode" defines, whether the input matrix will be reduced ("Reduce matrix" = default) or a new categorical column called "Filter" will be generated containing the categories "Keep" and "Discard" ("Filter mode" = "Add categorical column").
# Parameter window
![](images/filter_rows-filter_rows_based_on_text_column-edited.png)