Skip to content

Commit

Permalink
oops - added a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccathomas-NOAA committed Oct 24, 2022
1 parent 29744d8 commit 180f48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_EV_exports.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

read_EV_exports<-function(var, SurveyName, DirNameFile,database=1,exportloc=1,...){

DirTable <- readxl::read_excel(DirNameFile) #load in directories/paths/locations
DirTable <- readxl::read_excel(DirNameFile) #load in directories/paths/ltocations
DirTable_yr<- subset(DirTable, Survey ==SurveyName) #just year of interest
DirTable_yr[] <- lapply(DirTable_yr, function(x) if(is.factor(x)) factor(x) else x) #to ensure dataframe actually removed other variables in subset

Expand Down

0 comments on commit 180f48d

Please sign in to comment.