R Coding Language
R Coding Language
Ans. R language is a language for statistical computing and graphics for doing data analysis and using
statistical tool. In many organizations’ R is being used for its versatility. Such as Healthcare
Industries, Social Media, Data journalism and so on. Facebook, Google, Microsoft etc also use R
coding for statistical analysis.
Limitations of R coding?
Ans. There are many barriers and limitations in R coding.
Package: collection of R functions, complied code and sample data. They are stored under a
directory called "library" in the R environment. By default, R installs a set of packages during
installation.
Attribute: Objects in R can have many properties associated with them, called attributes. These
properties explain what an object represents and how it should be interpreted by R. Quite often, the
only difference between two similar objects is that they have different attributes.
Dimension: dim () function in R Language is used to get or set the dimension of the specified matrix,
array or data frame.
NA & NaN value: A NAN value in R represents “NOT A NUMBER”, It is basically any numeric
calculations with an undefined result, such as '0/0'. This exists only in vectors with numeric datatype.
A NA value in R represents "NOT AVAILABLE". This can exist in any sort of numeric or character
vectors.
Data types: R's basic data types are character, numeric, integer, complex, and logical.
Difference Among:
List: A list can hold items of different types and the list size can be increased on the fly. List contents
can be accessed either by index (like mylist[[1]]) or by name (like mylist$age).
Vector: Vector is what is called an array in all other programming languages except R — a collection
of cells with a fixed size where all cells hold the same type (integers or characters or reals or
whatever).
Array: An Array is a vector with one or more dimensions. So, an array with one dimension is (almost)
the same as a vector. An array with two dimensions is (almost) the same as a matrix. An array with
three or more dimensions is an n-dimensional array.
Factors: Factor is a variable used to categorize and store the data, having a limited number of
different values
Matrix: is a two-dimensional vector (fixed size, all cell types the same).
Data Frame: is called a table in most languages. Each column holds the same type, and the columns
can have header names.
• ggplot2.
• data.table.
• dplyr.
• tidyr.
• Shiny.
• plotly.
• knitr.
• mlr3
What does it mean by input and output in R coding?
Ans. Input functions take an arbitrary data source (in-memory data sets, streaming data, custom
data format, and so on) and generate Tensors that can be supplied to TensorFlow models. An output
function is a function that an optimization function calls at each iteration of its algorithm.