[e26484]: / OmicsFold / man / center.truncate.Rd

Download this file

25 lines (24 with data), 654 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature_loadings.R
\name{center.truncate}
\alias{center.truncate}
\title{Center truncate long strings}
\usage{
center.truncate(x)
}
\arguments{
\item{x}{A string to truncate.}
}
\value{
A string where each has been reduced to 43 characters or left as is.
}
\description{
Truncate a string to no longer than 43 characters. Where a string is longer
than 43 characters, the first and last 20 characters sandwich three periods.
This can be useful for shortening long feature names before plotting.
}
\examples{
\dontrun{
center.truncate('A string to truncate if long enough')
}
}