Re: [R] Logical operator in R

2016-01-22 Thread Rmh
FAQ 7.31 in this case subtract the two numbers and see that they differ by about 1e-16 Sent from my iPhone > On Jan 22, 2016, at 10:46, li li wrote: > > Hi all, > I encountered the following strange phenomenon. > For some reason, the obs_p[1] and res1$st_p[89] have >

Re: [R] generate a list as follows: 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, . . . . ., n, n, n, n

2015-04-20 Thread Rmh
rep(1:n, each=4) Sent from my iPhone On Apr 19, 2015, at 09:44, John Sorkin jsor...@grecc.umaryland.edu wrote: Windows 7 64-bit R 3.1.3 RStudio 0.98.1103 I am trying to generate a list of length 4n which consists of the integers 1 to n repeated in groups of four, i.e. 1,1,1,1,

Re: [R] Superimposing graphs

2014-08-11 Thread Rmh
whoops P1- plot(grouped.data) Sent from my iPhone On Aug 11, 2014, at 5:06, Naser Jamil jamilnase...@gmail.com wrote: Dear R-user, May I seek your help to sort out a little problem. I have the following codes to draw two graphs. I want to superimpose the second one on each of the first

Re: [R] a knitr question

2014-07-29 Thread Rmh
on windows gui, right-click paste-without-prompt (or some similar phrasing) takes the prompts away. on ESS c-u c-u c-y takes the prompts away Rich Sent from my iPhone On Jul 29, 2014, at 22:17, Erin Hodgess erinm.hodg...@gmail.com wrote: I was thinking that for teaching, it may be

Re: [R] Mistakes in date conversion for future date/time (POSIXct)

2014-04-04 Thread Rmh
high probability you are in a daylight savings time problem. see the archives for repair strategies. probably it will be enforcing standard time on all measurements. Rich Sent from my iPhone On Apr 4, 2014, at 10:55, Winkler, Matthias matthias.wink...@ibp.fraunhofer.de wrote: Dear

Re: [R] Warning message for TukeyHSD test - error

2014-03-21 Thread Rmh
you have only 1 df for tryptophan. make it a factor and then all shoukd work. Sent from my iPhone On Mar 21, 2014, at 12:38, Valentina Lauria valentina.lau...@plymouth.ac.uk wrote: Dear R list, I am trying to fit a one way anova with just one factor and 3 levels. One of my levels is

Re: [R] Shiny error: connection reset by peer

2013-09-11 Thread Rmh
shiny uses browser features that internet explorer doesn't have. use either firefox or chrome. enter http://localhost:8100 to quit shiny, enter the escspe key in the R gui Sent from my iPhone On Sep 11, 2013, at 9:59, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Hello! I am

Re: [R] Display plot in Browser

2013-08-04 Thread Rmh
look at the shiny package on CRAN. it is from RStudio Rich Sent from my iPhone On Aug 4, 2013, at 4:34, Christofer Bogaso bogaso.christo...@gmail.com wrote: Hello again, I am exploring the option how I can display my plot (generated within R) in Browser (like IE, Chrome). Obviously one

Re: [R] .eps files and powerpoint

2013-07-25 Thread Rmh
/s/ujchnft7q3aa3pw/file2.eps I went over to his office and he could open both PPTX files on his laptop and both of the embedded EPS plots were viewable without issue. Can you open the PPTX file that I created above on your Windows instance? Marc On Jul 24, 2013, at 12:56 PM, Rmh r

Re: [R] .eps files and powerpoint

2013-07-24 Thread Rmh
office 2011 on mac, 2013 on windows. i see the same misbehavior in base and lattice. my standard simple test is plot(1:10) which is base. did you try the windows side yet? Rich Sent from my iPhone On Jul 24, 2013, at 13:22, Marc Schwartz marc_schwa...@me.com wrote: Hi Rich, That's

Re: [R] Export R generated tables and figures to MS Word

2013-03-12 Thread Rmh
you are describing SWord, distributed at rcom.univie.ac.at Sent from my iPhone On Mar 12, 2013, at 20:02, Santosh santosh2...@gmail.com wrote: Dear Rxperts, I am aware of Sweave that generates reports into a pdf, but do know of any tools to generate to export to a MS Word document... Is

Re: [R] Creating a Double Bar Graph With Provided DataSet

2013-02-16 Thread Rmh
You could use the likert plot in the HH package. Look particulsrly at the population pyramid example. Sent from my iPhone On Feb 16, 2013, at 2:31, Brian Ngo brianng...@csu.fullerton.edu wrote: To the volunteers of R-Help. Hello, I am currently stuck on an RStudio assignment. The

Re: [R] Relative frequencies in table

2012-06-07 Thread Rmh
please look at the likert function in the HH package. It is designed for this type of study. ?likert has many examples similar to yours. Rich Sent from my iPhone On Jun 7, 2012, at 8:42, Patrick Hubers stomper...@gmail.com wrote: Hi, I'm trying to create a stacked bar plot with the

Re: [R] How to create a floating bar plot

2012-06-01 Thread Rmh
yes it handles completely on one side. your sample included that case. Sent from my iPhone On Jun 1, 2012, at 2:15, Roberto Brunelli roby.brune...@gmail.com wrote: Thanks to both of you, close to the solution, but I think that your proposals do not address the case when a bar is completely

Re: [R] Fisher's LSD multiple comparisons in a two-way ANOVA

2012-04-03 Thread Rmh
yes. See ?glht in the multcomp package, and the examples using glht in ?MMC in the HH package. Sent from my iPhone On Apr 3, 2012, at 6:16, Jinsong Zhao jsz...@yeah.net wrote: Hi there, Is there a function that can do a Fisher's LSD multiple comparisons in a two-way ANOVA? I hope to get

Re: [R] ANCOVA post-hoc test

2012-02-12 Thread Rmh
ancova in HH is a wrapper for aov that displays a set of lattice plots. the problem you are seeing is probably that glht ignores covariates (with an appropriate message) unless you specify an optional argument. I will reply in more detail when i am at my computer. in the meantime, look at ?glht

Re: [R] Multiple R linear models into one Latex table

2011-08-22 Thread Rmh
please look at the latex() function in package Hmisc. Sent from my iPhone On Aug 22, 2011, at 0:55, Alex Ruiz Euler rruizeu...@ucsd.edu wrote: Dear community, I had been looking for an easy way to produce latex tables from R output. xtable() and the package apsrtable produce good

Re: [R] save ordinary numerical calculations as pdf

2011-03-30 Thread Rmh
The latex() function in the Hmisc package will typeset your objects. Embed that in a tex document and run pdflatex. Rich Sent from my iPhone On Mar 30, 2011, at 5:51, Maas James Dr (MED) j.m...@uea.ac.uk wrote: I'd like to save some calculation outputs as a pdf, to incorporate with others

Re: [R] Integration of two lines

2011-01-25 Thread Rmh
g - function(x) abs(f1(x)-f2(x)) now you have one function and you can integrate it. Rich Sent from my iPhone On Jan 25, 2011, at 7:32, Xavier Robin xavier.ro...@unige.ch wrote: Hello, I need to integrate the absolute difference between two lines measured on different points. # For