Ad
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
    }
    • #??????
    • func <- function(){
    • x <- c(1:10)
    • plot(x,x**2)
    • #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
    • }
Code
Diff
  • #??????
    func <- function(){
    x <- c(1:10)
    plot(x,x**2)
    }
    • print("Hellow")
    • #THis doesnt work becasue R is not supported yet
    • #??????
    • func <- function(){
    • x <- c(1:10)
    • plot(x,x**2)
    • }