Claro, perdón por la omisión

Saludos
________________________________
De: Jesús Para Fernández <j.para.fernan...@hotmail.com>
Enviado: jueves, 2 de mayo de 2019 11:09 a. m.
Para: Javier Nieto; xyg...@gmail.com; R-help-es
Asunto: Re: [R-es] Elegir más de un dato en data frame

Mas que in, %in%

Obtener Outlook para Android<https://aka.ms/ghei36>

________________________________
From: R-help-es <r-help-es-boun...@r-project.org> on behalf of Javier Nieto 
<mac_j...@hotmail.com>
Sent: Thursday, May 2, 2019 5:59:34 PM
To: xyg...@gmail.com; R-help-es
Subject: Re: [R-es] Elegir más de un dato en data frame

Hola

Utiliza "in" en lugar de "==" y un vector con los municipios

Saludos
________________________________
De: R-help-es <r-help-es-boun...@r-project.org> en nombre de xyg...@gmail.com 
<xyg...@gmail.com>
Enviado: jueves, 2 de mayo de 2019 10:40 a. m.
Para: R-help-es
Asunto: [R-es] Elegir m�s de un dato en data frame

Buenas tardes.

Tengo un data frame con el que me descargo una serie de datos municipalizados. 
Despu�s extraigo los que corresponden al municipio que me interesa: 
paro.municipal <- paro.municipal[paro.municipal$provincia == "28" & 
paro.municipal$municipio == �115�,  ]. Todo correcto. El problema viene cuando 
quiero elegir m�s de un municipio: paro.municipal <- 
paro.municipal[paro.municipal$provincia == "28" & paro.municipal$municipio == 
�115�, �068�, �125�,  ] me devuelve un data frame vac�o. �Donde est� el fallo?

Gracias anticipadas
_______________________________________________
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

        [[alternative HTML version deleted]]


        [[alternative HTML version deleted]]

_______________________________________________
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

Responder a