search for: yourcol

Displaying 3 results from an estimated 3 matches for "yourcol".

Did you mean: your'll
2011 Jan 21
2
ordering a vector
Hi, is there a R function that order a matrix according to some criteria based on the rows(or cols) of that matrix? For example, let's say that my matrix S is composed by n rows S_1, S_2,.., S_n and that I compute some real value g_i=g(S_i) for each row. Then I want to order this set of g_i (from smaller to bigger) and order the correspondent row to the new position. Is it possible (apart
2012 Feb 28
6
Cleaning up messy Excel data
Unfortunately, some data I need to work with was delivered in a rather messy Excel file. I want to import into R and clean up some things so that I can do my analysis. Pulling in a CSV from Excel is the easy part. My current challenge is dealing with some text mixed in the values. i.e. 118 5.7 <2.0 3.7 Since this column in Excel has a "<2.0" value, then R reads the
2011 Jan 22
0
how to call BayesX in R to see the graph
...ogalli <francesco.petrogalli@gmail.com> Cc: r-help@r-project.org Subject: Re: [R] ordering a vector Message-ID: <AANLkTi=bWMJjnCoqpQYBEGTHZ_Sa1rk8SC2Pmks7JS3q@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 look at 'order' yourMatrix[order(yourMatrix[, 'yourCol']), ] On Fri, Jan 21, 2011 at 2:38 PM, Francesco Petrogalli <francesco.petrogalli@gmail.com> wrote: > Hi, > is there a R function that order a matrix according to some criteria > based on the rows(or cols) of that matrix? > > For example, let's say that my matrix S is...