I come from a python background but I'm new to R (need to learn it in a hurry), stuck at an issue:
I am developing a function to print out the variables passed into my function, kinda simple.
hello_world <- function(fn, num) {
print("The stuff you sent in were "$fn" and "$num")
}
so if I call hello world as such:
hello_world("foo", 3:5)
I should see
The stuff you sent in were "foo" and "3:5"
I tried print("$foo", "$num")...still having issues. How can I do this without using sprint?
$, fromfnandnumand usepastei.e.paste("The stuff you sent in were", fn, ' and ', num)