Displaying 1 result from an estimated 1 matches for "city_name1".
Did you mean:
city_name
2010 Feb 10
3
How to repeat the names?
Dear R helpers
I have a city.csv file as given below.
'city.csv'
city_name1 city_name2
New York City Buffallo
So I define
city_name = read.csv('city.csv')
city1 = city_name$city_name1
city2 = city_name$city_name2
My problem is how do I repeat the names one after other say 10 times i.e. my output should be like
New York
City Buffallo
New Yo...