<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="R (programming language) - Page 21 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=R_(programming_language)&amp;p=20">1.Previous</a><br />
<a accesskey="3" href="page.php?w=R_%28programming_language%29&amp;p=22">3.Next</a>
</p>

<p>> new_df$Z # Output the Z column[1] 12 42</p>

<p>> new_df$Z == new_df['Z'] && new_df[3] == new_df$Z # The dataframe column Z can be accessed using the syntax $Z, ['Z'], or [3], and the values are the same. [1] TRUE</p>

<p>> attributes(new_df) # Print information about attributes of the new_df dataframe$names[1] "X" "Y" "Z"</p>

<p>$row.names[1] "A" "B"</p>

<p>$class[1] "data.frame"</p>

<p>> attributes(new_df)$row.names <- c("one", "two") # Access and then change the row.names attribute; this can also be done using the rownames() function> new_df     X  Y  Zone  2  6 12two 20 30 42</-></p><p>
<a accesskey="1" href="page.php?w=R_(programming_language)&amp;p=20">1.Previous</a><br />
<a accesskey="3" href="page.php?w=R_%28programming_language%29&amp;p=22">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
