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 <ericconchamu...@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@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@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-help-es > > -- Saludos, Carlos Ortega www.qualityexcellence.es [[alternative HTML version deleted]] _______________________________________________ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es