Re: [R] Frequency vector

2008-08-15 Thread emir.toktar
Hi Dennis, you could get the result using 2 approachs: 1) a - c(1,1,1,1,2,3,4,5,5) b - table(a) print (b[1]) 1 4 Now, print (b[[1]]) 4 rownames(b) [1] 1 2 3 4 5 c =rownames(b) print(c[1]) 1 2) b= tabulate(a) b [1] 4 1 1 1 2 print(b[1]) [1] 4 Emir Toktar -Original

Re: [R] Greek characters in plots

2008-08-06 Thread emir.toktar
Hi, you could try to do: text(x,y, expression(paste(A) ,Delta,stbA::cat)); # uppercase 'D'elta text(x,y, expression(paste(A) ,delta,stbA::cat)); #lowercase 'd'elta or yet text(x,y, A) \\*DstbA::cat, vfont=c(serif, plain)) # here there are too many examples... demo(plotmath) 'Alpha' -

[R] optimize simultaneously two binomials inequalities using nlm( ) or optim( )

2008-08-04 Thread emir.toktar
Dear R users, I´m trying to optimize simultaneously two binomials inequalities (used in acceptance sampling) which are nonlinear solution, so there is no simple direct solution. Please, let me explain shortly the the problem and the question as following. The objective is to obtain the smallest

[R] optimize simultaneously two binomials inequalities using nlm

2008-07-29 Thread emir.toktar
Dear R users, I´m trying to optimize simultaneously two binomials inequalities used to acceptance sampling, which are nonlinear solution, so there is no simple direct solution. Please, let me explain shortly the the problem and the question as following. The objective is to obtain the smallest

[R] optimize function help!!

2008-07-22 Thread emir.toktar
Dear R users, I´m trying to optimize simultaneously two binomials inequalities used to acceptance sampling, which are nonlinear solution, so there is no simple direct solution. The 'n' represents the sample size and the 'c' an acceptance number or maximum number of defects (nonconforming) in