Я бы присоединился к какой-нибудь таблице с diplyr, но это напоминает мне некоторые ошибки.
У меня есть две переменные, и я хочу объединить их, но это напоминает мне некоторые ошибки.Что случилось?Как можно создать таблицу, используя dplyr, чтобы сделать правильное соответствие между строками?Спасибо
Mouth_tissues= counts_sample_mouth0$counts
Glands= counts_sample_gland0$counts
head(Mouth_tissues)
Mouth_tissues
gene0 547
gene1 78
gene2 5
gene3 13
gene4 16
gene5 49
> head(Glands)
Glands
gene0 332
gene1 60
gene2 583
gene3 6964
gene4 2162
gene5 6
> full_join(Mouth_tissues, Glands)
Error in UseMethod("full_join") :
no applicable method for 'full_join' applied to an object of class "c('matrix', 'integer', 'numeric')"
Тогда я сделал:
mouth<-as.data.frame.matrix(Mouth_tissues)
glands<-as.data.frame.matrix(Glands)
library(dplyr)
full_join(mouth, glands)
Error: `by` required, because the data sources have no common variables
Call `rlang::last_error()` to see a backtrace
dput(head(counts_sample_gland0))
dput(head(counts_sample_mouth0))