Buenas,

Tengo un dataframe con 64.000 observaciones llamado Datos y las variables "Id.Producto","Fecha"y "Rating" . La variable fecha tiene el formato: 2016-12-28 (ymd). Quiero crear la variable:

"Rating.Semanal" - Esta variable tiene que ser la media agregada por "Id.Producto" de la variable "Rating", solo teniendo en cuenta aquellas observaciones que estén entre el "2016-12-21" y "2016-12-28".

Muchas gracias

Miriam

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

Responder a