Mercurial > repos > jfb > py_data_cleanup
annotate pYtime/xytime.R @ 1:72fbbff22c5c draft default tip
Uploaded
author | jfb |
---|---|
date | Tue, 27 Feb 2018 12:38:51 -0500 |
parents | 16160fe81a16 |
children |
rev | line source |
---|---|
0 | 1 #change all central Ys to xY and do nothing else |
2 | |
3 inputtoim<-read.csv("needspy.csv",header = FALSE,sep = ",",stringsAsFactors = FALSE) | |
4 | |
1 | 5 YsToim<-rep("xY",times=nrow(inputtoim)-1) |
0 | 6 YsToim<-c("0",YsToim) |
7 | |
8 outputtoim<-inputtoim | |
9 | |
10 outputtoim[,11]<-YsToim | |
11 | |
12 head(inputtoim) | |
13 head(outputtoim) | |
14 | |
15 write.table(x=outputtoim,file = "haspy.csv",row.names = FALSE,col.names = FALSE,sep = ",") |