content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
####FGNET for smoking response genes
library(dplyr)
library(FGNet)
library(igraph)
library(openxlsx)
library(Seurat, lib.loc="/Users/jacksonna/R-dev")
source("../../CommonFunctions.r")
################# First bring in all the smoking DEGs
##### Bring in relevant smoking DEG tables scattered about
smokeDEGs_up<-read.t... | /2_MainPopulationAnalyses/8_FGNET_ciliated.r | no_license | seiboldlab/SingleCell_smoking | R | false | false | 13,335 | r | ####FGNET for smoking response genes
library(dplyr)
library(FGNet)
library(igraph)
library(openxlsx)
library(Seurat, lib.loc="/Users/jacksonna/R-dev")
source("../../CommonFunctions.r")
################# First bring in all the smoking DEGs
##### Bring in relevant smoking DEG tables scattered about
smokeDEGs_up<-read.t... |
\alias{gtkPrintSettingsSetMediaType}
\name{gtkPrintSettingsSetMediaType}
\title{gtkPrintSettingsSetMediaType}
\description{Sets the value of \code{GTK_PRINT_SETTINGS_MEDIA_TYPE}.}
\usage{gtkPrintSettingsSetMediaType(object, media.type)}
\arguments{
\item{\code{object}}{[\code{\link{GtkPrintSettings}}] a \code{\link{Gt... | /man/gtkPrintSettingsSetMediaType.Rd | no_license | cran/RGtk2.10 | R | false | false | 551 | rd | \alias{gtkPrintSettingsSetMediaType}
\name{gtkPrintSettingsSetMediaType}
\title{gtkPrintSettingsSetMediaType}
\description{Sets the value of \code{GTK_PRINT_SETTINGS_MEDIA_TYPE}.}
\usage{gtkPrintSettingsSetMediaType(object, media.type)}
\arguments{
\item{\code{object}}{[\code{\link{GtkPrintSettings}}] a \code{\link{Gt... |
# CART Models - Regression Trees - Merchent Sales
#Predict the mean sales from the data; create decision tree
library(rpart) # CART algo
library(rpart.plot)# visualising decision tree
library(forecast)# calculating accuracy
getwd()
setwd("D:/R Training/Training/Decision Tree/")
install.packages("RCurl")
install.p... | /DecisionTree_CART Model_MerchantSales.R | no_license | ArpitKumarSrivastava/Analytics1 | R | false | false | 2,969 | r | # CART Models - Regression Trees - Merchent Sales
#Predict the mean sales from the data; create decision tree
library(rpart) # CART algo
library(rpart.plot)# visualising decision tree
library(forecast)# calculating accuracy
getwd()
setwd("D:/R Training/Training/Decision Tree/")
install.packages("RCurl")
install.p... |
factorerr = function(p,m){
# Hat-matrix for the factor variable.
# The diag(factorerr) are the coefficients to myltiply by the s2=MSE/dfe
# to obtain the estimate of the variance of the estimator of the coefficient
# for corresponding factor level.
# They are always reciprocals of integers.
# see mmcc(model)
n=p*m
X=m... | /old/factorerr.r | no_license | RCanDo/RPacks | R | false | false | 451 | r | factorerr = function(p,m){
# Hat-matrix for the factor variable.
# The diag(factorerr) are the coefficients to myltiply by the s2=MSE/dfe
# to obtain the estimate of the variance of the estimator of the coefficient
# for corresponding factor level.
# They are always reciprocals of integers.
# see mmcc(model)
n=p*m
X=m... |
# Appendix to:
# Legendre, P. (2014) Interpreting the replacement and richness difference
# components of beta diversity. Global Ecology and Biogeography, 23, xxx–xxx.
# Appendix S4
#
# R function to compute the dbRDA F-test of significance between response data
# represented by a Euclidean or non-Euclidean dissimilari... | /dbRDAD.R | no_license | VFugere/Rfuncs | R | false | false | 8,522 | r | # Appendix to:
# Legendre, P. (2014) Interpreting the replacement and richness difference
# components of beta diversity. Global Ecology and Biogeography, 23, xxx–xxx.
# Appendix S4
#
# R function to compute the dbRDA F-test of significance between response data
# represented by a Euclidean or non-Euclidean dissimilari... |
#' Synchronize software category keywords with the IMCR vocabulary
#'
#' @param name
#' (character) Software name(s). Use \code{name = "all_imcr_software"}
#' to synchronize all IMCR software category keywords.
#'
#' @return
#' (list) Updated software JSON for the specified \code{name} and added to
#' the \co... | /R/sync_software_category.R | permissive | IMCR-Hackathon/toolkit | R | false | false | 5,942 | r | #' Synchronize software category keywords with the IMCR vocabulary
#'
#' @param name
#' (character) Software name(s). Use \code{name = "all_imcr_software"}
#' to synchronize all IMCR software category keywords.
#'
#' @return
#' (list) Updated software JSON for the specified \code{name} and added to
#' the \co... |
library("shiny")
library("shinydashboard")
library("shinyjs")
library(shiny)
ui <- fluidPage(
actionButton("action",
label = "액션버튼"
),
hr(),
verbatimTextOutput("value")
)
server <- function(input, output, session) {
output$value = renderText({input$action})
}
shinyApp(ui, serve... | /shinyActionButton.R | no_license | LetiKim/Shiny181013 | R | false | false | 334 | r | library("shiny")
library("shinydashboard")
library("shinyjs")
library(shiny)
ui <- fluidPage(
actionButton("action",
label = "액션버튼"
),
hr(),
verbatimTextOutput("value")
)
server <- function(input, output, session) {
output$value = renderText({input$action})
}
shinyApp(ui, serve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistical_tests_and_estimates.R
\name{two_samp_cont_test}
\alias{two_samp_cont_test}
\title{Continuous Variable Compared to Binary Variable Test}
\usage{
two_samp_cont_test(x, y, method = c("wilcox", "t.test"),
paired = FALSE, verbose = F... | /man/two_samp_cont_test.Rd | no_license | CarvajalRodrigo/MoffittFunctions | R | false | true | 1,934 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistical_tests_and_estimates.R
\name{two_samp_cont_test}
\alias{two_samp_cont_test}
\title{Continuous Variable Compared to Binary Variable Test}
\usage{
two_samp_cont_test(x, y, method = c("wilcox", "t.test"),
paired = FALSE, verbose = F... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "lungcancer_GSE31210")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "OS_event")
lrn = ... | /models/openml_lungcancer_GSE31210/classification_OS_event/733a83adc255b7728245031ae6d099bc/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 702 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "lungcancer_GSE31210")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "OS_event")
lrn = ... |
#' Detect differences between two jointly normalized Hi-C datasets.
#'
#' @export
#' @param hic.table A hic.table or list of hic.tables output from the
#' \code{hic_loess} function. hic.table must be jointly normalized
#' before being entered.
#' @param A.min The required value of A in order for a differe... | /R/hic_compare.R | permissive | dozmorovlab/HiCcompare | R | false | false | 9,966 | r | #' Detect differences between two jointly normalized Hi-C datasets.
#'
#' @export
#' @param hic.table A hic.table or list of hic.tables output from the
#' \code{hic_loess} function. hic.table must be jointly normalized
#' before being entered.
#' @param A.min The required value of A in order for a differe... |
# Support Vector Machine classification on Wheat Data
##########
# Enter data and do some processing
wheat <- read.csv("C:\\Users\\Tom loughin\\sfuvault\\452 Statistical Learning\\R\\wheat.csv")
head(wheat)
#summary(wheat)
# Variable "type" is the response variable. "class" is another explanatory.
class(whea... | /STAT452_Statistical_Learning/452Lecture_Rcode/L22_SVM/L22 - SVM Classification Wheat.R | no_license | yiyangd/SFU | R | false | false | 4,960 | r | # Support Vector Machine classification on Wheat Data
##########
# Enter data and do some processing
wheat <- read.csv("C:\\Users\\Tom loughin\\sfuvault\\452 Statistical Learning\\R\\wheat.csv")
head(wheat)
#summary(wheat)
# Variable "type" is the response variable. "class" is another explanatory.
class(whea... |
library(ggplot2)
getwd()
setwd("/Users/krishna/MOOC/Edge/Data")
intl = read.csv("intl.csv")
ggplot(intl,aes(x=Region,y=PercentOfIntl)) + geom_bar(stat="Identity") +
geom_text(aes(label=PercentOfIntl))
intl = transform(intl,Region = reorder(Region, -PercentOfIntl))
intl$PercentOfIntl = intl$PercentOfIntl * 100
ggplo... | /Analytics Edge/Unit7_Assignment1.R | no_license | krishnakalyan3/Edge | R | false | false | 2,073 | r | library(ggplot2)
getwd()
setwd("/Users/krishna/MOOC/Edge/Data")
intl = read.csv("intl.csv")
ggplot(intl,aes(x=Region,y=PercentOfIntl)) + geom_bar(stat="Identity") +
geom_text(aes(label=PercentOfIntl))
intl = transform(intl,Region = reorder(Region, -PercentOfIntl))
intl$PercentOfIntl = intl$PercentOfIntl * 100
ggplo... |
# Run in R 3.5.1
source('global.R')
fakeConventionals <- read.csv('exampleData/fakeConventionals.csv') %>%
dplyr::select(FDT_STA_ID, STA_DESC, Basin, Huc6_Huc_8_Name,
Huc6_Name, Huc6_Vahu5, Huc6_Vahu6) %>%
distinct(FDT_STA_ID, .keep_all = T)
x <- data.frame(x = c('StationID','Station Description',
... | /R&S_app_v1/serverdumb.R | no_license | EmmaVJones/Rivers-StreamsAssessment | R | false | false | 4,006 | r | # Run in R 3.5.1
source('global.R')
fakeConventionals <- read.csv('exampleData/fakeConventionals.csv') %>%
dplyr::select(FDT_STA_ID, STA_DESC, Basin, Huc6_Huc_8_Name,
Huc6_Name, Huc6_Vahu5, Huc6_Vahu6) %>%
distinct(FDT_STA_ID, .keep_all = T)
x <- data.frame(x = c('StationID','Station Description',
... |
install.packages("plotly")
library(plotly)
set.seed(1234)
set_a <- rnorm(200, mean=1,sd=2)
set_b <- rnorm(200, mean=0,sd=1)
#create the data frame
df <- data.frame(label = factor(rep(c("A","B"), each=200)), value = c(set_a, set_b))
#output both the first and last rows
head(df)
tail(df)
ggplot(df, aes(x=label, y=valu... | /box plot.R | no_license | MathAugusto/R-estudos-graficos-analises | R | false | false | 351 | r | install.packages("plotly")
library(plotly)
set.seed(1234)
set_a <- rnorm(200, mean=1,sd=2)
set_b <- rnorm(200, mean=0,sd=1)
#create the data frame
df <- data.frame(label = factor(rep(c("A","B"), each=200)), value = c(set_a, set_b))
#output both the first and last rows
head(df)
tail(df)
ggplot(df, aes(x=label, y=valu... |
loadData <- function () {
## Load the required libraries
print("Loading required libraries...")
library(data.table)
library(dplyr)
## Read in X_test.txt and Y_test.txt data sets
print("Reading in test observations...")
x_test <- read.table("test/X_test.tx... | /run_analysis.R | no_license | JasonOlson15/cleaningDataProject | R | false | false | 2,980 | r | loadData <- function () {
## Load the required libraries
print("Loading required libraries...")
library(data.table)
library(dplyr)
## Read in X_test.txt and Y_test.txt data sets
print("Reading in test observations...")
x_test <- read.table("test/X_test.tx... |
#!/usr/bin/env Rscript
# Prepare cytoBand.txt and re-format as RDS file
# Compile start and end positions of each chromosome arm
get_chrom_arm_pos <- function(cytobands, include.whole=FALSE) {
# remove cytobands with missing values
cytobands <- cytobands[cytobands$cytoband != "", ];
chr.parts.chromosome <- NULL... | /db/ucsc/cytoBand.R | permissive | djhshih/apiarius | R | false | false | 2,768 | r | #!/usr/bin/env Rscript
# Prepare cytoBand.txt and re-format as RDS file
# Compile start and end positions of each chromosome arm
get_chrom_arm_pos <- function(cytobands, include.whole=FALSE) {
# remove cytobands with missing values
cytobands <- cytobands[cytobands$cytoband != "", ];
chr.parts.chromosome <- NULL... |
##Load packages
library(dplyr)
library(data.table)
##Read all data
allData <- read.table("household_power_consumption.txt", sep = ";",
na.strings = "?", header = TRUE)
##Convert to data table and keep only required dates
allDF <- tbl_df(allData)
reqDates <- filter(allDF, allDF$Date == "1/2/200... | /plot1.R | no_license | zahirbaig21/ExData_Plotting1 | R | false | false | 851 | r | ##Load packages
library(dplyr)
library(data.table)
##Read all data
allData <- read.table("household_power_consumption.txt", sep = ";",
na.strings = "?", header = TRUE)
##Convert to data table and keep only required dates
allDF <- tbl_df(allData)
reqDates <- filter(allDF, allDF$Date == "1/2/200... |
# The purpose of this project is to demonstrate your ability to collect, work
# with, and clean a data set. The goal is to prepare tidy data that can be used
# for later analysis. You will be graded by your peers on a series of yes/no
# questions related to the project. You will be required to submit: 1) a tidy
# data ... | /run_analysis.R | no_license | mherberg/Course-Project | R | false | false | 4,197 | r | # The purpose of this project is to demonstrate your ability to collect, work
# with, and clean a data set. The goal is to prepare tidy data that can be used
# for later analysis. You will be graded by your peers on a series of yes/no
# questions related to the project. You will be required to submit: 1) a tidy
# data ... |
\alias{gdkWindowBeginResizeDrag}
\name{gdkWindowBeginResizeDrag}
\title{gdkWindowBeginResizeDrag}
\description{Begins a window resize operation (for a toplevel window).
You might use this function to implement a "window resize grip," for
example; in fact \code{\link{GtkStatusbar}} uses it. The function works best
with ... | /RGtk2/man/gdkWindowBeginResizeDrag.Rd | no_license | lawremi/RGtk2 | R | false | false | 1,121 | rd | \alias{gdkWindowBeginResizeDrag}
\name{gdkWindowBeginResizeDrag}
\title{gdkWindowBeginResizeDrag}
\description{Begins a window resize operation (for a toplevel window).
You might use this function to implement a "window resize grip," for
example; in fact \code{\link{GtkStatusbar}} uses it. The function works best
with ... |
###
### $Id: softTh.R 35 2022-05-31 05:53:13Z proebuck $
###
options(warn=1)
library(rwt)
##-----------------------------------------------------------------------------
test.softTh <- function(input, expected) {
result <- rwt::softTh(input$signal, input$thld)
identical(all.equal(as.vector(result),
... | /tests/softTh.R | no_license | cran/rwt | R | false | false | 749 | r | ###
### $Id: softTh.R 35 2022-05-31 05:53:13Z proebuck $
###
options(warn=1)
library(rwt)
##-----------------------------------------------------------------------------
test.softTh <- function(input, expected) {
result <- rwt::softTh(input$signal, input$thld)
identical(all.equal(as.vector(result),
... |
## Assignment: Electricity Data
## Week 1 Explanatory Analytics Course
## Author: RS Grewal
## Objective:
## File loading
## Given the size of the file and the loading likely on the UCI ML database
## I will save the file once to my machine and then in future runs use that
filename <- "household_power_consumption.t... | /plot4.R | no_license | roddy106/ExData_Plotting1 | R | false | false | 2,145 | r | ## Assignment: Electricity Data
## Week 1 Explanatory Analytics Course
## Author: RS Grewal
## Objective:
## File loading
## Given the size of the file and the loading likely on the UCI ML database
## I will save the file once to my machine and then in future runs use that
filename <- "household_power_consumption.t... |
#7.1 overall model for level 1 of results
library(tidyverse)
library(ggpubr)
library(lme4)
library(gridExtra) # for grid.arrange fxn, can remove if not using
save_toggle <- TRUE
if (switch_switch == 0) switch_file <- 'unswitched' else switch_file <- 'switched'
outlier_name <- if_else(outlier_bool == TRUE, 'WITH_outl... | /src/7.1_overall-model.R | no_license | yayatang/lab-macronuts | R | false | false | 4,709 | r | #7.1 overall model for level 1 of results
library(tidyverse)
library(ggpubr)
library(lme4)
library(gridExtra) # for grid.arrange fxn, can remove if not using
save_toggle <- TRUE
if (switch_switch == 0) switch_file <- 'unswitched' else switch_file <- 'switched'
outlier_name <- if_else(outlier_bool == TRUE, 'WITH_outl... |
# Ex 1
especificacao_arvore <- decision_tree(min_n = 5) %>%
set_engine("rpart") %>%
set_mode("regression")
# Ex 2
modelo <- especificacao_arvore %>%
fit(HmRun~CHmRun, data = Hitters1)
# Ex 3
Hitters1_com_previsao <- Hitters1 %>%
mutate(
HmRun_pred = predict(modelo, new_data = Hitter... | /gabaritos/01-arvores.R | no_license | curso-r/202003-intro-ml | R | false | false | 1,468 | r | # Ex 1
especificacao_arvore <- decision_tree(min_n = 5) %>%
set_engine("rpart") %>%
set_mode("regression")
# Ex 2
modelo <- especificacao_arvore %>%
fit(HmRun~CHmRun, data = Hitters1)
# Ex 3
Hitters1_com_previsao <- Hitters1 %>%
mutate(
HmRun_pred = predict(modelo, new_data = Hitter... |
../Gausian/TREE_simulation_function.R | /TREE_simulation_function.R | no_license | M-Atsuhiko/Tsuishi | R | false | false | 37 | r | ../Gausian/TREE_simulation_function.R |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kormean.R
\name{kormean}
\alias{kormean}
\title{Take the Mean of two Correlation Matrices}
\usage{
kormean(x, y, xn = NA, yn = NA)
}
\arguments{
\item{x}{a correlation matrix}
\item{y}{a correlation matrix}
\item{xn}{numeric value (optional... | /man/kormean.Rd | no_license | cran/holland | R | false | true | 1,252 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kormean.R
\name{kormean}
\alias{kormean}
\title{Take the Mean of two Correlation Matrices}
\usage{
kormean(x, y, xn = NA, yn = NA)
}
\arguments{
\item{x}{a correlation matrix}
\item{y}{a correlation matrix}
\item{xn}{numeric value (optional... |
# Limpieza
rm(list=ls())
ls()
######################
# Charge libraries
######################
library(car)
library(nlme)
library(dismo)
library(anytime)
library(ggplot2)
library(corrplot)
library(Hmisc)
library(mgcViz)
library(mgcv)
library(visreg)
library(ggplot2)
library(cairoDevice)
library(extra... | /Leng-Age_GAM_Sardine_South.R | no_license | MgraziaPennino/Changes-in-life-history-traits-of-small-pelagic-fish-in-the-western-Mediterranean-Sea | R | false | false | 3,504 | r | # Limpieza
rm(list=ls())
ls()
######################
# Charge libraries
######################
library(car)
library(nlme)
library(dismo)
library(anytime)
library(ggplot2)
library(corrplot)
library(Hmisc)
library(mgcViz)
library(mgcv)
library(visreg)
library(ggplot2)
library(cairoDevice)
library(extra... |
### Exercise 1 ###
# Load the httr and jsonlite libraries for accessing data
library("httr")
library("jsonlite")
## For these questions, look at the API documentation to identify the appropriate endpoint and information.
## Then send GET() request to fetch the data, then extract the answer to the question
# For what... | /exercise-1/exercise.R | permissive | gbabbUW/module11-apis | R | false | false | 1,913 | r | ### Exercise 1 ###
# Load the httr and jsonlite libraries for accessing data
library("httr")
library("jsonlite")
## For these questions, look at the API documentation to identify the appropriate endpoint and information.
## Then send GET() request to fetch the data, then extract the answer to the question
# For what... |
# ----------------------------------------------------------------------
# checkallpkgs.R
# ----------------------------------------------------------------------
#
# This script attempts to find all of the R packages used in all
# of the R presentation files in the current working folder and then
# attempts to instal... | /checkallpkgs.R | permissive | MashaKubyshina/Biostat-578 | R | false | false | 3,729 | r | # ----------------------------------------------------------------------
# checkallpkgs.R
# ----------------------------------------------------------------------
#
# This script attempts to find all of the R packages used in all
# of the R presentation files in the current working folder and then
# attempts to instal... |
# Exercise 4: practicing with dplyr
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13")
library("nycflights13")
library("dplyr")
# The data frame `flights` should now be accessible to you.
# Use functions to inspect it: how many ... | /chapter-11-exercises/exercise-4/exercise.R | permissive | steele38/book-exercises | R | false | false | 2,406 | r | # Exercise 4: practicing with dplyr
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13")
library("nycflights13")
library("dplyr")
# The data frame `flights` should now be accessible to you.
# Use functions to inspect it: how many ... |
#' daily accumulated precipitation (in millimeter) at London, UK and 24-hours-ahead forecasts of the ECMWF (1969-2011)
#'
#' 24-hour ahead forecasts of daily accumulated precipitation at London,
#' UK from the high-resolution model of the
#' European Centre for Medium-Range Weather Forecasts (ECMWF). The data conta... | /R/data.R | no_license | cran/PointFore | R | false | false | 1,724 | r | #' daily accumulated precipitation (in millimeter) at London, UK and 24-hours-ahead forecasts of the ECMWF (1969-2011)
#'
#' 24-hour ahead forecasts of daily accumulated precipitation at London,
#' UK from the high-resolution model of the
#' European Centre for Medium-Range Weather Forecasts (ECMWF). The data conta... |
ace<-function(x,a,aj,E=0.1,p=0.05,ampl=2,prot=NULL,prop=F,rn=F,spivi=15,un=F,pt=T,save=T){
#para que o arquivo docx seja nomeado com o mesmo nome do input
nm <-deparse(substitute(x))
#para que seja feito o ggplot
x<-as.data.frame(x)
#Grafico de distribuicao diametrica por estrato
if(pt==T){
diam<-ggpl... | /R/ace.R | no_license | Danielsouzabio/florestal | R | false | false | 51,160 | r | ace<-function(x,a,aj,E=0.1,p=0.05,ampl=2,prot=NULL,prop=F,rn=F,spivi=15,un=F,pt=T,save=T){
#para que o arquivo docx seja nomeado com o mesmo nome do input
nm <-deparse(substitute(x))
#para que seja feito o ggplot
x<-as.data.frame(x)
#Grafico de distribuicao diametrica por estrato
if(pt==T){
diam<-ggpl... |
#' @import magrittr
#' @import dplyr
NULL
| /R/imports.R | no_license | idmn/wfindr | R | false | false | 42 | r | #' @import magrittr
#' @import dplyr
NULL
|
context("test-check-cols-complete.R")
test_that("check_cols_complete returns NULL if given NULL input", {
expect_null(check_cols_complete(NULL))
})
test_that("check_cols_complete returns check_pass if required columns are complete", { # nolint
dat <- data.frame(x = 1:2, y = c("a", "b"), z = c(TRUE, FALSE))
res ... | /tests/testthat/test-check-cols-complete.R | permissive | Aryllen/dccvalidator | R | false | false | 1,646 | r | context("test-check-cols-complete.R")
test_that("check_cols_complete returns NULL if given NULL input", {
expect_null(check_cols_complete(NULL))
})
test_that("check_cols_complete returns check_pass if required columns are complete", { # nolint
dat <- data.frame(x = 1:2, y = c("a", "b"), z = c(TRUE, FALSE))
res ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 1.set the value of the matrix
## 2.get the value of the matrix
## 3.set the value of t... | /cachematrix.R | no_license | ohinkwon/ProgrammingAssignment2 | R | false | false | 1,249 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 1.set the value of the matrix
## 2.get the value of the matrix
## 3.set the value of t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LDAopt_MOD.R
\name{LDAopt_MOD}
\alias{LDAopt_MOD}
\title{PP optimization using LDA index}
\usage{
LDAopt_MOD(origclass,origdata,q=1,weight=TRUE,...)
}
\arguments{
\item{origclass}{class information vector of data}
\item{origdata}{data matrix... | /man/LDAopt_MOD.Rd | no_license | natydasilva/PPtreeExt | R | false | true | 1,029 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LDAopt_MOD.R
\name{LDAopt_MOD}
\alias{LDAopt_MOD}
\title{PP optimization using LDA index}
\usage{
LDAopt_MOD(origclass,origdata,q=1,weight=TRUE,...)
}
\arguments{
\item{origclass}{class information vector of data}
\item{origdata}{data matrix... |
library(readr)
library(dplyr)
power <- read_csv2("data/power.zip")
names(power)<-make.names(names(power))
power <- mutate(power, Date = as.Date(Date,format = "%d/%m/%Y"))
power$Time <- strptime (paste(power$Date,power$Time),format = "%Y-%m-%d %H:%M:%S")
powerfeb <- power[power$Date < "2007-02-03", ]
powerfeb <- powe... | /plot3.R | no_license | Pieterdebier/ExData_Plotting1 | R | false | false | 794 | r | library(readr)
library(dplyr)
power <- read_csv2("data/power.zip")
names(power)<-make.names(names(power))
power <- mutate(power, Date = as.Date(Date,format = "%d/%m/%Y"))
power$Time <- strptime (paste(power$Date,power$Time),format = "%Y-%m-%d %H:%M:%S")
powerfeb <- power[power$Date < "2007-02-03", ]
powerfeb <- powe... |
mortRates<-function(soc,mseq=c(0,1,12,seq(5,100,by=5)*12)){
## expects a list object containing $opop element and mseq which gives
## the break points of the age intervals in the ratefile.
opop<-soc$opop
## This assumes that mortality rates do not vary by group or marital
## status.
opop$agedOC<- with(opop... | /Sample/Rcode/mortRates.r | no_license | tomthe/socsim | R | false | false | 1,548 | r | mortRates<-function(soc,mseq=c(0,1,12,seq(5,100,by=5)*12)){
## expects a list object containing $opop element and mseq which gives
## the break points of the age intervals in the ratefile.
opop<-soc$opop
## This assumes that mortality rates do not vary by group or marital
## status.
opop$agedOC<- with(opop... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataObjects.R
\name{AAPL}
\alias{AAPL}
\title{AAPL stock price data}
\description{
AAPL stock price data
}
| /man/AAPL.Rd | permissive | How-to-Learn-to-Code/rclass | R | false | true | 185 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataObjects.R
\name{AAPL}
\alias{AAPL}
\title{AAPL stock price data}
\description{
AAPL stock price data
}
|
#' Function to deregularise densities to have (smaller) minimum value
#'
#' If possible, deregularises the input density \code{y} to have minimum density value is \code{alpha}. See details.
#'
#' @param x support of the density
#' @param y values of the density
#' @param alpha scalar to deregularise with (default = 0... | /fdadensity/R/DeregulariseByAlpha.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 1,521 | r | #' Function to deregularise densities to have (smaller) minimum value
#'
#' If possible, deregularises the input density \code{y} to have minimum density value is \code{alpha}. See details.
#'
#' @param x support of the density
#' @param y values of the density
#' @param alpha scalar to deregularise with (default = 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/templates.R
\docType{methods}
\name{cbind2,Templates,ANY-method}
\alias{cbind2,Templates,ANY-method}
\alias{rbind2,Templates,ANY-method}
\alias{[,Templates,ANY,ANY,ANY-method}
\alias{[,Templates-method}
\alias{[,Templates,ANY-method}
\alias{$... | /man/Templates-method.Rd | no_license | weixinsuoxian/openPrimeR | R | false | true | 1,492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/templates.R
\docType{methods}
\name{cbind2,Templates,ANY-method}
\alias{cbind2,Templates,ANY-method}
\alias{rbind2,Templates,ANY-method}
\alias{[,Templates,ANY,ANY,ANY-method}
\alias{[,Templates-method}
\alias{[,Templates,ANY-method}
\alias{$... |
library(dplyr)
library(ggplot2)
library(reshape2)
library(ggsignif)
input_dir <- '/groups/umcg-bios/tmp03/projects/outlierGeneASE/variant_MAF_stratification/'
stratificationTable <- read.table(paste0(input_dir, 'variant_stratification.binom.countOncePerSNP.txt'),
header = T)
#omim_gen... | /sup_figure_9/plot_stratification.R | no_license | freerkvandijk/BIOS_ASE | R | false | false | 7,525 | r | library(dplyr)
library(ggplot2)
library(reshape2)
library(ggsignif)
input_dir <- '/groups/umcg-bios/tmp03/projects/outlierGeneASE/variant_MAF_stratification/'
stratificationTable <- read.table(paste0(input_dir, 'variant_stratification.binom.countOncePerSNP.txt'),
header = T)
#omim_gen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TremoloUtils.R
\name{runTremolo}
\alias{runTremolo}
\title{read Tremolo output}
\usage{
runTremolo(root, speclib, prectol = 0.1, score = 0.4, topk = 10,
exec = "/media/D01/Metabo/MetSoft/Tremolo_8_21_2013/main_execmodule")
}
\arguments{
\it... | /man/runTremolo.Rd | no_license | tonedivad/metaboGoS | R | false | true | 606 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TremoloUtils.R
\name{runTremolo}
\alias{runTremolo}
\title{read Tremolo output}
\usage{
runTremolo(root, speclib, prectol = 0.1, score = 0.4, topk = 10,
exec = "/media/D01/Metabo/MetSoft/Tremolo_8_21_2013/main_execmodule")
}
\arguments{
\it... |
# Business Analysis With R----
# data wrangling -----
library(tidyverse)
library(readxl)
bike_tbl <- read_excel("00_data/bike_sales/data_raw/bikes.xlsx")
orderline_tbl <- read_excel("00_data/bike_sales/data_raw/bikeshops.xlsx")
bike_orderline_tbl <- read_excel(path = "00_data/bike_sales/data_wrangled_stud... | /Data wrangling R.R | no_license | thisisabhishekpatel/Data-Manipulation-and-Visualisation | R | false | false | 7,701 | r | # Business Analysis With R----
# data wrangling -----
library(tidyverse)
library(readxl)
bike_tbl <- read_excel("00_data/bike_sales/data_raw/bikes.xlsx")
orderline_tbl <- read_excel("00_data/bike_sales/data_raw/bikeshops.xlsx")
bike_orderline_tbl <- read_excel(path = "00_data/bike_sales/data_wrangled_stud... |
#' @name ResponsePlot
#'
#' @title Plot predicted response curves along covariate gradients
#'
#' @description This module plots predicted response curves along covariate gradients for all or specified covariates
#'
#' @details The module outputs a line graph of probability of occupancy (relative for presence-only and ... | /R/ResponsePlot.R | no_license | simaob/modules | R | false | false | 4,665 | r | #' @name ResponsePlot
#'
#' @title Plot predicted response curves along covariate gradients
#'
#' @description This module plots predicted response curves along covariate gradients for all or specified covariates
#'
#' @details The module outputs a line graph of probability of occupancy (relative for presence-only and ... |
\alias{GtkNotebook}
\alias{gtkNotebook}
\alias{GtkNotebookWindowCreationFunc}
\name{GtkNotebook}
\title{GtkNotebook}
\description{A tabbed notebook container}
\section{Methods and Functions}{
\code{\link{gtkNotebookNew}(show = TRUE)}\cr
\code{\link{gtkNotebookAppendPage}(object, child, tab.label = NULL)}\cr
\code{\link... | /man/GtkNotebook.Rd | no_license | cran/RGtk2 | R | false | false | 13,557 | rd | \alias{GtkNotebook}
\alias{gtkNotebook}
\alias{GtkNotebookWindowCreationFunc}
\name{GtkNotebook}
\title{GtkNotebook}
\description{A tabbed notebook container}
\section{Methods and Functions}{
\code{\link{gtkNotebookNew}(show = TRUE)}\cr
\code{\link{gtkNotebookAppendPage}(object, child, tab.label = NULL)}\cr
\code{\link... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rerandomization_search.R
\name{initRerandomizationExperimentalDesignObject}
\alias{initRerandomizationExperimentalDesignObject}
\title{Begin a Rerandomization Search}
\usage{
initRerandomizationExperimentalDesignObject(
X = NULL,
obj_val_... | /GreedyExperimentalDesign/man/initRerandomizationExperimentalDesignObject.Rd | no_license | kapelner/GreedyExperimentalDesign | R | false | true | 2,521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rerandomization_search.R
\name{initRerandomizationExperimentalDesignObject}
\alias{initRerandomizationExperimentalDesignObject}
\title{Begin a Rerandomization Search}
\usage{
initRerandomizationExperimentalDesignObject(
X = NULL,
obj_val_... |
############################################################################
####################------DAIMLER------#####################################
############################################################################
# CODE: Non Linear TSA
# COMMODITY: Kobalt
# AUTHOR: Sayan Pal
###################... | /Commodity Price Forecasting Master Codes/Cobalt/Non_linear_models/NonLinear_Daimler_Master.R | no_license | Sayan-Pal585/Time-Series-Analysis | R | false | false | 2,179 | r | ############################################################################
####################------DAIMLER------#####################################
############################################################################
# CODE: Non Linear TSA
# COMMODITY: Kobalt
# AUTHOR: Sayan Pal
###################... |
#Basic Neural Network Implementation
#We will be using the APTelectricity dataset
#The dataset covers power transfers every 5 minutes for a range of time
#The data comes from a smart meter in a one bedroom house
#The third column has the amount of appliances in use at the time of measurement
#Here we will convert ... | /Kalsted_Simple_Neural_Network.R | no_license | hinrichk44/Kalsted_Simple_Neural_Network | R | false | false | 1,388 | r | #Basic Neural Network Implementation
#We will be using the APTelectricity dataset
#The dataset covers power transfers every 5 minutes for a range of time
#The data comes from a smart meter in a one bedroom house
#The third column has the amount of appliances in use at the time of measurement
#Here we will convert ... |
## 1. Merges the training and the test sets to create one data set.
# Read data
features <- read.table("features.txt")
activity_labels <- read.table("activity_labels.txt")
subjectTrain <- read.table("subject_train.txt")
xTrain <- read.table("X_train.txt")
yTrain <- read.table("y_train.txt")
# Rename c... | /run_analysis.R.R | no_license | mnatanasova/Coursera---Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,857 | r |
## 1. Merges the training and the test sets to create one data set.
# Read data
features <- read.table("features.txt")
activity_labels <- read.table("activity_labels.txt")
subjectTrain <- read.table("subject_train.txt")
xTrain <- read.table("X_train.txt")
yTrain <- read.table("y_train.txt")
# Rename c... |
##########################################################################################################
## Plot 4
## Coursera Exploratory Data Analysis Week 1 Assignment
## May 19, 2016
# plot4.r
# Purpose: Using the base plotting system and energy use data over
# a 2-day period in February, 2007, construct a m... | /plot4.R | no_license | adh-git/ExData_Plotting1 | R | false | false | 2,386 | r | ##########################################################################################################
## Plot 4
## Coursera Exploratory Data Analysis Week 1 Assignment
## May 19, 2016
# plot4.r
# Purpose: Using the base plotting system and energy use data over
# a 2-day period in February, 2007, construct a m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/books_objects.R
\name{Volumeseriesinfo.volumeSeries}
\alias{Volumeseriesinfo.volumeSeries}
\title{Volumeseriesinfo.volumeSeries Object}
\usage{
Volumeseriesinfo.volumeSeries(Volumeseriesinfo.volumeSeries.issue = NULL)
}
\arguments{
\item{Volu... | /googlebooksv1.auto/man/Volumeseriesinfo.volumeSeries.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 754 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/books_objects.R
\name{Volumeseriesinfo.volumeSeries}
\alias{Volumeseriesinfo.volumeSeries}
\title{Volumeseriesinfo.volumeSeries Object}
\usage{
Volumeseriesinfo.volumeSeries(Volumeseriesinfo.volumeSeries.issue = NULL)
}
\arguments{
\item{Volu... |
rm(list = ls())
nn<-read.csv(choose.files(),header = TRUE, sep = ",")
CX<- nn$C.X-nn$Q.X
nn$CX<-CX
apply(nn,2, function(x) sum(is.na(x)))
samplesize<-0.70*nrow(nn)
index<-sample(seq_len(nrow(nn)),size = samplesize)
datatrain<-nn[index,]
datatest<-nn[-index,]
View(nn)
maxs<- apply(nn, 2, max)
mins<- apply(nn,... | /Final HANN.R | no_license | nevinadalal/riskanalytics | R | false | false | 1,713 | r | rm(list = ls())
nn<-read.csv(choose.files(),header = TRUE, sep = ",")
CX<- nn$C.X-nn$Q.X
nn$CX<-CX
apply(nn,2, function(x) sum(is.na(x)))
samplesize<-0.70*nrow(nn)
index<-sample(seq_len(nrow(nn)),size = samplesize)
datatrain<-nn[index,]
datatest<-nn[-index,]
View(nn)
maxs<- apply(nn, 2, max)
mins<- apply(nn,... |
Qtlmodel.mlefunc<-function( parin, y, qtl.prob, time.std)
{
len.cov <- FM2.covar$get_par_num(y);
len.gen <- FM2.curve$par_num;
par.covar <- parin[1:len.cov];
if (!FM2.covar$is_valid( par.covar ))
return(NaN);
sig.inv <- FM2.covar$get_inv_mat( par.covar, time.std, FM2.curve$trait_num);
sig.det <- FM2.... | /Funmap2/R/fm2.qtlmodel.r | no_license | wzhy2000/R | R | false | false | 19,666 | r | Qtlmodel.mlefunc<-function( parin, y, qtl.prob, time.std)
{
len.cov <- FM2.covar$get_par_num(y);
len.gen <- FM2.curve$par_num;
par.covar <- parin[1:len.cov];
if (!FM2.covar$is_valid( par.covar ))
return(NaN);
sig.inv <- FM2.covar$get_inv_mat( par.covar, time.std, FM2.curve$trait_num);
sig.det <- FM2.... |
depricator <- function(newValue, ellipsis){
if(!is.null(ellipsis$silent)){
warning("You have provided 'silent' parameter. This is deprecated. Please, use 'quite' instead.");
return(ellipsis$silent);
}
else if(!is.null(ellipsis$style)){
warning("You have provided 'style' parameter. Th... | /R/depricator.R | no_license | rohitpandey13/greybox | R | false | false | 1,194 | r | depricator <- function(newValue, ellipsis){
if(!is.null(ellipsis$silent)){
warning("You have provided 'silent' parameter. This is deprecated. Please, use 'quite' instead.");
return(ellipsis$silent);
}
else if(!is.null(ellipsis$style)){
warning("You have provided 'style' parameter. Th... |
library(coda) # detailed MCMC output
library(parallel) # multithreading
library(Rcpp) # compile C++ files
library(runjags) # invoke JAGS in R
sourceCpp('dZIBGe.cpp') # load ZIBG PMF... | /example.R | no_license | yulanvanoppen/ZIBGe-GLMM | R | false | false | 1,940 | r | library(coda) # detailed MCMC output
library(parallel) # multithreading
library(Rcpp) # compile C++ files
library(runjags) # invoke JAGS in R
sourceCpp('dZIBGe.cpp') # load ZIBG PMF... |
\name{bandwidth}
\alias{bandwidth}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate the optimal bandwidth matrix of movement data}
\description{This function calculates the optimal bandwidth matrix (kernel covariance) for a two-dimensional animal tracking dataset, given a... | /man/bandwidth.Rd | no_license | davan690/ctmm | R | false | false | 5,706 | rd | \name{bandwidth}
\alias{bandwidth}
\encoding{UTF-8}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate the optimal bandwidth matrix of movement data}
\description{This function calculates the optimal bandwidth matrix (kernel covariance) for a two-dimensional animal tracking dataset, given a... |
# Exercise 1: Creating and Indexing Vectors
# Create a vector `first.ten` that has the values 10 through 20 in it (using the : operator)
first.ten <- c(10:20)
# Create a vector `next.ten` that has the values 21 through 30 in it (using the seq operator)
next.ten <- seq(21, 30)
# Create a vector `all.numbers` by combi... | /exercise-1/exercise.R | permissive | wabuassi/m8-vectors | R | false | false | 1,007 | r | # Exercise 1: Creating and Indexing Vectors
# Create a vector `first.ten` that has the values 10 through 20 in it (using the : operator)
first.ten <- c(10:20)
# Create a vector `next.ten` that has the values 21 through 30 in it (using the seq operator)
next.ten <- seq(21, 30)
# Create a vector `all.numbers` by combi... |
#' Convert a Monolix Project into an executable for the simulator Simulx
#' @param project : the name of a Monolix project
#' @param parameter : string $(NameOfTypeOfParameter), the type of specific parameters to use
#' example: "mode", "mean"...
#' @param group : a list with the number of subjec... | /R/monolix2simulx.R | no_license | Anathawa/mlxR | R | false | false | 11,939 | r | #' Convert a Monolix Project into an executable for the simulator Simulx
#' @param project : the name of a Monolix project
#' @param parameter : string $(NameOfTypeOfParameter), the type of specific parameters to use
#' example: "mode", "mean"...
#' @param group : a list with the number of subjec... |
url<-"https://raw.githubusercontent.com/rafalab/dslabs/master/inst/extdata/murders.csv"
| /download-data.R | no_license | AGGY-LAB/homework_0 | R | false | false | 88 | r | url<-"https://raw.githubusercontent.com/rafalab/dslabs/master/inst/extdata/murders.csv"
|
#read in data file(set up working directory)
setwd("C:/Users/ALIENWARE/Desktop/Ray/Plot")
#read in filename
filename <- "household_power_consumption.txt"
data <- read.table(filename, header=TRUE, sep=";",colClasses=c(“character”,”character”,rep(“numeric”,7)),na=”?”)
#only want data between 1/2/2007 and 2/2/2007
checkD... | /plot3.R | no_license | rayhan1969/ExData_Plotting1 | R | false | false | 1,213 | r | #read in data file(set up working directory)
setwd("C:/Users/ALIENWARE/Desktop/Ray/Plot")
#read in filename
filename <- "household_power_consumption.txt"
data <- read.table(filename, header=TRUE, sep=";",colClasses=c(“character”,”character”,rep(“numeric”,7)),na=”?”)
#only want data between 1/2/2007 and 2/2/2007
checkD... |
## ---- include = F--------------------------------------------------------
library(SamplingStrata)
## ---- eval = T-----------------------------------------------------------
data(nations)
head(nations)
## ---- eval = T-----------------------------------------------------------
set.seed(1234)
nations_sample <- natio... | /3. SamplingStrata Modelling Anticipated Variance/3. SamplingStrata Modelling Anticipated Variance.R | no_license | barcaroli/SamplingStrata-Tutorial | R | false | false | 3,444 | r | ## ---- include = F--------------------------------------------------------
library(SamplingStrata)
## ---- eval = T-----------------------------------------------------------
data(nations)
head(nations)
## ---- eval = T-----------------------------------------------------------
set.seed(1234)
nations_sample <- natio... |
#===============================================================================
# This script will do initial text analysis of grey's anatomy scripts
#
# Tyler Bradley
# 2018-02-02
#===============================================================================
library(tidyverse)
library(tidytext)
episode_scripts <-... | /R/text-analysis.R | no_license | tbradley1013/greys-text | R | false | false | 5,142 | r | #===============================================================================
# This script will do initial text analysis of grey's anatomy scripts
#
# Tyler Bradley
# 2018-02-02
#===============================================================================
library(tidyverse)
library(tidytext)
episode_scripts <-... |
library(geojsonio)
library(raster)
library(tidyverse)
library(viridis)
library(rgeos)
d <- read_delim('data/macav2metdata_urls.txt', delim='\n', col_names = 'url')
destf <- trimws(basename(d$url[1]))
download.file(d$url[1], destfile = destf)
r <- raster(destf)
er <- extent(r)
extent(r) <- c(er@xmin - 360,
... | /create-park-masks.R | permissive | mbjoseph/primers | R | false | false | 1,745 | r | library(geojsonio)
library(raster)
library(tidyverse)
library(viridis)
library(rgeos)
d <- read_delim('data/macav2metdata_urls.txt', delim='\n', col_names = 'url')
destf <- trimws(basename(d$url[1]))
download.file(d$url[1], destfile = destf)
r <- raster(destf)
er <- extent(r)
extent(r) <- c(er@xmin - 360,
... |
# Dataset: Does livestock grazing affect sediment deposition and accretion rates in salt marshes?
#
# Author: Stefanie Nolte <s.nolte@uea.ac.uk>
#
# Any use of this dataset must include a citation. The DOI: 10.25573/serc.11958996
#
# The data release contains wetland soil carbon and dated profiles. The dat... | /scripts/0_data_hooks/Nolte_2020.R | no_license | jfontestad/CCRCN-Data-Library | R | false | false | 5,727 | r | # Dataset: Does livestock grazing affect sediment deposition and accretion rates in salt marshes?
#
# Author: Stefanie Nolte <s.nolte@uea.ac.uk>
#
# Any use of this dataset must include a citation. The DOI: 10.25573/serc.11958996
#
# The data release contains wetland soil carbon and dated profiles. The dat... |
### This is an example on how to obtain the GA design described in Espin-Garcia, Craiu, and Bull (2021) under Poisson regression.
### It can be run by simply sourcing it, i.e. source('example_Poisson.R'), once the following two packages are installed.
# install.packages("../twoPhaseGAS_1.07.tar.gz", type="source", rep... | /example_Poisson.R | no_license | egosv/TwoPhase_postGWAS | R | false | false | 9,655 | r | ### This is an example on how to obtain the GA design described in Espin-Garcia, Craiu, and Bull (2021) under Poisson regression.
### It can be run by simply sourcing it, i.e. source('example_Poisson.R'), once the following two packages are installed.
# install.packages("../twoPhaseGAS_1.07.tar.gz", type="source", rep... |
#' zip_filt()
#'
#' Filter zipcodes to certain state
#' @param state state as two character abb i.e. "CA", "TX", or "NY"
#' @param indata data.frame object to filter
#' @param zipcol column name of zipcode column in indata, default="zipcode"
#' @export
zip_filt <-function(indata,state, zipcol="zipcode"){
if(!require(... | /R/zip_filt.R | no_license | nbarsch/tfwsp | R | false | false | 749 | r | #' zip_filt()
#'
#' Filter zipcodes to certain state
#' @param state state as two character abb i.e. "CA", "TX", or "NY"
#' @param indata data.frame object to filter
#' @param zipcol column name of zipcode column in indata, default="zipcode"
#' @export
zip_filt <-function(indata,state, zipcol="zipcode"){
if(!require(... |
#' @title Remove Missing Values
#'
#' @description Removes all missing values from a time series.
#'
#' @param x Numeric Vector (\code{\link{vector}}) or Time Series (\code{\link{ts}}) object in which missing values shall be replaced
#'
#' @return Vector (\code{\link{vector}}) or Time Series (\code{\link{ts}... | /imputeTS/R/na.remove.R | no_license | ingted/R-Examples | R | false | false | 1,812 | r | #' @title Remove Missing Values
#'
#' @description Removes all missing values from a time series.
#'
#' @param x Numeric Vector (\code{\link{vector}}) or Time Series (\code{\link{ts}}) object in which missing values shall be replaced
#'
#' @return Vector (\code{\link{vector}}) or Time Series (\code{\link{ts}... |
library(data.table)
DT<-fread("./household_power_consumption.txt",na.strings = "?")
DT$Date <- as.Date(DT$Date,"%d/%m/%Y")
DT.filter<-subset(DT, subset=(Date >="2007-02-01" & Date <="2007-02-02"))
rm(DT)
datetime <- paste(as.Date(DT.filter$Date), DT.filter$Time)
DT.filter$Datetime <- as.POSIXct(datetime)
... | /plot2.R | no_license | yeezyee/20200602-Data-Science---Lab-7 | R | false | false | 513 | r | library(data.table)
DT<-fread("./household_power_consumption.txt",na.strings = "?")
DT$Date <- as.Date(DT$Date,"%d/%m/%Y")
DT.filter<-subset(DT, subset=(Date >="2007-02-01" & Date <="2007-02-02"))
rm(DT)
datetime <- paste(as.Date(DT.filter$Date), DT.filter$Time)
DT.filter$Datetime <- as.POSIXct(datetime)
... |
require(ggplot2)
U <- runif(5000, min = 0, max = 1);
X <- 10^U;
d <- data.frame(x = X);
ggplot(d, aes(x = X)) + geom_histogram(aes(y = ..density..), binwidth = 0.5, color = "blue", fill = "white") + geom_density(alpha = .2 , colour = "red",fill = "#FF6666")
| /STAT580/STAT580hw2YifanZhu/Codes/p2.R | no_license | fanne-stat/Homework | R | false | false | 263 | r | require(ggplot2)
U <- runif(5000, min = 0, max = 1);
X <- 10^U;
d <- data.frame(x = X);
ggplot(d, aes(x = X)) + geom_histogram(aes(y = ..density..), binwidth = 0.5, color = "blue", fill = "white") + geom_density(alpha = .2 , colour = "red",fill = "#FF6666")
|
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXE 2.2 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#
#########################################################
##################### conduct MCAR test #################
#########################################################
# you can find the entire function on github:
# https://gi... | /exe/lecture-2/exe2_2.r | no_license | TinaDudenhoeffer/BIS_QRM | R | false | false | 1,223 | r | #$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXE 2.2 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#
#########################################################
##################### conduct MCAR test #################
#########################################################
# you can find the entire function on github:
# https://gi... |
## makeCacheMatrix caches a matrix. cacheSolve returns and caches the
## inverse of that matrix.
## makeCacheMatrix takes a matrix as an argument and caches that matrix.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
... | /cachematrix.R | no_license | JuliannaRP/ProgrammingAssignment2 | R | false | false | 845 | r | ## makeCacheMatrix caches a matrix. cacheSolve returns and caches the
## inverse of that matrix.
## makeCacheMatrix takes a matrix as an argument and caches that matrix.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
... |
#' Graphical comparing of cumulative hazards
#'
#' Comparison of the cumulative hazards functions for a semi-parametric and
#' parametric models.
#'
#' For the moment only a graphical comparison. The arguments \code{sp} and
#' \code{pp} may be swapped.
#'
#' @param sp An object of type "coxreg" or "phreg", typically... | /R/plotHaz.R | no_license | cran/eha | R | false | false | 4,162 | r | #' Graphical comparing of cumulative hazards
#'
#' Comparison of the cumulative hazards functions for a semi-parametric and
#' parametric models.
#'
#' For the moment only a graphical comparison. The arguments \code{sp} and
#' \code{pp} may be swapped.
#'
#' @param sp An object of type "coxreg" or "phreg", typically... |
# Download file and unzip file
project2 <- unzip("exdata-data-NEI_data.zip")
NEI <- readRDS("summarySCC_PM25.rds")
#Have total emissions from PM2.5 decreased in the United States from 1999 to 2008? Using the base plotting system, make a plot showing the total PM2.5 emission from all sources for each of the years 1999... | /Assignment2/plot1.R | no_license | hannyhus/Course-Project-2 | R | false | false | 934 | r | # Download file and unzip file
project2 <- unzip("exdata-data-NEI_data.zip")
NEI <- readRDS("summarySCC_PM25.rds")
#Have total emissions from PM2.5 decreased in the United States from 1999 to 2008? Using the base plotting system, make a plot showing the total PM2.5 emission from all sources for each of the years 1999... |
library(dplyr)
library(getopt)
library(optparse)
option_list = list(
make_option(c("-o", "--output_path"),
type="character",
default="./",
help="output folder path",
metavar="character"),
make_option(c("-c","--cell_type"),
type="character",
... | /findmarkers/tumor_specific_markers/adding_tissue_specificity_annotations.R | no_license | ding-lab/ccRCC_snRNA_analysis | R | false | false | 6,508 | r | library(dplyr)
library(getopt)
library(optparse)
option_list = list(
make_option(c("-o", "--output_path"),
type="character",
default="./",
help="output folder path",
metavar="character"),
make_option(c("-c","--cell_type"),
type="character",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{OPLS_metabom8-class}
\alias{OPLS_metabom8-class}
\title{An S4 class to represent an OPLS model constructed with metabom8}
\description{
An S4 class to represent an OPLS model constructed with metabom8
}
\sec... | /man/OPLS_metabom8-class.Rd | permissive | tkimhofer/metabom8 | R | false | true | 465 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{OPLS_metabom8-class}
\alias{OPLS_metabom8-class}
\title{An S4 class to represent an OPLS model constructed with metabom8}
\description{
An S4 class to represent an OPLS model constructed with metabom8
}
\sec... |
##hp
##05.31.2016
setwd('B:/')
source('fcns/config.r')
source('fcns/my_heat_pwys.r')
setwd('kahn/emrah/emrah_stoolProteomics/host')
source('../../my_barplot.r')
library('plyr')
##Parse data
dat <- read.csv('150427KEASAM00828_MUSTMT10PLX-FTK2_UNiprotMouse_Annotation_128Cnormaliza....csv')
dat <- dat[dat$Protein.FDR.Co... | /R/analyze_emrah_stoolproteomics.r | permissive | jdreyf/antibiotic-stool-proteomics | R | false | false | 6,466 | r | ##hp
##05.31.2016
setwd('B:/')
source('fcns/config.r')
source('fcns/my_heat_pwys.r')
setwd('kahn/emrah/emrah_stoolProteomics/host')
source('../../my_barplot.r')
library('plyr')
##Parse data
dat <- read.csv('150427KEASAM00828_MUSTMT10PLX-FTK2_UNiprotMouse_Annotation_128Cnormaliza....csv')
dat <- dat[dat$Protein.FDR.Co... |
context("chmp_root")
x <- ChmpClient$new()
test_that("chmp_root with vcr", {
skip_on_cran()
skip_on_travis()
vcr::use_cassette("chmp_root", {
aa <- x$root()
expect_is(aa, "list")
expect_is(aa$links, 'data.frame')
expect_equal(aa$account_name, "rOpenSci")
})
})
test_that("chmp_root curl opti... | /tests/testthat/test-root.R | permissive | jdtrat/chimpr | R | false | false | 416 | r | context("chmp_root")
x <- ChmpClient$new()
test_that("chmp_root with vcr", {
skip_on_cran()
skip_on_travis()
vcr::use_cassette("chmp_root", {
aa <- x$root()
expect_is(aa, "list")
expect_is(aa$links, 'data.frame')
expect_equal(aa$account_name, "rOpenSci")
})
})
test_that("chmp_root curl opti... |
## File Name: amh_proposal_refresh.R
## File Version: 0.21
#################################################################
# refreshing the proposal SD
amh_proposal_refresh <- function( acceptance_parameters, proposal_sd,
acceptance_bounds, acceptance_rates_history, proposal_equal )
{
target <- mean(acc... | /R/amh_proposal_refresh.R | no_license | guhjy/LAM | R | false | false | 1,461 | r | ## File Name: amh_proposal_refresh.R
## File Version: 0.21
#################################################################
# refreshing the proposal SD
amh_proposal_refresh <- function( acceptance_parameters, proposal_sd,
acceptance_bounds, acceptance_rates_history, proposal_equal )
{
target <- mean(acc... |
#' AutoRental
#'
#' A car rental business.
#'
#'
#' @param id identifier for the object (URI)
#' @param priceRange (Text type.) The price range of the business, for example ```$$$```.
#' @param paymentAccepted (Text type.) Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
#' @param openingHours ... | /R/AutoRental.R | no_license | cboettig/schemar | R | false | false | 10,950 | r | #' AutoRental
#'
#' A car rental business.
#'
#'
#' @param id identifier for the object (URI)
#' @param priceRange (Text type.) The price range of the business, for example ```$$$```.
#' @param paymentAccepted (Text type.) Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
#' @param openingHours ... |
#Wine Classification
url <- 'https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data'
wine <- read.csv(url)
wine
colnames(wine) <- c('Type','Alcohol', 'Malic', 'Ash', 'Alcalinity', 'Magnesium', 'Phenols', 'Flavanoids','Nonflavanoids', 'Proanthocyanins', 'Color', 'Hue', 'Dilution', 'Proline')
head(wine... | /wine.R | no_license | meenasirisha145/rstatistics | R | false | false | 2,931 | r | #Wine Classification
url <- 'https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data'
wine <- read.csv(url)
wine
colnames(wine) <- c('Type','Alcohol', 'Malic', 'Ash', 'Alcalinity', 'Magnesium', 'Phenols', 'Flavanoids','Nonflavanoids', 'Proanthocyanins', 'Color', 'Hue', 'Dilution', 'Proline')
head(wine... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_dicom_header.R
\name{read_dicom_header}
\alias{read_dicom_header}
\alias{read_single_dicom_header}
\alias{dcmhd}
\title{Read DICOM File}
\usage{
read_dicom_header(file = "*.dcm", replace_names = FALSE,
add_opts = "", recursive = FALSE,... | /man/read_dicom_header.Rd | no_license | neuroconductor/dcmtk | R | false | true | 1,262 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_dicom_header.R
\name{read_dicom_header}
\alias{read_dicom_header}
\alias{read_single_dicom_header}
\alias{dcmhd}
\title{Read DICOM File}
\usage{
read_dicom_header(file = "*.dcm", replace_names = FALSE,
add_opts = "", recursive = FALSE,... |
#' Random traits - randomize traits across tips - shuffles names, but doesn't
#' move position in tree of course
#'
#' This is used in randomizing traits across the tips of a phylogeny so as to
#' randomize any phylogenetic signal.
#'
#' @param w A named vector of traits. Each element in vector must be named.
#'... | /R/randtips.r | no_license | sckott/treeshape | R | false | false | 572 | r | #' Random traits - randomize traits across tips - shuffles names, but doesn't
#' move position in tree of course
#'
#' This is used in randomizing traits across the tips of a phylogeny so as to
#' randomize any phylogenetic signal.
#'
#' @param w A named vector of traits. Each element in vector must be named.
#'... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_dump_numeric_object <- function(x) {
.Call(`_raptr_rcpp_dump_numeric_object`, x)
}
rcpp_dump_integer_object <- function(x) {
.Call(`_raptr_rcpp_dump_integer_object`, x)
}
rcpp_du... | /R/RcppExports.R | no_license | jeffreyhanson/raptr | R | false | false | 2,395 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_dump_numeric_object <- function(x) {
.Call(`_raptr_rcpp_dump_numeric_object`, x)
}
rcpp_dump_integer_object <- function(x) {
.Call(`_raptr_rcpp_dump_integer_object`, x)
}
rcpp_du... |
\alias{gFileAttributeMatcherNew}
\name{gFileAttributeMatcherNew}
\title{gFileAttributeMatcherNew}
\description{Creates a new file attribute matcher, which matches attributes
against a given string. \code{\link{GFileAttributeMatcher}}s are reference
counted structures, and are created with a reference count of 1. If
... | /RGtk2/man/gFileAttributeMatcherNew.Rd | no_license | lawremi/RGtk2 | R | false | false | 1,355 | rd | \alias{gFileAttributeMatcherNew}
\name{gFileAttributeMatcherNew}
\title{gFileAttributeMatcherNew}
\description{Creates a new file attribute matcher, which matches attributes
against a given string. \code{\link{GFileAttributeMatcher}}s are reference
counted structures, and are created with a reference count of 1. If
... |
#' Create a friendly user interface for sending emails
#'
#' @param email the emails of the recipients
#' @param text the link text that will be displayed on the ui
#' @param subject the subject of the email. Defaults to NULL
#' @param cc the emails of the CC (carbon copy) recipients. Defaults to NULL
#' @param... | /R/mailtoR.R | no_license | cran/mailtoR | R | false | false | 2,435 | r |
#' Create a friendly user interface for sending emails
#'
#' @param email the emails of the recipients
#' @param text the link text that will be displayed on the ui
#' @param subject the subject of the email. Defaults to NULL
#' @param cc the emails of the CC (carbon copy) recipients. Defaults to NULL
#' @param... |
library(data.table)
library(lubridate)
### include code for reading the data so that the plot can be fully reproduced
# Download and unzip the file if it doesn't exist
if (!file.exists("household_power_consumption.txt")) {
if (!file.exists("exdata_data_household_power_consumption.zip")) {
download.file("https... | /plot2.R | no_license | toxicafunk/ExData_Plotting1 | R | false | false | 1,632 | r | library(data.table)
library(lubridate)
### include code for reading the data so that the plot can be fully reproduced
# Download and unzip the file if it doesn't exist
if (!file.exists("household_power_consumption.txt")) {
if (!file.exists("exdata_data_household_power_consumption.zip")) {
download.file("https... |
#Resultater til NiPars årsrapport for 2021
#Alle resultater skal baseres på opphold
setwd('../speil/aarsrapp/beredskap')
library(intensiv)
library(intensivberedskap)
library(korona)
datoFra <- '2020-03-01' #Vi har pandemi fra 1.mars 2020
datoTil <- '2021-12-31' #
datoFra1aar <- '2021-01-01'
BeredDataRaa <- NIRbereds... | /doc/AarsrappKjorefilBered2021.R | permissive | Rapporteket/intensivberedskap | R | false | false | 4,002 | r | #Resultater til NiPars årsrapport for 2021
#Alle resultater skal baseres på opphold
setwd('../speil/aarsrapp/beredskap')
library(intensiv)
library(intensivberedskap)
library(korona)
datoFra <- '2020-03-01' #Vi har pandemi fra 1.mars 2020
datoTil <- '2021-12-31' #
datoFra1aar <- '2021-01-01'
BeredDataRaa <- NIRbereds... |
#Function to calculate the power for the ratios of treatment effects
#the R Code is based on the Function presented in:
#Dilba, G., Bretz, F., Hothorn, L.A., Guiard, V.
#Power and sample size computations in simultaneous tests for non-inferiority based on relative margins
#Statistics in Medicine 25: 1131-1147 (2006)... | /R/PowCon.R | no_license | AKitsche/poco | R | false | false | 12,059 | r | #Function to calculate the power for the ratios of treatment effects
#the R Code is based on the Function presented in:
#Dilba, G., Bretz, F., Hothorn, L.A., Guiard, V.
#Power and sample size computations in simultaneous tests for non-inferiority based on relative margins
#Statistics in Medicine 25: 1131-1147 (2006)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.R
\name{theme}
\alias{theme}
\alias{mobile_theme}
\alias{mobile_ggplot_theme}
\title{Theme}
\usage{
mobile_theme(m, colors, ...)
mobile_ggplot_theme(m, n = 3, ...)
}
\arguments{
\item{m}{An object of class \code{mobile} as returned by ... | /man/theme.Rd | permissive | kmaheshkulkarni/mobileCharts | R | false | true | 500 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.R
\name{theme}
\alias{theme}
\alias{mobile_theme}
\alias{mobile_ggplot_theme}
\title{Theme}
\usage{
mobile_theme(m, colors, ...)
mobile_ggplot_theme(m, n = 3, ...)
}
\arguments{
\item{m}{An object of class \code{mobile} as returned by ... |
#Lab1/ZadDom2
library(genalg)
library(ggplot2)
phi1 <- matrix(c(-1,2,4,-2,3,4,1,-3,4,1,-2,-4,2,-4,-4,-1,3,-4,1,2,3), ncol=3)
phi2 <- as.matrix(read.csv("dubois20.cnf.txt", header=FALSE, skip=13, sep="", colClasses=c(NA,NA,NA,"NULL")))
phi3 <- as.matrix(read.csv("aim-50-1_6-yes1-4.cnf.txt", header=FALSE, skip=13, sep="... | /labs/lab1/dom2.R | no_license | kamilpek/ug-ci | R | false | false | 1,172 | r | #Lab1/ZadDom2
library(genalg)
library(ggplot2)
phi1 <- matrix(c(-1,2,4,-2,3,4,1,-3,4,1,-2,-4,2,-4,-4,-1,3,-4,1,2,3), ncol=3)
phi2 <- as.matrix(read.csv("dubois20.cnf.txt", header=FALSE, skip=13, sep="", colClasses=c(NA,NA,NA,"NULL")))
phi3 <- as.matrix(read.csv("aim-50-1_6-yes1-4.cnf.txt", header=FALSE, skip=13, sep="... |
### 1. Merges the training and the test sets to create one data set.
### 2. Extracts only the measurements on the mean and standard deviation for each measurement.
### 3. Uses descriptive activity names to name the activities in the data set
### 4. Appropriately labels the data set with descriptive variable names.
##... | /run_Analysis.R | no_license | fadibartik/TidyHAR | R | false | false | 2,581 | r | ### 1. Merges the training and the test sets to create one data set.
### 2. Extracts only the measurements on the mean and standard deviation for each measurement.
### 3. Uses descriptive activity names to name the activities in the data set
### 4. Appropriately labels the data set with descriptive variable names.
##... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{app}
\alias{app}
\title{the RPackageTestDemo app}
\usage{
app()
}
\value{
shiny application object
}
\description{
the RPackageTestDemo app
}
| /RPackageTestDemo/man/app.Rd | no_license | zhengcao/DockerRPackageTestDemo | R | false | true | 232 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{app}
\alias{app}
\title{the RPackageTestDemo app}
\usage{
app()
}
\value{
shiny application object
}
\description{
the RPackageTestDemo app
}
|
extract_line_graph_bitmaps <- function(pdf,
pages = 1:(pdftools::pdf_info(pdf)[[2]] - 1)) {
extract_page <- function(page) {
bmap <- pdftools::pdf_render_page(pdf, page = page, numeric = TRUE,
antialias = FALSE, dpi = 150)
line_color... | /R/scrape_google_cmr_data.R | no_license | jchanlauimf/tidycovid19 | R | false | false | 10,590 | r | extract_line_graph_bitmaps <- function(pdf,
pages = 1:(pdftools::pdf_info(pdf)[[2]] - 1)) {
extract_page <- function(page) {
bmap <- pdftools::pdf_render_page(pdf, page = page, numeric = TRUE,
antialias = FALSE, dpi = 150)
line_color... |
#######################################################################
################# NAO MONITORADO ######################################
#######################################################################
# Carregando dados
data(USArrests)
#Avaliando dados
names(USArrests)
summary(USArrests)
print(USArres... | /trash/script_pca.R | no_license | leandro-ss/script_rlang | R | false | false | 4,559 | r | #######################################################################
################# NAO MONITORADO ######################################
#######################################################################
# Carregando dados
data(USArrests)
#Avaliando dados
names(USArrests)
summary(USArrests)
print(USArres... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/methods.R
\name{as.data.frame.linreg}
\alias{as.data.frame.linreg}
\title{A function that creates a data frame from an object of class linreg.}
\usage{
\method{as.data.frame}{linreg}(x, ...)
}
\arguments{
\item{x}{linreg object}
\ite... | /linregpackage/man/as.data.frame.linreg.Rd | no_license | camgu844/Lab4 | R | false | false | 491 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/methods.R
\name{as.data.frame.linreg}
\alias{as.data.frame.linreg}
\title{A function that creates a data frame from an object of class linreg.}
\usage{
\method{as.data.frame}{linreg}(x, ...)
}
\arguments{
\item{x}{linreg object}
\ite... |
#' Create a detection function
#'
#' @param FUN a probability density (or mass) function whose first two arguments
#' must be \code{x} and \code{y}.
#' @importFrom methods formalArgs
#' @importFrom stats rbinom
#' @return a \code{function(x, y, ...)} where \code{x} and {y} are positions of
#' population spe... | /R/detectors.R | permissive | bsaul/solidagos | R | false | false | 2,237 | r | #' Create a detection function
#'
#' @param FUN a probability density (or mass) function whose first two arguments
#' must be \code{x} and \code{y}.
#' @importFrom methods formalArgs
#' @importFrom stats rbinom
#' @return a \code{function(x, y, ...)} where \code{x} and {y} are positions of
#' population spe... |
#' @title Adjacency matrix
#'
#' @description Funkce adjacency_matrix převede igraph objekt nebo OTU tabulku do adjacenční matice.
#'
#' @param object igraph object nebo maticový zápis OTU tabulky
#'
#' @export
#' @return maticový zápis adjacenční matice
#'
#'
adjacency_matrix <- function(object){
if... | /R/adjacency_matrix.R | no_license | safma/bipartiteOTU | R | false | false | 793 | r | #' @title Adjacency matrix
#'
#' @description Funkce adjacency_matrix převede igraph objekt nebo OTU tabulku do adjacenční matice.
#'
#' @param object igraph object nebo maticový zápis OTU tabulky
#'
#' @export
#' @return maticový zápis adjacenční matice
#'
#'
adjacency_matrix <- function(object){
if... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/mawasu.R
\name{mawasu}
\alias{mawasu}
\title{<Add Title>}
\usage{
mawasu(x = "これは\\U0001f363です。", width = NULL, height = NULL)
}
\description{
<Add Description>
}
| /man/mawasu.Rd | no_license | yutannihilation/rollingsushi | R | false | false | 262 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/mawasu.R
\name{mawasu}
\alias{mawasu}
\title{<Add Title>}
\usage{
mawasu(x = "これは\\U0001f363です。", width = NULL, height = NULL)
}
\description{
<Add Description>
}
|
\name{axn}
\alias{axn}
\title{
Annuity immediate and due function.
}
\description{
This function calculates actuarial value of annuities, given an actuarial table.
Fractional and deferred annuities can be evaluated. Moreover it can be used to
simulate the stochastic distribution of the annuity value.
}
\usage{
a... | /man/axn.Rd | no_license | jonathanlam/lifecontingencies | R | false | false | 2,079 | rd | \name{axn}
\alias{axn}
\title{
Annuity immediate and due function.
}
\description{
This function calculates actuarial value of annuities, given an actuarial table.
Fractional and deferred annuities can be evaluated. Moreover it can be used to
simulate the stochastic distribution of the annuity value.
}
\usage{
a... |
mydata <- read.csv("data/avgpm25.csv", colClasses = c("numeric", "character", "factor", "numeric", "numeric"))
head(mydata)
summary(mydata$pm25)
boxplot(mydata$pm25, col = "blue")
abline(h = 12)
hist(mydata$pm25, breaks = 100, col = "yellow")
abline(v = 12)
abline(v = median(mydata$pm25), col = "green", lwd = 4)
rug(my... | /exploratory_analysis/week1scatchpad.R | no_license | sdevine188/coursera_code | R | false | false | 4,099 | r | mydata <- read.csv("data/avgpm25.csv", colClasses = c("numeric", "character", "factor", "numeric", "numeric"))
head(mydata)
summary(mydata$pm25)
boxplot(mydata$pm25, col = "blue")
abline(h = 12)
hist(mydata$pm25, breaks = 100, col = "yellow")
abline(v = 12)
abline(v = median(mydata$pm25), col = "green", lwd = 4)
rug(my... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.