Extending the answer from @Raphael Nishimura:
If the goal is to average all the columns of the date.frame dados, instead of using a command for each of the columns as in:
mean(dados$V1)
mean(dados$V2)
mean(dados$V3)
...
use the function apply (assuming that all columns of dados are of the type numeric):
apply(dados,2,mean)
Where 2 indicates that the data.frame will be divided into columns (1 for lines and c(1,2) for rows AND columns). Note that you can replace the function mean by any other you wish, such as sd to calculate the standard deviation.
-1. It is necessary to demonstrate some research effort on the subject that wants to be clarified. It is a basic principle of the OS.
– Paulo Cardoso