rtry_remove_dup | R Documentation |
This function removes the duplicates from the input data using the duplicate identifier
OrigObsDataID
provided within the TRY data. Once the function is called and executed,
the number of duplicates removed will be displayed on the console as reference.
rtry_remove_dup(input, showOverview = TRUE)
input |
Input data frame or data table. |
showOverview |
Default |
An object of the same type as the input data after removing the duplicates.
This function depends on the duplicate identifier OrigObsDataID
listed
in the data exported from the TRY database, therefore, if the column OrigObsDataID
has been removed, this function will not work. Also, if the original value of an
indicated duplicate is a restricted value, which has not been requested from
the TRY database (if only public data were requested), the duplicate will be
removed and this may result in data loss.
This function makes use of the subset
function
within the base
package.
# Remove the duplicates within the provided sample data (data_TRY_15160)
data_rm_dup <- rtry_remove_dup(data_TRY_15160)
# Expected message:
# 45 duplicates removed.
# dim: 1737 28
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.