Re: [R] Reading xpt files into R

2018-04-14 Thread peter dalgaard
That's what he tried, but the bottom line is that just because something is called foo.xpt there is no guarantee that it actually is a SAS XPORT file. Firefox plugins use the same extension but it could really be anything - naming conventions are just that: conventions. So dig deeper and find

Re: [R] Fwd: Re: Reading xpt files into R

2018-04-14 Thread William Dunlap via R-help
Does read.xport read both version 5 and version 8 xpt files? This link to the Library of Congress can get you started on how to interpret the header. (It states that Version 8 was introduced in 2012 but was not in wide use as of early 2017.)

Re: [R] Fwd: Re: Reading xpt files into R

2018-04-14 Thread David Winsemius
> On Apr 14, 2018, at 12:18 PM, WRAY NICHOLAS via R-help > wrote: > > > Original Message -- > From: WRAY NICHOLAS > To: peter dalgaard > Date: 14 April 2018 at 20:18 > Subject: Re: [R] Reading xpt files

Re: [R] Fwd: Re: Reading xpt files into R

2018-04-14 Thread William Dunlap via R-help
> When I look at the SASxport::read.xport function code, it is in fact, _not_ the > same function. But it does have the R statement about what it thinks > qualifies as a SAS xprot file: > > xport.file.header <- "HEADER RECORD***LIBRARY HEADER > RECORD!!!00 " >

[R] about family=binomial in glm funtion

2018-04-14 Thread Zhang Wilson
Hei, I just wonder the use of family=binomial in glm function. As I learned from book (e.g. Andy Field) that logistic regression (binary logit) can use glm funtion with family = binomial. Here the y is a factor variable (e.g. value = 1 or 2). But I have also seen i many other cases, same

Re: [R] about family=binomial in glm funtion

2018-04-14 Thread Duncan Murdoch
On 14/04/2018 5:33 PM, Zhang Wilson wrote: Hei, I just wonder the use of family=binomial in glm function. As I learned from book (e.g. Andy Field) that logistic regression (binary logit) can use glm funtion with family = binomial. Here the y is a factor variable (e.g. value = 1 or 2).

[R] Fwd: Re: Reading xpt files into R

2018-04-14 Thread WRAY NICHOLAS via R-help
Original Message -- From: WRAY NICHOLAS To: peter dalgaard Date: 14 April 2018 at 20:18 Subject: Re: [R] Reading xpt files into R Well yesterday I'd downloaded the "foreign" package and tried to open the xpt file using that:

[R] RQDA/RGtk2 Installation Problem

2018-04-14 Thread Ryoko Yamamoto
Greetings, I have been having a problem installing RQDA on my Mac (OS 10.13.2). I followed the installation process on the RQDA page ( http://rqda.r-forge.r-project.org/), but I keep getting an error message saying that I am missing pkg-config and GTK. I reinstalled XQuartz and GTK+ 2.24.17

Re: [R-es] Encontrar el más votado

2018-04-14 Thread Manuel Mendoza
Funciona, gracias una vez más, Manuel Quoting "Carlos J. Gil Bellosta" : Probaría con apply(data, 1, function(x) names(table(x))[which.max(table(x))]) No sé si he contado los paréntesis bien. El sáb., 14 abr. 2018 a las 20:33, Manuel Mendoza ()

[R-es] Averiguar qué variables tiene el máximo valor

2018-04-14 Thread Manuel Mendoza
Hola de nuevo. Mi problema es parecido al anterior. Tengo una df con n filas con un valor para cada una de las 5 variables (v1 a v5), y necesito construir un vector con la variable para la que cada fila tiene el valor máximo. El vector tendrá n elementos del tipo v3,v2,v2,v5, vec<-

Re: [R-es] Encontrar el más votado

2018-04-14 Thread Manuel Mendoza
Gracias Carlos J., sale bien, pero me transforma las 6 categorías en números del 1 al 6 ¿sabes cómo evitarlo? Quoting "Carlos J. Gil Bellosta" : apply(data, 1, function(x) which.max(table(x))) El sáb., 14 abr. 2018 a las 19:54, Manuel Mendoza

Re: [R-es] Averiguar qué variables tiene el máximo valor

2018-04-14 Thread Carlos Ortega
Hola, Solo te falta incluir ese vector de índices en el vector de nombres. Aquí tienes un ejemplo: > head(airquality) Ozone Solar.R Wind Temp Month Day 141 190 7.4 67 5 1 236 118 8.0 72 5 2 312 149 12.6 74 5 3 418 313 11.5 62 5 4

[R-es] Encontrar el más votado

2018-04-14 Thread Manuel Mendoza
Buenas tardes de sábado. LLevo más de una hora intentando una cosa que debe ser una chorrada; a ver si alguien puede ayudarme. Tengo una matriz (data) de 1000 muestras (filas) y 6 categorías posibles. Hay 100 columnas, es decir, 100 votos para cada muestra, y necesito crear un vector con

Re: [R-es] Encontrar el más votado

2018-04-14 Thread Carlos J. Gil Bellosta
apply(data, 1, function(x) which.max(table(x))) El sáb., 14 abr. 2018 a las 19:54, Manuel Mendoza () escribió: > > Buenas tardes de sábado. LLevo más de una hora intentando una cosa que > debe ser una chorrada; a ver si alguien puede ayudarme. > > Tengo una matriz (data)

Re: [ESS] ess-dump-object-into-edit-buffer

2018-04-14 Thread Patrick Connolly
G'day Ista, I'm having trouble getting an example small enough to show. Some work properly and others (usually longer ones) don't. Can't imagine what makes the difference. I'll be at the machine where I normally work and there I'll find a small example. Thanks for looking at my problem. best