Re: [R] Fitting Mixture distributions

2016-09-12 Thread Bert Gunter
Do you mean "increase the convergence value." Decreasing it should make it harder to converge (I believe, depending on exactly how "convergence vaue" is defined, so doublecheck.) -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] Fitting Mixture distributions

2016-09-12 Thread Aanchal Sharma
Thanks for the reply. I have another related issue with Gamma mixture model. here is the description: I am trying to fit a 2 component gamma mixture model to my data (residual values obtained after running Generalized Linear Model), using following command (part of the code): expr_mix_gamma <-

Re: [R] How to read a grib2 file

2016-09-12 Thread Debasish Pai Mazumder
Thanks for your suggestion. I have checked and I don't have JPEG2000 in ggdalDrivers()). I am pretty new in R. I don't understand how to do I implement JPEG2000 (JP2OpenJPEG driver) in gdalDrivers() so that I can read grib2 files with regards -Deb On Sat, Sep 10, 2016 at 2:33 AM, Michael Sumner

Re: [R] Hausman Test

2016-09-12 Thread Ding, Jie Ding (NIH/NIA/ERP) [F]
Dear Achim, Sorry to have disturbed you. I have encountered a problem when computing Hausman test statistics (i.e. p values) in R to compare OLS and 2SLS models. The problem is a discrepancy between the two p-value outputs from the "manual approach (by hand)" and the " diagnostics argument"

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

2016-09-12 Thread Stephen Kennedy
Hello Jeff, I kept fooling with this, and also looking around the web and I actually found something on stackoverflow, which does what I had in mind. You mentioned that you would rarely use someting like this, but the link is:

[R] Arules Package: Rules subset with 'empty' left hand side (lhs)

