simplifynames: Short the names from a template. The merging GUI is designed...

Description Usage Arguments Value Author(s) Examples

View source: R/mergeGUI.R

Description

Short the names from a template. The merging GUI is designed to merge data from different files. But sometimes the file names are too long to be displayed in the GUI. Hence this function is used to short the basenames by removing the same beginning letters of each name. Hence the output is a character vector whose elements will not start with the same letter.

Usage

1
simplifynames(namevector)

Arguments

namevector

A character vector.

Value

A character vector which cuts the first several same letters from the input.

Author(s)

Xiaoyue Cheng <xycheng@iastate.edu>

Examples

1
2
3
simplifynames(c("abc234efg.csv", "abc234hfg.csv"))
simplifynames(c("12345", "54321"))
simplifynames(c("aeiou", "aerial"))

MergeGUI documentation built on May 2, 2019, 6:45 a.m.