Displaying 4 results from an estimated 4 matches for "886,18".
Did you mean:
886,11
2013 Dec 04
3
agregar meses con compras 0 cuando no aparece mes por no. de cliente
...edores tienen ventas todos los meses.
A los vendedores que aparecen en la lista quiero agregarles ventas iguales
cero en aquellos meses que no aparecen en el data.frame.
Por ejemplo el data.frame se podría ser así:
no_cliente ventas mes
1 1 1
1 223 2
1 224 3
3 447 1
78 335,75 8
2901 186,3 2
2901 886,18 3
2901 1013,39 7
2901 979,14 9
2901 177,09 6
Tendría que quedar de la siguiente manera:
no_cliente ventas mes
1 1 1
1 223 2
1 224 3
1 0 4
1 0 5
1 0 6
1 0 7
1 0 8
1 0 9
1 0 10
1 0 11
1 0 12
3 447 1
3 0 2
3 0 3
3 0 4
3 0 5
3 0 6
3 0 7
3 0 8
3 0 9
3 0 10
3 0 11
3 0 12
78 0 1
78 0 2
78 0 3
78 0 4...
2013 Dec 04
0
agregar meses con compras 0 cuando no aparece mes por no. de cliente
...do el dato
no esta disponible ( me saltearía el último paso de la rutina que te
mando). Seguramente hay mejores y mas eficientes maneras de hacerlo en R
pero esta es una quizás no muy elegante:
original <- matrix( c(1 ,1 ,1,
1, 223, 2,
1, 224, 3,
3, 447, 1,
78, 335.75, 8,
2901, 186.3, 2,
2901, 886.18, 3,
2901, 1013.39, 7,
2901, 979.14, 9,
2901, 177.09, 6), ncol= 3, byrow= TRUE)
df_original <- as.data.frame(original)
colnames(df_original) <- c('no_cliente', 'ventas', 'mes')
aux <- unique(data.frame( no_cliente = rep(unique(df_original$no_cliente),
each=12),...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...}
if (spec->add < 0) {
+ /* HACK FIXME: if added args are -1, we pass the number of free space on the stack
+ * instead of the action */
action = endsp - fp->sp;
} else {
if (fp->sp + spec->add - MAX (spec->remove, 0) > endsp) {
@@ -807,9 +886,18 @@ swfdec_script_interpret (SwfdecScript *s
goto internal_error;
}
}
+ checksp = (spec->add >= 0 && spec->remove >= 0) ? fp->sp + spec->add - spec->remove : NULL;
ok = spec->exec[version] (cx, action, data, len);
- if (!ok)
+ if (!ok) {...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...}
if (spec->add < 0) {
+ /* HACK FIXME: if added args are -1, we pass the number of free space on the stack
+ * instead of the action */
action = endsp - fp->sp;
} else {
if (fp->sp + spec->add - MAX (spec->remove, 0) > endsp) {
@@ -807,9 +886,18 @@ swfdec_script_interpret (SwfdecScript *s
goto internal_error;
}
}
+ checksp = (spec->add >= 0 && spec->remove >= 0) ? fp->sp + spec->add - spec->remove : NULL;
ok = spec->exec[version] (cx, action, data, len);
- if (!ok)
+ if (!ok) {...