Week14 Asynch
Week14 Asynch
data
ASYNCHRONOUS
Interpreted language
Let's review
Extensible object system
Writing comments
Creating basic objects
Working with R- Getting help
Saving
Create objects
and call them
String <- "hello world"
String
Math
More about vectors
A vector is a series of values. It contains elements of the
same type.
If consecutive numbers
(like 1, 2, 3, 4, 5, 6) use consecutive<- 1:6
a colon:
Functions
You can either manually specify a function’s arguments or
(also called use the function’s default values.
commands)
perform Generally take the form: function_name(arguments)
tasks in R
Each package has their own set of functions
R saves data to your working folder
Setting a
working check the working directory: getwd()
directory
Set the working directory in Rstudio's GUI
help(package="datasets")
CSV APIs
Name <- read.csv("Path where your
CSV file is located on your
computer\\File Name.csv")
What is an
API? A ‘request’ follows certain programmatic rules. It is
submitted to a server and the server returns a
‘response’ containing content in an expected format