Re: [R] 32bit R303 calls external C functions

2015-02-12 Thread Li, Yan
I meant R3.0.3. I need this package working in R3.0.3. I have 32bit and 64bit dlls both included in the package. -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: Thursday, February 12, 2015 1:01 PM To: Li, Yan; r-help@r-project.org Subject: Re: [R] 32bit

[R] 32bit R303 calls external C functions

2015-02-12 Thread Li, Yan
Dear All, I build a R package which will need to call external C functions. I registered the C functions in the NAMESPACE file and include 32bit and 64bit dlls in the packages. If I load the package in 64bit R and calls the external C functions, it works fine. However if I load the package in

[R] random forest application

2014-06-20 Thread Li, Yan
Hi All, Is anyone using random forest for predicting? Some people claimed that it will give more accurate result than decision tree. But considering it builds 500(by default) full trees, is it worth to use random forest to predict instead of decision tree? What typical applications of this

Re: [R] random forest application

2014-06-20 Thread Li, Yan
Thanks for the reply...Actually you answered my questionI just want to know how people use it... -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Friday, June 20, 2014 11:31 AM To: Li, Yan Cc: r-help@r-project.org Subject: Re: [R] random forest application

[R] Sample size for clustering analysis?

2013-11-05 Thread Li, Yan
Hi All, What formula can I use to determine the right sample size for clustering analysis with 100-300 variables? What sampling methodology can be used for k-means or hierarchical clustering on categorical fields so that all values of the categorical fields are included in the sample? Thanks

[R] Can ODBC or JDBC calls R?

2013-08-09 Thread Li, Yan
Hi R helpers, I know there are packages RODBC and RJDBC to enable R to access ODBC and JDBC data. Is there a package/software to do the reverse way: calling R from ODBC or JDBC? Thank you. Regards, Yan [[alternative HTML version deleted]]

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
is the draw back? Thanks you, Yan -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, August 01, 2013 12:08 PM To: Li, Yan; r-help@r-project.org Subject: RE: [R] algorithm for clustering categorical data Read up on Gower's Distance measures (available

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
Thanks David, This is very useful! -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Tuesday, August 06, 2013 11:27 AM To: Li, Yan; r-help@r-project.org Subject: RE: [R] algorithm for clustering categorical data What do you mean by representing the categorical

Re: [R] algorithm for clustering categorical data

2013-08-06 Thread Li, Yan
Thanks for the reply... For some reason, I need to keep Euclidean distance in the process... -Original Message- From: Martin Maechler [mailto:maech...@stat.math.ethz.ch] Sent: Tuesday, August 06, 2013 12:04 PM To: dcarl...@tamu.edu Cc: Li, Yan; r-help@r-project.org Subject: Re: [R

[R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
Hi All, Does anyone know what algorithm for clustering categorical variables? R packages? Which is the best? If a data has both numeric and categorical data, what is the best clustering algorithm to use and R package? I tried numeric transformation of all categorical fields and doing

Re: [R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
Great! Thanks! Yeah, I just use the usual way: as.numeric(..) for numeric transformation...seemed a standardization is needed. Thank you. -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: Thursday, August 01, 2013 12:08 PM To: Li, Yan; r-help@r-project.org Subject

Re: [R] algorithm for clustering categorical data

2013-08-01 Thread Li, Yan
Thanks for the reply From the link you provided, only two packages mentioned categorical field: depmix and depmixS4. I'll look at them. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, August 01, 2013 12:15 PM To: Li, Yan Cc: r-help@r

[R] R Package License

2013-07-17 Thread Li, Yan
HI Helpers, How could we use R and R packages licensed under GPL into commercial products? Is it allowed to load a library and get the results from it and using the results for commercial use? Thank you so much! Regards, Yan [[alternative HTML version deleted]]

[R] ksvm

2013-03-18 Thread Li, Yan
Hi All, I'm developing a ksvm application. I need to use the results obtained from ksvm in R to construct or restore the ksvm formula and further use this formula to predict new data. The ksvm class contains xmatrix, ymatrix, coefficients, alpha, b and fitted value. Taking linear svm as an

[R] asCairoDevice issue

2013-01-10 Thread Li, Yan
Hi All, I found this issue when using asCairoDevice to transforming splom scatter plot to my RGtk2 GUI: If I put the code in R GUI or using CairoPNG or Cairo_pdf() to draw the scatter plot, I can get it correctly: The codes are: (you can copy and paste to your R GUI) super.sym -

[R] how are the values in ksvm related to the svm formula ( the parameter for kernal function)

2012-11-06 Thread Li, Yan
Hi All, The svm formula, saying the simplest linear one: w*x+b=y. Where w is the normal vectors of the hyper plane and can be calculated by sum(alpha(i)*y(i)*x) The values of ksvm of kernlab has alpha, coef, ymatrix, xmatrix and b. b is sure the offset. How are the others related ? alpha =

Re: [R] Error : package is not installed for 'arch=x64'

2012-03-22 Thread Li, Yan
-dortmund.de] Sent: Sunday, March 18, 2012 1:29 PM To: Li, Yan Cc: r-help@r-project.org Subject: Re: [R] Error : package is not installed for 'arch=x64' On 13.03.2012 18:18, Li, Yan wrote: HI All, I got the error : package is not installed for 'arch=x64' when building my own package for 64bit R

[R] Error : package is not installed for 'arch=x64'

2012-03-13 Thread Li, Yan
HI All, I got the error : package is not installed for 'arch=x64' when building my own package for 64bit R. How can I configure the arch ? The 'R CMD config' does not work. Thank you very much! The detailed error is : ** testing if installed package can be loaded Error : package 'xxx' is not

Re: [R] cut data into sevral group and assign calculated values individually

2011-10-18 Thread Li, Yan
x 0 0 Thank you very much! Regards, Yan -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Tuesday, October 18, 2011 5:23 AM To: Li, Yan Cc: r-help@r-project.org Subject: Re: [R] cut data into sevral group and assign

[R] cut data into sevral group and assign calculated values individually

2011-10-17 Thread Li, Yan
Hi All, I have some data from which I set four points to be breaks. Based on these points, I cut the dataset into four groups and assign a number to it: =331.04 assign 0 331.04 =476.07 assign data-331.04/(476.07-331.04) 476.07=608.66 assign 1 608.66 =791.5 assign 791.5- data/(791.5-608.66)

[R] qcc package

2011-10-14 Thread Li, Yan
Hi All, I installed qcc package and the dependency packages. For the first time I can use the function : process.capability.sixpack(). But later when ran the code again I always got the following error: Error: could not find function process.capability.sixpack. I tried reinstalling the qcc

[R] iSeries and R

2011-09-01 Thread Li, Yan
Hi All, Does anyone has experiences installing R in iSeries? Does R supports iSeries? Any documentation on this topic? Thank you very much! Regards, Yan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] How to avoid conversion to factors (data frame to zoo)

2007-10-18 Thread Li, Yan (IED)
Hi all, I was trying to convert a data frame to a zoo object so I can use some time series functions like lag(). But it seems then everything became a factor, so I have to convert it back to numeric to run the correct regressions. Is there a way to avoid it? Here is an example:

[R] 3d plot with dates on axis

2007-09-24 Thread Li, Yan (IED)
Hi all, I'd like to make a 3D plot with dates on one of the axes. For example, date1 - as.Date(2007-01-25) + seq(10) y - seq(10) z - seq(10) I want to plot date1 on one axis, y on the other, and z as the height, with the points connected. Any help would be highly appreciated! Yan