Description Usage Arguments Value Author(s) See Also Examples
This function takes an object created by MWTextract
and returns a data frame with 7 columns suitable for kf estimation. This also sets some limits on where in the world the fish may have gone. These limits are meant to be extremely broad and exist to filter only the most egregiously erroneous light measurements.
1 | prepf(tag, xmin = 100, xmax = 0, ymin = 10, ymax = 55, keepall = F)
|
tag |
object returned from MWTextract |
xmin |
Southern longitude cutoff |
xmax |
Northern longitude cutoff |
ymin |
Southern latitude cutoff |
ymax |
Northern latitude cutoff |
keepall |
If you do not wish to use these cutoffs, keepall = T. Default is keepall = F |
Dataframe with 7 columns: Day, Month, Year, Longitude, Latitude, Max Daily Depth, Max Daily Ambient Temperature
Benjamin Galuardi
1 2 3 4 5 6 7 8 9 10 | Mydir = 'C:/MYDATA/'; # Data arranged by year in the DATA folder
tyear = 2008; # Year fish was tagged
taglocfile = paste(Mydir, 'Tagginglocations.txt', sep = ""); # ASCII file containing Tag ID, year, month, day, longitude and latitude of tagging locations. This is neccesary in order to properly read in the data.
tagID = '12345'
tyear = 2008
xlsfile = paste('Mydir', tyear, tagID, '/', tagID, '/', '.xls', sep = "")
tagdata <- MWTextract(tagID, tyear, xlsfile, taglocfile)
xdata=prepf(tagdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.