[R] problem of loading workspace

2010-07-14 Thread Yan Jiao
I'm using R x64 2.11.0(windows) I was trying to load workspace I saved some days ago, but got the error: ReadItem: unknown type 63, perhaps written by later version of R. Has anyone come across the same problem? Any solutions? Many thanks yan

[R] regression line on boxplots

2011-04-01 Thread Yan Jiao
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]] __

[R] mean in the boxplot

2011-04-01 Thread Yan Jiao
Dear R users, How to show mean in the boxplot instead of median ? Many thanks Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] add zero in front of numbers

2011-04-04 Thread Yan Jiao
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]] __ R-help@r-project.org mailing list

[R] function order

2011-04-06 Thread Yan Jiao
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,]231 [2,]652 [3,]12

[R] using jit

2012-02-29 Thread yan jiao
Dear R gurus, I'm trying to use jit package to parallel my computing do you put jit(2) /jit(1) in front of every loops? I got 8 nested loops in my code. many thanks yan __ R-help@r-project.org mailing list

[R] igraph package question

2011-01-27 Thread Yan Jiao
Dear R users, I'm using igraph package for clustering, just wondering is leading.eigenvector.community function result deterministic or not? I got slightly different results on different runs... Many thanks Yan

[R] axis name editing

2011-01-28 Thread Yan Jiao
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:

[R] function for grouping

2012-01-24 Thread yan jiao
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

[R] function restrictedparts

2012-01-25 Thread yan jiao
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

[R] discrete simulated annealing

2012-01-30 Thread yan jiao
Dear All, I need to use simulated annealing for optimization is there a way to limit the search place to only discrete values? And also exclude certain solutions, e.g. exclude the solutions when all the variables are the same? many thanks Yan __

[R] submit R package

2011-05-17 Thread Yan Jiao
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]] __

[R] R string help

2011-02-01 Thread Yan Jiao
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

[R] (no subject)

2011-02-04 Thread Yan Jiao
Dear R users? I want to know how to use strata in survival analysis, I want to combine multiple dataset: Coxph(Surv(merged.time.v, merged.event.v)~merged.score+ strata(dataset.v)) So merged.time.v and merged.event.v are from multiple datasets. How should I define dataset.v here?

[R] extracting characters from string

2011-02-10 Thread Yan Jiao
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

[R] Bron-Kerbosch algorithm

2011-02-14 Thread Yan Jiao
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

[R] output selectively change the font

2011-02-21 Thread Yan Jiao
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

[R] glmnet object to pmml

2012-05-18 Thread Yan Jiao
Dear R users I used glmnet generating a regression model, now I need to convert it to pmml format, but I noticed pmml r package doesn't support glmnet object, has anyone find a way solving this problem? I was thinking convert glmnet object to glm object, has anyone tried it? Many thanks Yan