Question: Since DAT 3 0 1 is the prerequisite, this course assumes prior familiarity with the R programming language. The first couple of questions are just
Since DAT is the prerequisite, this course assumes prior familiarity with the R programming language.
The first couple of questions are just a warmup in syntax.
Question
Create a variable as a vector of first natural numbers dots,
In addition, create a variable as a vector of squares of first natural numbers: dots,
# your code here
fail # No Answer remove if you provide an answer
# check whether you created vectors and which are numeric and of length
librarytestthat #in case you forgot to run the first cell but please run it anyways
if testthat
expectequalisvector TRUE
expectequalisvectory TRUE
TRUE stop Sorry or was not created as a vector"
if testthat desc
expectequal isnumeric TRUE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
