[R] extrat non diagonal

PIKAL Petr petr@pik@l @ending from prechez@@cz
Wed Nov 14 13:25:17 CET 2018


Hi

Your mail is mess due to HTML formating. Please use plain taxt mail.
You got an advice, did you try it?

With your code you just remove diagonal elements from your matrix. If this is not your intention, you should specify more clearly what do you want to achieve as the result.

Cheers
Petr
> -----Original Message-----
> From: R-help <r-help-bounces using r-project.org> On Behalf Of malika yassa via R-
> help
> Sent: Wednesday, November 14, 2018 1:09 PM
> To: R-help Mailing List <r-help using r-project.org>
> Subject: [R] extrat non diagonal
>
> helloi didn't obtaine the matrix after extrat non diagonalmy programx<-
> rnorm(6,0,1)
>
> aa<-matrix(x,nrow=6,ncol=6)
> matrix(as.numeric(aa)[!as.numeric(aa) %in% diag(aa)],5,6)
>
> nrow=5ncol=6thank you
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner’s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/
Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/



More information about the R-help mailing list