The following code has been revised from SAS into R (see notes) to process FIM data into multi-species (community data) and single-species datasets for analyses. Two different pathways are used to process each type of dataset. Each processing pathway has options to subset the data further by monitoring type (pulled out as a integer (x) in the data set name; m for standard monitoring, d for directed sampling, null for all monitoring, etc.), gear type, location (zone, bay segment, river), years or months sampled, etc (subset described as "s"). Use the most appropriate subset for the data analyses you are conducting.
Before processing, download the most current FIM data from () and, if needed, run tb_subset.R to subset all FIM data into Tampa Bay only.
-
Run multi_comb_data_proc.R to process and subset the Tampa Bay data into two files:
-
Count data (tbx_s_c.RData)
-
Length data (tbx_s_l.RData):
-
-
Run matrix_out.R to format data for multivariate analyses packages such as PRIMER by creating pseudospecies (juveniles/adults, etc.) based on length data and transposing into three tables:
-
A species list defining column abbreviations: tbx_spp.R -
-
Samples as rows, species and factors as columns (tbx_num.R)
-
Samples as rows, environmental data and factors as columns (tbx_env.R)
-
Run spp_comb_data_proc.R to process and subset the Tampa Bay data for one species and desired length into two files:
-
Count data (tbx_s_c.R)
-
Subset of the count data
-
Fills no catch samples with zeros
-
-
length data (tbx_s_l.R) - subset the length data