rename columns in table r
rename(table_name, new_column = old_column)
#For multiple column change:
rename(table_name, new_column = old_column, new_col2 = old_col2)
rename columns in table r
rename(table_name, new_column = old_column)
#For multiple column change:
rename(table_name, new_column = old_column, new_col2 = old_col2)
R change column to row names
samp2 <- samp[,-1]
rownames(samp2) <- samp[,1]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us