Re: [R] Error running lda example from Help File (MASS library )

2009-11-14 Thread Ronggui Huang
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Wincent Ronggui HUANG Doctoral Candidate Dept of Public and Social Administration City University of Hong Kong http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] creating custom package and functions

2009-11-10 Thread Ronggui Huang
. -- Wincent Ronggui HUANG Doctoral Candidate Dept of Public and Social Administration City University of Hong Kong http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] RGtk2:::gdkColorToString throws an error

2009-10-20 Thread Ronggui Huang
the referred gdk library. Any information? Thank you. -- HUANG Ronggui, Wincent Doctoral Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org

Re: [R] CRAN (and crantastic) updates this week

2009-08-24 Thread Ronggui Huang
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong

Re: [R] Removing objects from workspace

2009-08-24 Thread Ronggui Huang
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD

Re: [R] multiple linear regression

2009-08-21 Thread Ronggui Huang
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] Estimate Discrete Choice Models with R

2009-08-15 Thread Ronggui Huang
glm can do probit regression, and glmer (lme4 package) and do mixed effect logit model. Ronggui 2009/8/16 Hongwei Dong pdxd...@gmail.com: Thanks for the replies. What I'm really interest in are the functions that can do GEV, probit, and mixed logit. I searched R, and I did find the function

Re: [R] why summary() does not work here???

2009-08-15 Thread Ronggui Huang
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org

Re: [R] prop.test() - need algorithm or reference

2009-08-13 Thread Ronggui Huang
-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R

Re: [R] Games in R

2009-08-12 Thread Ronggui Huang
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http

Re: [R] How to Import Excel file into R 2.9.0 version

2009-08-11 Thread Ronggui Huang
You can download it from http://treetron.googlepages.com/xlsreadwrite.htm Also, you may have a look at Data import/export manual, which has a relevant section. Ronggui 2009/8/11 rajclinasia r...@clinasia.com: Hi Every one, I have a problem with Reading Excel file into R 2.9.0 version

Re: [R] RES: Saving plots to file

2009-08-10 Thread Ronggui Huang
@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social

Re: [R] Example scripts for R Manual

2009-08-10 Thread Ronggui Huang
Is it really necessary? You can just copy the commands in the manual and paste them to R. Ronggui 2009/8/11 Peng Yu pengyu...@gmail.com: Hi, I am wondering if some experienced users would help put the ready-to-run code of the examples in the manuals. It would help new users  learn R faster

Re: [R] import data into R

2009-08-05 Thread Ronggui Huang
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] Comparison of Output from dwtest and durbin.watson

2009-08-04 Thread Ronggui Huang
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org

[R] status of boolean package

2009-08-03 Thread Ronggui Huang
FYI -- Forwarded message -- From: Bear Braumoeller braumoelle...@polisci.osu.edu Date: 2009/8/4 Subject: Re: Package boolean on CRAN To: c...@datanalytics.com c...@datanalytics.com Cc: Ronggui Huang ronggui.hu...@gmail.com, Ben Goodrich goodr...@fas.harvard.edu Gentlemen

Re: [R] Compare lm() to glm(family=poisson)

2009-08-02 Thread Ronggui Huang
In practices, it is not easy to make such decision. One example is size of social ties in social network study. It is very common to use OLS thought it is count variable rather than normal. I think AIC is suggestive as well. Ronggui 2009/8/2 Alain Zuur highs...@highstat.com: Mark Na wrote

[R] status of boolean?

2009-08-02 Thread Ronggui Huang
package of boolean has been removed from CRAN. Anyone know why? Thanks. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r

Re: [R] Likelihood Function for Multinomial Logistic Regression and its partial derivatives

2009-08-02 Thread Ronggui Huang
You may refer to mlogit for the ordinary multinomial regression. As fas as I know, there are no functions for multilevel multinomial regression. Ronggui 2009/8/2 nikolay12 nikola...@gmail.com: Hi, I would like to apply the L-BFGS optimization algorithm to compute the MLE of a multilevel

Re: [R] Collinearity in Linear Multiple Regression

