how to change column names in r

# Step 1: Access the names of the data frame's columns
current_column_names <- names(your_data_frame)

# Step 2: Create a vector of new column names
new_column_names <- c("new_name1", "new_name2", "new_name3", ...)

# Step 3: Assign the new column names to the data frame
names(your_data_frame) <- new_column_names