Displaying 1 result from an estimated 1 matches for "sistyl".
Did you mean:
sistyle
2008 Jun 25
1
expression, strsplit, ...
...would contain some greek letters and units with
exponents, as in:
> xlab=expression(paste("text ", alpha, " / ", V,".", m^{-3}, ".",
> kg^{-2}, ".", l^{4}))
To make this a bit prettier, I've attempted to mimic the behavior of
the SIstyle latex package which defines a macro that cleverly parses
an expression for units, exponents, etc. My code fails in putting
together the unit, as seen in the example below:
>
> makeUnits <- function(expr){ # formats the units
>
> units.list <- strsplit(expr, "[[:blank:...