2009-08-02 Thread Ronggui Huang
I think perturb:colldiag implementes condition index as well as variance decomposition proportions. Ronggui 2009/7/21 Stephan Kolassa stephan.kola...@gmx.de: Hi Alex, I personally have had more success with the (more complicated) collinearity diagnostics proposed by Belsley, Kuh Welsch

Re: [R] R book for economists

2009-08-01 Thread Ronggui Huang
How about Kleiber, C. Zeileis, A. Applied Econometrics with R Springer, 2008? Ronggui 2009/8/1 Thiemo Fetzer t...@devmag.net: Dear Group, I am an economics student starting with PhD work in London. As preparation I would like to get to know R a little bit better. For Stata there are tons

Re: [R] Installing lme4 package in Windows Vista

2009-07-28 Thread Ronggui Huang
Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Error in object$coefficients : $ operator not defined for this S4 class

2009-07-07 Thread Ronggui Huang
What is fit in your example? Ronggui 2009/7/7 aledanda danda.ga...@gmail.com: Hallo, I received this error message while calculating the coefficents coef(fit, matrix=TRUE) Error in object$coefficients : $ operator not defined for this S4 class what is this? How can I solve it? Ale

Re: [R] Error in object$coefficients : $ operator not defined for this S4 class

2009-07-07 Thread Ronggui Huang
/7/7 Alessandra Galli danda.ga...@gmail.com: Sure, sorry, I am fitting with beta distribution: y= rbeta(n - 1000, shape1=exp(0), shape2=exp(1)) fit = vglm (y ~ 1, betaff, trace =TRUE) Thanks 2009/7/7 Ronggui Huang ronggui.hu...@gmail.com What is fit in your example? Ronggui 2009/7/7

Re: [R] Correlation Network Diagram?

2009-07-03 Thread Ronggui Huang
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD

Re: [R] save the result into a word file

2009-07-03 Thread Ronggui Huang
How about export it to a HTML and then copy to MS word. I have packaged some code to export lm object to HTML in AJS style. You can have a look at ASAtable (http://r-forge.r-project.org/R/?group_id=328). Ronggui 2009/7/3 Suyan Tian st...@mail.rockefeller.edu: Hi, everyone: I forget on how

Re: [R] order by decerasing 1st variable and increasing 2nd variable

2009-06-24 Thread Ronggui Huang
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r

Re: [R] Urgent - odfWeave produces graphs /images with Read-Error

2009-06-17 Thread Ronggui Huang
If you use lattice to produce the figures, you need to wrap them in print, say, = print(xyplot(y~x,data=dat)) @ Ronggui 2009/6/17 Fredrik Karlsson dargo...@gmail.com: Dear list, I have been working on a report with around 60 images in it, and everything has been fine, until now. I find

Re: [R] The most straightfoward way to write a function that sums over the rows of a matrix

2009-06-16 Thread Ronggui Huang
Why not just use rowSums? Ronggui 2009/6/16 Stu @ AGS s...@agstechnet.com: Hello! I am trying to write a function with vector and data.frame parameters that uses the sum() function and values from the rows of the data.frame. I need to pass this function as a parameter to optim(). My

[R] How to capture output from a subprocess?

2009-06-13 Thread Ronggui Huang
sink(), but it doesn't work as what I want to capture is not a return from R. Thanks. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] Install local package

2009-06-11 Thread Ronggui Huang
## Check the package R CMD check path.of.package ## Build the package R CMD build pathof.package ## INSTALL the package R CMD INSTALL path.of.package You can use _R --help _ (from within terminal) to get more information. Ronggui 2009/6/11 Jorge Cornejo cornejo...@gmail.com: Hi, I'm

Re: [R] graphically representing frequency of words in a speech?

2009-06-10 Thread Ronggui Huang
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org

Re: [R] Vista + R = *!!?@

2009-06-10 Thread Ronggui Huang
lmer will not produce p-value but glmer does. So, if you want to estimate a lmm model, you can use lme in nlme package instead. Ronggui 2009/6/11 John Townsend-Mehler towns...@msu.edu: Hello People of R, Is there any way that I can get R to function properly using Vista.  I get very strange

Re: [R] Writing Reports from R in Office Open XML format (ooxmlWeave?)

2009-06-09 Thread Ronggui Huang
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] searchpaths

