Reshape a CSV by pairing all fields but one named 'date' #658
NikosAlexandris
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
If you asked right here, I had the answer ready for you🙃 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am recording this here as a future reference for me, and perhaps someone else. I've had a hard time to get a regular expression to match all field names but the one named
date
.I have a series of fields like
date
,i1
,i2
,j1
,j2
,k1
,k2
. Then, I define PAIRS=i1,i2,j1,j2,k1,k2
which I want to correlate likeAnd this works fine.
Consider that the fields other than
date
are many more. Hence, I would like to get this running via a regular expression by matching all other field names. Before finally understanding the simple syntax required,mlr.go reshape -r '[^date]' -o covariables,correlation
I was trying many things like
😆
Beta Was this translation helpful? Give feedback.
All reactions