Re: [R] R programming question

2007-06-14 Thread Charles C. Berry
Gary, You are asked to PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. when posting. You have not provided such code, and until you do I doubt we can help. When I wrap your lines i

[R] R programming question

2007-06-14 Thread Nelson, Gary (FWE)
Dear All., I've created R-code for which a user will be asked to choose between 2 analyses. I've written one function for each type of analysis. Within each function, the users is prompted to enter information. An example is: cat("Enter value for lower Linf :\n") L1<-scan(n=1) cat("

[R] R programming question, one dimensional optimization

2007-01-24 Thread phwang2000
Hi, I have an optimization for x'Ax/x'Bx, x is a vector, A/B are matrix, I wrote a small program which can take in 2 matrices and a vector and a  variable, this  program combine the variable and the vector and generate a new vector, then  test the  x'Ax/x'Bx. However I dodnot know if there is a