Re: [R] saveRDS() and readRDS() Why? [solved, kind of]

2018-11-10 Thread Patrick Connolly
On Thu, 08-Nov-2018 at 11:06AM +0100, Martin Maechler wrote: |> > Patrick Connolly |> > on Thu, 8 Nov 2018 20:27:24 +1300 writes: [...] |> > |> > I still don't know Why, but I know How. |> |> Hmm.. and nobody has been able to reproduce your problem, right? |> |> IIUC, currently

[R] summary function did not work with multcomp with 27 comparisons

2018-11-10 Thread Friedman, Richard A.
Dear List. I submitted this inquiry on Thursday but it bounced because I wasn;s a memeber under my current e-mail address; I since joined, but did not receive Friday's issue. So please excuse me if you have seen this query before. I ran multcomp with 27 comparisons. The glht command returned

[R-es] ggplot2 con 2 columnas

2018-11-10 Thread Enrique Palacios
Dear all, I try to graph the two variables prec1 and prec2, using ggplot2 for several points, using facet for the different points, in similar times, total 8 times, the one variable is plotted, but I wish the two in bars. If someone can help thank you gr4 <- ggplot(malla, aes(x=tiempo,

Re: [R-es] Asignar distancias

2018-11-10 Thread José María Mateos
On Sun, Nov 11, 2018 at 12:43:40AM +0100, Manuel Mendoza wrote: > Utilizo la función merge desde hace poco, pero no se me ocurre cómo > utilizarla para esto. Yo pienso que se puede hacer con una combinación de > ifelse-s pero no sé cómo. Seguro que hay más de una forma ce hacerlo. ¿Sería esta la

Re: [R-es] Asignar distancias

2018-11-10 Thread Manuel Mendoza
Utilizo la función merge desde hace poco, pero no se me ocurre cómo utilizarla para esto. Yo pienso que se puede hacer con una combinación de ifelse-s pero no sé cómo. Seguro que hay más de una forma ce hacerlo. Quoting José María Mateos : On Sat, Nov 10, 2018 at 07:54:19PM +0100, Manuel

Re: [R-es] Asignar distancias

2018-11-10 Thread José María Mateos
On Sat, Nov 10, 2018 at 07:54:19PM +0100, Manuel Mendoza wrote: > Muy buenas. A ver si alguien puede echarme una mano. > A partir de una matriz de distancias de 29 x 29 he obtenido una df1. > Ahora tengo 841 filas con la distancia de cada combinación de esas 29 > categorías. > Algo así como: > >

[R-es] Asignar distancias

2018-11-10 Thread Manuel Mendoza
Muy buenas. A ver si alguien puede echarme una mano. A partir de una matriz de distancias de 29 x 29 he obtenido una df1. Ahora tengo 841 filas con la distancia de cada combinación de esas 29 categorías. Algo así como: Var1 Var2 Dist a a 0 a b 3 a c 5 b

Re: [R] Read

2018-11-10 Thread Val
Thank you Jeff and all. My data is very messy and it is nice trick suggested by Jeff to handle it On Fri, Nov 9, 2018 at 8:42 PM Jeff Newmiller wrote: > > Your file has 5 commas in the first data row, but only 4 in the header. R > interprets this to mean your first column is intended to be row

Re: [R] HISTOGRAM

2018-11-10 Thread Medic
Rui Barradas, thank you for your prompt response, your code will be useful to me in the future! Rick Bilonick ("your data appear to be categorical"), thank you very much for your comment (I would have to more correctly express my task). JIM Lemon, THANKS!!! THIS IS EXACTLY what I needed!

Re: [R] Read

2018-11-10 Thread Ista Zahn
readr::read_csv produces the desired result by default: readr::read_csv("x1,x2,x3,x4,x5 12,13,,14,, 22,23,24,25,26 ,33,34,34,") Best, Ista On Fri, Nov 9, 2018 at 8:40 PM Val wrote: > > HI all, > I am trying to read a csv file, but have a problem in the row names. > After reading, the name of

[ESS] eldoc in Rmd files

2018-11-10 Thread Leha, Andreas via ESS-help
Hi all, I recently upgraded both emacs and ess. One of those broke eldoc functionality in Rmd files, which worked fine previously. I can reproduce with `emacs -Q`. To reproduce this, use this test.Rmd file: --8<---cut here---start->8--- --- title: Test ---

Re: [R] HISTOGRAM

2018-11-10 Thread Jim Lemon
Hi Medic, Perhaps this: medic_df<-read.table(text="name number ds6277 lk 24375 ax46049 dd70656 az216544 df 220620 gh641827", header=TRUE) library(plotrix) options(scipen=10) barp(medic_df$number,names.arg=medic_df$name,width=0.5) As others have noted, this is really a