In actions for partition, the court may order the share of any plaintiff or of any defendant, or of any two (2) or more of the parties plaintiff and defendant, to be set off to the party or parties, dividing the remainder or leaving it undivided, in its discretion.
R.I. Gen. Laws § 34-15-15