[R] compare quality of clustering methods?

2010-10-30 Thread Khanh Nguyen
Hi, Suppose I want to compare the results of two clustering methods, what is the best way to do it? Thanks Regards, -k __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proj

Re: [R] R GUI

2010-04-12 Thread Khanh Nguyen
I have toyed with 'traitr' recently... It is not fancy, but relatively easy to figure out. -k On Mon, Apr 12, 2010 at 4:00 PM, Amitoj S. Chopra wrote: > > I am really new with R Graphical user interfacefunctions. I am developing a > software package to calculate pKa (biochemistry) but I want to

Re: [R] Running example in pkg-Ex.R failed

2010-03-27 Thread Khanh Nguyen
Basically, R is telling you that the source code of the package you are installing is troublesome.. It doesn't look like the codes is "clean".. There are warnings. Perhaps, you can try with a different version of the package? -k On Sat, Mar 27, 2010 at 12:27 PM, shruti wrote: > > Hi ,My name is

Re: [R] Calling R from c in Windows XP

2010-03-27 Thread Khanh Nguyen
What examples are you talking about. You only need to include ... More information is here http://dirk.eddelbuettel.com/code/rinside.html The other external thing you need is the Rcpp package, which you can do with install.packages('Rcpp') On Sat, Mar 27, 2010 at 11:40 AM, dkStevens wrote: > >

Re: [R] large dataset

2010-03-27 Thread Khanh Nguyen
This was *very* useful for me when I dealt with a 1.5Gb text file http://www.csc.fi/sivut/atcsc/arkisto/atcsc3_2007/ohjelmistot_html/R_and_large_data/ On Sat, Mar 27, 2010 at 5:19 AM, n.via...@libero.it wrote: > Hi I have a question, > as im not able to import a csv file which contains a big da

Re: [R] Calling R from c in Windows XP

2010-03-27 Thread Khanh Nguyen
Have you looked at RInside ? -k On Sat, Mar 27, 2010 at 10:53 AM, dkStevens wrote: > > I'm searching for answers to four questions (I've been searching the net for > hours...) > > In Windows XP, is it possible to call R functions from a c program? (I've > found examples for Linux/Unix but not Wi

Re: [R] Transfer R workspace on another PC

2010-03-09 Thread Khanh Nguyen
I don't have an answer, but I suggest 'session' package.. I use it to move my workspace around. Never had any problem before. -k On Tue, Mar 9, 2010 at 4:44 PM, Eleni Christodoulou wrote: > Hi list! > > I have recently tried to take my office work home, meaning that I tried to > transfer my "...

Re: [R] 'R' and 'Yield to Maturity'

2010-02-01 Thread Khanh Nguyen
You can look at package RQuantLib from here http://cran.r-project.org/web/views/Finance.html -k On Mon, Feb 1, 2010 at 4:43 AM, Madhavi Bhave wrote: > Dear R helpers > > I am calculating the 'Yield to Maturity' for the Bond with following > characteristics. > > Its a $1000 face value, 3 year bo

[R] Fwd: Creating a Clustered-Stacked Column Chart

2009-10-09 Thread Khanh Nguyen
-- Forwarded message -- From: Khanh Nguyen Date: Fri, Oct 9, 2009 at 10:10 PM Subject: Re: [R] Creating a Clustered-Stacked Column Chart To: zhijie zhang May be you can try to look into ggplot2 http://had.co.nz/ggplot2/position_fill.html -k On Fri, Oct 9, 2009 at 9:57 PM

Re: [R] row selection

2009-10-08 Thread Khanh Nguyen
The problem is your loop condition. For example, when i reaches (n-3), a[i + 5, ] is out of bounds. -k On Thu, Oct 8, 2009 at 4:14 PM, Ashta wrote: > Hi all, > I have a matrix named x with N by C > I want to select every 5 th rrow from matrix x > I used the following code > n<- nrow(x) > >

Re: [R] histogram

2009-10-08 Thread Khanh Nguyen
I see ! Thank you everyone for the responses. -k On Thu, Oct 8, 2009 at 4:55 PM, David Scott wrote: > Henrique Dallazuanna wrote: > >> Change the breaks argument: >> >> t1 <- hist(1:5, 0:5) >> t1$counts >> >> On Thu, Oct 8, 2009 at 4:47 PM, Khanh

[R] histogram

2009-10-08 Thread Khanh Nguyen
Hi all, I have a question about hist() 1) > t1 <- hist(c(1,2,3,4,5)) > t1 $breaks [1] 1 2 3 4 5 $counts [1] 2 1 1 1 why is there 2 counts for 1? And should the counts be '1 1 1 1 1' ? Is there any other function to count frequency of discrete data? Thanks. -k [[alternative HTML vers