Marc Schwartz-3 wrote
>
> See ?as.formula and ?paste
>
> Something along the lines of the following should work:
>
> Args <- c("one", "two", "three")
>
>> Args
> [1] "one" "two" "three"
>
>> paste(Args[1], "~", Args[2])
> [1] "one ~ two"
>
>> as.formula(paste(Args[1], "~", Args[2]))
> o
Dear R users,
This probably a really noob question, but I'm stuck. I'd like to pass some
variables from bash to R as strings. I can successfully pass variables using
commandArgs(), the problem is that I end up with an array. So, for example:
> Args <- commandArgs(TRUE)
> Args
[1] "one" "two"
Dear R users,
I have six plots in one figure, created with par(mfrow=c(2,3)). I would like
to add two lines to the figure outside the plotting regions, separating the
figure into 3 columns. Is this possible?
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/separate-mfrow-re
3 matches
Mail list logo