1.

Write the syntax to set the path of the current working directory in R environment?(a) Setwd(“dipath”)(b) Setwd(dir_path)(c) Setwd(“dir_path”)(d) Set(“dir_path”)I had been asked this question in homework.The doubt is from Functions topic in section Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Right answer is (c) Setwd(“dir_path”)

To explain: The CURRENT R working ENVIRONMENT of a user which has user-defined objects like lists, vectors, ETC. is referred to as WORKSPACE in R language. The workspace of R is flexible to all functions of statistics.



Discussion

No Comment Found

Related InterviewSolutions