Re: [R] How to run several scripts?

2009-12-17 Thread guohao.huang
Write a new script as the following source("path/1.R") source("path/2.R") R will execute these scripts in sequence. Guo-Hao Huang -- From: "kayj" Sent: Friday, December 18, 2009 3:01 AM To: Sub

Re: [R] How to apply five lines of code to ten dataframes?

2009-12-07 Thread guohao.huang
For example, tt1 = 2:4 ind = 1 evalstr = paste("xx = tt", ind, sep = "") eval(parse(text=evalstr)) ==> x = 2, 3, 4 It's easy for you to write a for loop to solve your problems Guo-Hao Hua

Re: [R] Subset sum problem.

2009-12-07 Thread guohao.huang
The problem is NP-Complete and the real problem is how you can solve it. According to the wiki page, you can use the bottom algorithm(Polynomial time approximate algorithm) to solve your problems. If you had trouble with writing R code, you can read ``R-introduction''. regards

Re: [R] savePlot for Mac and / or Linux?

2009-12-07 Thread guohao.huang
How about pressing ``Print Screen'' to capture image. However, the simple/smart solution for you is to output data and draw the same thing by other softwares. This can save you much time under any operating systems.

Re: [R] problems installing R packages

2009-12-02 Thread guohao.huang
The error messages indicated the ``zip.unpack'' problems. Try to download the zip file to your HD, and reinstall the package again. If this do not work, I hope that you can get a time machine.

Re: [R] problems installing R packages

2009-12-02 Thread guohao.huang
Could you install the latest R software in your computer? In R-2.9.2, install.packages("mprobit") works well. Guo-Hao Huang -- From: "c

Re: [R] Histogram probabilities >1 ????!!!

2009-12-02 Thread guohao.huang
Y-axis in your code is ``Counts'' irrelevant to probabilities. Guo-Hao Huang -- From: "Trafim" Sent: Wednesday, December 02, 2009 7:35 PM To: Subject: [

Re: [R] Problem with "Cannot compute correct p-values with ties"

2009-12-02 Thread guohao.huang
Please try to find answers by yourself You should not just post problems without thinking them. Huang, Guo-Hao -- From: "Zhijiang Wang" Sent: Wednesday, Dece

Re: [R] Learning R - View datasets

2009-11-27 Thread guohao.huang
Sorry, the correct link is the following http://cran.r-project.org/web/packages/Flury/Flury.pdf Guo-Hao, Huang -- From: "Mario Valle" Sent: Friday, November

Re: [R] Learning R - View datasets

2009-11-26 Thread guohao.huang
Please check the following pdf file. http://tw.nextmedia.com/applenews/article/art_id/32119622/IssueID/20091127 1. First install.packages("Flury") 2. library(Flury") 3. data("wines") 'wines’ is a data frame with 26 observations, one factor denoting the country of origin and 15 quantitative varia

Re: [R] set condition in R

2009-11-26 Thread guohao.huang
You can use the statements ``while( I < 523 || I > 535)'' instead. It will work fine. Guo-Hao Huang -- From: "Hongwei Dong" Sent: Friday, November 27, 2009 10:59 AM To:

Re: [R] rmutil

2009-09-15 Thread guohao.huang
I found the following files http://cran.r-project.org/src/contrib/Archive/rmutil/ If you have downloaded the package, you can execute ``R CMD INSTALL *.tar.gz'' command in console mode.