Re: [R] Using multiple objects in a for loop

2006-11-25 Thread Ales Ziberna
You should use assign(temp,get(on[j])) or just temp-get(on[j]) as the on[j] IS just a character string. If you want to get the object with that name, use get. Ales Ziberna Daniel Yanosky pravi: I have a situation where I want to perform the same manipulations to multiple R objects

Re: [R] plot a new picture against an old one to see the difference between them

2006-09-05 Thread Ales Ziberna
Maybe par(mfrow=c(1,2)) would do the trick. It puts two plots (of any kind) to the same device next to each-other. You have to run the command before the plotting commands. To have again only one plot per device, use par(mfrow=c(1,1)) Best, Ales Ziberna Am Stat pravi: Dear Roger, Thanks

Re: [R] [O/T] undergrads and R

2006-04-26 Thread Ales Ziberna
Message- From: Ales Ziberna [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 1:15 AM To: Richard M. Heiberger Cc: r-help@stat.math.ethz.ch; John Fox Subject: Re: [R] [O/T] undergrads and R I will be also using R commander with undergrad students, who actually already have some

Re: [R] [O/T] undergrads and R

2006-04-25 Thread Ales Ziberna
, especially when working with social sciences students. Does anyone else have similar filings. Best regards, Ales Ziberna Richard M. Heiberger pravi: This semester for the first time I have been using the combination of R, R Commander (John Fox's package providing a menu-driven interface to R

[R] Upadating windows shortcuts after upgrade

2006-04-10 Thread Ales Ziberna
from R 2.1.1 to R 2.2.1. I would like to do this automtically for all R 2.1.1 shortcuts on my computer. Thanks in advance for any ideas! Best regards, Ales Ziberna __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Bug in setting GUI to SDI mode?

2006-02-23 Thread Ales Ziberna
You should save it to C:\Program File\R\2.2.1\etc Best, Ales Ziberna michael watson (IAH-C) pravi: Hi I did a google search on this and came up with nothing. OK, in the latest release of R for windows, I want to change the gui to SDI mode. Edit - GUI preferences Choose SDI Apply

Re: [R] Printing numerical matrices

2006-01-17 Thread Ales Ziberna
Thank you! That solves my a) problem! Best, Ales -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck Sent: Tuesday, January 17, 2006 4:55 PM To: Aleš Žiberna Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Printing numerical matrices

Re: [R] Taking code from packages

2006-01-13 Thread Ales Ziberna
by My Name). 3.. Use the same license (GPL 2) as they do. I did not intent to write them as the package authors, since their code represent a very small part of the whole package. How does that sound? Best regards, Ales Ziberna P.S.: I did not find any other special copyright notices

[R] Taking code from packages

2006-01-12 Thread Ales Ziberna
and opinions are very welcomed! Best regards, Ales Ziberna __ 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] Regular expressions

2006-01-11 Thread Ales Ziberna
for any suggestions! Best, Ales Ziberna __ 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] Regular expressions

2006-01-11 Thread Ales Ziberna
Thank you! This is definitely an improvement! Best, Ales Ziberna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard Sent: Wednesday, January 11, 2006 7:24 PM To: Ales Ziberna Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Regular

Re: [R] Regular expressions

2006-01-11 Thread Ales Ziberna
, Ales Ziberna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taylor, Z Todd Sent: Wednesday, January 11, 2006 7:50 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Regular expressions Ales Ziberna [EMAIL PROTECTED] writes: Dear useRs! I have

Re: [R] How to unload a package or undo library(package)

2006-01-09 Thread Ales Ziberna
Thank you! I guess it can not be done! Best, Ales Ziberna -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 9:19 AM To: Ales Ziberna Cc: r-help@stat.math.ethz.ch Subject: Re: [R] How to unload a package or undo library(package) See

Re: [R] Clustering and Rand Index - VS-KM

