Reorganization and improvements on matlab2r
This commit is contained in:
parent
22cea5b223
commit
0257e5fbfb
2 changed files with 54 additions and 19 deletions
|
|
@ -4,12 +4,15 @@
|
|||
\alias{matlab2r}
|
||||
\title{Convert Matlab function to R}
|
||||
\usage{
|
||||
matlab2r(filename, saveOutput = FALSE)
|
||||
matlab2r(filename, output = "clean", improve_formatting = TRUE)
|
||||
}
|
||||
\arguments{
|
||||
\item{filename}{name of the file}
|
||||
|
||||
\item{saveOutput}{if `TRUE`, `filename` is overwritten. Defaults to `FALSE`}
|
||||
\item{output}{can be "asis", "clean" (default) or "save"}
|
||||
|
||||
\item{improve_formatting}{if `TRUE` (default), makes minor changes
|
||||
to conform to best-practice formatting conventions}
|
||||
}
|
||||
\value{
|
||||
text converted to R, printed to screen or replacing input file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue