Dear Gianni,

you can also convert your x-column to be a character and then assign any
value to the line you will, just as follows

df <- data.frame(x=c("a","b","c"),y=c(1,2,3))

df$x<-as.character(df$x)

df[which(df$x=="b"),'x']<-"b%"       # notice the whith() statement can be
replace by any number of line, as you may know

 df
   x y
1  a 1
2 b% 2
3  c 3


Cheers,
Ardo.


On Wed, Sep 21, 2011 at 4:18 PM, gianni lavaredo
<gianni.lavaredo@gmail.com>wrote:

> Dear Reaserchers,
>
> sorry for desturb you, but i tryed several solution but without results. I
> have a data.frame (it's an example to explain)
>
> df <- data.frame(x=c("a","b","c"),y=c(1,2,3))
>
> > df
>  x y
> 1 a 1
> 2 b 2
> 3 c 3
>
>
> and i wish to change same paramters in the column "x" as the following
> result
>
> > df
>  x y
> 1 a 1
> 2 b% 2
> 3 c 3
>
>
> thanks in advance. Normally to result easy stuff we spent a afternoon when
> you need to send the result in the night
>
> Gianni
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

