forked from joseph-ProCogia/SAS-to-R-for-Medicine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Exercise 1.R
38 lines (16 loc) · 827 Bytes
/
Exercise 1.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#SAS to R - Introduction Course
#Exercise #1
#ProCogia - Higher Intelligence. Deeper Insights. Smarter Decisions.
#create two variables x and y
#store the value 4*3 in x
#store the value 3/1 in y
#create a third variable z
#assign the value of x*y
#output z
#create a vector "myfirstvector" and store the values 4,3,2,1 in "myfirstvector"
#create a vector "mysecondvector" and store the values 5,6,7,8 in "mysecondvector"
#use the data.frame() function to create a dataframe called "myfirstdf" using "myfirstvector" and "mysecondvector" as inputs
#print out the output of "myfirstdf"
#use the tibble() function to create a tibble called "myfirsttibble" using "myfirstvector" and "mysecondvector" as inputs
#print out the output of "myfirsttibble"