Skip to content

Commit b00d235

Browse files
author
smeyer
committed
merge duplicated items
git-svn-id: https://svn.r-project.org/R/trunk@88892 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent eb18835 commit b00d235

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

doc/manual/R-data.texi

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -511,21 +511,6 @@ very large numerical matrices: see @code{scan} below.
511511
Some of the issues to consider are:
512512

513513
@enumerate
514-
@item @strong{Encoding}
515-
516-
If the file contains non-@acronym{ASCII} character fields, ensure that
517-
it is read in the correct encoding. This is mainly an issue for reading
518-
Latin-1 files in a UTF-8 locale, which can be done by something like
519-
520-
@example
521-
read.table("file.dat", fileEncoding="latin1")
522-
@end example
523-
524-
@noindent
525-
Note that this will work in any locale which can represent Latin-1
526-
strings, but not many Greek/Russian/Chinese/Japanese @dots{} locales.
527-
528-
529514
@item @strong{Header line}
530515

531516
We recommend that you specify the @code{header} argument explicitly,
@@ -664,7 +649,19 @@ that Unicode escapes such as @code{\u@var{xxxx}} are never interpreted.
664649

665650
@item @strong{Encoding}
666651

667-
This can be specified by the @code{fileEncoding} argument, for example
652+
If the file contains non-@acronym{ASCII} character fields, ensure that
653+
it is read in the correct encoding. This is mainly an issue for reading
654+
legacy Latin-1 files in a UTF-8 locale, which can be done by something like
655+
656+
@example
657+
read.table("file.dat", fileEncoding = "latin1")
658+
@end example
659+
660+
@noindent
661+
Note that this will work in any locale which can represent Latin-1
662+
strings, but not many Greek/Russian/Chinese/Japanese @dots{} locales.
663+
664+
Other examples for the @code{fileEncoding} argument include:
668665

669666
@example
670667
fileEncoding = "UCS-2LE" # Windows 'Unicode' files
@@ -928,7 +925,7 @@ X11 P 23646 50333 V2
928925
...
929926
@end example
930927

931-
@findex unstack.
928+
@findex unstack
932929
Function @code{unstack} goes in the opposite direction, and may be
933930
useful for exporting data.
934931

0 commit comments

Comments
 (0)