Re: [R] lattice strip.custom function

2015-07-04 Thread Bert Gunter
1. Please do not post in HTML. This is a plain text list and it can get mangled. 2. Thank you for the example data and code. The problem is -- see the Help for strip.custom() -- that strip.custom() wants a character vector or expression for the factor.levels argument. But... > str(dist.names) F

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-04 Thread ProfJCNash
n163 <- mpfr(163, 500) is how I set up the number. JN On 15-07-04 05:10 PM, Ravi Varadhan wrote: >> What about numeric constants, like `163'? >> >> eval(Pre(exp(sqrt(163)*pi), 120))does not work. >> >> Thanks, >> Ravi >> >> From: David Winsemius

[R] lattice strip.custom function

2015-07-04 Thread Naresh Gurbuxani
I would like to use a mapping to name panel strips. Directly using mapping table does not work. What is the problem here? my.df <- data.frame(x = rnorm(100, mean = 0, sd = 2), name = "A") my.df <- rbind(my.df, data.frame(x = rnorm(100, mean = 0, sd = 4), name = "B")) my.df <- rbind(my.df, data.f

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-04 Thread Ravi Varadhan
What about numeric constants, like `163'? eval(Pre(exp(sqrt(163)*pi), 120))does not work. Thanks, Ravi From: David Winsemius Sent: Saturday, July 4, 2015 1:12 PM To: Duncan Murdoch Cc: r-help; John Nash; Ravi Varadhan Subject: Re: [R] : Ramanujan a

Re: [R] what constitutes a 'complete sentence'?

2015-07-04 Thread Rolf Turner
On 05/07/15 01:09, mxkuhn wrote: Whenever I find a new rule or test with R CMD check, I tell myself that it must be there because of some previous issue, i.e. they probably had a good reason. I can't imagine what damage an incomplete sentence caused beyond a bruised aura. Fortune nomination

Re: [R] Matrix Manipulation R

2015-07-04 Thread David Winsemius
> On Jul 4, 2015, at 3:09 AM, Alex Kim wrote: > > Hi guys, > > Suppose I have an extremely large data frame with 2 columns and .5 mil > rows. For example, the last 6 rows may look like this: > . > .. > ... > 89 100 > 93 120 > 95 125 > 101NA > 115NA > 123

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-04 Thread David Winsemius
> On Jul 4, 2015, at 12:20 AM, Duncan Murdoch wrote: > > On 04/07/2015 8:21 AM, David Winsemius wrote: >> >>> On Jul 3, 2015, at 11:05 PM, Duncan Murdoch >>> wrote: >>> >>> On 04/07/2015 3:45 AM, David Winsemius wrote: > On Jul 3, 2015, at 5:08 PM, David Winsemius > wrote: >>

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-04 Thread Gabor Grothendieck
You can do that with bc if you pass the entire expression to bc(...) in quotes but in that case you will have to use bc notation, not R notation so, for example, exp is e and atan is a. > library(bc) > bc("e(sqrt(163)*4*a(1))") [1] "262537412640768743.2500725971981856888793538563373369

[R] Matrix Manipulation

2015-07-04 Thread Alex Kim via R-help
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to output

Re: [R] what constitutes a 'complete sentence'?

2015-07-04 Thread mxkuhn
I encountered this a few months ago and, in my case, the sentence had a noun and verb but lacked a period at the end of the sentence. I tested that 'blah blah blah.' would have passed in that version of R-devel. Whenever I find a new rule or test with R CMD check, I tell myself that it must be

Re: [R] Downloading xls with active batons

2015-07-04 Thread Peter Maclean
I am trying to download data from here: www.bls.gov/emp/ep_table_109.htm I have tried using some packages (such as gdata, xlsx, XLConnext, and r2excell) that read xls files and all failed. The error is related to the file format or the presence of active batons in the header. Reading the file fro

[R] Matrix Manipulation R

2015-07-04 Thread Alex Kim
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to output

[R] Matrix Manipulation R

2015-07-04 Thread Alex Kim
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to output

Re: [R] Lattice: set col = "black" for box.rectangle and box.umbrella

2015-07-04 Thread Rich Shepard
On Sat, 4 Jul 2015, Duncan Mackay wrote: Just a thought Have you set pch colour values somewhere else? Duncan, Not on purpose. see also https://stat.ethz.ch/pipermail/r-help/2010-March/230329.html Will do. Thanks, Rich __ R-help@r-project

Re: [R] matrix -> delete last row -> list

2015-07-04 Thread Michael Sumner
Well 'list' in R is pretty naturally the same as R's 'atomic vector' in scads of languages. In R the term needs special care since it's still a 'vector'. 'Degenerate dimension' is probably a helpful phrase for understanding what is happening here. Cheers, Mike On Saturday, July 4, 2015, Rolf Tur

Re: [R] timePlot legend

2015-07-04 Thread Jim Lemon
Hi ulasim77, At a guess, what you want is to move the legend from beneath the plot to the right side. As none of the examples from the "plotTime" function seem to work, I'll have to use something simpler: par(mar=c(5,4,4,8)) plot(1:5) legend(5.4,3.2,c("First","Second","Third"),lty=1:3,col=1:3,pch=

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-04 Thread Duncan Murdoch
On 04/07/2015 8:21 AM, David Winsemius wrote: > >> On Jul 3, 2015, at 11:05 PM, Duncan Murdoch wrote: >> >> On 04/07/2015 3:45 AM, David Winsemius wrote: >>> On Jul 3, 2015, at 5:08 PM, David Winsemius wrote: It doesn’t appear to me that mpfr was ever designed to handle