In: Nursing
Consider R language definitions using resources provided in the study materials. Define the term data structures or objects in R and discuss several examples (e.g., vectors, lists, language objects, symbol objects, expression objects, function objects, NULL, etc.). All R objects have attributes. Purpose of attributes?
R language programming is an open-source language for data
visualization and predictive analytics, it is used for statistical
computing and graphics.in data science, it provides many techniques
as it is adaptable and extensible. clustering, classification
technique, linear and nonlinear modeling, and classical statistical
tests are techniques
of R language. Data type in R they have attributes. class, names,
and attributes are R language objects. examples of R language like
vector, array, list, matrix, data frame, and factors.
Vectors are basic R language program data object, it has many types
like atomic vectors-logical, character, raw, complex and double and
integer. Lists also contain many types like strings, numbers,
vectors, matrics of functions as elements, it helps in list
function. matrices help arrange elements in two ways and contain
the same elements data type, it contains numeric values for
mathematical operations. Factors used to store data and categorize
the level, can be integers or strings, it helps in data analytics
for statistical modeling.it is useful in factor function.
data frame each column contains the value of one variable and each
one contains the value set from each column.
Not every R objects have attributes, attributes is an object that
can be accessed using its function. null objects not having
attributes and assign them to promote the object in an empty list.
objects in R have many properties that is called attributes, these
expain the object with it and how it is interpreted to
R.Attribute() funciton used to gather all the attribute of data,it
is used to set new attributes to data.