This function extracts (x_pos, y_pos) of first word in each text line from the region file

get_start_pts(region_file, trial_num)

Arguments

region_file

A "*.csv" character list recording the name of the region file

trial_num

An integer indicating the trial number of the current start_pts

Value

A data.frame recording the left position of the first word in each line of the text in each trial. It has three columns:

  1. x_pos: x position of the first word in each line of the text.

  2. y_pos: y position of the first word in each line of the text.

  3. trial_num: Integer indicating the trial number of the current start_pts.

Details

This function reads region_file and gets (x_pos, y_pos) of first word in each text line. Then, it bounds (x_pos, y_pos) with trail_num into a data frame, and return the data frame.

Author

Tao Gong gtojty@gmail.com