Re: [R] R argparse: Line breaks in description

2014-12-09 Thread Dario Beraldi
On 27 November 2014 at 09:07, Dario Beraldi dario.bera...@gmail.com wrote: Hello, I'm using the R package argparse to parse command line arguments. For readability, I'd like to add line breaks in the description of the script and in the help of the arguments. However, I can't do it... Let's

Re: [R] RCurl much faster than base R

2014-12-09 Thread Martin Morgan
On 12/05/2014 08:12 AM, Alex Gutteridge wrote: I'm trying to debug a curious network issue, I wonder if anyone can help me as I (and my local sysadmin) am stumped: This base R command takes ~1 minute to complete: readLines(url(http://bioconductor.org/biocLite.R;)) (biocLite.R is a couple of

[R] DIF

2014-12-09 Thread munevver kaya
Hello, I will analyze polytomous differential item functioning for IRT. I have a Likert type scale. For example, I want to analyze items in term of gender. Is lordifsufficient for this or are there any other packages in R programme? Best Regards, [[alternative HTML version deleted]]

Re: [R] Finding unique elements faster

2014-12-09 Thread apeshifter
Thank you all for your suggestions! I must say I am amazed by the number of people who consider helping out another! Fells like it was a good idea to start using R - back when I was still using Perl for such tasks, I'd been happy to have this kind of support! @ Gheorghe Postelnicu: Unfortunately,

[R] Validation data critically small with GSIF

2014-12-09 Thread Chiara Vallebona
I'm trying to make spatial prediction of rainfall erosivity (data from 23 Rainfall gauges) with GSIF package (RK method). I got this error message (and no prediction): Error in validObject(.Object) : invalid class SpatialPredictions object: Validation data critically small (50) for reliable

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Kate Ignatius
Thanks! I do get several errors though when running on Linux. Running your code, I get this: Error in system(cmd, intern = TRUE, wait = TRUE) : error in running command Fiddling around with the code and running this: tmp - matrix(1:9,3,3) tmp.tex - latex(tmp, file='tmp.tex')

[R] Inconsistency of S4 dispatch behavior for R6 classes

2014-12-09 Thread Janko Thyson
Dear list, as a week has passed now after filing an issue for package R6 ( https://github.com/wch/R6/issues/36), I thought it's okay to go ahead and ask a bigger audience about their opinion/suggestions for a general solution and/or good workarounds: Actual questions 1. Shouldn't the fact

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Jeff Newmiller
pdflatex appears to have run, because it exited. You should look at the tex log file, the problem is more likely that the latex you sent out to pdflatex was incomplete. --- Jeff NewmillerThe .

Re: [R] Validation data critically small with GSIF

2014-12-09 Thread Jeff Newmiller
Most packages are independent contributions. Their maintainers may or may not monitor this list. Please read the Posting Guide. See ?maintainer. The package author felt that this warning was necessary to prevent its misuse. You will likely have to learn first what the limits of the algorithms

[R] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
Hi, I would like to add a dash (—) on a letter in R. How can I add a dash on letter P in the following: mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, line=1, cex=1.3, col=black) ?plotmath could not provide an answer to my problem. many thanks for your

Re: [R] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
I got the right answer: mtext(text=expression(Winter(DJF)~mean~daily~precipitation~bar(italic(P))), side=3, line=1, cex=1.3, col=black) Thanks. On Tuesday, December 9, 2014 1:28 PM, Zilefac Elvis zilefacel...@yahoo.com wrote: Hi, I would like to add a dash (—) on a letter in R. How can I

Re: [R] add symbol above letter in R

2014-12-09 Thread Duncan Murdoch
On 09/12/2014 2:28 PM, Zilefac Elvis via R-help wrote: Hi, I would like to add a dash (—) on a letter in R. How can I add a dash on letter P in the following: mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, line=1, cex=1.3, col=black) ?plotmath could not

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Richard M. Heiberger
It looks like you skipped the step of setting the options. the latex function doesn't do pdflatex (by default it does regular latex) unless you set the options as I indicated. On Tue, Dec 9, 2014 at 3:11 PM, Kate Ignatius kate.ignat...@gmail.com wrote: Ah yes, you're right. The log has this

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Kate Ignatius
Ah yes, you're right. The log has this error: ! LaTeX Error: Missing \begin{document}. Though can't really find much online on how to resolve it. On Tue, Dec 9, 2014 at 1:15 PM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: pdflatex appears to have run, because it exited. You should look at

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Kate Ignatius
I set these options: options(latexcmd='pdflatex') options(dviExtension='pdf') options(xdvicmd='xdvi') Maybe one too many? I'm running in Linux. On Tue, Dec 9, 2014 at 3:24 PM, Richard M. Heiberger r...@temple.edu wrote: It looks like you skipped the step of setting the options. the latex

