#5, First Floor, 4th Street , Dr. Subbarayan Nagar, Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to implement Data Reshaping in R?
Description

To implement the data reshaping using R programming.

Process

   R Package : reshape

   R Function : melt() for molting data

   R Function : cast() for casting the molted data.

Sapmle Code

#Data Reshaping

#Installing required Packages
#install.packages(“reshape”)
library(“reshape”)

#Melt Function
attach(airquality)
View(airquality)
melt_data<-melt(airquality, id=c(“Month”,”Day”))
print(melt_data)

#Cast Function
cast(melt_data)

Screenshots