scan() to quickly enter some dataThe easiest (but less reproducible) way to get some data into a vector in R is to use the scan command.
x <- scan()
# Type in values followed by spaces or enter, or copy/paste a bunch of numbers at once
# End the process by typing Enter twice to leave a blank line
x # See your valuesYou can also read in text data, but you have to specify some parameters: