I’m sure this one is sitting right in front of me but I can’t see it. I have a data frame, “a”, such that:
>a Chars Numbers This A 15 That B 22 Other C 18
I simply want to multiply the Numbers column by a scalar, say b <- 10, and keep the other parts of the data frame intact. (I would get 150, 220, 180 in the Numbers column of the result, but the same row/column headings and Chars column.)
What does not work is a * b, trying to use apply, or a$Numbers * b.