Package 'excel2eprime'

Title: Split Sentences by Factors
Description: Split experiment sentences by different experiment design given by the user and the result can be used in 'E-prime' (<https://pstnet.com/products/e-prime/>).
Authors: Jack Will
Maintainer: Jack Will <[email protected]>
License: MIT + file LICENSE
Version: 0.4.0
Built: 2024-10-29 03:30:40 UTC
Source: https://github.com/wujackwill/excel2eprime

Help Index


Get path to excel2eprime example

Description

excel2eprime comes bundled with some example files in its 'inst/extdata' directory. This function make them easy to access.

Usage

excel2eprime_example(path = NULL)

Arguments

path

Name of file. If 'NULL', the example files will be listed.

Value

a character vector of paths to the example files.

Examples

excel2eprime_example()
excel2eprime_example("basic.xlsx")

Split sentence of the 1 * 2 experiment design

Description

Split sentence of the 1 * 2 experiment design

Usage

split_12(path, col_names = TRUE)

Arguments

path

Path to the file

col_names

column names contains the experiment sentences

Value

This function is for the experiment design of only one main factor that has two factors. It will firstly automatically splits the sentences by space and then divide the sentences into two parts by the character "/". The first part will be stored in the column of the return tibble named "con1" and the second part will be stored in the column named "con2".

Examples

split_12(excel2eprime_example("12.xlsx"), "A")

Split sentence of the 2 * 2 experiment design

Description

Split sentence of the 2 * 2 experiment design

Usage

split_22(path, col_names = TRUE)

Arguments

path

Path to the file

col_names

column names contains the experiment sentences

Value

This function is for the experiment design of two main factors that has two factors each. It will firstly automatically splits the sentences by space and then divide the sentences into four parts by the character "/". The first part will be stored in the column of the return tibble named "con1" and the second part will be stored in the column named "con2", etc...

Examples

split_22(excel2eprime_example("22.xlsx"),"A")

Split sentence of the 2 * 2 * 2 experiment design

Description

Split sentence of the 2 * 2 * 2 experiment design

Usage

split_222(path, col_names = TRUE)

Arguments

path

Path to the file

col_names

column names contains the experiment sentences

Value

This function is for the experiment design of three main factors that has two factors each. It will firstly automatically splits the sentences by space and then divide the sentences into eight parts by the character "/". The first part will be stored in the column of the return tibble named "con1" and the second part will be stored in the column named "con2", etc...

Examples

split_222(excel2eprime_example("222.xlsx"),"A")

Split the basic sentence without "/"

Description

Split the basic sentence without "/"

Usage

split_basic(path, col_names = TRUE)

Arguments

path

Path to the file

col_names

column names contains the experiment sentences

Value

This function simply returns the tibble that only splits the sentences by space.

Examples

split_basic(excel2eprime_example("basic.xlsx"), "A")