Re: [R] R and ViM

2006-04-21 Thread Bill West
Yes, my r.vim ftplugin file is a windows only solution. It is not yet at the point, however, where it may be called a "solution". :) It currently only handles single lines of code. I posted it before only as a proof of concept. I should have been clearer in my earier post. For my Linux co

Re: [R] R and ViM

2006-04-19 Thread Bill West
Here is my solution for integrating R and Vim. It uses the rcom library and Vim's perl functionality. Improvements or suggestions are appreciated! ### The following is my r.vim file. This requires the rcom library in R. perl << EOF sub sendtor { use Win32::OLE; my @pos = $curwin->C

Re: [R] combine two columns

2005-11-29 Thread Bill West
Yet another way... a<-matrix(c(1,1,1,1,1,1,2,1,2,1,2,2),nr=2) x<-c("A","B","C") colnames(a)<-sort(rep(x,2)) compare<-function(x,a){all(a[1,colnames(a)==x]==a[1,x][1])} v<-function(y,x,compare,a){sapply(x,compare,a=a[y,,drop=F])} t(sapply(1:nrow(a),v,x,compare,a)) --Bill -Original Message---

[R] Has anyone written scripts to read CPS data?

2005-10-10 Thread Bill West
Hello, Has anyone ever written the R code that would extract data from the CPS March Supplements? If not, I'll give it a go. --Bill __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

RE: [R] removing characters from a string

2005-04-12 Thread Bill West
gsub("[^0-9]","","ab9c81") HTH --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Liaw, Andy Sent: Tuesday, April 12, 2005 9:03 AM To: 'Vivek Rao'; r-help@stat.math.ethz.ch Subject: RE: [R] removing characters from a string Just gsub() non-numerics w

[R] wrong signs using MNP.

2005-04-02 Thread Bill West
Hi, I recently found the MNP package. Out of curiosity, I tried to reproduce results from Greene (Econometric Analysis, fourth edition) on page 874. The signs of the estimates are all opposite those of Greene's table. Might anyone be able to tell me what I am doing wrong? I have attached the

[R] Double Sided Box-Cox models?

2004-10-28 Thread Bill West
Hello! This is my first post to the help list; I have been using R only for a couple of months. I have been able to find answers to most questions through the archives, but I have not seen any posts about double sided Box-Cox models. Is there any way to run do this in R? Thanks, --Bill West