2006-01-08 Thread Ales Ziberna
the mat in my code above). The variables should be represented by rows and the cases by columns. Best, Ales Ziberna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Hempelmann Sent: Monday, January 09, 2006 12:43 AM To: r-help@stat.math.ethz.ch Subject

Re: [R] How to unload a package or undo library(package)

2006-01-08 Thread Ales Ziberna
'blockmodeling' successfully unpacked and MD5 sums checked Error: cannot remove prior installation of package 'blockmodeling' Is there any way around that? Best, Ales Ziberna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabor Grothendieck Sent: Sunday, January 08

[R] Putting an object in to a function that calls the current function

2006-01-04 Thread Ales Ziberna
for suggestions! Ales Ziberna __ 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] Putting an object in to a function that calls the current function

2006-01-04 Thread Ales Ziberna
functions are calling (the function is NEVER called directly) it and it was in this case easier to use this than to modify each of the fuctions that are calling it. Thanks again! Ales Ziberna -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006

Re: [R] Putting an object in to a function that calls the current function

2006-01-04 Thread Ales Ziberna
I do not belive this would work in my case, since as I said, the function is called by several different functions. Ales Ziberna -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 5:05 PM To: Ales Ziberna Cc: 'R-help' Subject: Re: [R

Re: [R] Why doesn't this nested loop work?

2006-01-04 Thread Ales Ziberna
an example how you would like the results to look like! Best, Ales Ziberna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teresa Nelson Sent: Wednesday, January 04, 2006 4:44 PM To: r-help@stat.math.ethz.ch Subject: [R] Why doesn't this nested loop work? Hi

Re: [R] grouping data

2005-12-24 Thread Ales Ziberna
I think you are looking for: male - t[,-1][t$sex == male] female -t[,-1][t$sex == female] - Original Message - From: Subhabrata [EMAIL PROTECTED] To: r-help r-help@stat.math.ethz.ch Sent: Saturday, December 24, 2005 8:31 AM Subject: [R] grouping data Hello R-users/experts, I am

[R] Problems with passing ... to a function

2005-12-22 Thread Ales Ziberna
Dear useRs! I have written a function that should pass argument m to the next function, however it does not! Please have a look at the function below that shows a problem and tell me what I am missing. As you can see, the blocks argument is passed corectly, while m is not. Best, Ales

Re: [R] Problems with passing ... to a function

2005-12-22 Thread Ales Ziberna
Thanks to the helpful R-hlep-er, the problem has been solved. 'm' was matching 'maxiter'. Thanks again, Ales Ziberna - Original Message - From: Ales Ziberna [EMAIL PROTECTED] To: R-help r-help@stat.math.ethz.ch Sent: Thursday, December 22, 2005 9:25 AM Subject: Problems with passing

Re: [R] Reading in large file in pieces

2005-12-22 Thread Ales Ziberna
See ?scan or maybe ?readLines - Original Message - From: Sean Davis [EMAIL PROTECTED] To: r-help r-help@stat.math.ethz.ch Sent: Friday, December 23, 2005 12:08 AM Subject: [R] Reading in large file in pieces I have a large file (millions of lines) and would like to read it in pieces.

Re: [R] The fastest way to select and execute a few selected functions inside a function

2005-12-16 Thread Ales Ziberna
- Original Message - From: Ales Ziberna [EMAIL PROTECTED] To: R-help r-help@stat.math.ethz.ch Sent: Wednesday, December 14, 2005 6:05 PM Subject: The fastest way to select and execute a few selected functions inside a function Dear useRs? I have the following problem! I have

[R] The fastest way to select and execute a few selected functions inside a function

2005-12-14 Thread Ales Ziberna
Vcells 61135 0.5 786432 6.0 283043 2.2 [1] 1.14 0.00 1.40 NA NA This does (usually) not happen in my case, since most of functions I consider are more complex. Thanks in advance for any suggestions! Best regards, Ales Ziberna __ R-help

[R] Problems with sending data to FORTRAN subrutine

2005-12-11 Thread Ales Ziberna
, Ales Ziberna The commands used to generate read.dll. g77 -c read.f R CMD SHLIB read.o The FORTRAN subroutine (read.f): subroutine read(M,n,clu,k,diag,err,E,BM) INTEGER n, clu, k, i, j, ii, nA, nAD DOUBLE PRECISION M, E, BM, A, AD, vecA, vecAD, err, mean, temp, ss

Re: [R] Finding all possible partitions of N units into k classe

2005-12-09 Thread Ales Ziberna
Ziberna - Original Message - From: Ted Harding [EMAIL PROTECTED] To: Ales Ziberna [EMAIL PROTECTED] Cc: R-help r-help@stat.math.ethz.ch Sent: Thursday, December 08, 2005 5:19 PM Subject: RE: [R] Finding all possible partitions of N units into k classe On 08-Dec-05 Ales Ziberna wrote: Dear

Re: [R] Finding all possible partitions of N units into k classe

2005-12-09 Thread Ales Ziberna
As to my knowladge, the function is not located in any packages. If you wish, I can contact the author and ask him, if he is willing to post the function on to the list. Best, Ales Ziberna - Original Message - From: Ingmar Visser [EMAIL PROTECTED] To: Ales Ziberna [EMAIL PROTECTED]; R

[R] Listing all possible samples of size n form a population of size N

2005-12-08 Thread Ales Ziberna
are : {1,2},{2,3} and {1,3}. I would like to emphasize that I am not looking for the number of different samples, but a list of all possible samples. Thank you in advance for any suggestions. Best, Ales Ziberna __ R-help@stat.math.ethz.ch mailing list

[R] Finding all possible partitions of N units into k classes

2005-12-08 Thread Ales Ziberna
1,2,1,2 1,2,2,1 The partitions 1,1,2,2 and 2,2,1,1 are the same and are therefore not two unique partitions. Thank you in advance for any suggestions. Best, Ales Ziberna __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] Listing all possible samples of size n form a population

