get_start_pts: Get y positions of text lines from region file

View source: R/adjust_y.R

get_start_ptsR Documentation

Get y positions of text lines from region file

Description

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

Usage

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 gtojty@gmail.com


davebraze/FDBeye documentation built on April 28, 2022, 1:20 a.m.