Displaying 20 results from an estimated 3000 matches similar to: "function restrictedparts"
2011 Apr 04
3
add zero in front of numbers
Dear R users,
I need to add 0 in front of a series of numbers, e.g. 1->001, 19->019,
Is there a fast way of doing that?
Many thanks
yan
[[alternative HTML version deleted]]
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]]
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
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]]
2012 Jun 01
1
R Error : Error in vector("list", gamma(n + 1)) : vector size specified is too large
Dear R-listers,
I am giving part of my R code :
###########################################################
n=15
m=1
library("partitions")
library("gregmisc")
library("combinat")
x = t(restrictedparts(n-m,m))
l = length(x[,1])
for(u in 1:l){
A= unique(matrix( unlist(permn(x[u,])), ncol=m, byrow=TRUE ))
}
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 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
2011 Apr 01
1
mean in the boxplot
Dear R users,
How to show mean in the boxplot instead of median ?
Many thanks
Yan
[[alternative HTML version deleted]]
2004 Jun 23
8
[Bug 884] DSA keys (id_dsa.pub) with 8192 bits or more aren't correctly recognized
http://bugzilla.mindrot.org/show_bug.cgi?id=884
dmr at gmx.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|DSA keys (id_dsa.pub) with |DSA keys (id_dsa.pub) with
|8192 bytes or more aren't |8192 bits or more aren't
|correctly
2016 Mar 22
2
Xapian's GSoC Student Application
Dear All?
Hello! My name is Ou Jiao, and I am a graduate student at Institute
of Computing Technology, Chinese Academy of Sciences. The file is my GSoC
student application. Would it be possible to give me some suggestions as to
how I might improve it? I am looking forward with great pleasure to doing
this project.Thank you for your help and consideration.
Kind regards!
2007 Aug 13
3
invert 160000x160000 matrix
Can R invert a 160000x160000 matrix with all positive numbers? Thanks a lot!
2016 Mar 23
2
Xapian's GSoC Student Application
I am very sorry for the inconvenience.I have had my proposal in Google
Docs,this is the url,
https://docs.google.com/document/d/1_9kalujmuHu_ce3DScn-1E9hM-RGAV46JEIql4h8rks/edit?usp=sharing
.
Thank you!
2016-03-22 20:57 GMT+08:00 James Aylett <james-xapian at tartarus.org>:
> On Tue, Mar 22, 2016 at 03:49:45PM +0800, ?? wrote:
>
> > Hello! My name is Ou Jiao, and I am a
2012 Apr 17
0
[LLVMdev] 3.1 Has Branched
how to get this branch?
still svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm?
Thank you.
On Tue, Apr 17, 2012 at 2:16 PM, Bill Wendling <wendling at apple.com> wrote:
> Hi all,
>
> We branched for the 3.1 release! (Yay!)
>
> If there are any fixes which you think should go into the release, please
> contact the code owners
2006 Aug 30
4
Create a vector from another vector
Dear list
Suppose I have the following vector:
x <- c(3,4,2,5,6)
Obviously, this sums to 20. Now, I want to have a second vector, call it
x2, that sums to x where 5 <= x <= 20, but there are constraints.
1) The new vector must be same length as x
2) No element of the new vector can be 0
3) Element x2[i] of the new vector cannot be larger than element x[i] of
the original vector
4)