search for: unsorted

Displaying 20 results from an estimated 189 matches for "unsorted".

2019 Jan 05
1
unsorted - suggestion for performance improvement and ALTREP support for POSIXct
I believe the performance of isUnsorted() in sort.c could be improved by calling REAL() once (outside of the for loop), rather than calling it twice inside the loop. As an aside, it is implemented in the faster way in doSort() (sort.c line 401). The example below shows the performance improvement for a vectors of double of moving REAL...
2012 May 23
2
Expected behaviour of is.unsorted?
Hi, I've read ?is.unsorted and searched. Have found a few items but nothing close, yet. Is the following expected? > is.unsorted(data.frame(1:2)) [1] FALSE > is.unsorted(data.frame(2:1)) [1] FALSE > is.unsorted(data.frame(1:2,3:4)) [1] TRUE > is.unsorted(data.frame(2:1,4:3)) [1] TRUE IIUC, is.unsorted is intend...
2013 Apr 24
1
multiple issues with is.unsorted()
Hi, In the man page for is.unsorted(): Value: A length-one logical value. All objects of length 0 or 1 are sorted: the result will be ?NA? for objects of length 2 or more except for atomic vectors and objects with a class (where the ?>=? or ?>? method is used to compare ?x[i]? with ?x[i-1]? for ?i?...
2008 Apr 17
1
Couldn't (and shouldn't) is.unsorted() be faster?
Hi, Couldn't is.unsorted() bail out immediately here (after comparing the first 2 elements): > x <- 20000000:1 > system.time(is.unsorted(x), gcFirst=TRUE) user system elapsed 0.084 0.040 0.124 > x <- 200000000:1 > system.time(is.unsorted(x), gcFirst=TRUE) user system elapsed 0.77...
2014 Jan 03
1
wishlist: decreasing argument to is.unsorted
I've just realized that it could be handy to have a 'decreasing' argument in 'is.unsorted'. And I'm cheekily hoping someone else will implement it. It is easy enough to work around (with 'rev'), but would be less hassle with an argument. The case I have in mind uses 'is.unsorted' in 'stopifnot'. Pat -- Patrick Burns pburns at pburns.seanet.com twitte...
2006 Mar 18
2
basic operations in rails
Hi all, This must be such a beginner''s problem, but I can''t figure it out. I''m pulling two integers out of a database, and i want to divide one value with the other, but i keep getting an error about operating on strings. Here''s the code - low_freq = unsorted.last.freq high_freq = unsorted.first.freq divider = high_freq / low_freq In my view, if i display the contents of low_freq or high_freq there is indeed an integer in there. Can someone help a newb? cheers -- Posted via http://www.ruby-forum.com/.
2010 Dec 11
1
DO NOT REPLY [Bug 7861] New: documentation: files-frombehaves badly on unsorted input
https://bugzilla.samba.org/show_bug.cgi?id=7861 Summary: documentation: files-frombehaves badly on unsorted input Product: rsync Version: 3.0.5 Platform: x64 OS/Version: Linux Status: NEW Severity: minor Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: rlpowell at digitalkingdom.org...
2008 Mar 14
0
My sortables are sporadically becoming unsortable.
Hi, Background: I''m writing a piece of code to display etsy.com items in a squidoo module. Squidoo provide a module development kit which uses ajax and php. See the example here: http://www.demido.co.uk/etsy (Currently only works in FF). The user enters a valid etsy userID, hit go, an ajax.updater passes the userid to a php script the php script goes off and finds the items returns
2007 Nov 08
2
question on image() function?
Dear friends, My dataset is like the following: x y mcpvalue 0.4603578 0.6247629 1.001 0.4603715 0.6247788 1.001 0.4603852 0.6247948 1.001 0.4110561 0.5664841 0.995 The x and y variables are unsorted. I use the function image(x,y,mcpvalue) to generate a plot, but the error is that "increasing 'x' and 'y' values are expected". So i use image(x=seq(min(x),max(x)), y=seq(min(y),max(y)),z=as.matrix (result$mcpvalue)) to do it again, but there is still an error "di...
2018 May 13
0
BUG: 'bibentry' methods change default bibstyle
...id", "R."), "Cox")), year = 1964, title = "An Analysis of Transformations", journal = "Journal of the Royal Statistical Society, Series B", volume = 26, pages = "211-252")) bibstyle("unsorted", sortKeys = function(refs) seq_along(refs), fmtPrefix = function(paper) paste0("[", paper$.index, "]"), .init = TRUE) ======================= As expected, the bibstyle() call sets "unsorted" as default bibstyle but here is how calls to sort...
2008 Jun 16
0
re-arranging unsorted data for surface/contour plot
Hi list, I'm struggling with plotting a 3d data set. I have a data frame with x,y and z values. They occur in no particular order (ie x and y are not ordered). However, I want to visualize the data using a contour plot. Now, the x,y and z data going into contour() are supposed to be ordered. My question is: Is their a quick way to re-arrange my data such that it can be fed to contour()?
2013 Aug 08
6
[Bug 10074] New: rsync reorders --from-files alphabetically
https://bugzilla.samba.org/show_bug.cgi?id=10074 Summary: rsync reorders --from-files alphabetically Product: rsync Version: 3.0.6 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: nicholas.man at
2003 Jul 16
5
Sorting a data frame
Hi there R-Helpers, Does anyone know if it is possible to sort a dataframe? I.e. Sort alphabetically column 1 ( which has some reocurring elements) then sort alphabetically column2 but keeping the order of column 1 constant; much the same way that the sort function works in Excel. Regards, Wayne Dr Wayne R. Jones Statistician / Research Analyst KSS Group plc St James's Buildings 79
2010 Mar 27
4
replace id by running number
Dear all, I want to replace an (unsorted) id variable in a large dataset by a running number without changing the order of the cases. E.g., y <- c(4,4,4,2,45,12,12) should be replaced by something like x <- c(1,1,1,2,3,4,4) Sorry for this simple question & thank you very much for your help! [[alternative HTML vers...
2011 Dec 07
4
bug in rank(), order(), is.unsorted() on character vector
Hi, This looks OK: > x <- c("_1_", "1_9", "2_9") > rank(x) [1] 1 2 3 But this does not: > xa <- paste(x, "a", sep="") > xa [1] "_1_a" "1_9a" "2_9a" > rank(xa) [1] 2 1 3 Cheers, H. > sessionInfo() R version 2.14.0 (2011-10-31) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1]
2013 Apr 21
0
Withdrawal of package Rigroup-0.84.0 from CRAN
...etter handle very very large datasets (ala BigData) more effieciently. That is assuming there is not some other package that does this that I am unaware of or that a similar capability hasn't already been added to R-3.X since 2006. The primary idea is simple and time worn ... Given a large unsorted vector of data whose elements have been assigned to n groups and whose group membership is represented by a second vector of equal length whoses values are members of {1,...,n}, you can easily calculate multiple group statistics for all n groups in just one pass through the unsorted data vector by...
2002 Aug 01
0
[: Re: [fwd] CVS: ogg123 rocks! vcut no so much so... (from: wayfarer42@postmaster.co.uk)]
...enames with '\0' instead of '\n' or ' '. The tr command makes newlines into '\0' for playlists that delimit by newline. Everything should be standard for any Unix system and should run in any POSIX-compliant shell (if not, yell at me): 1. All oggs under '.', unsorted: find . -name '*.ogg' -print0 | xargs -0 ogg123 2. All oggs under '.', sorted by name: find . -name '*.ogg' -print0 | sort -z | xargs -0 ogg123 3. All oggs under '.', sorted by starting number find . -name '*.ogg' -print0 | sort -z -n | xargs -0 ogg1...
2019 Sep 12
2
Gnu sieve vs Dovecot sieve-filter - sieve-filter extremely slow at lda (writing emails to local mbox files)
I am wondering why sieve-filter is so slow compared to gnu sieve. I run mpop (like getmail) to download from a pop3 server to a local mbox file: ~/mail/email-incoming-unsorted This step is very fast. The next step, I throw the email-incoming-unsorted mbox file at a sieve processor, to sort the emails from that mbox, into other mboxes, according to the sieve rules file. Up until a couple days ago I was using Gnu sieve. Gnu sieve balks on emails which have no x-message...
2007 Oct 30
5
rsync and translating restricted NTFS filename characters
I am backing up files from Linux to a NTFS using rsync. I have the NTFS mounted on Linux via CIFS. I am discovering errors while attempting to backup files with restricted NTFS characters, like : [colon]. For example, I am unable to backup my crucial maildirs, as a colon is encoded in each Linux file path. Is there a solution to rsync Linux file paths with restricted NTFS characters, to NTFS?
2009 Dec 10
2
What is the function to test if a vector is ordered or not?
I did a search on www.rseek.org to look for the function to test if a vector is ordered or not. But I don't find it. Could somebody let me know what function I should use?