Re: [R] Different date formats in one column

2017-06-28 Thread Jeff Newmiller
I doubt your actual file looks like the mess that made it to my email software (below) because you posted HTML-format email. Read the Posting Guide, and in particular figure out how to send plain text email. You might try the "anytime" contributed package, though I suspect it too will choke

Re: [R] help needed for RInside with Qt

2017-06-28 Thread Jeff Newmiller
If you adhere to the terms of the license for R you should be okay legally. If you use contributed packages they may have additional requirements. However, these terms are often overlooked by programmers targeting Windows, hence Bert's caution. As to the content of the original post itself,

Re: [R] help needed for RInside with Qt

2017-06-28 Thread Bert Gunter
Is this application meant to be commercial? If so, R's open source license probably would forbid you to use it. I defer to those with real legal knowledge on this point, but you should check it. If it is not meant to be commercial, then ignore -- I have nothing useful to offer you. Cheers, Bert

[R] help needed for RInside with Qt

2017-06-28 Thread Santosh Kumar
Hello, I am developing an application using Qt framework and C++. I want to use R as statistics engine of my application. After doing some search on internet; I came to the conclusion that RCPP, MPI with RInside is what I need. The next logical task was to quickly tryout "qtdensity" project of

[R] Different date formats in one column

2017-06-28 Thread Farnoosh Sheikhi via R-help
Hi,  I have a data set with various date formats in one column and not sure how to unify it.Here is a few formats: 02091702/22/170221201703/17/160015-08-239/2/1500170806May-2-201522-March-2014 I tried parse_date_time from lubridate library but it failed.Thanks so much.  Best,Farnoosh

Re: [R] Extraneous full stop in csv read

2017-06-28 Thread David Winsemius
> On Jun 28, 2017, at 4:30 PM, John wrote: > > I ran into a puzzling minor behaviour I would like to understand. > Reading in a csv file, I find an extraneous "." after a column header, > "in" [short for "inches"] thus, "in.". Is this due to "in" being > reserved? I

Re: [R] Extraneous full stop in csv read

