Re: [R] First time r user

2013-08-18 Thread Rainer Schuermann
It would be helpful if - you give us some sample data: dput( head( myData ) ) - tell us what kind of function you want to apply, or how the result looks like that you want to achieve - show us what you have done so far, and where you are stuck On Saturday 17 August 2013 19:33:08

Re: [R] First time r user

2013-08-18 Thread Steve Lianoglou
Hi, In addition to Rainer's suggestion (which are to give an small example of what your input data look like and an example of what you want to output), given the size of your input data, you might want to try to use the data.table package instead of plyr::ddply -- especially while you are

Re: [R] First time r user

2013-08-18 Thread Steve Lianoglou
Hi Paul, First: please keep your replies on list (use reply-all when replying to R-help lists) so that others can help but also the lists can be used as a resource for others. Now: On Aug 18, 2013, at 12:20 AM, Paul Bernal paulberna...@gmail.com wrote: Can R really handle millions of rows of

Re: [R] First time r user

2013-08-18 Thread Paul Bernal
Thanks a lot for the valuable information. Now my question would necessarily be, how many columns can R handle, provided that I have millions of rows and, in general, whats the maximum amount of rows and columns that R can effortlessly handle? Best regards and again thank you for the help, Paul

Re: [R] latin1 encoding in WriteXLS

2013-08-18 Thread Rainer Hurling
[maintainer CC'ed] Am 17.08.2013 11:28, schrieb Hugo Varet: Yes, it also occurs with WriteXLS version 3.2.1. This test on several computers always leads to the same error. Oops, sorry. I just realised that this happens on both Windows and Unix alikes. On Win7 I am using ActivePerl 5.16.3

Re: [R] First time r user

2013-08-18 Thread Steve Lianoglou
Hi Paul, On Sun, Aug 18, 2013 at 12:56 AM, Paul Bernal paulberna...@gmail.com wrote: Thanks a lot for the valuable information. Now my question would necessarily be, how many columns can R handle, provided that I have millions of rows and, in general, whats the maximum amount of rows and

Re: [R] First time r user

2013-08-18 Thread Paul Bernal
Thank you so much Steve. The computer I'm currently working with is a 32 bit windows 7 OS. And RAM is only 4GB so I guess thats a big limitation. El 18/08/2013 03:11, Steve Lianoglou lianoglou.st...@gene.com escribió: Hi Paul, On Sun, Aug 18, 2013 at 12:56 AM, Paul Bernal

Re: [R] Amelia, Zelig and latex in R

2013-08-18 Thread Francesco Sarracino
Dear Christopher, I have multiply imputed two data-set (let's say Africa1 and Africa2). Now I run 1 regression (let's call it: reg1) using the imputed data from Africa1 and 1 regression (let's call it: reg2) using the imputed data from Africa2. For these 2 regressions I use Zelig that

[R] escaping % in Rd files

2013-08-18 Thread Jim Lemon
Hi all, In trying to write an Rd file for a new package, I was stumped at something that is probably quite simple. I have % characters in the examples of one Rd file. Both my previous experience and some searching argeed that one can escape % with \. This worked on this command: fh_dates-

Re: [R] Error in Corpus() in tm package

2013-08-18 Thread Milan Bouchet-Valat
Le samedi 17 août 2013 à 11:16 -0700, Ajinkya Kale a écrit : It contains all text files which were converted from doc, docx, ppt etc. using libreoffice. Some of them are non-english text documents. Sorry I cannot share the corpus.. but if someone can shed light on what might cause this

Re: [R] Amelia, Zelig and latex in R

2013-08-18 Thread Christopher Desjardins
Seems you're after the pooled results. Would the following work? library(Amelia) library(Zelig) library(xtable) data(africa) m = 10 imp1 - amelia(x = africa,cs=country,m=m) imp2 - amelia(x = africa,cs=country,m=m) lm.imputed1 - zelig(gdp_pc ~ trade + civlib, model=ls,data = imp1) lm.imputed2

Re: [R] First time r user

2013-08-18 Thread Dylan Doyle
Hello all thank-you for your speedy replies , Here is the first few lines from the head function brewery_idbrewery_name review_time review_overall review_aroma review_appearance review_profilename 1 10325 Vecchio Birraio 12348178231.5 2.0 2.5

Re: [R] First time r user

2013-08-18 Thread Bert Gunter
This is ridiculous! Please read An Introduction to R (ships with R) or other online R tutorial. There are many good ones. There are also probably online courses. Please make an effort to learn the basics before posting further here. -- Bert On Sun, Aug 18, 2013 at 7:13 AM, Dylan Doyle

Re: [R] Error in Corpus() in tm package

2013-08-18 Thread Ajinkya Kale
I did exactly what you mentioned... tried subset of these documents and found out there were some junk non-txt files which were causing this issue. Everything worked fine with dirsource once I deleted them from the dir. But I feel these functions should also tell what file they are failing at

Re: [R] Error in Corpus() in tm package

2013-08-18 Thread Milan Bouchet-Valat
Le dimanche 18 août 2013 à 09:19 -0700, Ajinkya Kale a écrit : I did exactly what you mentioned... tried subset of these documents and found out there were some junk non-txt files which were causing this issue. Everything worked fine with dirsource once I deleted them from the dir. But I feel

Re: [R] First time r user

2013-08-18 Thread Steve Lianoglou
Yes, please do some reading first and give take a crack at your data first. This will only be a fruitful endeavor for you after you get some working knowledge of R. Hadley is compiling a nice book online that I think is very helpful to read through:

[R] How can I do nonparametric regression with multivariate dependent variables.

2013-08-18 Thread Ying Zheng
I have tried several commands in np package, like npregbw. I cannot find a command that can apply to the case with multivariate dependent variables. My original problem is to evaluate several conditional moments nonparametrically. That is E(y|x=x_0) with y a 2X1 variables. I cannot do them

Re: [R] Amelia, Zelig and latex in R

2013-08-18 Thread Francesco Sarracino
That's right! Your advice is in the right direction and with little adjustments it did the job. However, I admit it was tricky and the result looks a bit artisanal and needs some polishing that I will do by hand in the tex code. Is it possible that there is no way to get nicely latex formatted

Re: [R] First time r user

2013-08-18 Thread jwd
On Sun, 18 Aug 2013 02:56:56 -0500 Paul Bernal paulberna...@gmail.com wrote: Paul, I would suggest acquiring at least a small library of of books about R and reading them. I would recommend An Introduction to R and R Data Import/Export (both available online on the R Project Site in both pdf

Re: [R] Amelia, Zelig and latex in R

2013-08-18 Thread Christopher Desjardins
Hi, I am glad you could get it to work. I don't really know I usually just use xtable and any additional formatting I need done I do in my LaTeX editor. Perhaps there isn't a nice tex format out of the box for MI data. Once you write some nice code, you could keep reusing it or better yet package