Inline coding is one more way R developer could write R code. If you write for loop or function like
a <- function(b){
print(b)
}
this function could be coded in another way
a <- function(b)
print(b)
So, without any brackets. And finally, you can do something like
a <- function(b) print(b)
All three ways are absolutely fine. With second and third way however, you have to take into account that you can't provide more than one statement to function or loop.
For video tutorial, check the link below.
No comments:
Post a Comment