Professional Documents
Culture Documents
Today Objective
Similarly, to read .csv files the read.csv() function can be used to read
in the data frame directly
excle:
library("readxl")
airqual <-
read_excel("C:\\Users\\admin\\Desktop\\BA_Gradesheet.xl
sx") Indian Institute of Management (IIM),Rohtak
Pivot Table
espn = read.csv("espn.CSV",header=TRUE)
or espn = read.csv("espn.CSV")
rpivotTable(espn)
rpivotTable(espn, rows="Gender",
col="Location",
aggregatorName="Average",
vals="Income",
rendererName="Table")
Indian Institute of Management (IIM),Rohtak
Pivot Table
library(rpivotTable)
Product = read.csv("pivot-
table.CSV",header=TRUE)
rpivotTable(Product, rows="Product",
col="Catgeory",
aggregatorName="Average",vals="A
mount", rendererName="Table")
Indian Institute of Management (IIM),Rohtak
Pivot Table
Case :espn.csv
Q1.Analyzing the gender of subscribers in
terms of percentage?
library(rpivotTable)
Library(devtools)
espn = read.csv("espn.CSV")
rpivotTable(espn, row="Gender")