User Tools

Site Tools


general_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general_commands [2008/01/24 13:48] heidigeneral_commands [2011/03/07 16:54] (current) heidi
Line 1: Line 1:
 ====== general commands ====== ====== general commands ======
 +  * ''install.packages("packageName")'': download and install a package --> start R as following: ''Rgui.exe --internet2''
 +  * ''help(package=XML)'': information about the package XML
 +  * ''str(a)'': display the structure of a object
 +  * ''table(x)'': returns a table with the numbers of the different values of x
   * ''[]'': subscript a string   * ''[]'': subscript a string
   * ''as.matrix.data.frame(''data'')'': convert data to a matrix   * ''as.matrix.data.frame(''data'')'': convert data to a matrix
Line 7: Line 11:
     * ''skip=n'': begin to read rows after n rows     * ''skip=n'': begin to read rows after n rows
     * ''row.names=n'': the row names are in column n or a vector giving the actual row names     * ''row.names=n'': the row names are in column n or a vector giving the actual row names
 +    * ''nrows=n'': read maximal n rows
     * ''fill=TRUE'': show missing values     * ''fill=TRUE'': show missing values
     * ''na.strings="''N.A.''"'': transform N.A. in NA (missing values)     * ''na.strings="''N.A.''"'': transform N.A. in NA (missing values)
general_commands.1201178896.txt.gz · Last modified: 2008/07/22 13:30 (external edit)