2005-12-08 Thread Ales Ziberna
I would like to thank Ted Harding and Kristel Joossens for their replies! They both work perferctly. I would also like to appologize for not finding the package combinat myself! Thank you aggain, Ales Ziberna - Original Message - From: Ted Harding [EMAIL PROTECTED] To: Ales Ziberna

Re: [R] how to save output all together

2005-12-05 Thread Ales Ziberna
See the corrections in your first function! Hope it helps, Ales Ziberna - Original Message - From: Chun-Ying Lee [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Monday, December 05, 2005 2:49 AM Subject: [R] how to save output all together Dear R users: I have a problem about

Re: [R] Generating all possible partitions

2005-11-26 Thread Ales Ziberna
. Thank you again for all the answers, Best refgards, Ales Ziberna find.all.par-function( #suitable for only very small networks and ks (complexity is k^n) n, #number of units k, #number of clusters only.k.groups=TRUE, #do we damand

Re: [R] Double FOR

2005-11-26 Thread Ales Ziberna
for (j in m){ for (k in s){ for (i in y){ DIC.hat-cbind(DIC.hat,c(m=j,s=k,y=i,DIC.hat=sum(-2*((log(1/sqrt(2*pi*k^2))*expi-j)/k)^2)/-2) } } } DIC.hat } Best, Ales Ziberna - Original Message - From: Ginestet, Cedric [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent

Re: [R] OT: algorithm for generating all possible combinations withreplacement

2005-11-25 Thread Ales Ziberna
Does this do what you want? n-10 k-5 expand.grid(rep(list(1:n),k)) However be carful, even this small example prouces matrix with10 rows. Best, Ales Ziberna - Original Message - From: Globe Trotter [EMAIL PROTECTED] To: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Sent: Friday

Re: [R] Survreg Weibull lambda and p

2005-11-25 Thread Ales Ziberna
Re: [R] Survreg Weibull lambda and pYes, that is correct! Best, Ales Ziberna - Original Message - From: Stephen To: Ales Ziberna ; r-help@stat.math.ethz.ch Sent: Thursday, November 24, 2005 4:17 PM Subject: RE: [R] Survreg Weibull lambda and p Hi Ales, Sorry Mis-read

[R] Generating all possible partitions

2005-11-25 Thread Ales Ziberna
Hellp! I would like to generate all possible partitions of length n with k clusters. It should be noted that the labels of the classes are irrelevant. Thanks for any suggestions! Best regards, Ales Ziberna __ R-help@stat.math.ethz.ch mailing

[R] Generating all possible partitions

2005-11-25 Thread Ales Ziberna
, there are two possible partitions of 3 objects into 2 groups: 1 1 2 1 2 2 By the labels are not important I meant that a partition 1 1 2 is identical to the partition 2 2 1. Best regards, Ales Ziberna __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Survreg Weibull lambda and p

2005-11-24 Thread Ales Ziberna
. The model can only evaluate the diference, which is what you got, assuming that your groups are coded in such a way, that the difference between the codes is 1. Best, Ales Ziberna - Original Message - From: Stephen [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Thursday, November

Re: [R] some questions

2005-11-16 Thread Ales Ziberna
) and output the first 100 z values in the list. z-(v1)*sqrt(-2*log(r)/r) z[1:100] #or print(z[1:100]) 5. Plot histograms for the sequences from steps 1 and 2. hist(v1) hist(v2) hist(r) Thanks very much for your help! I hope this helps, Ales Ziberna xingyu

Re: [R] Conditional Matrices

2005-08-16 Thread Ales Ziberna
#M1 = first matrix #M2 = second matrix M2[M1==0]-NA - Original Message - From: ISAIAH SHALWITZ [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Tuesday, August 16, 2005 5:00 AM Subject: [R] Conditional Matrices This seems like a simple problem but I can't figure it out: I have

Re: [R] Putting all elementes of the list in an enviorment of a function

2005-08-02 Thread Ales Ziberna
Thank you! However, this does not do exacty what I want. I would like somehow to modify only the function second. BTW, I used list only to create a list, it is not one of my functions. Thanks again, Ales Ziberna - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Ales

Re: [R] Putting all elementes of the list in an enviorment of a function

2005-08-02 Thread Ales Ziberna
I apologize, it seams did not interpret your first mail corectly! Everything works now! Thank you again! Ales Ziberna - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Ales Ziberna [EMAIL PROTECTED] Cc: R-help r-help@stat.math.ethz.ch Sent: Tuesday, August 02, 2005 11:25

Re: [R] fortran

2005-08-01 Thread Ales Ziberna
See ?dyn.load ?.Fortran and manual Writing R Extensions! Then ask again if you have additional questions! Hope this helps, Ales Ziberna - Original Message - From: javad Ashjari [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Sent: Monday, August 01, 2005 12:21 PM Subject: [R] fortran

Re: [R] Multiple line plots

2005-06-15 Thread Ales Ziberna
assuming that your matrix is named x, try matplot(x,type=l) Ales Ziberna P.S.: see ?matplot for help to matplot. That it all it took me! - Original Message - From: Mihai Nica [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, June 15, 2005 8:50 PM Subject: [R] Multiple

Re: [R] formals or args question

2005-05-23 Thread Ales Ziberna
names(formals(fun)) You need the names of the elements of the list formals produces, not their content! Ales Ziberna - Original Message - From: BJ [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Monday, May 23, 2005 4:45 PM Subject: [R] formals or args question Hello again

Re: [R] survreg with numerical covariates

2005-04-27 Thread Ales Ziberna
As you can se from the example bellow, survreg works prefeclty fine with numerical values. (I'm runing R2.0.1 on WinXP(SP2) and 32bit AMD with survival version 2.17.). As the posting guide asks, plese provide a small example. Ales Ziberna library(survival) Loading required package: splines

Re: [R] the graph gallery strikes back

2005-04-18 Thread Ales Ziberna
Great work! Nice collection! For me everything worked, although I did't click on all the graphs! Thans! - Original Message - From: Romain Francois [EMAIL PROTECTED] To: RHELP R-help@stat.math.ethz.ch; [EMAIL PROTECTED] Sent: Monday, April 18, 2005 11:29 AM Subject: [R] the graph gallery

Re: [R] Define local function

2005-04-15 Thread Ales Ziberna
for any suggestions, Ales Ziberna - Original Message - From: Gabor Grothendieck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Submissions to R help r-help@stat.math.ethz.ch Sent: Friday, April 15, 2005 5:05 PM Subject: Re: [R] Define local function On 4/15/05, Fernando Saldanha [EMAIL PROTECTED

Re: [R] Importing data into R

2005-04-07 Thread Ales Ziberna
can find on http://cran.planetmirror.com/contrib/extra/dcom/RSrv135.html (description) or http://cran.planetmirror.com/contrib/extra/dcom/RSrv135.exe (add-on). I hope this helps! Ales Ziberna - Original Message - From: Dave Evens [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent

Re: [R] Using kmeans given cluster centroids and data with NAs

2005-04-06 Thread Ales Ziberna
use k-means or any technique you which, since now you have a complete data-frame. However, for more reliable results, it is best to repeat imputations and analysis several times. I hope this helps! Ales Ziberna - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; r-help

Re: [R] tapply and NA value

2005-03-25 Thread Ales Ziberna
, possibly with a workable example, as the posting guide suggests: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html; I hope this helps in anyway, Ales Ziberna - Original Message - From: Leonardo Lami [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Friday, March

Re: [R] data frame excerption

2005-03-12 Thread Ales Ziberna
Yes it is! you should write: q1 - q[q$V31,] Since the data.frame has two indices, the first one indicating rows, which is what you need! Regards, Ales Ziberna - Original Message - From: Oleg Bartunov oleg@sai.msu.su To: R-help R-help@stat.math.ethz.ch Sent: Saturday, March 12, 2005 1:29

Re: [R] cuttree

2005-02-09 Thread Ales Ziberna
I am not sure if I understad you correctly. Are you inrested in getting a list of units that belond to each group? Then do: branches-cutree(hc,k=2) group1-which(branches==1) group2-which(branches==2) Hope this helps! Ales Ziberna - Original Message - From: T. Murlidharan Nair [EMAIL

Re: [R] Problems compiling (configure) R on Ubuntu linux (debian)

2005-02-06 Thread Ales Ziberna
Thanks to everybody for their valuble suggestions. Unfortunaty I currently can not use apt-get or similar, since I can not connect to the net using Ubuntu (modem problems). Thanks again to everybody! Ales Ziberna - Original Message - From: Dirk Eddelbuettel [EMAIL PROTECTED] To: Peter

Re: [R] Problems compiling (configure) R on Ubuntu linux (debian)

2005-02-06 Thread Ales Ziberna
/ubuntu/www/ However, R 2.0.1 requires some different packages or newer versions and therfore will not work! Thank you anyways for your answer! Ales Ziberna - Original Message - From: Dirk Eddelbuettel [EMAIL PROTECTED] To: Ales Ziberna [EMAIL PROTECTED] Cc: R-help r-help@stat.math.ethz.ch

Re: [R] how can draw probability density plot?

2004-11-16 Thread Ales Ziberna
I hope this is the direct operation you are looking for: curve(dnorm(x),from=-3,to=3) Best regards, Ales Ziberna - Original Message - From: LONG Yu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 15, 2004 1:26 PM Subject: [R] how can draw probability density plot

Re: [R] How to get mode (the most frequent value in distribution)?

2004-11-13 Thread Ales Ziberna
Maybe a litle simpler solution: x-rnorm(50) den-density(x) #see ?density for more details den$x[which(den$y==max(den$y))] Hope it helps, Ales Ziberna - Original Message - From: Gregor GORJANC [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 12, 2004 6:38 PM Subject: Re