I am trying to create a 'matrix' using the array environment. I have multiple of these lines each with text besides it of varying length. I would like to have the array aligned; however, in example below, the differing length of text changes that alignment
\documentclass{article}
\usepackage{gensymb}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{dcolumn}
\newcolumntype{R}{D{.}{.}{2,6}}
\begin{document}
\[
\left[
\begin{array}{@{}RR|R@{}}
0.28 &0.72 &45\\
0.72 &0.28 &55\\
\end{array}
\right]
test
\]
\[
\left[
\begin{array}{@{}RR|R@{}}
0.28 &0.72 &45\\
0.2016 &0.0784 &15.4\\
\end{array}
\right]
test1
\]
\[
\left[
\begin{array}{@{}RR|R@{}}
0.2016 &0.5184 &32.4\\
0.2016 &0.0784 &15.4\\
\end{array}
\right]
test12
\]
\end{document}
I have tried using /hfill and the align/* environment with no success; however, my knowledge of latex is extremely limited.