Re: [R] translate formula into R code

2017-06-20 Thread David L Carlson
4198 0.41152263 Matches the values in your png. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jeff Newmiller Sent

Re: [R] translate formula into R code

2017-06-20 Thread Jeff Newmiller
Cc'd back to the list... always use reply-all. You say res should have been LSS but LSS is a scalar so the for loop will only run once. What does a successful output look like for a sample input? How do you (we) know when success has been achieved? In fact, what is the formula you want to imple

Re: [R] translate formula into R code

2017-06-20 Thread Jeff Newmiller
This is an excellent exercise for you, the beginner. If you explicitly want a line-by-line translation and don't want to use the strengths of R (vectorization/functions) then there isn't much point in asking us to read the Introduction to R document that comes with the software for you. Please