MALDI NY AMB FCY ECN KCA CLO MIC ITR VOR FLU
1 C. albicans 2 1 1 1 1 1 1 1 1 1
2 C. albicans 2 1 1 1 1 1 1 1 1 1
3 C. albicans 2 1 1 1 1 1 1 1 1 1
4 C. albicans 1 1 1 1 1 1 1 1 1 1
5 C. albicans 1 1 1 1 2 2 1 1 1 1
6 C. albicans 2 1 1 1 1 1 1 1 1 1
This is my dataset....and I want to create a heatmap and dendrogram MALDI vs all others columns.... I wrote following code:
MALDI_tidy1 <-
bazaRmarina1 |>
as_tibble(rownames="MALDI") |>
# Scale
mutate_at(rownames="MALDI", Property) |>
# tidyfy
pivot_longer(cols = -c("MALDI"), names_to = "Property")
MALDI_tidy1
AND GOT THIS MASSAGE
Error in mutate_at()
:
! .vars
must be a character/numeric vector or a vars()
object, not a double matrix.
Run rlang::last_trace()
to see where the error occurred.
Please, any suggestion?