Awk script in R

前端 未结 3 1896
后悔当初
后悔当初 2020-12-11 12:00

I need to run an awk script to detect local maxima(peaks) in a spectrum. This spectrum is in the form of two columns in a text file.

This is part of a larger project

3条回答
  •  天命终不由人
    2020-12-11 12:40

    you should be able to do

    system('your awk command here')
    

    If you have single quotes in your awk command, either do as Hong Ooi suggests and put your awk command in a separate file and then just run that from the system command or escape the single quotes:

    > system('echo \'hello guy!\' ')
    hello guy!
    

提交回复
热议问题