Hi, Could you please tell me what the table funct...

Discussion in 'Big Data and Analytics' started by Vidya Menon, Mar 2, 2018.

  1. Vidya Menon

    Vidya Menon Member

    Oct 29, 2017
    Likes Received:
    Could you please tell me what the table function is doing in the
    video lecture 6.6.... Also I would like to know what graph is exactly ploted by
    the barplot .
  2. Priyanka_Mehta

    Priyanka_Mehta Well-Known Member
    Simplilearn Support

    May 25, 2017
    Likes Received:
    Hi Vidya,

    In video lecture 6.6 of Data Science with R, table() returns a contingency table, an object of class "table", an array of integer values. Note that unlike S the result is always an array, a 1D array if one factor is given. As mtcars is a dataset, and we want to plot gears data from the specified dataset.

    We will firstly get the gear data as an array in the table and then we will plot the Bar Chart.

    Barplot ;is used to plot a bar chart (horizontal or vertical). A barplot (or barchart) is one of the most common type of graphic. It shows the relationship between a numerical variable and a categorical variable. For example, you can display the height of several individuals using bar chart. Barcharts are often confounded with histograms, which is highly different. (It has only a numerical variable as input and shows its distribution).

    I hope this will help you.
  3. jordan_18

    jordan_18 Member

    Mar 6, 2018
    Likes Received:
    Can you share a link of this lecture, please)

Share This Page