I have a data frame with one column and row names like this,
> df freq hello 4 sorry 2 bad 9 good 4
you can just do this
df$word=row.names(df)