Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
Code
Diff
  • #problem with asking to plot something is that all plot() functions will return the same thing, so all you'd need to do would be plot([anything])
    # a better test would be asking to write a function that just returned the square of what was given
    func <- function(x){
    x**2
    }
  • 1-#??????
    2-func <- function(){
    3-x <- c(1:10)
    4-plot(x,x**2)
    1+#problem with asking to plot something is that all plot() functions will return the same thing, so all you'd need to do would be plot([anything])
    2+# a better test would be asking to write a function that just returned the square of what was given
    3+func <- function(x){
    4+x**2
    55 }
Code
Diff
  • #??????
    func <- function(){
    x <- c(1:10)
    plot(x,x**2)
    }
  • 1-print("Hellow")
    2-#THis doesnt work becasue R is not supported yet
    1+#??????
    2+func <- function(){
    3+x <- c(1:10)
    4+plot(x,x**2)
    5+}