<p>This should do it. </p>

<p>Source 1: <a href="https://arxiv.org/pdf/1706.03409" rel="nofollow noreferrer">https://arxiv.org/pdf/1706.03409</a></p>

<pre><code># Clustered Wilcox test
clusWilcox.test(x ~ grp + cluster(cid), dat.cl, method = "rgl")
</code></pre>

<p>Source 2: <a href="https://www.statmethods.net/stats/nonparametric.html" rel="nofollow noreferrer">https://www.statmethods.net/stats/nonparametric.html</a></p>

<pre><code># independent 2-group Mann-Whitney U Test
wilcox.test(y~A)
# where y is numeric and A is A binary factor

# independent 2-group Mann-Whitney U Test
wilcox.test(y,x) # where y and x are numeric 

# dependent 2-group Wilcoxon Signed Rank Test
wilcox.test(y1,y2,paired=TRUE) # where y1 and y2 are numeric 
</code></pre>

<p>Next time please include a <a href="https://stackoverflow.com/q/5963269/1422451">reproducible</a> example.</p>
How to perform a Wilcoxon-Mann-Whitney test in R after creating clusters?
<p>I used the hierarchical clustering approach on my dataset and created 3 clusters, which I added as a variable to my dataset.
I would like to perform the Wilcoxon Mann Whitney test on the three clusters (clusterID) and their respective variables.</p>

<p>This is the dataset </p>

<p><a href="https://i.stack.imgur.com/DEfFt.png" rel="nofollow noreferrer">dataset</a></p>