Ad

yeah, they dont show in output.
I thought better of you codewars (lol)

Code
Diff
  • p <- function() {
      x <- c(1:10)
      plot(x**2)
    }
    • print("Hellow")
    • #THis doesnt work becasue R is not supported yet
    • p <- function() {
    • x <- c(1:10)
    • plot(x**2)
    • }

Delete items from {a} that are present in {b}.
Woohooo fun fun fun!
Justa small challeng.
(IF nil FROM EMPTY LISTS: print("EmPtY!")!!! )

agck

procelim <- function(a,b) {
  if (length(a) > 0 && length(b) > 0) {
    a[!a %in% b]
  } else {
    print("EmPtY!")
  }
}
Code
Diff
  • action <- c("Hello", "Goodbye", "Afternoon")
    who <- c("Garry", "World", "R")
    greet <- function () print(paste(action[1], who[2], "!", sep=" ", collapse=NULL))
    
    
    • c("Hello World!")
    • action <- c("Hello", "Goodbye", "Afternoon")
    • who <- c("Garry", "World", "R")
    • greet <- function () print(paste(action[1], who[2], "!", sep=" ", collapse=NULL))