# Efficient Modelling of Resource Competition

## Documentation for package ‘rescomp’ version 1.0.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

apply_event | Applies a 'rescomp_event' object to modify state variables
crmatrix | Shorthand to create a matrix with 'spnum' rows and 'resnum' columns
def_cr_ode | Define consumer resource ODE function
event_batch_transfer | Define an event in which the species and resources are diluted by addition of new medium
event_res_add | Define an event in which a constant amount of some resources is added to (or removed from) the system
event_res_custom | Define an event which instantaneously changes resource concentrations using an arbitrary function
event_res_mult | Define an event in which the resource populations are multiplied by some factor
event_schedule_fixed | Define a schedule of an event occurring at a fixed set of times
event_schedule_periodic | Define a schedule of an event occurring repeatedly at a fixed period
event_set_introseq | Define a schedule of one-off species introductions: one for each species.
event_sp_add | Define an event in which a constant amount of some consumers is added to (or removed from) the system
event_sp_custom | Define an event which instantaneously changes species concentrations using an arbitrary function
event_sp_mult | Define an event in which the consumer populations are multiplied by some factor
frame_and_name | Convert object of class deSolve to a data frame and name columns
funcresp_custom | Define a functional response using an arbitrary function
funcresp_hill | Define a Hill functional response
funcresp_monod | Define a Monod functional response
funcresp_type1 | Define a linear functional response
funcresp_type2 | Define a Holling type 2 functional response
funcresp_type3 | Define a Holling type 3 functional response
get_coefs | Get coefficients from a vector/matrix or 'rescomp_coefs_vector'/'rescomp_coefs_matrix' object
get_coefs_matrix | Get coefficients from a vector/matrix or 'rescomp_coefs_vector'/'rescomp_coefs_matrix' object
get_coefs_vector | Get coefficients from a vector/matrix or 'rescomp_coefs_vector'/'rescomp_coefs_matrix' object
get_event_times | Gets the list of times from a 'rescomp_event_schedule' object
get_funcresp | Get growth rates from a 'rescomp_funcresp' object
get_params | Get params at an instant in time from a 'rescomp_param' object
get_ressupply | Get resource supply rates from a 'rescomp_ressupply' object
plot_funcresp | Plot functional responses
plot_rescomp | Plot consumer and resource dynamics from deSolve output
rescomp_coefs_lerp | Create a set of coefficients by linear interpolation
rescomp_coefs_matrix_custom | Create a matrix of coefficients using an arbitrary function
rescomp_coefs_vector_custom | Create a vector of coefficients using an arbitrary function
rescomp_param_custom | Create a rescomp parameter using an arbitrary function
rescomp_param_sine | Create a rescomp parameter using a sine/square/triangle wave
rescomp_param_square | Create a rescomp parameter using a sine/square/triangle wave
rescomp_param_triangle | Create a rescomp parameter using a sine/square/triangle wave
ressupply_chemostat | Create a resource supply rate using chemostat dynamics
ressupply_constant | Create a resource supply rate using a constant rate resource supply
ressupply_custom | Create a resource supply rate using an arbitrary function
ressupply_logistic | Create a resource supply rate using logistic resource growth
sim_rescomp | Simulate resource competition (a convenience wrapper for 'deSolve::ode()')
spec_rescomp | Generate list of parameters for a consumer-resource model to be passed to 'sim_rescomp()'