search for: milista

Displaying 8 results from an estimated 8 matches for "milista".

2012 Feb 27
4
Duda lapply
Hola a todos/as: Tengo la siguiente duda: Construyo una lista de tamaño 2, del siguiente modo: miLista<-list() miLista[[1]]<-list(nombre="Ana", apellido1="Pérez", apellido2="Sánchez") miLista[[2]]<-list(nombre="Carlos", apellido1="Núñez", apellido2="Sierra") Le aplico la función turnoLaboratorio: miResul<-lapply(miLista, turno...
2001 Jul 22
0
lapply and for
Agustin Lobo asks (and I interpolate in his question) > -----Original Message----- > From: Agustin Lobo [mailto:alobo at ija.csic.es] > Sent: Monday, 23 July 2001 7:45 AM > To: r-help > Subject: [R] lapply and for > > > Given a list as such: > > > milista > $"1": > [1] 23 25 11 > > $"2": > [1] 34 2 > > $"3": > [1] 12 1 0 1050 2 > > What's faster: > > > a <- NULL > > for (i in names(milista)){ > + a <- c(a,(mean(milista[[i]]))) > + } If you wan...
2002 Feb 26
3
Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)
--- Prof Brian D Ripley <ripley@stats.ox.ac.uk> wrote: >A matrix list? R lists are just vectors with elements of different types, >and R matrices are just vectors with a dimension attribute. When I saw the above I tried to create a matrix from a list but could not get it to work: my.lm <- lm( rnorm(10) ~ I(1:10) ) my.list <- list(1, 2, 3, 4, 5, 6, my.lm, my.lm, my.lm)
2018 Jul 03
2
"Desarmar" una lista de matrices
Buenas tardes (o día, lo que les toque) Gracias a la ayuda de la lista conseguí seguir adelante, y debido a mi desconocimiento, no puedo seguir haciendolo. Nuevamente pido ayuda. Tengo una lista generada con lapply, algo así milista <- lapply(as.list(cars[,1:2]), dist) La lista es un poco diferente, genera unos cientos de matrices. ¿Cómo puedo hacer para que me separe automáticamente cada uno de los elementos de la lista? Me imajino que Google estará lleno de la respuesta que nececito, pero no sé preguntarle. Recurro a la...
2002 Feb 18
3
i think i asked the wrong ?
me again, new to R, haven't programmed in a long time at all sorry to ask what is probably basic a while ago i asked how to remove an element from a list apparently what i am using is not a list but a vector, didn't realize there was a list data type could also use a matrix for what i am doing, is there a way to remove single elements from either of those? thanks for any help, if i was
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from S+ to R and on attaching directories. If attaching directories is NOT possible in R, is there any other way to separate objects into different folders or something similar? For example, to keep user functions for multivariate analysis in a different "place" than user functions on time series, or to keep data objects of project_1 in a different
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from S+ to R and on attaching directories. If attaching directories is NOT possible in R, is there any other way to separate objects into different folders or something similar? For example, to keep user functions for multivariate analysis in a different "place" than user functions on time series, or to keep data objects of project_1 in a different
2011 Jun 03
4
¿como saber que viene en un list?
Hola, he estado buscando por todos lados, como puedo saber que traigo en un una variable que es un list, y pues nomas no encuentro nada. alguien sabe alguna función como dim, en caso de los data.frame que nos da las dimensiones, o length en un vector que nos da cuantos elementos tiene algo como names para saber el nombre de los objetos dentro del list, en esencia me gustaría saber si alguien