2009-06-09 Thread Ronggui Huang
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui

Re: [R] SECOND MESSAGE: Re: Question about R an SPSS

2009-06-08 Thread Ronggui Huang
can do it. Of course, R can read data of SPSS format by read.spss function in foreign package. Ronggui 2009/6/9 DIEGO CHAVEZ diego.cha...@andinanet.net: Sent: Sunday, June 07, 2009 5:43 PM  Subject: Question about R an SPSS  Dears Sirs:  Venables, Smith and  R-Development Core Team  I am

Re: [R] RGtk2 help: Show list of column names from dataset and categorize as factor or numeric

2009-06-04 Thread Ronggui Huang
I use gWidgetsRGtk2, which provides widgets such as notebook etc. You can start with gWidgetsRGtk2, and if you want to tailor the GUI according to your needs, you can modified them with RGtk2 package. Ronggui 2009/6/4 Harsh singhal...@gmail.com: Hi UseRs, I recently started working

Re: [R] (no subject)

2009-05-31 Thread Ronggui Huang
use _search()_ to see if the package is on the search path. If yes, use _detach(package:sn,unload=TRUE)_ to detach it and then try to install it again. Ronggui 2009/6/1 Roslina Zakaria zrosl...@yahoo.com: Hi R-users, I try to use sn package but it give me the following message

Re: [R] problem with ls command

2009-05-29 Thread Ronggui Huang
package:base ls(package:graphics) [1] abline arrows assocplot axis Ronggui 2009/5/29 anupam sinha anupam.cont...@gmail.com: Hi all ,           I am facing some problems with 'ls' command. Whenever I use it I get the following error : ls(KEGG.db) Error

Re: [R] GTK Tooltips under Linux

2009-05-29 Thread Ronggui Huang
Noted with thanks. Regards Ronggui 2009/5/29 Michael Lawrence mflaw...@fhcrc.org: On Thu, May 28, 2009 at 7:35 PM, Ronggui Huang ronggui.hu...@gmail.com wrote: Dear all, I want to set tool-tips for a gtkButton. I use the following code which works under Windows. However, it doesn't

[R] GTK Tooltips under Linux

2009-05-28 Thread Ronggui Huang
] tools_2.8.0 -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] R under Ubuntu

2009-05-26 Thread Ronggui Huang
I think it is standard practice. If you want R to load a workspace automatically when R is launched, you can add the command in .Rprofile. See ?Startup for more on Initialization at Start of an R Session. Ronggui 2009/5/26 Luis Ridao Cruz lu...@hav.fo: R-help, I have installed R under Ubuntu

Re: [R] split strings

2009-05-26 Thread Ronggui Huang
They look like file path, so you can make use of basename() first, then use gsub to strip the suffix. x-c(F:/Naval_Live_Oaks/2005/data//BE.tif,F:/Naval_Live_Oaks/2005/data//CH.tif) x2-sapply(x,basename,USE.NAMES=FALSE) gsub([.].{1,}$,,x2) [1] BE CH Ronggui 2009/5/26 Monica Pisica pisican

Re: [R] Draw a rectangle on top of an image using RGtk2?

2009-05-25 Thread Ronggui Huang
I see. So if I want to draw a rectangle by a function outside the expose_fn, I need to refer to the drawable within the expose_fn. One possibility is to use an environment, so I can refer to it dynamically. Thanks, Ronggui 2009/5/25 Michael Lawrence mflaw...@fhcrc.org: On Sat, May 23, 2009

[R] Draw a rectangle on top of an image using RGtk2?

2009-05-23 Thread Ronggui Huang
selected. I need some hints on what functions should I look for. I tried to google but don't know how. Thanks. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] Draw a rectangle on top of an image using RGtk2?

2009-05-23 Thread Ronggui Huang
(da,expose-event,expose_fn) w-gtkWindow(show=F) w$SetSizeRequest(400,300) w$Add(da) w$Show() dgc - gdkGCNew(da2) gdkGCSetLineAttributes(dgc, line.width=2, line.style=solid,round,round) gdkDrawRectangle(da2,dgc,FALSE,10,10,100,100) Ronggui 2009/5/23 Michael Lawrence mflaw...@fhcrc.org: On Fri

Re: [R] Trouble installing package 'systemfit'

2009-05-20 Thread Ronggui Huang
Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Remove objects names like character String

2009-05-19 Thread Ronggui Huang
)) Ronggui 2009/5/19 Katharina May may.kathar...@googlemail.com: Hi, how can I use rm() on objects named like: paste(site,i,_data,sep=) while looping through i? I tried rm(paste(site,i,_data,sep=)) but I get the error that rm() must contain names or text strings which is confusing me as I

