You can make a column of numbers negative in R by multiplying the column by -1. Here is an example:
158 chars8 lines
In this example, we create a data frame with a column named numbers
containing some numbers. Then, we multiply the numbers
column by -1 to make all the numbers negative.
gistlibby LogSnag