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/11/02 15:32] 47.79.201.228 old revision restored (2026/06/22 06:56) |
notes:r_cheat_sheet [2026/11/04 09:00] (current) 95.87.69.121 old revision restored (2026/09/04 13:03) |
||
|---|---|---|---|
| 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 26: | Line 26: | ||
| * Scalar operations or functions on vectors typically produce other vectors e.g. + - == sin(myseq) | * Scalar operations or functions on vectors typically produce other vectors e.g. + - == sin(myseq) | ||
| + | ===== 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. '' | ||
| ===== Plotting ===== | ===== Plotting ===== | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| x=seq[0, | x=seq[0, | ||
| Line 45: | Line 52: | ||
| * '' | * '' | ||
| + | ===== Statistics ===== | ||
| + | |||
| + | * '' | ||
| ===== File Handling ===== | ===== File Handling ===== | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||