Re: [R] working with fractions

2007-06-21 Thread Muhammad Subianto
(MASS) as.fractions(c(0, 0.15, 0.827, .06, 0.266)) [1] 0 3/20 62/75 1/15 4/15 Regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Make many barplot into one plot

2006-12-04 Thread Muhammad Subianto
Dear; Marc Schwartz and Deepayan Sarkar, Thank you both very much for the suggestions! These are exactly what I was looking for. Best wishes, Muhammad Subianto On this day 12/01/2006 09:09 PM, Deepayan Sarkar wrote: On 12/1/06, Marc Schwartz [EMAIL PROTECTED] wrote: On Fri, 2006-12-01 at 18

[R] Make many barplot into one plot

2006-12-01 Thread Muhammad Subianto
| ... | | | | | | | | | | | | | | - satu dua tiga empatsatudua ... black blond I would be grateful if anybody could help me. Thank you very much. Muhammad

[R] How to find AUC in SVM (kernlab package)

2006-11-24 Thread Muhammad Subianto
) perfid.auc Thank you very much for your help. Best wishes, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] How to find AUC in SVM (kernlab package)

2006-11-24 Thread Muhammad Subianto
to find AUC (with ROCR package, or other ROC functions) from predict above. Regards, Muhammad Subianto for more information see The kernlab package here: http://lib.stat.cmu.edu/R/CRAN/doc/packages/kernlab.pdf cheers, Amir */Muhammad Subianto [EMAIL PROTECTED]/* wrote: Dear all, I

Re: [R] Merge list to list - as list

2006-09-03 Thread Muhammad Subianto
Dear all, Many thanks to Gabor Grothendieck and Jim Holtman, both of you always reply (to answer) my problems. Regards, Muhammad Subianto ##Gabor Grothendieck If z is the result then z[[i]] is formed from x[[i]] and y[[i]] using the previous solution, viz. z - list() z[[1]] - mapply(cbind, x

[R] Barplot

2006-08-30 Thread Muhammad Subianto
| | | | | | | | | || | | |pos|neg| |pos|neg||pos|neg| | | | | | || | | - -- v1v2v3 v7 v8 Thanks you for any helps. Regards, Muhammad Subianto

Re: [R] Barplot - thanks

2006-08-30 Thread Muhammad Subianto
Dear all, Many Thanks to Jacques VESLOT and Jim Lemon for their helps. Best, Muhammad Subianto #Jacques VESLOT barplot(t(sapply(split(z1[,1:8], z1$V9),colSums)), beside=T) #Jim Lemon barplot(sapply(z1[1:8],by,z1[9],sum),beside=TRUE) On this day 30/08/2006 11:43, Muhammad Subianto wrote

Re: [R] Barplot

2006-08-30 Thread Muhammad Subianto
Dear all, To Gabor Grothendieck, (again) thanks you very much for your help. Now, I can play around with lattice package. Best, Muhammad Subianto #Gabor #reduce the data to a frequency matrix and #then plot it using classic and then lattice graphics: zm - as.matrix(rowsum(z1[-9], z1[,9

Re: [R] Remove empty list from list - remove only one row and make as matrix

2006-08-29 Thread Muhammad Subianto
,]16 11 161 [2,]49 14 191 [3,]5 10 15 201 [[2]] [,1] [,2] [,3] [,4] [,5] [1]1611 161 [[3]] [,1] [,2] [,3] [,4] [,5] [1,]38 13 18 -1 [2,]5 10 15 20 -1 Best, Muhammad Subianto points.neighb

Re: [R] Remove empty list from list - remove only one row and make as matrix

2006-08-29 Thread Muhammad Subianto
Dear all, Dimitris, thanks for your great help and quick response. Best, Muhammad Subianto dff[sapply(dff, is.matrix)] [[1]] [,1] [,2] [,3] [,4] [,5] [1,]16 11 161 [2,]49 14 191 [3,]5 10 15 201 [[2]] [,1] [,2] [,3] [,4] [,5] [1

[R] Merge list to list - as matrix

2006-08-28 Thread Muhammad Subianto
))) lapply(a, function(x) matrix(unlist(x), nrow = length(x), byrow = TRUE)) but I don't know how to fix it. Regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Remove empty list from list

