[R-es] de pdf a csv

2016-09-10 Thread Dr. José A. Betancourt Bethencourt
Estimados En ocasionas hay informaciones epidemiológicas en reportes pdf semanales como el que adjunto que quisiéramos llevar a csv o txt USANDO R para poder analizarlas estadísticamente. Apreciaríamos su ayuda si nos diesen un script, el paquete pdftable no me resultó. Saludos José --

Re: [R] Matching/checking for occurence when values are double?

2016-09-10 Thread ruipbarradas
Actually, there was another reason for the function equal() but I wasn't remembering what. all.equal doesn't recycle its arguments, just see this example. equal <- function(x, y, eps = .Machine$double.eps^0.5) abs(x - y) < eps x <- seq(0, 1, by = 0.2) x == 0.6 all.equal(x, 0.6) equal(x, 0.6)

Re: [R] How to read a grib2 file

2016-09-10 Thread Michael Sumner
On Sat, 10 Sep 2016 at 07:12 Debasish Pai Mazumder wrote: > Hi > I am trying to read a grib2 file in R. > > Here is my script > > library(rgdal) > library(sp) > library(rNOMADS) > gribfile<-"tmax.01.2011040100.daily.grb2" > grib <- readGDAL(gribfile) > > I am getting following

[R] Architect from Open Analytics

2016-09-10 Thread Joysn71
Hello, i am new to R and try to use Architect from Open Analytics (0.9.8 on Debian 64bit).  Is anybody on this list using this tool? I am asking because it seems to have lots of problems, like: * not possible to open the package manager * not possible to open details from the "About Architect"

Re: [R] GGplot annotate by facet

2016-09-10 Thread John Kane
Hi Saad, Please have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html for some suggestions on how to ask a question on R-help In particular it would be handy to have some sample data in dput()

Re: [R] Apply a multi-variable function to a vector

2016-09-10 Thread Stephen Kennedy
Thanks. I have gotten some replies. One problem was that I was not passing the names of the vectors to expand.grid. I didn't think I had to do that and that caused problems with do.call. I wanted to just define the vectors of variables values, the function, func, and then pass that to

Re: [R] understanding with

2016-09-10 Thread peter dalgaard
> On 10 Sep 2016, at 08:27 , Jeff Newmiller wrote: > > > The with function is just helpful syntactic sugar for reducing repetitious > typing of the name of the list/data frame that contains several objects you > want to refer to in a single expression. A little

Re: [R] understanding with

2016-09-10 Thread Jeff Newmiller
Indeed, you don't have to write code with constructs you don't like, but you should be able to read it. Considerable effort under the label "scope" [1] is expended in programming language design specifically to allow re-use of variable names in different contexts. Because I do understand