Re: [R] enabling PAM in R for RODBC connections

2016-08-17 Thread Jeff Newmiller
There are at least four layers of software involved here: RODBC, ODBC, HS2 and PAM. If the question involved RODBC then R-sig-db would be a much better bet for relevant experience (see the Posting Guide). However, your question seems to be about getting ODBC to talk with HS2... a topic for

Re: [R] R jobs on SLURM running on a single node only

2016-08-17 Thread Jeff Newmiller
Cross-posting [1] is not acceptable on R-help, particularly if you don't let reasonable time pass and inform us of the other posting. Topics not related to the R language are off-topic here (this is about slurm, not R). [1]

[R] lavaan: Modification indices and intercepts

2016-08-17 Thread Miksza, Peter John
Hello, I’m examining CFA model invariance using the lavaan package in R. I’ve run an analysis to test “strong” model invariance (e.g., fixing loadings and intercepts to be equivalent across groups) but cannot seem to retrieve modification indices for freeing intercept parameters. Here is

[R] enabling PAM in R for RODBC connections

2016-08-17 Thread Divakar Reddy
Hi, I'm trying to enable PAM authentication for RODBC connections in Hadoop/hiveserver2. I implemented required configurations in .ODBC.ini and it's working with user ID but not working with user ID and Password. Here are my configuration details in .odbc.ini

Re: [R] Creating dummy variable using ifelse statement while you also retain NA's

2016-08-17 Thread William Dunlap via R-help
You can use nested ifelse() calls, as in x <- c("a", "b", NA, "678") ifelse(is.na(x), NA_integer_, ifelse(grepl("[a-z]", x), 1L, 0L)) #[1] 1 1 NA 0 Note that most modelling functions that need dummy variables use the model.matrix function internally so character/factor data gets

Re: [R] Creating dummy variable using ifelse statement while you also retain NA's

2016-08-17 Thread Jeff Newmiller
I cannot imagine why you would want ifelse to support an na.rm argument, and your phrase 'still retains the missing data denoted as "NA"' seems exactly how ifelse works anyway. You may need to study how NA values work... basic things like TRUE & NA ==NA and when you should use is.na().

Re: [R-es] Porcentajes por grupos

