Skip to content

Commit

Permalink
improve summary docs, generally and for ctd
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelley committed Jun 18, 2016
1 parent 3a045a9 commit 61901cd
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: oce
Version: 0.9-19
Date: 2016-06-17
Date: 2016-06-18
Title: Analysis of Oceanographic Data
Authors@R: c(person(given="Dan", family="Kelley", email="[email protected]", role=c("aut", "cre")),
person(given="Clark", family="Richards", email="[email protected]", role=c("aut")),
Expand Down
18 changes: 12 additions & 6 deletions R/AllClass.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,19 @@ setClass("oce",

#' Summarize an oce Object
#'
#' Provide a summary of some pertinent aspects of the object, including
#' important elements of its \code{metadata} slot and \code{data} slot,
#' Provide a textual summary of some pertinent aspects of the object, including
#' selected components of its \code{metadata} slot, statistical and
#' dimensional information on the entries in the \code{data} slot,
#' and a listing of the contents of its \code{processingLog} slot.
#'
#' The output is tailored to the object. This is not the way to learn
#' everything about the object; programmers, for example, will often
#' use \code{\link{str}} to get more details of the object structure.
#' The details depend on the class of the object, especially for
#' the \code{metadata} slot, so it can help to consult the specialized
#' documentation, e.g. \code{\link{summary,ctd-method}} for CTD objects
#' (i.e. objects inheriting from \code{\link{ctd-class}}.)
#' It is important to note that this is not
#' a good way to learn the details of the object contents. Instead,
#' for an object named \code{object}, say, one might use \code{\link{str}(object)}
#' to learn about all the contents, or \code{\link{str}(object[["metadata"]])}
#' to learn about the \code{metadata}, etc.
#'
#' @param object The object to be summarized.
#' @param ... Extra arguments (ignored)
Expand Down
5 changes: 4 additions & 1 deletion R/ctd.R
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ setMethod(f="initialize",
#' Summarize a CTD Object
#'
#' Summarizes some of the data in a \code{ctd} object, presenting such information
#' as the station name, sampling location, data ranges, etc.
#' as the station name, sampling location, data ranges, etc. If the object was read
#' from a \code{.cnv} file or a \code{.rsk} file, then the \code{OriginalName}
#' column for the data summary will contain the original names of data within
#' the source file.
#'
#' @param object A \code{ctd} object, i.e. one inheriting from \code{\link{ctd-class}}.
#'
Expand Down
5 changes: 4 additions & 1 deletion man/summary-ctd-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions man/summary-oce-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61901cd

Please sign in to comment.