Values and Vectors
Hello
Text Values
R scripts assign names to values, combine text, and write results. This replay shows a string moving through paste into output.
Program
Play the script to watch name flow into message, then print as plain text.
hello.R
name <- "Ada"
message <- paste("Hello", name)
cat(message, "\n", sep = "")
assignment
`<-` binds a value to a name in the current R environment.
paste
`paste` combines values into one character vector.
cat
`cat` writes text without R's printed vector prefix.