Reading — step 1 of 5
Learn
~1 min readThe Vector Mindset
R was created in 1993 at the University of Auckland as a free implementation of S — a statistical computing language. Today it powers most academic statistics and a huge chunk of industry data science alongside Python.
cat and print both write to stdout. cat is for clean output (no quotes, no [1] prefix); print is for inspecting objects.
cat("Hello, R!\n") # Hello, R!
print("Hello, R!") # [1] "Hello, R!"
Use cat for results that other programs will read; print for interactive exploration.
Comments use #. No semicolons needed; newlines end statements.
Discussion
Ask a question, share an insight, or help someone who’s stuck.
Sign in to post a comment or reply.
Loading…