[R] Graphing a piece-wise defined function

thedoctor81877 thedoctor81877 at gmail.com
Mon Mar 8 05:23:25 CET 2010


Hello. I am new to R, and am typing some homework for my undergrad Analysis
class. I am trying to graph the following function in R: f(x) = x^2 for x
>=0, and f(x) = 0 for x <0. How do I do this in R?

Thanks for the help.
-- 
View this message in context: http://n4.nabble.com/Graphing-a-piece-wise-defined-function-tp1584105p1584105.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list