search for: sorting

Displaying 20 results from an estimated 31109 matches for "sorting".

Did you mean: porting
2012 May 17
2
Complex sort problem
...d that sort order is used for the child nodes. set.seed(12345) x <- sample(0:100, 10) x.order <- order(x) x.sorted <- x[x.order] sample.ind <- sample(1:length(x), 5, replace = TRUE) #sample 1/2 size with replacement x.sample <- x[sample.ind] x.sample.sorted <- #??? (without sorting again) Thanks for any help on this. Regards, Axel. [[alternative HTML version deleted]]
2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
...This also doesn''t affect the order: Comment.find_by_contents("test", :sort => ["ferret_created_at"], :num_docs => 5) The following, however, DOES affect the order, but it''s SUPER slow: Ferret::Search::SortField.new("id",:reverse => :true) Sorting by id desc is really all I need, so if it''s easier to somehow quickly sort by that, all the better. Here''s my model: class Comment < ActiveRecord::Base acts_as_paranoid acts_as_ferret :fields => [ ''comment'', :forum_id, ''mod_type'', &...
2005 Apr 01
7
a R function for sort a data frame.
Is there a R function for sort a data frame by a variable ? I know sort a vector, but I don't know sort a data frame by a column. Can you help me ? the sort() function don't work with data frame.
2006 Oct 16
10
Sorting by score
Hi I think this is a very easy question but here goes: I want to sort my results by a boolean field and then by score, I thought this would be a default configuration but apparently not. sort_fields = [] sort_fields << Ferret::Search::SortField.new(:sponsored, :reverse => :true) that is my current code, how do iu alter it so that the results are then sorted by highest score first?
2004 Dec 14
5
sort() leaves row names unaffected
Hello, I wonder if I ran into a bug. If I do summary(df1$X1) -> df1.y df1.y a b c d e [1,] 50.74627 8.955224 17.91045 19.40299 2.985075 sort(df1.y) a b c d e [1,] 2.985075 8.955224 17.91045 19.40299 50.74627 my numbers are sorted but do not anymore correspond to the rownames. For me it is counterintuitive that solely the numbers are sorted and not the names. Is
2011 Apr 04
0
Inconsistency: sort(NULL)/sort.int(NULL) does not throw an error, cf. order(NULL), sort.int(NULL, index.return=TRUE), ...
Hi, while backtracking why sort(NULL) gives a warning, and acknowledging that NULL is not the same as an empty vector and sort(NULL) is bad coding, I discovered the following inconsistency of sort.int(): > x <- NULL > sort(x) Warning in is.na(x) : is.na() applied to non-(list or vector) of type 'NULL' NULL > sort.int(x) Warning in is.na(x) : is.na() applied to non-(list
2005 Sep 14
13
table sorting/manipulation library?
I have a library I''ve developed that I believe is the most flexible and useful table sorting/striping/row-selecting library around. Big features: Single and multiple-level sort Arbitrary sort criteria (IP address, date, etc.) Works with table headers that are > 1 row or column large Stripe tables and/or enable row selecting Row selecting supports drag-select and SHIFT-click No extra HT...
2007 Jul 13
8
More sorting problems with untokenized index
I''m having problems sorting on untokenized fields. I have one field that sorts fine, but there are others that seem to sort on a different field. Here''s the index description: acts_as_ferret :remote=>true,:fields=>{:name=>{:boost=>2},:name_for_sort=>{:index => :untokenized}, :city=>{:boos...
2015 Oct 22
1
(no subject)
------------------ >>>>> Henric Winell <[hidden email]> >>>>> on Wed, 21 Oct 2015 13:43:02 +0200 writes: > Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via R-devel: >> Marius Hofert-4------------------------------ >>> Den 2015-10-09 kl. 12:14, skrev Martin Maechler: >>> I think so: the code above
2004 Nov 03
2
Unexpected results from sort function when partial and index are used
Hi, Consider the following example: sort(10:1, partial=3) ## 1 2 3 7 6 5 4 8 9 10 sort(10:1, index=T) ## $x: 1 2 3 4 5 6 7 8 9 10 ## $ix: 10 9 8 7 6 5 4 3 2 1 sort(10:1, partial=3, index=T) ## 1 2 3 7 6 5 4 8 9 10 The first 2 calls gave expected returns; however, the third one did not returned an index as requested. I could not find anything about it in
2016 Apr 06
0
Memory problem
As Jim has indicated, memory usage problems can require very specific diagnostics and code changes, so generic help is tough to give. However, in most cases I have found the dplyr package to be more memory efficient than plyr, so you could consider that. Also, you can be explicit about only saving the minimum results you want to keep rather than making a list of complete results and extracting
2006 Dec 28
13
Sorting/Ordering Search Results
Hello All, I am having an issue with AAF and sorting results of a search. Right now, I have results being split onto pages of 10. The results are being sorted alphabetically, but not across multiple pages - it''s just sorting the 10 it pulls down on each page. I noticed another post from April regarding this same issue (http://www.ruby-forum....
2012 Oct 16
1
Question about use of sort.list(sort.list(x)) in rank.r
I was looking at rank() and I came across: ... "first" = sort.list(sort.list(xx)), ... line 32 of rank.r [1] sort.list(x) returns the indices of the values of x in ascending (by default) order. So sort.list(sort.list(x)) returns the same list. So, what am I missing here? -Tyler [1] view-source:http://svn.r-project.org/R/trunk/src/library/base/R/rank.R [[alternative HTML version
2011 Mar 06
4
sorting & subsetting a data.frame
Dear all This may be obvious, but I cannot get it working. I'm trying to subset & sort a data frame in one go. x <- iris x$Species1 <- as.character(x$Species) ##subsetting alone works fine with(x, x[Sepal.Length==6.7,]) ##sorting alone works fine with(x, x[order(Sepal.Length, rev(sort(Species1))),]) ##gets subsetted, but not sorted as expected with(x, x[(Sepal.Length==6.7) & order(Sepal.Length, rev(sort(Species1))),]) ##gets subsetted, but sorts very strangely xa <- with(x, x[Sepal.Length==6.7,]); with(xa, xa[order(S...
2010 Aug 06
1
qqline error: Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?
Hi all, I'm modeling using lme in the nlme package. qqnorm makes plots just find, but when I try to add a line with qqline, I get the following error: "Error in sort.list(x, partial = unique(c(lo, hi))) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?" For example > modelincr10<-lme(lruin~can.pos.num, data=rwushi30, random=(~1|
2017 Aug 02
2
result of uid sort by subject
Result of uid sort by subject is not expected. for example: Japanese => English => Japanese => English I'm now using Dovecot 2.2.31. command example: HNKK6 UID SORT (REVERSE SUBJECT) utf-7 ALL * SORT 3 1 7 2 4 10 11 8 12 HNKK6 OK Sort completed (0.002 + 0.041 + 0.001 secs). Any hint? -- Masashi Astro TACHIBANA QUALITIA CO., LTD. mailto:tachibana at qualitia.co.jp
2009 Mar 13
4
Sorting rows of a matrix independent of each other
...tried various incarnations of rbind around my loop, but to no avail. I've search my books and the forums, and I'm sure there is some nifty R function out there, but I can't seem to find it and/or apply it correctly. Cheers, Kev- -- View this message in context: http://www.nabble.com/Sorting-rows-of-a-matrix-independent-of-each-other-tp22498636p22498636.html Sent from the R help mailing list archive at Nabble.com.
2004 May 20
2
column sorting a matrix with indices returned
...sort() which when applied to a matrix will sort the columns returning the column sorted matrix as well as a matrix of permuted indices. Doing: > x <- matrix(c(3,4,2,6,3,4,8,7,5), nr=3) > x [,1] [,2] [,3] [1,] 3 6 8 [2,] 4 3 7 [3,] 2 4 5 What I want after sorting x are two matrices: (the column sorted x) 2 3 5 3 4 7 4 6 8 and (the index matrix) 3 2 3 1 3 2 2 1 1 Doing, > sx <- apply(x, c(2), sort, index.return=T) results in sx being a series of lists. I know I could then go through the list and create a sorted matrix and an index matrix. But is...
2008 Oct 07
4
sort a list?
I am trying to sort a list and the data is obiously not in the right format. I am trying: x <- list() x[["A"]] <- 1 x[["B"]] <- 2 order(x) But am getting: Error in order(x) : unimplemented type 'list' in 'orderVector1' How should I change the list so that it can be sorted? What kinds of objects (classes of objects) can be sorted? Thank you. Kevin
2011 May 02
3
ID parameter in model
Hello, I am apparently confused about the use of an id parameter for an event history/survival model, and why the EHA documentation for aftreg does not specify one. All assistance and insights are appreciated. Attempting to specifiy an id variable with the documentation example generates an "overlapping intervals" error, so I sorted the original mort dataframe and set subsequent entry