2006-08-28 Thread Muhammad Subianto
] [,4] [,5] I want to remove these: nc.test[[3]] nc.test[[5]] Because my list data have more 1000 lists are there any simple way to do this? Best, Muhammad Subianto points.neighb - function(p.class, list.nc, class.col) { ntuples - nrow(p.class) instvec - vector(list,length=ntuples) for (i

Re: [R] Remove empty list from list

2006-08-28 Thread Muhammad Subianto
On this day 28/08/2006 19:20, Muhammad Subianto wrote: Dear all, I am still working with list. If I have an empty list how can I remove from list data. Here is a toy example: x - list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4)) y - list(c

Re: [R] Check values in colums matrix

2006-08-25 Thread Muhammad Subianto
Dear all, I would like to thank everybody who replied for their useful suggestions. Maybe, I am going through the book statistics to teach (fresh) myself. Wish you have a nice weekend. Regards, Muhammad Subianto On this day 24/08/2006 18:59, Muhammad Subianto wrote: Dear all, I apologize

[R] How to compare rows of two matrices

2006-08-24 Thread Muhammad Subianto
(test, 1, paste, collapse=) It doesn't work. How can I do. Thanks for any help. Best, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] How to compare rows of two matrices

2006-08-24 Thread Muhammad Subianto
Dear Stephen C. Upton Petr Pikal Thank you both very much for the suggestions! Best wishes, Muhammad Subianto On this day 24/08/2006 12:03, Muhammad Subianto wrote: Dear all, I have a dataset train - cbind(c(0,2,2,1,0), c(8,9,4,0,2), 6:10, c(-1, 1, 1, -1, 1)) test - cbind(1:5, c(0,1,5,1,3

[R] Check values in colums matrix

2006-08-24 Thread Muhammad Subianto
46017 -1 [8,]11146018 -1 How can I do to check columns 2,3,4,6,7 and 9 have the same value, and columns 1,5 and 8 have different values. Best, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing

Re: [R] Take random sample from class variable

2006-08-09 Thread Muhammad Subianto
Dear all, Andy, thanks you for your help and suggestions. This is exactly what I was looking for. Kindly regards, Muhammad Subianto On 8/8/06, Liaw, Andy [EMAIL PROTECTED] wrote: There may be better ways, but this should work: R p.yes - 0.7 R n.yes - rbinom(1, nof.sample, p.yes) R n.no

[R] Take random sample from class variable

2006-08-06 Thread Muhammad Subianto
Dear all, Suppose I have a dataset like below, then I take for example, 100 random sample class variable where contains yes and no respectively, 70% and 30%. I need a new 100 random sample from mydat dataset, but I can't get the result. Thanks you very much for any helps. Best, Muhammad Subianto

Re: [R] convert decimals to fractions - sorted

2006-07-28 Thread Muhammad Subianto
Dear JeeBee and all, It is nice. Thanks you very much. I must learn much more about ?as.fractions, ?as.numeric, ?as.character and ?table functions. Best wishes, Muhammad Subianto On 7/28/06, JeeBee [EMAIL PROTECTED] wrote: Ah I see, I did not read your story well enough. You want to sort

Re: [R] convert decimals to fractions - sorted

2006-07-26 Thread Muhammad Subianto
need the result summary (order) like, -1 1 0/42 0 4 2/42 1 1 4/42 0 3 5/42 0 1 9/42 1 2 13/42 1 1 16/42 0 1 17/42 0 2 21/42 1 0 22/42 0 1 Thanks very much for any suggestions. Groeten Regards, Muhammad Subianto On 7/26/06, JeeBee [EMAIL PROTECTED] wrote

[R] convert decimals to fractions - sorted

2006-07-25 Thread Muhammad Subianto
How to make the result as sort (to increase) like this, -1 1 0/42 0 4 2/42 1 1 4/42 0 3 5/42 0 1 9/42 1 2 13/42 1 1 16/42 0 1 17/42 0 2 21/42 1 0 22/42 0 1 Thank's for any help. Best, Muhammad Subianto __ R

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Muhammad Subianto
Maybe like this: mosaic(allmorph, direction = v, pop = FALSE, gp=gpar(fill=c(grey(0.8),grey(0.4 Best, Muhammad Subianto On 7/19/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If you look at ?mosaic the ... argument says it gets passed to strucplot and looking at ?strucplot we see

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Muhammad Subianto
Maybe like this: mosaic(allmorph, direction = v, pop = FALSE, gp=gpar(fill=c(grey(0.8),grey(0.4 Best, Muhammad Subianto On 7/19/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If you look at ?mosaic the ... argument says it gets passed to strucplot and looking at ?strucplot we see

Re: [R] install.packages for local zip files

2006-07-17 Thread Muhammad Subianto
) and the package will be installed to /dir/of/R/libs install.packages(NameOfPkgs, lib=/dir/of/R/libs, repos=NULL, dependencies=TRUE, contriburl=file:dir/of/pkgs) Best, Muhammad Subianto __ R

Re: [R] Listing all of combinations

2006-07-14 Thread Muhammad Subianto
: A - letters[1:8] B - letters[1:8] lp-list(A,B) expand.grid(lp) Best, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Error install rgl package on linux

2006-07-12 Thread Muhammad Subianto
. Thank you very much. Best, Muhammad Subianto version _ platform i686-redhat-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2 minor 3.1 year 2006 month 06 day01 svn rev

Re: [R] Error install rgl package on linux

2006-07-12 Thread Muhammad Subianto
On this day 12/07/2006 15:57, Peter Dalgaard wrote: Muhammad Subianto [EMAIL PROTECTED] writes: QuadSet.o RenderContext.o render.o rglview.o scene.o select.o Shape.o SphereMesh.o SphereSet.o SpriteSet.o String.o Surface.o TextSet.o Texture.o TriangleSet.o types.o Viewpoint.o win32gui.o

Re: [R] expanded dataset and random number

2006-06-21 Thread Muhammad Subianto
Dear all, Per Jensen, thanks for your great help. All methods are very useful. Best, Muhammad Subianto On this day 20/06/2006 22:28, Per Jensen wrote: A couple of suggestions: #First solution mydatexpanded-mydat[rep(1:5,mydat[,1]),] sampledat-mydatexpanded[sample(1:85,7),-1] #Second

[R] expanded dataset and random number

2006-06-20 Thread Muhammad Subianto
So, the result random tuples (order from 6 random number): 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 1 I would be very happy if anyone could help me. Thank you very much in advance. Kindly regards, Muhammad Subianto __ R-help

[R] expand only one of variable

2006-06-08 Thread Muhammad Subianto
negative I would be very happy if anyone could help me. Thank you very much in advance. Kindly regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] About list to list

2006-04-11 Thread Muhammad Subianto
, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] About list to list - thanks

2006-04-11 Thread Muhammad Subianto
Thank you very much for your useful suggestions. These are exactly what I was looking for. foo - list(foo1, foo2, foo3) lapply(foo, function(x) matrix(unlist(x), nrow = length(x), byrow = TRUE)) or lapply(foo, function(x) do.call('rbind', x)) Best, Muhammad Subianto On 4/11/06, Muhammad

Re: [R] About list to list - thanks

2006-04-11 Thread Muhammad Subianto
Thank you very much for your useful suggestions. These are exactly what I was looking for. foo - list(foo1, foo2, foo3) lapply(foo, function(x) matrix(unlist(x), nrow = length(x), byrow = TRUE)) or lapply(foo, function(x) do.call('rbind', x)) Best, Muhammad Subianto On 4/11/06, Muhammad

[R] convert a data frame to matrix - changed column name

2006-04-06 Thread Muhammad Subianto
. But I need to change a column name like [,1] [,2] [,3]. I need the result like [,1] [,2] [,3] [1,] 1011 [2,] 2021 [3,] 1031 [4,] 2043 [5,] 1052 [6,] 2062 How can I do that? Thanks in advance, Muhammad Subianto

Re: [R] convert a data frame to matrix - changed column name

2006-04-06 Thread Muhammad Subianto
Thank you very much for your help. Best, Muhammad Subianto On 4/6/06, Muhammad Subianto [EMAIL PROTECTED] wrote: I have a question, which very easy to solve, but I can't find a solution. I want to convert a data frame to matrix. Here my toy example: L3 - c(1:3) L10 - c(1:6) d - data.frame

[R] load file RData which store in zip file

2006-03-29 Thread Muhammad Subianto
filename.zip? Is there any function to open R workspace which it store in zip file? I hope some one can give me advices. Best, Muhammad Subianto version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor2.1 year 2005 month

Re: [R] load file RData which store in zip file

2006-03-29 Thread Muhammad Subianto
' is shown in the browser Regards, Muhammad Subianto On 3/29/06, Philipp Pagel [EMAIL PROTECTED] wrote: On Wed, Mar 29, 2006 at 11:44:03AM +0200, Muhammad Subianto wrote: How can I open/load filename.zip? Is there any function to open R workspace which it store in zip file? I think you have

[R] How to convert decimals to fractions

2006-01-27 Thread Muhammad Subianto
24/75 25/75 26/75 45 61117 28/75 62 Any suggestions would be appreciated. Thanks you. Best, Muhammad Subianto PS. I found this website: http://www.mindspring.com/~alanh/fracs.html

Re: [R] How to convert decimals to fractions

2006-01-27 Thread Muhammad Subianto
On this day 27/01/2006 11:53, Prof Brian Ripley wrote: library(MASS) ?fractions help.search(fractions) gets you there. Many Thanks to Berwin A Turlach and Prof Brian Ripley for your suggestions. ?fractions Best regards, Muhammad Subianto

Re: [R] How to convert decimals to fractions

2006-01-27 Thread Muhammad Subianto
Thanks you for your help. Best wishes, Muhammad Subianto On this day 27/01/2006 12:08, Dimitris Rizopoulos wrote: if it happens to know the denominator, then a simple approach could be: frac.fun - function(x, den){ dec - seq(0, den) / den nams - paste(seq(0, den), den, sep

Re: [R] Help to find only one class and differennt class

2005-12-21 Thread Muhammad Subianto
Thanks to Jim Holtman. This is very usefull to improve my script. Best, Muhammad Subianto On this day 20/12/2005 17:19, jim holtman wrote: try this: set.seed(1) # generate some test data x.1 - data.frame(seg=sample(1:6,20,T), class=sample(c('good', 'poor'),20,T)) x.1 (x.sp - split(x.1, x.1$seg

[R] Help to find only one class and differennt class

2005-12-20 Thread Muhammad Subianto
and poor class : 2,5 Thanks in advance. Sincerely, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] update R packages in local repos

2005-11-17 Thread Muhammad Subianto
with update.packages(ask=graphics, repos=NULL, contriburl=file:///h:/myFolder/myRepository) Best, Muhammad Subianto Cited: - R News 5/1 - C:\Program Files\R\R-2.2.0\library\utils\html\update.packages.html On this day 17/11/2005 08:27 AM, Prof Brian Ripley wrote

[R] update R packages in local repos

2005-11-16 Thread Muhammad Subianto
PACKAGES.gz Could I make this folder (bin/windows/contrib/2.2/)? Why? Regards, Muhammad Subianto version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor2.0 year 2005 month10 day 06 svn rev 35749 language R

[R] How can I put the object name in list

2005-11-15 Thread Muhammad Subianto
the result like this, $Hair [1] Black Brown Red Blond $Eye [1] Brown Blue Hazel Green $Sex [1] Male Female Best, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] How can I put the object name in list

2005-11-15 Thread Muhammad Subianto
Yes, thanks you very much. Regards, Muhammad Subianto HEC.list - list(Hair=Hair,Eye=Eye,Sex=Sex) ?list On this day 15/11/2005 12:54 PM, Muhammad Subianto wrote: Dear R-helpers, How can I put the object name in list. Hair - c(Black,Brown,Red,Blond) Eye - c(Brown,Blue,Hazel,Green

[R] how to make automatically each level from data.frame to vector

2005-11-12 Thread Muhammad Subianto
). The result I need like, Var1 Var2 Var3 1 Black Brown Male 2 Black Blue Male 3 Black Hazel Male 4 Black Green Male 5 Black Brown Female 6 Black Blue Female 7 Black Hazel Female 8 Black Green Female Thanks in advance. Best, Muhammad Subianto __ R

Re: [R] How to convert time to days

2005-10-27 Thread Muhammad Subianto
Thanks to everyone for your help. Yuup, this is my stupid word secs which I put there. Usually I get to run simulation on my machine only a few seconds. Now, I recode my timestamp, but still I don't know how to make x days, x hours, x minutes, x seconds. Best wishes, Muhammad Subianto

[R] How to convert time to days

2005-10-26 Thread Muhammad Subianto
: 1.960625 secs. This is about two seconds or one day and nine hours? Then, how could I convert to 1 day, 23 hours, ? minutes, ? seconds. Thanks you very much for any suggestions. Best wishes, Muhammad Subianto # Begin

[R] search a value in variables dataset

2005-10-20 Thread Muhammad Subianto
large dataset I can not make this manual. Then I need the ID of row did not change, I mean like, [3,] [5,] [29,] In dataset this is about ID our customers. I was wondering if anyone give me a trick to make simple. Thanks you very much for any suggestions. Best, Muhammad Subianto

Re: [R] search a value in variables dataset

2005-10-20 Thread Muhammad Subianto
Dear All, Perfect. Thanks you very much for your help. Best, Muhammad Subianto my.reducedID-read.table(file.choose()) head(my.reducedID) V1 V2 V3 V4 V5 V6 V7 V8 V9 [1,] 1 0 0 1 14 3 1 0 2 [2,] 2 0 0 1 14 3 1 0 2 [3,] 0 1 0 1 14 2 1 0 2 [4,] 0 0 1 1 14

[R] error open .RData

2005-10-19 Thread Muhammad Subianto
? Regards, Muhammad Subianto R.version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor2.0 year 2005 month10 day 06 svn rev 35749 language R __ R-help

Re: [R] error open .RData

2005-10-19 Thread Muhammad Subianto
Your .Rdata file is probably corrupted. I will investigate. Thanks for you info. Because of my file .RData very large about 75MB. Best wishes, Muhammad Subianto On this day 19/10/2005 12:21 PM, Petr Pikal wrote: Hi Your .Rdata file is probably corrupted. Unless you have a working copy

[R] a max value for each column

2005-10-17 Thread Muhammad Subianto
Dear R-list I have a dataset like below (points), how can I produce a max value for each column. I need a result like (I hope my eye correct): [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 211 10 99 14 19695 8 5 7 This is a

Re: [R] a max value for each column

2005-10-17 Thread Muhammad Subianto
Acchhh very easy, time to drink a cup of coffe, but Thank you for your all. apply(points, 2, max) Best regards, Muhammad Subianto On this day 17/10/2005 02:34 PM, Muhammad Subianto wrote: Dear R-list I have a dataset like below (points), how can I produce a max value for each

[R] expand.grid problem

2005-10-13 Thread Muhammad Subianto
,V17,V18,V19,V20) Error: cannot allocate vector of size 36288 Kb What is that? Is this about memory or I must run on machine 64bit? Regards, Muhammad Subianto P4 2.0GHz 512MB RAM R.version$platform [1] i686-redhat-linux-gnu R.version$major [1] 2 R.version$minor [1] 1.1 R.version$year [1

Re: [R] expand.grid problem

2005-10-13 Thread Muhammad Subianto
Dear all, Martyn Plummer and Jim Holtman (offlist) thanks you for quick respons. Now I understand. I need more machine and memory. Thanks a lot. Muhammad Subianto --- 20 columns and 54 billion rows? O:-) On this day 13/10/2005 01:45 PM, Martyn Plummer wrote: It's all about memory. In your

[R] make some possible neighbourhoods

2005-10-07 Thread Muhammad Subianto
I fix this problem. Thanks in advance for any help. Best regards, Muhammad Subianto Here is a code: neighb2 - function(point,domains) { nn2 - sum(domains)*(sum(domains)-1) nvar - length(point) neighb - matrix(nrow=nn2,ncol=nvar) k - 1 for (i in 1:nvar) { restvars - 1:nvar

[R] How to make two figures in one plot - package vcd

2005-09-16 Thread Muhammad Subianto
. Best wishes, Muhammad Subianto library(vcd) oldpar - par(mfrow=c(1, 2)) ## mosaic display for PreSex model data(PreSex) fm - loglm(~ PremaritalSex * ExtramaritalSex * (Gender + MaritalStatus), data = aperm(PreSex, c(3, 2, 4, 1))) ## visualize Pearson statistic plot(fm, split_vertical

Re: [R] How to make two figures in one plot - package vcd

2005-09-16 Thread Muhammad Subianto
On this day 16/09/2005 05:59 PM, Dieter Menne wrote: Muhammad Subianto subianto at gmail.com writes: I have a problem to make figures with two columns in package vcd. Here an example code I take from \library\vcd\html\plot.loglm.html What I need, I want to make two figures in one plot

Re: [R] CORRELATION MATRIX CONVERSION

2005-06-17 Thread Muhammad Subianto
Regards, Muhammad Subianto On this day 6/17/2005 8:14 AM, Omer Bakkalbasi wrote: How do I convert the output of cor(x) to a columnar format? Ex. from format below XYZ X 1.0 0.9 0.5 Y 0.9 1.0 0.1 Z 0.5 0.1 1.0 to format below X X 1.0 X Y 0.9 X Z 0.5 Y X 0.9 Y

Re: [R] update.packages() - gregmisc

2005-06-15 Thread Muhammad Subianto
On this day 6/15/2005 12:03 AM, Gabor Grothendieck wrote: Is the code in your post intended to show what worked so others will know what to do Yes, I succes to remove and install gregmisc again like I have posted before. Regards, Muhammad Subianto or is that code intended to show what you

[R] how to change automatically 0=no and 1=yes

2005-06-15 Thread Muhammad Subianto
can I change automatically 0=no and 1=yes. Thank you very much in advance. Kindly regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] how to change automatically 0=no and 1=yes

2005-06-15 Thread Muhammad Subianto
Dear all, Sean Davis, Dimitris Rizopoulos and Marc Schwartz, thanks for your great help. It works perfectly. Thanks a lot. All the best, Muhammad Subianto On this day 6/15/2005 4:06 PM, Sean Davis wrote: x - data.frame(matrix(c(1,0,1,0,1,1),nrow=3)) x[x==0] - 'no' x[x==1] - 'yes

[R] update.packages() - gregmisc

2005-06-14 Thread Muhammad Subianto
' successfully unpacked and MD5 sums checked ... then try to update again, still I must update package gregmisc, etc. I have tried 3,4,5, times with the same result. Best, Muhammad Subianto version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major

Re: [R] update.packages() - gregmisc

2005-06-14 Thread Muhammad Subianto
(ask='graphics') Regards, Muhammad Subianto R.2.1.0 on W2K On this day 6/14/2005 1:51 PM, Gabor Grothendieck wrote: On 6/14/05, Muhammad Subianto [EMAIL PROTECTED] wrote: Dear all, I have a problem to update package gregmisc. After I update, update.packages(ask='graphics') trying URL 'http

Re: [R] combination which limited

2005-06-13 Thread Muhammad Subianto
Dear R-helpers, On this day 6/12/2005 10:48 AM, Muhammad Subianto wrote: Dear All, Many thanks to Marc Schwartz and Gabor Grothendieck who have explained me about using expand.grid function and clearly explain how to use JGR. dd - expand.grid(interface = interface, screen = screen

Re: [R] combination which limited - thanks again

2005-06-13 Thread Muhammad Subianto
Dear all, Again, I would like to thank Gabor Grothendieck for your help. I can improve which you suggest with the others combination. And thank you for your time. Sincerely, Muhammad Subianto On this day 6/13/2005 2:38 PM, Gabor Grothendieck wrote: The pattern seems to be that each row

Re: [R] combination which limited

2005-06-12 Thread Muhammad Subianto
no Regards, Muhammad Subianto Notepad, Copy and Paste are my best friend to use R.2.1.0 on windows 2000 On 6/11/05, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 6/11/05, Marc Schwartz [EMAIL PROTECTED] wrote: On Sat, 2005-06-11 at 20:44 +0200, Muhammad Subianto wrote: Dear R-helpers, I am

[R] combination which limited

2005-06-11 Thread Muhammad Subianto
lcd laptop yes usb lcd pc no How can I do that? I was wondering if someone can help me. Thanks you for your time and best regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

[R] data.frame to character

2005-06-10 Thread Muhammad Subianto
,] x y fac 3 XYZ C A as.character(d[3,]) [1] 1 3 1 I think as.character the result something like [3] XYZ C A I don't know how to convert it. Any help gratefully received. Thank you very much in advance. Kindly regards, Muhammad Subianto __ R

Re: [R] data.frame to character - thanks

2005-06-10 Thread Muhammad Subianto
Dear all, Thank you very much for your help. I would like to thank Andy Liaw and Gabor Grothendieck for their fast help. Regards, Muhammad Subianto On this day 6/10/2005 2:30 PM, Liaw, Andy wrote: Is this what you want? d[] - lapply(d, as.character) str(d) `data.frame': 10 obs

[R] adaboost more two classes

2005-06-06 Thread Muhammad Subianto
Dear R-Helper, I want to know, is there any function/package can handle adaboost more two classes? I know packages gbm and boost, but there are only for 2 classes (correct me if I mistake). Regards, Muhammad Subianto __ R-help@stat.math.ethz.ch

Re: [R] How to change all name of variables

2005-06-02 Thread Muhammad Subianto
Dear all R-helpers, Thanks you very much for your help. I would like to thanks Sean Davis and Gabor Grothendieck for their help. Best wishes, Muhammad Subianto On this day 6/2/2005 3:21 PM, Gabor Grothendieck wrote: Try this: names(prima) - paste(xyz, names(prima), sep = .) On this day

Re: [R] How to convert array to c()

2005-05-18 Thread Muhammad Subianto
Dear all, Many thanks for your help. Regards, Muhammad Subianto On this day 5/18/2005 4:57 PM, Liaw, Andy wrote: Is this what you want? split(a, row(a)) $1 [1] 1 5 9 $2 [1] 2 6 10 $3 [1] 3 7 11 $4 [1] 4 8 12 Andy On this day 5/18/2005 5:15 PM, [EMAIL PROTECTED] wrote: Look

Re: [R] How to make label in multi plot

2005-05-16 Thread Muhammad Subianto
Dear Dr. Paul Murrel, Yes, this is exactly what I need. Thank's you very much. Best wishes, Muhammad Subianto On this day 5/16/2005 5:36 AM, Paul Murrell wrote: Hi (cc'ed to Pierre Lapointe because this should answer the question about [R] Centered overall title with layout() as well) Muhammad

Re: [R] How to convert color to black white - Solve

2005-05-16 Thread Muhammad Subianto
, salmon.light = #dd9955, yellowF = #00) barplot(1:4,col = print.bw4) Best, Muhammad Subianto On this day 5/16/2005 2:42 PM, Uwe Ligges wrote: Muhammad Subianto wrote: Thank's you very much. But I need the plot with color not gray. So you want a colorful rgb plot, OK, fine with your code

[R] How to convert color to black white

2005-05-13 Thread Muhammad Subianto
. Thank you very much in advance. Kindly regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] How to make label in multi plot

2005-05-12 Thread Muhammad Subianto
| || || || -- -- - || Group B | plot 4 | || - I would be very happy if anyone could help me. Thank you very much in advance. Sincerely, Muhammad Subianto

[R] Change the result data

2005-05-10 Thread Muhammad Subianto
it. Thanks you for your help. Best regards, Muhammad Subianto http://article.gmane.org/gmane.comp.lang.r.general/14604,14610 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] How to change variables in datasets automatically

2005-04-29 Thread Muhammad Subianto
, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How to change variables in datasets automatically

2005-04-29 Thread Muhammad Subianto
Excellent, this is exactly what I was looking for. Many thanks and best regards, Muhammad Subianto On 4/29/05, Liaw, Andy [EMAIL PROTECTED] wrote: Try: a - data.frame(Sepal.Length=1:4, Sepal.Width=2:5, Petal.Length=3:6, Petal.Width=4:7, Species=rep(rosa,4

[R] Take a levels

2005-04-27 Thread Muhammad Subianto
virginica virginica virginica virginica [145] virginica virginica virginica virginica virginica virginica Levels: setosa versicolor virginica I want like, y.iris level are, [] setosa versicolor virginica Best regards, Muhammad Subianto __ R-help

Re: [R] Take a levels

2005-04-27 Thread Muhammad Subianto
Thanks you very much. levels(y.iris) Best regards, Muhammad Subianto [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

[R] How to add some of data in the first place dataset

2005-04-27 Thread Muhammad Subianto
0.2 setosa 4.9 3.1 1.5 0.1 setosa Sincerely, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

[R] Re: How to add some of data in the first place dataset

2005-04-27 Thread Muhammad Subianto
Thanks all for your help. Kind regards, Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] How to show which variables include in plot of classification tree

2005-03-18 Thread Muhammad Subianto
to know which variables showing in the plot. Are there any trick which variables are showing in plot. Thanks for your help. Muhammad Subianto __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Make a table

2004-12-22 Thread Muhammad Subianto
table() or ftable() functions because the 3rd column (Z) is probability. Are there any function to make a table as I want? Kind regards, Muhammad Subianto __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Make a table

2004-12-22 Thread Muhammad Subianto
Thanks to all of you. That's what I want. Best wishes, Muhammad Subianto Try tapply(prevRND.dat$Z, list(X=prevRND.dat$X, Y=prevRND.dat$Y), mean) __ Andy Jaworskitry: try: tapply( Z, list( X, Y ), mean ) -- Bendix Carstensen How about: xtabs(Z

Re: [R] R packages install problems linux - X not found (WhiteBoxEL 3)

2004-08-09 Thread Muhammad Subianto
Maybe you can try with the other RHEL clone like CentOS-3: http://install.linux.duke.edu/pub/linux/add-on/distrib/centos-3.1/i386/rpms/R-1.9.0-0.duke.1.el3.i386.rpm http://install.linux.duke.edu/pub/linux/add-on/distrib/centos-3.1/i386/srpms/R-1.9.0-0.duke.1.el3.src.rpm Best wishes, Muhammad

[R] Change the result data

2004-02-27 Thread Muhammad Subianto
Red Green 14 Red Hazel 14 Red Blue 17 Red Brown 26 Blond Green 16 Blond Hazel 10 Blond Blue 94 Blond Brown7 How can I do it. Thanks you for your help. Best regards, Muhammad Subianto __ [EMAIL PROTECTED] mailing list https

Re: [R] Change the result data (thanks you)

2004-02-27 Thread Muhammad Subianto
Dear R-helper, I use like this below (from Prof. Peter Dalgaard) and thanks to other R-helper for your help. Best regard, Muhammad Subianto as.data.frame(as.table(hec.data)) eye hair Freq 1 Green Black5 2 Hazel Black 15 3 Blue Black 20

[R] Remove comma (,) in data set

2003-09-30 Thread Muhammad Subianto
it. Thanks you for your help. Best regards, Muhammad Subianto __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help