: Re: [R] Manipulation of data.frame into an array
This is one of those instances where a less superficial knowledge of R's
technical details comes in really handy.
What you need to do is convert the data frame to a single (numeric) vector for,
e.g. a matrix() call. This can be easily done by
rt Gunter
Sent: 24 May 2018 16:04
To: Ioanna Ioannou
Cc: r-help@r-project.org
Subject: Re: [R] Manipulation of data.frame into an array
This is one of those instances where a less superficial knowledge of R's
technical details comes in really handy.
What you need to d
From: Bert Gunter
Sent: 24 May 2018 16:04
To: Ioanna Ioannou
Cc: r-help@r-project.org
Subject: Re: [R] Manipulation of data.frame into an array
This is one of those instances where a less superficial knowledge of R's
technical details comes in really handy.
What you need to do is conver
Why not use as.matrix(Imp) in this case?
Regards -- Gerrit
Am 24.05.2018 um 17:04 schrieb Bert Gunter:
This is one of those instances where a less superficial knowledge of R's
technical details comes in really handy.
What you need to do is convert the data frame to a single (numeric) vector
This is one of those instances where a less superficial knowledge of R's
technical details comes in really handy.
What you need to do is convert the data frame to a single (numeric) vector
for, e.g. a matrix() call. This can be easily done by noting that a data
frame is also a list and using do.ca
Hello,
I am not sure I understand the question, but see if the following is
what you want.
split(Imputed, cumsum(c(0, diff(Imputed$Y) != 1)))
Hope this helps,
Rui Barradas
On 5/24/2018 3:46 PM, Ioanna Ioannou wrote:
Hello everyone,
I want to transform a data.frame into an array (lets
6 matches
Mail list logo