Skip to content

Commit

Permalink
Swap args 'year' and 'na' in flr2taf()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arni Magnusson committed Apr 27, 2017
1 parent c8b05eb commit cf68d9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/flr2taf.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#' 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.
#' @param na a value that should be converted to NA.
#'
#' @return
#' A data frame with crosstab data.
Expand All @@ -27,11 +27,11 @@
#' dimnames(x) <- list(age=2:8, year=1991:2000,
#' unit="unique", season="all", area="unique", iter=1)
#' flr2taf(x)
#' flr2taf(x, na=0, year=FALSE)
#' flr2taf(x, year=FALSE, na=0)
#'
#' @export

flr2taf <- function(x, na=NULL, year=TRUE)
flr2taf <- function(x, year=TRUE, na=NULL)
{
y <- as.data.frame(t(drop(unclass(x))))
if(year)
Expand Down
8 changes: 4 additions & 4 deletions man/flr2taf.Rd

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

0 comments on commit cf68d9c

Please sign in to comment.