1.1 Data Preparation
Project Brief:
- A scatter-plot classified by industry showing revenue, expenses, profit
- A scatter-plot that includes industry trends for the expenses~revenue relationship
- Box-plots showing growth by industry
https://drive.google.com/file/d/0B3RXs3bXRr3oR2c5cnhJZ2laejQ/view?usp=sharing
Let’s Import data in R now:-

I have saved the file in directory C:\SAM\R\SA, hence have to set the working directory as same using setwd() and getw() displays this working directory.
Read the data using following command

This will create a data-object or dataframe named fin. You can see this in Data Pane at the right. Now let’s look at the top few rows of fin using following code


We can also have a look at bottom rows. let’s view last 10 rows.


Now, let’s look at the structure of our dataframe using str(), note that it shows the data type of each column.

Summary(), this function gives the summary of each column, with various details as follows.

The Complete Code is like this

After carefully analyzing these dataset fin we understand that numerous columns which are factors i.e Categorical variables. we will analyze this more in next tutorial.
Nice it is very useful thank you for sharing
ReplyDeleteTableau Online Course Bangalore