Author
-
Peter Solymos
+
Peter Solymos [cre, aut] (<https://orcid.org/0000-0001-7337-1740>)
Maintainer: Peter Solymos <psolymos@gmail.com>
diff --git a/search.json b/search.json
index 5a4d346..3d2f9c3 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Peter Solymos. Maintainer.","code":""},{"path":"/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Solymos P (2024). intrval: Relational Operators Intervals. R package version 0.1-3, https://github.com/psolymos/intrval.","code":"@Manual{, title = {intrval: Relational Operators for Intervals}, author = {Peter Solymos}, year = {2024}, note = {R package version 0.1-3}, url = {https://github.com/psolymos/intrval}, }"},{"path":"/index.html","id":"intrval-relational-operators-for-intervals","dir":"","previous_headings":"","what":"Relational Operators for Intervals","title":"Relational Operators for Intervals","text":"Evaluating values vectors within different open/closed intervals (x %[]% c(, b)), two closed intervals overlap (c(a1, b1) %[]o[]% c(a2, b2)). Operators negation directional relations also implemented.","code":""},{"path":"/index.html","id":"install","dir":"","previous_headings":"","what":"Install","title":"Relational Operators for Intervals","text":"Install CRAN: Install development version GitHub: User visible changes listed NEWS file. Use issue tracker report problem.","code":"install.packages(\"intrval\") if (!requireNamespace(\"remotes\")) install.packages(\"remotes\") remotes::install_github(\"psolymos/intrval\")"},{"path":"/index.html","id":"value-to-interval-relations","dir":"","previous_headings":"","what":"Value-to-interval relations","title":"Relational Operators for Intervals","text":"Values x compared interval endpoints b (<= b). Endpoints can defined vector two values (c(, b)): values compared single interval value x. endpoints stored matrix-like object list, comparisons made element-wise. lengths match, shorter objects recycled. Return values logicals. Note: interval endpoints sorted internally thus ensuring condition <= b necessary. value--interval operators work numeric (integer, real) ordered vectors, object types measured least ordinal scale (e.g. dates).","code":"x <- rep(4, 5) a <- 1:5 b <- 3:7 cbind(x=x, a=a, b=b) x %[]% cbind(a, b) # matrix x %[]% data.frame(a=a, b=b) # data.frame x %[]% list(a, b) # list"},{"path":"/index.html","id":"closed-and-open-intervals","dir":"","previous_headings":"Value-to-interval relations","what":"Closed and open intervals","title":"Relational Operators for Intervals","text":"following special operators used indicate closed ([, ]) open ((, )) interval endpoints:","code":""},{"path":[]},{"path":"/index.html","id":"dividing-a-range-into-3-intervals","dir":"","previous_headings":"Value-to-interval relations","what":"Dividing a range into 3 intervals","title":"Relational Operators for Intervals","text":"functions %[c]%, %[c)%, %(c]%, %(c)% return integer vector taking values (c within brackets refer ‘cut’): -1L value less equal (<= b), depending interval type, 0L value inside interval, 1L value greater equal b (<= b), depending interval type.","code":""},{"path":"/index.html","id":"interval-to-interval-relations","dir":"","previous_headings":"","what":"Interval-to-interval relations","title":"Relational Operators for Intervals","text":"operators define open/closed nature lower/upper limits intervals left right hand side o middle. overlap two closed intervals, [a1, b1] [a2, b2], evaluated %[o]% (alias %[]o[]%) operator (a1 <= b1, a2 <= b2). Endpoints can defined vector two values (c(a1, b1))can stored matrix-like objects lists case comparisons made element-wise. lengths match, shorter objects recycled. value--interval operators work numeric (integer, real) ordered vectors, object types measured least ordinal scale (e.g. dates), see Examples. Note: interval endpoints sorted internally thus ensuring conditions a1 <= b1 a2 <= b2 necessary. lengths match, shorter objects recycled. value--interval operators work numeric (integer, real) ordered vectors, object types measured least ordinal scale (e.g. dates). %)o(% used negation two closed interval overlap, directional evaluation done via operators %[