aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2018-02-07 14:17:38 (GMT)
committerKen Kellner <ken@kenkellner.com>2018-02-07 14:17:38 (GMT)
commitad3c3cef5cced31cb43d4c34aeeb1c39c89118dc (patch)
tree78474aebfb1a5fcea9aa861f221c0113869cfb29
parent6ae3de6256baf04fb3465f729a160b573fc90c6e (diff)
Load missing libraryHEADmaster
-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