Is there anyway to use lag and lead functions together from dplyr

前端 未结 0 666
孤街浪徒
孤街浪徒 2021-01-22 11:18

I have several *.txt files that look like

ID BP
Id1 A
Id2 A
Id3 T
Id4 C
Id5 A
Id6 T
Id7 A
Id8 T

I want for every ID previous 4 characters from BP

相关标签:
回答
  • 消灭零回复
提交回复
热议问题