I have two text files that are measure the X and Y coordinates of cells. The command "dim(file.txt)" returns "NULL" for each of the files. One of the files contains lines of X coordinates (xline1.1, x line1.2, x line1.3) followed below by a second line of coordinates for a separate entity (x line2.1, x line2.2, x line2.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
I am inexperienced but my plan so far, is to use the "lapply" function to apply "create.file() and "file.path()" to each consecutive line of the X and Y files such that a new file will be created for each line. I plan to use "merge()" to merge all of the newly created X files with the corresponding Y files some how....
Any critiques are welcome.