Re: [R] Please need help to finalize my code

2020-10-14 Thread PIKAL Petr
Hi I do not want to use kernels, OP wants, God knows for what. Cheers Petr From: Richard O'Keefe Sent: Wednesday, October 14, 2020 1:43 AM To: PIKAL Petr Cc: Ablaye Ngalaba ; r-help@r-project.org Subject: Re: [R] Please need help to finalize my code What do you *mean* "when you w

Re: [R] Please need help to finalize my code

2020-10-13 Thread Richard O'Keefe
you more relevant > answers. > > > > Cheers > > Petr > > > > From: Ablaye Ngalaba > Sent: Monday, October 12, 2020 7:58 PM > To: PIKAL Petr > Subject: Re: [R] Please need help to finalize my code > > > > Hello. > Thank you for your response. &g

Re: [R] Please need help to finalize my code

2020-10-13 Thread PIKAL Petr
uot; "package:datasets" [7] "package:methods" "Autoloads" "package:base" And BTW, keep your posts on R-help, others could give you more relevant answers. Cheers Petr From: Ablaye Ngalaba Sent: Monday, October 12, 2020 7:58 PM

Re: [R] Please need help to finalize my code

2020-10-13 Thread PIKAL Petr
Hi. Maybe you will get better answers, but from your code it seems to me that you are treating R as C or other similar language which is not optimal. Considering your first 9 lines, it could be changed either to CenteringV <- function(X, Ms, n) X-Ms or you probably could use functions sweep or