I hereby claim:
- I am nickhepler on github.
- I am nickhepler (https://keybase.io/nickhepler) on keybase.
- I have a public key ASBO24DCZMbhQkDgWvN8yirfnHeMHYS31XAjBUunKHEtHQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # <one line to give the program's name and a brief idea of what it does.> | |
| # Copyright (C) <year> <name of author> | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| CalculateSampleCovariance <- function(x, y, verbose = TRUE) { | |
| # Computes the sample covariance between two vectors. | |
| # | |
| # Args: | |
| # x: One of two vectors whose sample covariance is to be calculated. | |
| # y: The other vector. x and y must have the same length, greater than one, | |
| # with no missing values. | |
| # verbose: If TRUE, prints sample covariance; if not, not. Default is TRUE. | |
| # | |
| # Returns: |
#660000#ffffff#7f3f97#f0f0f0#666666#9e0f0f#d9d6c8#001058#fad804| % <one line to give the program's name and a brief idea of what it does.> | |
| % | |
| % Copyright (C) <year> <name of author> | |
| % | |
| % Version <x.y.z> | |
| % | |
| % This program is free software; you can redistribute it and/or modify | |
| % it under the terms of the GNU General Public License as published by | |
| % the Free Software Foundation; either version 2 of the License, or | |
| % (at your option) any later version. |
str(x) # Compactly display the internal structure of an R object.
class(x) # Return the object class.
dim(x) # Retrieve or set the dimension of an object.
nrow(x) # Return the number of rows (observations).
ncol(x) # Return the number of columns (variables).
object.size(x) # Provides an estimate memory used to store an R object.
names(x) # Get or set the names of an object.
head(x) # Returns the first part of a vector, matrix, table, data frame or function.
| pkgs <- c( | |
| "dplyr", "gapminder", "ggplot2", "jsonlite", "Lahman", | |
| "lubridate", "modelr", "nycflights13", "purrr", "readr", | |
| "stringr", "tibble", "tidyr" | |
| ) | |
| install.packages(pkgs) |
| ggplot(data = <DATA>) + | |
| <GEOM_FUNCTION>(mapping = aes(<MAPPINGS>)) |
| --- | |
| title: "Codebook template" | |
| author: "Your name here" | |
| date: "The date here" | |
| output: | |
| html_document: | |
| keep_md: yes | |
| --- | |
| ## Project Description |