Help for this page

Select Code to Download


  1. or download this
    reverseWords <- function(words) {
         return( sort( words, decreasing=TRUE))
    }
    
  2. or download this
    reverseWords <- function(words) {
      return( paste( rev( unlist( strsplit( words, split=" "))), sep=" ", 
    +collapse=" "))
    }