Google News
logo
R - Interview Questions
What is the sink function in R?
The sink() function defines the direction of the output.
#direct output to a file
sink(“myfile”, append = FALSE, split = FALSE)
#return output to the terminal sink()
The append option controls whether output overwrites or adds to a file. The split option determines if the output is also sent to the screen as the output file.
Advertisement