> c(as.matrix(df[1,]))
will also work in your case.
Gasper Cankar
-Original Message-
From: N. Lapidus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2008 9:06 AM
To: r-help@r-project.org
Subject: Re: [R] Converting 1-D array to vector
You were very close to an ans
N. Lapidus wrote:
> You were very close to an answer :
> as.vector(unlist(df[1,]))
>
>
I'd use as.character() there, for clarity. It's not easy to remember
what as.vector on a factor variable does.
Also notice that the original post has serious confusion about what the
data structures are:
df
You were very close to an answer :
as.vector(unlist(df[1,]))
Nael
On Wed, Aug 27, 2008 at 7:53 AM, Ronnen Levinson <[EMAIL PROTECTED]> wrote:
>
> Hi.
> How do I convert a one-dimensional array of characters to a character
> vector? In the example below I am trying to get the result c("a",
3 matches
Mail list logo