Displaying 20 results from an estimated 11000 matches similar to: "sorting matrices"
2003 May 07
4
element of
Dear all,
is there any funktion in R which i can use to check if a single value is element of a matrix or data.frame so that it returns me logical values like TRUE/FALSE.
Thanks in advance for your help!
2002 Jun 24
1
barplot
Hi,
a couple of simple graphics questions:
1. I have a little function that makes bar plots. Now I would like to
limit the Y-axis outside this
function (that means after calling the barplot() command) depending on
the data to be plotted .
Does anyone know how to do this ???
2. When using barplot() and limiting the yAxis, R draws the bars below
the x-axis. How can I avoid this problem ??
2002 May 14
2
least summed square distance + fit
hi,
I have a matrix (representing original data) that looks e.g. like this
(consider it beeing x,y,z coords):
441 447 0
265 407 0
374 223 0
288 574 0
669 309 0
591 195 0
595 475 0
424 351 0
I get a second matrix (subject data) that is similiar to the above
matrix but it is scaled, translated and rotated (and of course a little
inprecise).
Also I have an
2005 Feb 21
3
Sorting a matrix on two columns
Hello,
If a matrix with 5 columns has been defined and the first two columns
need to be sorted in ascending order, how can this be achieved whilst
ensuring the
other 3 columns data are in relative position to the sorted columns?
Glen Jones
[[alternative HTML version deleted]]
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
2002 Oct 29
5
unix environment variables under R
hi,
i am working on a little R-project with a couple od other guys.we use
CVS, but everyone keeps the R-source files in different locations in his
home-directory. of course this causes trouble when sourcing R-files. i
thought a UNIX environment variable could be the solution, but R doesn't
seem to know about the environment variables.
e.g. >> source("$PROJECT/xxx.R")
2005 Apr 07
5
apply
Hi,
simple question I guess:
the following line works well:
aveBehav=c(apply(sdata, 2, mean))
However, I would like to pass an argument to the function mean, namely
na.rm=TRUE
Does anyone knows how to do this?
Thanks in advance,
Jan
2000 Oct 13
5
Random factor ANOVA, Repeated measures ANOVA, Within subjects designs.
Hi,
we are just about to evaluate R as a standard statistics package for
our institute. We looked around the help - manual, the FAQ, etc. and
did not find anything for the topics of random factors in ANOVA,
repeated measures in ANOVA, or within subjects designs in R.
Could anyone point us to any information concerning
- univariate approach to repeated measures anova
- multivariate
2003 Nov 10
5
Finding the name ob an object
Hi, all!
I want to give an object to a function and use the NAME of this object
inside the function to build new objects based on this name.
How do I get the name of an object if I don't pass a string containing
the name but the object itself?
Christoph.
--
Christoph Lange
MPI fuer biologische Kybernetik |Phone: +49-7071-601-607|
Postfach 2169, D-72012 Tuebingen |FAX: +49-7071-601-616|
2003 Aug 12
3
Sorting a dataframe
Undoubtedly a simple question:
I've looked at order() and sort() in the help pages for
R1.7.1. It doesn't appear that these functions are immediately
suited to doing the same thing as
PROC SORT DATA = BLAH;
BY X Y Z;
RUN;
in SAS. I have also checked Frank Harrell's Hmisc library.
Could someone point me in the right direction so I can sort
by the levels of Z within the levels of
2012 Feb 16
5
[Patches][nouveau/kms]: Precise Vblank and pageflip timestamping v2
Just updated versions of the patches send by Mario Kleiner. This ones are
rebased on top of the nouveau tree and updated according to the review
feedback.
Regards,
Lucas
2012 Jan 03
7
[Bug 35452] Pageflipping + nouveau + compiz + fullscreen == FAIL
https://bugs.freedesktop.org/show_bug.cgi?id=35452
Jeremy Huddleston <jeremyhu at freedesktop.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|xorg-team at lists.x.org |nouveau at lists.freedesktop.o
| |rg
2009 Jul 24
1
downsampling
Hi,
I am looking for ways to donwsample one-dimensional vectors.
For example,
x=sample(1:5, 115, replace=TRUE)
How do I downsample this vector to 100 entries? Are there any R functions or packages that provide such functionality.
I did find the zoo package and the aggregate() function, but these appear to be rather specific for time-series.
Thanks in advance,
Jan
2005 Nov 28
7
combine two columns
Hi,
I have an R programming problem and I havent found anything in the
documentation yet:
I have a data matrix, in which two neighbouring columns represent
replicates of the same experiment, e.g. something like this:
A A B B C C
row1 1 1 1 2 2 2
row2 1 1 1 1 1 2
I would like to test, if the values for the two replicates in a row
are the same or if they differ and generate a new
2002 Sep 13
2
Sorting problem
Dear list
I have a quick question which is probably very simple.
I have a data frame, and want to sort the data by putting one column in to
ascending order
i.e becomes
A B A B
1 0.5 3 0.4
2 0.9 1 0.5
3 0.4 4 0.7
4 0.7 2 0.9
I can't seem to find anything in the help about sorting data
2002 Sep 06
1
acutally a statistics question
hi,
knowing there are a lot of statistics guru's in the R-mailing list, i
throw in a statistics question.
i have data that i do not know how to statistically test:
subjects are repeatedly asked to make a decision (e.g. left-right ->
coded as 0 or 1). i have 20 subjects, each subject made 8 decisions.
i now want to analyse whether my experimental manipulation induced a
systematic bias
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
2002 Oct 15
2
V-value in the wilcox.test resp. wilcox.exact
hi,
when performing a wilcox.test or a wilcox.exact i get results that looks
like this:
wilcox.exact(x, mu=.5)
Exact Wilcoxon signed rank test
data: x
V = 207, p-value = 0.0006905
alternative hypothesis: true mu is not equal to 0.5
the way i understand the wilcox.test (or wilcox.exact) the V-value
represents the summed up ranks of either the positive or negative
differences,
2012 May 30
2
Sorting a data set
I am a novice user of R and am stumbling on how to order a dataset
produced during my session.
I have a 1863 row X 14 column dataset that I want to put out to a file.
I want the output sorted by the first column and then by the second
column both in ascending order. The first column is character and the
second is numeric (I hope). I used an "as.numeric" function to assign
that
2005 May 12
2
mget empty strings
Dear R community,
I am a beginner to R and have a question concerning mget, about I could
not find anything in the various documentation.
I have a column in a dataframe x for which I want to get values in y:
mget(x[,1], env=y, ifnotfound=NA)
I receive an error mesage:
Error in mget(x[, 1], env = y, ifnotfound = NA) :
attempt to use zero-length variable name
this is probably due to