Re: [R] How do you save in R?

2009-05-18 Thread ronggui
. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Do you use R for data manipulation?

2009-05-11 Thread ronggui
, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https

Re: [R] Splitting a vector into equal groups

2009-05-04 Thread ronggui
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public

[R] Encoding issue with replacement operation

2009-05-03 Thread ronggui
character with ' in it Encoding(x) - UTF-8 Sys.setlocale(,CHS) gsub(','',x) ## It would be great if I can achieve the same effect without the suitable locales setting (e.g. even the Sys.setlocale(,English) instead of Sys.setlocale(,CHS)). Is it possible? Thanks. -- HUANG Ronggui, Wincent PhD

Re: [R] evaluate a expression

2009-05-02 Thread ronggui
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration

Re: [R] issue building my own package... moving from Apple OS to Windows

2009-04-24 Thread ronggui
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University

Re: [R] issue building my own package... moving from Apple OS to Windows

2009-04-24 Thread ronggui
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] to extract data

2009-04-20 Thread ronggui
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate

Re: [R] explicit documentation (was: get() versus getAnywhere())

2009-04-19 Thread ronggui
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html

Re: [R] Neural Networks in R - Query

2009-04-18 Thread ronggui
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public

Re: [R] Using trace

2009-04-17 Thread ronggui
figure out how to use it to handle this most elementary and standard case.  Clearly I'm missing something.              -s On Thu, Apr 16, 2009 at 9:26 PM, ronggui ronggui.hu...@gmail.com wrote: Can you just print what you need to know? For example: fact - function(x) { + if(x1) ans - 1 else

Re: [R] source code for prompt()

2009-04-17 Thread ronggui
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social

Re: [R] Using trace

2009-04-16 Thread ronggui
. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Equivalent to Stata egen

2009-04-16 Thread ronggui
, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list

Re: [R] (no subject)

2009-04-11 Thread ronggui
-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] re trieve R session?

2009-04-02 Thread ronggui
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home

Re: [R] How can I use R through command line?

2009-04-01 Thread ronggui
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page

Re: [R] package sowas

2009-03-22 Thread ronggui
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http

Re: [R] R: package sowas

2009-03-22 Thread ronggui
XP ? Thank you. Maura -Messaggio originale- Da: ronggui [mailto:ronggui.hu...@gmail.com] Inviato: dom 22/03/2009 10.47 A: mau...@alice.it; r-help@r-project.org Oggetto: Re: [R] package sowas There is a binary version for Windows in the homepage of it. http://www.cru.uea.ac.uk

Re: [R] Multilevel modeling using R

2009-03-17 Thread ronggui
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442

Re: [R] errors when install RSQLite

2009-03-17 Thread ronggui
. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html A sociologist is someone who, when a beautiful women enters the room and everybody look at her, looks

Re: [R] Multilevel modeling using R

2009-03-17 Thread ronggui
Regards, Tommy Research Assistant of HKIEd From: ronggui [mailto:ronggui.hu...@gmail.com] Sent: 17/3/2009 [Tue] 14:10 To: WONG, Ka Yau Cc: r-help@r-project.org Subject: Re: [R] Multilevel modeling using R You can use intervals to get the Confidence intervals

Re: [R] updating packages?

2009-03-13 Thread ronggui
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel

