Re: [R] working with fractions

2007-06-21 Thread Muhammad Subianto
gt; Fede > > > Maybe like this: > library(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

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

[R] Make many barplot into one plot

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

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

2006-11-24 Thread Muhammad Subianto
ed My problems is how 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 > > > *

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

2006-11-24 Thread Muhammad Subianto
"tpr","fpr") perfid.auc <- performance(predid,"auc") 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 PLEAS

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(cb

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

2006-09-03 Thread Muhammad Subianto
17 1 [3,]38 13 18 -1 [4,]49 14 19 1 [5,]5 10 15 20 -1 Thanks you for any help. Best wishes, Muhammad Subianto #Gabor Grothendieck ggrothendieck at gmail.com #Mon Aug 28 13:53:52 CEST 2006 Here are two ways: 1. use indexes: lapply(seq(along = x), fun

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

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

[R] Barplot

2006-08-30 Thread Muhammad Subianto
the result maybe like | | | | | | | | | || | | |pos|neg| |pos|neg||pos|neg| | | | | | || | | - -- v1v2v3 v7 v8 Thanks you for any helps. Regar

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]

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

2006-08-29 Thread Muhammad Subianto
I mean the result something like [[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]1611 161 [[3]] [,1] [,2] [,3] [,4] [,5] [1,]38 13 18 -1

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

[R] Remove empty list from list

2006-08-28 Thread Muhammad Subianto
8 13 18 -1 [2,]5 10 15 20 -1 [[5]] [,1] [,2] [,3] [,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.co

[R] Merge list to list - as matrix

2006-08-28 Thread Muhammad Subianto
(a, rbind))) 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 post

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 apo

[R] Check values in colums matrix

2006-08-24 Thread Muhammad Subianto
7,]11146017 -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@s

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)) > t

[R] How to compare rows of two matrices

2006-08-24 Thread Muhammad Subianto
quot;") %in% apply(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

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 <

[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

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. &

Re: [R] convert decimals to fractions - sorted

2006-07-26 Thread Muhammad Subianto
0 1 > I 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 &l

[R] convert decimals to fractions - sorted

2006-07-25 Thread Muhammad Subianto
2/42 1 1 4/42 0 3 5/42 0 1 9/42 1 2 > 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

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 > lookin

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 a

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

2006-07-17 Thread Muhammad Subianto
es, for example, in directory "/dir/of/pkgs" library(tools) write_PACKAGES("/dir/of/pkgs") 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-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] Listing all of combinations

2006-07-14 Thread Muhammad Subianto
osting guide! http://www.R-project.org/posting-guide.html > Try this below: 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/m

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 >>

[R] Error install rgl package on linux

2006-07-12 Thread Muhammad Subianto
HTML package index in: tools:::unix.packages.html(.Library) > I think the error about missing devel-libraries on my fc5 but I do not know which libraries are. I apologize for my poor linux knowledge and expertise. Thank you very much. Best, Muhammad Subianto > version _ platf

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<-mydatex

[R] expanded dataset and random number

2006-06-20 Thread Muhammad Subianto
1 random number is 46 1 1 1 1 1 random number is 3 0 1 0 1 1 random number is 28 1 1 0 1 1 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

[R] expand only one of variable

2006-06-08 Thread Muhammad Subianto
FBrazil 0 0 0 positive 1 GFrance 0 0 0 positive 0 H Spain 0 0 0 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

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

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

[R] About list to list

2006-04-11 Thread Muhammad Subianto
l Thanks very much for any suggestions. 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] convert a data frame to matrix - changed column name

2006-04-06 Thread Muhammad Subianto
the following: > > out <- data.matrix(d) > dimnames(out) <- NULL > out 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.

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

2006-04-06 Thread Muhammad Subianto
))) [1] TRUE > Yes, I get a matrix TRUE. 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

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

2006-03-29 Thread Muhammad Subianto
for 'save.image' 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 ope

[R] load file RData which store in zip file

2006-03-29 Thread Muhammad Subianto
e corrupted) -- no data loaded > My question: How can I open/load "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

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 &

Re: [R] How to convert decimals to fractions

2006-01-27 Thread Muhammad Subianto
> [13] 19/75 4/15 22/75 8/25 1/3 26/75 28/75 > 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

[R] How to convert decimals to fractions

2006-01-27 Thread Muhammad Subianto
40 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/frac

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', >'po

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

2005-12-20 Thread Muhammad Subianto
: 4 good 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
L) where .libPaths()[3] my local library (added in Renviron.site) and update 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-

[R] update R packages in local repos

2005-11-16 Thread Muhammad Subianto
ontrib/2.2/PACKAGES' > > ?update.packages It produces these file in g:/myFolder/myRepository PACKAGES 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 syste

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","

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

2005-11-15 Thread Muhammad Subianto
> HEC.list <- list(Hair,Eye,Sex) > HEC.list [[1]] [1] "Black" "Brown" "Red" "Blond" [[2]] [1] "Brown" "Blue" "Hazel" "Green" [[3]] [1] "Male" "Female" > I expect the result l

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

2005-11-12 Thread Muhammad Subianto
ye.e, Sex.e). In the others word, how can I make "expand.grid" (each level) from data.frame automatically if Hair is only ("Black"). The result I need like, Var1 Var2 Var3 1 Black Brown Male 2 Black Blue Male 3 Black Hazel Male 4 Black Green

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 Su

[R] How to convert time to days

