I have a dataframe that I want to add a column to from another data frame. The following code "works":
GOT_TOTALS$PERCENTAGE <- totals
GOT_TOTALS
When I print GOT_TOTALS
I get my dataframe with the new column "totals".
But I can't do anything with that new column. I can't plot it in a bar graph because it doesn't register the values.
And when I save the table back onto dashDB, it saves every percentage in EACH box. For example instead a new column like this:
PERCENTAGE
1 14.10625
2 70.48295
3 18.27415
4 37.03030
5 89.40300
6 17.03065
7 34.74760
8 37.05015
9 53.86945
It shows all the percentages in EACH box like this:
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
c(14.10625, 70.48295, 18.27415, 37.0303, 89.403, 17.03065, 34.7476, 37.05015, 53.86945)
etc.
Any ideas?