Excellent!
I felt it was fairly trivial but i can be quite dense on Friday
mornings.
I really like the generalisation.
Many thanks,
baptiste
On 3 Apr 2009, at 12:11, Wacek Kusnierczyk wrote:
baptiste auguie wrote:
Dear list,
I often need to convert several variables from numeric or in
baptiste auguie wrote:
> Dear list,
>
> I often need to convert several variables from numeric or integer into
> factors (before plotting, for instance), as in the following example,
>
>
> d <- data.frame(
> x = seq(1, 10),
> y = seq(1, 10),
> z = rnorm(10),
> a = letters[1:10])
>
Dear list,
I often need to convert several variables from numeric or integer into
factors (before plotting, for instance), as in the following example,
d <- data.frame(
x = seq(1, 10),
y = seq(1, 10),
z = rnorm(10),
a = letters[1:10])
d2 <-
within(d,
3 matches
Mail list logo