Description Usage Arguments Details Value Author(s) See Also Examples
Reads a CSV of WiDNR Fish Management Data, sets variable classes, and optionally adds some variables and expands fish counts.
1 2 3 |
file |
The name of the external CSV file from the WiDNR Fisheries Management Database. |
addSpecies |
A logical that indicates whether a new variable of species names where only the first word is capitalized should be added to the returned data.frame. |
addMonth |
A logical that indicates whether a new variable of month of capture should be added to the returned data.frame. |
expandCounts |
A logical that indicates whether counts of fish of the same length should be expanded to be individual fish in the returned data.frame or not. See |
whichLengths |
A character string that indicates whether the expanded lengths, when |
lprec |
A single numeric that controls the precision to which the random lengths are recorded. See details in |
na.strings |
A vector of character strings that indicate what type of characters should be considered missing when reading the CSV file. Likely does not need to be changed. |
verbose |
A logical that indicates whether progress messages should be printed or not. |
... |
Not yet implemented. |
This function is used to read a CSV created directly from the WiDNR Fish Management Database and appropriately set the class type (e.g., integer, factor, etc.) for the variables. Optionally, the user may add the month the fish was collected and change the species names so that only the first letters are capitalized (so as to work more easily with other functions). Furthermore, the user may optionally choose to expand the counts of fish of the same lengths (often times no length was recorded, fish were just counted).
A data.frame.
Derek H. Ogle, dogle@northland.edu
setFMDBClasses
; expandCounts
in FSA.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.