Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

Separating data within a cell and duplicating row data

$
0
0

I have data that is within one cell, separated by spaces. For example, there is one column with city name such as "New York, NY" and then another column with the zip codes "12345 67891 23456". What is a good method for separating this single row so that it could become three rows, with each having "New York, NY" and then having a single zip code associated?


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>