CSCI N207 Quiz Five Answers

docx

School

Ivy Tech Community College, Indianapolis *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

7

Uploaded by MagistrateMolePerson2564

Report
CSCI N207 Quiz Five Answers i Question You can download the R program free of charge from the internet. :Answer True Which of the following command can specify an R workspace on a Windows computer, provided that the workspace is a folder named "C:\Users\mjavt\Desktop\n207"? setwd("C:\Users\mjavt\Desktop\n207") setwd <- "C:\Users\mjavt\Desktop\n207" :Answer setwd("C:\\Users\\mjavt\\Desktop\\n207") setwd(C:\\Users\\mjavt\\Desktop\\n207) i Question Which of the following is a correct command to load the datain a csv file named "largeData" into R? :Answer v <- read.csv(file="largeData.csv", header=TRUE, sep=""); v <-read.csv(file="largeData", header=TRUE, sep=""); v <-read.csv(file="LargeData", header=TRUE, sep=""); v <- read.csv(file="LargeData.csv", header=TRUE, sep="");
Question Ifv contains all the data loaded from a csv file and the first row in the csv file are column headers, what does the command "names(v)" do? Show the csv file name Show all the values inv Aosxeg Show all the column headers inv No answer text provided. Question If v contains all the data loaded from a csv file, and the file has a column named "Sales’, what is the correct way to get all the values in the Sales column? v<-Sales Aosxeg v§Sales Sales Question If v contains all the data loaded from a csv file, and the file has a column named "Sales", what is the function to find the average of all the values in the Sales column? avg median average Answer mean
Question What s true about plot()? Choose all that apply. tAnswer It can generate a scatter chart. [ tAnswer Itis afunction. When given an x value, it can predict ay value. =plot{xy) will create a chart. Question Ris not available for MacOS systems. t Answer Fase Question Which symbol in R indicates it is ready to accept a new command? t Answer N
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question If v contains all the data loaded from a csv file, and the file has a column named "Sales”, what is the result of this command? x<-v$Sales Vv's datais given tox, v becomes empty V's datais given tox, vand x have the same data Datain the Sales columns is given to x, the Sales column becomes empty tAnswer Data in the Sales columns is given to x, x and v$Sales have the same data Question Which of the following is the correct interpretation of the command "a <- b"? aisequaltob tAnswer agetsthevalue of b aisnotequaltob Question What s the value of a after running the following commands? a<-3 b<-5 a<b+4 tAnswer 9
Question Inanif/else structure, either the "if" statement runs or the "else” statement runs, but not both. Answer True False Question Which of the following command will output "The result is 3" paste(*The resultis ", sqrt(9), sep paste("The resultis ", sqrt(9), ") paste(*The result s ", sart(9)) Answer paste("The result is ", sqrt(9), ™" se Question What s the result for running the following statements? a<-30; if (2>=90) A" Answer No output A B There is an error in the statements.
Question Every function should take at least one input. True tAnswer False Question When using R software, pressing the Up arrow will let you see commands typed earlier. tAnswer True False Question What function will create a vector with several elements? Vi) tAnswer 0 paste() function()
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question Which of the following s a variable in the following R statements? Choose all that apply. t<-0: d<-26; plot(t.d); if (t > 1) "Show Result"; plot Answer t Answer d Question If you need to save your R statements, you can save theminto a fi e. Answer ot