Re: [R] HAC corrected standard errors

2009-03-10 Thread ronggui
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social

Re: [R] R on netbooks et al?

2009-03-05 Thread ronggui
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social

Re: [R] Inference for R Spam

2009-02-24 Thread ronggui
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong

Re: [R] basic inquiry regarding write.csv

2009-02-17 Thread ronggui
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong Kong

Re: [R] basic inquiry regarding write.csv

2009-02-17 Thread ronggui
: thanks for your reply.. is there something wrong with the code i have? because it doesn't write the file in the directory that i am using... for (i in names(y)) {write.csv(y[[i]], file=paste(i, .csv, sep=,))} thanks again.. ronggui-2 wrote: If the file is a relative path

Re: [R] Chinese language R email list?

2009-02-10 Thread ronggui
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong Kong Homepage: http://ronggui.huang.googlepages.com

Re: [R] Frequency and summary statistics table with different variables and categories

2009-01-22 Thread ronggui
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social Administration City University of Hong Kong Homepage: http

Re: [R] converting a factor in numeric values with direct control of the numeric values

2009-01-17 Thread ronggui
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept of Public and Social

Re: [R] converting a factor in numeric values with direct control of the numeric values

2009-01-17 Thread ronggui
@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate Dept

[R] [R-pkgs] RQDA-0.1-6 is on CRAN

2009-01-03 Thread ronggui
relationship -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate, City University of Hong Kong Website: http://ronggui.huang.googlepages.com/ RQDA project: http://rqda.r-forge.r-project.org/ ___ R-packages mailing list r-packa...@r-project.org

Re: [R] QCA adn Fuzzy

2008-12-22 Thread ronggui
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate, City University of Hong Kong Website: http://ronggui.huang.googlepages.com/ RQDA project: http://rqda.r-forge.r

Re: [R] Functions in R like lincom and nlcom of Stata

2008-12-13 Thread ronggui
There is function for linear combination in car package as well. Best Ronggui On Sun, Dec 14, 2008 at 1:42 PM, Andrew Robinson a.robin...@ms.unimelb.edu.au wrote: estimable in the gmodels package provides point estimates, standard errors and confidence intervals for arbitrary linear

[R] How to mimic select.list using RGtk2/gWidgetsRGtk2?

2008-12-12 Thread ronggui
(). Any hints? Thanks. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate, City University of Hong Kong Website: http://ronggui.huang.googlepages.com/ RQDA project: http://rqda.r-forge.r-project.org/ __ R-help@r-project.org mailing list https

Re: [R] How to mimic select.list using RGtk2/gWidgetsRGtk2?

2008-12-12 Thread ronggui
on the resultant widget ## How can can re-scale the width of the resultant widget? ## thanks. Ronggui On Sat, Dec 13, 2008 at 1:12 PM, John Verzani verz...@math.csi.cuny.edu wrote: ronggui ronggui.huang at gmail.com writes: I want to write a function mimic the function of select.list(), here is my

[R] Sorting problem

2008-12-11 Thread ronggui
the permutation other than the sorted vector. ## order(X) works in windows but not Linux. any alternative way to the the permutation? -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 PhD Candidate, City University of Hong Kong Website: http://ronggui.huang.googlepages.com/ RQDA project: http://rqda.r

Re: [R] Sorting problem

2008-12-11 Thread ronggui
Sorry for the last post. I didn't use the latest version of R. It works under Linux as well for R-2.8.0 patch. Best On Thu, Dec 11, 2008 at 11:34 PM, ronggui [EMAIL PROTECTED] wrote: Sys.setlocale(,C) x1 - as.character(date()) # I use date to record the time, and save it to sqlite database

[R] about body-

2008-11-30 Thread ronggui
), value), envir) : invalid formal argument list for function I want to construct a function by computing, what I do at this moment is as follows: f - function(x) {} body(f)[[2]] - quote(x- x^5) body(f)[[3]] - quote(return(y)) Is there a better way to do this? Thanks -- HUANG Ronggui

[R] [R-pkgs] RQDA-0.1.5 is released

