Skip to content

Commit

Permalink
as.numeric to getTour
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Jun 17, 2015
1 parent 2697bf5 commit 738fd07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by roxygen2 (4.1.1): do not edit by hand

S3method(as.numeric,AntsResult)
S3method(print,AntsControl)
S3method(print,AntsResult)
export(aco)
export(getTour)
export(makeAntsControl)
export(makeConsoleMonitor)
export(makeMonitor)
Expand Down
2 changes: 1 addition & 1 deletion R/asNumeric.R → R/getTour.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @return [numeric]
#'
#' @export
as.numeric.AntsResult = function(x, close = FALSE, ...) {
getTour = function(x, close = FALSE, ...) {
tour = x$best.tour
if (close) {
tour = c(tour, tour[1])
Expand Down
8 changes: 4 additions & 4 deletions man/as.numeric.AntsResult.Rd → man/getTour.Rd
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/asNumeric.R
\name{as.numeric.AntsResult}
\alias{as.numeric.AntsResult}
% Please edit documentation in R/getTour.R
\name{getTour}
\alias{getTour}
\title{Extracts the best tour found from an \code{AntResult} object.}
\usage{
\method{as.numeric}{AntsResult}(x, close = FALSE, ...)
getTour(x, close = FALSE, ...)
}
\arguments{
\item{x}{[\code{AntResult}]\cr
Expand Down

0 comments on commit 738fd07

Please sign in to comment.