rtry_bind_row {rtry} | R Documentation |
Bind data by rows
Description
This function takes a list of data frames or data tables and combines them by rows, it adds the rows of the second data below the rows of the first one.
Usage
rtry_bind_row(..., showOverview = TRUE)
Arguments
... |
A list of data frames or data tables to be combined by rows. |
showOverview |
Default |
Value
An object of the same type as the first input. The object will contain a column if that column appears in any of the inputs.
Note
A common attribute is not necessary (difference to the function rtry_join_left
and rtry_join_outer
):
the binding process simply puts the data one after another while matching the column names, and any missing columns will be
filled with NA
.
References
This function makes use of the bind_rows
function within the dplyr
package.
See Also
rtry_bind_col
, rtry_join_left
, rtry_join_outer
Examples
# Combine the two provided sample data (data_TRY_15160 and data_TRY_15161)
data <- rtry_bind_row(data_TRY_15160, data_TRY_15161)
# Expected message:
# dim: 6409 28
# col: LastName FirstName DatasetID Dataset SpeciesName AccSpeciesID AccSpeciesName
# ObservationID ObsDataID TraitID TraitName DataID DataName OriglName
# OrigValueStr OrigUnitStr ValueKindName OrigUncertaintyStr UncertaintyName
# Replicates StdValue UnitName RelUncertaintyPercent OrigObsDataID ErrorRisk
# Reference Comment V28