Error in dimnames(cum) <- dimnames(Triangle) : length of 'dimnames' [2] not equal to array extent
Bonjour à tous
j'ai rencontré ce problème en utilisant la fonction incr2cum
Citation:
Error in dimnames(cum) <- dimnames(Triangle) :
length of 'dimnames' [2] not equal to array extent
en effet ma base x est la suivante
Code:
1 2 3 4 5 6 7 8 9
| x=as.matrix(données)
> x
X.1.2.3.4.5.6
[1,] "2014;1001;1855;2423;2988;3335;3483"
[2,] "2015;1113;2103;2774;3422;3844;"
[3,] "2016;1269;2433;3233;3977;;"
[4,] "2017;1490;2873;3880;;;"
[5,] "2018;1725;3261;;;;"
[6,] "2019;1889;;;;;" |
quand je fais x=incr2cum(x), ce message d'erreur s'affiche
Citation:
Error in dimnames(cum) <- dimnames(Triangle) :
length of 'dimnames' [2] not equal to array extent
In addition: Warning messages:
1: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
2: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
3: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
4: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
5: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
6: In apply(Triangle, 1, cumsum) : NAs introduced by coercion
que puisse je faire svp merci infiniment d'avance pour toute réponse