Skip to content

Commit

Permalink
Merge pull request #55 from lawinslow/master
Browse files Browse the repository at this point in the history
Fixed up warnings and notes for CRAN submission
  • Loading branch information
Luke Winslow committed Apr 2, 2015
2 parents 93ab707 + 54a6197 commit 362cd43
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 55 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rLakeAnalyzer
Title: Package for the analysis of lake physics
Maintainer: Luke Winslow <[email protected]>
Version: 1.7.0
Version: 1.7.1
Author: Luke Winslow, Jordan Read, Richard Woolway, Jennifer Brentrup, Taylor
Leach, Jake Zwart
Description: Standardized methods for calculating common important derived
Expand All @@ -12,5 +12,5 @@ Imports:
plyr
License: GPL (>= 2)
Packaged: 2014-07-06 09:09:24 UTC; Luke
Repository: http://lakeanalyzer.gleon.org/
Date/Publication: 2014-07-06 09:09:24
Repository: https://github.com/GLEON/rLakeAnalyzer
Date/Publication: 2015-04-02 12:00:00
24 changes: 12 additions & 12 deletions R/helper.functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ get.drho_dz <- function(wtr, depths){
}


#'@title Find and drop the datetime column from the datatable
#'
#'@description Liberally looks for a datetime column and drops it,
#'returning a data.frame with only water temperature. Errors if datetime column is
#'ambiguous. Warns if
#'
#'@return A data.frame with only the data, after datetime has been dropped
#'
#@title Find and drop the datetime column from the datatable
#
#description Liberally looks for a datetime column and drops it,
#returning a data.frame with only water temperature. Errors if datetime column is
#ambiguous. Warns if there is no match.
#
#@return A data.frame with only the data, after datetime has been dropped
#
drop.datetime = function(data, error=FALSE){

header = names(data)
Expand All @@ -68,10 +68,10 @@ drop.datetime = function(data, error=FALSE){
return(data[,-dt_indx])
}

#'@title Search for and return the datetime column from a ts data.frame
#'
#'
#'
#@title Search for and return the datetime column from a ts data.frame
#
#Warns if unavailable then returns NULL.
#
get.datetime = function(data, error=FALSE){

header = names(data)
Expand Down
6 changes: 3 additions & 3 deletions R/thermo.depth.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#'

#'@title Calculate depth of the thermocline from a temperature profile.
#'
#'@param wtr
Expand All @@ -18,15 +18,15 @@
#'@param mixed.cutoff
#'A cutoff (deg C) where below this threshold, thermo.depth and meta.depths
#'are not calculated (NaN is returned). Defaults to 1 deg C.
#'
#'@return
#'Depth of thermocline. If no thermocline found, value is max(depths).
#'Depth of thermocline. If no thermocline found, value is NaN.
#'
#'@description
#'This function calculates the location of the thermocline from a temperature profile.
#'It uses a special technique to estimate where the thermocline lies even between two
#'temperature measurement depths, giving a potentially finer-scale estimate than usual techniques.
#'
#'
#'@author
#'Luke Winslow
#'
Expand Down
2 changes: 1 addition & 1 deletion R/wtr.plot.temp.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#'

#'@title
#'Creates a time series plot of the thermocline and top and
#'bottom of the metalimnion
Expand Down
17 changes: 0 additions & 17 deletions man/drop.datetime.Rd

This file was deleted.

12 changes: 0 additions & 12 deletions man/get.datetime.Rd

This file was deleted.

5 changes: 1 addition & 4 deletions man/thermo.depth.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ as the starting point.}
are not calculated (NaN is returned). Defaults to 1 deg C.}
}
\value{
Depth of thermocline. If no thermocline found, value is max(depths).
Depth of thermocline. If no thermocline found, value is NaN.
}
\description{
This function calculates the location of the thermocline from a temperature profile.
It uses a special technique to estimate where the thermocline lies even between two
temperature measurement depths, giving a potentially finer-scale estimate than usual techniques.
}
\details{

}
\examples{
# A vector of water temperatures
Expand Down
3 changes: 0 additions & 3 deletions man/wtr.plot.temp.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ wtr.plot.temp(wtr, ...)
\description{
A line based plot of calculated depths of the thermocline, and
top and bottom of the metalimnion from a temperature profile time series.
}
\details{

}
\examples{
wtr.path <- system.file('extdata', 'Sparkling.wtr', package="rLakeAnalyzer")
Expand Down

0 comments on commit 362cd43

Please sign in to comment.