R SQLDF extract only a value

Solution 1:

We may use [[ or $

sum_of_a$COLS

or with [[

sum_of_a[[1]]

In R, the indexing starts from 1