Displaying 20 results from an estimated 2516 matches for "reordering".
2004 Aug 27
3
reorder [stats] and reorder.factor [lattice]
It was recently pointed out on the lists that the S-PLUS Trellis suite has
a function called reorder.factor that's useful in getting useful ordering
of factors for graphs. I happily went ahead and implemented it, but it
turns out that R (not S-PLUS) has a generic called reorder (with a method
for "dendrogram"). Naturally, this causes R to think I'm defining a
method for
2007 Oct 12
2
missing attribute: reorder
I am trying to use an integer object as a flag item for displaying a
link on a page called reorder that is a column in my PlanProcedures
table.
I''m getting an error that says
The Header is NoMethodError in Manage_plan_procedures#list
missing attribute: reorder
Here is what my model looks like:
>> PlanProcedure.column_names
=> ["id", "plan_id",
2012 Jul 22
5
Reorder in decreasing order
reorder() is probably the best way to order the levels in a vector
without manually specifying the order. But reorder() orders by default
in an increasing order: "The levels are ordered such that the values
returned by ?FUN? are in increasing order."
Is there a way to do what reorder() does, but order the levels
according to a _decreasing_ order of the values?
Sverre
2011 Apr 18
1
Reorder a data frame according a column randomly reordered.
Hello all ,
I have a data frame like this
X1X2X3
11815
22916
331017
441118
551219
661320
771421
now i want to randomly reorder the variable X2 but the row element should be same
as for example
X1X2X3
12916
251219
331017
471421
561320
61815
741118
how can i do that ??
Hint :
this could be helpful :
if X2 is only a vector like this
X2<-c(8,9,10,11,12,13,14)
so i can easily reorder
2006 Feb 11
2
heatmap.2 in gplots (PR#8587)
...t information.
The preliminary documentation for heatmap.2 is inconsistent in at least a couple
of places when discussing the suppression of one or more dendrograms (and
column/row ordering in general).
In the Details section, in regards to the Rowv and Colv parameters, "If either
is NULL, no reordering will be done for the corresponding side." The default
value for these parameters is NULL. With NULL, the dendrograms are computed
(and hence reordering is done).
In the Arguments section, Rowv shows "determines if and how the row dendrogram
should be reordered. Either a dendrogram or a...
2010 Oct 05
3
reorder always returns "ordered"
Or at least is seems that way to me. It's not a big problem, but the
behavior doesn't match the documentation. (I think r-help is the
place to report this. )
> x <- factor(1:5)
> x.ro <- reorder(x, rnorm(5))
> is.ordered(x.ro) # should be FALSE according to ?reorder
[1] TRUE
>
> x.ro <- reorder(x, rnorm(5), ordered=FALSE)
> is.ordered(x.ro) # should be FALSE
2014 Jun 19
6
[LLVMdev] [RFC] Add compiler scheduling barriers
...trinsics, i.e.__dsb and __isb that require
the compiler not to reorder instructions around their corresponding
built-in intrinsics(__builtin_arm_dsb, __builtin_arm_isb), including
non-memory-access instructions.[1] This is currently not possible.
It is sometimes useful to prevent the compiler from reordering
memory-access instructions as well. The only way to do that in both
GCC and LLVM is using a in-line assembly hack:
asm volatile("" ::: "memory")
I propose adding two compiler scheduling barriers intrinsics to LLVM:
__schedule_barrier_memory and __schedule_barrier_full. The fo...
2009 Oct 13
1
Lattice barchart-reordered
Hi,Can I use "reorder" function with barchart as in dotchart? Here are some
codes which do not work for me. Thanks
Chetty
___________________________
a1c.cast$bmi.cat.reordered[a1c.cast$eth!="Other"]
<-with(a1c.cast[a1c.cast$eth!="Other",],reorder(bmi.cat.ordered[a1c.cast$eth!="Other"],
BP.FN.RATE,median ))
barchart(BP.FN.RATE~
2012 Nov 03
2
reorder() in the latticeExtra library
Hello all, thanks for your time and help. Below are my commands, and it
generates a really nice plot, however I am not happy with the reorder()
function. I would like the order to be the same as they appear in the
genotype variable "genotype <- c("CJ1450 NW 4/25/12","CJ1450 BAL
4/25/12","CJ1450 NW 4/27/12","CJ1450 BAL 4/27/12","CJ1721 NW
2010 Mar 23
2
using reorder in dotplot
Hi,
Please help to correct my error in the following. I want to plot the values
of 'x" in increasing order.
-----------------------------------
library(lattice)
Name<-c("A","B","C")
x<-c(15,20,10)
test<-data.frame(Name,x)
dotplot(Name~x,test)
dotplot(reorder(Name,x)~x,test)
"reorder" has no effect!
Thanks.
Chetty
------------------------
2014 Jun 27
3
[LLVMdev] [RFC] Add compiler scheduling barriers
...gt;> the compiler not to reorder instructions around their corresponding
>> built-in intrinsics(__builtin_arm_dsb, __builtin_arm_isb), including
>> non-memory-access instructions.[1] This is currently not possible.
>>
>> It is sometimes useful to prevent the compiler from reordering
>> memory-access instructions as well. The only way to do that in both
>> GCC and LLVM is using a in-line assembly hack:
>> asm volatile("" ::: "memory")
>>
>> I propose adding two compiler scheduling barriers intrinsics to LLVM:
>> __sched...
2012 Jul 20
1
conditional subset and reorder dataframe rows
Hi List
I have a dataframe (~1,200,000 rows deep) and I'd like to conditionally reorder groups of rows in this dataframe.
I would like to reorder any rows where the Chr.Strand column contains a '-' but reorder within subsets delineated by the Probe.Set.Name column.
# toy example ####
library(plyr)
negStrandGene <- data.frame(Probe.Set.Name =
2018 Oct 02
2
Reordering of load/stores using MemorySSA
...load q // This is incorrect if p and q may alias
In the MemorySSA representation however,
there's no syntactic dependency between load/store,
because MemorySSA before transformation would look like this:
USE(M0) // corresponding to `v = load q`
M1 = DEF(M0) // corresponding to `store 10, p`
Reordering these two nodes does not break syntactic dependency,
hence additional flow-sensitive analysis is needed to check whether
reordering is valid.
To my understanding, GVNHoist seems to do that:
Memory operations in basic blocks are checked by
GVNHoist::hasMemoryUse().
If USE nodes of MemorySSA also h...
2011 Aug 25
1
Sorting order of reorder with multiple variables
I've been building a ranked dot plot for several days now and am sorting the
data using the reorder command. What I don't understand is how reorder
works when mutiple varibles are plotted by grouping. In the example below
I'm using re-order to sort by a variable name Resv_Prop, but I'm plotting up
to three different values of Resv_prop (different Year values) for each
factor.
2020 Mar 23
3
[InstCombine] Addrspacecast and GEP assumed commutative
I'm not sure what the usual "ping time" is for llvm-dev, but may I ask if there are any updates on this?
It appears that the following lines are the root cause of the reordering (https://github.com/llvm/llvm-project/blob/fdcb27105537f77c78c4473d4f7c47146ddbab69/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp#L2175):
// Handle gep(bitcast x) and gep(gep x, 0, 0, 0).
Value *StrippedPtr = PtrOp->stripPointerCasts();
PointerType *StrippedPtrTy = cast<PointerTyp...
2015 May 27
2
[LLVMdev] FW: Capabilities of Clang's PGO (e.g. improving code density)
...t;randyc at microsoft.com<mailto:randyc at microsoft.com>> wrote:
Hi David!
Thanks again for your help! I was wondering if you could clarify one thing for me?
I find mention of “hot arc” optimization (-fprofile-arcs) , but I’m unclear if this is the same thing. Does Clang PGO do block reordering?
It does reordering, but does not do splitting/partitioning.
I take this to mean that PGO does block reordering within the function? I don’t see that the clang drive passes anything to the linker to drive function ordering at the linker level as well. Is there something there that I missed, or ar...
2009 Apr 07
2
heatmap.2 no reordering of the columns and rows
...;, bias=1.5)
heatmap.2(matrix, Colv=1:ncol(matrix), dendogram="row", hclustfun=function(m) hclust(m,method="complete"),col=cp(25),scale="none",trace="none",keysize=1,margins=c(5,12), cexCol=1, cexRow=1)
q()
dev.off()
The alternative that i tried to avoid the reordering was
heatmap.2(matrix, Rowv=NULL, Colv=NULL, col=cp(25), scale="none", trace="none", keysize=1, margins=c(5,12), cexCol=1, cexRow=1)
But the above command doesnt generate the heatmap. So could anyone let me know what are the options to avoid reordering the rows and columns of...
2011 Nov 08
3
ggplot2 reorder factors for faceting
...ap using ggplot2. In this heatmap I have faceted my data by 'infection' of which I have four. These four infections break down into two types and I would like to reorder the 'infection' column of my data to reflect this.
Toy example below:
library(ggplot2)
# test data for ggplot reordering
genes <- (rep (c(rep('a',4), rep('b',4), rep('c',4), rep('d',4), rep('e',4), rep('f',4)) ,4))
fcData <- rnorm(96)
times <- rep(rep(c(2,6,24,48),6),4)
infection <- c(rep('InfA', 24), rep('InfB', 24), rep('InfC', 24),...
2010 May 15
1
Barchart reorder
Hi fellow R users,
I have a dataset that looks something like this.
species class abundance
K 1 592
K 2 288
G 1 254
G 2 239
C 2 173
D 2 123
E 3 89
F 2 87
B 2 86
H 2 82
I 1 79
J 2 76
B 1 73
D 3 72
A 2 62
L 2 58
I want to plot a stacked barchart. species is the x-axis, abundance is
y-axis, and class will appear as the stacks in different colours. I
need the species to be displayed in descending
2018 Apr 09
2
Clang option for reordering sections in .text
Hi ,
I would like to know if there is any way to reorder functions in the object
file in order to improve code locality by implementing subsections
.text.hot.
GCC controls this behavior with '-f(no)-reorder-functions' flag, is there
any way to do so in clang?
Regards,
Priyanka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: