Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Slide 106 causes "undefined columns selected" error #18232
    JayC
    Participant

    Also, for some reason my code is spitting out that the best number of clusters is 3, not 2.

    in reply to: Slide 106 causes "undefined columns selected" error #18231
    JayC
    Participant

    So the restart didn’t work, and neither did the copy/paste of your code into my code.

    But I basically rebuilt the entire expression one variable at a time and for some mysterious reason it worked.

    Weird are the ways of R.

    in reply to: Slide 106 causes "undefined columns selected" error #18110
    JayC
    Participant

    The colnames command produces:
    > colnames(NBA)
    [1] “NAME” “TEAM” “SALARY.M.” “GP” “MPG”
    [6] “PPG” “FG_PC” “X3P_PC” “FT_PC” “RPG”
    [11] “APG” “STPG” “BLKPG” “POSITION”

    Note that the file NBA.csv has a column titled “3P_PC”, and R doesn’t allow columns to start with a number (so it adds the “X”). This was covered in the data viz course I believe.

    My point is that the code on your slide does not work and I do not understand why.

    in reply to: Slide 104 causes code error #18109
    JayC
    Participant

    I figured out the wrap function (I think). The call looks something like this:

    ggpairs(NBA.viz,
    lower = list(continuous = wrap(“smooth”, color = “orange”)),
    diag = list(continuous = wrap(“barDiag”, color = “blue”)))

    which creates orange and blue bars.

    in reply to: Cannot complete course. #17971
    JayC
    Participant

    Thank you – resolved.

Viewing 5 posts - 1 through 5 (of 5 total)