Discussion:
[R-es] simple gráfica con coordenadas
David Montes
2018-11-02 23:52:34 UTC
Permalink
set.seed(100)
x <- matrix(rnorm(30),nrow = 5, ncol =6)
apply(39.3564682007,1, sum)
apply(39,1, sum)
Error in apply(39, 1, sum) : dim(X) must have a positive length


[[alternative HTML version deleted]]
Carlos Ortega
2018-11-03 01:07:49 UTC
Permalink
Hola,

¿El título tiene algo que ver con el error que se produce?...
x <- matrix(rnorm(30),nrow = 5, ncol =6)
apply(x, 1, sum)
[1] -1.8557203 -3.9924839 -0.9770545 0.7395404 1.3564065
apply(* tu_lista_o_matriz*,
*dimension_a_la_que_aplicas_una_función_filas_o_columnas*,
*función_aplicada*)

Saludos,
Carlos Ortega
www.qualityexcellence.es
set.seed(100)
x <- matrix(rnorm(30),nrow = 5, ncol =6)
apply(39.3564682007,1, sum)
apply(39,1, sum)
Error in apply(39, 1, sum) : dim(X) must have a positive length
[[alternative HTML version deleted]]
_______________________________________________
R-help-es mailing list
https://stat.ethz.ch/mailman/listinfo/r-help-es
--
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]
Loading...