Type: | Package |
Title: | Split Sentences by Factors |
Version: | 0.4.0 |
Author: | Jack Will |
Maintainer: | Jack Will <wujackwill@outlook.com> |
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/). |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
Imports: | dplyr, magrittr, readxl, stringr, tidyr |
RoxygenNote: | 7.2.3 |
URL: | https://github.com/wujackwill/excel2eprime |
NeedsCompilation: | no |
Packaged: | 2024-01-30 05:50:12 UTC; jackwill |
Repository: | CRAN |
Date/Publication: | 2024-02-01 10:30:03 UTC |
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")