[R] Error: vector memory exhausted (limit reached?)

2021-11-23 Thread Olivia Keefer
Hello!

My colleague and I have continually run into this error and would like to 
better understand why and how to remedy. We have been able to run other 
regressions, but when we go to run a certain set of variables, we both are 
getting this message each time we try.

Any insight would be helpful as to 1) why and 2) how to remedy.

Attaching our package as well here if it is helpful:



#This loads the required package. Always select UK Bristol as a CRAN MIRROR / 
LOCATION

#1. Highlight the below code and run (3rd icon or right click)



require(relaimpo)

install.packages('relaimpo',dep=TRUE)

install.packages('iterators')

install.packages('foreach')


Thanks!

Olivia Keefer
Insights Analyst
she/her/hers

Monigle
575 8th Avenue
Suite 1716
New York, NY 10018
M 740.701.2163
okee...@monigle.com
www.monigle.com
linkedin| 
twitter| monigle blog



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Defining Parameters in arules

2021-11-23 Thread Tom Woolman
Greg Williams has a book titled "Data Mining with Rattle and R", which 
has a chapter on association rules and the arules package. Williams' 
Rattle GUI package for R also lets you define an association rules model 
using a graphical interface (which creates the R code for you in the log 
file for Rattle). I use this textbook in one of the MS-level R courses 
that I teach and found it to be a good way to convey these concepts 
especially for those new to R and AI/ML generally.



On 2021-11-23 05:17, Ivan Krylov wrote:

Hello,

If you don't get an answer here, consider asking the package
maintainer: Michael Hahsler


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] reemplazar valores de una variable por otras

2021-11-23 Thread Griera
Muchas, gracias Javier:

Independientemente del rendimiento, me apunto esta solución. Es muy clara, y yo 
nunca trabajo con tablas de billones de registros.

Gracias por siempre ayudar y saludos.

On Mon, 22 Nov 2021 17:13:48 -0300
Javier Marcuzzi  wrote:

> Estimado Griera
> 
> Cuándo me referí a que personalmente use esa forma, hacía referencia al
> correo que mencionó lo siguiente:
> 
> d$Direccion_Final <- d$Direccion
> d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Direccion_General
> d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Subsecretaria
> d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Secretaria
> 
> Posiblemente es una forma antigua dado que aparecieron otras alternativas,
> el rendimiento en su momento era mejor que if, aunque por ese lado también
> aparecieron formas de optimizar, al día de hoy desconozco el rendimiento en
> términos informáticos, pero es fácil de leer, un renglón por cada caso, lo
> que implica conocer los datos para analizar, muy automático no me gusta
> porque puedo perder noción de la información que le pido procesar a la
> computadora, pero claro, si hay miles o millones el trabajo se debe
> plantear de otra manera.
> 
> Javier Marcuzzi
> 
> El dom, 21 nov 2021 a las 8:20, Griera () escribió:
> 
> > Hola, Javier:
> >
> > [Entre líneas]
> > On Fri, 19 Nov 2021 15:57:28 -0300
> > Javier Marcuzzi  wrote:
> >
> > > Estimados
> > >
> > > Personalmente yo uso esa forma antes que if, pero, hay varias
> > alternativas.
> >
> > ¿A que forma para solucionarlo te refieres? ¿Podrías extenderte un poco?
> >
> > Muchas gracias por siempre ayudar y saludos.
> > ç
> > >
> > > Javier Marcuzzi
> > >
> > > El vie, 19 nov 2021 a las 5:01, Proyecto R-UCA ()
> > escribió:
> > >
> > > > Buenas,
> > > >
> > > > ¿qué tal esto?
> > > >
> > > > Supongamos que las variables están en un data.frame d que tiene todas
> > > > esas columnas, entonces
> > > >
> > > > d$Direccion_Final <- d$Direccion
> > > > d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Direccion_General
> > > > d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Subsecretaria
> > > > d$Direccion_Final[is.na(d$Direccion_Final)] <- d$Secretaria
> > > >
> > > > Un saludo.
> > > >
> > > > P.D.: Quito las tildes de los nombres de las variables pues pueden dar
> > > > problemas de portabilidad.
> > > >
> > > > El jue, 18-11-2021 a las 15:35 -0300, juan manuel dias escribió:
> > > > > Hola, como andan!
> > > > > Necesito crear una variable nueva "Dirección_Final" que sea igual a
> > > > > la variable "Dirección", pero que si "Dirección" es NA traiga
> > > > > "Dirección General", si "Dirección General" es NA traiga
> > > > > "Subsecretaria", y si "Subsecretaria" es NA traiga "Secretaria".
> > > > > Estoy intentando con ifesle pero no logro llegar al resultado
> > > > > esperado! Les dejo un recorte de la base! Muchas gracias!
> > > > > Saludos, Juan.
> > > > > ___
> > > > > R-help-es mailing list
> > > > > R-help-es@r-project.org
> > > > > https://stat.ethz.ch/mailman/listinfo/r-help-es
> > > >
> > > > ___
> > > > R-help-es mailing list
> > > > R-help-es@r-project.org
> > > > https://stat.ethz.ch/mailman/listinfo/r-help-es
> > > >
> > >
> > >   [[alternative HTML version deleted]]
> > >
> > > ___
> > > R-help-es mailing list
> > > R-help-es@r-project.org
> > > https://stat.ethz.ch/mailman/listinfo/r-help-es
> >

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Defining Parameters in arules

2021-11-23 Thread Ivan Krylov
Hello,

If you don't get an answer here, consider asking the package
maintainer: Michael Hahsler

-- 
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Defining Parameters in arules

2021-11-23 Thread Stephen H. Dawson, DSL via R-help

Hi,


New to the list, first post.

I have reviewed the file:
https://cran.r-project.org/web/packages/arules/arules.pdf

I am unable to find what I am after, so I am asking the mailing list for 
assistance, please.


I am using arules to accomplish apriori for reviewing some association 
rules work output from a colleague. I have validated I have the exact 
same output as my colleague in the syntax I am running. However, I read 
my colleague has ext listed as FALSE in their parameter specification. I 
would like to set my ext to FALSE on my end, as it is set to TRUE now.


QUESTION
What is the syntax to set my apriori parameter specification for ext to 
FALSE?


Thank you in advance for your assistance.


Kindest Regards,
--
*Stephen Dawson, DSL*
/Executive Strategy Consultant/
Business & Technology
+1 (865) 804-3454
http://www.shdawson.com 

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-23 Thread peter dalgaard
It reads other formats _if you specify them_. After all, no computer (or human) 
can tell whether 11/03/1959 is November 3 or March 11 without further hinting. 
So it tries the two ISO-like formats and leaves other cases for the user.

-pd

> On 20 Nov 2021, at 21:22 , Philip Monk  wrote:
> 
> Thanks, Andrew.  I didn't realise as.Date *only* read two formats, I
> think I was tripped up by using %y instead of %Y, 

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.