search for: sorted

Displaying 20 results from an estimated 31113 matches for "sorted".

Did you mean: ported
2012 May 17
2
Complex sort problem
...'many' samples from the same source data and sort them. This can be very time consuming for long vectors. Is there any way I can sort the data only once initially, and use that sort order for the samples? I believe that idea is what is implemented in tree-based classifiers, so the data is sorted only once initially and 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...
2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
I''m trying to sort my search results by Date, in descending order. I''ve done quite a bit of reading through the forums here, and I''ve tried two different suggestions. This just returns results in the same order as a search without a sort: sort_fields = [] sort_fields << Ferret::Search::SortField.new("ferret_created_at",:reverse => :true)
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
...rt 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? thanks very much. regards caspar -- Posted via http://www.ruby-forum.com/.
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 there a way to sort names + numbers or is this behaviour of sort() unintended? Martin R 2.0.1-1 debian reposit.
2011 Apr 04
0
Inconsistency: sort(NULL)/sort.int(NULL) does not throw an error, cf. order(NULL), sort.int(NULL, index.return=TRUE), ...
...(list or vector) of type 'NULL' Error in sort.list(x, decreasing = decreasing) : argument 1 is not a vector > sort.int(x, partial=1) Warning in is.na(x) : is.na() applied to non-(list or vector) of type 'NULL' Error in sort.int(NULL, partial = 1) : only atomic vectors can be sorted > order(x) Error in order(x) : argument 1 is not a vector Using an empty vector behaves correctly, e.g. x <- character(0). For consistency, should sort.int(NULL) also give an error? If so, that would result in sort(NULL) throwing an error too, which might have lots of implications to cod...
2005 Sep 14
13
table sorting/manipulation library?
...port (AFAIK) All the other table-sorting libraries I''ve found try to "guess" what they''re sorting. This library makes no attempt to do so, instead assuming the designer can tell it how to sort by giving it a function for each sortable column that returns a value to be sorted. An example: ----------------- <table id="myTable" class="sortable striped rowsSelectable"> <thead><tr><th>string</th><th>number</th><th>date</th></tr></thead> <tfoot /> <tbody> .......... </tbody...
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=>{:boost=>2}, :city_for_sort=>{:index=>:untokenized},
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
...thing about it in http://stat.ethz.ch/R-manual/R-patched/library/base/html/sort.html <http://stat.ethz.ch/R-manual/R-patched/library/base/html/sort.html> , so it seems to be an "undocumented feature". Does any body know how to "convince" sort to return index of partially sorted array? Thanks Jarek =====================================\==== Jarek Tuszynski, PhD. o / \ Science Applications International Corporation <\__,| (703) 676-4192 "> \ Jaroslaw.W.Tuszynski@saic.com...
2016 Apr 06
0
Memory problem
...rg> wrote: >Dear R Forum, > >I have about 2000+ FX forward transactions and I am trying to run 1000 >simulations. If I use less no of simulations, I am able to get the >desired results. However, when I try to use more than 1000 simulations, >I get following error. > >> sorted2 <- ddply(sorted, .(currency_from_exch, id), mutate, >change_in_mtm_bc = mtm_bc - mtm_bc[1]) > >Error: cannot allocate vector of size 15.6 Mb > > >In addition: Warning messages: >1: Reached total allocation of 3583Mb: see help(memory.size) >2: Reached total allocation...
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.com/topic/62993#66934) where the issue was claimed to be resolved - so I figure I''m doing somethi...
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
...t 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(Sepal.Length, rev(sort(Species1))),]) xa <- with(x, x[Sepal.Length==6.7,]); with(xa, xa[order(rev(sort...
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
...ill be, as usual, so thanks in advance for enlightening me). I need to sort each row of a matrix independent of the others. For example, > test <- matrix(c(8,7,1,2,6,5,9,4,3),nrow=3) > test [,1] [,2] [,3] [1,] 8 2 9 [2,] 7 6 4 [3,] 1 5 3 I can get each row sorted well enough. > sort(test[1,]) [1] 2 8 9 > sort(test[2,]) [1] 4 6 7 > sort(test[3,]) [1] 1 3 5 Now I just need the resulting matrix: 2 8 9 4 6 7 1 3 5 But when I try to turn this into something more automated, I only get the last row. > for(e in 1:3) sorted <- sort(test[e,]) >...
2004 May 20
2
column sorting a matrix with indices returned
Hi, I'm trying to translate some Matlab code to R and I'm trying to implement the behavior of Matlab's 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 mat...
2008 Oct 07
4
sort a list?
...ort 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
...e 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 times an id to the previous exit time + 0.0001. This allowed me to see the affect of the id parameter on the coefficients and significance tests, and prompted my question. The code I used is shown below, with the results at the bottom. Thanks...