used the generic Summary() function to get some data. Now i want to display some of the summary data into a table and then knit into pdf. How to I create a table on the results from calling the Summary() function?
Using TeX, kableExtra and ggplot2.
summary(segmentdata)
summary(subset(segmentdata, Segment == "Suburb mix"))
summary(subset(segmentdata, Segment == "Urban hip"))
summary(subset(segmentdata, Segment == "Travelers"))
summary(subset(segmentdata, Segment == "Moving up"))
E.g. data
age           gender              income            kids         ownHome
Min.   :20.00   Length:300         Min.   :-13292   Min.   :0.000   Length:300
1st Qu.:32.75   Class :character   1st Qu.: 38122   1st Qu.:0.000   Class :character
Median :39.00   Mode  :character   Median : 51134   Median :1.000   Mode  :character
Mean   :40.59                      Mean   : 50259   Mean   :1.163
3rd Qu.:47.00                      3rd Qu.: 63001   3rd Qu.:2.000
Max.   :70.00                      Max.   :139679   Max.   :5.000
subscribe           Segment
Length:300         Length:300
Class :character   Class :character
Mode  :character   Mode  :character
 
    