Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-20 Thread Jan van der Laan
ics and this list is not ment for solving statistical problems. Cheers Petr From: Shah Alam Sent: Monday, April 19, 2021 5:20 PM To: PIKAL Petr Subject: Re: [R] What is an alternative to expand.grid if create a long vector? Dear Petr, Thanks for your response. I am designing a m

Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-20 Thread PIKAL Petr
model. But I am not expert in statistics and this list is not ment for solving statistical problems. Cheers Petr From: Shah Alam Sent: Monday, April 19, 2021 5:20 PM To: PIKAL Petr Subject: Re: [R] What is an alternative to expand.grid if create a long vector? Dear Petr, Thanks for

Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-20 Thread Jan van der Laan
tially. -Original Message- From: R-help On Behalf Of Rui Barradas Sent: Monday, April 19, 2021 12:02 PM To: Shah Alam ; r-help mailing list Subject: Re: [R] What is an alternative to expand.grid if create a long vector? Hello, If you want to process the data by rows, then may

Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-19 Thread Avi Gross via R-help
19, 2021 12:02 PM To: Shah Alam ; r-help mailing list Subject: Re: [R] What is an alternative to expand.grid if create a long vector? Hello, If you want to process the data by rows, then maybe you should consider a custom function that divides the problem in small chunks and process one chunk

Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-19 Thread Rui Barradas
Hello, If you want to process the data by rows, then maybe you should consider a custom function that divides the problem in small chunks and process one chunk at a time. But even so, at 8 bytes per double, 100^10 rows is (100^10*8)/(1024^4) # Tera bytes #[1] 727595761 It will take you a v

Re: [R] What is an alternative to expand.grid if create a long vector?

2021-04-19 Thread PIKAL Petr
. May I ask what you want to do with such a big object? Cheers Petr > -Original Message- > From: R-help On Behalf Of Shah Alam > Sent: Monday, April 19, 2021 2:36 PM > To: r-help mailing list > Subject: [R] What is an alternative to expand.grid if create a long vector?

[R] What is an alternative to expand.grid if create a long vector?

2021-04-19 Thread Shah Alam
Dear All, I would like to know that is there any problem in *expand.grid* function or it is a limitation of this function. I am trying to create a combination of elements using expand.grid function. A <- expand.grid( c(seq(0.001, 0.1, length.out = 100)), c(seq(0.0001, 0.001, length.out = 100)),