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
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
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
, 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
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
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
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
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
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
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
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
,
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
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
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
'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
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
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
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
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
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
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
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
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.
- 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
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
,
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
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
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
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
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
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
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
.
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
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
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 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
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
, 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
. 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
) 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
#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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
/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
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
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
58 matches
Mail list logo