Ans: By using # at the starting of the line of code like #division commands are written.
Ans: It is used to determine that the means of two groups are equal or not by using t.test() function.
Ans: The disadvantages are:-
Ans:
with() function applies an expression to a dataset.
#with(data,expression)
By() function applies a function t each level of a factors.
#by(data,factorlist,function)
Ans: In R missing values are represented by NA which should be in capital letters.
Ans: Subset() is used to select the variables and observations and sample() function is used to generate a random sample of the size n from a dataset.
Ans: Transpose is used for reshaping of the data which is used for analysis. Transpose is performed by t() function.
Ans:
The advantages are:-Now that you are aware of the benefits of R programming
Ans: For adding two datasets rbind() function is used but the column of two datasets must be same.
Syntax: rbind(x1,x2……) where x1,x2: vector, matrix, data frames.
Ans: Cor-relations is produced by cor() and covariances is produced by cov() function.
Ans: Dataframe can contain different type of data but matrix can contain only similar type of data.
Ans: lapply is used to show the output in the form of list whereas sapply is used to show the output in the form of vector or data frame
Ans: Seq(4) means vector from 1 to 4 (c(1,2,3,4)) whereas seq_along(4) means a vector of the length(4) or 1(c(1)).
Ans: rcmdr command is used to start the R commander GUI.
Ans: In 32 bit system memory limit is 3Gb but most versions limited to 2Gb and in 64 bit system memory limit is 8Tb.
Ans: There are 5 data structure in R i.e. vector, matrix, array which are of homogenous type and other two are list and data frame which are heterogeneous.
Ans: There are two methods that is collapsing data by using one or more BY variable and other is aggregate() function in which BY variable should be in list.
Ans: Typing the command, (“Rcmdr”) into the R console starts the R commander GUI.
Ans: Packages are the collections of data, R functions and compiled code in a well-defined format and these packages are stored in library.
Ans: Workspace is the current R working environment which includes any user defined objects like vector, lists etc.
Ans: Merge()function is used to merge two data frames
Eg. Sum<-merge(data frame1,data frame 2,by=’ID’.
Ans: rbind() function is used to merge two data frames vertically.
Eg.
Sum<- rbind(data frame1,data frame 2)
Ans: It is used for experimental design .It is used to determine the effect of given sample size.
Ans: Pwr package is used for power analysis in R.
Ans: There are many ways to export the data into another formats like SPSS, SAS , Stata , Excel Spreadsheet.
Ans: For excel xlsReadWrite package is used and for sas,spss ,stata foreign package is implemented.
Ans: In R NaN is used to represent impossible values.
Ans: Save command is used for storing R objects into a file.
Syntax: >save(z,file=”z.Rdata”)
Ans: load command is used for storing R objects from a file.
Syntax: >load(”z.Rdata”)
Ans: Coin package is used to achieve the re randomization or permutation based statistical tests.
Ans: order() function is used to perform the sorting.
Ans: IOS-6.1.3
Ans: The event will be dispatched to your delegate for processing.
Ans: The app specific objects are Data model objects that store app’s contents.
Ans: UIWindow object coordinates the one or more views presenting on the screen.
Ans: UIView Controller class.
Ans: Using axes() function custom axes are created.
Ans: abline() function is add the reference line to a graph.
Syntax:-
abline(h=yvalues, v=xvalues)
Ans: vcd package provides different methods for visualizing multivariate categorical data.
Ans: GGobi is an open source program for visualization for exploring high dimensional typed data.
Ans: It is a package which provide bar plots, mosaic plots, box plots, parallel plots, scatter plots and histograms.
Ans: lattice package is to improve on base R graphics by giving better defaults and it have the ability to easily display multivariate relationships.
Ans: It is used to provide the maximum likelihood fitting of univariate distributions. It is defined under the MASS package.
Ans: Data structures are vectors, arrays, data frames and matrices.
Ans: It defines the direction of output.
Ans: This function is used to show the packages which are installed.
Ans: By this function we see that which packages are currently loaded.
Ans: Binary operators are worked on matrices, vectors and scalars.
Ans: It is used to define the desired table using function and model formula.
Ans: Typing the command, (“Rcmdr”) into the R console starts the R commander GUI.