Re: [R] asking for help

2017-04-25 Thread Saifuddin, Miah Mohammad
] asking for help Hi, the cut function might be helpful. vec=1: 163863 fcut=cut(vec,seq(1, 163863+1,by= 6069),include.lowest = T,right=F) aggregate(vec,by=list(fcut),min) aggregate(vec,by=list(fcut),max) cheers Peter On 25. Apr 2017, at 14:33, PIKAL Petr mailto:petr.pi...@precheza.cz>> wrot

Re: [R] asking for help

2017-04-25 Thread Anthoni, Peter (IMK)
e: Hi -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas Mailund Sent: Tuesday, April 25, 2017 11:20 AM To: r-help@r-project.org<mailto:r-help@r-project.org>; Saifuddin, Miah Mohammad mailto:miah.mohammadsaif...@mavs.uta.edu>> Subject: Re: [R] askin

Re: [R] asking for help

2017-04-25 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas > Mailund > Sent: Tuesday, April 25, 2017 11:20 AM > To: r-help@r-project.org; Saifuddin, Miah Mohammad > > Subject: Re: [R] asking for help > > If you write someth

Re: [R] asking for help

2017-04-25 Thread Thomas Mailund
If you write something like indices <- rep(1:(163863/6069), each = 6069) you can get the i’th block of rows with table[indices == i,] It looks like a little more work than a loop would be since you have to run through all rows for each block, but the implicit loop in this approach is likely t

Re: [R] asking for help

2017-04-24 Thread Bert Gunter
By 163863 "values" do you mean rows in the data frame? If so, please read about indexing in any online R tutorial or the Intro to R tutorial that ships with R. This is an absolutely basic R operation, and if you are unwilling or unable to put in the time to learn about it, you should probably consi

[R] asking for help

2017-04-24 Thread Saifuddin, Miah Mohammad
I have a data frame having 163863 values. I want to subset it so that each set has 6069 values in it. for example 1:6069 as first, 6070: 6070+6068 as second. how can I do that, preferably in a loop. TIA [[alternative HTML version deleted]] _

Re: [R] Asking for help

2017-04-19 Thread Boris Steipe
What about the advice I sent you this morning? B. > On Apr 19, 2017, at 1:49 PM, Boris Steipe wrote: > > No attachments please. Use the dput() function. And keep the correspondence > on the list, there are many colleagues who are far more knowledgeable than I > am. > > Cheers, > Boris > >

Re: [R] Asking for help

2017-04-19 Thread Ista Zahn
For help in formulating your question in a way that makes it easy to help you see http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example When asking for help on the R-help mailing list in particular, make sure to send plain-text email. Best, Ista On Wed, Apr 19, 2

[R] Asking for help

2017-04-19 Thread Santiago Bueno
I have tried to ask for help ragarding R software but it seems that I do not know how to send my questions. Can someone "PLEASE" tutor me on how to structure my messages? Best regards, Santiago [[alternative HTML version deleted]] __ R-help@r-

[R] Asking for help while using "Simplex" to solve LP Problem.

2009-06-10 Thread Ren, Shubin
Hello. I am a new user and want to use R to solve Linear Programming problem. I met a problem while using function "Simplex" and I would kindly ask whether someone could help to figure it out. In my problem, there are 47 parameters and all limited to (0,1). M file has 147 lines and P file has 1