Pull back the carpeting and determine the extent of the floor area damaged. Cut out the carpet carefully along the edges of cabinets and walls if it cannot be salvaged and use this piece as a template for cutting your new carpet.
Look for the water-induced warping on the subfloors. Remove all of the damaged panels using the pry bar, hammer, saws or drill as required.
Replace these panels as needed by cutting them to size if required. Attach them to the RV's framing in the same manner the old subfloor panels were attached, making sure the edges of the panels are supported by the framing beams. Flush mount or countersink the hardware to the new panels with deck screws or bolts used for the damaged panels.
Replace the damaged carpet with the new piece cut using the old piece as a template. Attach in the same manner the old carpet was attached to the floor, usually by stapling it to the floor or using trim pieces along the edges of the cabinets and walls. Stretch it out before cutting the new carpet to size.