I'm trying to fill in a dataframe column with character strings pulled from a second dataframe. When I try to do this, however, the new entries in the column turn into lists:
for (i in nyc_districts$SUBWAY_STOP){
nyc_districts$SUBWAY_STOP[i]<-substops$V3[[i]]
}
class(substops$V3[[1]])
[1] "character"
class(nyc_districts$SUBWAY_STOP[1])
[1] "list"
What is going on? How can I turn the new entries into strings? Many thanks!