My code is:
Normality <- tapply(input$TotalAuthBdNet.USD., input$Country, summary)
The output displayed is:
$Albania
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.000e+00 1.066e+04 2.730e+04 3.403e+07 5.015e+04 2.720e+09 
$Angola
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
   5405   15323   52522  486451  170000 4513196 
$`Antigua and Barbuda`
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  22622   22622   22622   22622   22622   22622       2 
$Argentina
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
      0   15814   45000  212800  193626 4080293      15 
Country names are in rows and each country will have such statistic. I want the output as:
Country   Min.        1st Qu.  Median    Mean     3rd Qu.      Max.    NA's 
Albania  0.000e+00 1.066e+04 2.730e+04 3.403e+07 5.015e+04 2.720e+09
Angola      5405   15323   52522  486451  170000 4513196
Argentina      0   15814   45000  212800  193626 4080293      15
The country name is a list identified from the file.
 
     
     
    