Skip to contents

Convert a Praat Formant object to a dataframe.

Usage

formant_to_df(file_name)

Arguments

file_name

string with a filename or path to the Formant file

Value

a dataframe with columns: time_start, time_end, frequency, bandwidth and formant

Author

George Moroz <agricolamz@gmail.com>

Examples

formant_to_df(system.file("extdata", "e.Formant", package = "phonfieldwork"))
#>     formant frequency  bandwidth time_start  time_end
#> 1         1  456.0268  356.83720  0.2478191 0.2478191
#> 2         2 1583.7510   92.47515  0.2478191 0.2478191
#> 3         3 2687.2664  377.02274  0.2478191 0.2478191
#> 4         4 3242.8282  221.95285  0.2478191 0.2478191
#> 5         5 4212.0833  512.11404  0.2478191 0.2478191
#> 6         6 5129.2293  513.73699  0.2478191 0.2478191
#> 7         7 6496.0495  350.42612  0.2478191 0.2478191
#> 8         1  522.7598  174.96921  0.2542411 0.2542411
#> 9         2 1592.1024  113.21033  0.2542411 0.2542411
#> 10        3 2787.4831  447.27529  0.2542411 0.2542411
#> 11        4 3218.6576  296.44401  0.2542411 0.2542411
#> 12        5 3965.7476  951.47632  0.2542411 0.2542411
#> 13        6 5018.5024  392.28335  0.2542411 0.2542411
#> 14        7 6506.9328  222.75353  0.2542411 0.2542411
#> 15        1  531.1308  181.11008  0.2606630 0.2606630
#> 16        2 1492.8235  202.92326  0.2606630 0.2606630
#> 17        3 2646.6108  302.67268  0.2606630 0.2606630
#> 18        4 3272.2169  130.88637  0.2606630 0.2606630
#> 19        5 4185.6739  839.46044  0.2606630 0.2606630
#> 20        6 4977.5900  710.81435  0.2606630 0.2606630
#> 21        7 6463.8272  289.65734  0.2606630 0.2606630
#> 22        1  511.1859  170.07839  0.2670849 0.2670849
#> 23        2 1430.3861  259.55836  0.2670849 0.2670849
#> 24        3 2616.7040  211.62401  0.2670849 0.2670849
#> 25        4 3280.1406  129.07408  0.2670849 0.2670849
#> 26        5 4280.4858  418.03457  0.2670849 0.2670849
#> 27        6 5210.2389 2218.61660  0.2670849 0.2670849
#> 28        7 6337.1627  298.77994  0.2670849 0.2670849
#> 29        1  500.3578  146.73969  0.2735069 0.2735069
#> 30        2 1426.6343  270.73676  0.2735069 0.2735069
#> 31        3 2654.6770  227.60474  0.2735069 0.2735069
#> 32        4 3221.3294  158.38873  0.2735069 0.2735069
#> 33        5 4340.5421  795.45955  0.2735069 0.2735069
#> 34        6 4886.8379 1613.24397  0.2735069 0.2735069
#> 35        7 6284.0367  263.95620  0.2735069 0.2735069
#> 36        1  489.8424  131.15756  0.2799288 0.2799288
#> 37        2 1438.7198  261.85357  0.2799288 0.2799288
#> 38        3 2701.7167  212.54262  0.2799288 0.2799288
#> 39        4 3239.2142  106.68104  0.2799288 0.2799288
#> 40        5 4432.5132 2548.16259  0.2799288 0.2799288
#> 41        6 4707.3121  807.80303  0.2799288 0.2799288
#> 42        7 6352.9772  325.26443  0.2799288 0.2799288
#> 43        1  476.4390  104.32876  0.2863507 0.2863507
#> 44        2 1449.1246  264.97453  0.2863507 0.2863507
#> 45        3 2720.2632  164.16018  0.2863507 0.2863507
#> 46        4 3244.6550   78.75373  0.2863507 0.2863507
#> 47        5 4556.6008  573.78026  0.2863507 0.2863507
#> 48        6 6259.9379  138.75210  0.2863507 0.2863507
#> 49        1  467.3317  119.70250  0.2927727 0.2927727
#> 50        2 1477.2665  174.08099  0.2927727 0.2927727
#> 51        3 2749.5708  215.25216  0.2927727 0.2927727
#> 52        4 3268.0917   97.76517  0.2927727 0.2927727
#> 53        5 4539.7366  395.14604  0.2927727 0.2927727
#> 54        6 6250.5205  206.39197  0.2927727 0.2927727
#> 55        7 6750.1000 1878.77844  0.2927727 0.2927727
#> 56        1  470.2906  137.89937  0.2991946 0.2991946
#> 57        2 1482.8939  141.30470  0.2991946 0.2991946
#> 58        3 2784.1336  277.80092  0.2991946 0.2991946
#> 59        4 3292.8608  137.63712  0.2991946 0.2991946
#> 60        5 4527.1785  364.10680  0.2991946 0.2991946
#> 61        6 6170.4039  196.57693  0.2991946 0.2991946
#> 62        1  452.8574  214.72420  0.3056165 0.3056165
#> 63        2 1435.9957  181.66884  0.3056165 0.3056165
#> 64        3 2764.0445  236.85698  0.3056165 0.3056165
#> 65        4 3285.4198  195.12971  0.3056165 0.3056165
#> 66        5 4525.2731  344.93079  0.3056165 0.3056165
#> 67        6 6142.8837  146.28380  0.3056165 0.3056165
#> 68        1  428.1779  176.32680  0.3120385 0.3120385
#> 69        2 1464.8001  185.09887  0.3120385 0.3120385
#> 70        3 2780.3144  337.45544  0.3120385 0.3120385
#> 71        4 3244.5271  328.84809  0.3120385 0.3120385
#> 72        5 4526.5693  512.58018  0.3120385 0.3120385
#> 73        6 5088.9818 5195.03664  0.3120385 0.3120385
#> 74        7 6139.5716  186.89316  0.3120385 0.3120385
#> 75        1  425.7703  150.44303  0.3184604 0.3184604
#> 76        2 1480.5255  134.16292  0.3184604 0.3184604
#> 77        3 2843.8933  217.30595  0.3184604 0.3184604
#> 78        4 3368.6585  338.20796  0.3184604 0.3184604
#> 79        5 4475.9374  558.85437  0.3184604 0.3184604
#> 80        6 6134.3343  151.63410  0.3184604 0.3184604
#> 81        1  445.0216  118.89188  0.3248823 0.3248823
#> 82        2 1465.8695  156.99282  0.3248823 0.3248823
#> 83        3 2857.5524  244.92819  0.3248823 0.3248823
#> 84        4 3371.0477  359.37752  0.3248823 0.3248823
#> 85        5 4374.5704 1049.47654  0.3248823 0.3248823
#> 86        6 4859.9565 2888.25328  0.3248823 0.3248823
#> 87        7 6115.9732  181.46981  0.3248823 0.3248823
#> 88        1  433.5071  117.34682  0.3313043 0.3313043
#> 89        2 1464.1320  200.92948  0.3313043 0.3313043
#> 90        3 2737.4133  208.66602  0.3313043 0.3313043
#> 91        4 3373.3562  226.49617  0.3313043 0.3313043
#> 92        5 4229.8319 1645.39551  0.3313043 0.3313043
#> 93        6 4941.6725 1310.26891  0.3313043 0.3313043
#> 94        7 6160.4052  285.36263  0.3313043 0.3313043
#> 95        1  414.3959  107.44819  0.3377262 0.3377262
#> 96        2 1441.7589  224.56791  0.3377262 0.3377262
#> 97        3 2698.0740  144.96627  0.3377262 0.3377262
#> 98        4 3342.8257  260.31623  0.3377262 0.3377262
#> 99        5 4192.0441  949.59798  0.3377262 0.3377262
#> 100       6 4966.7278 1142.49640  0.3377262 0.3377262
#> 101       7 6192.7764  225.99011  0.3377262 0.3377262
#> 102       1  392.5755  107.50502  0.3441482 0.3441482
#> 103       2 1446.3343  315.14269  0.3441482 0.3441482
#> 104       3 2763.4804  201.67838  0.3441482 0.3441482
#> 105       4 3363.2284  319.89317  0.3441482 0.3441482
#> 106       5 4322.1800  551.87898  0.3441482 0.3441482
#> 107       6 5077.1668 2450.86003  0.3441482 0.3441482
#> 108       7 6241.3305  380.74447  0.3441482 0.3441482
#> 109       1  393.2230   91.09265  0.3505701 0.3505701
#> 110       2 1539.7121  231.89243  0.3505701 0.3505701
#> 111       3 2892.7441  287.02347  0.3505701 0.3505701
#> 112       4 3437.8559  228.46097  0.3505701 0.3505701
#> 113       5 4383.7100  487.02178  0.3505701 0.3505701
#> 114       6 5603.9939 1011.90070  0.3505701 0.3505701
#> 115       7 6654.1322  156.84038  0.3505701 0.3505701
#> 116       1  393.6136   85.08050  0.3569920 0.3569920
#> 117       2 1565.0518  181.54575  0.3569920 0.3569920
#> 118       3 2909.1611  267.15310  0.3569920 0.3569920
#> 119       4 3463.2648  174.42217  0.3569920 0.3569920
#> 120       5 4333.6095  404.89308  0.3569920 0.3569920
#> 121       6 5621.3771  559.38415  0.3569920 0.3569920
#> 122       7 6659.4945  134.53449  0.3569920 0.3569920
#> 123       1  379.5654   67.69051  0.3634140 0.3634140
#> 124       2 1552.0700   73.68393  0.3634140 0.3634140
#> 125       3 2893.0109  224.06831  0.3634140 0.3634140
#> 126       4 3481.4178  129.57149  0.3634140 0.3634140
#> 127       5 4352.7835  397.70896  0.3634140 0.3634140
#> 128       6 5480.6828  901.54840  0.3634140 0.3634140
#> 129       7 6609.3069  197.29315  0.3634140 0.3634140
#> 130       1  393.6533   98.12569  0.3698359 0.3698359
#> 131       2 1535.5246   74.67140  0.3698359 0.3698359
#> 132       3 2841.4730  197.27752  0.3698359 0.3698359
#> 133       4 3486.9978  180.04697  0.3698359 0.3698359
#> 134       5 4353.7219  355.14842  0.3698359 0.3698359
#> 135       6 5526.4353  631.32473  0.3698359 0.3698359
#> 136       7 6542.9580  288.02210  0.3698359 0.3698359
#> 137       1  391.1719  148.46267  0.3762578 0.3762578
#> 138       2 1533.3791   98.01436  0.3762578 0.3762578
#> 139       3 2784.9684  200.97864  0.3762578 0.3762578
#> 140       4 3519.0867  264.90113  0.3762578 0.3762578
#> 141       5 4343.8521  399.54397  0.3762578 0.3762578
#> 142       6 5740.3169  926.08643  0.3762578 0.3762578
#> 143       7 6792.2428 1246.06613  0.3762578 0.3762578
#> 144       1  393.7035  209.47029  0.3826798 0.3826798
#> 145       2 1541.4901  115.60825  0.3826798 0.3826798
#> 146       3 2777.1712  153.90280  0.3826798 0.3826798
#> 147       4 3559.4549  146.02987  0.3826798 0.3826798
#> 148       5 4328.2190  296.28382  0.3826798 0.3826798
#> 149       6 5793.0453  511.95984  0.3826798 0.3826798
#> 150       7 6652.9152  453.38843  0.3826798 0.3826798
#> 151       1  424.7943  186.02259  0.3891017 0.3891017
#> 152       2 1556.4511   89.78829  0.3891017 0.3891017
#> 153       3 2773.3249   85.81939  0.3891017 0.3891017
#> 154       4 3584.3118  110.12492  0.3891017 0.3891017
#> 155       5 4421.5590  324.61037  0.3891017 0.3891017
#> 156       6 5848.1359  539.88807  0.3891017 0.3891017
#> 157       7 6553.5071  428.12789  0.3891017 0.3891017
#> 158       1  385.0029   91.53917  0.3955236 0.3955236
#> 159       2 1558.1007  202.24438  0.3955236 0.3955236
#> 160       3 2786.7076  124.34035  0.3955236 0.3955236
#> 161       4 3663.0912  238.35852  0.3955236 0.3955236
#> 162       5 4520.1931  424.32643  0.3955236 0.3955236
#> 163       6 5899.4723  631.33952  0.3955236 0.3955236
#> 164       7 6569.8083  759.67946  0.3955236 0.3955236