rowjoin: Join data.frame based on rownames

Description Usage Arguments Value Author(s) Examples

Description

join two dataframes by rownames

Usage

1
2
3
4
rowjoin(x, y, fun = "fun_join")

## S4 method for signature 'data.frame,data.frame'
rowjoin(x, y, fun = "full_join")

Arguments

x

data.frame x

y

data.frame y

fun

Different join format: left_join, full_join, right_join (default:full_join)

Value

dataframe with join results

Author(s)

Kai Guo

Examples

1
2
3
4
5
6
7
8
library(dplyr)
A <- sample(1:100, 40, replace = FALSE)
B <- sample(1:100, 60, replace = FALSE)
dA <- data.frame(A = A, "FC" = rnorm(40))
dB <- data.frame(B = B, "FC" = rnorm(60))
rownames(dA) <- A
rownames(dB) <- B
rowjoin(dA, dB)

guokai8/VennDetail documentation built on July 28, 2021, 1:02 p.m.