You can remove a column from a data frame in R using the subset() function or by assigning NULL to the column name.
Example code:
# Using subset() function
df <- subset(df, select = -Salary) # Remove the Salary column
# Using assignment to NULL
df$Salary <- NULL # Remove the Salary column
# Print the updated data frame
print(df)