PSTAT 10 FINAL EXAM WITH CORRECT
ACTUAL QUESTIONS AND CORRECTLY
WELL DEFINED ANSWERS LATEST
ALREADY GRADED A+
Vector Syntax - ANSWERS-vector(class of object, length)
typeof(z) - ANSWERS-gives class of vector
"character", "numeric"
length(x) - ANSWERS-gives vector length
str(q) - ANSWERS-gives, class, length, and all the values of a
vector
chr [1:4] "bob" "ann" "jon" "ivy"
seq(10) - ANSWERS-returns vector 1 to 10
,seq(1, 10, by = 0.5) - ANSWERS-returns vector from 1 to 10
incremented by .5
sequence syntax - ANSWERS-seq(from, to, by = 0.5)
Statistics - ANSWERS-the science of data
population - ANSWERS-the complete collection of all
individuals to be studied
sample - ANSWERS-group of members selected from the
population
Parameter - ANSWERS-a numerical measurement describing
some characteristic of a population
Statistic - ANSWERS-a numerical measurement describing
some characteristic of a sample
indaviduals - ANSWERS-objects described by a set of data
, variable - ANSWERS-any characteristic of an indavidual
a variable can be... - ANSWERS-categorical(qualitative)
or
quantitative
Barplot vector - ANSWERS-barplot(x)
barplot syntax - ANSWERS-barplot(H, xlab, ylab, main,
names.arg, col, border)
barplot example - ANSWERS-barplot(x, names.arg
=breedname, xlab = "BREED", ylab = "Number of Dogs", col
= "GREEN", main = "DOG CHART", border = "BLACK")
piechart - ANSWERS-pie(x, labels, radius, main, col,
clockwise)
piechart example - ANSWERS-x<-c(4,5,6,1,4)
labels<-c("comedy", "action", "romance", "drama", "scifi")
pie(x,labels,radius=0.8,main="Movies", col=
rainbow(length(x)), clockwise = TRUE)
ACTUAL QUESTIONS AND CORRECTLY
WELL DEFINED ANSWERS LATEST
ALREADY GRADED A+
Vector Syntax - ANSWERS-vector(class of object, length)
typeof(z) - ANSWERS-gives class of vector
"character", "numeric"
length(x) - ANSWERS-gives vector length
str(q) - ANSWERS-gives, class, length, and all the values of a
vector
chr [1:4] "bob" "ann" "jon" "ivy"
seq(10) - ANSWERS-returns vector 1 to 10
,seq(1, 10, by = 0.5) - ANSWERS-returns vector from 1 to 10
incremented by .5
sequence syntax - ANSWERS-seq(from, to, by = 0.5)
Statistics - ANSWERS-the science of data
population - ANSWERS-the complete collection of all
individuals to be studied
sample - ANSWERS-group of members selected from the
population
Parameter - ANSWERS-a numerical measurement describing
some characteristic of a population
Statistic - ANSWERS-a numerical measurement describing
some characteristic of a sample
indaviduals - ANSWERS-objects described by a set of data
, variable - ANSWERS-any characteristic of an indavidual
a variable can be... - ANSWERS-categorical(qualitative)
or
quantitative
Barplot vector - ANSWERS-barplot(x)
barplot syntax - ANSWERS-barplot(H, xlab, ylab, main,
names.arg, col, border)
barplot example - ANSWERS-barplot(x, names.arg
=breedname, xlab = "BREED", ylab = "Number of Dogs", col
= "GREEN", main = "DOG CHART", border = "BLACK")
piechart - ANSWERS-pie(x, labels, radius, main, col,
clockwise)
piechart example - ANSWERS-x<-c(4,5,6,1,4)
labels<-c("comedy", "action", "romance", "drama", "scifi")
pie(x,labels,radius=0.8,main="Movies", col=
rainbow(length(x)), clockwise = TRUE)