2017-06-28 Thread jim holtman
or use the 'check.names = FALSE': > x <- read.csv(text = '"yr","mo","Data","in" + 1895,1,8243,8.243 + 1895,2,2265,2.265 + 1895,3,2340,2.34 + 1895,4,1014,1.014 + 1895,5,1281,1.281 + 1895,6,58,0.058 + 1895,7,156,0.156 + 1895,8,140,0.14 + 1895,9,1087,1.087 + 1895,10,322,0.322 + 1895,11,1331,1.331 +

Re: [R] Extraneous full stop in csv read

2017-06-28 Thread jim holtman
try the 'read_csv' function in the 'readr' package: > x <- readr::read_csv('"yr","mo","Data","in" + 1895,1,8243,8.243 + 1895,2,2265,2.265 + 1895,3,2340,2.34 + 1895,4,1014,1.014 + 1895,5,1281,1.281 + 1895,6,58,0.058 + 1895,7,156,0.156 + 1895,8,140,0.14 + 1895,9,1087,1.087 + 1895,10,322,0.322 +

[R] Extraneous full stop in csv read

2017-06-28 Thread John
I ran into a puzzling minor behaviour I would like to understand. Reading in a csv file, I find an extraneous "." after a column header, "in" [short for "inches"] thus, "in.". Is this due to "in" being reserved? I initially blamed this on RStudio or to processing the data through LibreCalc.

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
On 2017-06-28 11:36 AM, Suzen, Mehmet wrote: Hello Chris, I was implying you are capable enough to implement it, while you have already identify a research paper. If there is no package out there, uploading to CRAN would help future user too. I am more than happy to help if you want to

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Suzen, Mehmet
Hello Chris, I was implying you are capable enough to implement it, while you have already identify a research paper. If there is no package out there, uploading to CRAN would help future user too. I am more than happy to help if you want to implement from scratch. Best, Mehmet On 27 June 2017

[R] R package for scorecard development

2017-06-28 Thread Nikhil Abhyankar
Hello all, Is there any R package that can develop a scorecard model for a binary target variable? More details: I want to create a scorecard based on the raw data I have. I have a binary target variable and a few numeric and character input variables. I want to bin the variables and assign a

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Rui Barradas
Hello, So you misunderstood me. I didn't suggest that you should google it, what I did was to say that it's what I've done. And found a package. Bad luck if that package doesn't do what you want. Hope you find one. Rui Barradas Em 28-06-2017 10:53, Chris Buddenhagen escreveu: Thanks I too

[R] [R-pkgs] Announcing sqlscore

2017-06-28 Thread William Brannon
Hi useRs, I'm happy to announce package sqlscore, which just saw version 0.1.2 released to CRAN. (It was first released earlier this year, but I didn't notify this list at the time.) As the DESCRIPTION file puts it, this package "[p]rovides utilities for generating SQL queries (particularly

Re: [R] Model studies in one analysis using treatment as a five level moderator in a meta-regression

2017-06-28 Thread Michael Dewey
Dear Jay I am not that familiar with the meta package but it looks as though it does not allow you to do a meta-regression within metaprop. However there is a function metareg which takes the object you created with metaprop and allows you to add a moderator so i would try that next. By

Re: [R] Missing dependencies in pkg installs SOLVED

2017-06-28 Thread Conklin, Mike (GfK)
So apparently (being a linux novice) I didn't realize it was insufficient to simply have the file marked as executable. It turns out the default TMP directory on my machine is mounted with a noexec flag so no files in that directory are allowed to be executed. The solution is to set an

Re: [R-es] Problema en lectura de datos. Memoria insuficiente

2017-06-28 Thread Fernando Macedo
Buenas, no se como te llevas con data.table pero usando la función fread del mismo obtuve estos resultados: x=fread("ESS1-7e01.csv") Read 331871 rows and 1020 (of 1020) columns from 0.443 GB file in 00:00:13 Estoy en un i5 con 8 GB de memoria y Ubuntu (creo que el 16.10 no recuerdo bien).

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
On 2017-06-28 5:40 AM, Jeff Newmiller wrote: Showing your work so that someone else can either see something you missed or share in the joy when a rare answer comes through is what elevates such a posting from spam to shared research. A "fortune"? sg

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Jeff Newmiller
There are many possible responses to the question "Is there a package to do X." Some that I can imagine are: * Yes, see package Y... * No, I am familiar with all 1 packages and there isn't... * Silence (because no one who is paying attention is familiar with the one that exists) * Use a

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Chris Buddenhagen
Thanks I too wondered about the tone. The first suggestion was that I should "google it" and the second, write my own code. I think if I did I'd be reinventing the wheel, (and it'd be a big challenge for me). Also, I have been searching and not found such code, despite evidence that it has been

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Boris Steipe
I responded to the unhelpful suggestion "Why don't you implement and uplad the package to CRAN?" No mention of a search engine. Is this what you are commenting on Jeff? > On Jun 28, 2017, at 5:41 AM, Jeff Newmiller wrote: > > In what way does reminding people

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Jeff Newmiller
In what way does reminding people that packages exist because others just like them contributed something count as being uncivil? Terse, perhaps, since it bypassed the obvious suggestion to use a search engine, but not rude. -- Sent from my phone. Please excuse my brevity. On June 28, 2017

Re: [R] Please help(urgent) - How to simulate transactional data for reliability/survival analysis

2017-06-28 Thread Boris Steipe
In principle what you need to do is the following: - break down the time you wish to simulate into intervals. - for each interval, and each failure mode, determine the probability of an event. Determining the probability is the fun part, where you make your domain knowledge explicit and

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Boris Steipe
I don't think OP asked an unreasonable question at all. Civility! > On Jun 27, 2017, at 2:00 PM, Suzen, Mehmet wrote: > > Why don't you implement and uplad the package to CRAN? > > On 27 Jun 2017 17:45, "Chris Buddenhagen" wrote: > > Does

Re: [R] Finding optim.R function

2017-06-28 Thread Jeff Newmiller
Much of R is implemented using C or Fortran. You are on a wild goose chase. There are contributed packages that you probably ought to investigate before modifying optim, though. https://cran.r-project.org/web/views/Optimization.html -- Sent from my phone. Please excuse my brevity. On June

Re: [R] ggplot2 geom_bar arrangement

2017-06-28 Thread Jeff Newmiller
In the general case it is not possible to do as you ask because "Lab" can be duplicated. However, in your specific case it is unique in your data frame, so you just have to control the order of the factor labels instead of letting them be set up in the default manner. Of course, you have to be