matconv: A Code Converter from the Matlab/Octave Language to R

Transferring over a code base from Matlab to R is often a repetitive and inefficient use of time. This package provides a translator for Matlab / Octave code into R code. It does some syntax changes, but most of the heavy lifting is in the function changes since the languages are so similar. Options for different data structures and the functions that can be changed are given. The Matlab code should be mostly in adherence to the standard style guide but some effort has been made to accommodate different number of spaces and other small syntax issues. This will not make the code more R friendly and may not even run afterwards. However, the rudimentary syntax, base function and data structure conversion is done quickly so that the maintainer can focus on changes to the design structure.

Author
Siddarta Jairam [aut, cre], David Hiebeler [ctb]
Date of publication
2016-01-13 08:49:45
Maintainer
Siddarta Jairam <sidjsb@gmail.com>
License
GPL (>= 2)
Version
0.3.0

View on CRAN

Man pages

makeDataMap
Make the maps for the data
makeFuncMaps
Turn dictionary lines into functions that map matlab to R...
makeSliceMap
Make the maps for converting slice notation
mat2r
mat2r
matconv
matconv: A Utility to Convert Matlab / Octave Code into R...

Files in this package

matconv
matconv/inst
matconv/inst/extdata
matconv/inst/extdata/HiebelerDict.txt
matconv/inst/extdata/defDataConv.R
matconv/inst/doc
matconv/inst/doc/basicSyntax.R
matconv/inst/doc/basicSyntax.html
matconv/inst/doc/functionCalls.R
matconv/inst/doc/overallUse.rmd
matconv/inst/doc/functionCalls.html
matconv/inst/doc/overallUse.R
matconv/inst/doc/functionCalls.rmd
matconv/inst/doc/overallUse.html
matconv/inst/doc/basicSyntax.rmd
matconv/tests
matconv/tests/testthat.R
matconv/tests/testthat
matconv/tests/testthat/test-easySyntax.R
matconv/tests/testthat/test-funcMaps.R
matconv/tests/testthat/test-dataMaps.R
matconv/tests/testthat/test-dataSlice.R
matconv/tests/testthat/test-flag.R
matconv/tests/testthat/test-stringUtils.R
matconv/NAMESPACE
matconv/R
matconv/R/convEasySyntax.R
matconv/R/utils.R
matconv/R/convData.R
matconv/R/matconv.R
matconv/R/convMatSyntax.R
matconv/R/mat2r.R
matconv/R/convFunctionCalls.R
matconv/vignettes
matconv/vignettes/overallUse.rmd
matconv/vignettes/functionCalls.rmd
matconv/vignettes/basicSyntax.rmd
matconv/README.md
matconv/MD5
matconv/build
matconv/build/vignette.rds
matconv/DESCRIPTION
matconv/man
matconv/man/makeSliceMap.Rd
matconv/man/mat2r.Rd
matconv/man/matconv.Rd
matconv/man/makeFuncMaps.Rd
matconv/man/makeDataMap.Rd