I would like to print a table with sums, but only for certain columns. Let's say for this example only column 2 and 3, while I would like to print the entire table (with sums for only 2 columns) and maintaining the original structure of the table.
x <- data.frame(
fruit = c("apple", "orange", "banana"),
amount = c("10", "5", "4"),
price = c(2.5, 2, 1.5),
taste = c("great", "super", "nice"))
x`
Could you please help me with this?