14:38
To: Hawthorne Beyer; r-help@r-project.org
Subject: Re: [R] order() function, decreasing=TRUE unexpected behaviour
I think you are confused, and there is no problem with the order function. Keep
in mind that order returns the index values in a sequence such that when the
result of the order
I think you are confused, and there is no problem with the order function. Keep
in mind that order returns the index values in a sequence such that when the
result of the order function is used as indexes for the original sequence then
the data will be sorted as desired. You may see the error of
On 01.02.2013 17:52, Kripa R wrote:
Hi I'm having a simple issue with the order function. When I use the following
code my data is not ordered correctly > output[order(output[,3]),]
Namebeta pval
881 9.09303277751237 0.000100253350483199
74026.4055346
I agree with Duncan.
may be you need this
format(output[order(output[,3]),],scientific=T)
Pratap
--- On Sat, 2/2/13, Duncan Murdoch wrote:
From: Duncan Murdoch
Subject: Re: [R] order function
To: "Kripa R"
Cc: r-help@r-project.org
Date: Saturday, 2 February, 2013, 4:19 AM
O
On 13-02-01 12:15 PM, Kripa R wrote:
Hi I'm having a simple issue with the order function. When I use the following
code my data is not ordered correctly
output[order(output[,3]),]
Namebeta pval
881 9.09303277751237 0.000100253350483199
74026.4055346
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of maths123
> Sent: Wednesday, November 28, 2012 9:11 PM
> To: r-help@r-project.org
> Subject: Re: [R] Order function
>
> And yes I want the variable
ave a specific
question.
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
John Kane
Kingston ON Canada
> -Original Message-
> From: linda_...@hotmail.co.uk
> Sent: Wed, 28 Nov 2012 08:49:42 -0800 (PST)
> To: r-help@r-project.org
> Su
And yes I want the variable 1 to have the identifier 1 etc.
And I need to call this variable "order" so I can use it to create an anova
table.
--
View this message in context:
http://r.789695.n4.nabble.com/Order-function-tp4651022p4651198.html
Sent from the R help mailing list archive at Nabbl
I have one text file with all the data on there.
So 20 rows of data. And 3 columns: numbers 1-20, size, time.
I need to create a variable called 'order' as I need to use it for something
in the next part.
I am very confused as to how to do this.
--
View this message in context:
http://r
Are you asking how to create a variable in each data set so that data set 1 has
the idenfier 1 and so on?
It's not clear from what you say if you have 20 different data sets (say data
frame or file for each ) or if you have one file with the data.
As a brute force approach in either case I'd
With similar data, since you didn't include reproducible example of your own:
> results <- matrix(c(53, 55, 37, 83), nrow=1)
> colnames(results) <- letters[1:4]
> results
a b c d
[1,] 53 55 37 83
> order(results)
[1] 3 1 2 4
> colnames(results)[order(results)]
[1] "c" "a" "b" "d"
On Fri
names(results)[order(results)]
Michael
On Fri, Dec 2, 2011 at 2:45 PM, Martin Bauer wrote:
> Hello,
>
>
> I have a matrix results with dimension 1x9 double matrix
>
> XLB XLE XLF XLI
> 1 53.3089 55.77923 37.64458 83.08646
>
> I'm trying to order
12 matches
Mail list logo