This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:r_cheat_sheet [2026/09/14 05:19] 165.99.194.174 old revision restored (2026/08/28 13:02) |
notes:r_cheat_sheet [2026/09/16 10:28] (current) 216.73.216.94 old revision restored (2026/09/14 11:20) |
||
|---|---|---|---|
| Line 20: | Line 20: | ||
| * '' | * '' | ||
| * Use a vector as an index to access multiple elements e.g. '' | * Use a vector as an index to access multiple elements e.g. '' | ||
| - | * The '' | + | * The '' |
| names(myseq)=c(' | names(myseq)=c(' | ||
| myseq[' | myseq[' | ||
| Line 28: | Line 28: | ||
| ===== Plotting ===== | ===== Plotting ===== | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| x=seq[0, | x=seq[0, | ||
| Line 35: | Line 35: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | ||
| ===== Matrices ===== | ===== Matrices ===== | ||
| Line 43: | Line 42: | ||
| * dim(myseq) can be used to change dimensions of a matrix | * dim(myseq) can be used to change dimensions of a matrix | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| - | ===== Data Sets ===== | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * A data frame collects sets of related values (i.e. sets of columns with values in the same order) e.g. '' | ||
| - | * To extract a column, use double-square brackets with the column index or name e.g. '' | ||
| - | * '' | ||
| - | |||
| - | ===== Statistics ===== | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * | ||
| ===== File Handling ===== | ===== File Handling ===== | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | ||
| - | * '' | ||