[R] Error massage in attaching package 'rgl'

2008-02-17 Thread stat stat
Hi, I am getting following error message while attaching 'rgl' package : library(rgl) Error in get(Info[i, 1], envir = env) : internal error in R_decompress1 Can anyone tell me what should I do here? Regards, - 5, 50, 500, 5000 - Store N number of

Re: [R] Error massage in attaching package 'rgl'

2008-02-17 Thread stat stat
I am using 2.6.0 version in usual Windows-XP platform Duncan Murdoch [EMAIL PROTECTED] wrote: On 17/02/2008 8:15 AM, stat stat wrote: Hi, I am getting following error message while attaching 'rgl' package : library(rgl) Error in get(Info[i, 1], envir = env) : internal error

[R] Error in if loop

2007-10-21 Thread stat stat
I have created a if loop as follows: name = e if (name == v) { u = 0 } else u = 1 however i am getting error : Error: unexpected 'else' in else definitely I can write in : ifelse() form, however I want to write in this way. Can anyone tell me where is my error? thanks in advance

Re: [R] Error in if loop

2007-10-21 Thread stat stat
/2007, stat stat wrote: I have created a if loop as follows: name = e if (name == v) { u = 0 } else u = 1 however i am getting error : Error: unexpected 'else' in else There are 3 issues here: 1. Do you appreciate the difference between ifelse and if ? What are you actually trying

[R] Splines

2007-10-05 Thread stat stat
I want to fit a cubic spline of x on y. where : x [1] 467 468 460 460 450 432 419 420 423 423 y [1] 1 2 3 4 5 6 7 8 9 10 using the syntax spline(y, x) I got following output : $x [1] 1.00 1.310345 1.620690 1.931034 2.241379 2.551724 2.862069

[R] Sample selection problem

2007-10-03 Thread stat stat
I want to get a sample of some arbitrary size from a population having only two values 0 and 1 with replacement, but with different probability for selection. For example 0 will be selected with probability 0.4 and 1 with 0.6. I could use sample function i.e. sample(c(0,1), 30, T) to get this,

[R] Expressing number in percentage

2007-09-27 Thread stat stat
I am wondering if there is any procedure to write a particular value in Percentage format, still maintaining it's numeric character. for example I want to write '.33' as '33%' regards, thanks in advance - [[alternative HTML

[R] Legend

2007-09-26 Thread stat stat
I have following syntax for putting a legend : legend(bottom, fill=c(red,blue), legend=expression(p==0.30, p==0.50), bty=n) However what I want is that : the value 0.30 should be a value of a variable instead of a constant, so that I can put the name of this variable and in legend it's value