2005-10-26 Thread Muhammad Subianto
time: 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 Sub

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

[R] search a value in variables dataset

2005-10-20 Thread Muhammad Subianto
e very 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 Su

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 ha

[R] error open .RData

2005-10-19 Thread Muhammad Subianto
###### What is wrong? Is there anyway to open .RData? 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 lan

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 fo

[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 sm

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 abo

[R] expand.grid problem

2005-10-13 Thread Muhammad Subianto
t; Then I try to reduce: > all.V.miss <- expand.grid(V1,V2,V3,V4,V5,V7,V8,V9,V10,V11,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.ver

[R] make some possible neighbourhoods

2005-10-07 Thread Muhammad Subianto
e I am mistake. I believe it is the problem of the code. How should 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

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 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

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

2005-09-16 Thread Muhammad Subianto
, two plot. 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

Re: [R] CORRELATION MATRIX CONVERSION

2005-06-17 Thread Muhammad Subianto
Z Y 91.0 Z Z > 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 > >

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] <-

[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] 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 sho

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

2005-06-14 Thread Muhammad Subianto
;, .libPaths()[1]) > update.packages() > update.packages() > update.packages(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

[R] update.packages() - gregmisc

2005-06-14 Thread Muhammad Subianto
ded 2465 bytes package 'gregmisc' 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

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 ea

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(in

Re: [R] combination which limited

2005-06-12 Thread Muhammad Subianto
7 usblcd laptop yes 25 usblcd pcno > 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

[R] combination which limited

2005-06-11 Thread Muhammad Subianto
infralcd pc yes bluetoothlcd pc yes usb cubepc yes usb lcd server yes usb 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 b

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) >>

[R] data.frame to character

2005-06-10 Thread Muhammad Subianto
ot;,"D",..: 1 2 3 4 5 6 7 8 9 10 $ fac: Factor w/ 3 levels "A","B","C": 1 1 1 1 2 3 1 3 2 1 > d[3,] x y fac 3 XYZ C A > > as.character(d[3,]) [1] "1" "3" "1" > I think as.character the result

[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

[R] How to change all name of variables

2005-06-02 Thread Muhammad Subianto
xyz.glu" "xyz.bp" "xyz.skin" "xyz.bmi" "xyz.ped" "xyz.age" "xyz.type" How can I make this (automatically). I don't want to make manual with more 100 variables. I would be very happy if anyone could help me. Thank you for your time. 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] Problem with label name in mosaics plot

2005-05-23 Thread Muhammad Subianto
icplot(~ Hair+Eye+Sex+Opinion, data=toy.mosaics, color = TRUE) x11() # 5 variables (where is label name Race?) mosaicplot(~ Hair+Eye+Sex+Opinion+Race, data=toy.mosaics, color = TRUE) x11() # 6 variables (where are label name Race and Age?) mosaicplot(~ Hair+Eye+Sex+Opinion+Race+Age, data=toy.mosa

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]

[R] How to convert array to c()

2005-05-18 Thread Muhammad Subianto
Dear R-helper, Is there possible to make this array: > a <- array(1:12, c(4, 3)) > a [,1] [,2] [,3] [1,]159 [2,]26 10 [3,]37 11 [4,]48 12 > like: c(1,5,9) c(2,6,10) c(3,7,11) c(4,8,12) Thank you very much in advance. Regards, Muham

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

2005-05-16 Thread Muhammad Subianto
= "#FF", 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.

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()"

Re: [R] How to convert color to black & white

2005-05-16 Thread Muhammad Subianto
Thank's you very much. But I need the plot with color not gray. Best wishes, Muhammad Subianto On this day 5/14/2005 3:05 AM, [EMAIL PROTECTED] wrote: Muhammad, Here's one option: barplot(1:5,col=gray(seq(0,1,length=5))) Norm Olsen Fisheries and Oceans Canada -Original Message

[R] How to convert color to black & white

2005-05-13 Thread Muhammad Subianto
d 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-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
. . . Brown Blond Brown Blond Brown Blond Brown Blond Brown Blond Brown Blond Brown Blond How can I do 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 m

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, >

[R] How to change variables in datasets automatically

2005-04-29 Thread Muhammad Subianto
d 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-project.org/posting-guide.html

[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 add some of data in the first place dataset

2005-04-27 Thread Muhammad Subianto
1.4 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-pr

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 gu

[R] Take a levels

2005-04-27 Thread Muhammad Subianto
virginica 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] How to show which variables include in plot of classification tree

2005-03-18 Thread Muhammad Subianto
ery difficult 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 rea

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: xt

[R] Make a table

2004-12-22 Thread Muhammad Subianto
0.000533 0.986467 0.032066 C 0.005333 0.00 0.009266 I cannot use 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

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

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] Change the result data

2004-02-27 Thread Muhammad Subianto
el 15 Black Blue 20 Black Brown 68 Brown Green 29 Brown Hazel 54 Brown Blue 84 Brown Brown 119 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. Bes

[R] convert data

2003-12-04 Thread Muhammad Subianto
Dear R-helper, I have a data set like: OLDa ALL OLDc OLDa OLDb NEW OLDb OLDa ALL . . . ALL OLDc NEW I want to convert that data as OLDa=1, OLDb=2, OLDc=3, NEW=4 and ALL=5 or the result like: 1 5 3 1 2 4 2 1 5 . . . 5 3 4 How can I do it. Thanks you for your help. Best regards, Muhammad Subianto

  1   2   >