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 |
|---|---|---|---|---|---|---|---|---|---|
library(dplyr)
library(data.table)
featnms <- read.table("UCI HAR Datas et/features.txt")
file <- "Coursera_DS3_Final.zip"
if(!file.exists(file)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, file, method = "curl")
}
if(!file.exists... | /run_analysis.R | no_license | sindi50/Rassignment3 | R | false | false | 2,355 | r | library(dplyr)
library(data.table)
featnms <- read.table("UCI HAR Datas et/features.txt")
file <- "Coursera_DS3_Final.zip"
if(!file.exists(file)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, file, method = "curl")
}
if(!file.exists... |
########################
# Dates and Times
# "POSIXt", which just functions as a common language between POSIXct and POSIXlt.
Sys.Date()
# 將現在的時間換算成天數(以1970-01-01為基準),
unclass(Sys.Date())
# 取得1970-01-01之前的時間
d2 <- as.Date("1969-01-01")
# 轉化成天數
unclass(d2)
# 未unclass前會得到 年-月-日 時間 地區
t1 <- Sys.time()
# 取得當前時間 類別為"... | /someTips/HowToOperateDateAndTime.R | no_license | BingHongLi/HowToUseR | R | false | false | 1,066 | r | ########################
# Dates and Times
# "POSIXt", which just functions as a common language between POSIXct and POSIXlt.
Sys.Date()
# 將現在的時間換算成天數(以1970-01-01為基準),
unclass(Sys.Date())
# 取得1970-01-01之前的時間
d2 <- as.Date("1969-01-01")
# 轉化成天數
unclass(d2)
# 未unclass前會得到 年-月-日 時間 地區
t1 <- Sys.time()
# 取得當前時間 類別為"... |
################################
##This script converts hg18 to hg19 build formats##
################################
#if you want see commands in output file
#options(echo=TRUE)
#args <- commandArgs(trailingOnly = TRUE)
#print(args)
#setwd(args)
################################
file <- c()
setwd("~/Desktop/GSE11960") ... | /Prisni/buildConversion.r | permissive | ainijulia/progenetixR | R | false | false | 3,691 | r | ################################
##This script converts hg18 to hg19 build formats##
################################
#if you want see commands in output file
#options(echo=TRUE)
#args <- commandArgs(trailingOnly = TRUE)
#print(args)
#setwd(args)
################################
file <- c()
setwd("~/Desktop/GSE11960") ... |
# emp_data
library(readr)
ed <- read_csv("C:/Users/Agnelo Christy/Desktop/Data Science!/Assignment 4 - Simple Linear Regression/emp_data.csv")
View(ed)
attach(ed)
# Assigning two vairables into x and y
x <- ed$Salary_hike
x
y <- ed$Churn_out_rate
y
# Finding N.A or missing values
is.na(x)
is.n... | /New_emp_data.R | no_license | sandeepnjois/ds | R | false | false | 2,025 | r | # emp_data
library(readr)
ed <- read_csv("C:/Users/Agnelo Christy/Desktop/Data Science!/Assignment 4 - Simple Linear Regression/emp_data.csv")
View(ed)
attach(ed)
# Assigning two vairables into x and y
x <- ed$Salary_hike
x
y <- ed$Churn_out_rate
y
# Finding N.A or missing values
is.na(x)
is.n... |
library(tuneR)
setWavPlayer('/usr/bin/afplay')
## Global variables can go here
freqFromNote <- function(n) {
2^((n-49)/12) * 440
}
noteFromFreq <- function(f) {
round(12 * log2(f/440) + 49)
}
freqFromLength <- function(fr, l) {
fr/l
}
lengthFromFreq <- function(f, fr) {
fr/f
}
x <- seq(0, 2*pi, len... | /02.R | no_license | richardsc/glissandoApp | R | false | false | 997 | r | library(tuneR)
setWavPlayer('/usr/bin/afplay')
## Global variables can go here
freqFromNote <- function(n) {
2^((n-49)/12) * 440
}
noteFromFreq <- function(f) {
round(12 * log2(f/440) + 49)
}
freqFromLength <- function(fr, l) {
fr/l
}
lengthFromFreq <- function(f, fr) {
fr/f
}
x <- seq(0, 2*pi, len... |
#------------------------------------#
# Mixed effects modeling of accuracy #
# Kevin Potter #
# Updated 06/01/2017 #
#------------------------------------#
# Clear workspace
rm(list = ls())
# Save current directory
orig_dir = getwd()
# Indicate whether to create figures
plotYes... | /2017/FYP_JD/F2_Accuracy.R | no_license | rettopnivek/Analyses | R | false | false | 10,333 | r | #------------------------------------#
# Mixed effects modeling of accuracy #
# Kevin Potter #
# Updated 06/01/2017 #
#------------------------------------#
# Clear workspace
rm(list = ls())
# Save current directory
orig_dir = getwd()
# Indicate whether to create figures
plotYes... |
print.Smean <-
function(x,...) {
cat("\nSmean object: Sample mean estimate\n", sep="")
if(x$call$N == Inf) cat("Without ")
else cat("With ")
cat("finite population correction: N=",x$call$N,"\n", sep="")
cat("\nMean estimate: ", round(x$mean,4), "\n", sep="")
cat("Standard error: ", round(x$se,4), "\n"... | /R/print.Smean.R | no_license | davan690/samplingbook | R | false | false | 458 | r | print.Smean <-
function(x,...) {
cat("\nSmean object: Sample mean estimate\n", sep="")
if(x$call$N == Inf) cat("Without ")
else cat("With ")
cat("finite population correction: N=",x$call$N,"\n", sep="")
cat("\nMean estimate: ", round(x$mean,4), "\n", sep="")
cat("Standard error: ", round(x$se,4), "\n"... |
# Code reference: https://rhandbook.wordpress.com/tag/sentiment-analysis-using-r/
# This code requires Rstem and sentiment.
# RStem: http://cran.cnr.berkeley.edu/src/contrib/Archive/Rstem/
# sentiment: https://cran.r-project.org/src/contrib/Archive/sentiment/
list.of.packages <- c("RMySQL", "ggplot2")
new.packages <-... | /r/classify_emotion.r | no_license | mina-gaid/twitter-sentiment-analysis | R | false | false | 1,682 | r | # Code reference: https://rhandbook.wordpress.com/tag/sentiment-analysis-using-r/
# This code requires Rstem and sentiment.
# RStem: http://cran.cnr.berkeley.edu/src/contrib/Archive/Rstem/
# sentiment: https://cran.r-project.org/src/contrib/Archive/sentiment/
list.of.packages <- c("RMySQL", "ggplot2")
new.packages <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{phenotypical}
\alias{phenotypical}
\title{phenotypical}
\format{
An object of type \code{data.frame}
}
\usage{
phenotypical
}
\description{
phenotypical detailed description2
}
\keyword{datasets}
| /man/phenotypical.Rd | no_license | gardiner/daphneg2 | R | false | true | 302 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{phenotypical}
\alias{phenotypical}
\title{phenotypical}
\format{
An object of type \code{data.frame}
}
\usage{
phenotypical
}
\description{
phenotypical detailed description2
}
\keyword{datasets}
|
###################################################################################
# #
# Filename : Fig12.R # ... | /Fig12.R | no_license | PinLi1018/Utility-ITR | R | false | false | 5,263 | r | ###################################################################################
# #
# Filename : Fig12.R # ... |
library("ape")
# disable scientific notation
options(scipen=999)
# set working directory
setwd("~/Dropbox/Metazoan_Partitions/Metazoan_Project/RAxML_single_genes/")
# creates a list of all tree files in the working directory
infiles <- dir(pattern='*bipartitions.OG*')
extract.lengths <- function(file){
tr <- read... | /long_branches.R | no_license | alerougon/metazoan_phylogenomics | R | false | false | 1,684 | r | library("ape")
# disable scientific notation
options(scipen=999)
# set working directory
setwd("~/Dropbox/Metazoan_Partitions/Metazoan_Project/RAxML_single_genes/")
# creates a list of all tree files in the working directory
infiles <- dir(pattern='*bipartitions.OG*')
extract.lengths <- function(file){
tr <- read... |
# addLatent.R
# copyright 2015-2022, openreliability.org
#
# 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.
#... | /R/addLatent.R | no_license | jto888/FaultTree | R | false | false | 2,760 | r | # addLatent.R
# copyright 2015-2022, openreliability.org
#
# 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.
#... |
#' LU
#'
#' Computes the LU factorization of a matrix or batches of matrices A. Returns a
#' tuple containing the LU factorization and pivots of A. Pivoting is done if pivot
#' is set to True.
#'
#' @param A (Tensor) the tensor to factor of size (*, m, n)(*,m,n)
#' @param pivot (bool, optional) – controls whether p... | /R/wrapers.R | permissive | snapbuy/torch | R | false | false | 18,612 | r | #' LU
#'
#' Computes the LU factorization of a matrix or batches of matrices A. Returns a
#' tuple containing the LU factorization and pivots of A. Pivoting is done if pivot
#' is set to True.
#'
#' @param A (Tensor) the tensor to factor of size (*, m, n)(*,m,n)
#' @param pivot (bool, optional) – controls whether p... |
library(TeachingSampling)
### Name: HT
### Title: The Horvitz-Thompson Estimator
### Aliases: HT
### Keywords: survey
### ** Examples
############
## Example 1
############
# Uses the Lucy data to draw a simple random sample without replacement
data(Lucy)
attach(Lucy)
N <- dim(Lucy)[1]
n <- 400
sam <- sample(N,n)
... | /data/genthat_extracted_code/TeachingSampling/examples/HT.rd.R | no_license | surayaaramli/typeRrh | R | false | false | 9,700 | r | library(TeachingSampling)
### Name: HT
### Title: The Horvitz-Thompson Estimator
### Aliases: HT
### Keywords: survey
### ** Examples
############
## Example 1
############
# Uses the Lucy data to draw a simple random sample without replacement
data(Lucy)
attach(Lucy)
N <- dim(Lucy)[1]
n <- 400
sam <- sample(N,n)
... |
### Author : Markos Viggiato
### Date : August 24th, 2018
### Code developed using resources from 'http://www.rdatamining.com/docs/twitter-analysis-with-r', by Yanchang Zhao
### This code makes of of the 'tm' package to analyze the frequent terms from tweets
#################
# import of useful packages
library(twitt... | /topic_analysis/frequentTopics.R | no_license | markosviggiato/realTimeInfo | R | false | false | 3,156 | r | ### Author : Markos Viggiato
### Date : August 24th, 2018
### Code developed using resources from 'http://www.rdatamining.com/docs/twitter-analysis-with-r', by Yanchang Zhao
### This code makes of of the 'tm' package to analyze the frequent terms from tweets
#################
# import of useful packages
library(twitt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mediation1.R
\name{mediation1}
\alias{mediation1}
\title{Simple Mediation}
\usage{
mediation1(
y,
x,
m,
cvs = NULL,
df,
with_out = T,
nboot = 1000,
conf_level = 0.95
)
}
\arguments{
\item{y}{The dependent variable column name ... | /man/mediation1.Rd | permissive | doomlab/MeMoBootR | R | false | true | 1,877 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mediation1.R
\name{mediation1}
\alias{mediation1}
\title{Simple Mediation}
\usage{
mediation1(
y,
x,
m,
cvs = NULL,
df,
with_out = T,
nboot = 1000,
conf_level = 0.95
)
}
\arguments{
\item{y}{The dependent variable column name ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TapeR_FIT_LME.f.R
\name{TapeR_FIT_LME.f}
\alias{TapeR_FIT_LME.f}
\title{Fits a taper curve model to the specified diameter-height data}
\usage{
TapeR_FIT_LME.f(Id, x, y, knt_x, ord_x, knt_z, ord_z, IdKOVb = "pdSymm", ...)
}
\arguments{
\item{... | /man/TapeR_FIT_LME.f.Rd | no_license | jonibio/TapeR | R | false | true | 4,267 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TapeR_FIT_LME.f.R
\name{TapeR_FIT_LME.f}
\alias{TapeR_FIT_LME.f}
\title{Fits a taper curve model to the specified diameter-height data}
\usage{
TapeR_FIT_LME.f(Id, x, y, knt_x, ord_x, knt_z, ord_z, IdKOVb = "pdSymm", ...)
}
\arguments{
\item{... |
`print.model.selection` <-
function(x, abbrev.names = TRUE, warnings = getOption("warn") != -1L, ...) {
origx <- x
class(x) <- "data.frame"
xterms <- attr(origx, "terms") # TERMS
if(is.null(xterms) || !all(xterms %in% colnames(x)[seq_along(xterms)])) {
print.data.frame(x, ...)
} else {
if(abbrev.nam... | /R/print.model.selection.R | no_license | cran/MuMIn | R | false | false | 3,626 | r | `print.model.selection` <-
function(x, abbrev.names = TRUE, warnings = getOption("warn") != -1L, ...) {
origx <- x
class(x) <- "data.frame"
xterms <- attr(origx, "terms") # TERMS
if(is.null(xterms) || !all(xterms %in% colnames(x)[seq_along(xterms)])) {
print.data.frame(x, ...)
} else {
if(abbrev.nam... |
# Divide adjacency matrix into chunks, scatter to cluster, gather results, and return mean of mutual links
# From R pgmming, ch 16, loc 9829
source("mutual_outlink.R")
mutlinks <- function(cluster, adjacency_matrix)
{
n <- nrow(adjacency_matrix) - 1
nc <- length(cluster)
options(warn=-1) # don't bother us if s... | /parallel_mutual_outlink.R | no_license | sjdayday/net | R | false | false | 839 | r | # Divide adjacency matrix into chunks, scatter to cluster, gather results, and return mean of mutual links
# From R pgmming, ch 16, loc 9829
source("mutual_outlink.R")
mutlinks <- function(cluster, adjacency_matrix)
{
n <- nrow(adjacency_matrix) - 1
nc <- length(cluster)
options(warn=-1) # don't bother us if s... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny);
library(ggplot2);
library(dplyr);
library(tidyr);
library(tidytext);
library(magick);
library(rdro... | /app.R | no_license | vm-natarajan/r-headlines | R | false | false | 4,033 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny);
library(ggplot2);
library(dplyr);
library(tidyr);
library(tidytext);
library(magick);
library(rdro... |
######## R code to import parsed, tidy csv rates after Python parser#########
# load required packages
## build FXRates table from Python parser output
FXRates_ALL <- read.csv('FXRATES_clean.csv',
header=F,
sep=",",
strip.white=T,
... | /3.Quandl_FXRate_Load_into_Dataframe.R | no_license | rjshanahan/Quandl_FXRates_Parser | R | false | false | 1,525 | r | ######## R code to import parsed, tidy csv rates after Python parser#########
# load required packages
## build FXRates table from Python parser output
FXRates_ALL <- read.csv('FXRATES_clean.csv',
header=F,
sep=",",
strip.white=T,
... |
## Alex Shchepetkin
## Calculates and caches the inverse of the matrix
##
## Caches and retrieves the inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<-y
m <<- NULL
}
get <- function(){
x
}
setinverse <- function(inverse){
inv <<- inve... | /cachematrix.R | no_license | alexshchep/ProgrammingAssignment2 | R | false | false | 702 | r | ## Alex Shchepetkin
## Calculates and caches the inverse of the matrix
##
## Caches and retrieves the inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<-y
m <<- NULL
}
get <- function(){
x
}
setinverse <- function(inverse){
inv <<- inve... |
library(mlr)
library(dplyr)
set.seed(1792)
mieszkania <- na.omit(read.csv(file = "./data/mieszkania_dane.csv", encoding = "UTF-8"))
# zadania - kazde zadanie to inny zbior danych
predict_price <- makeRegrTask(id = "cenaMieszkan", data = mieszkania, target = "cena_m2")
predict_price2 <- makeRegrTask(id = "cenaMieszk... | /analysis.R | no_license | JarekMendyk/MLR-and-STWOR | R | false | false | 1,543 | r | library(mlr)
library(dplyr)
set.seed(1792)
mieszkania <- na.omit(read.csv(file = "./data/mieszkania_dane.csv", encoding = "UTF-8"))
# zadania - kazde zadanie to inny zbior danych
predict_price <- makeRegrTask(id = "cenaMieszkan", data = mieszkania, target = "cena_m2")
predict_price2 <- makeRegrTask(id = "cenaMieszk... |
library(beeswarm)
library(data.table)
library(ggplot2)
gordeninEnrichment <- read.csv("/Users/mar/BIO/PROJECTS/APOBEC/Project1_TranscriptionLevel/Results/sample_enrichment.txt", sep = '\t')
gordeninEnrichment <- data.table(gordeninEnrichment)
gordeninEnrichment[, color := ifelse(APOBEC_ENRICHMENT>=2,
... | /R/plot_bee_enrichment.R | no_license | mkazanov/molcompbio | R | false | false | 1,332 | r | library(beeswarm)
library(data.table)
library(ggplot2)
gordeninEnrichment <- read.csv("/Users/mar/BIO/PROJECTS/APOBEC/Project1_TranscriptionLevel/Results/sample_enrichment.txt", sep = '\t')
gordeninEnrichment <- data.table(gordeninEnrichment)
gordeninEnrichment[, color := ifelse(APOBEC_ENRICHMENT>=2,
... |
baixa_dados <- function(directory = "data", estados, update=F){
require(dplyr)
if(file.exists("data/dados.gz")==F | update==T){
download.file("https://data.brasil.io/dataset/covid19/caso_full.csv.gz",
destfile = "data/dados.gz")
}
#extraindo dados
fn <- gzfile("data/dados.gz",open ... | /901_auxiliar_functions.R | no_license | rodolfo-oliveira/covid-boletim | R | false | false | 2,599 | r |
baixa_dados <- function(directory = "data", estados, update=F){
require(dplyr)
if(file.exists("data/dados.gz")==F | update==T){
download.file("https://data.brasil.io/dataset/covid19/caso_full.csv.gz",
destfile = "data/dados.gz")
}
#extraindo dados
fn <- gzfile("data/dados.gz",open ... |
# File: 03_trimmomatic_array_job.R
# Auth: umar.niazi@kcl.as.uk
# DESC: create a parameter file and shell script to run array job on hpc
# Date: 15/08/2017
## set variables and source libraries
source('header.R')
## connect to mysql database to get sample information
library('RMySQL')
##### connect to mysql databas... | /S107/03_trimmomatic_array_job.R | permissive | uhkniazi/BRC_NeuralTube_Miho | R | false | false | 4,065 | r | # File: 03_trimmomatic_array_job.R
# Auth: umar.niazi@kcl.as.uk
# DESC: create a parameter file and shell script to run array job on hpc
# Date: 15/08/2017
## set variables and source libraries
source('header.R')
## connect to mysql database to get sample information
library('RMySQL')
##### connect to mysql databas... |
# [1] load data
com3<- odbcConnectExcel2007("./dat/triplicate.xlsx")
dat<- sqlFetch(com3, "data")
fishdat<- sqlFetch(com3, "fishdata")
ns_counts<- sqlFetch(com, "Fish data: parasite counts")
odbcClose(com3)
load("./output/ms_mcmc.Rdata")
| /analysis/src/3_load.R | no_license | mcolvin/ms_occ_model | R | false | false | 261 | r |
# [1] load data
com3<- odbcConnectExcel2007("./dat/triplicate.xlsx")
dat<- sqlFetch(com3, "data")
fishdat<- sqlFetch(com3, "fishdata")
ns_counts<- sqlFetch(com, "Fish data: parasite counts")
odbcClose(com3)
load("./output/ms_mcmc.Rdata")
|
\name{ecospat.ESM.Projection}
\alias{ecospat.ESM.Projection}
\title{
Ensamble of Small Models: Projects Simple Bivariate Models Into New Space Or Time
}
\description{
This function projects simple bivariate models on new.env
}
\usage{
ecospat.ESM.Projection(ESM.modeling.output,
... | /man/ecospat.ESM.Projection.Rd | no_license | dondealban/ecospat | R | false | false | 5,400 | rd | \name{ecospat.ESM.Projection}
\alias{ecospat.ESM.Projection}
\title{
Ensamble of Small Models: Projects Simple Bivariate Models Into New Space Or Time
}
\description{
This function projects simple bivariate models on new.env
}
\usage{
ecospat.ESM.Projection(ESM.modeling.output,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric.R
\name{PearsonCorrCoef}
\alias{PearsonCorrCoef}
\title{PearsonCorrCoef}
\usage{
PearsonCorrCoef(
dim_argmax = NULL,
activation = "no",
thresh = NULL,
to_np = FALSE,
invert_arg = FALSE,
flatten = TRUE
)
}
\arguments{
\item{... | /man/PearsonCorrCoef.Rd | permissive | Cdk29/fastai | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metric.R
\name{PearsonCorrCoef}
\alias{PearsonCorrCoef}
\title{PearsonCorrCoef}
\usage{
PearsonCorrCoef(
dim_argmax = NULL,
activation = "no",
thresh = NULL,
to_np = FALSE,
invert_arg = FALSE,
flatten = TRUE
)
}
\arguments{
\item{... |
#' Read File from System Environment Variable
#'
#' To create an encoded file use: \code{gsub("\\n", "", jsonlite::base64_enc(serialize(readLines("tests/testthat/cloudml.yml"), NULL)))}
#'
sysenv_file <- function(name, destination) {
if (file.exists(destination))
return()
value_base64 <- Sys.getenv(name)
i... | /tests/testthat/helper-initialize.R | no_license | anishsingh20/cloudml | R | false | false | 1,742 | r |
#' Read File from System Environment Variable
#'
#' To create an encoded file use: \code{gsub("\\n", "", jsonlite::base64_enc(serialize(readLines("tests/testthat/cloudml.yml"), NULL)))}
#'
sysenv_file <- function(name, destination) {
if (file.exists(destination))
return()
value_base64 <- Sys.getenv(name)
i... |
df <- Default
set.seed(42)
train_index <- createDataPartition(df$default,
p = .8,
list = F,
times = 1)
train <- df[train_index,]
test <- df[-train_index,]
train$student <- as.numeric(train$studen... | /R/Classification/KNN.R | no_license | sametsoekel/ml-cheatsheet | R | false | false | 1,659 | r | df <- Default
set.seed(42)
train_index <- createDataPartition(df$default,
p = .8,
list = F,
times = 1)
train <- df[train_index,]
test <- df[-train_index,]
train$student <- as.numeric(train$studen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inspector_operations.R
\name{inspector_list_tags_for_resource}
\alias{inspector_list_tags_for_resource}
\title{Lists all tags associated with an assessment template}
\usage{
inspector_list_tags_for_resource(resourceArn)
}
\arguments{
\item{re... | /cran/paws.security.identity/man/inspector_list_tags_for_resource.Rd | permissive | ryanb8/paws | R | false | true | 820 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inspector_operations.R
\name{inspector_list_tags_for_resource}
\alias{inspector_list_tags_for_resource}
\title{Lists all tags associated with an assessment template}
\usage{
inspector_list_tags_for_resource(resourceArn)
}
\arguments{
\item{re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_accept_administrator_invitation}
\alias{guardduty_accept_administrator_invitation}
\title{Accepts the invitation to be a member account and get monitored by a
GuardDuty administrator account that sent th... | /cran/paws.security.identity/man/guardduty_accept_administrator_invitation.Rd | permissive | paws-r/paws | R | false | true | 1,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guardduty_operations.R
\name{guardduty_accept_administrator_invitation}
\alias{guardduty_accept_administrator_invitation}
\title{Accepts the invitation to be a member account and get monitored by a
GuardDuty administrator account that sent th... |
#assummes that the file "household_power_consumption.txt" was in
#"workingdirectory/data" directory;
data <- read.table("./data/household_power_consumption.txt",header=TRUE,
sep=";",stringsAsFactors=FALSE,na.strings = "?")
#subseting data from the dates 2007-02-01 and 2007-02-02
data<-data[(data$Da... | /plot2.R | no_license | liuyuankai/ExData_Plotting1 | R | false | false | 802 | r | #assummes that the file "household_power_consumption.txt" was in
#"workingdirectory/data" directory;
data <- read.table("./data/household_power_consumption.txt",header=TRUE,
sep=";",stringsAsFactors=FALSE,na.strings = "?")
#subseting data from the dates 2007-02-01 and 2007-02-02
data<-data[(data$Da... |
df1 <- read.table("merged_region_methylation_GH.txt", sep="\t", header=T)
sampleA = data.frame(df1$chr, df1$start, df1$end, df1$G.bam.counts)
sampleB = data.frame(df1$chr, df1$start, df1$end, df1$H.bam.counts)
mr.edgeR.s.gainA = sampleA[which(sampleA[, grep("G.bam.counts", colnames(sampleA))] > 10), ]
mr.edgeR.s.gainB ... | /scipts/medips_wholemethylome.R | no_license | tomarashish/Medip-seq | R | false | false | 904 | r | df1 <- read.table("merged_region_methylation_GH.txt", sep="\t", header=T)
sampleA = data.frame(df1$chr, df1$start, df1$end, df1$G.bam.counts)
sampleB = data.frame(df1$chr, df1$start, df1$end, df1$H.bam.counts)
mr.edgeR.s.gainA = sampleA[which(sampleA[, grep("G.bam.counts", colnames(sampleA))] > 10), ]
mr.edgeR.s.gainB ... |
library(ggplot2)
setwd("D:\\Dropbox\\My Projects\\Courses\\QT_Analysis\\meetings\\m01-intro\\pres\\viz")
mdata<-read.csv("Education_Employment.csv")
library(extrafont)
theme_mplot <- theme(
axis.text.y = element_text(colour="black", size = 12, family = "BPG Arial 2010"),
axis.text.x = element_text(colour="black", ... | /meetings/m1/pres/viz/viz.R | no_license | davidsichinava/dar | R | false | false | 1,202 | r | library(ggplot2)
setwd("D:\\Dropbox\\My Projects\\Courses\\QT_Analysis\\meetings\\m01-intro\\pres\\viz")
mdata<-read.csv("Education_Employment.csv")
library(extrafont)
theme_mplot <- theme(
axis.text.y = element_text(colour="black", size = 12, family = "BPG Arial 2010"),
axis.text.x = element_text(colour="black", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/def.loads.R
\docType{data}
\name{def.loads}
\alias{def.loads}
\title{Default loadings for medals}
\format{An object of class \code{matrix} with 432 rows and 432 columns.}
\usage{
def.loads
}
\description{
Default loadings matrix from training... | /man/def.loads.Rd | no_license | JMMaronge/medals | R | false | true | 484 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/def.loads.R
\docType{data}
\name{def.loads}
\alias{def.loads}
\title{Default loadings for medals}
\format{An object of class \code{matrix} with 432 rows and 432 columns.}
\usage{
def.loads
}
\description{
Default loadings matrix from training... |
\name{unroll}
\alias{unroll}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Unroll Genetic Horizons}
\description{
Generate a descretized vector of genetic horizons along a user-defined pattern.
}
\usage{unroll(top, bottom, prop, max_depth, bottom_padding_value = NA, strict=FALSE)}
\arguments{
... | /man/unroll.Rd | no_license | rsbivand/aqp | R | false | false | 1,738 | rd | \name{unroll}
\alias{unroll}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Unroll Genetic Horizons}
\description{
Generate a descretized vector of genetic horizons along a user-defined pattern.
}
\usage{unroll(top, bottom, prop, max_depth, bottom_padding_value = NA, strict=FALSE)}
\arguments{
... |
#Script to create quilt plot for non-focal sites
# clear environment ####
rm(list = ls())
#tightly condensed plot by latitude.
#Two panels, rp/dp
set.seed(42)
# load libraries ####
library(bootRes)
library(dplR) # for read.rwl
library(climwin)
library(tidyverse)
library(lubridate)
library(readxl)
source("Rscripts/0-M... | /RScripts/Other_quiltplot.R | permissive | EcoClimLab/growth_phenology | R | false | false | 13,729 | r | #Script to create quilt plot for non-focal sites
# clear environment ####
rm(list = ls())
#tightly condensed plot by latitude.
#Two panels, rp/dp
set.seed(42)
# load libraries ####
library(bootRes)
library(dplR) # for read.rwl
library(climwin)
library(tidyverse)
library(lubridate)
library(readxl)
source("Rscripts/0-M... |
\name{printProfileCallGraph}
\alias{printProfileCallGraph}
\title{ Print Call Graph for Rprof Profile Data }
\description{
Prints a representation of the call graph for profile data produced
by \code{Rprof}. Output can be directed to a connection or a file.
}
\usage{
printProfileCallGraph(pd, file = stdout(), perc... | /man/printProfileCallGraph.Rd | no_license | ltierney/Rpkg-proftools | R | false | false | 2,665 | rd | \name{printProfileCallGraph}
\alias{printProfileCallGraph}
\title{ Print Call Graph for Rprof Profile Data }
\description{
Prints a representation of the call graph for profile data produced
by \code{Rprof}. Output can be directed to a connection or a file.
}
\usage{
printProfileCallGraph(pd, file = stdout(), perc... |
\name{selectArea_shiny_demo}
\alias{selectArea_shiny_demo}
\title{
A demo of using selectArea() as a shiny app
}
\description{
A demo of using selectArea() as a shiny app
}
\usage{
selectArea_shiny_demo(ht_list)
}
\arguments{
\item{ht_list}{A \code{\link{Heatmap-class}} or a \code{\link{HeatmapList-class}} object.}
... | /man/selectArea_shiny_demo.Rd | permissive | wangdi2014/ComplexHeatmap | R | false | false | 750 | rd | \name{selectArea_shiny_demo}
\alias{selectArea_shiny_demo}
\title{
A demo of using selectArea() as a shiny app
}
\description{
A demo of using selectArea() as a shiny app
}
\usage{
selectArea_shiny_demo(ht_list)
}
\arguments{
\item{ht_list}{A \code{\link{Heatmap-class}} or a \code{\link{HeatmapList-class}} object.}
... |
rdata_file <- '../train_agg3_10pct.RData'
solver_script <- '../dave/gbm_cv.R'
create_submission <- FALSE
cv_frac_trn <- 0.7
tcheck.print <- TRUE
set_rain_thresh <- 69
set_rm_refna <- TRUE
set_nrounds <- 1955
set_maxdepth <- 3
mae_res <- data.frame()
run_time <- numeric()
set_cs <- c("rd"
, "Ref", "Ref_5x5_... | /dave/run_xgbm_cv.R | no_license | dsdaveh/weddingcap_rain | R | false | false | 1,882 | r | rdata_file <- '../train_agg3_10pct.RData'
solver_script <- '../dave/gbm_cv.R'
create_submission <- FALSE
cv_frac_trn <- 0.7
tcheck.print <- TRUE
set_rain_thresh <- 69
set_rm_refna <- TRUE
set_nrounds <- 1955
set_maxdepth <- 3
mae_res <- data.frame()
run_time <- numeric()
set_cs <- c("rd"
, "Ref", "Ref_5x5_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text-annotate.R
\name{meme_text_distbf}
\alias{meme_text_distbf}
\alias{meme_text_rock}
\alias{meme_text_batman}
\alias{meme_text_trump}
\alias{meme_text_pigeon}
\alias{meme_text_chopper}
\alias{meme_text_brain}
\alias{meme_text_kermit}
\alia... | /man/meme_text_distbf.Rd | no_license | wyywyy23/memer | R | false | true | 9,424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text-annotate.R
\name{meme_text_distbf}
\alias{meme_text_distbf}
\alias{meme_text_rock}
\alias{meme_text_batman}
\alias{meme_text_trump}
\alias{meme_text_pigeon}
\alias{meme_text_chopper}
\alias{meme_text_brain}
\alias{meme_text_kermit}
\alia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{color_hex_palettes}
\alias{color_hex_palettes}
\title{Palettes from https://www.color-hex.com}
\format{
A named list of color palettes.
}
\usage{
color_hex_palettes
}
\description{
Palettes from https://www.color-h... | /man/color_hex_palettes.Rd | permissive | EmilHvitfeldt/palette2vec | R | false | true | 348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{color_hex_palettes}
\alias{color_hex_palettes}
\title{Palettes from https://www.color-hex.com}
\format{
A named list of color palettes.
}
\usage{
color_hex_palettes
}
\description{
Palettes from https://www.color-h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gam_loglikelihood.R
\name{gam_loglikelihood}
\alias{gam_loglikelihood}
\title{Compute negative log-likelihood of gamma HMM parameters}
\usage{
gam_loglikelihood(
working_params,
x,
design,
num_states,
num_variables,
num_subjects,
... | /man/gam_loglikelihood.Rd | permissive | simonecollier/lizardHMM | R | false | true | 1,521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gam_loglikelihood.R
\name{gam_loglikelihood}
\alias{gam_loglikelihood}
\title{Compute negative log-likelihood of gamma HMM parameters}
\usage{
gam_loglikelihood(
working_params,
x,
design,
num_states,
num_variables,
num_subjects,
... |
#source('http://bioconductor.org/biocLite.R');
#biocLite('Biostrings');
#biocLite('hgu95av2.db');
#biocLite('annotate');
#library('Biostrings');
#library('hgu95av2.db');
#library('annotate');
#hgu95av2ACCNUM
plik=read.table('affy.txt');
tab=hgu95av2ACCNUM;
mapped_probes=mappedkeys(tab);
tab_lista=as.list(tab[mapped_pr... | /more basic stuff/lab2.R | no_license | wopoczynski/R | R | false | false | 716 | r | #source('http://bioconductor.org/biocLite.R');
#biocLite('Biostrings');
#biocLite('hgu95av2.db');
#biocLite('annotate');
#library('Biostrings');
#library('hgu95av2.db');
#library('annotate');
#hgu95av2ACCNUM
plik=read.table('affy.txt');
tab=hgu95av2ACCNUM;
mapped_probes=mappedkeys(tab);
tab_lista=as.list(tab[mapped_pr... |
setwd("C:/Users/marin/Desktop/Data Angels")
library(RCurl)
library(dplyr)
library(ggplot2)
library(RColorBrewer)
library(pals)
library(colorRamps)
library(gridExtra)
library(scales)
url <- "https://raw.githubusercontent.com/CityOfLosAngeles/Data-Angels/master/Fall%202018%20Projects/LA_Outmigration/Data/ipu... | /Fall 2018 Projects/LA_Outmigration/Visuals/ipums_demographic.R | no_license | CityOfLosAngeles/Data-Angels | R | false | false | 10,636 | r | setwd("C:/Users/marin/Desktop/Data Angels")
library(RCurl)
library(dplyr)
library(ggplot2)
library(RColorBrewer)
library(pals)
library(colorRamps)
library(gridExtra)
library(scales)
url <- "https://raw.githubusercontent.com/CityOfLosAngeles/Data-Angels/master/Fall%202018%20Projects/LA_Outmigration/Data/ipu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_tar.R
\name{URLs_DOGS}
\alias{URLs_DOGS}
\title{DOGS dataset}
\usage{
URLs_DOGS(filename = "DOGS", untar = TRUE)
}
\arguments{
\item{filename}{the name of the file}
\item{untar}{logical, whether to untar the '.tgz' file}
}
\descript... | /man/URLs_DOGS.Rd | permissive | ysnghr/fastai | R | false | true | 349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_tar.R
\name{URLs_DOGS}
\alias{URLs_DOGS}
\title{DOGS dataset}
\usage{
URLs_DOGS(filename = "DOGS", untar = TRUE)
}
\arguments{
\item{filename}{the name of the file}
\item{untar}{logical, whether to untar the '.tgz' file}
}
\descript... |
#' Identify biomarkers
#'
#' @param MAE A multi-assay experiment object
#' @param tax_level The taxon level used for organisms
#' @param input_select_target_biomarker Which condition is the target condition
#' @param nfolds number of splits in CV
#' @param nrepeats number of CVs with different random splits
#' @param s... | /R/find_biomarker.R | permissive | it-fm/animalcules | R | false | false | 9,608 | r | #' Identify biomarkers
#'
#' @param MAE A multi-assay experiment object
#' @param tax_level The taxon level used for organisms
#' @param input_select_target_biomarker Which condition is the target condition
#' @param nfolds number of splits in CV
#' @param nrepeats number of CVs with different random splits
#' @param s... |
/Análisis de Regresión Logística.R | no_license | Claudia-Mardones-B/Metodo_Cuanti_USACH | R | false | false | 3,350 | r | ||
library(MASS)
library(neuralnet)
set.seed(123)
data2 <- Boston
hist(data2$medv)
maxs <- apply(data2, 2, max)
mins <- apply(data2, 2, min)
scaled4 <- 0
scaled4 <- as.data.frame(scale(data2, center = mins, scale = maxs - mins))
hist(scaled4$medv)
index <- sample(1:nrow(data2),round(0.75*nrow(data2)))
train ... | /NeuralNetworksEx1.R | no_license | zeisys-sjojo/NeuralNetworksEx1 | R | false | false | 1,519 | r |
library(MASS)
library(neuralnet)
set.seed(123)
data2 <- Boston
hist(data2$medv)
maxs <- apply(data2, 2, max)
mins <- apply(data2, 2, min)
scaled4 <- 0
scaled4 <- as.data.frame(scale(data2, center = mins, scale = maxs - mins))
hist(scaled4$medv)
index <- sample(1:nrow(data2),round(0.75*nrow(data2)))
train ... |
fileName <- "./data/household_power_consumption.txt"
wholeData <- read.table(fileName, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
selectedData<- wholeData[wholeData$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalActi... | /plot4.R | no_license | andandandand/ExData_Plotting1 | R | false | false | 1,265 | r | fileName <- "./data/household_power_consumption.txt"
wholeData <- read.table(fileName, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
selectedData<- wholeData[wholeData$Date %in% c("1/2/2007","2/2/2007") ,]
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
globalActi... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22796905866677e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613116861-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 251 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22796905866677e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
setwd("Where you have downloaded the DataFile")##set the working directory to the directory where data is downloaded
unzip("exdata_data_household_power_consumption.zip")##Unzip the compress file
power_cons<-read.csv2("household_power_consumption.txt",na.strings = "?")##read file into dataframe and marking na values as ... | /plot1.R | no_license | sirvishalarora/ExData_Plotting1 | R | false | false | 1,056 | r | setwd("Where you have downloaded the DataFile")##set the working directory to the directory where data is downloaded
unzip("exdata_data_household_power_consumption.zip")##Unzip the compress file
power_cons<-read.csv2("household_power_consumption.txt",na.strings = "?")##read file into dataframe and marking na values as ... |
library(ggplot2)
# 1) What is 2 + 5
2 + 5
# 2) What is your name?
cat("Garrett")
r <- readLines('/Users/dancikg/Desktop/r_grading/assignment/test.html')
s <- paste0(r, collapse = '\n')
q1 <- '<pre class="r">[\\s\\S]+?# 1\\)[\\s\\S]+?# 3\\)'
pattern <- '<pre class="r">[\\s\\S]+?# 1\\)[\\s\\S]+?# 3\\)'
f <- str_e... | /testAssignments/test.R | no_license | gdancik/shinyGrader | R | false | false | 444 | r | library(ggplot2)
# 1) What is 2 + 5
2 + 5
# 2) What is your name?
cat("Garrett")
r <- readLines('/Users/dancikg/Desktop/r_grading/assignment/test.html')
s <- paste0(r, collapse = '\n')
q1 <- '<pre class="r">[\\s\\S]+?# 1\\)[\\s\\S]+?# 3\\)'
pattern <- '<pre class="r">[\\s\\S]+?# 1\\)[\\s\\S]+?# 3\\)'
f <- str_e... |
####################################################################################
#Calcuates quality metrics (Info Score, MAF etc ) of variants in a bgen file,
#using BASH script called "calc_variant_quality", located in "path" argument.
#The BASH script calls QCTOOL.
#
#Input: chromosome to calculate metrics, assum... | /Variant_Quality/CalcVariantQuality.R | no_license | zmx21/polyresponse | R | false | false | 1,690 | r | ####################################################################################
#Calcuates quality metrics (Info Score, MAF etc ) of variants in a bgen file,
#using BASH script called "calc_variant_quality", located in "path" argument.
#The BASH script calls QCTOOL.
#
#Input: chromosome to calculate metrics, assum... |
#### EXPRESSION DATA: mTOR PATHWAY GENES - ESCA ####
library(TCGA2STAT)
genes <- c("MTOR", "RPTOR", "DEPDC6", "MLST8", "AKT1S1", "RICTOR", "MAPKAP1", "PRR5L", "WNT9B",
"LRP5", "DVL1", "GNAQ", "PIK3R1", "IRS1", "PDPK1", "PTEN", "HRAS", "KRAS", "NRAS", "MAPK15",
"RPS6KA3", "GSK3B", "DDIT4", "PRKAA... | /MSc Project R/1 R Scripts /5 mTOR pathway genes_exp/pathway_ESCA.R | no_license | Varshini-Suresh/MSc-Project-R-Codes- | R | false | false | 4,730 | r | #### EXPRESSION DATA: mTOR PATHWAY GENES - ESCA ####
library(TCGA2STAT)
genes <- c("MTOR", "RPTOR", "DEPDC6", "MLST8", "AKT1S1", "RICTOR", "MAPKAP1", "PRR5L", "WNT9B",
"LRP5", "DVL1", "GNAQ", "PIK3R1", "IRS1", "PDPK1", "PTEN", "HRAS", "KRAS", "NRAS", "MAPK15",
"RPS6KA3", "GSK3B", "DDIT4", "PRKAA... |
#!/usr/bin/env R
VERSION = "0.3"
args = commandArgs(trailingOnly = T)
if (length(args) != 1){
message(paste("VERSION:", VERSION))
stop("Please provide the config file")
}
suppressWarnings(suppressPackageStartupMessages(require(RaceID)))
suppressWarnings(suppressPackageStartupMessages(require(scran)))
sourc... | /tools/raceid/scripts/cluster.R | permissive | cgirardot/tools-iuc | R | false | false | 5,220 | r | #!/usr/bin/env R
VERSION = "0.3"
args = commandArgs(trailingOnly = T)
if (length(args) != 1){
message(paste("VERSION:", VERSION))
stop("Please provide the config file")
}
suppressWarnings(suppressPackageStartupMessages(require(RaceID)))
suppressWarnings(suppressPackageStartupMessages(require(scran)))
sourc... |
\name{qr_plot}
\alias{qr_plot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot
}
\description{
Plot of posterior distribution of effects
}
\usage{
qr_plot(object, index = 1,
xlab = "Quantile level", ylab = "Covariate effect",
main = "", col = gray(0.75), lwd = 1, add = FALSE)
... | /man/qr_plot.Rd | no_license | cran/BSquare | R | false | false | 670 | rd | \name{qr_plot}
\alias{qr_plot}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot
}
\description{
Plot of posterior distribution of effects
}
\usage{
qr_plot(object, index = 1,
xlab = "Quantile level", ylab = "Covariate effect",
main = "", col = gray(0.75), lwd = 1, add = FALSE)
... |
\name{as.output}
\alias{as.output}
\alias{as.output.default}
\alias{as.output.data.frame}
\alias{as.output.list}
\alias{as.output.matrix}
\alias{as.output.table}
\alias{as.output.raw}
\alias{iotools.stdout}
\alias{iotools.stderr}
\alias{iotools.fd}
\title{
Character Output
}
\description{
Create objects of class \c... | /man/asoutput.Rd | no_license | s-u/iotools | R | false | false | 2,261 | rd | \name{as.output}
\alias{as.output}
\alias{as.output.default}
\alias{as.output.data.frame}
\alias{as.output.list}
\alias{as.output.matrix}
\alias{as.output.table}
\alias{as.output.raw}
\alias{iotools.stdout}
\alias{iotools.stderr}
\alias{iotools.fd}
\title{
Character Output
}
\description{
Create objects of class \c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Methods.R
\docType{methods}
\name{useMySQL,EnsDb-method}
\alias{useMySQL,EnsDb-method}
\alias{useMySQL}
\title{Use a MySQL backend}
\usage{
\S4method{useMySQL}{EnsDb}(x, host = "localhost", port = 3306, user, pass)
}
\arguments{
\item{x}{The ... | /man/useMySQL-EnsDb-method.Rd | no_license | YTLogos/ensembldb | R | false | true | 1,752 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Methods.R
\docType{methods}
\name{useMySQL,EnsDb-method}
\alias{useMySQL,EnsDb-method}
\alias{useMySQL}
\title{Use a MySQL backend}
\usage{
\S4method{useMySQL}{EnsDb}(x, host = "localhost", port = 3306, user, pass)
}
\arguments{
\item{x}{The ... |
library(lubridate)
library(data.table)
# load data into data.table
powerconsumption <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE,
na.strings = "?", colClasses = c(rep("character", 2),rep("numeric", 7)))
# subsetting on relevant date through regular express... | /plot3.R | no_license | tiensen/ExData_Plotting1 | R | false | false | 1,016 | r | library(lubridate)
library(data.table)
# load data into data.table
powerconsumption <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE,
na.strings = "?", colClasses = c(rep("character", 2),rep("numeric", 7)))
# subsetting on relevant date through regular express... |
## Getting full dataset
data_full <- read.csv("G:/Data_Science/Exploratory data analysis/Project/exdata-data-household_power_consumption/household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Da... | /Plot3.R | no_license | SUBITCHAKA-NAGASUNDARAM/exp_data_analysis | R | false | false | 1,026 | r | ## Getting full dataset
data_full <- read.csv("G:/Data_Science/Exploratory data analysis/Project/exdata-data-household_power_consumption/household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Da... |
library("plyr")
library("dplyr")
library("reshape2")
library("jsonlite")
library("stringr")
# ------------------------
# string manipulate
# todo: 19xx-20xx
#' @return TRUE/FALSE vector
endWithYear=function(x){
x %>% stringr::str_detect("_((?:20|19)\\d{2})$")
}
#' @param x character-vector
#' @retu... | /util.R | no_license | JasonXu12/Big-data-and-financial-analysis-system | R | false | false | 3,756 | r |
library("plyr")
library("dplyr")
library("reshape2")
library("jsonlite")
library("stringr")
# ------------------------
# string manipulate
# todo: 19xx-20xx
#' @return TRUE/FALSE vector
endWithYear=function(x){
x %>% stringr::str_detect("_((?:20|19)\\d{2})$")
}
#' @param x character-vector
#' @retu... |
# PREPARACIÓN DE DATOS PARA LA LA STNN PERO CON BARRIOS Y RANGO HORARIO.
# SIMULACRO DE EXPERIMENTO REAL
# Cargamos paquetes y dataset
library(data.table); library(lubridate); library(plyr); library(tidyr)
load("../Accidentes de tráfico - Madrid/Cleaned_data/BarriosAccidentalidad.RData")
car_crash <- BarriosAcciden... | /Accidentes de tráfico - Madrid/Scripts/Fase 3/prueba_stnn.R | no_license | rdemedrano/RM-TFM-2019 | R | false | false | 1,695 | r | # PREPARACIÓN DE DATOS PARA LA LA STNN PERO CON BARRIOS Y RANGO HORARIO.
# SIMULACRO DE EXPERIMENTO REAL
# Cargamos paquetes y dataset
library(data.table); library(lubridate); library(plyr); library(tidyr)
load("../Accidentes de tráfico - Madrid/Cleaned_data/BarriosAccidentalidad.RData")
car_crash <- BarriosAcciden... |
gmm <- function(data, k, init = NA, mu = NA, cov = NA,
maxiters = 1000, restarts = 10, del = 0.00001,
initFunc = kMeans){
# This function cluster the data using th gaussian mixture models algorithm
#
# args:
# data : An unlabelled dataframe
# k : Number clusters... | /gaussianMixtureModel.R | no_license | SumedhSankhe/Unsupervised-machine-learning | R | false | false | 3,793 | r | gmm <- function(data, k, init = NA, mu = NA, cov = NA,
maxiters = 1000, restarts = 10, del = 0.00001,
initFunc = kMeans){
# This function cluster the data using th gaussian mixture models algorithm
#
# args:
# data : An unlabelled dataframe
# k : Number clusters... |
##--------------------------------------------
##
## Counting/Probability R code (lecture 2)
##
## Class: PCE Data Science Methods Class
##
## Contains examples of:
##
## -Counting, Probability
##
## -More on Distributions
##
##--------------------------------------------
library(MASS) # has the function... | /qtr2/hw2/R_Examples_Lecture2.R | no_license | kniemann/data-projects | R | false | false | 6,959 | r | ##--------------------------------------------
##
## Counting/Probability R code (lecture 2)
##
## Class: PCE Data Science Methods Class
##
## Contains examples of:
##
## -Counting, Probability
##
## -More on Distributions
##
##--------------------------------------------
library(MASS) # has the function... |
#' Exported Constants
#'
#' @name RMUMPS_PERM
#' @aliases RMUMPS_PERM RMUMPS_PERM_AMD RMUMPS_PERM_AMF RMUMPS_PERM_SCOTCH RMUMPS_PERM_PORD RMUMPS_PERM_METIS RMUMPS_PERM_QAMD RMUMPS_PERM_AUTO
#' @description
#' Integer constants defining permutation types and exported from rmumps are following:
#' \itemize{
#' \item{\cod... | /R/zzz.R | no_license | sgsokol/rmumps | R | false | false | 1,325 | r | #' Exported Constants
#'
#' @name RMUMPS_PERM
#' @aliases RMUMPS_PERM RMUMPS_PERM_AMD RMUMPS_PERM_AMF RMUMPS_PERM_SCOTCH RMUMPS_PERM_PORD RMUMPS_PERM_METIS RMUMPS_PERM_QAMD RMUMPS_PERM_AUTO
#' @description
#' Integer constants defining permutation types and exported from rmumps are following:
#' \itemize{
#' \item{\cod... |
############## --------------------------------------------------------
############## ERROR PROPAGATION
############## Author: Daniele Ferraretto
############## started on 26th July, 2017
############## updated: last update: 31/07/2017
############## -------------------------... | /mikerspencer/Error_propagation_TF_SF_RF_fog.R | no_license | dferraretto/Daniele_Repo | R | false | false | 23,211 | r | ############## --------------------------------------------------------
############## ERROR PROPAGATION
############## Author: Daniele Ferraretto
############## started on 26th July, 2017
############## updated: last update: 31/07/2017
############## -------------------------... |
library(dplyr)
library(ggplot2)
library(bootstrap)
library(lme4)
library(tidyr)
theme_set(theme_bw(18))
setwd("/Users/elisakreiss/Documents/Stanford/overinformativeness/experiments/elisa_paper_relevant/typicality_calculation")
source("rscripts/helpers.r")
objTyp = read.table(file="../norming_comp_object/results/data/... | /experiments/elisa_paper_relevant/typicality_calculation/rscripts/typicality_calc.R | permissive | thegricean/overinformativeness | R | false | false | 3,041 | r | library(dplyr)
library(ggplot2)
library(bootstrap)
library(lme4)
library(tidyr)
theme_set(theme_bw(18))
setwd("/Users/elisakreiss/Documents/Stanford/overinformativeness/experiments/elisa_paper_relevant/typicality_calculation")
source("rscripts/helpers.r")
objTyp = read.table(file="../norming_comp_object/results/data/... |
x <- c("spring", "winter",
"winter", "autumn")
str(x)
x <- factor(x)
str(x)
x
x + x
levels(x)
library("titanic") # Titanic dataset
library("dplyr") # data transform
# library("car") # transform levels of factor vars
library("vcd") # mosaic plot
library("GGally") # scatter plot matrix
library("psych") # descript... | /2015/seminar_scripts/script_13_scatter_matrix.R | no_license | bdemeshev/sa621 | R | false | false | 1,716 | r | x <- c("spring", "winter",
"winter", "autumn")
str(x)
x <- factor(x)
str(x)
x
x + x
levels(x)
library("titanic") # Titanic dataset
library("dplyr") # data transform
# library("car") # transform levels of factor vars
library("vcd") # mosaic plot
library("GGally") # scatter plot matrix
library("psych") # descript... |
# ---------------------------------------------------------------------------- #
# CAS DATA VISUALIZATION 2016
# Autorenprojekt Flight Fare Visualization
#
# Description Datenbereinigung und -aufbereitung der gesammelten Flugpreise
# zu 20 Flugverbindungen (EU sowie Oversea).
#
# Frage 0) ... | /Analytics/Part 3/FFV_Analytics_Q0.R | no_license | rziegler/ffv | R | false | false | 3,924 | r | # ---------------------------------------------------------------------------- #
# CAS DATA VISUALIZATION 2016
# Autorenprojekt Flight Fare Visualization
#
# Description Datenbereinigung und -aufbereitung der gesammelten Flugpreise
# zu 20 Flugverbindungen (EU sowie Oversea).
#
# Frage 0) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read_years}
\alias{fars_read_years}
\title{Read multiple file names}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{a numeric vector containing four-digit numeric values.}
}
\value{
A list with length eq... | /man/fars_read_years.Rd | no_license | AnoushiravanR/fars | R | false | true | 1,219 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read_years}
\alias{fars_read_years}
\title{Read multiple file names}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{a numeric vector containing four-digit numeric values.}
}
\value{
A list with length eq... |
# source("http://egret.psychol.cam.ac.uk/statistics/R/extensions/rnc_ggplot2_border_themes_2013_01.r")
source("d:/KULeuven/PhD/rLibrary/rnc_ggplot2_border_themes_2013_01.r")
cleanPlot2 <- function(pp, fontsize)
{
pp <- pp + theme(
panel.background = element_rect(fill='white')
,panel.grid.major = element_line... | /dataAnalysisCodes/deps/cleanPlot2.R | no_license | adriencombaz/HybBciCode | R | false | false | 1,223 | r | # source("http://egret.psychol.cam.ac.uk/statistics/R/extensions/rnc_ggplot2_border_themes_2013_01.r")
source("d:/KULeuven/PhD/rLibrary/rnc_ggplot2_border_themes_2013_01.r")
cleanPlot2 <- function(pp, fontsize)
{
pp <- pp + theme(
panel.background = element_rect(fill='white')
,panel.grid.major = element_line... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
# Define UI for application that draws a histogra... | /dashboard/app/ui.R | no_license | emmanuel-arize/R | R | false | false | 2,060 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(ggplot2)
# Define UI for application that draws a histogra... |
multa cerneala a mai curs pe seama Securitatii lui Nicolae Ceausescu .
si - o sa mai curga , impestritata cu povesti , cu bancuri , cu zvonuri , pentru ca sintem inca departe de o clarificare sanatoasa , pe baze stiintifice .
societatea civila si clasa politica dau din gura , se confrunta , dar nu pot cadea de acord ... | /data/Newspapers/2001.02.27.editorial.42232.0557.r | no_license | narcis96/decrypting-alpha | R | false | false | 4,642 | r | multa cerneala a mai curs pe seama Securitatii lui Nicolae Ceausescu .
si - o sa mai curga , impestritata cu povesti , cu bancuri , cu zvonuri , pentru ca sintem inca departe de o clarificare sanatoasa , pe baze stiintifice .
societatea civila si clasa politica dau din gura , se confrunta , dar nu pot cadea de acord ... |
# Created on : 29-06-2021
# Course work:
# @author: Harsha Vardhan
# Source:
#Simple Strip Chart
str(airquality)
airquality
stripchart(airquality$Ozone)
| /harsha1/simple-strip-chart.R | no_license | tactlabs/r-samples | R | false | false | 155 | r | # Created on : 29-06-2021
# Course work:
# @author: Harsha Vardhan
# Source:
#Simple Strip Chart
str(airquality)
airquality
stripchart(airquality$Ozone)
|
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11273
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11273
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query57_query57_1344n/query57_query57_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 720 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11273
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11273
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4... |
\name{here}
\alias{here}
\title{
Here Documents
}
\description{
Read lines and convert into appropriate vector or data frame.
}
\usage{
here(s, drop = TRUE, guess.type = TRUE, sep = NULL, header = TRUE,
stringsAsFactors = FALSE, trim = TRUE, \dots)
}
\arguments{
\item{s}{
a string
}
\item{drop}{
lo... | /man/here.Rd | no_license | enricoschumann/textutils | R | false | false | 1,657 | rd | \name{here}
\alias{here}
\title{
Here Documents
}
\description{
Read lines and convert into appropriate vector or data frame.
}
\usage{
here(s, drop = TRUE, guess.type = TRUE, sep = NULL, header = TRUE,
stringsAsFactors = FALSE, trim = TRUE, \dots)
}
\arguments{
\item{s}{
a string
}
\item{drop}{
lo... |
library(tidyverse)
library(haven)
library(ggplot2)
china_data <- read_dta(file = "fes_china.dta")
# Add in log variables for later use
china_data_logged = china_data %>%
mutate(ln_share_food = log(food/totalexpenditures),
ln_share_clothing = log(clothing/totalexpenditures),
ln_share_housing = log(... | /Homework_1/Homework_1_Script.R | no_license | lathamri/200A_Homework | R | false | false | 2,086 | r | library(tidyverse)
library(haven)
library(ggplot2)
china_data <- read_dta(file = "fes_china.dta")
# Add in log variables for later use
china_data_logged = china_data %>%
mutate(ln_share_food = log(food/totalexpenditures),
ln_share_clothing = log(clothing/totalexpenditures),
ln_share_housing = log(... |
# Q5(a)
library(ISLR)
library(MASS)
RNGkind(sample.kind = "Rounding") #To correct the RNG of different R versions
set.seed(1)
attach(Default)
fit.glm1.0 <- glm(default~income+balance,
data = Default, family = binomial)
summary(fit.glm1.0)$coef #both predictors are statistically significant
# Q5(b)
## S... | /Homework_4.R | no_license | Hakeem-7/Class_Project_4-Stat6000 | R | false | false | 6,986 | r | # Q5(a)
library(ISLR)
library(MASS)
RNGkind(sample.kind = "Rounding") #To correct the RNG of different R versions
set.seed(1)
attach(Default)
fit.glm1.0 <- glm(default~income+balance,
data = Default, family = binomial)
summary(fit.glm1.0)$coef #both predictors are statistically significant
# Q5(b)
## S... |
#######################################
## author: Rob Williams ##
## contact: jayrobwilliams@gmail.com ##
## project: dissertation ##
## created: December 11, 2017 ##
## updated: December 30, 2018 ##
#######################################
## this script extracts the spatial com... | /Code/Group Variable Creation.R | no_license | MACHEIKH/conflict-preemption | R | false | false | 13,432 | r | #######################################
## author: Rob Williams ##
## contact: jayrobwilliams@gmail.com ##
## project: dissertation ##
## created: December 11, 2017 ##
## updated: December 30, 2018 ##
#######################################
## this script extracts the spatial com... |
#Ram A May 9 2015
#Read the CSV file
DF <- read.csv("./data/household_power_consumption.txt",sep=";",header=TRUE)
#Subset the dates
DF2 <- subset(DF, as.Date(Date, "%d/%m/%Y") == as.Date("2007-02-01") | as.Date(Date, "%d/%m/%Y") == as.Date("2007-02-02"))
#select one column and clean it up and convert
DF3 <- DF2[,"Gl... | /plot1.R | no_license | thag/ExData_Plotting1 | R | false | false | 608 | r | #Ram A May 9 2015
#Read the CSV file
DF <- read.csv("./data/household_power_consumption.txt",sep=";",header=TRUE)
#Subset the dates
DF2 <- subset(DF, as.Date(Date, "%d/%m/%Y") == as.Date("2007-02-01") | as.Date(Date, "%d/%m/%Y") == as.Date("2007-02-02"))
#select one column and clean it up and convert
DF3 <- DF2[,"Gl... |
rm(list = ls())
library(lubridate)
Datos <- read.table(file = "household_power_consumption.txt" , header = TRUE, sep = ";")
Datos$Fecha <- dmy_hms(paste(Datos$Date, Datos$Time, sep = " "))
SubConjunto <- subset(x = Datos, subset = Datos$Fecha >= dmy_hms("01/02/2007 00:00:00") & Datos$Fecha <= dmy_hms("02/02/2007 23... | /Plot1.R | no_license | jeancm26/ExData_Plotting1 | R | false | false | 1,091 | r | rm(list = ls())
library(lubridate)
Datos <- read.table(file = "household_power_consumption.txt" , header = TRUE, sep = ";")
Datos$Fecha <- dmy_hms(paste(Datos$Date, Datos$Time, sep = " "))
SubConjunto <- subset(x = Datos, subset = Datos$Fecha >= dmy_hms("01/02/2007 00:00:00") & Datos$Fecha <= dmy_hms("02/02/2007 23... |
# Course 4: Exploratory Data Analysis #
# Course Project #1 #
## 0 - Download and read files
#01 - set up working directory
setwd("./AlexPersonal/DataScience/Assignments/Course4_ExploratoryDataAnalysis/Courseproj1")
#02 - define dataset
datafile <- "./household_power_consumption.txt"
#03 - read dataset
fullda... | /plot4.R | no_license | dushuang2/ExData_Plotting1 | R | false | false | 1,536 | r | # Course 4: Exploratory Data Analysis #
# Course Project #1 #
## 0 - Download and read files
#01 - set up working directory
setwd("./AlexPersonal/DataScience/Assignments/Course4_ExploratoryDataAnalysis/Courseproj1")
#02 - define dataset
datafile <- "./household_power_consumption.txt"
#03 - read dataset
fullda... |
#lag a vector
lagvec=function(lag,vec){
c(rep(vec[1],lag),vec)[1:length(vec)]
}
#fit a gam to evaluate
lagresid_generic=function(lagvec,data){
#data$lagvar=lagvec
r2=gam(resid~s(lagvec,bs="cs",by=factor(occupied)),data=data)
mean(resid(r2)^2)
}
bestlag=function(variable,lagseq,data){
lagvecs=lapply(lagseq,l... | /R/bestlags.R | no_license | jeremyrcoyle/PEVerify | R | false | false | 1,095 | r | #lag a vector
lagvec=function(lag,vec){
c(rep(vec[1],lag),vec)[1:length(vec)]
}
#fit a gam to evaluate
lagresid_generic=function(lagvec,data){
#data$lagvar=lagvec
r2=gam(resid~s(lagvec,bs="cs",by=factor(occupied)),data=data)
mean(resid(r2)^2)
}
bestlag=function(variable,lagseq,data){
lagvecs=lapply(lagseq,l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortalityTable.joined.R
\docType{class}
\name{mortalityTable.joined-class}
\alias{mortalityTable.joined}
\alias{mortalityTable.joined-class}
\title{Class mortalityTable.joined - Life table created by joining two life tables}
\description{
A c... | /man/mortalityTable.joined-class.Rd | no_license | Algorios/r-mortality-tables | R | false | true | 962 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mortalityTable.joined.R
\docType{class}
\name{mortalityTable.joined-class}
\alias{mortalityTable.joined}
\alias{mortalityTable.joined-class}
\title{Class mortalityTable.joined - Life table created by joining two life tables}
\description{
A c... |
#' Peers' registered interests
#'
#' Registered financial interests of members of the House of Lords.
#' If `peer_id=NULL` the actual details of registered interests
#' are stored in a nested data frame.
#'
#' @param peer_id The ID of a member of the House of lords. If `NULL`,
#' returns a tibble with all list... | /R/lords_interests.R | permissive | cran/hansard | R | false | false | 1,789 | r |
#' Peers' registered interests
#'
#' Registered financial interests of members of the House of Lords.
#' If `peer_id=NULL` the actual details of registered interests
#' are stored in a nested data frame.
#'
#' @param peer_id The ID of a member of the House of lords. If `NULL`,
#' returns a tibble with all list... |
library(httr)
library(readxl)
library(readr)
library(dplyr)
library(magrittr)
library(zoo) # na.locf
library(data.table)
if (!file.exists("./data-raw/Samplefilesall.zip")){
dir.create("data-raw", showWarnings = FALSE)
GET(url = "http://data.gov.au/dataset/62ae540b-01b0-4c2e-a984-b8013884f1ec/resource/6ca75bab-96a... | /data-raw/get-data.R | no_license | HughParsonage/taxstats | R | false | false | 4,324 | r | library(httr)
library(readxl)
library(readr)
library(dplyr)
library(magrittr)
library(zoo) # na.locf
library(data.table)
if (!file.exists("./data-raw/Samplefilesall.zip")){
dir.create("data-raw", showWarnings = FALSE)
GET(url = "http://data.gov.au/dataset/62ae540b-01b0-4c2e-a984-b8013884f1ec/resource/6ca75bab-96a... |
# Install or load libraries
tryCatch({
library(RPostgreSQL)
}, error = function(e) {
install.packages("RPPostgreSQL")
library(RPPostgreSQL)
})
tryCatch({
library(tidyverse)
}, error = function(e) {
install.packages("tidyverse")
library(tidyverse)
})
# Connect to database
drv <- dbDriver('PostgreSQL')
con <... | /R_Scripts/total_trials_enrollment_count.R | permissive | MoravianCollege/ClinicalTrialsViz | R | false | false | 1,398 | r | # Install or load libraries
tryCatch({
library(RPostgreSQL)
}, error = function(e) {
install.packages("RPPostgreSQL")
library(RPPostgreSQL)
})
tryCatch({
library(tidyverse)
}, error = function(e) {
install.packages("tidyverse")
library(tidyverse)
})
# Connect to database
drv <- dbDriver('PostgreSQL')
con <... |
runKF <- function(y,A,C,Q,R,Z_0,V_0){
#note that y is transposed - time is accross columns. I'll correct this later
#C = Z = lambda = loadings in observation matrix = design matrix = OBSERVATION EQUATION
#A = T = transitions matrix = STATE EQUATION
#Q = covariance matrix from VAR and AR = state dis... | /Nowcast_DLARFM_framework/DLMKalmanFilter.R | no_license | elSomewhere/DLM-Nowcaster---QuantEcon | R | false | false | 5,558 | r | runKF <- function(y,A,C,Q,R,Z_0,V_0){
#note that y is transposed - time is accross columns. I'll correct this later
#C = Z = lambda = loadings in observation matrix = design matrix = OBSERVATION EQUATION
#A = T = transitions matrix = STATE EQUATION
#Q = covariance matrix from VAR and AR = state dis... |
#################################################################
## UT-KBRIN Bioinformatics Summit 2017
## Module 1: Introduction to R and RStudio, Reading Data into R
## The R Team
## Department of Statistics, University of Kentucky
## April 21, 2017
#############################################################... | /module1.R | no_license | pdtrang/R-Workshop-UT-KBRIN-BioSummit2017 | R | false | false | 3,130 | r | #################################################################
## UT-KBRIN Bioinformatics Summit 2017
## Module 1: Introduction to R and RStudio, Reading Data into R
## The R Team
## Department of Statistics, University of Kentucky
## April 21, 2017
#############################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/markov_wrapper.R
\name{markov_model}
\alias{markov_model}
\title{Example of Markov model function}
\usage{
markov_model(l_param_all, strategy = NULL)
}
\arguments{
\item{l_param_all}{All parameter inputs. This is a named list organized as
`li... | /man/markov_model.Rd | no_license | MedipAnalytics/CEAutil | R | false | true | 744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/markov_wrapper.R
\name{markov_model}
\alias{markov_model}
\title{Example of Markov model function}
\usage{
markov_model(l_param_all, strategy = NULL)
}
\arguments{
\item{l_param_all}{All parameter inputs. This is a named list organized as
`li... |
library(RColorBrewer)
library(gridExtra)
source("getTweets.R")
N=2000
dir.create("abpoli",showWarnings = FALSE)
abpoli<-getTweets(keyword = "#abpoli OR #abvote",n=N,exclude.words = c("http","ableg","cdnpoli","abpoli","onpoli"))
png("abpoli/abpoli.png",width=2880,height=800)
wordcloud(abpoli$word,abpoli$freq,scale ... | /abvote_2015.R | no_license | mikebirdgeneau/abvote_wordcloud | R | false | false | 1,712 | r |
library(RColorBrewer)
library(gridExtra)
source("getTweets.R")
N=2000
dir.create("abpoli",showWarnings = FALSE)
abpoli<-getTweets(keyword = "#abpoli OR #abvote",n=N,exclude.words = c("http","ableg","cdnpoli","abpoli","onpoli"))
png("abpoli/abpoli.png",width=2880,height=800)
wordcloud(abpoli$word,abpoli$freq,scale ... |
################################################################################
#
# Social interaction model: Sweep beta and group size parameter space
#
################################################################################
rm(list = ls())
####################
# Source necessary scripts/libraries
########... | /scripts/3_para_sweep/3a_BetaParaSweep_2.R | no_license | christokita/socially-modulated-threshold-model | R | false | false | 7,035 | r | ################################################################################
#
# Social interaction model: Sweep beta and group size parameter space
#
################################################################################
rm(list = ls())
####################
# Source necessary scripts/libraries
########... |
###
# SET WORKING DIRECTORY TO SOURCE FILE LOCATION
# Session -> Set Working Directory -> To Sourec File Location
###
#install.packages("ggrepel")
#install.packages("dplyr")
#install.packages("sqldf")
#install.packages("ggplot2")
library(sqldf)
library(ggplot2)
library(dplyr)
library(ggrepel)
deliveries <- read... | /ipl/Analysis/3.Bowler_Analysis.R | no_license | DB79/BigData_IPL_Analysis | R | false | false | 4,937 | r | ###
# SET WORKING DIRECTORY TO SOURCE FILE LOCATION
# Session -> Set Working Directory -> To Sourec File Location
###
#install.packages("ggrepel")
#install.packages("dplyr")
#install.packages("sqldf")
#install.packages("ggplot2")
library(sqldf)
library(ggplot2)
library(dplyr)
library(ggrepel)
deliveries <- read... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615838474-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 826 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... |
#' (helper function )Aggregate data for WOE/NWOE calculations
#'
#' \code{Aggregate} returns aggregated data for the WOE and NWOE functions
#'
#' @param data input data frame
#' @param x variable to be aggregated
#' @param y dependent variable
#' @param breaks breaks for binning
#' @param trt binary treatment variab... | /R/Aggregate.R | no_license | jcassiojr/Information | R | false | false | 3,270 | r | #' (helper function )Aggregate data for WOE/NWOE calculations
#'
#' \code{Aggregate} returns aggregated data for the WOE and NWOE functions
#'
#' @param data input data frame
#' @param x variable to be aggregated
#' @param y dependent variable
#' @param breaks breaks for binning
#' @param trt binary treatment variab... |
tv.weight <- function(subchannel, coast, name) {
if (coast == 'east') {
tz = "'EST', 'CST'"
} else if (coast == 'west') {
tz = "'PST', 'MST'"
} else stop("wrong coast: either 'east', or 'west'")
query1 <-
"select substr(cast(servertimemst as varchar(100)), 1, 16) || ':00' timetominstr, count... | /R/us_tv_baseline_plot.R | no_license | cholita77/AttributionModel | R | false | false | 5,657 | r | tv.weight <- function(subchannel, coast, name) {
if (coast == 'east') {
tz = "'EST', 'CST'"
} else if (coast == 'west') {
tz = "'PST', 'MST'"
} else stop("wrong coast: either 'east', or 'west'")
query1 <-
"select substr(cast(servertimemst as varchar(100)), 1, 16) || ':00' timetominstr, count... |
\name{isOrthogonal}
\alias{isOrthogonal}
\alias{isOrthogonal.default}
\title{Is Orthogonal}
\description{
Determine if the set of contrast is orthogonal
}
\usage{
isOrthogonal(contrast)
}
\arguments{
\item{contrast}{a}
}
\author{AAGulles}
\keyword{utilities}
| /.svn/pristine/8f/8f670b11428e54c550e62f24ebcd20fced10dfd2.svn-base | no_license | djnpisano/RScriptLibrary | R | false | false | 263 | \name{isOrthogonal}
\alias{isOrthogonal}
\alias{isOrthogonal.default}
\title{Is Orthogonal}
\description{
Determine if the set of contrast is orthogonal
}
\usage{
isOrthogonal(contrast)
}
\arguments{
\item{contrast}{a}
}
\author{AAGulles}
\keyword{utilities}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.