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/07/31 15:22] 158.140.162.194 old revision restored (2026/05/31 10:27) |
notes:r_cheat_sheet [2026/08/02 03:59] (current) 47.83.116.204 old revision restored (2026/06/04 18:32) |
||
|---|---|---|---|
| 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 43: | Line 43: | ||
| * 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 ===== | ||
| Line 62: | Line 49: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | ||
| - | * '' | ||