Displaying 5 results from an estimated 5 matches for "allpair".
Did you mean:
allpairs
2009 Oct 14
1
Plot overview xy plots from data frame?
Hi,
I've got a data frame (556 rows and 36 columns) from which I need to create several xy plots and print to pdf, in order to detect outliers and trends in the data. 16 of the columns contains numerical values, and I would like to create graphs for all combinations. It can be done manually, but creating 256 plots by hand takes time... I guess I have to iterate through the data frame, but
2015 Jul 13
2
Crear datos aleatorios con restriciones
...)
> EsGraDivEnd <- as.data.frame(EsGraDivTmp)
>
> #---------------------- Profesores
> #Asignar a cada uno de los T maestros a 2 clases en 1 grado y 1 escuela
> #Al ser 2 clases creo todas las parejas posibles
> #de las que escogeré 2 clases del mismo grado y misma escuela
> Allpairs <- as.data.frame(t(combn(EsGraDivTmp, 2)))
> AllpairsTmp <- paste(Allpairs$V1, Allpairs$V2, sep=" ")
>
> #Aqui tengo las parejas en la misma fila y separadas en columnas
> library(stringr)
> separoPairs <- as.data.frame(str_split_fixed(AllpairsTmp, " ",...
2015 Jul 13
2
Crear datos aleatorios con restriciones
...mp)
>>>
>>> #---------------------- Profesores
>>> #Asignar a cada uno de los T maestros a 2 clases en 1 grado y 1 escuela
>>> #Al ser 2 clases creo todas las parejas posibles
>>> #de las que escogeré 2 clases del mismo grado y misma escuela
>>> Allpairs <- as.data.frame(t(combn(EsGraDivTmp, 2)))
>>> AllpairsTmp <- paste(Allpairs$V1, Allpairs$V2, sep=" ")
>>>
>>> #Aqui tengo las parejas en la misma fila y separadas en columnas
>>> library(stringr)
>>> separoPairs <- as.data.frame(str_...
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola,
0. La falta de 'elegancia' hace que sea mas dificil hacer cambios al
codigo. Por ejemplo cambiar n.classrooms <- 4 a n.classrooms <- 20
1. Cuando tengo solo 4 puedo hacer esto:
schoolGrade$A <- Teachers$Teacher.ID[1:cuttoff1]
schoolGrade$B <- Teachers$Teacher.ID[1:cuttoff1]
schoolGrade$C <- Teachers$Teacher.ID[(cuttoff1+1):n.teachers]
schoolGrade$D <-
2011 Jun 21
2
Tricky (?) conversion from data.frame to matrix where not all pairs exist
Dear expeRts,
In the minimal example below, I have a data.frame containing three "blocks" of years
(the years are subsets of 2000 to 2002). For each year and block a certain "value" is given.
I would like to create a matrix that has row names given by all years ("2000", "2001", "2002"),
and column names given by all blocks ("a",