The R Project SVN R

Rev

Rev 74519 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74519 Rev 74546
Line 1... Line 1...
1
% File src/library/utils/man/count.fields.Rd
1
% File src/library/utils/man/count.fields.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2013 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{count.fields}
6
\name{count.fields}
7
\title{Count the Number of Fields per Line}
7
\title{Count the Number of Fields per Line}
8
\usage{
8
\usage{
Line 52... Line 52...
52
}
52
}
53
\seealso{
53
\seealso{
54
  \code{\link{read.table}}
54
  \code{\link{read.table}}
55
}
55
}
56
\examples{
56
\examples{
57
fil <- tempfile(fileext = "foo")
57
fil <- tempfile()
58
cat("NAME", "1:John", "2:Paul", file = fil, sep = "\n")
58
cat("NAME", "1:John", "2:Paul", file = fil, sep = "\n")
59
count.fields(fil, sep = ":")
59
count.fields(fil, sep = ":")
60
unlink(fil)
60
unlink(fil)
61
}
61
}
62
\keyword{file}
62
\keyword{file}