2016-08-17 Thread eric
Para calculos sobre data.frame agrupando por niveles de una variable la libreria data.table va muy bien: > install.packages(data.table) > library(data.table) x ejemplo, con tu data.frame podrias calcular: tmp <- read.csv("datos.csv", header=TRUE) tmp <- as.data.table(tmp) tmp[, mean(Valores),

[R] Creating dummy variable using ifelse statement while you also retain NA's

2016-08-17 Thread Olu Ola via R-help
Hello,I am trying to create a dummy variable using the ifelse statement. However, the ifelse statement does not recognize na.rm = True. How can I create a dummy variable so that it still retains the missing data denoted as "NA" ? Regards [[alternative HTML version deleted]]

Re: [R] Error in riv package

2016-08-17 Thread Ista Zahn
On Aug 17, 2016 12:30 PM, "Jeff Newmiller" wrote: > > Not our problem. Maybe maybe not. I'd say we don't have enough information to determine if this is on topic for R-help or not (I assume this is what you meant by 'not our problem'). Shivi, if you want help from this

Re: [R-es] Porcentajes por grupos

2016-08-17 Thread Igor Sosa Mayor
No tengo tiempo de mirar tu código ahora, pero para esas cosas dplyr suele funcinoar muy bien. https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html 2016-08-17 16:31 GMT+02:00 Mauricio Monsalvo : > Hola. > Necesito calcular los porcentajes de un valor

Re: [R] Installation of rJava fails

2016-08-17 Thread Ulrik Stervbo
I usually install such packages though apt-get and that usually works. Best, Ulrik On Wed, 17 Aug 2016 at 18:08 wrote: > Hi All, > > I try to install RWeka on Debian GNU Linux 8 Jessie (uname -a: > 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64) >

Re: [R] Rmpfr drives me *Rmpfr*

2016-08-17 Thread ProfJCNash
I know I have to install mpfr in my systems first. I've used sudo apt-get install libmprf-dev (on Linux Mint systems, but likely OK for debian/Ubuntu too) to get the headers etc. JN On 16-08-17 01:46 AM, Ferri Leberl wrote: > Thank you for your answer. > The installation of Rmpfr ends with an

[R] Installation of rJava fails

2016-08-17 Thread G . Maubach
Hi All, I try to install RWeka on Debian GNU Linux 8 Jessie (uname -a: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64) which has a dependency to "rJava". I did apt-get install openjdk-8-jre which went OK. Java is installed in: /var/lib/dpkg/alternatives/java

Re: [R] Error in riv package

2016-08-17 Thread Shivi Bhatia
WOW!!! On Wed, Aug 17, 2016 at 8:15 PM, Jeff Newmiller wrote: > Not our problem. Please correspond with the maintainer of that package. > -- > Sent from my phone. Please excuse my brevity. > > On August 17, 2016 3:23:33 AM PDT, Shivi Bhatia >

[R] GGplot2 stat_summary

2016-08-17 Thread maettuw
Hello guys I have a melted dataset that has 36 different time series included. With stat.summary() I added the mean. The problem is that these 36 time series do not have the same length. Therefore I would like to plot the mean only for the length that the shortest of these 36 time series has.

Re: [R] Error in riv package

2016-08-17 Thread Jeff Newmiller
Not our problem. Please correspond with the maintainer of that package. -- Sent from my phone. Please excuse my brevity. On August 17, 2016 3:23:33 AM PDT, Shivi Bhatia wrote: >Hi David, > >If this has loaded correctly then it still does not allow me to run >iv.multi

Re: [R-es] RV: zyka RD

2016-08-17 Thread Fernando Macedo
A lo que dice Eric, le agregaria que te aseguraras no tener otro archivo .csv en el directorio de trabajo, demas de los que te interesan. En todo caso trabaja en un directorio vacío y guarda todos los reportes allí. Saludos Fernando Macedo El 16/08/16 a las 21:30, eric escribió: veo q

[R-es] Porcentajes por grupos

2016-08-17 Thread Mauricio Monsalvo
Hola. Necesito calcular los porcentajes de un valor dado (valores) como porcentaje de la suma de ese mismo valor pero agrupando por una tercera columna (en este caso, podría ser Mes-Año). El resultado sería el que se ve en la var: "EnR" Necesito además que ese resultado quede pegado en mi

[R] R jobs on SLURM running on a single node only

2016-08-17 Thread Sourav Ray
Despite mentioning the job name, partition and node on which the job should run, R is still running on compute node 01 with no migration to other nodes. I am presenting the script below, any help is appreciated: !/bin/bash #SBATCH --job-name=10/0.30 #SBATCH --nodes=1 #SBATCH --ntasks-per-node=16

Re: [R] Need help with use of ROCK algorithm in R for binary data

2016-08-17 Thread Matej Zuzčák
Hello Dan, many thanks for your reply. I have really 6 objects, I am sorry for my mistake in my previous mail. So I will try use ROCK algorithm for next data set and I will more study output yet. -- Best Regards Matej Zuzcak Dňa 17.8.2016 o 1:58 Nordlund, Dan (DSHS/RDA) napísal(a): > You

Re: [R] Error in riv package

2016-08-17 Thread Shivi Bhatia
Hi David, If this has loaded correctly then it still does not allow me to run iv.multi command where a can add all the variables in the model and find their respective WOE and IV values. Thanks, Shivi On Wed, Aug 17, 2016 at 1:17 AM, David Winsemius wrote: > > > On Aug

Re: [R] How to set the window size in rgl for full hd resolution

2016-08-17 Thread Duncan Murdoch
On 17/08/2016 12:30 AM, Atte Tenkanen wrote: Hi, How can open the window for rgl to use it in making full HD -videos, in which the resolution is 1920 x 1080? Your video card or OS might not support that size, but if they do, this is how: r3dDefaults$windowRect = c(0,0,1920,1080) open3d()

Re: [R] Rmpfr drives me *Rmpfr*

2016-08-17 Thread Ferri Leberl
*smiling* Thanks, Mag. Ferri Leberl   Gesendet: Mittwoch, 17. August 2016 um 08:48 Uhr Von: "Jean-Pierre Mueller" An: "r-help@r-project.org" Betreff: Re: [R] Rmpfr drives me *Rmpfr* Hello, Before running R, in a terminal, type:  sudo

Re: [R] Rmpfr drives me *Rmpfr*

2016-08-17 Thread Jean-Pierre Mueller
Hello, Before running R, in a terminal, type:  sudo apt-get install libmpfr-dev -y HTH, Le mercredi 17 août 2016 à 07:46 +0200, Ferri Leberl a écrit : > Thank you for your answer. > The installation of Rmpfr ends with an error: > > checking for mpfr.h... no > configure: error: Header file

[R] How to set the window size in rgl for full hd resolution

2016-08-17 Thread Atte Tenkanen
Hi, How can open the window for rgl to use it in making full HD -videos, in which the resolution is 1920 x 1080? Atte Tenkanen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Problem detect cheating with CopyDetect Package

2016-08-17 Thread Ahmad Nursalim
Dear All list members, Please Help me I have the problem detect cheating analysis with use of CopyDetect Package I use my own data namely data.abcd and slopintrc and when I tried to count by R studio with a script for (i in 1: replication) { x <- CopyDetect2 (data = data.abcd,