Tuesday, August 13, 2019

Describe the differences between the R list and vector Essay

Describe the differences between the R list and vector - Essay Example Visualising data as graphs ,maps and boxplots is another important requirement . R comes with strong graphical and mapping facilities. â€Å"R is an integrated suite of software facilities for data manipulation. R is very much a vehicle for newly developing methods of interactive data analysis. Many consider R as a statistical system. It is an environment in which most of classical and modern statistical techniques have been implemented†.(Venables et al 2009) . â€Å"Every thing is an object in R. All Objects are built of a basic set of built-in objects. The type of an object define how it is stored in R. Objects in R also are members of a class. .Classes define what information objects contain and how these objects may be used â€Å".(Adler Joseph 2009) All kinds of vectors can be created using the c(†¦.) function where c stands for combine or concatenate . Numeric vectors containing a sequence of values can be created using the sequence function seq( ) or using the operator :. Vectors can also be created by repetition of elements using rep( ) function(Alder Joseph 2009) Vectors can be used in arithmetic expressions ,in which case the operations are performed element by element. The elementary arithmetic operators are +,-,*,/ and ^ (Venable etal 2010).Vectors need not be of the same length A lot of built in mathematical functions are available in R which can take a vector as an argument and return another vector as a result .Such functions are called vectorised functions .Such functions make calculating and plotting mathematical functions easy. Lists are created using the list function .Objects in the list can also be named . Components in the list can accessed by the double subscript `i` where i is the position in the list. If the objects in the list are named ,the components can be accessed using

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.