How would I get the graphs of the PMF and CDF in R for this PMF for a given discrete random variable X.
I have tried with a else-ladder (as a piece wise function