<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=R%3A_Read_File</id>
	<title>R: Read File - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=R%3A_Read_File"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=R:_Read_File&amp;action=history"/>
	<updated>2026-04-20T22:04:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=R:_Read_File&amp;diff=52358&amp;oldid=prev</id>
		<title>Onnowpurbo: /* Referensi */</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=R:_Read_File&amp;diff=52358&amp;oldid=prev"/>
		<updated>2018-10-31T01:27:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Referensi&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:27, 31 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Pranala Menarik==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[R]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=R:_Read_File&amp;diff=52357&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions  ==Fungsi Untuk Import File==   * read.csv(): for reading “comma separated value...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=R:_Read_File&amp;diff=52357&amp;oldid=prev"/>
		<updated>2018-10-31T01:24:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions  ==Fungsi Untuk Import File==   * read.csv(): for reading “comma separated value...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions&lt;br /&gt;
&lt;br /&gt;
==Fungsi Untuk Import File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* read.csv(): for reading “comma separated value” files (“.csv”).&lt;br /&gt;
* read.csv2(): variant used in countries that use a comma “,” as decimal point and a semicolon “;” as field separators.&lt;br /&gt;
* read.delim(): for reading “tab-separated value” files (“.txt”). By default, point (“.”) is used as decimal points.&lt;br /&gt;
* read.delim2(): for reading “tab-separated value” files (“.txt”). By default, comma (“,”) is used as decimal points.&lt;br /&gt;
&lt;br /&gt;
 # Read tabular data into R&lt;br /&gt;
 read.table(file, header = FALSE, sep = &amp;quot;&amp;quot;, dec = &amp;quot;.&amp;quot;)&lt;br /&gt;
 # Read &amp;quot;comma separated value&amp;quot; files (&amp;quot;.csv&amp;quot;)&lt;br /&gt;
 read.csv(file, header = TRUE, sep = &amp;quot;,&amp;quot;, dec = &amp;quot;.&amp;quot;, ...)&lt;br /&gt;
 # Or use read.csv2: variant used in countries that &lt;br /&gt;
 # use a comma as decimal point and a semicolon as field separator.&lt;br /&gt;
 read.csv2(file, header = TRUE, sep = &amp;quot;;&amp;quot;, dec = &amp;quot;,&amp;quot;, ...)&lt;br /&gt;
 # Read TAB delimited files&lt;br /&gt;
 read.delim(file, header = TRUE, sep = &amp;quot;\t&amp;quot;, dec = &amp;quot;.&amp;quot;, ...)&lt;br /&gt;
 read.delim2(file, header = TRUE, sep = &amp;quot;\t&amp;quot;, dec = &amp;quot;,&amp;quot;, ...)&lt;br /&gt;
&lt;br /&gt;
==Reading a local file==&lt;br /&gt;
&lt;br /&gt;
* file: the path to the file containing the data to be imported into R.&lt;br /&gt;
* sep: the field separator character. “\t” is used for tab-delimited file.&lt;br /&gt;
* header: logical value. If TRUE, read.table() assumes that your file has a header row, so row 1 is the name of each column. If that’s not the case, you can add the argument header = FALSE.&lt;br /&gt;
* dec: the character used in the file for decimal points.&lt;br /&gt;
&lt;br /&gt;
 # Read a txt file&lt;br /&gt;
 my_data &amp;lt;- read.delim(file.choose())&lt;br /&gt;
 # Read a csv file&lt;br /&gt;
 my_data &amp;lt;- read.csv(file.choose())&lt;br /&gt;
&lt;br /&gt;
 my_data &amp;lt;- read.delim(file.choose(), &lt;br /&gt;
                       stringsAsFactor = FALSE)&lt;br /&gt;
&lt;br /&gt;
 my_data &amp;lt;- read.table(file.choose(), &lt;br /&gt;
                       sep =&amp;quot;|&amp;quot;, header = TRUE, dec =&amp;quot;.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Reading a file from internet==&lt;br /&gt;
&lt;br /&gt;
 my_data &amp;lt;- read.delim(&amp;quot;http://www.sthda.com/upload/boxplot_format.txt&amp;quot;)&lt;br /&gt;
 head(my_data)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.sthda.com/english/wiki/reading-data-from-txt-csv-files-r-base-functions&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>