Data Science with R | Sonal Ghanshani

Discussion in 'Big Data and Analytics' started by Nishant_Singh, Jun 1, 2019.

  1. Nishant_Singh

    Nishant_Singh Well-Known Member
    Simplilearn Support

    Joined:
    Aug 1, 2018
    Messages:
    222
    Likes Received:
    30
    #1
  2. Shaikh Mohd Shakeal

    Joined:
    May 14, 2019
    Messages:
    3
    Likes Received:
    0
    Hello Team,

    I am part of Batch 12 and we completed session 2 on 2nd June 2019. However, there were few concepts from session 3 which were also conducted. Can we have the session 3 concepts repeated in 8th June 2019 session as some part of it are still unclear.

    Thanks,
    Shakeal
     
    #2
  3. Manish Kumar Keshari

    Joined:
    May 16, 2019
    Messages:
    1
    Likes Received:
    0
    #3
  4. Meenali Dussa

    Meenali Dussa Member

    Joined:
    May 24, 2019
    Messages:
    4
    Likes Received:
    0
    Please help in constructing the code for below questions:-

    Generate a 5 x 5 matrix ‘mat2’ with elements 1:5 in the diagonal and other elements being 0.
    Add another column of elements 6:10 in mat2, making it 5 x 6 matrix.
     
    #4
  5. Meenali Dussa

    Meenali Dussa Member

    Joined:
    May 24, 2019
    Messages:
    4
    Likes Received:
    0
    can we use select, filter,arrange,mutate function in a dataset other than mtcars
     
    #5
  6. Meenali Dussa

    Meenali Dussa Member

    Joined:
    May 24, 2019
    Messages:
    4
    Likes Received:
    0
    Can I have an update on the above??
     
    #6
  7. Ashok Narayan

    Ashok Narayan New Member

    Joined:
    May 23, 2019
    Messages:
    1
    Likes Received:
    0

    mat2 <- diag(c(1:5),5,5); mat2

    [,1] [,2] [,3] [,4] [,5]
    [1,] 1 0 0 0 0
    [2,] 0 2 0 0 0
    [3,] 0 0 3 0 0
    [4,] 0 0 0 4 0
    [5,] 0 0 0 0 5


    mat2 <- cbind(mat2,c(6:10));mat2

    [,1] [,2] [,3] [,4] [,5] [,6]
    [1,] 1 0 0 0 0 6
    [2,] 0 2 0 0 0 7
    [3,] 0 0 3 0 0 8
    [4,] 0 0 0 4 0 9
    [5,] 0 0 0 0 5 10
     
    #7

Share This Page