copy a dataframe in r
# Create a sample dataframe
original_df <- data.frame(
ID = c(1, 2, 3, 4),
Name = c("John", "Alice", "Bob", "Eve"),
Age = c(25, 30, 22, 28)
)
# Copy the dataframe using the `copy` function from the `data.table` package
copied_df <- copy(original_df)