Skip to content

Conversation

@tst2005
Copy link
Contributor

@tst2005 tst2005 commented Oct 4, 2018

readable on http://johnkerl.org/miller/doc/cookbook.html#Full_field_renames_and_reassigns

result before:

z=0.346790,KEYFIELD=pan,i=,b=pan,y=0.346790,x=0.726803
z=0.758680,KEYFIELD=eks,i=,b=pan,y=0.758680,x=0.522151
z=0.204603,KEYFIELD=wye,i=,b=wye,y=0.204603,x=0.338319
z=0.381399,KEYFIELD=eks,i=,b=wye,y=0.381399,x=0.134189
z=0.573289,KEYFIELD=wye,i=,b=pan,y=0.573289,x=0.863624

result after:

z=0.346790,KEYFIELD=pan,i=1,b=pan,y=0.346790,x=0.726803
z=0.758680,KEYFIELD=eks,i=3,b=pan,y=0.758680,x=0.522151
z=0.204603,KEYFIELD=wye,i=6,b=wye,y=0.204603,x=0.338319
z=0.381399,KEYFIELD=eks,i=10,b=wye,y=0.381399,x=0.134189
z=0.573289,KEYFIELD=wye,i=15,b=pan,y=0.573289,x=0.863624

now there are values for i.

readable on http://johnkerl.org/miller/doc/cookbook.html#Full_field_renames_and_reassigns

result before:
```
z=0.346790,KEYFIELD=pan,i=,b=pan,y=0.346790,x=0.726803
z=0.758680,KEYFIELD=eks,i=,b=pan,y=0.758680,x=0.522151
z=0.204603,KEYFIELD=wye,i=,b=wye,y=0.204603,x=0.338319
z=0.381399,KEYFIELD=eks,i=,b=wye,y=0.381399,x=0.134189
z=0.573289,KEYFIELD=wye,i=,b=pan,y=0.573289,x=0.863624
```

result after:
```
z=0.346790,KEYFIELD=pan,i=1,b=pan,y=0.346790,x=0.726803
z=0.758680,KEYFIELD=eks,i=3,b=pan,y=0.758680,x=0.522151
z=0.204603,KEYFIELD=wye,i=6,b=wye,y=0.204603,x=0.338319
z=0.381399,KEYFIELD=eks,i=10,b=wye,y=0.381399,x=0.134189
z=0.573289,KEYFIELD=wye,i=15,b=pan,y=0.573289,x=0.863624
```

now there are values for `i`.
@johnkerl johnkerl merged commit b5b0fb1 into johnkerl:master Oct 8, 2018
@johnkerl
Copy link
Owner

johnkerl commented Oct 8, 2018

@tst2005 thank you!!!! :D

johnkerl pushed a commit that referenced this pull request Oct 8, 2018
@tst2005 tst2005 deleted the patch-1 branch October 8, 2018 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants