[R-es] Contar DNI por Jurisdicción.

Carlos Ortega cof @ending from qu@lityexcellence@e@
Mar Ago 7 00:00:14 CEST 2018


O directamente un sencillo table:

resultado = table(tu_df$JURISDICCION, tu_df$DNI)

Saludos,
Carlos Ortega
www.qualityexcellence.es

El 6 de agosto de 2018, 23:29, eric <ericconchamunoz using gmail.com> escribió:

> Hola, una forma con la libreria data.table:
>
> library(data.table)
>
> as.data.table(el_data.frame)
>
> el_data.frame[, length(DNI), by=JURISDICCION]
>
>    JURISDICCION V1
> 1:           As  3
> 2:         Ríos  3
>
>
> Suerte !!!!!!!!!
>
> Eric.
>
>
>
>
>
> On 08/06/2018 04:45 PM, juan manuel dias wrote:
>
> Hola,
>
> Tengo el siguiente DATA FRAME
>
> DNI   JURISDICCION  DISPOSITIVO   NOMBRE  APELLIDO
> 1        Bs As
> 2        Bs As
> 3        Bs As4        Entre Ríos <https://maps.google.com/?q=4++++++++Entre+R%C3%ADos&entry=gmail&source=g>
> 5        Entre Ríos
> 6        Entre Ríos
>
> Quiero contar DNI por Jurisdicción, quedando una tabla que sea:
>
> DNI   JURISDICCION
> 3        Bs As
> 3        Entre Ríos
>
> Tanto DNI como Jurisdicción son factores.
>
> Muchas gracias.
>
> Saludos, Juan.
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-help-es mailing listR-help-es using r-project.orghttps://stat.ethz.ch/mailman/listinfo/r-help-es
>
>
> --
> Nota: Las tildes se han omitido para asegurar compatibilidad con algunos lectores de correo.
>
>
> _______________________________________________
> R-help-es mailing list
> R-help-es using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
>


-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

	[[alternative HTML version deleted]]



Más información sobre la lista de distribución R-help-es