nuget server logo nuget api documents
↑

API Docs / REnv / dplyr

dplyr

Full name SMRUCC.Rsharp.Runtime.Internal.Invokes.LinqPipeline.dplyr Assembly REnv Members 1

01 Syntax

SMRUCC.Rsharp.Runtime.Internal.Invokes.LinqPipeline.dplyr

02 Methods

NameOverloadsSummary
bind_rows 1 Bind multiple data frames by row Bind any number of data frames by row, making a longer result.

03 Members

method bind_rows #
bind_rows(list, Object, Environment)

Bind multiple data frames by row

Bind any number of data frames by row, making a longer result. This is similar to do.call(rbind, dfs), but the output will contain all columns that appear in any of the inputs.

Parameters
NameTypeDescription
xlist

Data frames To combine. Each argument can either be a data frame, a list that could be a data frame, Or a list Of data frames. Columns are matched by name, And any missing columns will be filled With NA.

_idObject

The name Of an Optional identifier column. Provide a String To create an output column that identifies Each input. The column will use names If available, otherwise it will use positions.

envEnvironment

-

Returns

A data frame the same type as the first element of ....

Example

df1 <- tibble(x = 1:2, y = letters[1:2]) df2 <- tibble(x = 4:5, z = 1:2)

You can supply individual data frames as arguments:

bind_rows(df1, df2)

Or a list of data frames:

bind_rows(list(df1, df2))

When you supply a column name with the .id argument, a new

column is created to link each row to its original data frame

bind_rows(list(df1, df2), .id = "id") bind_rows(list(a = df1, b = df2), .id = "id")