Skip to content

Commit

Permalink
Release 1.1-0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arni Magnusson committed Apr 27, 2017
1 parent fd31ce3 commit c8b05eb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion R/flr2taf.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#' Convert FLR table to TAF format
#'
#' Convert a simple crosstab table from FLR format to TAF format.
#' Convert a simple crosstab table from FLR to TAF format.
#'
#' @param x a table of class \code{FLQuant}.
#' @param na a value that should be converted to NA.
#' @param year whether the year should be stored in the first column, instead of
#' row names.
#'
#' @return
#' A data frame with crosstab data.
#'
#' @note
#' FLR uses the \code{FLQuant} class to store tables as 6-dimensional arrays,
#' while TAF crosstabs are stored as data frames with a year column.
Expand Down
5 changes: 4 additions & 1 deletion R/taf2long.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#' Convert TAF table to long format
#'
#' Convert a table from TAF crosstab format to a 3-column long format.
#' Convert a TAF crosstab table to long format.
#'
#' @param x a data frame containing crosstab data.
#' @param names a vector of three column names for the resulting data frame.
#' @param year whether the input table has year in the first column, instead of
#' row names.
#'
#' @return
#' A data frame with three columns.
#'
#' @note
#' TAF stores crosstab tables as data frames with a year column, as seen in
#' stock assessment reports. The long format is practical for analysis and
Expand Down
5 changes: 4 additions & 1 deletion man/flr2taf.Rd

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

5 changes: 4 additions & 1 deletion man/taf2long.Rd

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

0 comments on commit c8b05eb

Please sign in to comment.