get_start_pts: Get y positions of text lines from region file

Description Usage Arguments Details Value Author(s)

View source: R/adjust_y.R

Description

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

Usage

1
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

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.

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.

Author(s)

Tao Gong [email protected]


davebraze/FDBeye documentation built on Nov. 21, 2017, 11:23 a.m.