Displaying 20 results from an estimated 3000 matches similar to: "Sort matrix by column 1 ascending then by column 2 decending"
2014 Mar 21
1
"ERROR: installing package indices failed" message when building my package?
Hey all,
I'm currently trying to build an R package and don't really know what
to make of the error message I'm getting. I couldn't find anything
helpful online so hopefully somebody here can give me a couple of
pointers. I see the following when I try to build:
s$ R CMD build --verbose r_package_files/
Warning: unknown option '--verbose'
* checking for file
2009 Jul 09
1
Rpy not working after upgrade to R2.9.1
Hi,
I'm running Ubuntu Jaunty, downloading R and Rpy from this repository:
deb http://cran.uk.r-project.org/bin/linux/ubuntu jaunty/
When was automatically upgraded, Rpy (which should be downloaded from
the same repository) seems to have stopped working. I've tried
re-installing the python-rpy package manually. I get the following
error when I try to import rpy:
>>> import
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
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
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:
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
2011 Jan 11
1
sorting question
Hi,
I have a data frame with variables a, b, c (character vars) and t (time var,
could be represented as POSIXct or character, depending on which is most useful.
The format is "yyyy-mm-dd hh:mm:ss CET"). Now, I want to sort the data frame in
ascending order by a, b, c and then in descending order by t.
Here's what I've got, but I'm not sure how to put the
2006 Aug 09
1
Allowing users to reorder displayed data from a table
I have a list of names and prices from a database to display on a
webpage. I would like to allow the user to be able to display those
items either alphabetically or by price (decending or ascending.) I
would also like the user to be able to list items with a certain price
range of their choosing also. How can I do this in Rails?
Thanks!
--
Posted via http://www.ruby-forum.com/.
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
2007 Mar 09
4
[PATCH] dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn''t specified and may be random in theory.
But sorted array is requested by crash utility for efficient looking up.
Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.
--
yamahata
2010 May 27
1
Installation on 64bit redhat linux question
Hi all,
I'm trying to compile R 2.11.0 on a redhat machine, but I'm getting
the following error when I run ./configure:
checking whether gfortran appends underscores to external names... yes
checking whether gfortran appends extra underscores to external names... no
checking whether mixed C/Fortran code can be run... configure:
WARNING: cannot run mixed C/Fortran code
configure: error:
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"
2001 Jan 12
1
sorting ascending descending! & THX@coling
THX.
You are right!!
a[order(-1*a)]
[1] 110 23 4 3 2
Eryk
coling wrote:
> Hi,
>
> I know very little of R, but one suggestion could be to multiply your list
> by "-1", then order, then multiply by "-1" again.
>
> Not very nice I realize. But it's "better than a poke in the eye with a
> sharp stick" as a wise man once
2009 May 30
2
degraded performance with rank()
Hi.
I'm maintaining a package that creates an object that is essentially a
classed version of numeric. I updated recently from 2.7.1 to 2.9.0,
and merges involving my class suddenly took a huge performance hit.
I've traced the problem to something near rank(). From NEWS, it seems
rank() etc. changed in 2.8.0. Methods for xtfrm() are supposed to
help, but I've had no success. There
2008 Sep 09
1
'xtfrm' performance (influences 'order' performance) in R devel
Hello everybody,
it looks like the presense of some (do know know which) S4 methods for a
given S4 class degrades the performance of xtfrm (used in 'order' in new
R-devel) by a factor of millions. This is for classes that ARE derived
from numeric directly and thus should be quite trivial to convert to
numeric.
Consider the following example:
setClass("TimeDateBase",
2024 Apr 27
1
max on numeric_version with long components
? Sat, 27 Apr 2024 13:56:58 -0500
Jonathan Keane <jkeane at gmail.com> ?????:
> In devel:
> > max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000",
> "1.0.2.100000000")))
> [1] ?1.0.1.100000000?
> > max(numeric_version(c("1.0.1.10000000", "1.0.3.10000000",
> "1.0.2.10000000")))
> [1]
2017 Oct 15
2
Function 'factor' issues
In R devel, function 'factor' has been changed, allowing and merging duplicated 'labels'.
Issue 1: Handling of specified 'labels' without duplicates is slower than before.
Example:
x <- rep(1:26, 40000)
system.time(factor(x, levels=1:26, labels=letters))
Function 'factor' is already rather slow because of conversion to character. Please don't add slowdown.
2014 Sep 08
2
Problem with order() and I()
I have found that order() fails in a rather arcane circumstance, as in
this example:
> foo <- I( c('x','\265g') )
> order(foo)
Error in if (xi > xj) 1L else -1L : missing value where TRUE/FALSE needed
> foo <-c('x','\265g')
> order(foo)
[1] 1 2
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)
2010 May 23
2
tricky perl question - ascending order
or maybe in bash..
script/"one liner" e.g.: input: http://pastebin.com/raw.php?i=pMZPEsMZ
i want to make this output from it:
http://pastebin.com/raw.php?i=kH8VxT0A
So from the input, i want to make an ascendant order, how many things
are under a "SOMETHING-XX"
Does anyone has any "perl magic" in the pocket, how to do this? :D
Thank you very, very much..:\
2009 Nov 27
1
Long execution time for quantile() and difftime objects (PR#14091)
Full_Name: Hong Ooi
Version: 2.10.0
OS: Windows XP
Submission from: (NULL) (203.110.235.1)
While trying to get summary statistics on a duration variable (the difference
between a start and end date), I ran into the following issue. Using summary or
quantile (which summary calls) on a difftime object takes an extremely long time
if the object is even moderately large.
A reproducible example: