Displaying 20 results from an estimated 6000 matches similar to: "Allowing users to reorder displayed data from a table"
2004 Dec 23
1
searching Jonathan Baron's R Site
First, my site will be down December 27-28 because of a network
upgrade at Penn. It will also be down at least one day before
that, while I upgrade the operating system. (And another day
some time in January because of a planned power outage.)
Second, I have replaced the search engine in my R site:
http://finzi.psych.upenn.edu/
I am now using Namazu instead of HtDig. The direct link to the
2009 May 27
3
Sort matrix by column 1 ascending then by column 2 decending
I've got a matrix with 2 columns and n rows. I need to sort it first
by the values in column 1 ascending. Then for values which are the
same in column 1, sort by column 2 decending. For example:
2 .5
1 .3
1 .5
3 .2
Goes to:
1 .5
1 .3
2 .5
3 .2
This is easy to do in spreadsheet programs but I can't seem to work
out how to do it in R and haven't been able to find a solution
anywhere.
2005 Jan 14
1
how to produce 2-d color plots in R
Hello 'R' Users,
I am very new on 'R', so excuse me if I ask something wrong.
I have ASCII data and the colums of the data are looks like :-
!-------------------------
time,yr,mo,dy,hr,min,sec,lat,lon,ht,co2obs,sigma,co2model
--
-
--
!----------------------------
Each column has data value. Now I want to produce 2-d color maps,
for example the plot should look like :-
on
2004 Sep 24
0
Function sort.data.frame
I can never remember how to use "order" to sort the rows of a data frame,
so like any good, lazy programmer, I decided to write my own function.
The idea is to specify a data.frame and a one-sided formula with +/-
indicating ascending/descending. For example:
sort.data.frame(~ +nitro -Variety, Oats)
Since sorting of a data.frame is an oft-asked question on this list, I am
posting
2010 Jun 10
2
adding column of ordered numbers to matrix
Hello everyone,
I have a matrix of over 40000 line and about 30 columns.
For my analysis I would like to add another column with ascending numbers
(column header should be "order", and than 1,2,3,4 ....the end of the
matrix).
During my analysis I reorder them ( due to merge commands by a different
column).
How do I add such a column in an ascending order (or descending for what it
2008 Nov 05
3
Sort help
Geneset_name #Chromosome #Hit_in_Biomart
original_geneset_len Missing.genes
[1,] "AGUIRRE_PANCREAS_CHR12" "1" "51"
"59" "8"
[3,] "AGUIRRE_PANCREAS_CHR9" "1" "24"
"24"
2011 May 01
2
bwplot in ascending order
Can anyone point me to examples with R code where bwplot in lattice is used to order the boxes in ascending order? I have found the following discussion and it partly works. But, I have a conditioning variable, so my example is more like
bwplot(var1 ~ var2|condition, dat)
Th example in the discussion below works only when there is not a conditioning variable as far as I can tell. I can tweak the
2011 May 12
2
Simple order() data frame question.
Clearly, I don't understand what order() is doing and as ususl the help for order seems to only confuse me more. For some reason I just don't follow the examples there. I must be missing something about the data frame sort there but what?
I originally wanted to reverse-order my data frame df1 (see below) by aa (a factor) but since this was not working I decided to simplify and order by
2011 Feb 09
3
[LLVMdev] Lowering "memcpy" intrinsic function on ARM using LDMIA/STMIA
Hi,
llvm emits code for "memcpy" on ARM as consecutive ldr/str commands, and
further combines them into ldm/stm with special pass after register
allocation. But ldm/stm commands require registers to go in ascending
order, what is often not so after regalloc, therefore some str/ldr
commands. For example such code:
struct Foo {int a, b, c, d; }
void CopyStruct(struct Foo *a, struct
2001 Apr 30
1
Error in vorbis-tools.spec
Hello,
there is a small typo in the vorbis-tools.spec file which prevents the
successfull build of rpms:
# rpm -ta vorbis-tools-1.0beta4.tar.gz
%changelog not in decending chronological order
The necessary change is:
%changelog
-* Mon Jan 22 2000 Jack Moffitt <jack@icecast.org>
+* Mon Jan 22 2001 Jack Moffitt <jack@icecast.org>
- updated for prebeta4 builds
* Sun Oct 29 2000
2009 Jun 01
1
installing sn package
Hi r-users,
I want to use the sn package but I got the following message:
> install.packages(repos=NULL,pkgs="c:\\Tinn-R\\sn_0.4-12.zip")
Warning: package 'sn' is in use and will not be installed
updating HTML package descriptions
I did tried to do it a few times but it gives the same message.
________________________________
From:
2003 Jan 14
4
density plot - beginner's question
Hi,
I am trying to plot densities given on a two dimensional grid. My
data is in the an external file, and is arranged in three columns:
x, y, density
how may i get a plot of this? i would like to get (1) a three
dimensional plot and (2) a color coded two dimensional plot.
I have tried using
image(x, y, density)
but i am asked to put the data in ascending order. i am not sure
how i may
2006 Mar 31
1
SortHelper Question
I''m trying to install the SortHelper module, and for some reason I''m getting a NoMethodError when I try to view the list. I''m a relative newbie to rails, but the controller and the helper seem to be pointing to the right places. I named the controller sort_controller.rb and the helper is sort_helper.rb, and list is list.rhtml
Thanks for any help!
2011 Feb 09
3
[LLVMdev] Lowering "memcpy" intrinsic function on ARM using LDMIA/STMIA
09.02.2011 18:57, Jason Kim пишет:
> On Wed, Feb 9, 2011 at 5:02 AM, Vasiliy Korchagin
> <vasiliy.korchagin at gmail.com> wrote:
>> Hi,
>>
>> llvm emits code for "memcpy" on ARM as consecutive ldr/str commands, and
>
> Hmm, this happens elsewhere as well (x86?). Perhaps what we need is a
> switch to disable memset/memcpy lowering?
>
Do you
2011 Feb 09
0
[LLVMdev] Lowering "memcpy" intrinsic function on ARM using LDMIA/STMIA
-fno-builtin is the flag you want.
deep
On Wed, Feb 9, 2011 at 10:18 PM, Корчагин Василий
<vasiliy.korchagin at gmail.com> wrote:
> 09.02.2011 18:57, Jason Kim пишет:
>> On Wed, Feb 9, 2011 at 5:02 AM, Vasiliy Korchagin
>> <vasiliy.korchagin at gmail.com> wrote:
>>> Hi,
>>>
>>> llvm emits code for "memcpy" on ARM as consecutive
2011 Feb 09
0
[LLVMdev] Lowering "memcpy" intrinsic function on ARM using LDMIA/STMIA
On Wed, Feb 9, 2011 at 5:02 AM, Vasiliy Korchagin
<vasiliy.korchagin at gmail.com> wrote:
> Hi,
>
> llvm emits code for "memcpy" on ARM as consecutive ldr/str commands, and
Hmm, this happens elsewhere as well (x86?). Perhaps what we need is a
switch to disable memset/memcpy lowering?
> further combines them into ldm/stm with special pass after register
>
2010 Dec 30
1
Sorting data.frame datewise in a descending order
Dear 'HTH' R friends
I have a small dataframe as given below. I need to sort this database based on date in a decending order. I am not sure whether I have defined the date column in a proper format.
mydat<-data.frame(date = (c("1/31/2010", "2/28/2010", "3/31/2010", "4/30/2010", "5/31/2010", "6/30/2010",
2009 Jan 23
2
Plot, lines and disordered x and y
Hello,
I have 2d data where x coordinate is not given in usual ascending
order (x1,...,x1+l; l>0), and instead in another, regular, but not
ascending or descending order (for illustration:
x1,-x1,x1+dx1,-x1-dx1,....).y is an array which corresponds to the way
x is ordered. I have noticed that giving 'plot(x,y,type='l') produces
a plot where the points are connected in a completely
2002 Mar 29
2
order()
Hi,
In the order() help file, there is an example like:
a <- c(4, 3, 2, NA, 1)
b <- c(4, NA, 2, 7, 1)
z <- cbind(a, b)
(o <- order(a, b)); z[o, ]
How can I do something like "order a in ascending order, b in descending
order"? And say I have a third vector c, and I'd like to add this to the
previous condition "a ascending, b descending, c
2007 Nov 18
1
how to sort a data.frame by ascending some columns
Dear list,
I have a data frame (238304 rows and 6 columns). I want the data frame
sorted by two columns in ascending order. I am showing
the first 5 rows of the data frame
> clones.info[1:5,1:6]
USER_CLONE_ID CHROMOSOME Expr1002 KB_POSITION Allele_A WELL_ID
1 SNP_A-1855402 17 41419603 41419603 C rs17572851
2 SNP_A-4249904 17 41420045 41420045 A rs17572893
3 SNP_A-2174835 18 41407760