search for: mysort

Displaying 7 results from an estimated 7 matches for "mysort".

Did you mean: myport
2008 Dec 22
1
sorting variable names containing digits
...ot;) > sort(s) [1] "var10a2" "var2" "x02" "x02a" "x02b" "x1a" [7] "x1b" "y10" "y10a1" "y10a10" "y10a2" "y1a1" [13] "y2" > mysort(s) [1] "var2" "var10a2" "x1a" "x1b" "x02" "x02a" [7] "x02b" "y1a1" "y2" "y10" "y10a1" "y10a2" [13] "y10a10" > t <- c(&q...
2009 May 29
3
IP-Address
...29746 yellow no 162.132.58.15 139 29746 green no 162.252.20.69 140 29746 red yes 162.254.20.71 141 29746 yellow no 163.253.7.153 142 31804 green yes 163.253.20.114 144 32360 black yes 161.138.45.226 .... Unfortunately, order doesn't work as I want. I found an half solusion from John: mysort <- function(x){ sort.helper <- function(x){ prefix <- strsplit(x, "[0-9]") prefix <- sapply(prefix, "[", 1) prefix[is.na(prefix)] <- "" suffix <- strsplit(x, "[^0-9]") suffix <- as.numeric(sapply(suffix, "[&quot...
1999 Dec 23
1
rpart on Alpha under OSF
...om CRAN and attempted a compilation. Everything works fine until the linking step, when I get: f77 -shared -o /users/etptupaf/R/library/rpart/libs/rpart.so anova.o anovapred.o branch.o bsplit.o choose_surg.o fix_cp.o free_tree.o gini.o graycode.o insert_split.o make_cp_list.o make_cp_table.o mysort.o nodesplit.o partition.o poisson.o poissonpred.o pred_rpart.o rpart.o rpcountup.o rplabel.o rpmatrix.o rundown.o rundown2.o s_to_rp.o s_xpred.o surrogate.o xval.o -lUfor -lfor -lFutil -lm -lots -lm ld: Warning: Unresolved: S_alloc What is S_alloc? Do I have to install the full source for R in o...
2006 Dec 28
1
Sortable.create format
Hi I have a simple question. Default format in sortable.create is: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/ and sortable.serialize returns "key[]=value&key[]=value&key[]=value... " What format should I use in sortable.create, if i want to have something like that (after serialize): "value,value,value" Thanks, Sever --~--~---------~--~----~------------~-------~--~----~
2005 Oct 27
0
restricting movement in sortable list
Hello, I''d like to know if this is possible. Say you have a sortable list like so: <ul id="mysort"> <li>one</li> <li>two</li> <li>three -- A</li> <li>four</li> <li>five -- B</li> </ul> Is there any way to restrict the movement of "three -- A" and "five -- B" such that they never cross?...
2006 Aug 11
14
Sortable callback, when dragging starts/stops
Hi *, is there a callback or something else to get noticed, if the user starts (stops) to drag an element of a sortable? I only found the onUpdate and onChange callbacks, but they don''t give the information I need. Thanks in advance, Tim
2008 Dec 29
0
Serial Correlation Test for Short Time Series
...eck at gmail.com> Subject: Re: [R] sorting variable names containing digits To: "John Fox" <jfox at mcmaster.ca> Cc: r-help at r-project.org Message-ID: <971536df0812220440w2090b69dq2f4683267419ab2e at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Note that mysort2 is slightly more general as it handles the case that the strings begin with numerics: > u <- c("51a2", "2a4") > mysort(u) [1] "51a2" "2a4" > mysort2(u) [1] "2a4" "51a2" On Mon, Dec 22, 2008 at 12:32 AM, John Fox <jfox at...