Re: [R] Operating System Variable

2010-03-05 Thread Rob Helpert
Excellent! Thank you. On Fri, Mar 5, 2010 at 9:52 AM, Henrique Dallazuanna wrote: > Try: > > .Platform$OS.type > > On Fri, Mar 5, 2010 at 11:45 AM, Rob Helpert wrote: >> Hi. >> >> Is there an easy way (analogous to the $^O variable in perl) to find >> o

[R] Operating System Variable

2010-03-05 Thread Rob Helpert
Hi. Is there an easy way (analogous to the $^O variable in perl) to find out what operating system R is currently using? Thanks. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

[R] Legend Text Font Size

2010-02-16 Thread Rob Helpert
Hi. I have a plot containing a large number of lines. I have placed a legend in the plot, but with so many lines, the legend takes up a lot of space. I have tried to reduce the spacing between the lines using the legend parameter x.intersp=0.7, but this does not compress the legend enough. Is t

Re: [R] lpSolve: how to allow variables to become negative

2009-07-02 Thread Rob Helpert
Sorry. Of course, I meant the DIFFERENCE of two non-negative variables. So, for example, write b1 = b1p - b1n, where both b1p and b1n are non-negative. On Thu, Jul 2, 2009 at 4:18 PM, Rob Helpert wrote: > Hi Alicia, > > I think the trick may be to split b1 into the sum of two non

Re: [R] lpSolve: how to allow variables to become negative

2009-07-02 Thread Rob Helpert
Hi Alicia, I think the trick may be to split b1 into the sum of two non-negative variables. You will then also have to alter your constraints and objective to include the two new variables with negative values in appropriate places, but I believe that this will solve the problem. On Thu, Jul 2,

[R] lpSolve lp const.dir

2009-06-17 Thread Rob Helpert
Hi. In the help page for "lp" in package lpSolve, regarding "const.dir" it says: const.dir: Vector of character strings giving the direction of the constraint: each value should be one of "<," "<=," "=," "==," ">," or ">=". (In each pair the two values are identical.) I am having trouble unders