Skip to content

Commit 4dd7644

Browse files
committed
Minor documentation changes
1 parent 1187e38 commit 4dd7644

File tree

7 files changed

+68
-53
lines changed

7 files changed

+68
-53
lines changed

R/RomDataSource.R

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
#' the RomDataSource object consistent.
1010
#' @details Provides integrated, queryable universe of features, observations
1111
#' and meta data
12-
#' @importFrom R6 R6Class
12+
#' @importFrom R6 R6Class R
1313
#' @param baseurl URL of remote data store with REST capabilities, optional
1414
#' @return reference class of type openmi.om.base.
1515
#' @seealso NA
16-
#' @examples
17-
#' ##Get new datasource via odbc
18-
#' #ds <- RomDataSource$new(site,
19-
#'# rest_uname = odbc_uname,
20-
#'# connection_type = 'odbc',
21-
#'# dbname = databaseName)
22-
#'# ds$get_token(rest_pw = odbc_pw)
23-
#' ##Pointer to external db
24-
#'# ds$connection
16+
#' @examples \dontrun{
17+
#'#Get new datasource via odbc
18+
#'ds <- RomDataSource$new(site,
19+
#' rest_uname = odbc_uname,
20+
#' connection_type = 'odbc',
21+
#' dbname = databaseName)
22+
#'ds$get_token(rest_pw = odbc_pw)
23+
#'#Pointer to external db
24+
#'ds$connection
25+
#'}
2526
#' @export RomDataSource
2627
RomDataSource <- R6Class(
2728
"RomDataSource",

R/cia_utils.R

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,22 +1191,20 @@ simple_nhdPlusFlows <- function(ds, hydroid, huc_level = "huc8"){
11911191
)
11921192
}
11931193

1194-
#'@name simple_nhdPlusFlows
1194+
#'@name renameNHD
11951195
#'@title Use VA Hydro Varkeys on NHDPlus
1196-
#'@description A function to rename the columns from NHDPlus to VAHydro varkeys
1196+
#'@description A function to rename the flows from NHDPlus to VAHydro varkeys
11971197
#'@details This function takes a data.frame or tibble output from
11981198
#'\code{nhdPlusTools::get_nhdplus()} and renames the relevant flow columns using
11991199
#'VA Hydro varkeys from dh_variabledefinition to allow for consistent comparison
1200-
#'to data from VA Hydro databases
1201-
#'@param ds A datasource provided by the user, usally the RomDataSource instance
1202-
#' create in DEQ config.R files, querying drupal.dh03
1203-
#'@param hydroid The hydroid of a feature of interest. This is used to find
1204-
#' intersecting NHD Plus catchments and to ultimately identify the NHD feature
1205-
#' of interest based on the huc_level input
1200+
#'to data from VA Hydro databases. Alternatively, it takes in a vector of flow
1201+
#'names from \code{nhdPlusTools::get_nhdplus()} and returns a vector of readible
1202+
#'names (when returnPlotName is TRUE).
12061203
#'@param get_nhdplus_df A data frame output from
1207-
#' \code{nhdPlusTools::get_nhdplus()} or the \code{simple_nhdplus()} wrapper
1208-
#'@param returnPlotName Default to logical FALSE. If TRUE, returns a character vector
1209-
#' of names that describe the flow column
1204+
#' \code{nhdPlusTools::get_nhdplus()} or the \code{simple_nhdplus()} wrapper.
1205+
#' Alternatively, a vector of nhd flow names
1206+
#'@param returnPlotName Logical. Defaults to FALSE. If TRUE, returns a character
1207+
#' vector of names that describe the flow column
12101208
#'@return An identical data frame with flow columns renamed using appropriate
12111209
#' varkeys if returnPlotName is FALSE or a character vector of readible names
12121210
#'@examples \dontrun{

man/Hydro-Data-Source-Data-Source-Bin.Rd

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/renameNHD.Rd

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/simple_nhdPlusFlows.Rd

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wa_13.png

-6.17 KB
Binary file not shown.

wa_pre_alloc_50pct.png

-6.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)