/
filter.Rd
77 lines (65 loc) · 1.56 KB
/
filter.Rd
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
72
73
74
75
76
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter.R
\name{sg_filter_gt_p}
\alias{sg_filter_gt_p}
\alias{sg_filter_lt_p}
\alias{sg_filter_eq_p}
\alias{sg_filter_not_eq_p}
\alias{sg_filter_undo_p}
\alias{sg_filter_neighbours_p}
\title{Filter}
\usage{
sg_filter_gt_p(
proxy,
input,
var,
target = c("nodes", "edges", "both"),
name = NULL
)
sg_filter_lt_p(
proxy,
input,
var,
target = c("nodes", "edges", "both"),
name = NULL
)
sg_filter_eq_p(
proxy,
input,
var,
target = c("nodes", "edges", "both"),
name = NULL
)
sg_filter_not_eq_p(
proxy,
input,
var,
target = c("nodes", "edges", "both"),
name = NULL
)
sg_filter_undo_p(proxy, name)
sg_filter_neighbours_p(proxy, node, name = NULL)
}
\arguments{
\item{proxy}{An object of class \code{sigmajsProxy} as returned by \code{\link{sigmajsProxy}}.}
\item{input}{A Shiny input.}
\item{var}{Variable to filter.}
\item{target}{Target of filter, \code{nodes}, \code{edges}, or \code{both}.}
\item{name}{Name of the filter, useful to undo the filter later on with \code{sg_filter_undo}.}
\item{node}{Node id to filter neighbours.}
}
\value{
The \code{proxy} object.
}
\description{
Filter nodes and/or edges.
}
\section{Functions}{
\itemize{
\item{\code{sg_filter_gt_p} Filter greater than \code{var}.}
\item{\code{sg_filter_lt_p} Filter less than \code{var}.}
\item{\code{sg_filter_eq_p} Filter equal to \code{var}.}
\item{\code{sg_filter_not_eq_p} Filter not equal to \code{var}.}
\item{\code{sg_filter_undo_p} Undo filters, accepts vector of \code{name}s.}
}
}