Entering edit mode
8.5 years ago
chrisclarkson100
▴
150
I have two text files for which the command dim(file.txt)
returns NULL
. One of the files contains lines of X coordinates (x1.1, x1.2, x1.3) followed by a second line of coordinates for a separate entities (x2.1, x2.2, x2.3) the other contains corresponding Y coordinates and I'm trying to transform the files into separate the files to create a new file for each line such that the X and Y coordinates will line up side by side like so:
X1 Y1 AND X2 from line 2, Y2 from line 2
x1.1 y1.1 x2.1 y2.1
x1.2 y1.2 x2.2 y2.2
etc.
Any tips?