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 |
|---|---|---|---|---|---|---|---|---|---|
generar_matriz<-function(filas,columnas,minimo=-1,maximo=50){
# filas<-3
# columnas<-5
# minimo=-1
# maximo<-50
m<-matrix(cbind(round(runif(filas*columnas,minimo,maximo))),ncol=columnas)
setwd("~/Dropbox/01_ITAM_Ciencia_de_Datos/2do_semestre/ComputoParalelo/Comp_Paralelo/ParalelizarMatrizCovarianzas")... | /generar_matriz_fuente.R | no_license | adfmb/ParalelizarMatrizCovarianzas | R | false | false | 491 | r | generar_matriz<-function(filas,columnas,minimo=-1,maximo=50){
# filas<-3
# columnas<-5
# minimo=-1
# maximo<-50
m<-matrix(cbind(round(runif(filas*columnas,minimo,maximo))),ncol=columnas)
setwd("~/Dropbox/01_ITAM_Ciencia_de_Datos/2do_semestre/ComputoParalelo/Comp_Paralelo/ParalelizarMatrizCovarianzas")... |
library(testthat)
library(StatRank)
test_package("StatRank")
| /tests/test-all.R | no_license | wzchen/StatRank | R | false | false | 62 | r | library(testthat)
library(StatRank)
test_package("StatRank")
|
dailyts <- ts(dayeven$flow, start=1, frequency = 365)
#decompose the dataset
components.ts = decompose(dailyts)
x=1:1417
par(mfrow=c(4,1))
plot(x,dailyts,type="l", ylab="Daily Time series")
plot(x,components.ts$seasonal,type="l",col="blue", ylab="Seasonality")
plot(x,components.ts$trend,type="l", col="green",... | /sample scripts/Autoregression.R | no_license | AlexisCSP/csec-project | R | false | false | 1,705 | r |
dailyts <- ts(dayeven$flow, start=1, frequency = 365)
#decompose the dataset
components.ts = decompose(dailyts)
x=1:1417
par(mfrow=c(4,1))
plot(x,dailyts,type="l", ylab="Daily Time series")
plot(x,components.ts$seasonal,type="l",col="blue", ylab="Seasonality")
plot(x,components.ts$trend,type="l", col="green",... |
#Load required packages
library(xml2)
library(rvest)
library(stringr)
#Read user related information: user id and number of pages to parse
id = "958982"
pages = 20
#Generate vectors in which we will save info
df = as.data.frame(matrix(data=NA,ncol=3,nrow=10000))
#Generate user URL
url = paste("https://www.filmaffini... | /fa-to-csv.R | no_license | malmriv/r-lab | R | false | false | 1,708 | r | #Load required packages
library(xml2)
library(rvest)
library(stringr)
#Read user related information: user id and number of pages to parse
id = "958982"
pages = 20
#Generate vectors in which we will save info
df = as.data.frame(matrix(data=NA,ncol=3,nrow=10000))
#Generate user URL
url = paste("https://www.filmaffini... |
air_speed = function( GPS.data ,
wind.direct,
wind.speed,
grnspeed,
plot = F,
return.support.cross = F){
# objects
# GPS.data = data[,1:2,j]
# wind.direct = md$wind.direct.site
# wind.speed = md$win... | /R/air_speed.R | no_license | sankeydan/robofalcon | R | false | false | 2,507 | r |
air_speed = function( GPS.data ,
wind.direct,
wind.speed,
grnspeed,
plot = F,
return.support.cross = F){
# objects
# GPS.data = data[,1:2,j]
# wind.direct = md$wind.direct.site
# wind.speed = md$win... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/freq.r
\name{freq.data.frame}
\alias{freq.data.frame}
\title{Compute frequencies (data.frame input)}
\usage{
freq.data.frame(df, showNA = c("no", "ifany", "always"), total = FALSE,
digits = 2, label = FALSE)
}
\arguments{
\item{df}{data.fra... | /man/freq.data.frame.Rd | no_license | eusebe/biostat2 | R | false | true | 447 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/freq.r
\name{freq.data.frame}
\alias{freq.data.frame}
\title{Compute frequencies (data.frame input)}
\usage{
freq.data.frame(df, showNA = c("no", "ifany", "always"), total = FALSE,
digits = 2, label = FALSE)
}
\arguments{
\item{df}{data.fra... |
library(pdftools)
library(stringr)
library(plotly)
# Get current time for later use
currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone())
attributes(currenttime)$tzone <- "Asia/Hong_Kong"
currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="")
# download latest data file
download.fi... | /2020-09-26/analysis.R | no_license | tszhim-tsui/2020-hk-covid19 | R | false | false | 27,307 | r | library(pdftools)
library(stringr)
library(plotly)
# Get current time for later use
currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone())
attributes(currenttime)$tzone <- "Asia/Hong_Kong"
currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="")
# download latest data file
download.fi... |
\name{addDescription}
\alias{addDescription}
\title{Adds a description to a 'netCoin' object.}
\description{
\code{addDescription} adds a description to a 'netCoin' object.
}
\value{
A 'netCoin' object.
}
\usage{
addDescription(x, description)
}
\arguments{
\item{x}{A 'netCoin' object.}
\item{descriptio... | /man/addDescription.Rd | no_license | cran/netCoin | R | false | false | 1,043 | rd | \name{addDescription}
\alias{addDescription}
\title{Adds a description to a 'netCoin' object.}
\description{
\code{addDescription} adds a description to a 'netCoin' object.
}
\value{
A 'netCoin' object.
}
\usage{
addDescription(x, description)
}
\arguments{
\item{x}{A 'netCoin' object.}
\item{descriptio... |
testlist <- list(phi = 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609866702-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912... |
/mon78abd_spict/Model_V0.R | no_license | MERVEX-group/Spict-IMPRESS | R | false | false | 2,746 | r | ||
/R/R_basic/chapter05.R | no_license | kimsang-kyu/public_bigdata_internship | R | false | false | 2,028 | r | ||
get_weather <- function(station = "FQMA", # CDG, BGT, ATL, JFK
start_year = 2000,
end_year = 2016,
plot = FALSE,
save = TRUE,
load_saved = TRUE){
require(d... | /get_weather.R | no_license | joebrew/weather | R | false | false | 3,762 | r | get_weather <- function(station = "FQMA", # CDG, BGT, ATL, JFK
start_year = 2000,
end_year = 2016,
plot = FALSE,
save = TRUE,
load_saved = TRUE){
require(d... |
Bayesian epiallele detection
Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk)
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 yo... | /R_files/data_assembly.R | permissive | mferrodo/bed-beta | R | false | false | 4,120 | r | Bayesian epiallele detection
Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk)
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 yo... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 25303
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25303
c
c Input Parameter (command line, file):
c input filename QBFLIB/Ayari/Adder/Adder2-16-s.qdimacs
c output filename /tm... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Ayari/Adder/Adder2-16-s/Adder2-16-s.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 617 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 25303
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 25303
c
c Input Parameter (command line, file):
c input filename QBFLIB/Ayari/Adder/Adder2-16-s.qdimacs
c output filename /tm... |
# This program contains code as well as responses to Linear Models
# Lab 4.
#
# @author Sarah Stepak
# @program Stepak LM4.R
# @since 04.08.2021
# @dataset Credit version 2.csv
# Import statements
library(ggplot2)
library(GGally)
credit <- CreditV2 #imports the dataset
#1. Use Income as the response and Age ... | /Labs/Linear Models/Stepak LM4.R | no_license | dusteenie/MAT-328 | R | false | false | 1,788 | r | # This program contains code as well as responses to Linear Models
# Lab 4.
#
# @author Sarah Stepak
# @program Stepak LM4.R
# @since 04.08.2021
# @dataset Credit version 2.csv
# Import statements
library(ggplot2)
library(GGally)
credit <- CreditV2 #imports the dataset
#1. Use Income as the response and Age ... |
#Clear Yer Stuff
rm(list=ls())
<<<<<<< HEAD
=======
#load data
cdata<- read.csv("~/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv")
>>>>>>> origin/master
#Load Data
TotalData<- read.csv("~/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv")
######### Make new data set with only SST an... | /Team B Code/SST vs. Abundance/pc_Leatherista_difformus.R | permissive | ohara-patrick/Dal-Intertidal-2014 | R | false | false | 6,656 | r | #Clear Yer Stuff
rm(list=ls())
<<<<<<< HEAD
=======
#load data
cdata<- read.csv("~/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv")
>>>>>>> origin/master
#Load Data
TotalData<- read.csv("~/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv")
######### Make new data set with only SST an... |
#You should create one R script called run_analysis.R that does the following.
# 1 Merges the training and the test sets to create one data set.
# 2 Extracts only the measurements on the mean and standard deviation for each measurement.
# 3 Uses descriptive activity names to name the activities in the data set
# 4 Ap... | /project/run_analysis.R | no_license | tjautio/datasciencecoursera | R | false | false | 2,804 | r | #You should create one R script called run_analysis.R that does the following.
# 1 Merges the training and the test sets to create one data set.
# 2 Extracts only the measurements on the mean and standard deviation for each measurement.
# 3 Uses descriptive activity names to name the activities in the data set
# 4 Ap... |
library(meta)
### Name: settings.meta
### Title: Print and change default settings to conduct and print or plot
### meta-analyses in R package *meta*.
### Aliases: settings.meta
### ** Examples
#
# Get listing of current settings
#
settings.meta("print")
#
# Meta-analyses using default settings
#
metabin(10, 20,... | /data/genthat_extracted_code/meta/examples/settings.meta.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,470 | r | library(meta)
### Name: settings.meta
### Title: Print and change default settings to conduct and print or plot
### meta-analyses in R package *meta*.
### Aliases: settings.meta
### ** Examples
#
# Get listing of current settings
#
settings.meta("print")
#
# Meta-analyses using default settings
#
metabin(10, 20,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/markerDB.R
\name{getSpeciesInfo}
\alias{getSpeciesInfo}
\title{Get informations of a species in MarkerDB}
\usage{
getSpeciesInfo(species)
}
\arguments{
\item{species}{Character variable of species name}
}
\value{
List of species annotations
}... | /man/getSpeciesInfo.Rd | no_license | derpylz/markerDB | R | false | true | 528 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/markerDB.R
\name{getSpeciesInfo}
\alias{getSpeciesInfo}
\title{Get informations of a species in MarkerDB}
\usage{
getSpeciesInfo(species)
}
\arguments{
\item{species}{Character variable of species name}
}
\value{
List of species annotations
}... |
\name{publish_github}
\alias{publish_github}
\title{Publish slide deck to Github}
\usage{
publish_github(repo, username = getOption("github.user"))
}
\arguments{
\item{repo}{github reponame}
\item{username}{github username}
\item{gitHost}{github host}
}
\description{
You will need \code{git} installed on ... | /man/publish_github.Rd | no_license | dossett/slidify | R | false | false | 981 | rd | \name{publish_github}
\alias{publish_github}
\title{Publish slide deck to Github}
\usage{
publish_github(repo, username = getOption("github.user"))
}
\arguments{
\item{repo}{github reponame}
\item{username}{github username}
\item{gitHost}{github host}
}
\description{
You will need \code{git} installed on ... |
#Normal distribution line
# -- -2 -- -1 -- 0 -- 1 -- 2 (number line)
#Want number close to 0 and default parameters provide this
#rnorm generates set of numbers accord. to random distribution
rnorm(1)
#remove variable answer stored and clear var contents before each iteration
#assign randomly generated number to var x... | /6_ifElseStatement.R | no_license | tlaxson14/Rprojects | R | false | false | 1,308 | r | #Normal distribution line
# -- -2 -- -1 -- 0 -- 1 -- 2 (number line)
#Want number close to 0 and default parameters provide this
#rnorm generates set of numbers accord. to random distribution
rnorm(1)
#remove variable answer stored and clear var contents before each iteration
#assign randomly generated number to var x... |
# Pacotes -----------------------------------------------------------------
library(dplyr)
library(ggplot2)
library(ggthemes)
library(hrbrthemes)
# Bases -------------------------------------------------------------------
int <- readxl::read_xlsx('internacao.xlsx')
# Criacao de variaveis - Internac... | /historias.r | no_license | luizgonzagasilva/Probabilidade-e-Estatistica | R | false | false | 2,576 | r |
# Pacotes -----------------------------------------------------------------
library(dplyr)
library(ggplot2)
library(ggthemes)
library(hrbrthemes)
# Bases -------------------------------------------------------------------
int <- readxl::read_xlsx('internacao.xlsx')
# Criacao de variaveis - Internac... |
###############################################################################
# Mosaics MODIS MCD43A4 (500m Nadir BRDF-Adjusted Reflectance ) product to
# cover the spatial extent of the ZOI/CSA/PA boundary of each team site.
#
# Requires a GDAL installation that supports HDF4 files - on Windows, see
# OSGEO4W to ... | /3_mosaic_MODIS_MCD43A4.R | no_license | Jianghao/MODIS_MCD43A4 | R | false | false | 3,353 | r | ###############################################################################
# Mosaics MODIS MCD43A4 (500m Nadir BRDF-Adjusted Reflectance ) product to
# cover the spatial extent of the ZOI/CSA/PA boundary of each team site.
#
# Requires a GDAL installation that supports HDF4 files - on Windows, see
# OSGEO4W to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{optimalAssignment}
\alias{optimalAssignment}
\title{Optimal Assignment Algorithm}
\usage{
optimalAssignment(rankings, leaders, minGroupSize = 1L, maxGroupSize = -1L)
}
\arguments{
\item{rankings}{[NumericMatrix]: a matrix ... | /man/optimalAssignment.Rd | permissive | hkunda/GroupAssignment | R | false | true | 1,339 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{optimalAssignment}
\alias{optimalAssignment}
\title{Optimal Assignment Algorithm}
\usage{
optimalAssignment(rankings, leaders, minGroupSize = 1L, maxGroupSize = -1L)
}
\arguments{
\item{rankings}{[NumericMatrix]: a matrix ... |
# Reading the customer data
data <- read.csv("F:/DSP Projects/Project 3/Dataset/churn.csv")
data <- data.frame(data)
# Initial Assessmenmt
dim(data)
str(data)
summary(data)
# Checking for null values
library(naniar)
vis_miss(data)
colSums(is.na(data))
# Changing SeniorCitizen into categorical v... | /churn_analysis_telecom.R | no_license | nithin316/Churn-Analysis-in-Telecom-Industry | R | false | false | 6,684 | r |
# Reading the customer data
data <- read.csv("F:/DSP Projects/Project 3/Dataset/churn.csv")
data <- data.frame(data)
# Initial Assessmenmt
dim(data)
str(data)
summary(data)
# Checking for null values
library(naniar)
vis_miss(data)
colSums(is.na(data))
# Changing SeniorCitizen into categorical v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature-scale.R
\name{mean_normalize}
\alias{mean_normalize}
\title{Creates a distribution that will have values between `(-1, 1)` with `μ = 0`.}
\usage{
mean_normalize(x)
}
\description{
Creates a distribution that will have values between `... | /man/mean_normalize.Rd | no_license | ifrit98/R2deepR | R | false | true | 347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/feature-scale.R
\name{mean_normalize}
\alias{mean_normalize}
\title{Creates a distribution that will have values between `(-1, 1)` with `μ = 0`.}
\usage{
mean_normalize(x)
}
\description{
Creates a distribution that will have values between `... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edec_stage_1.R
\name{estimate_props_qp}
\alias{estimate_props_qp}
\title{Estimate cell type proportions}
\usage{
estimate_props_qp(meth_bulk_samples, cell_type_specific_meth)
}
\arguments{
\item{meth_bulk_samples}{Matrix of methylation profil... | /man/estimate_props_qp.Rd | no_license | rghu/EDec | R | false | true | 1,548 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edec_stage_1.R
\name{estimate_props_qp}
\alias{estimate_props_qp}
\title{Estimate cell type proportions}
\usage{
estimate_props_qp(meth_bulk_samples, cell_type_specific_meth)
}
\arguments{
\item{meth_bulk_samples}{Matrix of methylation profil... |
rm(list=ls())
#####################################################################################################
#Load packages
library(maps)
library(mapproj)
library(mapdata)
library(mapplots)
library(maptools)
library(ggplot2)
library(reshape)
#########################################################... | /vehicletax_graphs.R | no_license | headisbagent/proj2_electricCarTaxes | R | false | false | 70,418 | r | rm(list=ls())
#####################################################################################################
#Load packages
library(maps)
library(mapproj)
library(mapdata)
library(mapplots)
library(maptools)
library(ggplot2)
library(reshape)
#########################################################... |
#' Construct a model frame
#'
#' `model_frame()` is a stricter version of [stats::model.frame()]. There are
#' a number of differences, with the main being that rows are _never_ dropped
#' and the return value is a list with the frame and terms separated into
#' two distinct objects.
#'
#' @param formula A formula or t... | /R/model-frame.R | no_license | marlycormar/hardhat | R | false | false | 3,321 | r | #' Construct a model frame
#'
#' `model_frame()` is a stricter version of [stats::model.frame()]. There are
#' a number of differences, with the main being that rows are _never_ dropped
#' and the return value is a list with the frame and terms separated into
#' two distinct objects.
#'
#' @param formula A formula or t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/node-funs.R
\name{route_nearest_point}
\alias{route_nearest_point}
\title{Find nearest route to a given point}
\usage{
route_nearest_point(r, p, id_out = FALSE)
}
\arguments{
\item{r}{An \code{sf} object with one feature containing a linestri... | /man/route_nearest_point.Rd | permissive | mem48/stplanr | R | false | true | 946 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/node-funs.R
\name{route_nearest_point}
\alias{route_nearest_point}
\title{Find nearest route to a given point}
\usage{
route_nearest_point(r, p, id_out = FALSE)
}
\arguments{
\item{r}{An \code{sf} object with one feature containing a linestri... |
if(!require(matconv)){
install.packages("matconv")
require(matconv)
}
matIn <- c("function value = arc_length(M, A, B)",
" L = 1000;",
" [d, c] = size(M);",
" a = min(A, B);",
" b = max(A, B);",
" delta_t = (b - a)/L;",
" inter_values = a + (0:L-1... | /Code/matconv.R | no_license | EduardaChagas/CDMLHC | R | false | false | 750 | r |
if(!require(matconv)){
install.packages("matconv")
require(matconv)
}
matIn <- c("function value = arc_length(M, A, B)",
" L = 1000;",
" [d, c] = size(M);",
" a = min(A, B);",
" b = max(A, B);",
" delta_t = (b - a)/L;",
" inter_values = a + (0:L-1... |
library(data.table)
library(plyr)
library(MCMCpack)
library(foreign)
library(matrixStats)
library(Rfast)
library(parallel)
print("Loaded the libraries...")
getProbs = function(comb, cols, samp, G.used, class.probs){
class.probs[cbind(comb,samp,G.used, cols)]
}
row.prob.vec <- function(combs.full, mix.probs, class.p... | /paper/NLTCS/code/nltcs_e0_5.R | no_license | michellepistner/BayesLCM | R | false | false | 29,302 | r | library(data.table)
library(plyr)
library(MCMCpack)
library(foreign)
library(matrixStats)
library(Rfast)
library(parallel)
print("Loaded the libraries...")
getProbs = function(comb, cols, samp, G.used, class.probs){
class.probs[cbind(comb,samp,G.used, cols)]
}
row.prob.vec <- function(combs.full, mix.probs, class.p... |
var1 <- c(1,2,3,1,2)
var2 <- factor(c(1,2,3,1,2))
var1
var2
var1 + 2
var2 + 2
class(var1)
class(var2)
levels(var1)
levels(var2)
var3 <- c("a", "b", "b", "c")
var4 <- factor(c("a", "b", "b", "c"))
var3
var4
class(var3)
class(var4)
mean(var1)
mean(var2)
var2 <- as.numeric(var2)
mean(var2)
class(var2)
levels(var... | /Further_/script_15_2.R | no_license | Dodant/Data-Science-with-R | R | false | false | 323 | r | var1 <- c(1,2,3,1,2)
var2 <- factor(c(1,2,3,1,2))
var1
var2
var1 + 2
var2 + 2
class(var1)
class(var2)
levels(var1)
levels(var2)
var3 <- c("a", "b", "b", "c")
var4 <- factor(c("a", "b", "b", "c"))
var3
var4
class(var3)
class(var4)
mean(var1)
mean(var2)
var2 <- as.numeric(var2)
mean(var2)
class(var2)
levels(var... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{ex25.25}
\alias{ex25.25}
\title{Data from Exercise 25.25}
\format{\Sexpr[results=rd]{bps5data:::doc_data("ex25.25") }}
\source{
\url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip }
}
\usage{
d... | /man/ex25.25.Rd | no_license | jrnold/bps5data | R | false | false | 1,456 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{ex25.25}
\alias{ex25.25}
\title{Data from Exercise 25.25}
\format{\Sexpr[results=rd]{bps5data:::doc_data("ex25.25") }}
\source{
\url{ http://bcs.whfreeman.com/bps5e/content/cat_030/PC-Text.zip }
}
\usage{
d... |
/readfile.R | no_license | w4560000/RProject2 | R | false | false | 2,816 | r | ||
######################################
# UK AIRPORTS PUNCTUALITY - DATA I/O #
######################################
## PREPARATION ------------------------------------------------------------------------------------------------------------------
# load packages
pkgs <- c('data.table', 'rvest')
invisible(lapply(pkgs,... | /uk_airports_punctuality/01-data_io.R | permissive | WeR-stats/workshops | R | false | false | 1,870 | r | ######################################
# UK AIRPORTS PUNCTUALITY - DATA I/O #
######################################
## PREPARATION ------------------------------------------------------------------------------------------------------------------
# load packages
pkgs <- c('data.table', 'rvest')
invisible(lapply(pkgs,... |
#' Integración mediante la Regla del Trapecio
#'
#' Esta función nos calcula una aproximación de la integral de f en el intervalo
#' de a hasta b, mediante la Regla del Trapecio.
#'
#' @param a extremo inferior del intervalo
#' @param b extremo superior del intervalo
#' @param f función que vamos a integrar
#'
#' @retu... | /R/regla_trapecio.R | permissive | JoanBoters/ProyectoFinal | R | false | false | 778 | r | #' Integración mediante la Regla del Trapecio
#'
#' Esta función nos calcula una aproximación de la integral de f en el intervalo
#' de a hasta b, mediante la Regla del Trapecio.
#'
#' @param a extremo inferior del intervalo
#' @param b extremo superior del intervalo
#' @param f función que vamos a integrar
#'
#' @retu... |
x <- c(45,23,155)
y <- c(1,2,0)
koniunkcja <-x&y
alternatywa <-x|y
negacja <- x!y
czy_wszystkie <- x&&y
czy_chociaz_jeden <- x||y | /zad19.R | no_license | marcin-mulawa/Zadania-R | R | false | false | 130 | r | x <- c(45,23,155)
y <- c(1,2,0)
koniunkcja <-x&y
alternatywa <-x|y
negacja <- x!y
czy_wszystkie <- x&&y
czy_chociaz_jeden <- x||y |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classesAndMethods.R
\docType{class}
\name{markovchain-class}
\alias{markovchain-class}
\alias{*,markovchain,markovchain-method}
\alias{*,markovchain,matrix-method}
\alias{*,markovchain,numeric-method}
\alias{*,matrix,markovchain-method}
\alia... | /man/markovchain-class.Rd | no_license | tintinthong/markovchain | R | false | true | 8,041 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classesAndMethods.R
\docType{class}
\name{markovchain-class}
\alias{markovchain-class}
\alias{*,markovchain,markovchain-method}
\alias{*,markovchain,matrix-method}
\alias{*,markovchain,numeric-method}
\alias{*,matrix,markovchain-method}
\alia... |
jags_lqmm_IG <-
function () {
# constants
c1 <- (1-2*tau)/(tau*(1-tau))
c2 <- 2/(tau*(1-tau))
# likelihood
for (i in 1:I){
# longitudinal part
for(j in offset[i]:(offset[i+1]-1)){
y[j] ~ dnorm(mu[j], prec[j])
va1[j] ~ dexp(1/sigma)
prec[j] <- 1/(sigma*c2*va1[j])
mu[j] <- inpr... | /R/jags_lqmm_IG.R | no_license | AntoineBbi/BQt | R | false | false | 782 | r | jags_lqmm_IG <-
function () {
# constants
c1 <- (1-2*tau)/(tau*(1-tau))
c2 <- 2/(tau*(1-tau))
# likelihood
for (i in 1:I){
# longitudinal part
for(j in offset[i]:(offset[i+1]-1)){
y[j] ~ dnorm(mu[j], prec[j])
va1[j] ~ dexp(1/sigma)
prec[j] <- 1/(sigma*c2*va1[j])
mu[j] <- inpr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rw_Metro_R.R
\name{rw_Metro_R}
\alias{rw_Metro_R}
\title{Random Walk Metropolis sampler using R}
\usage{
rw_Metro_R(sigma, x0, N, f)
}
\arguments{
\item{sigma}{the standard deviation of the normal random increment with a zero mean}
\item{x0}... | /man/rw_Metro_R.Rd | no_license | Daniel-1997127/SC19085 | R | false | true | 874 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rw_Metro_R.R
\name{rw_Metro_R}
\alias{rw_Metro_R}
\title{Random Walk Metropolis sampler using R}
\usage{
rw_Metro_R(sigma, x0, N, f)
}
\arguments{
\item{sigma}{the standard deviation of the normal random increment with a zero mean}
\item{x0}... |
#' Pass network ( WIP )
#'
#' Plots a marker for each player at their median passing position, and draws
#' connections between players to represent the number of passes exchanged
#' between them
#'
#' @param cFilePath
#' @param cTag
#' @examples
#' @import data.table
#' @import zoo
#' @export
fParseTrackingDataOneTeam... | /R/fParseTrackingDataOneTeam.R | permissive | thecomeonman/CodaBonito | R | false | false | 1,764 | r | #' Pass network ( WIP )
#'
#' Plots a marker for each player at their median passing position, and draws
#' connections between players to represent the number of passes exchanged
#' between them
#'
#' @param cFilePath
#' @param cTag
#' @examples
#' @import data.table
#' @import zoo
#' @export
fParseTrackingDataOneTeam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp583}
\alias{spp583}
\title{species function}
\usage{
spp583(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... | /man/spp583.Rd | permissive | Djeppschmidt/Model.Microbiome | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp583}
\alias{spp583}
\title{species function}
\usage{
spp583(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... |
#' Presidential General Election Results
#'
#' @description 2016 Presidential General Election Results for each state.
#'
#' @format A data frame with 833 rows and 10 columns, providing information for results in each state :
#' \describe{
#' \item{cand_id}{A code assigned to a candidate by the FEC}
#' \item{state}... | /R/results.R | no_license | dA505819/fec16 | R | false | false | 917 | r | #' Presidential General Election Results
#'
#' @description 2016 Presidential General Election Results for each state.
#'
#' @format A data frame with 833 rows and 10 columns, providing information for results in each state :
#' \describe{
#' \item{cand_id}{A code assigned to a candidate by the FEC}
#' \item{state}... |
corr<-function(directory,threshold=0){
correlations=NULL
for(i in 1:332){
Path = paste("/Users/meg116/datasciencecoursera/specdata/",str_pad(i,3,pad="0"),".csv",sep="")
MyData <- read.csv(file=Path,header=TRUE,sep=",")
if(dim(subset(MyData,(!is.na(MyData[,2]))&(!is.na(MyData[,3]))))[1]>t... | /corr.R | no_license | 1002221/datasciencecoursera | R | false | false | 531 | r | corr<-function(directory,threshold=0){
correlations=NULL
for(i in 1:332){
Path = paste("/Users/meg116/datasciencecoursera/specdata/",str_pad(i,3,pad="0"),".csv",sep="")
MyData <- read.csv(file=Path,header=TRUE,sep=",")
if(dim(subset(MyData,(!is.na(MyData[,2]))&(!is.na(MyData[,3]))))[1]>t... |
## Put comments here that give an overall description of what your
## functions do - yossi
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function() x
setmatrix<-function(solve) m<<- solve
getmatrix<-fun... | /cachematrix.R | no_license | taucg/ProgrammingAssignment2 | R | false | false | 712 | r | ## Put comments here that give an overall description of what your
## functions do - yossi
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function() x
setmatrix<-function(solve) m<<- solve
getmatrix<-fun... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/week.r
\name{week_stamp}
\alias{week_stamp}
\title{Compute a "Week" stamp (like timestamp) : week number from 1970-01-01}
\usage{
week_stamp(yw)
}
\arguments{
\item{yw}{yearweek value}
}
\description{
This provide a continuous index for week ... | /man/week_stamp.Rd | no_license | cturbelin/ifnBase | R | false | true | 550 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/week.r
\name{week_stamp}
\alias{week_stamp}
\title{Compute a "Week" stamp (like timestamp) : week number from 1970-01-01}
\usage{
week_stamp(yw)
}
\arguments{
\item{yw}{yearweek value}
}
\description{
This provide a continuous index for week ... |
library(RandomWalk)
library(StockPriceSimulator)
library(ggplot2)
library(grid)
library(gridExtra)
scale <- 10000
return <- sstock_return_ito(scale = scale, sigma = 0.2)
rand_walk_t <- trwalkGenerator(time_to_maturity = 4,
scale = 100)
interval <- 1/scale
p <- ggplot(data.frame(Retu... | /analysis/stock_return_ito_density.R | no_license | AnthonyTedde/thesisDoc | R | false | false | 4,483 | r | library(RandomWalk)
library(StockPriceSimulator)
library(ggplot2)
library(grid)
library(gridExtra)
scale <- 10000
return <- sstock_return_ito(scale = scale, sigma = 0.2)
rand_walk_t <- trwalkGenerator(time_to_maturity = 4,
scale = 100)
interval <- 1/scale
p <- ggplot(data.frame(Retu... |
\name{visualcenter}
\alias{visualcenter}
\title{visualcenter}
\description{Point in the middle of the min and max for each group.}
\usage{visualcenter(d, ...)}
\arguments{
\item{d}{
}
\item{\dots}{
}
}
\author{Toby Dylan Hocking}
| /man/visualcenter.Rd | no_license | tdhock/directlabels | R | false | false | 242 | rd | \name{visualcenter}
\alias{visualcenter}
\title{visualcenter}
\description{Point in the middle of the min and max for each group.}
\usage{visualcenter(d, ...)}
\arguments{
\item{d}{
}
\item{\dots}{
}
}
\author{Toby Dylan Hocking}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/badge_opencpu.R
\name{badge_opencpu}
\alias{badge_opencpu}
\title{badge_opencpu}
\usage{
badge_opencpu(
url,
logo_path = "https://avatars2.githubusercontent.com/u/28672890?s=200&v=4",
size = 24
)
}
\arguments{
\item{url}{url to reposito... | /man/badge_opencpu.Rd | permissive | KWB-R/kwb.pkgstatus | R | false | true | 596 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/badge_opencpu.R
\name{badge_opencpu}
\alias{badge_opencpu}
\title{badge_opencpu}
\usage{
badge_opencpu(
url,
logo_path = "https://avatars2.githubusercontent.com/u/28672890?s=200&v=4",
size = 24
)
}
\arguments{
\item{url}{url to reposito... |
#map of mite sampling
#install.packages("OpenStreetMap")
library(ggmap)
library(ggplot2)
?get_stamenmap
#lat <- c(47,55)
#long <- c(5,15)
lat <- c(45,57)
long <- c(3,17)
bbox <- make_bbox(long,lat,f=0.05)
#bbox <- c(left = 5, bottom = 47, right = 15, top = 55)
#a <- get_stamenmap(bbox,maptype="toner-hybrid",source... | /haplotype_divergence/maps_GPS.R | no_license | AsexGenomeEvol/HD_Oppiella | R | false | false | 2,567 | r | #map of mite sampling
#install.packages("OpenStreetMap")
library(ggmap)
library(ggplot2)
?get_stamenmap
#lat <- c(47,55)
#long <- c(5,15)
lat <- c(45,57)
long <- c(3,17)
bbox <- make_bbox(long,lat,f=0.05)
#bbox <- c(left = 5, bottom = 47, right = 15, top = 55)
#a <- get_stamenmap(bbox,maptype="toner-hybrid",source... |
#' @useDynLib trophicR, .registration = TRUE
#' @import Rcpp
.onLoad <- function(libname, pkgname) {
modules <- paste0("stan_fit4", names(stanmodels), "_mod")
for (m in modules) loadModule(m, what = TRUE)
}
| /R/zzz.R | no_license | virgile-baudrot/trophicR | R | false | false | 213 | r | #' @useDynLib trophicR, .registration = TRUE
#' @import Rcpp
.onLoad <- function(libname, pkgname) {
modules <- paste0("stan_fit4", names(stanmodels), "_mod")
for (m in modules) loadModule(m, what = TRUE)
}
|
#' Similar to attach, but overwrites global
#'
#' @param ll list with named values
#' @export
#' @examples
#' zattach(list(a = 5))
#' a
zattach <- function(ll) {
for (i in 1:length(ll)) {
assign(names(ll)[i], ll[[i]], envir=globalenv())
}
}
#' Similar to do.call, but allows extra arguments
#'
#' @param f fun... | /lineId/R/utils.R | no_license | snarles/fmri | R | false | false | 1,908 | r |
#' Similar to attach, but overwrites global
#'
#' @param ll list with named values
#' @export
#' @examples
#' zattach(list(a = 5))
#' a
zattach <- function(ll) {
for (i in 1:length(ll)) {
assign(names(ll)[i], ll[[i]], envir=globalenv())
}
}
#' Similar to do.call, but allows extra arguments
#'
#' @param f fun... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 45832
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45832
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc05-nonuniform-... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/trafficlight-controller/tlc05-nonuniform-depth-49/tlc05-nonuniform-depth-49.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 695 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 45832
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45832
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc05-nonuniform-... |
#####################################################
### Load Data source #######
#####################################################
setwd("C:/Users/fanir/Desktop/Simulation_juin2018/Data")
#####################################################
### Clean the repertoir ... | /estimationJob/NGARCH/N_Ess_ret_VIX_NonCentre/Methode_Ret_VIX.R | no_license | Fanirisoa/dynamic_pricing | R | false | false | 5,809 | r | #####################################################
### Load Data source #######
#####################################################
setwd("C:/Users/fanir/Desktop/Simulation_juin2018/Data")
#####################################################
### Clean the repertoir ... |
save_question_submission <- function(session, label, question, answer) {
save_object(
session = session,
object_id = label,
tutorial_object("question_submission", list(
api_version = 1,
question = question,
answer = answer
))
)
}
save_reset_question_submission <- function(session... | /R/storage.R | permissive | rstudio/learnr | R | false | false | 16,210 | r |
save_question_submission <- function(session, label, question, answer) {
save_object(
session = session,
object_id = label,
tutorial_object("question_submission", list(
api_version = 1,
question = question,
answer = answer
))
)
}
save_reset_question_submission <- function(session... |
#!/usr/bin/Rscript
a <- commandArgs(TRUE)
load('main.RData')
source('funcs.R')
source('quantheatplotfunc.R')
png(paste(a, '.png', sep=''), width=640)
source(paste(a, 'plot.R', sep=''))
| /articles/df0pred-3/plot.R | no_license | lpenz/lpenz.github.io | R | false | false | 189 | r | #!/usr/bin/Rscript
a <- commandArgs(TRUE)
load('main.RData')
source('funcs.R')
source('quantheatplotfunc.R')
png(paste(a, '.png', sep=''), width=640)
source(paste(a, 'plot.R', sep=''))
|
library(ape)
testtree <- read.tree("6252_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="6252_0_unrooted.txt") | /codeml_files/newick_trees_processed/6252_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("6252_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="6252_0_unrooted.txt") |
library(dplyr)
library(lubridate)
# reading relevant data
data <- read.table("household_power_consumption.txt", sep = ";", skip = 66637, nrows = 2880)
# clearing name row and unrelevant variables, creating numerics
data <- data %>% select(V3) %>% mutate(V3 = as.numeric(as.character(V3)))
# create histogram
hist(data... | /Plot1.R | no_license | galibmehadi/EDA | R | false | false | 436 | r | library(dplyr)
library(lubridate)
# reading relevant data
data <- read.table("household_power_consumption.txt", sep = ";", skip = 66637, nrows = 2880)
# clearing name row and unrelevant variables, creating numerics
data <- data %>% select(V3) %>% mutate(V3 = as.numeric(as.character(V3)))
# create histogram
hist(data... |
# Changing this file requires running update_embedded_sources.R to rebuild sources and jars.
arrow_write_record_batch <- function(df, spark_version_number = NULL) {
arrow_env_vars <- list()
if (!is.null(spark_version_number) && spark_version_number < "3.0") {
# Spark < 3 uses an old version of Arrow, so send d... | /java/embedded_sources.R | permissive | lresende/sparklyr | R | false | false | 55,069 | r | # Changing this file requires running update_embedded_sources.R to rebuild sources and jars.
arrow_write_record_batch <- function(df, spark_version_number = NULL) {
arrow_env_vars <- list()
if (!is.null(spark_version_number) && spark_version_number < "3.0") {
# Spark < 3 uses an old version of Arrow, so send d... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615835813-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
library(dplyr)
library(RPostgreSQL)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = "cst")
locations <- list(boston=c(42.358056, -71.063611),
providence=c(41.823611, -71.422222),
worcester=c(42.266667, -71.8))
climate_cities <- lapply(locations, function(loc) {
df <-... | /scripts/postgres/climate_cities.R | no_license | HydrosystemsGroup/Weather-Generator | R | false | false | 612 | r | library(dplyr)
library(RPostgreSQL)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = "cst")
locations <- list(boston=c(42.358056, -71.063611),
providence=c(41.823611, -71.422222),
worcester=c(42.266667, -71.8))
climate_cities <- lapply(locations, function(loc) {
df <-... |
airbnb = read.csv("airbnb.csv")
set.seed(88)
RF500 = randomForest (price~., data = airbnb , ntree = 500)
RF1000 = randomForest (price~., data = airbnb , ntree = 1000)
RF2000 = randomForest (price~., data = airbnb , ntree = 2000)
print(mtry)
actualRF = randomForest(price ~. , data = airbnb, ntree = 1000, mtr... | /random forest.R | no_license | tsechunhei/Airbnb-Price-Prediction-with-Machine-Learning | R | false | false | 343 | r | airbnb = read.csv("airbnb.csv")
set.seed(88)
RF500 = randomForest (price~., data = airbnb , ntree = 500)
RF1000 = randomForest (price~., data = airbnb , ntree = 1000)
RF2000 = randomForest (price~., data = airbnb , ntree = 2000)
print(mtry)
actualRF = randomForest(price ~. , data = airbnb, ntree = 1000, mtr... |
#!/usr/bin/env Rscript
######################
# rCNV Project #
######################
# Copyright (c) 2022-Present Ryan L. Collins and the Talkowski Laboratory
# Distributed under terms of the MIT License (see LICENSE)
# Contact: Ryan L. Collins <rlcollins@g.harvard.edu>
# Utility functions used for locus high... | /source/rCNV2/R/highlight_utils.R | permissive | talkowski-lab/rCNV2 | R | false | false | 17,546 | r | #!/usr/bin/env Rscript
######################
# rCNV Project #
######################
# Copyright (c) 2022-Present Ryan L. Collins and the Talkowski Laboratory
# Distributed under terms of the MIT License (see LICENSE)
# Contact: Ryan L. Collins <rlcollins@g.harvard.edu>
# Utility functions used for locus high... |
"Rsquare2F" <-
function(R2=NULL, df.1=NULL, df.2=NULL, p=NULL, N=NULL)
{
if(is.null(df.1) & is.null(df.2) & !is.null(N) & !is.null(p))
{
df.1 <- p
df.2 <- N-p-1
}
if(is.null(df.1) | is.null(df.2)) stop("You have not specified \'df.1\', \'df.2\', \'N\', and/or \'p\' correctly.")
return((R2/df.1)/((1-R2)/df.2))
... | /R/Rsquare2F.R | no_license | cran/MBESS | R | false | false | 324 | r | "Rsquare2F" <-
function(R2=NULL, df.1=NULL, df.2=NULL, p=NULL, N=NULL)
{
if(is.null(df.1) & is.null(df.2) & !is.null(N) & !is.null(p))
{
df.1 <- p
df.2 <- N-p-1
}
if(is.null(df.1) | is.null(df.2)) stop("You have not specified \'df.1\', \'df.2\', \'N\', and/or \'p\' correctly.")
return((R2/df.1)/((1-R2)/df.2))
... |
library(data.table)
.debug <- "~/Dropbox/SA2UK"
.args <- if (interactive()) sprintf(c(
"%s/inputs/epi_data.rds"
), .debug) else commandArgs(trailingOnly = TRUE)
target <- tail(.args, 1)
jhurl <- "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/"
casesurl... | /hpc_scripts/get_epi_data.r | no_license | thimotei/CFR_calculation | R | false | false | 804 | r | library(data.table)
.debug <- "~/Dropbox/SA2UK"
.args <- if (interactive()) sprintf(c(
"%s/inputs/epi_data.rds"
), .debug) else commandArgs(trailingOnly = TRUE)
target <- tail(.args, 1)
jhurl <- "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/"
casesurl... |
library(tidyverse)
library(ggplot2)
library(scales)
install.packages(scale)
url='/Users/dennie/Desktop/NEU/ALY 6070/Module 5/House_Price_data.csv'
data <- read.csv(url)
glimpse(data)
summary(data)
names(data) <- tolower(names(data))
names(data)
head(data[1:5])
hist(data[,'lotarea'])
ggplot(data, aes(x = lotarea)... | /Individual Rshiny Visualization.R | no_license | Dennieeeee/Data-Wrangling-in-R | R | false | false | 2,681 | r | library(tidyverse)
library(ggplot2)
library(scales)
install.packages(scale)
url='/Users/dennie/Desktop/NEU/ALY 6070/Module 5/House_Price_data.csv'
data <- read.csv(url)
glimpse(data)
summary(data)
names(data) <- tolower(names(data))
names(data)
head(data[1:5])
hist(data[,'lotarea'])
ggplot(data, aes(x = lotarea)... |
library(dplyr)
library(tidyr)
library(readr)
library(ggplot2)
file_list <- read.csv("nhs_data/file_names_code.csv", stringsAsFactors = FALSE)
file_names <- file_list$all_ages
names <- file_list$disease
LoadData <- function(file_names, names){
mortality <- read.csv(paste0("nhs_data/", file_names), stringsAsFact... | /mortality_rates_dot_plot.R | permissive | carriebennette/nhs-inequality-viz | R | false | false | 1,930 | r |
library(dplyr)
library(tidyr)
library(readr)
library(ggplot2)
file_list <- read.csv("nhs_data/file_names_code.csv", stringsAsFactors = FALSE)
file_names <- file_list$all_ages
names <- file_list$disease
LoadData <- function(file_names, names){
mortality <- read.csv(paste0("nhs_data/", file_names), stringsAsFact... |
`SynAnticline` <-
function(x,y, syn=TRUE, spacing=NULL, N=1, r1= 1, r2= 1.2, h1= 0, h2= 0,endtol=.1,
REV=FALSE, col='black', ...)
{
if(missing(spacing)) spacing=NULL
if(missing(REV)) REV=FALSE
if(missing(r1)) { r1 = 1 }
if(missing(r2)) { r2 = 1.2 }
if(missing(h1)) { h1 = .5 }
if(missing... | /R/SynAnticline.R | no_license | cran/GEOmap | R | false | false | 957 | r | `SynAnticline` <-
function(x,y, syn=TRUE, spacing=NULL, N=1, r1= 1, r2= 1.2, h1= 0, h2= 0,endtol=.1,
REV=FALSE, col='black', ...)
{
if(missing(spacing)) spacing=NULL
if(missing(REV)) REV=FALSE
if(missing(r1)) { r1 = 1 }
if(missing(r2)) { r2 = 1.2 }
if(missing(h1)) { h1 = .5 }
if(missing... |
## Put comments here that give an overall description of what your
## functions do
##This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... | /cachematrix.R | no_license | canelbiryol/ProgrammingAssignment2 | R | false | false | 1,249 | r | ## Put comments here that give an overall description of what your
## functions do
##This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... |
theme_dsb_base <- function(default_color = "#1b1b1b", default_text_color = "#fcfcfc", grid_color = "#595959",
base_size = 10, margin = 24) {
axis_text_margin <- margin / 2
dsb_text_default <- theme(
text = element_text(
family = "sans", face = "plain", size = base_size, colo... | /epiCata/R/dsb_ggplot_theme.R | permissive | Data-Science-Brigade/modelo-epidemiologico-sc | R | false | false | 1,711 | r |
theme_dsb_base <- function(default_color = "#1b1b1b", default_text_color = "#fcfcfc", grid_color = "#595959",
base_size = 10, margin = 24) {
axis_text_margin <- margin / 2
dsb_text_default <- theme(
text = element_text(
family = "sans", face = "plain", size = base_size, colo... |
context('otherHalting')
set.seed(1991)
testthat::test_that(
"timeLimit"
, {
skip_on_cran()
sf <- function(x,y) 1000 - (x-5)^2 - (y + 10)^2
FUN <- function(x,y) {
return(list(Score = sf(x,y)))
}
bounds = list(
x = c(0,15)
, y = c(-20,100)
)
optObj <- bayesOpt(
... | /tests/testthat/test-otherHalting.R | no_license | AnotherSamWilson/ParBayesianOptimization | R | false | false | 1,202 | r | context('otherHalting')
set.seed(1991)
testthat::test_that(
"timeLimit"
, {
skip_on_cran()
sf <- function(x,y) 1000 - (x-5)^2 - (y + 10)^2
FUN <- function(x,y) {
return(list(Score = sf(x,y)))
}
bounds = list(
x = c(0,15)
, y = c(-20,100)
)
optObj <- bayesOpt(
... |
print.ClassificationPlot <- function(x, ...){
cat("\n#~~~~~~~~~~~~~~~~~#\n")
cat("# Results model 1 #\n")
cat("#~~~~~~~~~~~~~~~~~#\n\n")
AUC = round(x$Model1$AUC, 3)
AUC = paste(AUC[1], " (",AUC[3],"-",AUC[4],")",sep="")
cat(paste(" - AUC (95% CI)=", AUC,"\n\n"))
print(x$Model1$Summary)
if(any(names(x)=... | /R/print.functions.R | no_license | mafshar99/ClassificationPlot | R | false | false | 609 | r | print.ClassificationPlot <- function(x, ...){
cat("\n#~~~~~~~~~~~~~~~~~#\n")
cat("# Results model 1 #\n")
cat("#~~~~~~~~~~~~~~~~~#\n\n")
AUC = round(x$Model1$AUC, 3)
AUC = paste(AUC[1], " (",AUC[3],"-",AUC[4],")",sep="")
cat(paste(" - AUC (95% CI)=", AUC,"\n\n"))
print(x$Model1$Summary)
if(any(names(x)=... |
rm(list=ls())
#setwd("")
load("KrukUWr2020.RData")
library(data.table)
set.seed(1)
summary(cases)
summary(events)
Cases <- data.table(cases)
Events <- data.table(events)
# Próbka
# Cases <- Cases[sample((1:dim(Cases)[1]),0.5*dim(Cases)[1])]
# Decoding variables
Cases[,CreditCard := ifels... | /ListyZadan/10_ListaRozwiazaniaNN.r | no_license | ArekSobol/Lab2020 | R | false | false | 9,513 | r |
rm(list=ls())
#setwd("")
load("KrukUWr2020.RData")
library(data.table)
set.seed(1)
summary(cases)
summary(events)
Cases <- data.table(cases)
Events <- data.table(events)
# Próbka
# Cases <- Cases[sample((1:dim(Cases)[1]),0.5*dim(Cases)[1])]
# Decoding variables
Cases[,CreditCard := ifels... |
#' Decompose an edge list
#'
#' Generates two data frames (nodes and edges) from a list of edges
#'
#' `edge.list` transforms the input into a two-elements list containing a
#' dataframe of nodes (with columns \dQuote{id} and \dQuote{label}) and a
#' dataframe of edges. The last one is numeric (with columns \dQuote{s... | /R/rgexf.r | permissive | jbdatascience/rgexf | R | false | false | 27,188 | r | #' Decompose an edge list
#'
#' Generates two data frames (nodes and edges) from a list of edges
#'
#' `edge.list` transforms the input into a two-elements list containing a
#' dataframe of nodes (with columns \dQuote{id} and \dQuote{label}) and a
#' dataframe of edges. The last one is numeric (with columns \dQuote{s... |
# Univariate
# Auto-correlation
acf(final.resid,na.action = na.pass,lag=60)
Box.test(final.resid,lag=6,type="Ljung",fitdf=5)
#Normality
par(mfrow=c(1,2))
hist(final.resid,breaks="FD",xlab='Standardized Residuals',main='Residual')
qqnorm(final.resid)
qqline(final.resid)
jarque.bera.test(na.omit(final.resid))
# Remov... | /statistical_tests.R | no_license | adib0073/R-time-series-utility | R | false | false | 996 | r | # Univariate
# Auto-correlation
acf(final.resid,na.action = na.pass,lag=60)
Box.test(final.resid,lag=6,type="Ljung",fitdf=5)
#Normality
par(mfrow=c(1,2))
hist(final.resid,breaks="FD",xlab='Standardized Residuals',main='Residual')
qqnorm(final.resid)
qqline(final.resid)
jarque.bera.test(na.omit(final.resid))
# Remov... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/A1-R1C1-regex-utils.R
\name{guess_fo}
\alias{guess_fo}
\title{Guess cell reference string format}
\usage{
guess_fo(x, fo = c("R1C1", "A1"))
}
\arguments{
\item{x}{character vector of cell reference strings}
\item{fo}{default to assume if for... | /man/guess_fo.Rd | no_license | StatisMike/cellranger | R | false | true | 666 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/A1-R1C1-regex-utils.R
\name{guess_fo}
\alias{guess_fo}
\title{Guess cell reference string format}
\usage{
guess_fo(x, fo = c("R1C1", "A1"))
}
\arguments{
\item{x}{character vector of cell reference strings}
\item{fo}{default to assume if for... |
#this function uses TMLE to estimate the transported stochastic direct and indirect effect
#for observed data O=(S,W,A,Z,M,Y), where
#S=1 is the source population and S=0 is the target population
#W are covariates
#A is an instrumental variable
#Z is an intermediate variable that is affected by instrument A
#M is a me... | /R/transport_sdesie_function.R | no_license | kararudolph/transport | R | false | false | 8,836 | r | #this function uses TMLE to estimate the transported stochastic direct and indirect effect
#for observed data O=(S,W,A,Z,M,Y), where
#S=1 is the source population and S=0 is the target population
#W are covariates
#A is an instrumental variable
#Z is an intermediate variable that is affected by instrument A
#M is a me... |
#' Simulates catch at age and catch history data for testing SRA methods
#'
#' @description Catch at age and catch simulator.
#' @param OM An operating model object with M, growth, stock-recruitment and maturity parameters specified.
#' @param qmult Fraction of natural mortality rate that is mean fishing mortality (Fis... | /R/StochasticSRA.R | no_license | DLMtool/DLMtool | R | false | false | 48,477 | r | #' Simulates catch at age and catch history data for testing SRA methods
#'
#' @description Catch at age and catch simulator.
#' @param OM An operating model object with M, growth, stock-recruitment and maturity parameters specified.
#' @param qmult Fraction of natural mortality rate that is mean fishing mortality (Fis... |
library(dad)
### Name: rmrow.folder
### Title: Remove rows in all elements of a folder
### Aliases: rmrow.folder
### ** Examples
data(iris)
iris.fold <- as.folder(iris, "Species")
rmrow.folder(iris.fold, as.character(seq(1, 150, by = 2)))
| /data/genthat_extracted_code/dad/examples/rmrowfolder.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 247 | r | library(dad)
### Name: rmrow.folder
### Title: Remove rows in all elements of a folder
### Aliases: rmrow.folder
### ** Examples
data(iris)
iris.fold <- as.folder(iris, "Species")
rmrow.folder(iris.fold, as.character(seq(1, 150, by = 2)))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_cancel_handshake}
\alias{organizations_cancel_handshake}
\title{Cancels a handshake}
\usage{
organizations_cancel_handshake(HandshakeId)
}
\arguments{
\item{HandshakeId}{[required] The unique ide... | /paws/man/organizations_cancel_handshake.Rd | permissive | johnnytommy/paws | R | false | true | 1,529 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_cancel_handshake}
\alias{organizations_cancel_handshake}
\title{Cancels a handshake}
\usage{
organizations_cancel_handshake(HandshakeId)
}
\arguments{
\item{HandshakeId}{[required] The unique ide... |
library(caret)
library(randomForest)
# Setting up for Random Forest predictor.
# Initializing data. 'mtcars' dataset is used.
data("mtcars")
# To show structure in UI
dataStructure <- capture.output(str(mtcars))
# Setting up the random generator seed.
set.seed(553311)
# Defining custom training contro... | /DDP_Week4Assignment/modelBuilding.R | no_license | deysantanu84/coursera_data_science | R | false | false | 1,078 | r | library(caret)
library(randomForest)
# Setting up for Random Forest predictor.
# Initializing data. 'mtcars' dataset is used.
data("mtcars")
# To show structure in UI
dataStructure <- capture.output(str(mtcars))
# Setting up the random generator seed.
set.seed(553311)
# Defining custom training contro... |
#Sex-Linked Inheritance
A <- scan('rosalind_afrq.txt',sep = ' ')
B <- c()
for (each in A){
p = sqrt(each)
q = 1-p
B <- c(B, (2*p*q + p**2))
}
cat (B)
| /Rosalind/Counting Disease Carriers.R | no_license | alecmchiu/CS124 | R | false | false | 165 | r | #Sex-Linked Inheritance
A <- scan('rosalind_afrq.txt',sep = ' ')
B <- c()
for (each in A){
p = sqrt(each)
q = 1-p
B <- c(B, (2*p*q + p**2))
}
cat (B)
|
#' Sensitivity analysis for misclassification.
#'
#' Simple sensitivity analysis for misclassification.
#'
#' @param case Outcome variable. If a variable, this variable is tabulated against.
#' @param exposed Exposure variable.
#' @param implement Deprecated; please use type instead.
#' @param type Choice of misclassif... | /episensr/R/misclassification.R | no_license | ingted/R-Examples | R | false | false | 10,469 | r | #' Sensitivity analysis for misclassification.
#'
#' Simple sensitivity analysis for misclassification.
#'
#' @param case Outcome variable. If a variable, this variable is tabulated against.
#' @param exposed Exposure variable.
#' @param implement Deprecated; please use type instead.
#' @param type Choice of misclassif... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/esize_m.R
\name{esize_m}
\alias{esize_m}
\title{Effective Size}
\usage{
esize_m(lineup_table, k, both = FALSE)
}
\arguments{
\item{lineup_table}{A table of lineup choices}
\item{k}{Number of members in lineup. Must be specified by user (scal... | /man/esize_m.Rd | no_license | tmnaylor/r4lineups | R | false | true | 2,020 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/esize_m.R
\name{esize_m}
\alias{esize_m}
\title{Effective Size}
\usage{
esize_m(lineup_table, k, both = FALSE)
}
\arguments{
\item{lineup_table}{A table of lineup choices}
\item{k}{Number of members in lineup. Must be specified by user (scal... |
observeEvent(input$nextSDA_br2, {
SDAorder <- 1:as.numeric(envv$SDAres$command_arguments$num_comps)
if(envv$QC_compIter + 1 %in% SDAorder){
# envv$QC_compIter = SDAorder[which(SDAorder==envv$QC_compIter) + 1]
# updateTextInput(session, "SDAVn", value = envv$QC_compIter)
updateTextInput(se... | /inst/app/app_OE_BatchRemoved.R | no_license | bimberlabinternal/ShinySDA | R | false | false | 3,098 | r | observeEvent(input$nextSDA_br2, {
SDAorder <- 1:as.numeric(envv$SDAres$command_arguments$num_comps)
if(envv$QC_compIter + 1 %in% SDAorder){
# envv$QC_compIter = SDAorder[which(SDAorder==envv$QC_compIter) + 1]
# updateTextInput(session, "SDAVn", value = envv$QC_compIter)
updateTextInput(se... |
nri <- function(
x,
b1,
b2,
recursive = FALSE,
bywavelength = TRUE
)
{
if (!is.speclib(x))
stop("x must be of class 'Speclib'")
range.of.wavelength <- x$fwhm
reflectance <- spectra(x)
wavelength <- wavelength(x)
if (rec... | /hsdar/R/nri.R | no_license | ingted/R-Examples | R | false | false | 2,649 | r | nri <- function(
x,
b1,
b2,
recursive = FALSE,
bywavelength = TRUE
)
{
if (!is.speclib(x))
stop("x must be of class 'Speclib'")
range.of.wavelength <- x$fwhm
reflectance <- spectra(x)
wavelength <- wavelength(x)
if (rec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lidar_analysis.R
\name{wbt_zlidar_to_las}
\alias{wbt_zlidar_to_las}
\title{zlidar to las}
\usage{
wbt_zlidar_to_las(
inputs = NULL,
outdir = NULL,
wd = NULL,
verbose_mode = FALSE,
compress_rasters = FALSE
)
}
\arguments{
\item{input... | /man/wbt_zlidar_to_las.Rd | permissive | bkielstr/whiteboxR | R | false | true | 863 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lidar_analysis.R
\name{wbt_zlidar_to_las}
\alias{wbt_zlidar_to_las}
\title{zlidar to las}
\usage{
wbt_zlidar_to_las(
inputs = NULL,
outdir = NULL,
wd = NULL,
verbose_mode = FALSE,
compress_rasters = FALSE
)
}
\arguments{
\item{input... |
library(tidyverse)
library(lubridate)
# link: https://direito.consudata.com.br/jurimetria/dplyr/
### Operacoes em linhas
## count
relator <- detalhes %>%
count(relator_atual)
relator <- detalhes %>%
count(relator_atual, sort = TRUE)
relator_classe <- detalhes %>%
count(relator_atual... | /R/dplyr.R | permissive | saulofender/R_PostgreSQL | R | false | false | 3,236 | r | library(tidyverse)
library(lubridate)
# link: https://direito.consudata.com.br/jurimetria/dplyr/
### Operacoes em linhas
## count
relator <- detalhes %>%
count(relator_atual)
relator <- detalhes %>%
count(relator_atual, sort = TRUE)
relator_classe <- detalhes %>%
count(relator_atual... |
dadosParticipacaoGeral = read.csv("C:\\Users\\thiag_000\\Desktop\\analises2\\participacaoComunidades.csv", header = TRUE, sep = ';')
dadosRespostas = read.csv("C:\\Users\\thiag_000\\Desktop\\analises2\\respostasComunidades.csv", header = TRUE, sep = ';')
#dadosParticipacaoGeral = read.csv("/home/thiagoprocaci/analises... | /analysis/bio/voteUpRespostasQuartisBio.R | no_license | thiagoprocaci/experts-semantic-analysis | R | false | false | 2,654 | r | dadosParticipacaoGeral = read.csv("C:\\Users\\thiag_000\\Desktop\\analises2\\participacaoComunidades.csv", header = TRUE, sep = ';')
dadosRespostas = read.csv("C:\\Users\\thiag_000\\Desktop\\analises2\\respostasComunidades.csv", header = TRUE, sep = ';')
#dadosParticipacaoGeral = read.csv("/home/thiagoprocaci/analises... |
library(plyr)
daycares <- read.csv("shps/kendall/day_cares.csv", stringsAsFactors=FALSE)
public <- read.csv("shps/kendall/public_schools.csv", stringsAsFactors=FALSE)
private <- read.csv("shps/kendall/private_schools.csv", stringsAsFactors=FALSE)
housing <- read.csv("shps/kendall/pub_housing.csv", stringsAsFactors=FAL... | /2015/12/ct-drug-zones/unsorted/area_analysis.R | permissive | steve-kasica/data-1 | R | false | false | 3,317 | r | library(plyr)
daycares <- read.csv("shps/kendall/day_cares.csv", stringsAsFactors=FALSE)
public <- read.csv("shps/kendall/public_schools.csv", stringsAsFactors=FALSE)
private <- read.csv("shps/kendall/private_schools.csv", stringsAsFactors=FALSE)
housing <- read.csv("shps/kendall/pub_housing.csv", stringsAsFactors=FAL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wroboclient.R
\name{absPosition.robo}
\alias{absPosition.robo}
\title{Posição no sistema de referência abosluto}
\usage{
\method{absPosition}{robo}(dev)
}
\arguments{
\item{dev}{Um objeto de classe \code{robo} contendo informações sobre servi... | /man/absPosition.robo.Rd | permissive | tunelipt/rwrobo | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wroboclient.R
\name{absPosition.robo}
\alias{absPosition.robo}
\title{Posição no sistema de referência abosluto}
\usage{
\method{absPosition}{robo}(dev)
}
\arguments{
\item{dev}{Um objeto de classe \code{robo} contendo informações sobre servi... |
args = commandArgs(TRUE)
exprs = args[1]
n = args[2]
path = args[3]
path_output = args[4]
library('e1071')
setwd(path)
exprs = as.matrix(exprs)
exprs = read.table(exprs, header=T,row.names=1,sep="\t")
n = as.numeric(n)
c1 <- cmeans(exprs, n, iter.max = 100)
list <- as.list(c1$cluster)
vector <- as... | /Clustering/cmeans.R | no_license | anandksrao/Gene_coexpression_scripts | R | false | false | 394 | r | args = commandArgs(TRUE)
exprs = args[1]
n = args[2]
path = args[3]
path_output = args[4]
library('e1071')
setwd(path)
exprs = as.matrix(exprs)
exprs = read.table(exprs, header=T,row.names=1,sep="\t")
n = as.numeric(n)
c1 <- cmeans(exprs, n, iter.max = 100)
list <- as.list(c1$cluster)
vector <- as... |
#So: cauchy at 0, 1 seems to not converge on a a straightforward result with iter=300,warmup=200, or even warmup=1500, iter=2000. This may be a problem.
library(rstan)
source("stanlba/lba_rl_joint_setup.R")
require(R.utils)
options(mc.cores = 6)
source("stanlba/singlelevelmodel/lba_rl_joint_v1_functions.R")
source("st... | /stanlba/singlelevelmodel/lba_rl_joint_v11j.R | permissive | bjsmith/reversallearning | R | false | false | 5,805 | r | #So: cauchy at 0, 1 seems to not converge on a a straightforward result with iter=300,warmup=200, or even warmup=1500, iter=2000. This may be a problem.
library(rstan)
source("stanlba/lba_rl_joint_setup.R")
require(R.utils)
options(mc.cores = 6)
source("stanlba/singlelevelmodel/lba_rl_joint_v1_functions.R")
source("st... |
#' plot model comparisons
#'
#' Creates a user-chosen set of plots comparing model output from a summary of
#' multiple models, where the collection was created using the
#' `SSsummarize` function.
#'
#'
#' @param summaryoutput List created by `SSsummarize`
#' @param subplots Vector of subplots to be created
#' Numberi... | /R/SSplotComparisons.R | no_license | yukio-takeuchi/r4ss | R | false | false | 94,463 | r | #' plot model comparisons
#'
#' Creates a user-chosen set of plots comparing model output from a summary of
#' multiple models, where the collection was created using the
#' `SSsummarize` function.
#'
#'
#' @param summaryoutput List created by `SSsummarize`
#' @param subplots Vector of subplots to be created
#' Numberi... |
library(dplyr)
library(tidyr)
# Create a vector of features using the features.txt file
features <- read.csv("features.txt", sep = "", header = FALSE, col.names = c("code", "feature"))[, c("feature")]
# Create a data frame of activities using the activity label file
activities <- read.csv("activity_labels.txt", sep =... | /run_analysis.R | no_license | jthoburn/Getting-and-Cleaning-Data | R | false | false | 2,157 | r | library(dplyr)
library(tidyr)
# Create a vector of features using the features.txt file
features <- read.csv("features.txt", sep = "", header = FALSE, col.names = c("code", "feature"))[, c("feature")]
# Create a data frame of activities using the activity label file
activities <- read.csv("activity_labels.txt", sep =... |
library(tidyverse)
library(fuzzyjoin)
read_csv("AOUlist.csv", skip=1)%>%
select(`Scientific Name`, `Common Name`, Order, Family)%>%
filter(str_detect(`Scientific Name`, "Aphelocoma"))
read_csv("TRFO_bird_list.csv")%>%
select(-`General Grouping`)%>%
left_join(
read_csv("AOUlist.csv", skip=1)%>%
selec... | /R/combine_audio_and_bird_list.R | no_license | mschmidty/bird_id_trainer | R | false | false | 2,229 | r | library(tidyverse)
library(fuzzyjoin)
read_csv("AOUlist.csv", skip=1)%>%
select(`Scientific Name`, `Common Name`, Order, Family)%>%
filter(str_detect(`Scientific Name`, "Aphelocoma"))
read_csv("TRFO_bird_list.csv")%>%
select(-`General Grouping`)%>%
left_join(
read_csv("AOUlist.csv", skip=1)%>%
selec... |
### Prepare the environment
# Change env timezone to UTC make xts subsetting work
Sys.setenv(TZ='UTC')
# Load the required libraries
library(stats)
library(xts)
library(vRODBC)
library(distributedR)
library(Metrics)
library(HPdclassifier)
library(HPdregression)
library(e1071)
# Start Distributed R (ignore error if a... | /gas_prediction.r | permissive | cjalmeida/gas_challenge | R | false | false | 10,521 | r | ### Prepare the environment
# Change env timezone to UTC make xts subsetting work
Sys.setenv(TZ='UTC')
# Load the required libraries
library(stats)
library(xts)
library(vRODBC)
library(distributedR)
library(Metrics)
library(HPdclassifier)
library(HPdregression)
library(e1071)
# Start Distributed R (ignore error if a... |
#########################################################################
#
# Auxiliar program to run all experiments in parallel
#
# Author: Marcos A. Domingues
# Date: September, 2016
#
#########################################################################
# Setup the input and output dir to run all expe... | /runExperiments.R | no_license | markchou/CARSlibrary | R | false | false | 1,123 | r | #########################################################################
#
# Auxiliar program to run all experiments in parallel
#
# Author: Marcos A. Domingues
# Date: September, 2016
#
#########################################################################
# Setup the input and output dir to run all expe... |
##################################################################################################
## ##
## BALD is an R-package. ##
## It is a Bayesi... | /R/AnnualAggLossDevModelOutput.R | no_license | cran/BALD | R | false | false | 167,147 | r | ##################################################################################################
## ##
## BALD is an R-package. ##
## It is a Bayesi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.