blob: bec687092ced6f8aa1e36e77c2544f98cadfd8d7 [file] [log] [blame]
#!/usr/bin/Rscript
#`
# This script takes two strings and a seperator and concatenates the two strings seperated by the seperator.
# It returns such a newly formed string
#
# Used to test the "string' data type(s) being passed from and to the Rscript operator for Malhar.
# str1 and str2 are passed as arguments by the client and retVal is the result returned by the script.
#
aString <- function(){
retVal<-c("abc")
print(retVal)
f<-function(a, b, c) {
result<-paste(a, b, sep=c)
return(result)
}
retVal<-f(str1, str2, seperator)
return(retVal)
}