I have been searching the definition for increasing and decreasing functions.

Most of the definition define f such that f : A -> R where A is a subset of real numbers R. Then f is increasing if f(y)>f(x) where y>x and x, y in A.

Is it necessary that the domain of f must be a subset of R?

Can the domain be R?

Thanks for those who help...