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 |
|---|---|---|---|---|---|---|---|---|---|
# Header ------------------------------------------------------------------
#****************************************************************************************************
#****************************************************************************************************
#*** Script title: Enrolments Pathw... | /Pathways.R | no_license | Eemaa26/pathways | R | false | false | 61,187 | r | # Header ------------------------------------------------------------------
#****************************************************************************************************
#****************************************************************************************************
#*** Script title: Enrolments Pathw... |
#
# Merge all AML RNASeq data into one table for google cloud storage.
#
# __________________________________________________________________
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
rm(list=ls(all=TRUE))
setwd(paste0("/data/CCRBioinfo/Henry/BigQuery.Data/target_aml/",
... | /inst/munge_scripts/target_aml_file_processing/target_aml_rnaseq_tab2csv.R | no_license | teamcgc/TARGETCloud | R | false | false | 2,662 | r | #
# Merge all AML RNASeq data into one table for google cloud storage.
#
# __________________________________________________________________
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
rm(list=ls(all=TRUE))
setwd(paste0("/data/CCRBioinfo/Henry/BigQuery.Data/target_aml/",
... |
#' Partition time series data for training and testing
#'
#' This function divides the data into train and test sets. The first 80% is
#' observations are assigned to the training set; the last 20% are assigned to
#' the testing set.
#'
#' @param df A data frame with at least three columns.
#' \code{t0_index}... | /R/fl_partition_data.R | permissive | yimi97/finma | R | false | false | 2,083 | r | #' Partition time series data for training and testing
#'
#' This function divides the data into train and test sets. The first 80% is
#' observations are assigned to the training set; the last 20% are assigned to
#' the testing set.
#'
#' @param df A data frame with at least three columns.
#' \code{t0_index}... |
## RCP 2.6 data
rf.2 <- read.table('/alphadata01/bstocker/output_multiGHG/RF_2_b3d_RFall.dat',
col.names=c("year","ctrl","had","mpi","ips","mir","ccs")
)
dt.2 <- read.table('/alphadata01/bstocker/output_multiGHG/dT_2_b3d_RFall.dat',
col.names=c("year","ctrl","had","mpi","i... | /R/plot_feedback_vs_time.R | no_license | stineb/multiGHG | R | false | false | 3,616 | r |
## RCP 2.6 data
rf.2 <- read.table('/alphadata01/bstocker/output_multiGHG/RF_2_b3d_RFall.dat',
col.names=c("year","ctrl","had","mpi","ips","mir","ccs")
)
dt.2 <- read.table('/alphadata01/bstocker/output_multiGHG/dT_2_b3d_RFall.dat',
col.names=c("year","ctrl","had","mpi","i... |
library(plyr)
library(xlsx)
finalmatrix <- data.frame()
file <- c(1,2,8,9,10,11,22,29,30,31,32,33,34,35,36,48,52,53,54,55,56,57,58,59,60,61,62,64,65,66) #--number of aphid observations for 2011
for (l in file) {
#--sets the workspace
setwd("/nethome/erichs/Aphid 2012 csv results")
#--reads in the csv file as a da... | /archivedcode/aphid_sampling_2012.R | no_license | erichseamon/aphids | R | false | false | 6,523 | r | library(plyr)
library(xlsx)
finalmatrix <- data.frame()
file <- c(1,2,8,9,10,11,22,29,30,31,32,33,34,35,36,48,52,53,54,55,56,57,58,59,60,61,62,64,65,66) #--number of aphid observations for 2011
for (l in file) {
#--sets the workspace
setwd("/nethome/erichs/Aphid 2012 csv results")
#--reads in the csv file as a da... |
#' @import dplyr
#' @importFrom magrittr %>%
#' @export
trace_adjmatrix <- function(x) {
stopifnot(x %hascols% c("caseid", "activity", "completeTime"))
activity_alphabet <- sort(unique(x[["activity"]]))
n_activities <- n_distinct(x[["activity"]])
# Trace adjacency matrix
adjmat <- matrix(rep(0, n_a... | /R/graph_mining.R | no_license | nirmalpatel/eduminer | R | false | false | 2,651 | r | #' @import dplyr
#' @importFrom magrittr %>%
#' @export
trace_adjmatrix <- function(x) {
stopifnot(x %hascols% c("caseid", "activity", "completeTime"))
activity_alphabet <- sort(unique(x[["activity"]]))
n_activities <- n_distinct(x[["activity"]])
# Trace adjacency matrix
adjmat <- matrix(rep(0, n_a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{dist_units}
\alias{dist_units}
\title{Distance units (data frame)}
\format{
A data frame with 33 rows and 12 variables:
\describe{
\item{\code{symbol}}{symbols}
\item{\code{symbol_aliases}}{symbol aliases}
\item{\c... | /man/dist_units.Rd | permissive | elipousson/sfext | R | false | true | 1,028 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{dist_units}
\alias{dist_units}
\title{Distance units (data frame)}
\format{
A data frame with 33 rows and 12 variables:
\describe{
\item{\code{symbol}}{symbols}
\item{\code{symbol_aliases}}{symbol aliases}
\item{\c... |
#### E1 WHAT WAS YOUR LABOUR MARKET SITUATION #####
output$E1_1_16 <-renderHighchart({
mar <- lapply(dmms, function(x){
x<-x[,c("E1_1","E1_2","E1_3","E1_4",
"E1_5","E1_6","E1_7","E1_8","E1_9",
input$magE,"year")]#input$magC,
colnames(x)<-c("E1_1","E1_2","E1_3"... | /Server_e_block.R | no_license | JuanGaleano/Migration-and-Mobility-Survey | R | false | false | 136,894 | r | #### E1 WHAT WAS YOUR LABOUR MARKET SITUATION #####
output$E1_1_16 <-renderHighchart({
mar <- lapply(dmms, function(x){
x<-x[,c("E1_1","E1_2","E1_3","E1_4",
"E1_5","E1_6","E1_7","E1_8","E1_9",
input$magE,"year")]#input$magC,
colnames(x)<-c("E1_1","E1_2","E1_3"... |
# a test of some metropolis hastings integration
# cacuchy dist
f <- function(x){
#exp(-4*x*x)
#sin(3*x)
# the cauchy distribution
#(1.0)/(1+x*x)
1/((1+x^2)^2)
}
# this is for integrating the function exp(-4*x^2)
g <- function(x){
pi*(1+x^2)*exp(-4*x^2)*(x>0)*(x<1)
}
q <- function(x, y){
rnorm(1, x, y... | /r-fns/metropolis.R | permissive | MADAI/MADAIEmulator | R | false | false | 1,908 | r | # a test of some metropolis hastings integration
# cacuchy dist
f <- function(x){
#exp(-4*x*x)
#sin(3*x)
# the cauchy distribution
#(1.0)/(1+x*x)
1/((1+x^2)^2)
}
# this is for integrating the function exp(-4*x^2)
g <- function(x){
pi*(1+x^2)*exp(-4*x^2)*(x>0)*(x<1)
}
q <- function(x, y){
rnorm(1, x, y... |
library(MortalitySmooth)
### Name: plot.HMDdata
### Title: Plot age and year specific demographic data
### Aliases: plot.HMDdata
### Keywords: hplot
### ** Examples
## 1-D plot
popDENf <- selectHMDdata("Denmark", "Population",
"Females", 50:100, 2000)
plot(popDENf, main="Danish female popu... | /data/genthat_extracted_code/MortalitySmooth/examples/plot.HMDdata.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 841 | r | library(MortalitySmooth)
### Name: plot.HMDdata
### Title: Plot age and year specific demographic data
### Aliases: plot.HMDdata
### Keywords: hplot
### ** Examples
## 1-D plot
popDENf <- selectHMDdata("Denmark", "Population",
"Females", 50:100, 2000)
plot(popDENf, main="Danish female popu... |
#install.packages("plotly")
#install.packages("ggplot2")
library(plotly)
library(ggplot2)
library(htmlwidgets)
library(tidyr)
## SEA TEMPERATURE
sea_temp <- read.csv('sea-surface-temperature-anomaly1.csv')
# change col names
colnames(sea_temp)[4] <- "sea_surface_temp_avg"
colnames(sea_temp)[5] <- "sea_surface_temp_LC... | /data_vis/simple_bar_chart.R | permissive | sinyeen/HappyCorals | R | false | false | 5,013 | r | #install.packages("plotly")
#install.packages("ggplot2")
library(plotly)
library(ggplot2)
library(htmlwidgets)
library(tidyr)
## SEA TEMPERATURE
sea_temp <- read.csv('sea-surface-temperature-anomaly1.csv')
# change col names
colnames(sea_temp)[4] <- "sea_surface_temp_avg"
colnames(sea_temp)[5] <- "sea_surface_temp_LC... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.Bhattacharya.R
\name{plot.Bhattacharya}
\alias{plot.Bhattacharya}
\title{Bhattacharya plot}
\usage{
\method{plot}{Bhattacharya}(x, analysisPlot = TRUE, ...)
}
\arguments{
\item{x}{a list of the class \code{"Bhattacharya"} containing the ... | /man/plot.Bhattacharya.Rd | no_license | alko989/TropFishR | R | false | true | 1,030 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.Bhattacharya.R
\name{plot.Bhattacharya}
\alias{plot.Bhattacharya}
\title{Bhattacharya plot}
\usage{
\method{plot}{Bhattacharya}(x, analysisPlot = TRUE, ...)
}
\arguments{
\item{x}{a list of the class \code{"Bhattacharya"} containing the ... |
library(dplyr)
library(ggplot2)
library(readr)
library(tidyr)
library(purrr)
library(tidyverse)
library(zoo)
#############################################
## import data ##
#############################################
# pregnancy
preg <- read.csv('/Users/madelinecampbell/Documents/GitHub... | /covid_fertility/google_trends_fertility.R | no_license | madcampb/projects | R | false | false | 2,758 | r | library(dplyr)
library(ggplot2)
library(readr)
library(tidyr)
library(purrr)
library(tidyverse)
library(zoo)
#############################################
## import data ##
#############################################
# pregnancy
preg <- read.csv('/Users/madelinecampbell/Documents/GitHub... |
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/1609868127-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... |
library(DHARMa)
### Name: DHARMa
### Title: DHARMa - Residual Diagnostics for HierArchical (Multi-level /
### Mixed) Regression Models
### Aliases: DHARMa DHARMa-package
### ** Examples
vignette("DHARMa", package="DHARMa")
| /data/genthat_extracted_code/DHARMa/examples/DHARMa.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 232 | r | library(DHARMa)
### Name: DHARMa
### Title: DHARMa - Residual Diagnostics for HierArchical (Multi-level /
### Mixed) Regression Models
### Aliases: DHARMa DHARMa-package
### ** Examples
vignette("DHARMa", package="DHARMa")
|
library(LearningRlab)
### Name: interactive.absolute_frecuency
### Title: User Interactive Absolute Frecuency Calculus
### Aliases: interactive.absolute_frecuency
### Keywords: ~absolute ~interactive ~frecuency ~frecuencia
### ** Examples
## Not run:
##D interactive.absolute_frecuency()
##D
## End(Not run)... | /data/genthat_extracted_code/LearningRlab/examples/interactive.absolute_frecuency.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 325 | r | library(LearningRlab)
### Name: interactive.absolute_frecuency
### Title: User Interactive Absolute Frecuency Calculus
### Aliases: interactive.absolute_frecuency
### Keywords: ~absolute ~interactive ~frecuency ~frecuencia
### ** Examples
## Not run:
##D interactive.absolute_frecuency()
##D
## End(Not run)... |
# run instantaneous R0 calculations per county from data pulled through API by Steve Wangen
#install.packages("epitools")
#install.packages("Epi")
library(incidence)
library(earlyR)
library(EpiEstim)
library(projections)
library(epitools)
library(Epi)
library(ggplot2)
library(reshape)
library(plyr)
library(dplyr)
libr... | /bin/original/JFMR4_DD3_R_0_counties4_30_20_all_R_0s.R | no_license | SteveGoldstein/Covid19computWI_R0 | R | false | false | 13,232 | r | # run instantaneous R0 calculations per county from data pulled through API by Steve Wangen
#install.packages("epitools")
#install.packages("Epi")
library(incidence)
library(earlyR)
library(EpiEstim)
library(projections)
library(epitools)
library(Epi)
library(ggplot2)
library(reshape)
library(plyr)
library(dplyr)
libr... |
#' Makes a heat map from your activity data
#'
#' Makes a heat map from your activity data
#'
#' @author Daniel Padfield, Marcus Beck
#'
#' @concept token
#'
#' @param act_data an activities list object returned by \code{\link{get_activity_list}}, an \code{actframe} returned by \code{\link{compile_activities}}, or ... | /R/get_heat_map.R | permissive | C-P-G/rStrava | R | false | false | 11,741 | r | #' Makes a heat map from your activity data
#'
#' Makes a heat map from your activity data
#'
#' @author Daniel Padfield, Marcus Beck
#'
#' @concept token
#'
#' @param act_data an activities list object returned by \code{\link{get_activity_list}}, an \code{actframe} returned by \code{\link{compile_activities}}, or ... |
\name{ex11.17}
\alias{ex11.17}
\docType{data}
\title{R Data set: ex11.17}
\description{
The \code{ex11.17} data frame has 18 rows and 4 columns.
}
\usage{data(ex11.17)}
\format{
A data frame with 18 observations on the following 4 variables.
\describe{
\item{\code{Sand.Addition.perc}}{a numeric vector}
\ite... | /man/ex11.17.Rd | no_license | cran/Devore7 | R | false | false | 856 | rd | \name{ex11.17}
\alias{ex11.17}
\docType{data}
\title{R Data set: ex11.17}
\description{
The \code{ex11.17} data frame has 18 rows and 4 columns.
}
\usage{data(ex11.17)}
\format{
A data frame with 18 observations on the following 4 variables.
\describe{
\item{\code{Sand.Addition.perc}}{a numeric vector}
\ite... |
#library(tidytext);
#library(janeaustenr);
library(janeaustenr)
library(stringr)
library(tidyr)
library(tibble)
library(dplyr)
library(tidytext)
library(ggplot2)
ID <- c(1:50)
## Creating sex variable (25 males/25 females)
Sex <- rep(c("male", "female"), 25) # rep stands for replicate
## Creating age variable (20-... | /main.r | no_license | Quasilius-Starlord/senetement-detection-R | R | false | false | 3,283 | r | #library(tidytext);
#library(janeaustenr);
library(janeaustenr)
library(stringr)
library(tidyr)
library(tibble)
library(dplyr)
library(tidytext)
library(ggplot2)
ID <- c(1:50)
## Creating sex variable (25 males/25 females)
Sex <- rep(c("male", "female"), 25) # rep stands for replicate
## Creating age variable (20-... |
# Tutorial at https://www.datanovia.com/en/blog/types-of-clustering-methods-overview-and-quick-start-r-code/
# install packages
install.packages("factoextra") # for elegant ggplot dataviz
install.packages("cluster") # for computing clustering
install.packages("magrittr") # for piping %>%
#load packages
library("clust... | /clustering_helen/clustering_test.R | no_license | jargonautical/r_projects | R | false | false | 2,797 | r | # Tutorial at https://www.datanovia.com/en/blog/types-of-clustering-methods-overview-and-quick-start-r-code/
# install packages
install.packages("factoextra") # for elegant ggplot dataviz
install.packages("cluster") # for computing clustering
install.packages("magrittr") # for piping %>%
#load packages
library("clust... |
library(reshape2)
library(tidyverse)
library(getBestSpp)
source('Code/functions.R')
source('Code/half_baked_plot_function.R')
source('Code/summarize_sim_results.R')
source('Code/toy_model.R')
args <- commandArgs(TRUE)
nsims <- args[1]
sim_pars$recruit_corr <- 0
sim_pars$ind_pops <- 0
fleet_distn <- list()
fleet_dist... | /Code/for_cluster/access_sims.R | no_license | okenk/CC_bioecon | R | false | false | 1,055 | r | library(reshape2)
library(tidyverse)
library(getBestSpp)
source('Code/functions.R')
source('Code/half_baked_plot_function.R')
source('Code/summarize_sim_results.R')
source('Code/toy_model.R')
args <- commandArgs(TRUE)
nsims <- args[1]
sim_pars$recruit_corr <- 0
sim_pars$ind_pops <- 0
fleet_distn <- list()
fleet_dist... |
library(testthat)
library(parsnip)
library(rlang)
library(tibble)
# ------------------------------------------------------------------------------
context("logistic regression")
source("helpers.R")
# ------------------------------------------------------------------------------
test_that('primary arguments', {
ba... | /tests/testthat/test_logistic_reg.R | no_license | conradbm/parsnip | R | false | false | 10,574 | r | library(testthat)
library(parsnip)
library(rlang)
library(tibble)
# ------------------------------------------------------------------------------
context("logistic regression")
source("helpers.R")
# ------------------------------------------------------------------------------
test_that('primary arguments', {
ba... |
##==================================================
# sid_RC
# Cedric Bezy, Riwan Mouster
##==================================================
rm(list = ls())
##=======================================
# needed packages
##=======================================
# Set Option : Date in English
Sys.setlocale("LC_TIME", ... | /code/XGB_naMonHour_scaleMonHour_sc6.R | no_license | CedricBezy/ouessant | R | false | false | 3,417 | r | ##==================================================
# sid_RC
# Cedric Bezy, Riwan Mouster
##==================================================
rm(list = ls())
##=======================================
# needed packages
##=======================================
# Set Option : Date in English
Sys.setlocale("LC_TIME", ... |
library(purrr)
library(org.Hs.eg.db)
library(annotate)
library(dplyr)
library(tidyr)
library(biomaRt)
setwd('c:/Users/abhmalat/OneDrive - Indiana University/cbio_MMRF')
df <- read.csv('somatic_mutation_files/MMRF_CoMMpass_IA16a_All_Canonical_NS_Variants.txt', sep="\t", header=TRUE)
head(df)
colnames(df)
summary(df)
... | /DT_CREATE_MUTATION_FILE.r | no_license | iuabhmalat/mmrf_scripts | R | false | false | 5,309 | r | library(purrr)
library(org.Hs.eg.db)
library(annotate)
library(dplyr)
library(tidyr)
library(biomaRt)
setwd('c:/Users/abhmalat/OneDrive - Indiana University/cbio_MMRF')
df <- read.csv('somatic_mutation_files/MMRF_CoMMpass_IA16a_All_Canonical_NS_Variants.txt', sep="\t", header=TRUE)
head(df)
colnames(df)
summary(df)
... |
library(unmarked)
library(MuMIn)
library(rgdal)
library(rgeos)
library(foreign)
library(foreach)
source("f.AIC_cut.occu.sig.used.15.10.23.R")
source("getDesign.R")
ObsCovarSet <- c("DAY", "TIME", "COUNT_TYPE", "EFFORT_HRS", "EFFORT_DISTANCE_KM", "NUMBER_OBSERVERS")
covar <- read.csv("./input/eBird_occu_covar_site_... | /occu_models/YEWA_eBird.R | no_license | ricschuster/Tradeoffs-biodiversity-cost | R | false | false | 4,338 | r | library(unmarked)
library(MuMIn)
library(rgdal)
library(rgeos)
library(foreign)
library(foreach)
source("f.AIC_cut.occu.sig.used.15.10.23.R")
source("getDesign.R")
ObsCovarSet <- c("DAY", "TIME", "COUNT_TYPE", "EFFORT_HRS", "EFFORT_DISTANCE_KM", "NUMBER_OBSERVERS")
covar <- read.csv("./input/eBird_occu_covar_site_... |
############################################################################
#
# This file is part of the course material for "Individual-based Modelling
# in Epidemiology" by Wim Delva and Lander Willem.
#
############################################################################
load_behaviorspace_table <- functio... | /R/load_behaviorspace_table.R | no_license | lwillem/IBMcourseTutorials | R | false | false | 461 | r | ############################################################################
#
# This file is part of the course material for "Individual-based Modelling
# in Epidemiology" by Wim Delva and Lander Willem.
#
############################################################################
load_behaviorspace_table <- functio... |
testlist <- list(iK = 185465868L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) | /eDMA/inst/testfiles/PowerSet/AFL_PowerSet/PowerSet_valgrind_files/1609869774-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 89 | r | testlist <- list(iK = 185465868L)
result <- do.call(eDMA:::PowerSet,testlist)
str(result) |
###################################################
# Sine Data Simulations #
###################################################
## Loading Source files
library(MCPanel)
library(glmnet)
library(reshape2)
# Setup parallel processing
library(parallel)
library(doParallel)
cores <- parallel::detectCores()
print(paste0... | /code/sine-placebo.R | permissive | jvpoulos/rnns-causal | R | false | false | 7,791 | r | ###################################################
# Sine Data Simulations #
###################################################
## Loading Source files
library(MCPanel)
library(glmnet)
library(reshape2)
# Setup parallel processing
library(parallel)
library(doParallel)
cores <- parallel::detectCores()
print(paste0... |
## Creates a special "matrix" object that can cache and
## computes the inverse of the special "matrix"
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(matrix_to_reverse = matrix()) {
## Empty the cache
reversed_matrix_value <- NULL
## Define the se... | /cachematrix.R | no_license | fahernandez/ProgrammingAssignment2 | R | false | false | 1,714 | r | ## Creates a special "matrix" object that can cache and
## computes the inverse of the special "matrix"
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(matrix_to_reverse = matrix()) {
## Empty the cache
reversed_matrix_value <- NULL
## Define the se... |
library(png)
fan <- readPNG(system.file("images", "fan-small.png", package="mmand"))
context("Mathematical morphology and filtering")
test_that("binary mathematical morphology operations work", {
data <- c(0,0,1,0,0,0,1,1,1,0,0)
kernel <- c(1,1,1)
expect_that(binary(data), is_true())
expect_that(erode... | /tests/testthat/test-10-morph.R | no_license | jefferis/mmand | R | false | false | 2,089 | r | library(png)
fan <- readPNG(system.file("images", "fan-small.png", package="mmand"))
context("Mathematical morphology and filtering")
test_that("binary mathematical morphology operations work", {
data <- c(0,0,1,0,0,0,1,1,1,0,0)
kernel <- c(1,1,1)
expect_that(binary(data), is_true())
expect_that(erode... |
#' @title Calculate the stat category for each gage's discharge value
#'
#' @param ind_file character file name where the output should be saved
#' @param dv_data_ind indicator file for the data.frame of dv_data
#' @param site_stats_clean_ind indicator file for the data.frame of dv stats for each site
#' @param dates o... | /2_process/src/process_dv_stats.R | no_license | aappling-usgs/gage-conditions-gif | R | false | false | 3,332 | r | #' @title Calculate the stat category for each gage's discharge value
#'
#' @param ind_file character file name where the output should be saved
#' @param dv_data_ind indicator file for the data.frame of dv_data
#' @param site_stats_clean_ind indicator file for the data.frame of dv stats for each site
#' @param dates o... |
matrixCovariance <- function(x){
RES <- .Call( "matrixCovarianceC", x, PACKAGE = "tensorBSS")
RES
}
| /tensorBSS/R/matrixCovariance.R | no_license | ingted/R-Examples | R | false | false | 108 | r | matrixCovariance <- function(x){
RES <- .Call( "matrixCovarianceC", x, PACKAGE = "tensorBSS")
RES
}
|
mtcars
dotchart(mtcars$mpg, labels=row.names(mtcars),cex=1,xlab="mpg")
| /dotchart-mtcars.R | no_license | anjali0508/DSR | R | false | false | 71 | r | mtcars
dotchart(mtcars$mpg, labels=row.names(mtcars),cex=1,xlab="mpg")
|
library(dplyr)
library(ggplot2)
library(purrr)
library(tensorflow)
library(MASS)
library(dplyr)
library(caret)
library(kernlab)
library(class)
library(gridExtra)
#######################################
# Linearly separable data illustrated #
#######################################
# the separating hyperplane is: 2x ... | /linear_classifyers.R | no_license | stjordanis/mnist | R | false | false | 3,771 | r | library(dplyr)
library(ggplot2)
library(purrr)
library(tensorflow)
library(MASS)
library(dplyr)
library(caret)
library(kernlab)
library(class)
library(gridExtra)
#######################################
# Linearly separable data illustrated #
#######################################
# the separating hyperplane is: 2x ... |
library(keras)
library(tensorflow)
library(ggplot2)
library(stats)
library(readr)
library(dplyr)
library(forecast)
#Inspect Data
ggplot(df,aes(ds,y))+geom_line()
#Transform into stationarity
dateID <- df$ds[2:nrow(df)]
diff <- diff(df$y, differencs = 1)
#Create Lagged Dataset
supervised <- as.data.fr... | /Forecast/deep.R | no_license | Pranavjain23/Air-Pollution-Prediction-and-Forecasting | R | false | false | 2,650 | r | library(keras)
library(tensorflow)
library(ggplot2)
library(stats)
library(readr)
library(dplyr)
library(forecast)
#Inspect Data
ggplot(df,aes(ds,y))+geom_line()
#Transform into stationarity
dateID <- df$ds[2:nrow(df)]
diff <- diff(df$y, differencs = 1)
#Create Lagged Dataset
supervised <- as.data.fr... |
## The functions within this file first provide a special matrix object that
## can cache its inverse via the makeCacheMatrix function.
## The cacheSolve function then computes the inverse of the special
## matrix returned by the makeCacheMatrix function in cases where
## it has not already been calculated. If the inve... | /cachematrix.R | no_license | bgreen1027/ProgrammingAssignment2 | R | false | false | 1,381 | r | ## The functions within this file first provide a special matrix object that
## can cache its inverse via the makeCacheMatrix function.
## The cacheSolve function then computes the inverse of the special
## matrix returned by the makeCacheMatrix function in cases where
## it has not already been calculated. If the inve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psum.R
\name{pprod}
\alias{pprod}
\title{Elementwise product of two matrices, disaggregating one matrix if neeeded}
\usage{
pprod(a, b)
}
\arguments{
\item{a}{a matrix}
\item{b}{a matrix whose dimensions are an integer multiple of \code{a}'s... | /wsim.agriculture/man/pprod.Rd | permissive | isciences/wsim | R | false | true | 428 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psum.R
\name{pprod}
\alias{pprod}
\title{Elementwise product of two matrices, disaggregating one matrix if neeeded}
\usage{
pprod(a, b)
}
\arguments{
\item{a}{a matrix}
\item{b}{a matrix whose dimensions are an integer multiple of \code{a}'s... |
###-----------------------------------------------
### The data. **AR included**
###-----------------------------------------------
f = function(t){
5*cos(t*9) - (t - 0.7)^2 *10 + (t-0.2)^3 *20
}
ma = function(n, ph1, p){
wn = rnorm(n)
ma = rep(NA, n)
ma[1:p] = wn[1:p]
for (i in (p+1):n){
ma[i] = wn[(i-1... | /comparing_methods.R | permissive | dominic-lcw/ts_cp | R | false | false | 13,019 | r | ###-----------------------------------------------
### The data. **AR included**
###-----------------------------------------------
f = function(t){
5*cos(t*9) - (t - 0.7)^2 *10 + (t-0.2)^3 *20
}
ma = function(n, ph1, p){
wn = rnorm(n)
ma = rep(NA, n)
ma[1:p] = wn[1:p]
for (i in (p+1):n){
ma[i] = wn[(i-1... |
#' @title Get air pollutant data
#'
#' @description Get air emissions accounts by NACE Rev. 2 activity for environmental impact
#' assessments.
#'
#' @details Currently tested only with product x product tables.
#' The dataset air emissions accounts by NACE Rev. 2 activity [env_ac_ainah_r2] has five dimensions:
#' Th... | /R/airpol_get.R | permissive | rOpenGov/iotables | R | false | false | 8,338 | r | #' @title Get air pollutant data
#'
#' @description Get air emissions accounts by NACE Rev. 2 activity for environmental impact
#' assessments.
#'
#' @details Currently tested only with product x product tables.
#' The dataset air emissions accounts by NACE Rev. 2 activity [env_ac_ainah_r2] has five dimensions:
#' Th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_Installer.R
\name{source_https}
\alias{source_https}
\title{This function sources scripts from git_hub}
\usage{
source_https(url, ...)
}
\arguments{
\item{url}{urls}
}
\description{
This function sources scripts from git_hub
}
\exam... | /man/source_https.Rd | no_license | James-A-Allison/BasicSettings | R | false | true | 548 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_Installer.R
\name{source_https}
\alias{source_https}
\title{This function sources scripts from git_hub}
\usage{
source_https(url, ...)
}
\arguments{
\item{url}{urls}
}
\description{
This function sources scripts from git_hub
}
\exam... |
library("foreign")
data = read.octave("codesx.mat");
d = dist(data$codes);
#pdf("codesx.pdf")
plot(as.dendrogram(hclust(d, method='complete')), horiz=TRUE)
| /data/raam-syntax/plotcodes.R | no_license | abarcz/structured-data | R | false | false | 158 | r | library("foreign")
data = read.octave("codesx.mat");
d = dist(data$codes);
#pdf("codesx.pdf")
plot(as.dendrogram(hclust(d, method='complete')), horiz=TRUE)
|
context("FandV scheme cipher text matrices")
test_that("Matrices", {
p <- pars("FandV")
keys <- keygen(p)
m <- matrix(1:9, 3)
ct <- enc(keys$pk, m)
expect_that(dec(keys$sk, ct), equals(m))
expect_that(dec(keys$sk, ct[2]), equals(m[2]))
expect_that(dec(keys$sk, ct[2,]), equals(m[2,]))
expect_that(dec... | /tests/testthat/test-FandV_ct_mat.R | no_license | iamtrask/R-Homomorphic-Encryption-Package | R | false | false | 8,628 | r | context("FandV scheme cipher text matrices")
test_that("Matrices", {
p <- pars("FandV")
keys <- keygen(p)
m <- matrix(1:9, 3)
ct <- enc(keys$pk, m)
expect_that(dec(keys$sk, ct), equals(m))
expect_that(dec(keys$sk, ct[2]), equals(m[2]))
expect_that(dec(keys$sk, ct[2,]), equals(m[2,]))
expect_that(dec... |
# --------------------------------------------------------
# Topic: circular barplot
# Author: Linzheng
# Date:Fri Dec 04 17:29:30 2020
# Mail: mixfruitszu@gmail.com
# --------------------------------------------------------
library(tidyverse)
# 构建示例数据
data <- data.frame(
id=seq(1,60),
individual=paste( "Mister ... | /circular-barplot.r | no_license | RinLinux/RNotes | R | false | false | 4,772 | r |
# --------------------------------------------------------
# Topic: circular barplot
# Author: Linzheng
# Date:Fri Dec 04 17:29:30 2020
# Mail: mixfruitszu@gmail.com
# --------------------------------------------------------
library(tidyverse)
# 构建示例数据
data <- data.frame(
id=seq(1,60),
individual=paste( "Mister ... |
#' @title Simulation of SIR models using R
#' @description In the SIR model, an infected person may recover or die, and once recovered or died he or she will not be infected again.After the initial value of SIR model is given, the figure of the model is drawn and the simulation results are given.
#' @import deSolve
#' ... | /R/sir.R | no_license | XuZiling98/homework | R | false | false | 1,982 | r | #' @title Simulation of SIR models using R
#' @description In the SIR model, an infected person may recover or die, and once recovered or died he or she will not be infected again.After the initial value of SIR model is given, the figure of the model is drawn and the simulation results are given.
#' @import deSolve
#' ... |
rm(list=ls())
as = seq(0.001, 10, 0.5)
bs = seq(0.01, 10, 0.01)
flag=1
for (a in as){
for(b in bs){
print(a)
print(b)
print('')
if(flag){
curve(dgamma(x, a, scale=b), 0, 20, 1000,)
flag=0
}
curve(dgamma(x, a, scale=b), 0, 20, 1000, add=T)
}
}
| /herbie/tgpStart/gammaTest.r | no_license | gasduster99/theses | R | false | false | 265 | r | rm(list=ls())
as = seq(0.001, 10, 0.5)
bs = seq(0.01, 10, 0.01)
flag=1
for (a in as){
for(b in bs){
print(a)
print(b)
print('')
if(flag){
curve(dgamma(x, a, scale=b), 0, 20, 1000,)
flag=0
}
curve(dgamma(x, a, scale=b), 0, 20, 1000, add=T)
}
}
|
##
## Fold-changes from U to PI -- checking that all species are on the same scale.
source("../lib/densScatterplot.R")
source("../lib/runLimmaQuantile.R")
#setwd("/local/storage/projects/NHP/annotations")
load("../annotations/fdr.RData")
## Index extent of changes.
isresp <- fdr_df$U2PIFDR_H < PVAL & fdr_df$U2PIFDR_C... | /response/UPI.rheMac3.nonconserved.heuristic.R | no_license | Danko-Lab/CD4-Cell-Evolution | R | false | false | 3,693 | r | ##
## Fold-changes from U to PI -- checking that all species are on the same scale.
source("../lib/densScatterplot.R")
source("../lib/runLimmaQuantile.R")
#setwd("/local/storage/projects/NHP/annotations")
load("../annotations/fdr.RData")
## Index extent of changes.
isresp <- fdr_df$U2PIFDR_H < PVAL & fdr_df$U2PIFDR_C... |
rm(list=ls())
#Input correct an.ID for tuning and y data ("mod " for merged categories)
an.ID="model assess1/"
#data= " mod" for merged categories or NULL for original ACs
data=" mod"
#Only New cats Independent & Balaned
source('~/Documents/WORKFLOW/randomForest/Model Assessment Functions new cats CV.R', chdir = TRU... | /WORKFLOW/randomForest/Model Assessment Workflow new cats means.R | no_license | annakrystalli/thesis | R | false | false | 3,777 | r | rm(list=ls())
#Input correct an.ID for tuning and y data ("mod " for merged categories)
an.ID="model assess1/"
#data= " mod" for merged categories or NULL for original ACs
data=" mod"
#Only New cats Independent & Balaned
source('~/Documents/WORKFLOW/randomForest/Model Assessment Functions new cats CV.R', chdir = TRU... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/generic.R, R/methodAccess.R
\docType{methods}
\name{getMeth}
\alias{getMeth}
\alias{getMeth,MEE.data-method}
\title{getMeth}
\usage{
getMeth(object, probe, ID)
\S4method{getMeth}{MEE.data}(object, probe, ID)
}
\arguments{
\item{objec... | /man/getMeth.Rd | no_license | scoetzee/ELMER | R | false | false | 805 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/generic.R, R/methodAccess.R
\docType{methods}
\name{getMeth}
\alias{getMeth}
\alias{getMeth,MEE.data-method}
\title{getMeth}
\usage{
getMeth(object, probe, ID)
\S4method{getMeth}{MEE.data}(object, probe, ID)
}
\arguments{
\item{objec... |
#' Search OSF nodes
#'
#' @param description Search in node description
#' @param public Boolean, search whether node is public TRUE/FALSE
#' @param title Search node titles
#' @param id Search for node id
#' @param tags Search node tags
#' @param private Boolean, search private nodes as well (TRUE) or not (FALSE)
#'
#... | /R/search.R | permissive | vpnagraj/osfr | R | false | false | 9,296 | r | #' Search OSF nodes
#'
#' @param description Search in node description
#' @param public Boolean, search whether node is public TRUE/FALSE
#' @param title Search node titles
#' @param id Search for node id
#' @param tags Search node tags
#' @param private Boolean, search private nodes as well (TRUE) or not (FALSE)
#'
#... |
getwd()
setwd("C:/learning/coursera/coursera-data_science-data/getting_and_cleaning_data/week4")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD"
download.file(fileUrl, destfile = "./data/cameras.csv")
cameraData <- read.c... | /getting_and_cleaning_data/week4/week4_course.R | no_license | sriharshams/datasciencecoursera | R | false | false | 2,359 | r | getwd()
setwd("C:/learning/coursera/coursera-data_science-data/getting_and_cleaning_data/week4")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD"
download.file(fileUrl, destfile = "./data/cameras.csv")
cameraData <- read.c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{lonlat_to_cartesian}
\alias{lonlat_to_cartesian}
\title{Convert lon/lat to cartesian coordinates}
\usage{
lonlat_to_cartesian(centre_lon, centre_lat, data_lon, data_lat)
}
\arguments{
\item{centre_lon}{The centre longitude}
\ite... | /man/lonlat_to_cartesian.Rd | permissive | Michael-Stevens-27/silverblaze | R | false | true | 1,076 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{lonlat_to_cartesian}
\alias{lonlat_to_cartesian}
\title{Convert lon/lat to cartesian coordinates}
\usage{
lonlat_to_cartesian(centre_lon, centre_lat, data_lon, data_lat)
}
\arguments{
\item{centre_lon}{The centre longitude}
\ite... |
#' Coerce to a cor_network object
#' @description Functions to coerce a object to cor_network if possible.
#' @param x any \code{R} object.
#' @param simplify logical value (defaults to TRUE) indicating whether to
#' delete nodes without edge connections.
#' @param r.thres a numeric value.
#' @param r.absolute logi... | /R/as-cor-network.R | no_license | srwan520/ggcor | R | false | false | 4,100 | r | #' Coerce to a cor_network object
#' @description Functions to coerce a object to cor_network if possible.
#' @param x any \code{R} object.
#' @param simplify logical value (defaults to TRUE) indicating whether to
#' delete nodes without edge connections.
#' @param r.thres a numeric value.
#' @param r.absolute logi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/olical.r
\name{olical}
\alias{olical}
\title{Calibrate OLI images to TM images}
\usage{
olical(oliwrs2dir, tmwrs2dir, cores = 2, overwrite = overwrite)
}
\arguments{
\item{oliwrs2dir}{character. oli WRS-2 scene directory path}
\item{tmwrs2di... | /man/olical.Rd | no_license | jdbcode/LandsatLinkr | R | false | true | 513 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/olical.r
\name{olical}
\alias{olical}
\title{Calibrate OLI images to TM images}
\usage{
olical(oliwrs2dir, tmwrs2dir, cores = 2, overwrite = overwrite)
}
\arguments{
\item{oliwrs2dir}{character. oli WRS-2 scene directory path}
\item{tmwrs2di... |
/r/yq2_asso_parallel.R | no_license | Codensation/gitskills | R | false | false | 7,358 | r | ||
#
# this script simulates a stock recruitment relationship.
# Possibly coming from a rage of several models...
#
# Colin Millar January 10th 2013
#
# simulate from a gamma given the mean and cv
rgamma2 <- function(n, mean, cv) rgamma(n, 1/cv^2, 1/(mean*cv^2))
ssb <- seq(2, 10, length = 100)
par <- c(log(10), 0.2)
cv... | /sim-data/simulateSR.r | no_license | colinpmillar/flaming-dragon | R | false | false | 540 | r | #
# this script simulates a stock recruitment relationship.
# Possibly coming from a rage of several models...
#
# Colin Millar January 10th 2013
#
# simulate from a gamma given the mean and cv
rgamma2 <- function(n, mean, cv) rgamma(n, 1/cv^2, 1/(mean*cv^2))
ssb <- seq(2, 10, length = 100)
par <- c(log(10), 0.2)
cv... |
library(raster)
library(rhdf5)
library(rgdal)
library(insol)
# load digital terrain model
dtm <- raster('../NEONdata/D17-California/TEAK/2013/lidar/TEAK_lidarDTM.tif')
dtm[dtm == 0] <- NA
plot(dtm, main = 'canopy height')
hist(dtm, xlab = 'canopy height (m)')
# shading
sv <- normalvector(50, 270)
normal_vecs <- cgrad... | /dems.R | no_license | mbjoseph/tuesday-lidar | R | false | false | 1,228 | r | library(raster)
library(rhdf5)
library(rgdal)
library(insol)
# load digital terrain model
dtm <- raster('../NEONdata/D17-California/TEAK/2013/lidar/TEAK_lidarDTM.tif')
dtm[dtm == 0] <- NA
plot(dtm, main = 'canopy height')
hist(dtm, xlab = 'canopy height (m)')
# shading
sv <- normalvector(50, 270)
normal_vecs <- cgrad... |
#----------------------------------------------#
#---------------2020 RHSU Scholar--------------#
#----------------------------------------------#
# Written by Trent Kajikawa
rm(list=ls())
# Here is some sample code for R...
library(ggplot2)
library(tidyverse)
library(vtable)
library(rvest)
# - First, set your workin... | /R/analysis.R | permissive | tkajikawa/rhsu_2020 | R | false | false | 3,596 | r | #----------------------------------------------#
#---------------2020 RHSU Scholar--------------#
#----------------------------------------------#
# Written by Trent Kajikawa
rm(list=ls())
# Here is some sample code for R...
library(ggplot2)
library(tidyverse)
library(vtable)
library(rvest)
# - First, set your workin... |
block <-
BlockWorker <-
BlockWorkers <-
function (workers, reasons, verbose = getOption('MTurkR.verbose', TRUE), ...){
operation <- "BlockWorker"
if(is.factor(workers))
workers <- as.character(workers)
if(is.null(reasons))
stop("Must specify one reason for block for all workers or o... | /MTurkR/R/BlockWorker.R | no_license | ingted/R-Examples | R | false | false | 1,505 | r | block <-
BlockWorker <-
BlockWorkers <-
function (workers, reasons, verbose = getOption('MTurkR.verbose', TRUE), ...){
operation <- "BlockWorker"
if(is.factor(workers))
workers <- as.character(workers)
if(is.null(reasons))
stop("Must specify one reason for block for all workers or o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/images.R
\name{getGiottoImage}
\alias{getGiottoImage}
\title{getGiottoImage}
\usage{
getGiottoImage(gobject, image_name)
}
\arguments{
\item{gobject}{giotto object}
\item{image_name}{name of giotto image \code{\link{showGiottoImageNames}}}
}... | /man/getGiottoImage.Rd | permissive | RubD/Giotto | R | false | true | 406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/images.R
\name{getGiottoImage}
\alias{getGiottoImage}
\title{getGiottoImage}
\usage{
getGiottoImage(gobject, image_name)
}
\arguments{
\item{gobject}{giotto object}
\item{image_name}{name of giotto image \code{\link{showGiottoImageNames}}}
}... |
# Read data from FISHSTATJ CSV Export
# Notes on this dataset:
# 1. the country column contains a 182 observations with null
read_fao_data <- function(data_file) {
read.csv(
data_file,
as.is=TRUE
)
}
clean_landings_files <- function() {
unlink('./api/landings/', recursive = TRUE)
dir.create('./ap... | /_bin/fao_data_utils.r | no_license | roliveros-ramos/api.openfisheries.org | R | false | false | 1,950 | r |
# Read data from FISHSTATJ CSV Export
# Notes on this dataset:
# 1. the country column contains a 182 observations with null
read_fao_data <- function(data_file) {
read.csv(
data_file,
as.is=TRUE
)
}
clean_landings_files <- function() {
unlink('./api/landings/', recursive = TRUE)
dir.create('./ap... |
GBSOption(TypeFlag = "p", S = 3500, X = 3765,
Time = 1/12, r = 0, b = 0, sigma = 0.3)@price
set.seed(100)
df <- data.frame(type = sample(c("c", "p"), 100, replace = TRUE),
strike = round(runif(100) * 100, 0),
underlying = round(runif(100) * 100, 0), ... | /2019/Assignment/FE8828-XU HAN/Assignment 3/Exercise 3.R | no_license | leafyoung/fe8828 | R | false | false | 729 | r | GBSOption(TypeFlag = "p", S = 3500, X = 3765,
Time = 1/12, r = 0, b = 0, sigma = 0.3)@price
set.seed(100)
df <- data.frame(type = sample(c("c", "p"), 100, replace = TRUE),
strike = round(runif(100) * 100, 0),
underlying = round(runif(100) * 100, 0), ... |
#Hello World
print('Hello World!')
# R as a calculator
4*2
# creating vectors
myVec0 <- c(1,2,3,4)
myVec0
myVec0[3]
myVec1 <- c('Cat', 'Dog', 'Mouse', "Chicken")
myVec2 <- seq(1:20)
myVec2
#creating matrices
myMat1 <- matrix(myVec2, ncol=4)
myMat1
myMat1[1,3]
myMat1[,3]
myMat1[1,]
#Lets roll some dice
sample(1:6... | /R/basics.R | no_license | CSICL/DSW2017 | R | false | false | 364 | r | #Hello World
print('Hello World!')
# R as a calculator
4*2
# creating vectors
myVec0 <- c(1,2,3,4)
myVec0
myVec0[3]
myVec1 <- c('Cat', 'Dog', 'Mouse', "Chicken")
myVec2 <- seq(1:20)
myVec2
#creating matrices
myMat1 <- matrix(myVec2, ncol=4)
myMat1
myMat1[1,3]
myMat1[,3]
myMat1[1,]
#Lets roll some dice
sample(1:6... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redshift_operations.R
\name{redshift_describe_scheduled_actions}
\alias{redshift_describe_scheduled_actions}
\title{Describes properties of scheduled actions}
\usage{
redshift_describe_scheduled_actions(ScheduledActionName,
TargetActionType... | /cran/paws.database/man/redshift_describe_scheduled_actions.Rd | permissive | TWarczak/paws | R | false | true | 3,367 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/redshift_operations.R
\name{redshift_describe_scheduled_actions}
\alias{redshift_describe_scheduled_actions}
\title{Describes properties of scheduled actions}
\usage{
redshift_describe_scheduled_actions(ScheduledActionName,
TargetActionType... |
rm(list=ls(all=TRUE))
#set file dir in control code *or*
D<-read.csv("../../../driversdata/data/idaho/climate/Dubois_daily_alldata.txt")
data<-data.frame(D$year, D$month, D$day, D$Tmax, D$Tmin, D$Prcp)
names(data)<-c("year","month","day","Tmax", "Tmin", "Ppt")
data$Tmax<-ifelse(data$Tmax>9999, NA, data$Tmax)
data$T... | /data/idaho/climateData/format_daily_data.r | no_license | pbadler/ExperimentTests | R | false | false | 1,423 | r |
rm(list=ls(all=TRUE))
#set file dir in control code *or*
D<-read.csv("../../../driversdata/data/idaho/climate/Dubois_daily_alldata.txt")
data<-data.frame(D$year, D$month, D$day, D$Tmax, D$Tmin, D$Prcp)
names(data)<-c("year","month","day","Tmax", "Tmin", "Ppt")
data$Tmax<-ifelse(data$Tmax>9999, NA, data$Tmax)
data$T... |
#GCL: After making changes to the C code
#devtools::unload();
#devtools::load_all()
require("ggplot2")
require("reshape2")
data(cora.documents)
data(cora.vocab)
theme_set(theme_bw())
set.seed(8675309)
K <- 10 ## Num clusters
result <- lda.collapsed.gibbs.sampler(cora.documents,
... | /demo/lda.R | no_license | linqiaozhi/R-lda | R | false | false | 1,491 | r | #GCL: After making changes to the C code
#devtools::unload();
#devtools::load_all()
require("ggplot2")
require("reshape2")
data(cora.documents)
data(cora.vocab)
theme_set(theme_bw())
set.seed(8675309)
K <- 10 ## Num clusters
result <- lda.collapsed.gibbs.sampler(cora.documents,
... |
library(rvest);
library(magrittr);
library(purrr);
target_url <- "http://www.imdb.com/title/tt1201607/fullcredits?ref_=tt_ql_1";
scraping_hp <- read_html(target_url);
cast <- scraping_hp %>%
html_nodes("table") %>%
.[3] %>%
html_table(header=FALSE) %>%
.[[1]] %>%
.[,-c(1,3)] ... | /data/hp_cast.R | no_license | drake-smu/unit5 | R | false | false | 408 | r | library(rvest);
library(magrittr);
library(purrr);
target_url <- "http://www.imdb.com/title/tt1201607/fullcredits?ref_=tt_ql_1";
scraping_hp <- read_html(target_url);
cast <- scraping_hp %>%
html_nodes("table") %>%
.[3] %>%
html_table(header=FALSE) %>%
.[[1]] %>%
.[,-c(1,3)] ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1_outcomes.R
\name{.ff_apply_injury_model}
\alias{.ff_apply_injury_model}
\title{Applies various injury models to adp outcomes}
\usage{
.ff_apply_injury_model(adp_outcomes, model_type)
}
\value{
same adp outcomes dataframe but with a prob_gp ... | /man/dot-ff_apply_injury_model.Rd | permissive | topfunky/ffsimulator | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1_outcomes.R
\name{.ff_apply_injury_model}
\alias{.ff_apply_injury_model}
\title{Applies various injury models to adp outcomes}
\usage{
.ff_apply_injury_model(adp_outcomes, model_type)
}
\value{
same adp outcomes dataframe but with a prob_gp ... |
library(ggplot2)
library(RODBC)
library(lubridate)
#pull data - from ODM2 server
QS <- read.csv2("C:/Users/jpotter/Box/PR Sensors Data/ODM2 Output/QSmydatashort.csv", header = T, fill = TRUE, sep = ",", na.strings=c("","NA"))
#need to convert data to numeric for certain columns (we need code columns to remain text)
... | /PR sensor vs grab.R | no_license | miguelcleon/PR-Aquatic-Sensors | R | false | false | 8,371 | r | library(ggplot2)
library(RODBC)
library(lubridate)
#pull data - from ODM2 server
QS <- read.csv2("C:/Users/jpotter/Box/PR Sensors Data/ODM2 Output/QSmydatashort.csv", header = T, fill = TRUE, sep = ",", na.strings=c("","NA"))
#need to convert data to numeric for certain columns (we need code columns to remain text)
... |
plot4 <- function() {
# read the original file
df <- read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?")
# create a smaller dataset with the interesting data - work dataset
workds <- df[df$Date=="1/2/2007" | df$Date=="2/2/2007",]
# date & time to be X
datetime... | /plot4.R | no_license | dadomingues/ExData_Plotting1 | R | false | false | 1,499 | r | plot4 <- function() {
# read the original file
df <- read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?")
# create a smaller dataset with the interesting data - work dataset
workds <- df[df$Date=="1/2/2007" | df$Date=="2/2/2007",]
# date & time to be X
datetime... |
plot.PCA.Bootstrap <- function(x, Eigenvalues=TRUE, Inertia=FALSE, EigenVectors=TRUE, Structure=TRUE, Squared=TRUE, Scores=TRUE, ColorInd="black", TypeScores="ch", ... ){
requireNamespace("Hmisc")
rnames=rownames(x$InitialData)
cnames=colnames(x$InitialData)
if (Eigenvalues){
boxplot(x$EigVal^2, main="Box-... | /R/plot.PCA.Bootstrap.R | no_license | villardon/MultBiplotR | R | false | false | 7,371 | r |
plot.PCA.Bootstrap <- function(x, Eigenvalues=TRUE, Inertia=FALSE, EigenVectors=TRUE, Structure=TRUE, Squared=TRUE, Scores=TRUE, ColorInd="black", TypeScores="ch", ... ){
requireNamespace("Hmisc")
rnames=rownames(x$InitialData)
cnames=colnames(x$InitialData)
if (Eigenvalues){
boxplot(x$EigVal^2, main="Box-... |
# return a list of functions that can be used to interact with lucid
lucidClient <- function(service, authInfo) {
service <- parseHttpUrl(service)
list(
status = function() {
handleResponse(GET(service, authInfo, "/internal/status"))
},
currentUser = function() {
handleResponse(GET(serv... | /library/shinyapps/R/lucid.R | no_license | Cococatty/InteractiveMap | R | false | false | 8,832 | r |
# return a list of functions that can be used to interact with lucid
lucidClient <- function(service, authInfo) {
service <- parseHttpUrl(service)
list(
status = function() {
handleResponse(GET(service, authInfo, "/internal/status"))
},
currentUser = function() {
handleResponse(GET(serv... |
# Importing the Raster Data
RasterFilepaths<-list.files("G:\\RAW_DEM_Tiles",
recursive = F,
full.names = T,
pattern = "dem")
ZoneList<-read.csv("1.Data\\z.UTM_Reprojections\\DF_UTM_Zones.csv")
# Things used in the Previous Function... | /2.Scripts/z.Development/GlobalSum.R | no_license | WaldemarOrtizCalo/SpatialDimensionality | R | false | false | 2,552 | r | # Importing the Raster Data
RasterFilepaths<-list.files("G:\\RAW_DEM_Tiles",
recursive = F,
full.names = T,
pattern = "dem")
ZoneList<-read.csv("1.Data\\z.UTM_Reprojections\\DF_UTM_Zones.csv")
# Things used in the Previous Function... |
co_box <- function(color, header, contents = "Your text") {
class <- switch(color,
b = "note",
g = "tip",
r = "important",
o = "caution",
stop("Invalid `type`", call. = FALSE)
)
switch(color,
b = cat(paste0(
"\n",
":::: {.callout-", class, " collapse='false'}", "\n\n",
"... | /posts/_common.R | no_license | mjfrigaard/mjfrigaard.github.io | R | false | false | 2,483 | r |
co_box <- function(color, header, contents = "Your text") {
class <- switch(color,
b = "note",
g = "tip",
r = "important",
o = "caution",
stop("Invalid `type`", call. = FALSE)
)
switch(color,
b = cat(paste0(
"\n",
":::: {.callout-", class, " collapse='false'}", "\n\n",
"... |
# Download File, Unzip it and extract relevant data
FileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(FileUrl,destfile="./data/Power.zip")
unzip("./data/Power.zip",exdir="./data")
x<-read.table("./data/household_power_consumption.txt", header=TRUE, sep=";"... | /plot3.R | no_license | arlagarde/Course-Project-1-Exploratory-Data-Analysis | R | false | false | 1,032 | r | # Download File, Unzip it and extract relevant data
FileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(FileUrl,destfile="./data/Power.zip")
unzip("./data/Power.zip",exdir="./data")
x<-read.table("./data/household_power_consumption.txt", header=TRUE, sep=";"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gep2pep.R
\name{CategorizedCollection}
\alias{CategorizedCollection}
\title{Constructor method for objects of class CategorizedCollection.}
\usage{
CategorizedCollection(category = "uncategorized",
subCategory = "uncategorized")
}
\argument... | /man/CategorizedCollection.Rd | no_license | inambioinfo/gep2pep | R | false | true | 752 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gep2pep.R
\name{CategorizedCollection}
\alias{CategorizedCollection}
\title{Constructor method for objects of class CategorizedCollection.}
\usage{
CategorizedCollection(category = "uncategorized",
subCategory = "uncategorized")
}
\argument... |
icprb_daily_2025_prod <- read.csv("https://raw.githubusercontent.com/HARPgroup/vahydro/master/data/PRRISM_2025_nocc_for_vadeq.csv")
icprb_daily_2025_prod$Date <- as.Date(icprb_daily_2025_prod$Date,format="%Y/%m/%d")
icprb_monthly_prod <- read.csv("https://raw.githubusercontent.com/HARPgroup/vahydro/master/data/wma_pro... | /R/permitting/potomac_lfaa/demands.R | no_license | HARPgroup/vahydro | R | false | false | 1,841 | r | icprb_daily_2025_prod <- read.csv("https://raw.githubusercontent.com/HARPgroup/vahydro/master/data/PRRISM_2025_nocc_for_vadeq.csv")
icprb_daily_2025_prod$Date <- as.Date(icprb_daily_2025_prod$Date,format="%Y/%m/%d")
icprb_monthly_prod <- read.csv("https://raw.githubusercontent.com/HARPgroup/vahydro/master/data/wma_pro... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 52362
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 52362
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/nreachq_query64_1344n/nreachq_query64_1344n.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 723 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 52362
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 52362
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4... |
library(Tcomp)
### Name: tourism
### Title: Tourism competition data
### Aliases: tourism
### Keywords: datasets
### ** Examples
plot(tourism$Y1)
| /data/genthat_extracted_code/Tcomp/examples/tourism.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 153 | r | library(Tcomp)
### Name: tourism
### Title: Tourism competition data
### Aliases: tourism
### Keywords: datasets
### ** Examples
plot(tourism$Y1)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.acmpca_operations.R
\name{create_certificate_authority_audit_report}
\alias{create_certificate_authority_audit_report}
\title{Creates an audit report that lists every time that the your CA private key is used}
\usage{
create_certificate_... | /service/paws.acmpca/man/create_certificate_authority_audit_report.Rd | permissive | CR-Mercado/paws | R | false | true | 1,439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.acmpca_operations.R
\name{create_certificate_authority_audit_report}
\alias{create_certificate_authority_audit_report}
\title{Creates an audit report that lists every time that the your CA private key is used}
\usage{
create_certificate_... |
#Plot 5 - PM2.5 Total Emissions in Baltimore City from Motor Vehicle Sources
# *********************** QUESTION ***************************
# How have emissions from motor vehicle sources changed from 1999-2008 in Baltimore City?
# ************************ GETTING THE DATA ********************
# Set the current w... | /Week 4/plot5.R | no_license | Ishwarya-Murugan/Exploratory-Data-Analysis | R | false | false | 2,593 | r | #Plot 5 - PM2.5 Total Emissions in Baltimore City from Motor Vehicle Sources
# *********************** QUESTION ***************************
# How have emissions from motor vehicle sources changed from 1999-2008 in Baltimore City?
# ************************ GETTING THE DATA ********************
# Set the current w... |
## The central idea is to avoid long calculations when they are not needed. In this case, we are
## avoiding the calculationg of the inverse of a matrix
## The first function makeCacheMatrix creates a list of "subFunctions" to
## - get and set the original matrix to be inversed and
## - get and set the inversed matr... | /cachematrix.R | no_license | arlima/ProgrammingAssignment2 | R | false | false | 2,097 | r | ## The central idea is to avoid long calculations when they are not needed. In this case, we are
## avoiding the calculationg of the inverse of a matrix
## The first function makeCacheMatrix creates a list of "subFunctions" to
## - get and set the original matrix to be inversed and
## - get and set the inversed matr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Pareto.R
\name{ExposureCurvePareto}
\alias{ExposureCurvePareto}
\title{Exposure Curve from a Pareto severity distribution}
\usage{
ExposureCurvePareto(x, scale, shape)
}
\arguments{
\item{x}{A positive real number - the claim amount... | /man/ExposureCurvePareto.Rd | no_license | cran/NetSimR | R | false | true | 890 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Pareto.R
\name{ExposureCurvePareto}
\alias{ExposureCurvePareto}
\title{Exposure Curve from a Pareto severity distribution}
\usage{
ExposureCurvePareto(x, scale, shape)
}
\arguments{
\item{x}{A positive real number - the claim amount... |
#!/usr/bin/env Rscript --vanilla
library(ggplot2)
library(data.table)
library(reshape2)
library(dplyr)
f <- fread("matches_human_033bs_cov.tab", header=TRUE, drop=c(12,13))
f$template_type <- as.factor(f$template_type)
f$query_type <- as.factor(f$query_type)
# with(f, by(template_type, CS1, summary))
# with(f, by(te... | /Rscripts/template_vs_model.R | no_license | neksa/interactome | R | false | false | 921 | r | #!/usr/bin/env Rscript --vanilla
library(ggplot2)
library(data.table)
library(reshape2)
library(dplyr)
f <- fread("matches_human_033bs_cov.tab", header=TRUE, drop=c(12,13))
f$template_type <- as.factor(f$template_type)
f$query_type <- as.factor(f$query_type)
# with(f, by(template_type, CS1, summary))
# with(f, by(te... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{g2016}
\alias{g2016}
\title{2016 General Election Results and Survey Estimates}
\format{A data frame with 51 rows (all U.S. states and D.C.)
\describe{
\item{state}{state (full name)}
\item{st}{state (abbreviat... | /man/g2016.Rd | no_license | kuriwaki/ddi | R | false | true | 2,024 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{g2016}
\alias{g2016}
\title{2016 General Election Results and Survey Estimates}
\format{A data frame with 51 rows (all U.S. states and D.C.)
\describe{
\item{state}{state (full name)}
\item{st}{state (abbreviat... |
library(RColorBrewer)
library(munsell)
cols = c(brewer.pal(n = 12, name = "Paired")[c(1,3,5,7,9,11)], "grey80")
#cols <- c("#ffcc80","#ff9900")
#cols <- "#ccf2ff"
colRGB <- t(col2rgb(cols))/256
colMNSL <- rgb2mnsl(colRGB)
colMNSL <- c(colMNSL,
darker(colMNSL, steps = 2),
darker(colMNSL, step... | /frame-study/scripts/02_create-spineplots.R | no_license | rgoluch/Statistical_Atlas | R | false | false | 3,804 | r | library(RColorBrewer)
library(munsell)
cols = c(brewer.pal(n = 12, name = "Paired")[c(1,3,5,7,9,11)], "grey80")
#cols <- c("#ffcc80","#ff9900")
#cols <- "#ccf2ff"
colRGB <- t(col2rgb(cols))/256
colMNSL <- rgb2mnsl(colRGB)
colMNSL <- c(colMNSL,
darker(colMNSL, steps = 2),
darker(colMNSL, step... |
output$total_cases <- renderText({
a <- get_country()
# display custom text based on what was clicked
if (a != "world") {
text <- paste("Coronavirus cases in ", a, ":", sep = "")
} else {
text <- "Worldwide Coronavirus cases:"
}
text
})
# default text
output$text_default <- renderText({
"Worldwid... | /server/text_outputs.R | no_license | djkpandian/covid_shiny-master | R | false | false | 5,607 | r | output$total_cases <- renderText({
a <- get_country()
# display custom text based on what was clicked
if (a != "world") {
text <- paste("Coronavirus cases in ", a, ":", sep = "")
} else {
text <- "Worldwide Coronavirus cases:"
}
text
})
# default text
output$text_default <- renderText({
"Worldwid... |
#load data from website
zipfile <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(zipfile,temp)
#interpret "?" as NA when reading the data
data <- read.table(unz(temp, "household_power_consumption.txt"), sep=";", header=TRUE, na.strings=c("?"),... | /plot4.R | no_license | FloPit/ExData_Plotting1 | R | false | false | 1,856 | r | #load data from website
zipfile <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(zipfile,temp)
#interpret "?" as NA when reading the data
data <- read.table(unz(temp, "household_power_consumption.txt"), sep=";", header=TRUE, na.strings=c("?"),... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ccLD.R
\name{ccLD}
\alias{ccLD}
\title{LD summaries of simulated case/control panels}
\usage{
ccLD(ccblock, pvblock, sig.threshold = 8, minrsq = 0, maxvals = -1)
}
\arguments{
\item{ccblock}{A case/control panel retured by diseaseSims... | /R/diseaseSims/man/ccLD.Rd | no_license | ThorntonLab/disease_sims | R | false | false | 1,524 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ccLD.R
\name{ccLD}
\alias{ccLD}
\title{LD summaries of simulated case/control panels}
\usage{
ccLD(ccblock, pvblock, sig.threshold = 8, minrsq = 0, maxvals = -1)
}
\arguments{
\item{ccblock}{A case/control panel retured by diseaseSims... |
#
# ISO SPACE RESULTS
#
###############################################################################
RandomDataToIsospace <- function(itterations = NULL, B=NULL, scenario = NULL,
betaPA = NULL, RunForWhichIsotope = NULL,
Z = NULL, relSF = NULL, ... | /Fig4_BiasOpitimizer/R/functionRandomDataToIsospace.R | no_license | femeunier/InvSWIFToptim | R | false | false | 5,659 | r | #
# ISO SPACE RESULTS
#
###############################################################################
RandomDataToIsospace <- function(itterations = NULL, B=NULL, scenario = NULL,
betaPA = NULL, RunForWhichIsotope = NULL,
Z = NULL, relSF = NULL, ... |
#' @title Orthogonal Projector (a.k.a. hat matrix)
#'
#' @description produces an orthogonal projection matrix
#' i.e. X (X' X)-1 X'
#'
#' @param x numeric matrix
#' @param inverse type of inverse. Options: \code{"solve"} (default)
#' and \code{"ginv"}
#' @export projector hat_matrix
#' @aliases projector hat_matrix
... | /R/projector.r | no_license | gridl/matrixkit | R | false | false | 826 | r | #' @title Orthogonal Projector (a.k.a. hat matrix)
#'
#' @description produces an orthogonal projection matrix
#' i.e. X (X' X)-1 X'
#'
#' @param x numeric matrix
#' @param inverse type of inverse. Options: \code{"solve"} (default)
#' and \code{"ginv"}
#' @export projector hat_matrix
#' @aliases projector hat_matrix
... |
#rbinom(n, size, prob)
results = rbinom(500, 10, .3)
results2 = rbinom(500, 5, .3)
w_one = rbinom(500, 15, .3)
new_sum=results+results2
hist(new_sum)
hist(w_one, add=T)
X=rexp(5000, rate = 1)
Y=rexp(5000, rate = 1)
W=Y/X
invcdf <- function(r) {1/(1-r)}-1
rands=runif(5000)
Wdev=invcdf(rands)
W = sort(W)
W = ... | /assignment5.R | no_license | cpmcintyre/625.603MathStats-Module5 | R | false | false | 384 | r |
#rbinom(n, size, prob)
results = rbinom(500, 10, .3)
results2 = rbinom(500, 5, .3)
w_one = rbinom(500, 15, .3)
new_sum=results+results2
hist(new_sum)
hist(w_one, add=T)
X=rexp(5000, rate = 1)
Y=rexp(5000, rate = 1)
W=Y/X
invcdf <- function(r) {1/(1-r)}-1
rands=runif(5000)
Wdev=invcdf(rands)
W = sort(W)
W = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods-BFprobability.R
\name{as.BFprobability}
\alias{as.BFprobability}
\title{Function to coerce objects to the BFprobability class}
\usage{
as.BFprobability(object, normalize = NULL, lognormalize = NULL)
}
\arguments{
\item{object}{an obje... | /pkg/BayesFactor/man/as.BFprobability.Rd | no_license | richarddmorey/BayesFactor | R | false | true | 906 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods-BFprobability.R
\name{as.BFprobability}
\alias{as.BFprobability}
\title{Function to coerce objects to the BFprobability class}
\usage{
as.BFprobability(object, normalize = NULL, lognormalize = NULL)
}
\arguments{
\item{object}{an obje... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lsANOVA.R
\name{lsANOVA.read}
\alias{lsANOVA.read}
\title{lsANOVA.read}
\usage{
lsANOVA.read(...)
}
\arguments{
\item{...}{params to pass to lsANOVARead object.}
}
\value{
(lsANOVARead) An object include the description of acceptable ... | /man/lsANOVA.read.Rd | permissive | Losses/ls4pR | R | false | false | 448 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lsANOVA.R
\name{lsANOVA.read}
\alias{lsANOVA.read}
\title{lsANOVA.read}
\usage{
lsANOVA.read(...)
}
\arguments{
\item{...}{params to pass to lsANOVARead object.}
}
\value{
(lsANOVARead) An object include the description of acceptable ... |
install.packages("sf")
library(sf)
library(sp)
library(raster)
library(sf)
setwd("C:/Users/amykr/Box Sync/DENV CHIKV project/Personalized Datasets/Amy/demography")
duphouse <- read.csv("duphouseid_gps.csv")
#myvars <-c("gps_house_latitude", "gps_house_longitude", "houseid")
duphouse <-duphouse[which(duphouse$gps_hous... | /R01/Data Cleaning & merging/duphouse_demography(r).R | no_license | amyrobyn/LaBeaud_Lab | R | false | false | 2,119 | r | install.packages("sf")
library(sf)
library(sp)
library(raster)
library(sf)
setwd("C:/Users/amykr/Box Sync/DENV CHIKV project/Personalized Datasets/Amy/demography")
duphouse <- read.csv("duphouseid_gps.csv")
#myvars <-c("gps_house_latitude", "gps_house_longitude", "houseid")
duphouse <-duphouse[which(duphouse$gps_hous... |
# 2012, March 28,
# Use log-normal distribution to generate exponential rates
# Plan:
# simulated the life span of each elelment
# the maximal element is the life span of each block
# the minimum block lifespan is the life span of the system
# repeat for all systems (individuals in a population)
rm(list=ls())... | /spelman/2012-2013/palpasa-lab/Christopher-WilliamsBio320-aging-modeling/1.poisson-configuration/n800.R | no_license | hongqin/student.project.archives | R | false | false | 3,747 | r | # 2012, March 28,
# Use log-normal distribution to generate exponential rates
# Plan:
# simulated the life span of each elelment
# the maximal element is the life span of each block
# the minimum block lifespan is the life span of the system
# repeat for all systems (individuals in a population)
rm(list=ls())... |
# Bar Graph with Label
# Lars J. Kirkeboen, Edwin Leuven, Magne Mogstad,
# Field of Study, Earnings, and Self-Selection,
# The Quarterly Journal of Economics, Volume 131,
# Issue 3, August 2016, Pages 1057–1111,
# Data: USA 2020 (not released)
master <- read.csv("data/protected/usa-2020.csv")
output_dir="outpu... | /src/distribution/Bar Graph QJE 1.R | permissive | tanxpyox/professional-visualisation | R | false | false | 2,210 | r | # Bar Graph with Label
# Lars J. Kirkeboen, Edwin Leuven, Magne Mogstad,
# Field of Study, Earnings, and Self-Selection,
# The Quarterly Journal of Economics, Volume 131,
# Issue 3, August 2016, Pages 1057–1111,
# Data: USA 2020 (not released)
master <- read.csv("data/protected/usa-2020.csv")
output_dir="outpu... |
# settings ----------------------------------------------------------------
## 作業ディレクトリへ移動
setwd("/Users/nakanoken/git/training/books/データ解析のための統計モデリング入門/")
## ライブラリ読み込み
library(dplyr)
library(ggplot2)
library(reshape2)
library(rstan)
library(psych)
## 関数作成
logistic <- function(x) {
1 / (1+exp(-x))
}
## データ読み込み
cur... | /books/データ解析のための統計モデリング入門/01_script/Chap10_1.R | no_license | ken-nakano/training | R | false | false | 2,880 | r | # settings ----------------------------------------------------------------
## 作業ディレクトリへ移動
setwd("/Users/nakanoken/git/training/books/データ解析のための統計モデリング入門/")
## ライブラリ読み込み
library(dplyr)
library(ggplot2)
library(reshape2)
library(rstan)
library(psych)
## 関数作成
logistic <- function(x) {
1 / (1+exp(-x))
}
## データ読み込み
cur... |
library(noncensus)
library(tidyverse)
library(lubridate)
library(tigris)
library(stringr)
library(sf)
#for scale_fill_virdis
library(viridis)
library(leaflet)
library(zipcode)
#you can be inclusive and count for both, and in methodology, just say you counted some twice. Crosswalk
#df <- read_csv("presidential_jul_... | /old or unused scripts/zip_to_urban_2019_use_this.R | no_license | ChrisCioffi/districts | R | false | false | 17,835 | r | library(noncensus)
library(tidyverse)
library(lubridate)
library(tigris)
library(stringr)
library(sf)
#for scale_fill_virdis
library(viridis)
library(leaflet)
library(zipcode)
#you can be inclusive and count for both, and in methodology, just say you counted some twice. Crosswalk
#df <- read_csv("presidential_jul_... |
library(GEOmap)
### Name: distaz
### Title: Distance and Azimuth from two points
### Aliases: distaz
### Keywords: misc
### ** Examples
#### one point
d = distaz(12, 23, -32, -65)
d
#### many random target points
org = c(80.222, -100.940)
targ = cbind(runif(10, 10, 50), runif(10, 20, 100))
distaz(org[1], ... | /data/genthat_extracted_code/GEOmap/examples/distaz.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 766 | r | library(GEOmap)
### Name: distaz
### Title: Distance and Azimuth from two points
### Aliases: distaz
### Keywords: misc
### ** Examples
#### one point
d = distaz(12, 23, -32, -65)
d
#### many random target points
org = c(80.222, -100.940)
targ = cbind(runif(10, 10, 50), runif(10, 20, 100))
distaz(org[1], ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.