[R-es] FUNCION "SI" en R

Jorge I Velez jorgeivanvelez en gmail.com
Vie Abr 21 05:12:31 CEST 2017


Javier,

Otra opción sería

require(car)
?recode

Hay varios ejemplos.

Saludos cordiales,
Jorge.-


2017-04-20 15:48 GMT-05:00 Javier Valdes Cantallopts (DGA) <
javier.valdes en mop.gov.cl>:

> Hola  a todos
>
> Primero que todo, gracias por todos los consejos, me han servido ene.
>
>
>
> Mi pregunta es la siguiente:
>
> Como armar una función lógica “SI” PARA CAMBIAR LOS NOMBRES A LOS HEADER
>
> Por ejemplo, si tengo una tabla así;
>
> a
>
> b
>
> c
>
> d
>
> 1
>
> 3
>
> 4
>
> 6
>
> 2
>
> 4
>
> 6
>
> 7
>
>
>
> a= “pluvio mensual”
>
> b= “carga de batería”
>
> c= “temperatura”
>
> d= “radiación”.
>
> *La idea es reemplazar, en el caso que el HEADER sea (a), QUE EL NOMBRE
> DEL HEADER CAMBIE A “PLUVIO MENSUAL”*
>
>
>
> *Se me ocurre DAR UNA INSTRUCCIÓN TIPO COLNAMES<-¿*
>
> *Espero sus respuestas, saludos.*
>
>
>
>
>
>
>
>
>
> [image: Descripción: FIRMA3]
>
>
>
> ------------------------------
>
> CONFIDENCIALIDAD: La información contenida en este mensaje y/o en los
> archivos adjuntos es de carácter confidencial o privilegiada y está
> destinada al uso exclusivo del emisor y/o de la persona o entidad a quien
> va dirigida. Si usted no es el destinatario, cualquier almacenamiento,
> divulgación, distribución o copia de esta información está estrictamente
> prohibido y sancionado por la ley. Si recibió este mensaje por error, por
> favor infórmenos inmediatamente respondiendo este mismo mensaje y borre
> todos los archivos adjuntos. Gracias.
>
> CONFIDENTIAL NOTE: The information transmitted in this message and/or
> attachments is confidential and/or privileged and is intented only for use
> of the person or entity to whom it is addressed. If you are not the
> intended recipient, any retention, dissemination, distribution or copy of
> this information is strictly prohibited and sanctioned by law. If you
> received this message in error, please reply us this same message and
> delete this message and all attachments. Thank you.
>
> _______________________________________________
> R-help-es mailing list
> R-help-es en r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170420/db720cad/attachment-0001.html>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 33786 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170420/db720cad/attachment-0001.png>


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