Click here to Skip to main content
15,891,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Am just starting out in R and machine learning. Am working on a hierarchical clustering problem where after getting clusters of attitudinal variables (e.g preference for a certain choice), I want to do target segmentation by combining the cluster information with demographic data ,I did not include in the clustering such as marital status to check how cluster groups behave in married vs non married people. my code is as seen below

data %>%
  tabyl(clusters, marital) %>% 
  adorn_totals(c("row", "col")) %>% 
  adorn_percentages("row") %>%
  adorn_pct_formatting(digits = 2) %>%
  adorn_ns()
  Error in adorn_ns(.) : could not find function "adorn_ns"


The problem is the code throws this error, Error in adorn_ns(.) : could not find function "adorn_ns"

I have tried all that I know , but I have not been able to solve this .

Thanks in advance for your help.

What I have tried:

I have tried all that I know , but I have not been able to solve this
Posted
Updated 22-May-22 4:46am
Comments
Richard MacCutchan 22-May-22 9:41am    
Have you checked the documentation to see if it requires some external library?
smartcoder22 22-May-22 10:37am    
Thank you very much, Richard, indeed , I have managed to resolve this, there was a requirement for Janitor package to be installed.

1 solution

Have you checked the documentation to see if it requires some external library?

Quote:
Thank you very much, Richard, indeed , I have managed to resolve this, there was a requirement for Janitor package to be installed.


I have added these comments here in order to mark the question solved.
 
Share this answer
 
Comments
0x01AA 22-May-22 10:55am    
5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900