2008-11-23 Thread ronggui
/ Comments and suggestions are welcome:) -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 Ph.D. Candidate, CityU of HK Master of sociology, Fudan University, China Bachelor of Social Work, Fudan University, China Personal homepage: http://ronggui.huang.googlepages.com

Re: [R] Citing R in journal articles (or the failure to)

2008-11-12 Thread ronggui
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 Ph.D. Candidate, CityU of HK

Re: [R] Returning a vector from by

2008-11-03 Thread ronggui
If you just want that result, you can try tapply instead of by. tapply(res$Score,res$ID,max) a b 2 1 On Mon, Nov 3, 2008 at 7:31 PM, Daniel Brewer [EMAIL PROTECTED] wrote: Hello, I am trying to return a vector from a simply by but I cannot get it working, even using simplify=TRUE. res -

Re: [R] how to count unique observations by variables

2008-10-16 Thread ronggui
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 Ph.D. Candidate, CityU of HK Master of sociology, Fudan University, China Bachelor of Social Work

Re: [R] IIA test on multinomial logit

2008-10-14 Thread ronggui
, self-contained, reproducible code. -- HUANG Ronggui, Wincent Tel: (00852) 3442 3832 Ph.D. Candidate, CityU of HK Master of sociology, Fudan University, China Bachelor of Social Work, Fudan University, China Personal homepage: http://ronggui.huang.googlepages.com

Re: [R] Problem of installing Matrix

2008-06-07 Thread ronggui
. On Sat, 7 Jun 2008, ronggui wrote: [EMAIL PROTECTED] MAKE=gmake [EMAIL PROTECTED] R . install.packages(Matrix) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://bibs.snu.ac.kr/R/src/contrib/Matrix_0.999375-9.tar.gz

[R] Problem of installing Matrix

2008-06-06 Thread ronggui
, freebsd7.0 status major 2 minor 6.1 year 2007 month 11 day26 svn rev43537 language R version.string R version 2.6.1 (2007-11-26) -- HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/ Bachelor of Social Work, Fudan University

Re: [R] Insert a recorde into a table using SQL

2008-05-12 Thread ronggui
consisting of two single quotes enc - function(x) gsub(', '', x) dbGetQuery(con,sprintf(insert into dd (txt) values ('%s'), enc(dd[2,1]))) On Mon, May 12, 2008 at 1:54 AM, ronggui [EMAIL PROTECTED] wrote: Dear list, I want to insert a recorde into a SQLite table by dbGetQuery

Re: [R] Not to draw the xaxis ticks in ggplot2

2008-05-11 Thread ronggui
Thanks. It is helpful. Best On Mon, May 12, 2008 at 4:34 AM, Paul Murrell [EMAIL PROTECTED] wrote: Hi ronggui wrote: Thanks,Hadley. Another question is how can I know there is a grob path called xaxis::ticks? Is there any easy way to figure out? grid.ls() ? Paul Thanks

[R] Insert a recorde into a table using SQL

2008-05-11 Thread ronggui
can I insert a (key, value) pair into a table by dbGetQuery? Thanks. -- HUANG Ronggui, Wincent Bachelor of Social Work, Fudan University, China Master of sociology, Fudan University, China Ph.D. Candidate, CityU of HK. __ R-help@r-project.org mailing

Re: [R] Not to draw the xaxis ticks in ggplot2

2008-05-09 Thread ronggui
Thanks,Hadley. Another question is how can I know there is a grob path called xaxis::ticks? Is there any easy way to figure out? Thanks in advance. On Wed, May 7, 2008 at 10:06 PM, hadley wickham [EMAIL PROTECTED] wrote: On Tue, May 6, 2008 at 11:44 PM, ronggui [EMAIL PROTECTED] wrote

Re: [R] question about subseting a dataframe

2008-05-09 Thread ronggui
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- HUANG Ronggui, Wincent Bachelor of Social Work, Fudan University, China Master of sociology, Fudan University, China Ph.D. Candidate, CityU of HK, http://www.cityu.edu.hk/sa/psa_web2006

  1   2   >