> unsplit(x, f)
[1] 7 2 6 13 5 9 1 14 15 4 8 12 10 11 3
Is more general (works if the subgroups are imbalanced), and hopefully more
sexy as well :-)
Best,
-Deepayan
On Fri, 27 Sept 2024 at 10:11, Bert Gunter wrote:
> ... And, in fact, I just realized that
>
> c(do.call(rbind, x))
>
... And, in fact, I just realized that
c(do.call(rbind, x))
is even better.
-- Bert
On Thu, Sep 26, 2024 at 9:26 PM Bert Gunter wrote:
> Sorry, hit send by accident.
> The 2-line version is:
>
> x <- do.call(rbind, x)
> dim(x) <- NULL
>
> Cheers,
> Bert
>
> On Thu, Sep 26, 2024 at 9:23 PM Be
Sorry, hit send by accident.
The 2-line version is:
x <- do.call(rbind, x)
dim(x) <- NULL
Cheers,
Bert
On Thu, Sep 26, 2024 at 9:23 PM Bert Gunter wrote:
> How about:
> as.vector(do.call(rbind,x))
>
> Cheers,
> Bert
>
>
>
>
> However, I much prefer a 2 line version:
>
> On Thu, Sep 26, 2024 at
How about:
as.vector(do.call(rbind,x))
Cheers,
Bert
However, I much prefer a 2 line version:
On Thu, Sep 26, 2024 at 8:56 PM Rolf Turner wrote:
>
> I have (toy example):
>
> x <- list(`1` = c(7, 13, 1, 4, 10),
> `2` = c(2, 5, 14, 8, 11),
> `3` = c(6, 9, 15, 12, 3))
> an
Rolf,
This works, albeit you may not be thrilled:
x <- list(`1` = c(7, 13, 1, 4, 10),
`2` = c(2, 5, 14, 8, 11),
`3` = c(6, 9, 15, 12, 3))
as.vector(rbind(x[[1]], x[[2]], x[[3]]))
-- output:
> as.vector(rbind(x[[1]], x[[2]], x[[3]]))
[1] 7 2 6 13 5 9 1 14 15 4 8 1
I have (toy example):
x <- list(`1` = c(7, 13, 1, 4, 10),
`2` = c(2, 5, 14, 8, 11),
`3` = c(6, 9, 15, 12, 3))
and
f <- factor(rep(1:3,5))
I want to create a vector v of length 15 such that the entries of v,
corresponding to level l of f are the entries of x[[l]]. I.e. I
The easiest would be to send the link to the site from which you downloaded the
file.
Thanks,
-Roy
> On Sep 26, 2024, at 1:26 PM, CALUM POLWART wrote:
>
> Attachments CAN NOT be sent to group
>
>
> On Thu, 26 Sep 2024, 21:22 javad bayat, wrote:
> Dear Roy,
> Sorry for my mistake, I thought
Attachments CAN NOT be sent to group
On Thu, 26 Sep 2024, 21:22 javad bayat, wrote:
> Dear Roy,
> Sorry for my mistake, I thought I have uploaded the grib file.
> I really apologise for that. I will send it on Saturday.
> Thank you very much.
>
> On Thu, 26 Sept 2024, 17:40 Roy Mendelssohn - N
Dear Roy,
Sorry for my mistake, I thought I have uploaded the grib file.
I really apologise for that. I will send it on Saturday.
Thank you very much.
On Thu, 26 Sept 2024, 17:40 Roy Mendelssohn - NOAA Federal, <
roy.mendelss...@noaa.gov> wrote:
> Hi Javad:
>
> I know a lot about reading GRIB f
Hi Javad:
I know a lot about reading GRIB files, I work with them all the time. But if
you don’t make the file available, or point me to where I can download it,
there is not much I can do.
Thanks,
-Roy
> On Sep 25, 2024, at 9:41 PM, javad bayat wrote:
>
> Dear all;
> Many thanks for yo
10 matches
Mail list logo