Learn R Programming

linbin

Short for “linear binning”, linbin is an R package for manipulating, binning, and plotting linearly referenced data. Although developed for data collected on river networks, it can be used with any interval or point data referenced to a 1-dimensional coordinate system. Flexible bin generation and batch processing makes it easy to compute and visualize variables at multiple scales, useful for identifying patterns within and between variables and investigating the influence of scale of observation on data interpretation.

To install in R:

  • the latest released version: install.packages("linbin")
  • the latest development version: devtools::install_github("ezwelty/linbin")

Find out more by reading the illustrated introduction and examples vignettes. For detailed function and dataset documentation, see the reference manual. For the application of linbin to the study of stream fishes, see the original journal article:

Ethan Z. Welty, Christian E. Torgersen, Samuel J. Brenkman, Jeffrey J. Duda, Jonathan B. Armstrong (2015). Multiscale analysis of river networks using the R package linbin. North American Journal of Fisheries Management, 35(4):802–809. doi: 10.1080/02755947.2015.1044764

Longitudinal profiles of trout abundance throughout the Quinault River, Washington, USA plotted at a range of bin lengths.

Copy Link

Version

Install

install.packages('linbin')

Monthly Downloads

220

Version

0.1.3

License

AGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ethan Z Welty

Last Published

April 20th, 2021

Functions in linbin (0.1.3)

find_intersecting_events

Find Intersecting Events
is_events

Validate Event Table
if_else

Generalized If Else
quinault

Quinault River Survey
fill_event_gaps

Fill Event Gaps
plot_events_single

Plot Events as Bars
event_range

Event Range
events

Event Tables
netmap

Dungeness River (NetMap)
seq_events

Generate Sequential Events
is_not_integer

Not Integers
read_events

Read File as Event Table
fishmotion

Fish Movements
sort_events

Sorted Events
rgrep_exact

Full Name Matching
sampling_functions

Build Sampling Functions
plot_events

Plot Events as Bar Plots
to_datetime

Convert event endpoints to date-times
sample_events

Sample Events
group_nonoverlapping_events

Overlapping Events
simple

Simple Event Table
to_date

Convert event endpoints to dates
transform_events

Transform Events
event_overlaps

Event Overlaps
crop_events

Crop Events
elwha

Elwha River Survey
as_events

Coerce to an Event Table
event_coverage

Event Coverage
cut_events

Cut Events
event_gaps

Event Gaps
event_midpoints

Event midpoints
build_function_call

Build Function Call