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 |
|---|---|---|---|---|---|---|---|---|---|
## Processing databases
library(Seurat)
## seurat standard preprocessing
seu_std_processing <- function(seurat_object) {
seurat_object <- NormalizeData(seurat_object)
seurat_object <- ScaleData(seurat_object)
seurat_object <- FindVariableFeatures(seurat_object)
#seurat_object <- RunPCA... | /src/4_processing_databases.R | no_license | caramirezal/sars-cov2 | R | false | false | 2,667 | r | ## Processing databases
library(Seurat)
## seurat standard preprocessing
seu_std_processing <- function(seurat_object) {
seurat_object <- NormalizeData(seurat_object)
seurat_object <- ScaleData(seurat_object)
seurat_object <- FindVariableFeatures(seurat_object)
#seurat_object <- RunPCA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnosticPlot.R
\name{profile_logliks}
\alias{profile_logliks}
\title{Plot profile log-likehoods around the estimates}
\usage{
profile_logliks(
gmvar,
which_pars,
scale = 0.02,
nrows,
ncols,
precision = 200,
stat_tol = 0.001,
... | /man/profile_logliks.Rd | no_license | yangkedc1984/gmvarkit | R | false | true | 5,490 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnosticPlot.R
\name{profile_logliks}
\alias{profile_logliks}
\title{Plot profile log-likehoods around the estimates}
\usage{
profile_logliks(
gmvar,
which_pars,
scale = 0.02,
nrows,
ncols,
precision = 200,
stat_tol = 0.001,
... |
## The following pair of functions take an invertible matrix as input
## and cache the inverse of the matrix
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m... | /cachematrix.R | no_license | eavoll/ProgrammingAssignment2 | R | false | false | 974 | r | ## The following pair of functions take an invertible matrix as input
## and cache the inverse of the matrix
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m... |
# problem 3
# Chlorpromazine vs. Placebo
# probability of nausea in Placebo group
pla.p <- 45/80
# probability of nausea in Chlorpromazine group
chl.p <- 26/75
# Wald test
dmean <- pla.p - chl.p
se <- sqrt(pla.p*(1 - pla.p)/80 + chl.p*(1 - chl.p)/75)
W <- dmean/se
W
# p-value
chl.pv <- 2*pnorm(-abs(W))
# odds rati... | /wald test.R | no_license | yokielove/881new | R | false | false | 2,419 | r | # problem 3
# Chlorpromazine vs. Placebo
# probability of nausea in Placebo group
pla.p <- 45/80
# probability of nausea in Chlorpromazine group
chl.p <- 26/75
# Wald test
dmean <- pla.p - chl.p
se <- sqrt(pla.p*(1 - pla.p)/80 + chl.p*(1 - chl.p)/75)
W <- dmean/se
W
# p-value
chl.pv <- 2*pnorm(-abs(W))
# odds rati... |
#' Add HTML tags to a source
#'
#' This function adds HTML tags to a source to allow pretty printing/viewing.
#'
#' @param x A character vector with the source
#' @param context Optionally, lines to pass the contextClass
#' @param codeClass,codeValueClass,idClass,sectionClass,uidClass,contextClass,utteranceClass
... | /R/add_html_tags.R | no_license | cran/rock | R | false | false | 7,860 | r | #' Add HTML tags to a source
#'
#' This function adds HTML tags to a source to allow pretty printing/viewing.
#'
#' @param x A character vector with the source
#' @param context Optionally, lines to pass the contextClass
#' @param codeClass,codeValueClass,idClass,sectionClass,uidClass,contextClass,utteranceClass
... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
# Define UI for random distribution application
shinyUI(fluidPage(
# Application title
titlePanel("Aproximaciones de integrale... | /ui.R | no_license | adfmb/Montecarlo_pi | R | false | false | 1,725 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
# Define UI for random distribution application
shinyUI(fluidPage(
# Application title
titlePanel("Aproximaciones de integrale... |
set.seed(01131996)
setwd("/Users/jackliang 1/Desktop/School Work/Pattern Recognition/Final Project")
load('digits.RData')
#windows()
#image(t(1 - training.data[4,73,,])[,20:1], col=gray(seq(0, 1, length.out=256)), axes=FALSE, asp=1)
#image(t(1 - training.data[9,404,,])[,20:1], col=gray(seq(0, 1, length.out=256)), axe... | /Pattern Recognition/final_project.R | no_license | liang-jack-a/Class-Work | R | false | false | 25,869 | r | set.seed(01131996)
setwd("/Users/jackliang 1/Desktop/School Work/Pattern Recognition/Final Project")
load('digits.RData')
#windows()
#image(t(1 - training.data[4,73,,])[,20:1], col=gray(seq(0, 1, length.out=256)), axes=FALSE, asp=1)
#image(t(1 - training.data[9,404,,])[,20:1], col=gray(seq(0, 1, length.out=256)), axe... |
setGeneric("infer_parsimonious_accessions",
function(object, unique_only=FALSE, parsimony_map = NULL)
standardGeneric("infer_parsimonious_accessions"))
setGeneric("assess_missed_cleavages",
function(object, missedCleavagePattern="[KR](?=[^P$])")
standardGeneric... | /R/AllGenerics.R | no_license | JMoon1/MSnID | R | false | false | 2,003 | r |
setGeneric("infer_parsimonious_accessions",
function(object, unique_only=FALSE, parsimony_map = NULL)
standardGeneric("infer_parsimonious_accessions"))
setGeneric("assess_missed_cleavages",
function(object, missedCleavagePattern="[KR](?=[^P$])")
standardGeneric... |
createErrorPlots <- function(cal.coeff, corners, nx, sq.size.num, sq.size.units = '',
file = ''){
# TEST CALIBRATION ACCURACY AGAINST OPTIM SET
dlt_test <- dltTestCalibration(cal.coeff, corners, nx, paste0(sq.size.num, ' ', sq.size.units))
if(is.null(file)) return(dlt_test)
# ADD DIRECTORY SYMBOL IF NOT EMPTY... | /StereoMorph/R/createErrorPlots.R | no_license | hiweller/Eartheaters | R | false | false | 8,426 | r | createErrorPlots <- function(cal.coeff, corners, nx, sq.size.num, sq.size.units = '',
file = ''){
# TEST CALIBRATION ACCURACY AGAINST OPTIM SET
dlt_test <- dltTestCalibration(cal.coeff, corners, nx, paste0(sq.size.num, ' ', sq.size.units))
if(is.null(file)) return(dlt_test)
# ADD DIRECTORY SYMBOL IF NOT EMPTY... |
LVZSmp <-
function(oldmodel)
{
lvzextra=EmptyModel()
criticalz=NULL
a=AnalyzeLVZ(oldmodel$vp,oldmodel$vs,oldmodel$z,oldmodel$rp)
newvp=a[[1]]
newvpsec=a[[2]]
newzp=a[[3]]
critzp=a[[4]]
a=AnalyzeLVZ(oldmodel$vs,oldmodel$vp,oldmodel$z,oldmodel$rp)
newvs=a[[1]]
newvssec=a[[2]]
newzs=a[[3]]
critzs=a[[4]]
criticalz=c(c... | /R/LVZSmp.R | no_license | cran/TauP.R | R | false | false | 811 | r | LVZSmp <-
function(oldmodel)
{
lvzextra=EmptyModel()
criticalz=NULL
a=AnalyzeLVZ(oldmodel$vp,oldmodel$vs,oldmodel$z,oldmodel$rp)
newvp=a[[1]]
newvpsec=a[[2]]
newzp=a[[3]]
critzp=a[[4]]
a=AnalyzeLVZ(oldmodel$vs,oldmodel$vp,oldmodel$z,oldmodel$rp)
newvs=a[[1]]
newvssec=a[[2]]
newzs=a[[3]]
critzs=a[[4]]
criticalz=c(c... |
# load original bed files
# load library
library(GenomicRanges)
library(rtracklayer)
library(IRanges)
library(biomaRt)
library(chipseq)
library(BSgenome.Mmusculus.UCSC.mm10)
library(Gviz)
library(dplyr)
print("================Let's go================")
# load necessary data
genome <- BSgenome.Mmusculus.UCSC.mm10
m... | /analysis_gene_2.R | no_license | wintone123/chipseq | R | false | false | 13,829 | r | # load original bed files
# load library
library(GenomicRanges)
library(rtracklayer)
library(IRanges)
library(biomaRt)
library(chipseq)
library(BSgenome.Mmusculus.UCSC.mm10)
library(Gviz)
library(dplyr)
print("================Let's go================")
# load necessary data
genome <- BSgenome.Mmusculus.UCSC.mm10
m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mixdist3.R
\name{mixdist3}
\alias{mixdist3}
\title{Utility function to instantiate 2 parameter mixture densities.}
\usage{
mixdist3(...)
}
\description{
Utility function to instantiate 2 parameter mixture densities.
}
\keyword{internal}
| /fuzzedpackages/RBesT/man/mixdist3.Rd | no_license | akhikolla/testpackages | R | false | true | 315 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mixdist3.R
\name{mixdist3}
\alias{mixdist3}
\title{Utility function to instantiate 2 parameter mixture densities.}
\usage{
mixdist3(...)
}
\description{
Utility function to instantiate 2 parameter mixture densities.
}
\keyword{internal}
|
library(plyr)
library(dplyr)
library(stringr)
library(PlayerRatings)
library(car)
library(randomForest)
library(tidyr)
# library(gbm)
# https://www.kaggle.com/ajniggles/march-machine-learning-mania-2017/logistic-regression-and-game-round-calculator
#sourcepath <- "C:/Users/Amy/Documents/GitHub/mm2017/scripts/"
#in... | /scripts/cf3_random_forest_matchup.R | no_license | Mwpatterson/mm2017 | R | false | false | 6,789 | r |
library(plyr)
library(dplyr)
library(stringr)
library(PlayerRatings)
library(car)
library(randomForest)
library(tidyr)
# library(gbm)
# https://www.kaggle.com/ajniggles/march-machine-learning-mania-2017/logistic-regression-and-game-round-calculator
#sourcepath <- "C:/Users/Amy/Documents/GitHub/mm2017/scripts/"
#in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxa_translate.R
\name{taxa_translate}
\alias{taxa_translate}
\title{Taxa Translate}
\usage{
taxa_translate(
df_user = NULL,
df_official = NULL,
df_official_metadata = NULL,
taxaid_user = "TAXAID",
taxaid_official_match = NULL,
ta... | /man/taxa_translate.Rd | permissive | leppott/BioMonTools | R | false | true | 7,082 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxa_translate.R
\name{taxa_translate}
\alias{taxa_translate}
\title{Taxa Translate}
\usage{
taxa_translate(
df_user = NULL,
df_official = NULL,
df_official_metadata = NULL,
taxaid_user = "TAXAID",
taxaid_official_match = NULL,
ta... |
require(tidyverse)
# set up parameters for simulation
param <- expand_grid(
SIA = (seq(0.01, 1, 0.01)),
# stressor intensity 1
SIB = (seq(0.01, 1, 0.01)),
# stressor intensity 2
fA = c(
"linear",
"accelerating",
"diminishing",
"steep_mid",
"steep_ext"
),
# stress-effect... | /Simulations.R | permissive | cjdey/null_models_for_multiple_stressors | R | false | false | 3,493 | r | require(tidyverse)
# set up parameters for simulation
param <- expand_grid(
SIA = (seq(0.01, 1, 0.01)),
# stressor intensity 1
SIB = (seq(0.01, 1, 0.01)),
# stressor intensity 2
fA = c(
"linear",
"accelerating",
"diminishing",
"steep_mid",
"steep_ext"
),
# stress-effect... |
### Plot 1 - histogram
### (histograma para Global_active_power)
download.file(fileUrl,destfile="./data/household_power_consumption.zip")
# Unzip dataSet to /data directory (Extrair o arquivo zipado)
unzip(zipfile="./data/household_power_consumption.zip",exdir="./data")
file <- "./data/household_power_consumptio... | /Plot1.R | no_license | audreimarcelo/ExData_Plotting1 | R | false | false | 799 | r | ### Plot 1 - histogram
### (histograma para Global_active_power)
download.file(fileUrl,destfile="./data/household_power_consumption.zip")
# Unzip dataSet to /data directory (Extrair o arquivo zipado)
unzip(zipfile="./data/household_power_consumption.zip",exdir="./data")
file <- "./data/household_power_consumptio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimal_return_doc.R
\name{optimal_return_doc}
\alias{optimal_return_doc}
\title{Function for generating documentation of return values}
\usage{
optimal_return_doc(type, setting = "basic")
}
\arguments{
\item{type}{string deciding whether thi... | /man/optimal_return_doc.Rd | permissive | Sterniii3/drugdevelopR | R | false | true | 670 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimal_return_doc.R
\name{optimal_return_doc}
\alias{optimal_return_doc}
\title{Function for generating documentation of return values}
\usage{
optimal_return_doc(type, setting = "basic")
}
\arguments{
\item{type}{string deciding whether thi... |
## ----setup, include = FALSE, cache = TRUE--------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
| /data/genthat_extracted_code/contextual/vignettes/contextual.R | no_license | surayaaramli/typeRrh | R | false | false | 144 | r | ## ----setup, include = FALSE, cache = TRUE--------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
|
# Loading and preprocessing the data
dir <- getwd()
file <- paste0(dir, "/activity.csv")
zipfile <- "repdata_data_activity.zip"
if (!exists(file)) unzip(paste0(dir, "/data/", zipfile), exdir = dir)
activity <- read.csv(file)
par(mfcol = c(1,1))
# What is mean total number of steps taken per day?
day_steps <- aggregate... | /PA1_template.R | no_license | marcduran/RepData_PeerAssessment1 | R | false | false | 2,816 | r | # Loading and preprocessing the data
dir <- getwd()
file <- paste0(dir, "/activity.csv")
zipfile <- "repdata_data_activity.zip"
if (!exists(file)) unzip(paste0(dir, "/data/", zipfile), exdir = dir)
activity <- read.csv(file)
par(mfcol = c(1,1))
# What is mean total number of steps taken per day?
day_steps <- aggregate... |
fulldata <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
fulldata$Date <- as.Date(fulldata$Date, format="%d/%m/%Y")
data <- subset(fulldata, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
rm(fullda... | /plot1.R | no_license | he-ulg/Exp.-Data-analysis---Project-1- | R | false | false | 607 | r | fulldata <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
fulldata$Date <- as.Date(fulldata$Date, format="%d/%m/%Y")
data <- subset(fulldata, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
rm(fullda... |
###With this code I fetch all the odds data
setwd("~/soccer_betting/fetch_odds")
source("function_fetch_2015_2016.R")
source("function_match_scoresway_ids.R")
#Fetch the odds for the last year
df_2015_2016 <- createDataFrame()
#Fetch the match_table (to link to scoresway_ids)
df_matches <- createMergeFi... | /fetch_odds/fetch_odds_data.R | no_license | georgevanderhoeven12/soccer_betting | R | false | false | 331 | r | ###With this code I fetch all the odds data
setwd("~/soccer_betting/fetch_odds")
source("function_fetch_2015_2016.R")
source("function_match_scoresway_ids.R")
#Fetch the odds for the last year
df_2015_2016 <- createDataFrame()
#Fetch the match_table (to link to scoresway_ids)
df_matches <- createMergeFi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_parsed_case_internal.R
\name{to_parsed_case_internal}
\alias{to_parsed_case_internal}
\title{Internal parser, which is relevant for preprocessing, parsing and parsing options}
\usage{
to_parsed_case_internal(string, parsing_option = ... | /man/to_parsed_case_internal.Rd | no_license | cran/snakecase | R | false | true | 1,513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_parsed_case_internal.R
\name{to_parsed_case_internal}
\alias{to_parsed_case_internal}
\title{Internal parser, which is relevant for preprocessing, parsing and parsing options}
\usage{
to_parsed_case_internal(string, parsing_option = ... |
################
# analyzing wave 6 (ie singapore) data for unhappy vs happy
# with randomforest
################
source('~/GitHub/World_Values_Survey/WVS_lib.R')
#load data
source('~/GitHub/World_Values_Survey/load_WV6_for_caret.R')
# set Unhappiness
d$Unhappiness <- T
d[which(d$Happiness %in% c("Very happy", "Qui... | /rf_wave6_unhappiness.R | no_license | sonicrick/World_Values_Survey | R | false | false | 6,348 | r | ################
# analyzing wave 6 (ie singapore) data for unhappy vs happy
# with randomforest
################
source('~/GitHub/World_Values_Survey/WVS_lib.R')
#load data
source('~/GitHub/World_Values_Survey/load_WV6_for_caret.R')
# set Unhappiness
d$Unhappiness <- T
d[which(d$Happiness %in% c("Very happy", "Qui... |
#Function to create Plot1 as defined in Exploratory Data Analysis - Week 1 project
#Uses a dataset which must be downloaded and extracted from the following location
#https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
#Data must be downloaded and unzipped in working directory prior... | /plot1.R | no_license | MrBrianCronin/datasciencecoursera | R | false | false | 1,424 | r | #Function to create Plot1 as defined in Exploratory Data Analysis - Week 1 project
#Uses a dataset which must be downloaded and extracted from the following location
#https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
#Data must be downloaded and unzipped in working directory prior... |
gs_rank_regression_ui <- function(id) {
ns <- shiny::NS(id)
htmltools::tagList(
shiny::uiOutput(
outputId = ns("distribution")
),
purrr::map(distributions(include_thres = TRUE), function(dist) {
shiny::conditionalPanel(
condition = glue::glue('input.distribution == "{dist}"'),
... | /modules/tab_getting_started/gs_rank_regression.R | no_license | DavidBarke/weibulltools-app | R | false | false | 1,917 | r | gs_rank_regression_ui <- function(id) {
ns <- shiny::NS(id)
htmltools::tagList(
shiny::uiOutput(
outputId = ns("distribution")
),
purrr::map(distributions(include_thres = TRUE), function(dist) {
shiny::conditionalPanel(
condition = glue::glue('input.distribution == "{dist}"'),
... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 25739
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25715
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25715
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Wintersteiger/RankingFunctions/rankfunc21_signed_64/rankfunc21_signed_64.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 877 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 25739
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25715
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25715
c
c Input Parameter (command line, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hclust.R
\name{gforce.hclust.agglomerate}
\alias{gforce.hclust.agglomerate}
\title{Hierarchical Clustering Agglomeration.}
\usage{
gforce.hclust.agglomerate(X = NULL, dists = NULL)
}
\arguments{
\item{X}{\eqn{n x m} matrix. Each row is treate... | /man/gforce.hclust.agglomerate.Rd | no_license | cran/GFORCE | R | false | true | 505 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hclust.R
\name{gforce.hclust.agglomerate}
\alias{gforce.hclust.agglomerate}
\title{Hierarchical Clustering Agglomeration.}
\usage{
gforce.hclust.agglomerate(X = NULL, dists = NULL)
}
\arguments{
\item{X}{\eqn{n x m} matrix. Each row is treate... |
x <- unique(stMwSeqESC$cell_type)
chosen.cell.types<-grep("MEF",stMwSeq$cell_type)
chosen.cell.types <- c(chosen.cell.types,grep("Stem",stMwSeq$cell_type))
chosen.cell.types <- c(chosen.cell.types,grep("B cell",stMwSeq$cell_type))
chosen.cell.types <- c(chosen.cell.types,grep("T cell",stMwSeq$cell_type))
chosen.cell.t... | /analysis_021620.R | no_license | abspangler13/multi_seq | R | false | false | 774 | r | x <- unique(stMwSeqESC$cell_type)
chosen.cell.types<-grep("MEF",stMwSeq$cell_type)
chosen.cell.types <- c(chosen.cell.types,grep("Stem",stMwSeq$cell_type))
chosen.cell.types <- c(chosen.cell.types,grep("B cell",stMwSeq$cell_type))
chosen.cell.types <- c(chosen.cell.types,grep("T cell",stMwSeq$cell_type))
chosen.cell.t... |
###############
#LIBS
###############
library(lme4)
library(reshape)
library(foreign)
library(ggplot2)
library(plyr)
library(dplyr)
library(data.table)
library(reshape2)
library(Hmisc)
library(mgcv)
library(gdata)
library(car)
library(broom)
library(FNN)
source("/media/NAS/Uni/org/files/Uni/Projects/code/P046.Israel_M... | /Uni/Projects/code/P046.Israel_MAIAC/archive/cnnew/CS03_CreateDB_2007.r | no_license | zeltak/org | R | false | false | 16,473 | r | ###############
#LIBS
###############
library(lme4)
library(reshape)
library(foreign)
library(ggplot2)
library(plyr)
library(dplyr)
library(data.table)
library(reshape2)
library(Hmisc)
library(mgcv)
library(gdata)
library(car)
library(broom)
library(FNN)
source("/media/NAS/Uni/org/files/Uni/Projects/code/P046.Israel_M... |
systematic_sample <- function(n, N, initial=F)
{
k <- floor(N/n)
if(initial==F)
initial <- sample(1:k,1)
cat("Interval=", k, " Starting value=", initial, "\n")
# Put the origin in the value ’initial’
shift <- (1:N) - initial
# I search numbers who are multiple of number k
# Equivalent to find the res... | /systematic.R | no_license | winfang85/capstone | R | false | false | 382 | r | systematic_sample <- function(n, N, initial=F)
{
k <- floor(N/n)
if(initial==F)
initial <- sample(1:k,1)
cat("Interval=", k, " Starting value=", initial, "\n")
# Put the origin in the value ’initial’
shift <- (1:N) - initial
# I search numbers who are multiple of number k
# Equivalent to find the res... |
library("caret")
#data collection
setwd("E:/final_data")
data <- read.csv("final_data.csv", header=F)
#data preparation - adding column header
header_name<-c("year", "month", "day", "atime", "placement_id", "exchange_id", "hour",
"name", "exchange_name", "site_id", "site_name", "size", "target")
... | /GlobalRed.r | no_license | kazitoufiq/conversion-prediction-model-in-R | R | false | false | 6,263 | r | library("caret")
#data collection
setwd("E:/final_data")
data <- read.csv("final_data.csv", header=F)
#data preparation - adding column header
header_name<-c("year", "month", "day", "atime", "placement_id", "exchange_id", "hour",
"name", "exchange_name", "site_id", "site_name", "size", "target")
... |
library(readr)
library(shiny)
library(dplyr) #for data manipulation
library(tidyr) #for reshaping data
library(ggplot2)
library(scales) #for labels as percentage
library(RCurl)#for getting url content
library(jpeg) #for reading JPEG file
library(grid) #for rendering a raster grob
#read the csv files, make sure it is ... | /server.R | no_license | rockmk2013/FruitAndVeg_analysis_shiny_app | R | false | false | 7,431 | r | library(readr)
library(shiny)
library(dplyr) #for data manipulation
library(tidyr) #for reshaping data
library(ggplot2)
library(scales) #for labels as percentage
library(RCurl)#for getting url content
library(jpeg) #for reading JPEG file
library(grid) #for rendering a raster grob
#read the csv files, make sure it is ... |
\name{OraDriver-class}
\docType{class}
\alias{OraDriver-class}
\title{Class OraDriver}
\description{
An Oracle driver class implementing the R database interface (DBI) API.
}
\section{Generators}{
The main generators are \code{\link[DBI]{dbDriver}} and
\code{\link{Oracle}}.
}
\section{Extends}{
Class \code{"D... | /inst/doc/man/en/OraDriver-class.Rd | no_license | cran/ROracle | R | false | false | 1,125 | rd | \name{OraDriver-class}
\docType{class}
\alias{OraDriver-class}
\title{Class OraDriver}
\description{
An Oracle driver class implementing the R database interface (DBI) API.
}
\section{Generators}{
The main generators are \code{\link[DBI]{dbDriver}} and
\code{\link{Oracle}}.
}
\section{Extends}{
Class \code{"D... |
### Load Packages
library(dplyr)
library(XML)
library(RCurl)
library(ggplot2)
### Data Cleaning
x <- read.csv("international_soccer_game_data.csv", as.is = T)
n <- nrow(x)
x$date <- as.Date(x$date,"%Y-%m-%d")
x$days_since <- as.numeric(Sys.Date() - x$date)
### Dulplicate the Data Set for H/A
home <- select(x, home_te... | /knockoutdisparity.R | no_license | lbenz730/world_cup | R | false | false | 5,530 | r | ### Load Packages
library(dplyr)
library(XML)
library(RCurl)
library(ggplot2)
### Data Cleaning
x <- read.csv("international_soccer_game_data.csv", as.is = T)
n <- nrow(x)
x$date <- as.Date(x$date,"%Y-%m-%d")
x$days_since <- as.numeric(Sys.Date() - x$date)
### Dulplicate the Data Set for H/A
home <- select(x, home_te... |
#################################################################################
##
## R package rugarch by Alexios Ghalanos Copyright (C) 2008-2015.
## This file is part of the R package rugarch.
##
## The R package rugarch is free software: you can redistribute it and/or modify
## it under the terms of... | /R/rugarch-tests.R | no_license | Dwj359582058/rugarch | R | false | false | 44,111 | r | #################################################################################
##
## R package rugarch by Alexios Ghalanos Copyright (C) 2008-2015.
## This file is part of the R package rugarch.
##
## The R package rugarch is free software: you can redistribute it and/or modify
## it under the terms of... |
library(tidyverse)
library(ggthemes)
library(gganimate)
library(ggimage)
library(gifski)
full_trains <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-02-26/full_trains.csv")
p <- full_trains %>%
filter(service == "International" & year == 2017) %>%
unite(journey, de... | /animation_code.R | no_license | betatim/SNCF_TidyTuesday | R | false | false | 1,197 | r | library(tidyverse)
library(ggthemes)
library(gganimate)
library(ggimage)
library(gifski)
full_trains <- read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-02-26/full_trains.csv")
p <- full_trains %>%
filter(service == "International" & year == 2017) %>%
unite(journey, de... |
#Plot 1:Global Active power
#Setting working directory: Choose de directory where your data holds place
setwd("C:/Users/Antonella/Desktop/ExploratoryData/ExData_Plotting1")
data <- read.table("household_power_consumption.txt", sep=";", header = TRUE)# Hole set of data
DataToUSE<-data[66637:69516,]#Selecting data thrug... | /plot 1.R | no_license | antonellamarabotto/ExData_Plotting1 | R | false | false | 860 | r | #Plot 1:Global Active power
#Setting working directory: Choose de directory where your data holds place
setwd("C:/Users/Antonella/Desktop/ExploratoryData/ExData_Plotting1")
data <- read.table("household_power_consumption.txt", sep=";", header = TRUE)# Hole set of data
DataToUSE<-data[66637:69516,]#Selecting data thrug... |
power_ols<-function(thetas,N,R,sv,cont,theta0,alpha)
{
ind<-0
set.seed(round((thetas[1]+thetas[2])*100000,digits=0))
for(r in 1:R)
{
y<-RandomARMod(N,thetas[1],thetas[2],sv,cont)
ols_ts(y,theta0)->olsstat
alphaST<-alpha
ind1<-(abs(olsstat$Ttheta0)>qnorm(1-alphaST/4))
ind2<-(abs(olsstat$Tthet... | /R/power_ols.R | no_license | SimoneHermann/rexpar | R | false | false | 403 | r | power_ols<-function(thetas,N,R,sv,cont,theta0,alpha)
{
ind<-0
set.seed(round((thetas[1]+thetas[2])*100000,digits=0))
for(r in 1:R)
{
y<-RandomARMod(N,thetas[1],thetas[2],sv,cont)
ols_ts(y,theta0)->olsstat
alphaST<-alpha
ind1<-(abs(olsstat$Ttheta0)>qnorm(1-alphaST/4))
ind2<-(abs(olsstat$Tthet... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/pretty_init.R
\name{pretty_init}
\alias{pretty_init}
\title{pretty_init}
\usage{
pretty_init(pal.nr = 3)
}
\arguments{
\item{palnr}{between 1-4; one of 4 available coulour palets.}
}
\value{
NA
}
\description{
Initialize colour palet ... | /myLib/man/pretty_init.Rd | no_license | MrOoijer/R-work | R | false | false | 386 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/pretty_init.R
\name{pretty_init}
\alias{pretty_init}
\title{pretty_init}
\usage{
pretty_init(pal.nr = 3)
}
\arguments{
\item{palnr}{between 1-4; one of 4 available coulour palets.}
}
\value{
NA
}
\description{
Initialize colour palet ... |
source("../utils.R")
library(scater)
library(stringr)
options(stringsAsFactors=FALSE)
library(reshape2)
outdir <- "dataset/melanoma"
if(!dir.exists(outdir)) dir.create(outdir)
#################################################################################################
# 1. Read the data
###########################... | /1-ReadData/readData_melanoma.R | permissive | zhengtaoxiao/Single-Cell-Metabolic-Landscape | R | false | false | 4,820 | r | source("../utils.R")
library(scater)
library(stringr)
options(stringsAsFactors=FALSE)
library(reshape2)
outdir <- "dataset/melanoma"
if(!dir.exists(outdir)) dir.create(outdir)
#################################################################################################
# 1. Read the data
###########################... |
# Set new Date class for easy data extract
setClass('myDate')
setAs("character","myDate", function(from) as.Date(from, format="%d/%m/%Y") )
# Read data and define columns
data <- read.table("household_power_consumption.txt", header=T, sep=";", colClasses = c("myDate", "character",rep("numeric",7)), na.strings="?")
# ... | /plot3.R | no_license | HietikkoJ/ExData_Plotting1 | R | false | false | 1,612 | r | # Set new Date class for easy data extract
setClass('myDate')
setAs("character","myDate", function(from) as.Date(from, format="%d/%m/%Y") )
# Read data and define columns
data <- read.table("household_power_consumption.txt", header=T, sep=";", colClasses = c("myDate", "character",rep("numeric",7)), na.strings="?")
# ... |
#' @title Delete a tiny.cc url
#' @description Delete a tiny.cc short URL once created using the same tiny.cc API credentials.
#' @param shortURL character, the short URL to be deleted. Can be a full tiny.cc short URL (like \code{http://tiny.cc/foobar}) or just the hash (like \code{foobar}).
#' @return A list, represen... | /R/delete.R | no_license | ottlngr/tinycc | R | false | false | 1,362 | r | #' @title Delete a tiny.cc url
#' @description Delete a tiny.cc short URL once created using the same tiny.cc API credentials.
#' @param shortURL character, the short URL to be deleted. Can be a full tiny.cc short URL (like \code{http://tiny.cc/foobar}) or just the hash (like \code{foobar}).
#' @return A list, represen... |
#' Intialise a new Bayes Fst Object
#'
#' @param data a dataset of class \code{bayesFstData} loaded by \code{readData}.
#'
#' @return an object of class \code{bayesFst}
#'
#' @importFrom methods new
#' @examples
#' bd = readData(system.file("extdata", "data_BB04.json", package = "rbayesfst"))
#' bf = init(bd)
#' @exp... | /R/init.R | no_license | jmcurran/rbayesfst | R | false | false | 474 | r | #' Intialise a new Bayes Fst Object
#'
#' @param data a dataset of class \code{bayesFstData} loaded by \code{readData}.
#'
#' @return an object of class \code{bayesFst}
#'
#' @importFrom methods new
#' @examples
#' bd = readData(system.file("extdata", "data_BB04.json", package = "rbayesfst"))
#' bf = init(bd)
#' @exp... |
/first_hw.R | no_license | E-Stanislav/R | R | false | false | 5,893 | r | ||
# Exercise 15 - A shiny function
#
#
# Parameterize the function below. Notice that the function
# uses `faithful`, a data set that comes with base R.
#
# 1. Define an argument named `vec` for the function.
# + `vec` should take a vector of numbers
# 2. Modify the histogram call so that it plots a histogram of `v... | /inst/exercises/exercise-15.R | no_license | guanlongtianzi/reportsWS | R | false | false | 1,076 | r | # Exercise 15 - A shiny function
#
#
# Parameterize the function below. Notice that the function
# uses `faithful`, a data set that comes with base R.
#
# 1. Define an argument named `vec` for the function.
# + `vec` should take a vector of numbers
# 2. Modify the histogram call so that it plots a histogram of `v... |
library(testthat)
library(rap)
test_check("rap")
| /tests/testthat.R | permissive | sowla/rap | R | false | false | 50 | r | library(testthat)
library(rap)
test_check("rap")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myTarAuth.R
\name{myTarSetTokenPath}
\alias{myTarSetTokenPath}
\title{Set path to auth cache}
\usage{
myTarSetTokenPath(token_path)
}
\arguments{
\item{token_path}{Path to directory where you save credential data}
}
\value{
No ret... | /man/myTarSetTokenPath.Rd | no_license | cran/rmytarget | R | false | true | 401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myTarAuth.R
\name{myTarSetTokenPath}
\alias{myTarSetTokenPath}
\title{Set path to auth cache}
\usage{
myTarSetTokenPath(token_path)
}
\arguments{
\item{token_path}{Path to directory where you save credential data}
}
\value{
No ret... |
#' Dissimilarity
#'
#' This is an approximate measure
#'
#'
dissim <- function(...) {
UseMethod("dissim")
}
#' @rdname dissim
dissim.HMM <- function(x, y1, y2) {
E <- sapply(y2, function(z)
if (!is.na(z)) emissions(x)[, z]
else rep(1, nstates(x)))
output <- apply(E * sstates(x, y1), 2, sum)
return(-su... | /R/dissim.R | no_license | Luis-Sanguiao/destim | R | false | false | 356 | r | #' Dissimilarity
#'
#' This is an approximate measure
#'
#'
dissim <- function(...) {
UseMethod("dissim")
}
#' @rdname dissim
dissim.HMM <- function(x, y1, y2) {
E <- sapply(y2, function(z)
if (!is.na(z)) emissions(x)[, z]
else rep(1, nstates(x)))
output <- apply(E * sstates(x, y1), 2, sum)
return(-su... |
##Final assignment - Exploratory data
#set wd
#setwd("C:/Users/jjack_000/Desktop/Data Science JH course/Exploratory Data Analysis")
setwd("C:/Users/Sophy/Desktop/JJ Coursera/Exploratory Data/ExData_Final")
##read in data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
##Plot 1
... | /FinalAssignCodeExploratoryData.R | no_license | jjacko1623/ExData_Final | R | false | false | 8,175 | r | ##Final assignment - Exploratory data
#set wd
#setwd("C:/Users/jjack_000/Desktop/Data Science JH course/Exploratory Data Analysis")
setwd("C:/Users/Sophy/Desktop/JJ Coursera/Exploratory Data/ExData_Final")
##read in data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
##Plot 1
... |
# Prepare to clip block groups to water
# NOTE: shapefiles are too big for github, gitignored
# Block group data source: IPUMS NHGIS 2019 national shapefile
# https://nhgis.org/
# USGS NHD water source: https://www.usgs.gov/core-science-systems/ngp/national-hydrography/access-national-hydrography-products
# State sha... | /scripts/clip-to-water.R | no_license | TeodoroJMartinez/2021-delta-appalachia-stroke-access | R | false | false | 4,693 | r | # Prepare to clip block groups to water
# NOTE: shapefiles are too big for github, gitignored
# Block group data source: IPUMS NHGIS 2019 national shapefile
# https://nhgis.org/
# USGS NHD water source: https://www.usgs.gov/core-science-systems/ngp/national-hydrography/access-national-hydrography-products
# State sha... |
##Set Working Directory to where 'household_power_consumption.txt' is located
#Read data
dat <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
#Subset the dates 2007-02-01 and 2007-02-02 from data
subDat <- subset(dat, dat$Date %in% c('1/2/2007', '2/2/2007'), select = Date:Su... | /plot2.R | no_license | SuHamza/ExData_Plotting1 | R | false | false | 1,006 | r | ##Set Working Directory to where 'household_power_consumption.txt' is located
#Read data
dat <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
#Subset the dates 2007-02-01 and 2007-02-02 from data
subDat <- subset(dat, dat$Date %in% c('1/2/2007', '2/2/2007'), select = Date:Su... |
#' @title Decimate densely sampled 13C time series
#' @description When data of a record are more closely spaced than \code{sample_minutes},
#' these are spline-subsampled to \code{sample_minutes}. In the region of the initial slope,
#' i.e. the initial fifth of the time, the record is sampled more densely.
#' Too... | /R/subsample_data.R | no_license | cran/breathtestcore | R | false | false | 2,250 | r | #' @title Decimate densely sampled 13C time series
#' @description When data of a record are more closely spaced than \code{sample_minutes},
#' these are spline-subsampled to \code{sample_minutes}. In the region of the initial slope,
#' i.e. the initial fifth of the time, the record is sampled more densely.
#' Too... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/list.R
\name{list_layers_paleo}
\alias{list_layers_paleo}
\title{List the paleo climate layers provided by one or more datasets}
\usage{
list_layers_paleo(datasets = c(), model_name = NA, epoch = NA,
years_ago = NA, terrestrial = NA,... | /man/list_layers_paleo.Rd | permissive | cran/sdmpredictors | R | false | true | 2,176 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/list.R
\name{list_layers_paleo}
\alias{list_layers_paleo}
\title{List the paleo climate layers provided by one or more datasets}
\usage{
list_layers_paleo(datasets = c(), model_name = NA, epoch = NA,
years_ago = NA, terrestrial = NA,... |
## Sample gamma from prior distribution
# pars <- c(pars.f, pars.g, theta, gamma)
# h0 = f * exp(g)
# let f be a function in survspat. eg. exponentialHaz
# breaks: a vector of breaking points for intervals, where starting and end points are min(t0) and max(t + t0)
# t: survival times (duration)
# t_0: real entering ... | /R/baseHazST.R | no_license | cran/spatsurv | R | false | false | 15,979 | r |
## Sample gamma from prior distribution
# pars <- c(pars.f, pars.g, theta, gamma)
# h0 = f * exp(g)
# let f be a function in survspat. eg. exponentialHaz
# breaks: a vector of breaking points for intervals, where starting and end points are min(t0) and max(t + t0)
# t: survival times (duration)
# t_0: real entering ... |
#####Fam and Rand vQTL FINAL#####
library("qtl")
library("vqtl")
#read in data
random <-read.cross(file = url("https://raw.githubusercontent.com/tbillman/Stapleton-Lab/master/vQTL%20Random%20and%20Family/data/tidied/Random2.csv"))
random <- drop.nullmarkers(random)
#scan with variance
random <- calc.genoprob(random)
ro... | /vQTL Random and Family/famrandfinal.R | no_license | michael-byrd/Stapleton-Lab | R | false | false | 8,492 | r | #####Fam and Rand vQTL FINAL#####
library("qtl")
library("vqtl")
#read in data
random <-read.cross(file = url("https://raw.githubusercontent.com/tbillman/Stapleton-Lab/master/vQTL%20Random%20and%20Family/data/tidied/Random2.csv"))
random <- drop.nullmarkers(random)
#scan with variance
random <- calc.genoprob(random)
ro... |
/regressão_logistica1.R | no_license | danielaapg/Machine-Learning | R | false | false | 1,809 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScriptFonctionsSourcesVpack.r
\name{label.corV2}
\alias{label.corV2}
\title{Affichage d'espèces correlées}
\usage{
label.corV2(
COO_ESP,
COO_REL,
RELEVES,
METHOD = "defaut",
P = "defaut",
RHO = "defaut",
N = "defaut",
COEF = 1... | /man/label.corV2.Rd | no_license | RenaudJau/Renaudpack2 | R | false | true | 3,978 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScriptFonctionsSourcesVpack.r
\name{label.corV2}
\alias{label.corV2}
\title{Affichage d'espèces correlées}
\usage{
label.corV2(
COO_ESP,
COO_REL,
RELEVES,
METHOD = "defaut",
P = "defaut",
RHO = "defaut",
N = "defaut",
COEF = 1... |
library(data.table)
library(dplyr)
library(ggplot2)
library(Matrix)
library(xgboost)
library(rpart)
library(randomForest)
library(ROSE)
library(car)
library(caret)
data("diamonds")
df <- diamonds
diamonds <- diamonds %>% mutate_if(is.integer, as.numeric)
# Определеним зависимую переменную
# одну к... | /method_pro/DS9 2018.06.26.R | no_license | temirgaliyev/r_scripts | R | false | false | 3,695 | r | library(data.table)
library(dplyr)
library(ggplot2)
library(Matrix)
library(xgboost)
library(rpart)
library(randomForest)
library(ROSE)
library(car)
library(caret)
data("diamonds")
df <- diamonds
diamonds <- diamonds %>% mutate_if(is.integer, as.numeric)
# Определеним зависимую переменную
# одну к... |
# Script for reading and plotting Plot 1
#read data file from same directory as the R script
data <- read.table("household_power_consumption.txt", as.is=TRUE, header=TRUE, sep=";",
quote="", dec=".", na.strings = "?")
#merge date and time columns to a single column of type DateTime class
data$Date... | /plot1.R | no_license | nsanghi/Coursera-DataSci-ExData_Plotting1 | R | false | false | 874 | r | # Script for reading and plotting Plot 1
#read data file from same directory as the R script
data <- read.table("household_power_consumption.txt", as.is=TRUE, header=TRUE, sep=";",
quote="", dec=".", na.strings = "?")
#merge date and time columns to a single column of type DateTime class
data$Date... |
library(glmnet)
library(doMC)
library(survival)
library(data.table)
library(mltools)
library(CoxBoost)
library(randomForestSRC)
library(CoxHD)
source('../../tools_prognosis/run_prognosis.R')
source("feature_importance.R")
df_final <- read.table("../data_frame_final_prognosis.tsv")
##---------------------------------... | /analysis/prognosis/Prognosis_final_July/Reshuffling/.ipynb_checkpoints/reshuffle4-Copy2-checkpoint.R | no_license | reyear/AML_Analysis | R | false | false | 5,576 | r | library(glmnet)
library(doMC)
library(survival)
library(data.table)
library(mltools)
library(CoxBoost)
library(randomForestSRC)
library(CoxHD)
source('../../tools_prognosis/run_prognosis.R')
source("feature_importance.R")
df_final <- read.table("../data_frame_final_prognosis.tsv")
##---------------------------------... |
#' raster.breadth, applies measures of niche breadth to an ENM
#'
#' This function measures the spatial heterogeneity of the distribution of suitability
#' scores from an ENM. It returns Levins' two metrics of niche breadth.
#'
#' @param x An object of class raster or RasterLayer, or an ENMTools model object containin... | /R/raster.breadth.R | no_license | stevenconnorg/ENMTools | R | false | false | 1,068 | r | #' raster.breadth, applies measures of niche breadth to an ENM
#'
#' This function measures the spatial heterogeneity of the distribution of suitability
#' scores from an ENM. It returns Levins' two metrics of niche breadth.
#'
#' @param x An object of class raster or RasterLayer, or an ENMTools model object containin... |
#' @export plot.hclustgeo.uniq
#' @name plot.hclustgeo.uniq
#' @method plot hclustgeo.uniq
#' @S3method plot hclustgeo.uniq
#' @title Differents plots available with the method \code{hclustgeo.uniq}.
#' @description This function provide some graphics and maps obtained with the method \code{hclustgeo.uniq}
#' @pa... | /ClustGeo/R/plot.hclustgeo.uniq.R | no_license | ingted/R-Examples | R | false | false | 4,441 | r | #' @export plot.hclustgeo.uniq
#' @name plot.hclustgeo.uniq
#' @method plot hclustgeo.uniq
#' @S3method plot hclustgeo.uniq
#' @title Differents plots available with the method \code{hclustgeo.uniq}.
#' @description This function provide some graphics and maps obtained with the method \code{hclustgeo.uniq}
#' @pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinyDiplo.R
\name{shinyDiplo}
\alias{shinyDiplo}
\title{Shiny Diplotype module}
\usage{
shinyDiplo(
input,
output,
session,
win_par,
phe_mx,
cov_df,
K_chr,
analyses_df,
project_info,
allele_info
)
}
\arguments{
\item{inpu... | /man/shinyDiplo.Rd | no_license | byandell/qtl2shiny | R | false | true | 692 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinyDiplo.R
\name{shinyDiplo}
\alias{shinyDiplo}
\title{Shiny Diplotype module}
\usage{
shinyDiplo(
input,
output,
session,
win_par,
phe_mx,
cov_df,
K_chr,
analyses_df,
project_info,
allele_info
)
}
\arguments{
\item{inpu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_data.R
\name{prep_data}
\alias{prep_data}
\title{Data Preparation Function}
\usage{
prep_data(latest_vaccs)
}
\arguments{
\item{latest_vaccs}{A csv file giving the latest data on vaccinations with the following collumns required: iso_a2,... | /man/prep_data.Rd | permissive | upfl0/polivax | R | false | true | 515 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prep_data.R
\name{prep_data}
\alias{prep_data}
\title{Data Preparation Function}
\usage{
prep_data(latest_vaccs)
}
\arguments{
\item{latest_vaccs}{A csv file giving the latest data on vaccinations with the following collumns required: iso_a2,... |
/Data processing.R | no_license | Allisterh/GaR-Project | R | false | false | 4,319 | r | ||
install.packages("jsonlite")
install.packages("rjson")
install.packages("data.table")
install.packages("readxl")
setwd("D:/Dropbox/Hugo/Patenty/genData")
#setwd("C:/Users/vitekzkytek/Dropbox/Hugo/Patenty/genData")
#IMPORT EXCEL
library(readxl)
library(jsonlite)
patents <- read_excel("181102_Data_FakePeriods.xlsx")
pa... | /genData/json.R | no_license | vitekzkytek/PatentCitations2 | R | false | false | 3,134 | r | install.packages("jsonlite")
install.packages("rjson")
install.packages("data.table")
install.packages("readxl")
setwd("D:/Dropbox/Hugo/Patenty/genData")
#setwd("C:/Users/vitekzkytek/Dropbox/Hugo/Patenty/genData")
#IMPORT EXCEL
library(readxl)
library(jsonlite)
patents <- read_excel("181102_Data_FakePeriods.xlsx")
pa... |
# Copyright (C) 2011 Angelique Gobet & Alban Ramette
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This prog... | /MultiCoLA_Gobet_et_al_2010/cutoff.impact.fig.1.4.r | no_license | Sibo-Zhang/Apigo-and-Oono-2018 | R | false | false | 2,908 | r | # Copyright (C) 2011 Angelique Gobet & Alban Ramette
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This prog... |
#########################################################
## Purpose: Final knn
## Developer: KD
##
#########################################################
rm(list=ls())
filename<-file.choose() ## reading IBM dataset
dsn<- read.csv(filename)
Survived2<-ifelse(dsn$Survived=='Yes',1,0)
Gend... | /HW/HW_Final_Ann_solution.R | no_license | IceTwilight/CS513 | R | false | false | 1,268 | r | #########################################################
## Purpose: Final knn
## Developer: KD
##
#########################################################
rm(list=ls())
filename<-file.choose() ## reading IBM dataset
dsn<- read.csv(filename)
Survived2<-ifelse(dsn$Survived=='Yes',1,0)
Gend... |
stubs.sampling <-
function(s,g)#g: permuting graph
{
k=degree(g)
v=c(1:length(k))
vs=rep(v,k)
S=NULL
for(i in 1:s)
{
S=rbind(S,sample(vs,length(vs)))
}
return(S)
}
| /R/stubs.sampling.R | no_license | taichi43/SNscan | R | false | false | 174 | r | stubs.sampling <-
function(s,g)#g: permuting graph
{
k=degree(g)
v=c(1:length(k))
vs=rep(v,k)
S=NULL
for(i in 1:s)
{
S=rbind(S,sample(vs,length(vs)))
}
return(S)
}
|
\name{qed}
\alias{qed}
\title{Compute the Quantile Equivalence Diagnostic}
\description{
Compute the quantile equivalence diagnostic
}
\usage{
qed(chains, prob, quant, epsilon = 0.01, alpha = 0.05, pars = NULL)
}
\arguments{
\item{chains}{The MCMC samples. See details for more}
\item{prob}{numeric value in... | /man/qed.Rd | no_license | mdlerch/QuantileEquivalenceMCMC | R | false | false | 1,803 | rd | \name{qed}
\alias{qed}
\title{Compute the Quantile Equivalence Diagnostic}
\description{
Compute the quantile equivalence diagnostic
}
\usage{
qed(chains, prob, quant, epsilon = 0.01, alpha = 0.05, pars = NULL)
}
\arguments{
\item{chains}{The MCMC samples. See details for more}
\item{prob}{numeric value in... |
#This function caches the inverse of a matrix
#The makeCacheMatrix function creates a special matrix object that can cache
#its inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() {x}
setInverse <- function(inverse) {inv <<- in... | /cachematrix.R | no_license | AbiolaPaulAyodele/ProgrammingAssignment2 | R | false | false | 805 | r | #This function caches the inverse of a matrix
#The makeCacheMatrix function creates a special matrix object that can cache
#its inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() {x}
setInverse <- function(inverse) {inv <<- in... |
# Function to import a bedfile/gfffile and put the information into a GRange
.bed.to.GRanges <- function(bedfile, ...) {
# create conexion to the file with TSS coordinates (in Bed format)
con <- file(bedfile)
grFromBed <- import(con, "BED", asRangedData = FALSE, trackLine = FALSE)
# close conexion to t... | /R/coord.to.granges.R | no_license | elowy01/CoverageView | R | false | false | 749 | r | # Function to import a bedfile/gfffile and put the information into a GRange
.bed.to.GRanges <- function(bedfile, ...) {
# create conexion to the file with TSS coordinates (in Bed format)
con <- file(bedfile)
grFromBed <- import(con, "BED", asRangedData = FALSE, trackLine = FALSE)
# close conexion to t... |
library(astsa)
library(forecast)
HSX = read.csv("CafeF.HSX.Upto16.11.2018.csv")
TCB = HSX[HSX$X.Ticker. == "TCB",]
UPCOM = read.csv("CafeF.UPCOM.Upto16.11.2018.csv")
TCB = UPCOM[UPCOM$X.Ticker. == "TCB",]
TCB_High = TCB$X.High.
TCB_Low = TCB$X.Low.
TCB_Close = TCB$X.Close.
TCB_Open = TCB$X.Open.
ts_TCB_Close = ts(re... | /Week 6/TCB.R | no_license | pvt2345/timeseries | R | false | false | 2,067 | r | library(astsa)
library(forecast)
HSX = read.csv("CafeF.HSX.Upto16.11.2018.csv")
TCB = HSX[HSX$X.Ticker. == "TCB",]
UPCOM = read.csv("CafeF.UPCOM.Upto16.11.2018.csv")
TCB = UPCOM[UPCOM$X.Ticker. == "TCB",]
TCB_High = TCB$X.High.
TCB_Low = TCB$X.Low.
TCB_Close = TCB$X.Close.
TCB_Open = TCB$X.Open.
ts_TCB_Close = ts(re... |
library(testthat)
# most common expectations:
# equality: expect_equal() and expect_identical()
# regexp: expect_match()
# catch-all: expect_true() and expect_false()
# console output: expect_output()
# messages: expect_message()
# warning: expect_warning()
# errors: expe... | /tests/testthat/test-05-basicLayoutTests.R | no_license | hyunyulhenry/pivottabler | R | false | false | 56,864 | r | library(testthat)
# most common expectations:
# equality: expect_equal() and expect_identical()
# regexp: expect_match()
# catch-all: expect_true() and expect_false()
# console output: expect_output()
# messages: expect_message()
# warning: expect_warning()
# errors: expe... |
testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = integer(0), booklet_score = integer(0), include_rsp = integer(0), item_id = integer(0), item_score = integer(0), module_nbr = integer(0), person_id = ... | /dexterMST/inst/testfiles/make_booklets_unsafe/AFL_make_booklets_unsafe/make_booklets_unsafe_valgrind_files/1615943105-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 513 | r | testlist <- list(nmod = NULL, id = NULL, score = NULL, rsp = NULL, id = NULL, score = NULL, nbr = NULL, id = NULL, bk_nmod = integer(0), booklet_id = integer(0), booklet_score = integer(0), include_rsp = integer(0), item_id = integer(0), item_score = integer(0), module_nbr = integer(0), person_id = ... |
library(maptools)
library(ggplot2)
library(broom)
Lands <- readOGR(dsn = "C:/ZSwork/glbm/Experiment2/ne_110m_land", layer = "ne_110m_land")
lLands <- as(Lands, "SpatialPolygons")
llLands <- slot(lLands, "polygons")
lpoly <- lapply(llLands, slot, "Polygons") #At this point we have a list of SpatialPolygons
## Change th... | /Experiment1b/worldggplot.R | no_license | WhythiskolaveriD/GM_experiments_BDV | R | false | false | 1,116 | r | library(maptools)
library(ggplot2)
library(broom)
Lands <- readOGR(dsn = "C:/ZSwork/glbm/Experiment2/ne_110m_land", layer = "ne_110m_land")
lLands <- as(Lands, "SpatialPolygons")
llLands <- slot(lLands, "polygons")
lpoly <- lapply(llLands, slot, "Polygons") #At this point we have a list of SpatialPolygons
## Change th... |
## makeCacheMatrix creates a special "matrix" object that can cache its inverse, which is really a list containing a function to
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse of the matrix
## 4. get the value of the inverse of the matrix
makeCacheMatrix <- func... | /cachematrix.R | no_license | GitHubUser314314/ProgrammingAssignment2 | R | false | false | 1,464 | r |
## makeCacheMatrix creates a special "matrix" object that can cache its inverse, which is really a list containing a function to
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse of the matrix
## 4. get the value of the inverse of the matrix
makeCacheMatrix <- func... |
#### Preamble ####
# Purpose: Prepare and clean the survey data downloaded from https://sda-artsci-utoronto-ca.myaccess.library.utoronto.ca/cgi-bin/sda/hsda?harcsda4+gss30
#(2016 General social survey on Canadians at Work and Home)
# Author: Xi Zheng(1005153628)
# Data: 20 December 2020
# Contact: xi.zheng@mail.utoront... | /cleanGSS.R | no_license | xixiaoguai727/304FinalProject | R | false | false | 3,630 | r | #### Preamble ####
# Purpose: Prepare and clean the survey data downloaded from https://sda-artsci-utoronto-ca.myaccess.library.utoronto.ca/cgi-bin/sda/hsda?harcsda4+gss30
#(2016 General social survey on Canadians at Work and Home)
# Author: Xi Zheng(1005153628)
# Data: 20 December 2020
# Contact: xi.zheng@mail.utoront... |
\name{cumul.rma.mh}
\alias{cumul.rma.mh}
\alias{cumul.rma.peto}
\title{Cumulative Meta-Analysis for rma.mh and rma.peto Objects}
\description{
The functions \code{leave1out.rma.mh} and \code{leave1out.rma.peto} repeatedly fit the specified model, adding one observation (i.e., 2x2 table) at a time to the model.
}
\usag... | /R/metafor/metafor_1.0-1.tar/metafor/man/cumul.rma.mh.Rd | no_license | HocineTighi/OpenMeta-analyst- | R | false | false | 2,625 | rd | \name{cumul.rma.mh}
\alias{cumul.rma.mh}
\alias{cumul.rma.peto}
\title{Cumulative Meta-Analysis for rma.mh and rma.peto Objects}
\description{
The functions \code{leave1out.rma.mh} and \code{leave1out.rma.peto} repeatedly fit the specified model, adding one observation (i.e., 2x2 table) at a time to the model.
}
\usag... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/customers.R
\name{sq_get_customer}
\alias{sq_get_customer}
\title{Get Customer}
\usage{
sq_get_customer(customer_id, verbose = FALSE)
}
\arguments{
\item{customer_id}{character; the Square ID assigned to each unique customer.
This can be fou... | /man/sq_get_customer.Rd | no_license | muschellij2/squareupr | R | false | true | 668 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/customers.R
\name{sq_get_customer}
\alias{sq_get_customer}
\title{Get Customer}
\usage{
sq_get_customer(customer_id, verbose = FALSE)
}
\arguments{
\item{customer_id}{character; the Square ID assigned to each unique customer.
This can be fou... |
as_group_map_function <- function(.f) {
.f <- rlang::as_function(.f)
if (length(form <- formals(.f)) < 2 && ! "..." %in% names(form)){
stop("The function must accept at least two arguments. You can use ... to absorb unused components")
}
.f
}
#' Apply a function to each group
#'
#' @description
#' \Sexpr[... | /R/group_map.R | permissive | pablobernabeu/dplyr | R | false | false | 6,382 | r |
as_group_map_function <- function(.f) {
.f <- rlang::as_function(.f)
if (length(form <- formals(.f)) < 2 && ! "..." %in% names(form)){
stop("The function must accept at least two arguments. You can use ... to absorb unused components")
}
.f
}
#' Apply a function to each group
#'
#' @description
#' \Sexpr[... |
### Exploratory Data Analysis
### Week 1 Project
### Plot 2
## Get the data from the web
temp <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp,mode="wb")
unzip(temp)
## Load the data set into the workspace
PowerData <- read.table("household_power... | /plot2.R | no_license | chrisrowland/ExData_Plotting1 | R | false | false | 1,029 | r | ### Exploratory Data Analysis
### Week 1 Project
### Plot 2
## Get the data from the web
temp <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp,mode="wb")
unzip(temp)
## Load the data set into the workspace
PowerData <- read.table("household_power... |
#' Multi-view agglomeration/splitting K-means clustering algorithm
#'
#' This package incorporates algorithms for aggregating or splitting an
#' existing hard or soft classification using multi-view data.
#'
#' \tabular{ll}{ Package: \tab maskmeans\cr Type: \tab Package\cr Version:
#' \tab 0.0.15\cr Date: \tab 2021-11... | /R/maskmeans-package.R | no_license | vishalbelsare/maskmeans | R | false | false | 11,615 | r | #' Multi-view agglomeration/splitting K-means clustering algorithm
#'
#' This package incorporates algorithms for aggregating or splitting an
#' existing hard or soft classification using multi-view data.
#'
#' \tabular{ll}{ Package: \tab maskmeans\cr Type: \tab Package\cr Version:
#' \tab 0.0.15\cr Date: \tab 2021-11... |
sidebarLayout(
sidebarPanel(
useShinyjs(),
# tabsetPanel(
# tabPanel("CSV file",
h4(tags$b("Step1. Download GEO Data")),#####step1 数据处理输入
#1 填写GEO号直接生成样本
textInput(inputId = "gse.id",
label = h5("Input GSE Series Number"),
value = "GSE16020",#"GSE32575",GSE37455 ... | /99test/10MFSgeo_back/0_datainput_ui.R | permissive | ricciardi/mephas_web | R | false | false | 7,379 | r | sidebarLayout(
sidebarPanel(
useShinyjs(),
# tabsetPanel(
# tabPanel("CSV file",
h4(tags$b("Step1. Download GEO Data")),#####step1 数据处理输入
#1 填写GEO号直接生成样本
textInput(inputId = "gse.id",
label = h5("Input GSE Series Number"),
value = "GSE16020",#"GSE32575",GSE37455 ... |
library(shiny)
shinyUI(fluidPage(
titlePanel("App for predicting next word when typing text"),
sidebarLayout(
sidebarPanel(
em("Instructions for using the app:"),
p("Select the type of text, enter the text and then click the 'submit' button. It will take a while to render the next word."),
... | /ui.R | no_license | rameekarthikeyan/PredictNext | R | false | false | 770 | r | library(shiny)
shinyUI(fluidPage(
titlePanel("App for predicting next word when typing text"),
sidebarLayout(
sidebarPanel(
em("Instructions for using the app:"),
p("Select the type of text, enter the text and then click the 'submit' button. It will take a while to render the next word."),
... |
#' @importFrom withr with_png
#' @importFrom utils capture.output
device_check <- function(object,f_png = tempfile(fileext = ".png"), env){
utils::capture.output(withr::with_png(f_png,print(object)))
env$device <- is_not_blank_png(f_png)
if(env$device){
env$f_png <- f_png
object <- f_png
... | /R/device.R | permissive | yonicd/details | R | false | false | 1,909 | r | #' @importFrom withr with_png
#' @importFrom utils capture.output
device_check <- function(object,f_png = tempfile(fileext = ".png"), env){
utils::capture.output(withr::with_png(f_png,print(object)))
env$device <- is_not_blank_png(f_png)
if(env$device){
env$f_png <- f_png
object <- f_png
... |
# Dan Engbert
# CMSC 478 - Fall 17
# HOW TO RUN:
# place the training data in "./data/train.csv"
# Rscript code.r
# NOTES:
# I tried creating the randomForest with the following parameters:
# m = 5, 500 trees -> OOB: 18.21%
# m = 10, 500 trees -> OOB: 14.4%
# m = 20, 500 trees -> OOB: 13.3%
# m = 40, 500 tre... | /cmsc478-ML/proj2-classification/code.R | no_license | dangbert/college | R | false | false | 2,354 | r | # Dan Engbert
# CMSC 478 - Fall 17
# HOW TO RUN:
# place the training data in "./data/train.csv"
# Rscript code.r
# NOTES:
# I tried creating the randomForest with the following parameters:
# m = 5, 500 trees -> OOB: 18.21%
# m = 10, 500 trees -> OOB: 14.4%
# m = 20, 500 trees -> OOB: 13.3%
# m = 40, 500 tre... |
#------------------------- Chapter 3: Overfitting and Its Avoidance ---------------------------#
#------Cross Validation---------#
library(ISLR) # dataset: Auto
library(boot)
Auto = na.omit(Auto)
set.seed(17)
cvError = rep (0, 10)
for (i in 1:10) {
glmFit = glm(mpg ~ poly(horsepower , i), data = Auto)
... | /code/ch4.R | no_license | Kyle-J-Sun/LSE_PKU_Summer_School_bigData | R | false | false | 2,450 | r | #------------------------- Chapter 3: Overfitting and Its Avoidance ---------------------------#
#------Cross Validation---------#
library(ISLR) # dataset: Auto
library(boot)
Auto = na.omit(Auto)
set.seed(17)
cvError = rep (0, 10)
for (i in 1:10) {
glmFit = glm(mpg ~ poly(horsepower , i), data = Auto)
... |
suppressWarnings(suppressMessages(library(lubridate)))
suppressWarnings(suppressMessages(library(RPostgreSQL)))
suppressWarnings(suppressMessages(library(gWidgets)))
suppressWarnings(suppressMessages(library(gWidgetstcltk)))
options(guiToolkit="tcltk")
LoadTablesSQL = function () {
startTime = Sys.time()... | /PostgreSQL.R | no_license | hawkinsrt/cases | R | false | false | 3,834 | r | suppressWarnings(suppressMessages(library(lubridate)))
suppressWarnings(suppressMessages(library(RPostgreSQL)))
suppressWarnings(suppressMessages(library(gWidgets)))
suppressWarnings(suppressMessages(library(gWidgetstcltk)))
options(guiToolkit="tcltk")
LoadTablesSQL = function () {
startTime = Sys.time()... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafv2_operations.R
\name{wafv2_get_web_acl_for_resource}
\alias{wafv2_get_web_acl_for_resource}
\title{This is the latest version of AWS WAF, named AWS WAFV2, released in
November, 2019}
\usage{
wafv2_get_web_acl_for_resource(ResourceArn)
}
\... | /paws/man/wafv2_get_web_acl_for_resource.Rd | permissive | johnnytommy/paws | R | false | true | 904 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wafv2_operations.R
\name{wafv2_get_web_acl_for_resource}
\alias{wafv2_get_web_acl_for_resource}
\title{This is the latest version of AWS WAF, named AWS WAFV2, released in
November, 2019}
\usage{
wafv2_get_web_acl_for_resource(ResourceArn)
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/automl_objects.R
\name{TablesDatasetMetadata}
\alias{TablesDatasetMetadata}
\title{TablesDatasetMetadata Object}
\usage{
TablesDatasetMetadata(
TablesDatasetMetadata.targetColumnCorrelations = NULL,
statsUpdateTime = NULL,
weightColumnS... | /googleautomlv1beta1.auto/man/TablesDatasetMetadata.Rd | no_license | justinjm/autoGoogleAPI | R | false | true | 1,466 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/automl_objects.R
\name{TablesDatasetMetadata}
\alias{TablesDatasetMetadata}
\title{TablesDatasetMetadata Object}
\usage{
TablesDatasetMetadata(
TablesDatasetMetadata.targetColumnCorrelations = NULL,
statsUpdateTime = NULL,
weightColumnS... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FitGW_MLE.R
\name{FitGW_MLE}
\alias{FitGW_MLE}
\title{FitGW_MLE}
\usage{
Value <- FitGW_MLE(X, p, N= 0, r11= 1, fixedpar= NULL, l0= NULL, sigma= Inf, metadata= NULL)
}
\arguments{
\item{X}{data sample (double(n))}
\item{p}{probabilities of e... | /man/FitGW_MLE.Rd | no_license | ceesfdevalk/EVTools | R | false | true | 4,630 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FitGW_MLE.R
\name{FitGW_MLE}
\alias{FitGW_MLE}
\title{FitGW_MLE}
\usage{
Value <- FitGW_MLE(X, p, N= 0, r11= 1, fixedpar= NULL, l0= NULL, sigma= Inf, metadata= NULL)
}
\arguments{
\item{X}{data sample (double(n))}
\item{p}{probabilities of e... |
## Loading dataset to R, converting numerical values
data <- read.csv("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
## Subsetting only the days I ne... | /plot2.R | no_license | filippodercoli92/ExData_Plotting1 | R | false | false | 720 | r | ## Loading dataset to R, converting numerical values
data <- read.csv("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?",
colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
## Subsetting only the days I ne... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilites.R
\name{IsQTable}
\alias{IsQTable}
\title{Identify Q Table objects}
\usage{
IsQTable(x)
}
\arguments{
\item{x}{Input to check if belonging to Q Table class or containing Q Table attributes}
}
\value{
Logical value \code{TRUE} if the ... | /man/IsQTable.Rd | no_license | Displayr/flipU | R | false | true | 702 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilites.R
\name{IsQTable}
\alias{IsQTable}
\title{Identify Q Table objects}
\usage{
IsQTable(x)
}
\arguments{
\item{x}{Input to check if belonging to Q Table class or containing Q Table attributes}
}
\value{
Logical value \code{TRUE} if the ... |
library(readxl)
library(xml2)
# 2018
download.file("http://80.188.53.60/texty/KV2018reg20181007_xlsx.zip", "KV2018reg20181031_xlsx.zip")
unzip("KV2018reg20181031_xlsx.zip")
zastupitelstva18 <- read_excel("kvrzcoco.xlsx")
strany18 <- read_excel("kvros.xlsx")
kandidati18 <- read_excel("kvrk.xlsx")
file.remove(list.files... | /read.R | no_license | DataRozhlas/volby-rychlovky | R | false | false | 1,500 | r | library(readxl)
library(xml2)
# 2018
download.file("http://80.188.53.60/texty/KV2018reg20181007_xlsx.zip", "KV2018reg20181031_xlsx.zip")
unzip("KV2018reg20181031_xlsx.zip")
zastupitelstva18 <- read_excel("kvrzcoco.xlsx")
strany18 <- read_excel("kvros.xlsx")
kandidati18 <- read_excel("kvrk.xlsx")
file.remove(list.files... |
### List of parsers to use by default with package.skeleton.dx.
default.parsers <-
c(
#extra.class.docs=extra.class.docs, ## TODO: cleanup!
#extra.method.docs=extra.method.docs, ## TODO: cleanup!
#extra.code.docs=extra.code.docs, ## TODO: cleanup!
sapply(forfun.parsers,forfun),
edit.package.file=... | /pkg/R/deprecated/default.parsers.R | no_license | mamueller/linkeddocs | R | false | false | 732 | r |
### List of parsers to use by default with package.skeleton.dx.
default.parsers <-
c(
#extra.class.docs=extra.class.docs, ## TODO: cleanup!
#extra.method.docs=extra.method.docs, ## TODO: cleanup!
#extra.code.docs=extra.code.docs, ## TODO: cleanup!
sapply(forfun.parsers,forfun),
edit.package.file=... |
#load the memoised version of pheatmap
# Requirements for running this Shiny app
options(stringsAsFactors = F)
options(warn=-1)
library("devtools")
# library("shinyIncubator")
library("synapseClient")
# library("gdata")
library("shiny")
# library("digest")
library("dplyr")
library("tidyr")
library("memoise")
# libra... | /global.R | no_license | kdaily/PCBCDataExplorer | R | false | false | 2,629 | r | #load the memoised version of pheatmap
# Requirements for running this Shiny app
options(stringsAsFactors = F)
options(warn=-1)
library("devtools")
# library("shinyIncubator")
library("synapseClient")
# library("gdata")
library("shiny")
# library("digest")
library("dplyr")
library("tidyr")
library("memoise")
# libra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distanceCalculation.R
\name{distanceVector}
\alias{distanceVector}
\title{Calculate Distance Vector}
\usage{
distanceVector(a, X, distFun, ...)
}
\arguments{
\item{a}{A single sample which is a suitable input for \code{distFun}}
\item{X}{lis... | /man/distanceVector.Rd | no_license | cran/CEGO | R | false | true | 819 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distanceCalculation.R
\name{distanceVector}
\alias{distanceVector}
\title{Calculate Distance Vector}
\usage{
distanceVector(a, X, distFun, ...)
}
\arguments{
\item{a}{A single sample which is a suitable input for \code{distFun}}
\item{X}{lis... |
DF <- fread("GDPC1.csv", header="auto",
data.table=FALSE)
| /Assignment 05/.Rproj.user/987675/sources/per/t/354D73E8-contents | no_license | cranley11/Assignment-05 | R | false | false | 71 | DF <- fread("GDPC1.csv", header="auto",
data.table=FALSE)
| |
# Clear memory
rm(list=ls())
library(tidyverse)
# Call the data from github
cv <- read.csv('https://raw.githubusercontent.com/cosmin-ticu/homework_codesANDmore_Coding1_MScBA/master/Task2_Cosmin-Covid-Assignment/data/raw/covid_04_11_2020_raw.csv')
# Check covid data
glimpse( cv )
# Drop not needed variables
cv <- cv... | /Task2_Cosmin-Covid-Assignment/codes/cleanCSSE_data.R | no_license | cosmin-ticu/homework_codesANDmore_Coding1_MScBA | R | false | false | 1,261 | r | # Clear memory
rm(list=ls())
library(tidyverse)
# Call the data from github
cv <- read.csv('https://raw.githubusercontent.com/cosmin-ticu/homework_codesANDmore_Coding1_MScBA/master/Task2_Cosmin-Covid-Assignment/data/raw/covid_04_11_2020_raw.csv')
# Check covid data
glimpse( cv )
# Drop not needed variables
cv <- cv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.