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 |
excel2eprime comes bundled with some example files in its 'inst/extdata' directory. This function make them easy to access.
excel2eprime_example(path = NULL)
excel2eprime_example(path = NULL)
path |
Name of file. If 'NULL', the example files will be listed. |
a character vector of paths to the example files.
excel2eprime_example() excel2eprime_example("basic.xlsx")
excel2eprime_example() excel2eprime_example("basic.xlsx")
Split sentence of the 1 * 2 experiment design
split_12(path, col_names = TRUE)
split_12(path, col_names = TRUE)
path |
Path to the file |
col_names |
column names contains the experiment sentences |
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".
split_12(excel2eprime_example("12.xlsx"), "A")
split_12(excel2eprime_example("12.xlsx"), "A")
Split sentence of the 2 * 2 experiment design
split_22(path, col_names = TRUE)
split_22(path, col_names = TRUE)
path |
Path to the file |
col_names |
column names contains the experiment sentences |
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...
split_22(excel2eprime_example("22.xlsx"),"A")
split_22(excel2eprime_example("22.xlsx"),"A")
Split sentence of the 2 * 2 * 2 experiment design
split_222(path, col_names = TRUE)
split_222(path, col_names = TRUE)
path |
Path to the file |
col_names |
column names contains the experiment sentences |
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...
split_222(excel2eprime_example("222.xlsx"),"A")
split_222(excel2eprime_example("222.xlsx"),"A")
Split the basic sentence without "/"
split_basic(path, col_names = TRUE)
split_basic(path, col_names = TRUE)
path |
Path to the file |
col_names |
column names contains the experiment sentences |
This function simply returns the tibble that only splits the sentences by space.
split_basic(excel2eprime_example("basic.xlsx"), "A")
split_basic(excel2eprime_example("basic.xlsx"), "A")