kable

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
COLLEGE UNDERGRADUATE - Full-time UNDERGRADUATE - Part-time UNDERGRADUATE - Total GRADUATE - Full-time GRADUATE - Part-time GRADUATE - Total TOTAL - Full-time TOTAL - Part-time TOTAL
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

kableExtra

kableExtra without styling

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
COLLEGE UNDERGRADUATE - Full-time UNDERGRADUATE - Part-time UNDERGRADUATE - Total GRADUATE - Full-time GRADUATE - Part-time GRADUATE - Total TOTAL - Full-time TOTAL - Part-time TOTAL
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

kableExtra with basic styling

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
COLLEGE UNDERGRADUATE - Full-time UNDERGRADUATE - Part-time UNDERGRADUATE - Total GRADUATE - Full-time GRADUATE - Part-time GRADUATE - Total TOTAL - Full-time TOTAL - Part-time TOTAL
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

kableExtra with advanced styling

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
Undergraduate
Graduate
Total
College Full-time Part-time Total Full-time Part-time Total Full-time Part-time Total
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

kableExtra with advanced styling part 2

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
Undergraduate
Graduate
Total
College Full-time Part-time Total Full-time Part-time Total Full-time Part-time Total
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

DT

DT without any styling


DT with styling


DT with styling 2

This is all or nothing. If I add bootstrap styling here it styles the previous table too!!! No Bootstrap theme is used here.

Also found that the double header doesn’t download properly with the excel, pdf etc… buttons.

Problem is that the reason that these columns are formatted so nicely and evenly-spaced is because the header labels are shorter and so the columns do not have to be expanded to fit the text. If we want shorter header names we may have to make more tables with less columns.

There’s also no way that I have fond so far to format teh total rows to be a different color to separate tehm out from teh colleges, so we may want to remove teh total and subtotal rows.


xtable

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
COLLEGE UNDERGRADUATE - Full-time UNDERGRADUATE - Part-time UNDERGRADUATE - Total GRADUATE - Full-time GRADUATE - Part-time GRADUATE - Total TOTAL - Full-time TOTAL - Part-time TOTAL
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor & Urban Studies 10 166 176 12 222 234 22 388 410
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906

stargazer

Note that this package misinterprets the & character in “Labor & Urban Studies”!!!

Total Enrollment by Undergraduate and Graduate Level, Full-time/Part-time Attendance, and College - Fall 2018
COLLEGE UNDERGRADUATE - Full-time UNDERGRADUATE - Part-time UNDERGRADUATE - Total GRADUATE - Full-time GRADUATE - Part-time GRADUATE - Total TOTAL - Full-time TOTAL - Part-time TOTAL
Baruch 11,495 3,529 15,024 566 2,439 3,005 12,061 5,968 18,029
Brooklyn 11,142 3,836 14,978 595 2,588 3,183 11,737 6,424 18,161
City 10,248 2,938 13,186 503 2,058 2,561 10,751 4,996 15,747
Hunter 13,111 4,101 17,212 1,524 4,466 5,990 14,635 8,567 23,202
John Jay 10,740 2,579 13,319 388 1,687 2,075 11,128 4,266 15,394
Lehman 7,794 4,845 12,639 214 1,934 2,148 8,008 6,779 14,787
Medgar Evers 4,705 1,933 6,638 6,638
NYCCT 10,902 6,367 17,269 17,269
Queens 12,201 4,419 16,620 430 2,696 3,126 12,631 7,115 19,746
Staten Island 9,567 2,644 12,211 226 810 1,036 9,793 3,454 13,247
York 5,085 3,410 8,495 147 51 198 5,232 3,461 8,693
Graduate School 3,139 468 3,607 3,607
Journalism 225 5 230 230
Professional Studies 401 1,710 2,111 19 1,075 1,094 420 2,785 3,205
Labor Urban Studies 10 166 176 12 222 234 22 388
Public Health 163 426 589 589
Law School 418 165 583 583
Medical School 237 59 296 296
Total Senior Colleges 107,401 42,477 149,878 8,806 21,149 29,955 116,207 63,626 179,833
BMCC 18,076 8,430 26,506 26,506
Bronx 6,685 3,834 10,519 10,519
Guttman 848 107 955 955
Hostos 4,138 3,193 7,331 7,331
Kingsborough 8,154 6,897 15,051 15,051
LaGuardia 10,671 8,629 19,300 19,300
Queensborough 9,232 6,179 15,411 15,411
Total Community Colleges 57,804 37,269 95,073 95,073
Sum 165,205 79,746 244,951 8,806 21,149 29,955 174,011 100,895 274,906