|
R scripts | ||||
Home Research CV Calendar Images Avian Ecology Group Biology Home VT Home |
Below are R scripts that I've worked out for my research and that you might find useful. If you want to get started with R, check out this site. I assume no responsibility for incorrect results obtained with these scripts. 1. Generate unused colored leg band combinations for birds Details: This script creates all possible color band combinations from a list of colors that you select. Don't worry, there is one aluminum band in each combo. Then it imports your raw banding database as a .csv file (so be sure to make a .csv file from Excel, etc.), and removes the used combos from the possible combos. Don't worry, duplicated entries in your data set are not a problem. Then it exports the new combo list as a .csv and calculates the number of each band color needed and cost. This script works for databases that have a unique row for each bird (and may have a unique row for each capture, as shown here): ![]() 2. Use the Reshape package to create encounter histories for mark-recapture data Details: This script creates encounter history files for RMark from your line entry dataset (as used in script 1). 3. Create AICc table from RSS or logL values Details: You enter your model names, sample size, logL or RSS values, and number of parameters, and it creates an AICc table for you and then sorts that table based on delta-AIC values. It then exports the table as a .csv file that you can open in Excel. This example uses a sample set from Burnham and Anderson (2002). Please email me if you have a question or have improved these scripts! | |||