Hi R,

 

May be a trivial question, but struggling to find a solution...

 

v=data.frame(a=c("1,234","2,345","5,567"))

> v

        a

1    1,234

2    2,345

3    5,567

 

I need a column 'b', which is just the addition of column 'a' with 5.
How do I do it? And, entries in column 'a' are with commas, always.
Also, class(v$a)=factor.

 

BR, Shubha


	[[alternative HTML version deleted]]

