Example R codes for the trip robust approach in the following paper: Chu L, Warren JL, Spatz ES, Lowe S, Lu Y, Ma X, Ross JS, Krumholz HM, Chen K. Floods and cause-specific mortality in the United States applying a triply robust approach. Nature Communications. DOI: 10.5281/zenodo.14888417