We can convert using paste() and use collapse argument to separate vectors items Code to convert vectors to strings #Converting Vectors to Strings stringVector <- […]
Category: Introduction to R Programming
Basic String Operations in R
Basic String Operations in R 1. nchar() is used to find length of a string Code: nchar(“Introduction to R”) Output: [1] 17 2. length() returns number of […]
Data Types in R
Data Types in R R has five main data types. Character Complex Integer Logical Numeric Real Decimal Syntax for declaring variables in R : # declaring a variable using `<-` nameOfVariable <- value # declaring a variable using `=` […]
R First Program : Hello World
R First Program : Hello World You can write your first Hello World program using print() function in R R First Hello World Program below: […]
R vs Python
R vs Python Both R and Python are open-source programming languages. New libraries and tools are continuously added to both R and Python. Most of the tasks that can […]
Histogram in R
Histogram in R A histogram represents the distribution of a continuous variable and the frequency of values bucketed into ranges. Syntax: hist(x) Example :#Simple Histogramhist(customerdata$age) […]
Pie Chart in R
Pie Chart in R A pie chart is a graph in which a circle is divided into sectors, each representing a proportion of the whole. […]
Bar Chart in R
Bar Chart in R Bar Charts are horizontal or vertical bars used to show comparisons between categorical values. They represent length, frequency, or proportion of […]
Data Visualization in R
Data Visualization in R can be done using below charts and graphics : Pie Chart Bar Chart Histogram Kernel density plot Line Chart Box Plot […]
Five dplyr functions in R
Five dplyr functions in R Select Filter Arrange Mutate Summarize