2016-09-12 Thread Tom D. Harray
Hello, subsets of association rules (with respect to support, confidence, lift, or items) can be obtained with the arules::subset() function; e.g. rm(list = ls(all.names = TRUE)) library(arules) set.seed(42) x <- lapply(X = 1:500, FUN = function(i) sample(x = 1:10, size =

[R] [R-pkgs] stripless package version 1.0-2 now on CRAN

2016-09-12 Thread Bert Gunter
A vignette has been added to the package. I hope that even those who don’t use the package will find its discussion of trellis graphics useful. Otherwise, this is a minor update that fixes some bugs and adds a few small features. See the NEWS file for details. As always, comments and

Re: [R-es] calculo de datos de temperatura, openair u otra alternativa

2016-09-12 Thread Carlos Ortega
Hola, Como estás en Windows, tienes que instalarte unas utilidades que se llaman "Rtools" y que están en CRAN aquí: https://cran.r-project.org/bin/windows/Rtools/ Después de instalar esto de RTools, prueba a instalar de nuevo "data.table". De todas formas, incluso antes de instalar esto de

Re: [R-es] calculo de datos de temperatura, openair u otra alternativa

2016-09-12 Thread Javier Valdes Cantallopts (DGA)
Hola Carlos; Al instalar el paquete DATA.TABLE me sale el siguiente error … > install.packages("data.table") also installing the dependency ‘chron’ Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘chron’ ‘data.table’ These will not be installed

Re: [R] using a regular expression

2016-09-12 Thread Jeff Newmiller
If you think you might want to put this function into a package, it would be much better to use gsub instead of passing the job off to an external program, because non-POSIX operating systems (Windows) will be a headache to support. -- Sent from my phone. Please excuse my brevity. On September

Re: [R] commercial license

2016-09-12 Thread Fox, John
Dear Benjamin, Like R, the Rcmdr package is free software distributed under the GNU General Public License. For more information, type ?license at the R > command prompt. I hope this helps, John -- John Fox, Professor McMaster University Hamilton, Ontario,

Re: [R] (d,p,r,q) for all distributions, but no m?

2016-09-12 Thread Bert Gunter
No you may not. I suggest that you *first search before posting* -- e.g. on "R package moments of distributions" -- where you would find the package "moments" that apparently already does exactly what you suggest (there are some other packages as well). You could also first search the CRAN task

[R] (d,p,r,q) for all distributions, but no m?

2016-09-12 Thread ALBERTO VIEIRA FERREIRA MONTEIRO
Today I need to compute the means for some distributions... and there's no easy way to do it! I mean (no pun intended), there is (d,p,r,q) for all distributions (like: dgamma, pgamma, rgamma, qgamma; dchisq, pchisq, rchisq, dchisp; etc), but there is no "m"-functions, like a mgamma to get the

Re: [R] Where are the PCA outputs?

2016-09-12 Thread David L Carlson
At the risk of being redundant, the command prcomp(pcl, scale.=T) is the same as the command print(prcomp(pcl, scale.=T)). This passes the results of prcomp() to print() which prints some of them (whatever the function print.prcomp() is programmed to display) and then throws them away. To save

[R] (no subject)

2016-09-12 Thread Stefano Sofia
Thank you to Sarah Goslee and Ivan Calandra for their exhaustive explanations. About Ivan Calandra's suggestion to put data in the right format adding a column "station" with values being either RM or RT, I would ask Ivan if he means to divide the initial data frame into two data frames, one

Re: [R] commercial license

2016-09-12 Thread Barry Rowlingson
Why do you want a commercial license? The software is free of charge and free to use anywhere. If you want support of some kind, then you need to spell this out - there are companies and consultants who will support your R work for a price. On Mon, Sep 12, 2016 at 8:39 AM,

Re: [R] commercial license

2016-09-12 Thread Thierry Onkelinx
Dear Benjamin, Have a look at FAQ 2.11: https://cran.r-project.org/doc/FAQ/R-FAQ.html#Can-I-use-R-for-commercial-purposes_003f Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics &

[R] commercial license

2016-09-12 Thread benjamin . stocker
Dear r-project Team How does It cost a commercial license for the R Console and the R-comander GUI without the Rstudio enviroment. Thanks for helping me. Freundliche Gr�sse/Kind regards Benjamin Stocker Reporting/Controlling MBC Mercedes-Benz Schweiz AG Bernstrasse 55 8952

Re: [R] Where are the PCA outputs?

2016-09-12 Thread Charles Determan
Hi Nick, "prcomp" returns an object of class "prcomp" so when you simply 'print' the object it gets passed to the "print.prcomp" function. If you want to see all the objects you should assign the results to an object. Regards, Charles On Mon, Sep 12, 2016 at 7:56 AM, WRAY NICHOLAS

[R] Where are the PCA outputs?

2016-09-12 Thread WRAY NICHOLAS
Hi R Folk I have been kicking some data around and one thing has been to try a PC analysis on it, but whereas in the online examples I've looked at the prcomp function gives a set of five outputs when I use the prcomp function it only gives me a set of standard deviations and the rotation matrix

Re: [R-es] de pdf a csv

2016-09-12 Thread Carlos Ortega
Hola, Otra opción comentada "offline" ha sido la de: https://cloud.r-project.org/web/packages/pdftables/index.html Que permite conectar "R" con el servicio online que ofrece https://pdftables.com. Saludos, Carlos Ortega www.qualityexcellence.es El 12 de septiembre de 2016, 14:12, Isidro

Re: [R-es] de pdf a csv

2016-09-12 Thread Francisco Rodriguez Sanchez
Buenos días, Otra opción es el paquete tabulizer: https://github.com/ropenscilabs/tabulizer ¡Suerte! Paco El 11/09/2016 a las 11:05, Carlos Ortega escribió: Hola, ¿Has probado esto? https://cloud.r-project.org/web/packages/pdftools/index.html pdftools: Extract Text and Data from PDF

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Jeff Newmiller
Perhaps use the correct function. (Just one little letter off...) -- Sent from my phone. Please excuse my brevity. On September 11, 2016 10:57:39 PM PDT, Chris Evans wrote: >I am trying to read activity data created by Garmin. It outputs dates >like this: > >"Thu, 25 Aug

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread jeremiah rounds
Not sure what the issue is with the provided code but note: library(lubridate) lubridate::dmy_hm("Thu, 25 Aug 2016 6:34 PM") [1] "2016-08-25 18:34:00 UTC" Though if you go that route: set the TZ because on the timestamp it is ambiguous. On Sun, Sep 11, 2016 at 10:57 PM, Chris Evans

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread peter dalgaard
On 12 Sep 2016, at 12:33 , Chris Evans wrote: > OK. I'm an idiot (not for the first time and, sadly, no doubt not for the > last). strptime() was all that was needed: just that one pesky character and > I can't remember now why I went astray there, but thanks to all who

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Daniel Nordlund
On 9/11/2016 10:57 PM, Chris Evans wrote: I am trying to read activity data created by Garmin. It outputs dates like this: "Thu, 25 Aug 2016 6:34 PM" The problem that has stumped me is this: strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") Error in as.POSIXlt.character(x,

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Ismail SEZEN
It should be strptime for character vectors. strptime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p”) > On 12 Sep 2016, at 08:57, Chris Evans wrote: > >> strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") [[alternative HTML version

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread peter dalgaard
> On 12 Sep 2016, at 07:57 , Chris Evans wrote: > >> strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") strptime, not strftime... -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg,

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Enrico Schumann
On Mon, 12 Sep 2016, Chris Evans writes: > I am trying to read activity data created by Garmin. It outputs dates like > this: > > "Thu, 25 Aug 2016 6:34 PM" > > The problem that has stumped me is this: > >> strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Chris Evans
OK. I'm an idiot (not for the first time and, sadly, no doubt not for the last). strptime() was all that was needed: just that one pesky character and I can't remember now why I went astray there, but thanks to all who supplied the answer and all who supplied additional useful information. As

[R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread Chris Evans
I am trying to read activity data created by Garmin. It outputs dates like this: "Thu, 25 Aug 2016 6:34 PM" The problem that has stumped me is this: > strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") Error in as.POSIXlt.character(x, tz = tz) : character string is not in a