This is an R Markdown document.This is the document on the canon and Nikon Prices.
minta <- read.csv("C:/Users/Abdul Qudoos/Desktop/R Assignment.csv")
Now for the Details and variable types details
summary(minta)
## Consider.the..factors.such.as.the.number.of.megapixels.. X
## Length:33 Length:33
## Class :character Class :character
## Mode :character Mode :character
## X.1 X.2 X.3 X.4
## Length:33 Length:33 Length:33 Length:33
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
## X.5 X.6 X.7
## Length:33 Length:33 Length:33
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
str(minta)
## 'data.frame': 33 obs. of 9 variables:
## $ Consider.the..factors.such.as.the.number.of.megapixels..: chr "weight (oz.), and overall score ranges from 0 to 100 of sample of " "Canon and Nikon cameras used to explain prices. " "[Note Brand=1 for Canon and 0 for Nikon]." "" ...
## $ X : chr "" "" "" "" ...
## $ X.1 : chr "" "" "" "" ...
## $ X.2 : chr "" "" "" "" ...
## $ X.3 : chr "" "" "" "" ...
## $ X.4 : chr "" "" "" "" ...
## $ X.5 : chr "" "" "" "" ...
## $ X.6 : chr "" "" "" "" ...
## $ X.7 : chr "" "" "" "" ...
Making the graphs for the normalities. here we will use the two graphs, one is of the boxplot and the other one is the histoograms.
# Separate the prices for Nikon and Canon
prices_nikon <- minta$Price[minta$brand == 0]
prices_canon <- minta$Price[minta$brand == 1]