Displaying 20 results from an estimated 7000 matches similar to: "add zero in front of numbers"
2011 Apr 04
3
Adjusting p values of a matrix
Dear all,
I have an n x n matrix of p-values. The matrix is symmetrical, as it
describes the "each against each" p values of correlation
coefficients.
How can I best correct the p values of the matrix? Notably, the total
number of the tests performed is n(n-1)/2, since I do not test the
correlation of each variable with itself. That means, I only want to
correct one half of the matrix,
2017 Apr 24
2
Crash after (wrongly) applying product operator on object from LIMMA package
Hi Hilmar,
weird. The memory problem seems be due to recursion (my R, version 3.3.3,
says: Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?, just write traceback() to see how it happens), but
why does it segfault with xlsx? Nb xlsx is the culprit: neither rJava nor
xlsxjars cause the problem.
On the other hand, quick googling for r+xlsx+segfault returns tons of
2011 Feb 01
3
R string help
Dear R guru:
If I got a variable
aaa<- "up.6.11(16)"
how can I extract 16 out of the bracket?
I could use substr, e.g.
substr(aaa, start=1, stop=2)
[1] "up"
But it needs start and stop, what if my start or stop is not fixed, I
just want the number inside the bracket, how can I achieve this?
Many thanks
yan
2011 Apr 06
3
function order
Dear All
I'm trying to sort a matrix using function order,
Some thing really odd:
e.g.
abc<-cbind(c(1,6,2),c(2,5,3),c(3,2,1))## matrix I want to sort
if I do
abc[ order(abc[,3]), increasing = TRUE]
the result is correct
[,1] [,2] [,3]
[1,] 2 3 1
[2,] 6 5 2
[3,] 1 2 3
But if I want to sort in decresing order:
abc[ order(abc[,3]), decreasing = TRUE]
the
2011 Feb 24
2
debugging
Dear R user
How to make the program stop at the spot where the error occurs? I mean
inside the iterations,.
Many thanks
yan
**********************************************************************
This email and any files transmitted with it are confide...{{dropped:10}}
2011 May 17
2
submit R package
Dear all,
I'm just wondering how to submit a package to cran?
I followed the instruction, using anonymous as username and my email address as password, but it didn't connect.
Any hints?
Yan
[[alternative HTML version deleted]]
2017 May 09
3
A few suggestions and perspectives from a PhD student
Hi,
On 08/05/17 16:37, Ista Zahn wrote:
> One of the key strengths of R is that packages are not akin to "fan
> created mods". They are a central and necessary part of the R system.
>
I would tend to disagree here. R packages are in their majority not
maintained by the core R developers. Concepts, features and lifetime
depend mainly on the maintainers of the package (even
2012 Jan 24
5
function for grouping
Dear All,
I'm wondering if there is a R function could give me all the
combinations of the grouping/cluster result, given the number of the groups.
e.g.
3 objects: x1 x2 x3, number of groups is 2
so the result will be
group1:x1,x2; group2: x3
group1: x1;group2: x2,x3
group1: x1,x3;group2: x2
many thanks
yan
2017 Apr 18
3
Crash after (wrongly) applying product operator on object from LIMMA package
Hi,
this is a problem that occurs in the presence of two libraries (limma,
xlsx) and leads to a crash of R. The problematic code is the wrong
application of sweep or the product ("*") function on an LIMMA MAList
object. To my knowledge, limma does not define a "*" method for MAList
objects.
If only LIMMA is loaded but not package xlsx, the code does not crash
but rather
2011 Feb 21
1
output selectively change the font
Dear brainy R users,
I need to output a matrix, with two colors , meaning some elements using
different color
I normally use write.table(table.m, file="table file name.csv",
sep=","), how could I pass the index for the color ?
Many thanks
yan
**********************************************************************
This email and any files transmitted with it are
2011 Feb 10
1
extracting characters from string
Dear R gurus,
If I got a vector with string characters like "abcd_efgh_12ab3_dfsfd",
how could I extract "12ab3", which is the characters after second
underscore and before the third underscore?
Tons of thanks
yan
**********************************************************************
This email and any files transmitted with it are confide...{{dropped:10}}
2011 Feb 14
1
Bron-Kerbosch algorithm
Dear R users
I need to solve the finding all cliques in a graph problem, is there a R
package implementing Bron-Kerbosch algorithm?
Many thanks
YAn
**********************************************************************
This email and any files transmitted with it are confide...{{dropped:10}}
2011 Apr 01
2
regression line on boxplots
Dear R users,
I'm trying to add a regression line on my boxplots (something like:boxplot(c(1:3),c(4:6),c(5:8)))
But I can't see it.
Please help !!!
It's not a April fool's joke!!!
Yan
[[alternative HTML version deleted]]
2019 Sep 11
2
'==' operator: inconsistency in data.frame(...) == NULL
Dear Martin,
On 11/09/2019 09:56, Martin Maechler wrote:
>
> > I wonder if data.frame(<some non-empty data>) == NULL should also return
> > a value instead of an error. R help reads:
>
> > "At least one of |x| and |y| must be an atomic vector, but
> > if the other is a list R attempts to coerce it to the
> > type of the atomic
2003 Aug 18
2
3D pie
Hello,
is there a function for 3D pie representation in R ?
Thanks
Klaus-P.
--
Dr. Klaus-Peter Pleissner
Max Planck Institute for Infection Biology
Campus Charit? Mitte
Schumannstr. 21/22
D-10117 Berlin
Germany
phone: +49-30-28460-119
fax: +49-30-28460-507
email: pleissner at mpiib-berlin.mpg.de
2011 Apr 01
3
Syntax coloring in R console
Dear all,
I am a happy user of R console, but I would like to see syntax
coloring. I use R 2.12 in Ubuntu Linux.
I have found the packages "xterm256" and "highlight", but I was not
able to figure out how to use it to highlight the syntax in console
output.
Also, I tried several GUI interfaces, but I was not able to find
something that suits me better than the default R
2012 Feb 23
3
I'm sure I'm missing something with formatC() or sprintf()
I have a four-digit string I want to convert to five digits. Take the
following frame:
zip
2108
60321
60321
22030
91910
I need row 1 to read '02108'. This forum directed me to formatC previously
(thanks!) That usually works but, for some reason, it's not in this
instance. Neither of the syntaxes below change '2108' to '02108.' The values
in cand_receipts[,1] are of
2011 Jan 28
1
axis name editing
Dear All,
I'm generating a heatmap, is there a way to make Y axis name display
horizontally, X axis name display vertically?
I tried using "horiz=TRUE":
axis(1,at=1:dim(cor.meta.m)[1],labels=gsub("module","",pw.names),horiz=T
RUE)
but got warning message and the name is not displayed as I wish:
Warning message:
In axis(1, at = 1:dim(cor.meta.m)[1],
2012 Jan 25
1
function restrictedparts
I am using function restrictedparts, but got error:
restrictedparts(281,10)
Error in integer(len) : vector size specified is too large
Calls: restrictedparts -> integer
In addition: Warning message:
In restrictedparts(281, 10) : NAs introduced by coercion
Error in integer(len) : vector size specified is too large
Calls: restrictedparts -> integer
is there a similar function can deal with
2012 Jul 12
1
using glmnet for the dataset with numerical and categorical
Dear R users,
if all my numerical variables in my datasets having the same units, may I
leave them unnormalized, just do cv.glmnet
directly(cv.glmnet(data,standardize=FALSE))?
i know normally if there is a mixture of numerical and categorical , one has
to standardize the numerical part before applying cv.glmnet with
standardize=fase, but that's due to the different units in the numerical