[R] Help with Cluster Tutorial Error
B|||@Po||ng @end|ng |rom ze||@@com
Fri Feb 15 18:57:50 CET 2019
Hi Jeff and David.
Yes, updating all my Pkgs has done the trick.
I will remember to try that first next time.
As always I appreciate your help.
From: Jeff Newmiller <jdnewmil using dcn.davis.ca.us>
Sent: Friday, February 15, 2019 10:48 AM
To: r-help using r-project.org; David L Carlson <dcarlson using tamu.edu>; Bill Poling <Bill.Poling using zelis.com>; r-help (r-help using r-project.org) <r-help using r-project.org>
Subject: Re: [R] Help with Cluster Tutorial Error
Another possible issue could be some outdated packages... be sure to update all packages.
On February 15, 2019 7:05:44 AM PST, David L Carlson <mailto:dcarlson using tamu.edu> wrote:
>I'm not getting any error on that line in Windows 10. I did not try
>running anything past that line.
>Have you tried restarting R and clearing your environment?
>David L Carlson
>Department of Anthropology
>Texas A&M University
>College Station, TX 77843-4352
>From: R-help <mailto:r-help-bounces using r-project.org> On Behalf Of Bill Poling
>Sent: Friday, February 15, 2019 7:37 AM
>To: r-help (mailto:r-help using r-project.org) <mailto:r-help using r-project.org>
>Subject: [R] Help with Cluster Tutorial Error
>#R version 3.5.2 (2018-12-20)
>#Platform: x86_64-w64-mingw32/x64 (64-bit)
>#Running under: Windows >= 8 x64 (build 9200)
>Hello I am working through this tutorial
>And I run into an error almost immediately at the point below like
> mammals <- raw_mammals %>% select(-name) # set rownames
>#Error in select(., -name) : object 'p_links' not found
>I have googled the error " R object 'p_links' not found"
>However, the links I have found seem to be specific to an object that
>has been declared by the Op, and in my case I do not know where this
>object is supposed to be coming from?
>I think this stems from the use of the dplyr Pkg?
>Here is what I have so far:
># I will be using a lesser known data set from the cluster package:
>all.mammals.milk.1956, one which I haven't looked at before.
># This small dataset contains a list of 25 mammals and the constituents
>of their milk (water, protein, fat, lactose, ash percentages) from John
>Hartigan, Clustering Algorithms, Wiley, 1975.
># First let's load the required packages. Some of these are already in
>my library, those that are not were installed
>raw_mammals <- all.mammals.milk.1956
>str(raw_mammals) #----------------------KNOW THY DATA
># 'data.frame':25 obs. of 6 variables:
># $ name : chr "Horse" "Orangutan" "Monkey" "Donkey" ...
># $ water : num 90.1 88.5 88.4 90.3 90.4 87.7 86.9 82.1 81.9 81.6 ...
># $ protein: num 2.6 1.4 2.2 1.7 0.6 3.5 4.8 5.9 7.4 10.1 ...
># $ fat : num 1 3.5 2.7 1.4 4.5 3.4 1.7 7.9 7.2 6.3 ...
># $ lactose: num 6.9 6 6.4 6.2 4.4 4.8 5.7 4.7 2.7 4.4 ...
># $ ash : num 0.35 0.24 0.18 0.4 0.1 0.71 0.9 0.78 0.85 0.75 ...
>#raw_mammals <- fread("Animal Milk Constituent
># subset dataset
>mammals <- raw_mammals %>% select(-name) # set rownames
>#Error in select(., -name) : object 'p_links' not found <--The Error
>I hope this is enough information to help answer my question.
>Confidentiality Notice This message is sent from Zelis.
>mailto:R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
Confidentiality Notice This message is sent from Zelis. This transmission may contain information which is privileged and confidential and is intended for the personal and confidential use of the named recipient only. Such information may be protected by applicable State and Federal laws from this disclosure or unauthorized use. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, review, discussion, copying, or taking any action in reliance on the contents of this transmission is strictly prohibited. If you have received this transmission in error, please contact the sender immediately. Zelis, 2018.
More information about the R-help