aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--function_trap_parse.R7
1 files changed, 5 insertions, 2 deletions
diff --git a/function_trap_parse.R b/function_trap_parse.R
index ce915f7..fb51935 100644
--- a/function_trap_parse.R
+++ b/function_trap_parse.R
@@ -55,7 +55,10 @@
#Begin function
trap.parse = function(file, grids=FALSE, missing.grids=FALSE, traps=FALSE,
species=FALSE, checks=FALSE,output){
-
+
+ #Load required library
+ require(dplyr)
+
#Read in datafile. Should be CSV format only.
data = as.data.frame(read.csv(file,header=TRUE))
@@ -320,4 +323,4 @@ trap.parse = function(file, grids=FALSE, missing.grids=FALSE, traps=FALSE,
}
-##End script \ No newline at end of file
+##End script