How do I right align in the following example, given that I am using p{} for column widths?
Ideally I'd like the right hand side four columns to be right aligned, and the others left aligned.
I can get a workaround, using \multicolumn{1}{r}{...} for each individual cell, but it's a bit long tbf...
Cheers
\begin{table}[htbp!]
\centering
\captionsetup{justification=centering}
\caption*{\textbf{Table 1.1: Summary Statistics}}
\vspace{-10pt}
\begin{threeparttable}
\begin{tabular}{p{1.5cm} p{2cm} p{2cm} p{1.5cm} p{2cm} p{1.8cm} p{1.8cm}}
\hline\hline
& & & & & & \\
Variable & Number of & Unit of & & Standard & Minimum & Maximum \\
name & observations & observation & Mean & deviation & value & value \\
\hline
\hline\hline
\end{tabular}
\end{threeparttable}
\end{table}

\documentclass{...}and ending with\end{document}. – Cragfelt Dec 06 '17 at 10:38rspecification for these columns? – Andrew Swann Dec 06 '17 at 10:40\multicolumnis a real alternative, then Andrew's suggestion is the most logical. Otherwise: https://tex.stackexchange.com/questions/338009/right-alignment-for-plength-box-in-tabular – Torbjørn T. Dec 06 '17 at 10:42Do you mean replace p{2cm} with r?
– eBopBob Dec 06 '17 at 10:55rinstead ofp{2cm}, the column will have the width of the widest cell in it. Did you look at the link I posted though? – Torbjørn T. Dec 06 '17 at 11:47threeparttableenvironment properly; it should include the\caption*statement. – Mico Dec 06 '17 at 16:15