checkDF | R Documentation |
checkDF checks a CPUE data.frame contains all fields expected for analysis. These are year, month, yearq, diver, catch, Long, Lat, Depth, DayNight, Zone, Effort, Method, Fishery, LnCE, and DepCat. If any are missing it identifies them if not it confirms all is ok. Although, except for their class checkDF does not consider the contents of each field. This file needs MODIFICATION
checkDF(x)
x |
a data.frame of CPUE data used in the SESSF |
only a text message to the console confirming all ok or reporting which fields are missing
## Not run:
dataf <- as.data.frame(matrix(rnorm(100,mean=10,sd=1),nrow=20,ncol=5))
colnames(dataf) <- c("Year","catch_kg","Long","Zone","LnCE")
checkDF(dataf)
dataf <- as.data.frame(matrix(rnorm(42,mean=10,sd=1),nrow=1,ncol=14))
colnames(dataf) <- c("Year","Month","Vessel","catch_kg","Long","Lat",
"Depth","DepCat","DayNight","Zone","Effort",
"Method","Fishery","LnCE")
checkDF(dataf)
head(dataf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.