[R] waller test

2014-12-09 Thread Filippo Marolla
I am trying to run a duncan-waller test, but i don't get how to implement it. These my scripts based on dataframe lookout: attach(lookout) sqrt.res-sqrt(res.hr.km) bartlett.test(sqrt.res~time_slot)#no homoscedasticity welchtest-oneway.test(sqrt.res~time_slot)#means are differents

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Richard M. Heiberger
the last one is wrong. That is the one for which I don't know the right answer on linux. 'xdvi' displays dvi files. you need to display a pdf file. whatever is the right program on linux to display pdf files is what belongs there. On Macintosh we can avoid knowing by using 'open', which means

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Prof Brian Ripley
On 09/12/2014 20:47, Richard M. Heiberger wrote: the last one is wrong. That is the one for which I don't know the right answer on linux. 'xdvi' displays dvi files. you need to display a pdf file. whatever is the right program on linux to display pdf files is what belongs there. On Macintosh

Re: [R] DIF

2014-12-09 Thread Richard M. Heiberger
I recommend the likert() function in the HH package. install.packages(HH) library(HH) ?likert On Tue, Dec 9, 2014 at 3:22 AM, munevver kaya munevver.r...@gmail.com wrote: Hello, I will analyze polytomous differential item functioning for IRT. I have a Likert type scale. For example, I want

Re: [R] DIF

2014-12-09 Thread Achim Zeileis
On Tue, 9 Dec 2014, Richard M. Heiberger wrote: I recommend the likert() function in the HH package. install.packages(HH) library(HH) ?likert I think this only visualizes the polytomous items but provides no formal inference for IRT modeling and DIF testing. For fitting polytomous IRT

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Henrik Bengtsson
I'm surprised no one mentioned alternatives to LaTeX, which is not necessarily installed on all systems and it's also quite a heavy-weight setup (100's-1000's MBs). An alternative is to output a table in Markdown or HTML and convert that to PDF. The poor man's HTML-to-PDF is to manually open the

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Kate Ignatius
Okay, all. I have it to work using this: library(Hmisc) options(latexcmd='pdflatex') options(dviExtension='pdf') options(xdvicmd='gnome-open') Running your simple code from above... by question is this: the pdf is saved in a tmp directory... where do I change the directory path? I thought it

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Ted Harding
The program 'gv' is installed on just about any linux system. It has many available options (one, which might be useful, being -watch, whose effect is that if the file being displayed is changed, e.g. by being over-written by a new file with the same name, then 'gv' automatically updates what it

Re: [R] Printing/Generating/Outputting a Table (Not Latex)

2014-12-09 Thread Richard M. Heiberger
?latex answers a lot of these questions. The design intent of the latex() function is to construct one table at a time in its own .tex flle. The user then collects these and inserts them into a full document, either manually or with Sweave. The individual table has no context and no caption. It

[R] Angle brackets ?plotmath

2014-12-09 Thread Zilefac Elvis via R-help
Hi All, Please, I would like to enclose T[min] using angle brackets in R. I have tried something like: mtext(text=expression(Winter(DJF)~daily~minimum~temperature~bold((italic(symbol(\341)T[min]symbol(\361), side=3, line=1, cex=1.3, col=black) but did not succeed. I learnt that adobe-type

Re: [R] Vignette from existing .pdf manual

2014-12-09 Thread Henrik Bengtsson
With recent versions of R there is no longer a need to trick R with dummy Rnw files etc. Instead, try the following: 1. Put your rSARP.tex file in vignettes/, i.e. vignettes/rSARP.tex. If you have other files that the LaTeX file depends on (e.g. figures), these should also be put under

[R] rtmvnorm {tmvtnorm} seems broken

2014-12-09 Thread Tim Benham
General linear constraints don't seem to work. I get an error message if I have more constraint equations than variables. E.g. executing the following code print(R.version) library('tmvtnorm') cat('tmvtnorm version ') print(packageVersion('tmvtnorm')) ## Let's constrain our sample to the dwarfed

Re: [R-es] Optimizar paste0()?

2014-12-09 Thread Marcuzzi, Javier Rubén
Estimado Jorge Velez ¿Que pasa si usa sqldf que trabaja con sqlite o alguna conección a base de datos y realiza una concateneción en sql? Javier Marcuzzi El 09/12/2014 a las 09:46 a.m., Jorge I Velez escibió: Hola a todos, Me gustaria construir un vector a partir de otros dos. Ejemplo: x