Learn R Programming

simsem (version 0.2-8)

revText: Reverse the proportion value by subtracting it from 1

Description

Reverse the proportion value by subtracting it from 1. This function can reverse a value reported in text, such as from "> .98" to "< .02"

Usage

revText(val)

Arguments

val
The value to be reversed

Value

  • The reversed value or text

Examples

Run this code
# This is a private function.

# revText(.96)
# revText("> .60")

Run the code above in your browser using DataLab