File: s2c.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (27 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\name{s2c}
\alias{s2c}
\title{ conversion of a string into a vector of chars }
\description{
  This is a simple utility function to convert a single string such
  as \code{"BigBang"} into a vector of chars such as
  \code{c("B", "i", "g", "B", "a", "n", "g")}.
}
\usage{
s2c(string)
}
\arguments{
  \item{string}{ a string of chars }
}
\value{
  a vector of chars. If supplied argument is not a single string, a warning is
  issued and NA returned.
}
\references{
  \code{citation("seqinr")}
}
\author{J.R. Lobry}
\seealso{ \code{\link{c2s}} }
\examples{
stopifnot(all(s2c("BigBang") == c("B", "i", "g", "B", "a", "n", "g")))
}
\keyword{utilities}