A logical value is often created via comparison between variables.
> z = x > y # is x larger than y?
> z # print the logical value
> class(z) # print the class name of z
Standard logical operations are "&" (and), "|" (or), and "!" (negation).
> u & v # u AND v
> u | v # u OR v
> !u # negation of u
Further details and related logical operations can be found in the R documentation.