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 |
|---|---|---|---|---|---|---|---|---|---|
svcj_model <- function(P, N = 5000, n = 5000) {
# Generate returns Y from initial prices P
Y <- diff(P)/P[-length(P)]*sqrt(250)
one <- rep(1, length = length(Y))
# Prior distribution of hyperparameter values
a=0
A=25 # prior for mu
b = matrix(c(0,0), nrow = 2, ncol = 1) # prior for alpha and beta
B = diag(2) # prio... | /BitcoinPricingKernels/src/svcj_model.R | no_license | franwe/BitcoinPricingKernels | R | false | false | 16,369 | r |
svcj_model <- function(P, N = 5000, n = 5000) {
# Generate returns Y from initial prices P
Y <- diff(P)/P[-length(P)]*sqrt(250)
one <- rep(1, length = length(Y))
# Prior distribution of hyperparameter values
a=0
A=25 # prior for mu
b = matrix(c(0,0), nrow = 2, ncol = 1) # prior for alpha and beta
B = diag(2) # prio... |
# -- EXERCISE 05: DATA WRANGLING WITH TIDYVERSE ####
# By the end of this exercise we will:
# - understand the %>% operator in tidyverse
# - use tidyverse to carry out basic data wrangling, including...
# -- select(), group_by(), summarise(), arrange(), filter(),
# -- as well as creating new variables with mutate() an... | /solutions/ex05_wrangling_sol.R | no_license | amyxli/SCIF3000_R_workshop | R | false | false | 11,721 | r | # -- EXERCISE 05: DATA WRANGLING WITH TIDYVERSE ####
# By the end of this exercise we will:
# - understand the %>% operator in tidyverse
# - use tidyverse to carry out basic data wrangling, including...
# -- select(), group_by(), summarise(), arrange(), filter(),
# -- as well as creating new variables with mutate() an... |
# Exploratory data analysis - Course project n. 1
#
# Set working directory
setwd("~/Documenti/Coursera/DS4_Exploratory_Data_Analysis/Prj/P1/ExData_Plotting1")
#
# Load the dataset
fileN <- "../dataset/household_power_consumption.txt"
ds_pwrcons_temp <- read.csv(fileN, header=TRUE, sep=";", na.strings="?")
#
# Convert ... | /plot2.R | no_license | giulc/ExData_Plotting1 | R | false | false | 934 | r | # Exploratory data analysis - Course project n. 1
#
# Set working directory
setwd("~/Documenti/Coursera/DS4_Exploratory_Data_Analysis/Prj/P1/ExData_Plotting1")
#
# Load the dataset
fileN <- "../dataset/household_power_consumption.txt"
ds_pwrcons_temp <- read.csv(fileN, header=TRUE, sep=";", na.strings="?")
#
# Convert ... |
##########################################################################
##########################################################################
## Project:
## Script purpose: In additional to the global variables, here are some global and general utility functions
## Usage example:
## Author: Jingkui Wang (jing... | /R/utilities_generalFunctions.R | permissive | lengfei5/mRNA_degradation_kinetics_fitting | R | false | false | 6,668 | r | ##########################################################################
##########################################################################
## Project:
## Script purpose: In additional to the global variables, here are some global and general utility functions
## Usage example:
## Author: Jingkui Wang (jing... |
catch_matrix <- function(x, z=NULL, y, testx=NULL,testz=NULL,...){
#input x is matrix * size
pred = NULL
nobs=length(y)
nvars=prod(dim(x))/nobs
nclass=length(unique(as.factor(y)))
ntrain=dim(x)[3]
newx=array(list(),ntrain)
for (i in 1:ntrain){
newx[[i]]=x[,,i]
}
newtestx=NULL
i... | /R/catch_matrix.R | no_license | cran/catch | R | false | false | 517 | r | catch_matrix <- function(x, z=NULL, y, testx=NULL,testz=NULL,...){
#input x is matrix * size
pred = NULL
nobs=length(y)
nvars=prod(dim(x))/nobs
nclass=length(unique(as.factor(y)))
ntrain=dim(x)[3]
newx=array(list(),ntrain)
for (i in 1:ntrain){
newx[[i]]=x[,,i]
}
newtestx=NULL
i... |
DATA_PATH="./data/"
DATA_COLLECTED_PATH="./data/collected/"
DATA_GOGEO_TESTS_PATH="./data/tests-at-gogeo/"
SIMULATED_DATA_PATH="./data/simulated"
DATA_TO_GNU_PLOT_PATH="./data/to-gnuplot/"
PLOT_PATH = "./charts/"
PCLOUD_DIR="~/pCloudDrive/sync"
?library
?INSTALL
| /r-code/util/constants.R | no_license | LABORA-INF-UFG/paper-VSKA-2021 | R | false | false | 264 | r | DATA_PATH="./data/"
DATA_COLLECTED_PATH="./data/collected/"
DATA_GOGEO_TESTS_PATH="./data/tests-at-gogeo/"
SIMULATED_DATA_PATH="./data/simulated"
DATA_TO_GNU_PLOT_PATH="./data/to-gnuplot/"
PLOT_PATH = "./charts/"
PCLOUD_DIR="~/pCloudDrive/sync"
?library
?INSTALL
|
# Clean Mexico Cities
# Load Data --------------------------------------------------------------------
mex_cities <- readOGR(file.path(data_file_path, "Cities in Mexico", "RawData", "LocalidadUrbana.shp"))
mex_cities <- mex_cities %>% spTransform(CRS("+init=epsg:4326"))
# Cleanup -------------------------------------... | /01_clean_individual_datasets/02_create_city_data/01_clean_mex_cities.R | no_license | ramarty/Industry-Nighttime-Lights | R | false | false | 1,298 | r | # Clean Mexico Cities
# Load Data --------------------------------------------------------------------
mex_cities <- readOGR(file.path(data_file_path, "Cities in Mexico", "RawData", "LocalidadUrbana.shp"))
mex_cities <- mex_cities %>% spTransform(CRS("+init=epsg:4326"))
# Cleanup -------------------------------------... |
library(httr)
AuthTwitter<-function (key,secret,token,token_secret){
myapp=oauth_app("twitter",key=key,secret=secret)
sig=sign_oauth1.0(myapp,token=token,token_secret=token_secret)
sig
}
| /AuthPub.R | no_license | yijutseng/BugTrend | R | false | false | 195 | r | library(httr)
AuthTwitter<-function (key,secret,token,token_secret){
myapp=oauth_app("twitter",key=key,secret=secret)
sig=sign_oauth1.0(myapp,token=token,token_secret=token_secret)
sig
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Design.R
\name{aggregateDesign}
\alias{aggregateDesign}
\title{Aggregate Design}
\usage{
aggregateDesign(design)
}
\arguments{
\item{design}{Design}
}
\value{
Aggregates
}
\description{
totals up all the covariates
}
| /man/aggregateDesign.Rd | no_license | jingyizh/RItools | R | false | true | 296 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Design.R
\name{aggregateDesign}
\alias{aggregateDesign}
\title{Aggregate Design}
\usage{
aggregateDesign(design)
}
\arguments{
\item{design}{Design}
}
\value{
Aggregates
}
\description{
totals up all the covariates
}
|
##' Extract inferential information from different statistical models.
##'
##' This package provides functions to extract point estimates, standard
##' errors, confidence intervals, p-values, and sample size from a fitted
##' model in a matrix-like object. The purpose is to have all inferential
##' numbers be readily ... | /inference/R/inference.R | no_license | ingted/R-Examples | R | false | false | 13,071 | r | ##' Extract inferential information from different statistical models.
##'
##' This package provides functions to extract point estimates, standard
##' errors, confidence intervals, p-values, and sample size from a fitted
##' model in a matrix-like object. The purpose is to have all inferential
##' numbers be readily ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_ghcnd.R
\name{meteo_tidy_ghcnd}
\alias{meteo_tidy_ghcnd}
\title{Create a tidy GHCND dataset from a single monitor}
\usage{
meteo_tidy_ghcnd(stationid, keep_flags = FALSE, var = "all",
date_min = NULL, date_max = NULL)
}
\arguments{
... | /man/meteo_tidy_ghcnd.Rd | permissive | martgnz/rnoaa | R | false | true | 4,900 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_ghcnd.R
\name{meteo_tidy_ghcnd}
\alias{meteo_tidy_ghcnd}
\title{Create a tidy GHCND dataset from a single monitor}
\usage{
meteo_tidy_ghcnd(stationid, keep_flags = FALSE, var = "all",
date_min = NULL, date_max = NULL)
}
\arguments{
... |
library(MASS)
library(Rcpp)
sourceCpp('pdist.cpp')
# a generic function
# checks if d x N matrix of points are in the space
in_space <- function(omega, x) {
rep(FALSE, dim(x)[2])
}
# a generic function
# returns d x N matrix of points
sample_points <- function(omega, n = 1) {
t(rep(NA, n))
}
# function
table_tup... | /stat312/project2/source.R | no_license | snarles/misc | R | false | false | 13,210 | r | library(MASS)
library(Rcpp)
sourceCpp('pdist.cpp')
# a generic function
# checks if d x N matrix of points are in the space
in_space <- function(omega, x) {
rep(FALSE, dim(x)[2])
}
# a generic function
# returns d x N matrix of points
sample_points <- function(omega, n = 1) {
t(rep(NA, n))
}
# function
table_tup... |
#### R2Winbugs Code for a Bayesian hierarchical test of the Geurts data.
#### Do children with ADHD perform worse on the Wisconsin Card Sorting Task
#### than children who develop typically (i.e., normal controls)?
rm(list=ls()) # clears workspace
# sets working directories:
setwd("C:/Users/EJ/Dropbox/EJ/te... | /R/BCM_book/ModelSelection/Rates/Geurts.R | no_license | wmmurrah/BayesianAnalysis | R | false | false | 3,889 | r | #### R2Winbugs Code for a Bayesian hierarchical test of the Geurts data.
#### Do children with ADHD perform worse on the Wisconsin Card Sorting Task
#### than children who develop typically (i.e., normal controls)?
rm(list=ls()) # clears workspace
# sets working directories:
setwd("C:/Users/EJ/Dropbox/EJ/te... |
library(MTurkR)
### Name: GetHITsForQualificationType
### Title: Get HITs by Qualification
### Aliases: GetHITsForQualificationType gethitsbyqual
### Keywords: HITs Qualifications
### ** Examples
## Not run:
##D q <- ListQualificationTypes()[7,2] # Location requirement
##D GetHITsForQualificationType(q)
## End(Not... | /data/genthat_extracted_code/MTurkR/examples/GetHITsForQualificationType.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 329 | r | library(MTurkR)
### Name: GetHITsForQualificationType
### Title: Get HITs by Qualification
### Aliases: GetHITsForQualificationType gethitsbyqual
### Keywords: HITs Qualifications
### ** Examples
## Not run:
##D q <- ListQualificationTypes()[7,2] # Location requirement
##D GetHITsForQualificationType(q)
## End(Not... |
#############################
## Oyster Data Management ##
## Output Summary Tables ##
## Plots ##
## Analyses ##
## FUNCTIONS ##
## ##
## Jennifer Moore ##
## October 29, 2019 ##
#############################
#organizeData()
#Fu... | /script/oyster_functions.R | no_license | LCRoysterproject/nfwf_quarterly_report | R | false | false | 37,373 | r | #############################
## Oyster Data Management ##
## Output Summary Tables ##
## Plots ##
## Analyses ##
## FUNCTIONS ##
## ##
## Jennifer Moore ##
## October 29, 2019 ##
#############################
#organizeData()
#Fu... |
setwd(dir = "/Volumes/2TB/mvBM_sims_PB")
library(abind)
library(parallel)
library(foreach)
library(doParallel)
library(ape)
library(coda)
library(rwty)
library(phangorn)
library(lattice)
library(latticeExtra)
library(MCMCpack)
library(readtext)
library(StatMatch)
library(mvtnorm)
traitNumIter <- c(2,4,8,16,32,64)
d... | /mvBM_sims_distancepParsimonyMethods_PB.R | no_license | NikVetr/dissertation_work | R | false | false | 5,671 | r | setwd(dir = "/Volumes/2TB/mvBM_sims_PB")
library(abind)
library(parallel)
library(foreach)
library(doParallel)
library(ape)
library(coda)
library(rwty)
library(phangorn)
library(lattice)
library(latticeExtra)
library(MCMCpack)
library(readtext)
library(StatMatch)
library(mvtnorm)
traitNumIter <- c(2,4,8,16,32,64)
d... |
## version: 1.39
## method: post
## path: /configs/create
## code: 201
## response: {"ID":"ktnbjxoalbkvbvedmg1urrz8h"}
list(id = "ktnbjxoalbkvbvedmg1urrz8h")
| /tests/testthat/sample_responses/v1.39/config_create.R | no_license | cran/stevedore | R | false | false | 158 | r | ## version: 1.39
## method: post
## path: /configs/create
## code: 201
## response: {"ID":"ktnbjxoalbkvbvedmg1urrz8h"}
list(id = "ktnbjxoalbkvbvedmg1urrz8h")
|
logaritm=function(a)
{
r=vector()
r=scan(a)
return (log(r,10))
}
logaritm("vector.txt")
mama=function(a)
{
r=vector()
r=scan(a)
return (r-max(r)/min(r))
}
mama("vector.txt")
| /Lab1/3.r | no_license | danghermang/ps | R | false | false | 186 | r | logaritm=function(a)
{
r=vector()
r=scan(a)
return (log(r,10))
}
logaritm("vector.txt")
mama=function(a)
{
r=vector()
r=scan(a)
return (r-max(r)/min(r))
}
mama("vector.txt")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/images.R
\name{image_actions}
\alias{image_actions}
\title{Retrieve an action associated with a particular image id.}
\usage{
image_actions(image, action_id, ...)
}
\arguments{
\item{image}{An image to modify.}
\item{action_id}{An action id ... | /man/image_actions.Rd | no_license | trestletech/analogsea | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/images.R
\name{image_actions}
\alias{image_actions}
\title{Retrieve an action associated with a particular image id.}
\usage{
image_actions(image, action_id, ...)
}
\arguments{
\item{image}{An image to modify.}
\item{action_id}{An action id ... |
library(spider)
### Name: heatmapSpp
### Title: Visualise a distance matrix using a heatmap
### Aliases: heatmapSpp
### Keywords: Utilities
### ** Examples
data(dolomedes)
doloDist <- ape::dist.dna(dolomedes, model = "raw")
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
heatmapSpp(doloDist, doloSpp)
heatmapSpp(... | /data/genthat_extracted_code/spider/examples/heatmapSpp.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 905 | r | library(spider)
### Name: heatmapSpp
### Title: Visualise a distance matrix using a heatmap
### Aliases: heatmapSpp
### Keywords: Utilities
### ** Examples
data(dolomedes)
doloDist <- ape::dist.dna(dolomedes, model = "raw")
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
heatmapSpp(doloDist, doloSpp)
heatmapSpp(... |
library(MASS)
library(klaR)
library("e1071")
library("caret")
train_<- iris[-c(41:50,91:100, 141:150),] ## splitting the data set by removing the test data
test<- iris[-c(1:40, 50:90, 100:140),] ## same as before but by removing the training data from iris
##the above method preserves the data frame
## sep... | /naive_b.R | no_license | v7t-codes/ML_assignment | R | false | false | 684 | r | library(MASS)
library(klaR)
library("e1071")
library("caret")
train_<- iris[-c(41:50,91:100, 141:150),] ## splitting the data set by removing the test data
test<- iris[-c(1:40, 50:90, 100:140),] ## same as before but by removing the training data from iris
##the above method preserves the data frame
## sep... |
library(ggmap)
library(ggplot2)
library(tidyverse)
library(leaflet)
library(shiny)
library(lubridate)
library(data.table)
library(dplyr)
#set wd, load and fortify traffic data
setwd("C:/Users/camyb/Documents/Capstone/Data")
data <- read.csv("Master Incident List (1).csv", stringsAsFactors = FALSE)
data... | /master.R | no_license | jwang310/Capstone | R | false | false | 4,064 | r | library(ggmap)
library(ggplot2)
library(tidyverse)
library(leaflet)
library(shiny)
library(lubridate)
library(data.table)
library(dplyr)
#set wd, load and fortify traffic data
setwd("C:/Users/camyb/Documents/Capstone/Data")
data <- read.csv("Master Incident List (1).csv", stringsAsFactors = FALSE)
data... |
library(PivotalR)
db.connect(port = 16526, dbname = "madlib")
dat <- db.data.frame("madlibtestdata.dt_abalone")
dd <- lk(dat, -1)
for (i in 1:10) dd <- rbind(dd, dd)
dim(dd)
dat <- as.db.data.frame(dd)
system.time({fit <- glm(rings ~ length + diameter + shell, data = dd, family = "poisson"); r <- summary(fit)})
#... | /pivotalr-blogs/test03.R | no_license | walkingsparrow/tests | R | false | false | 1,827 | r | library(PivotalR)
db.connect(port = 16526, dbname = "madlib")
dat <- db.data.frame("madlibtestdata.dt_abalone")
dd <- lk(dat, -1)
for (i in 1:10) dd <- rbind(dd, dd)
dim(dd)
dat <- as.db.data.frame(dd)
system.time({fit <- glm(rings ~ length + diameter + shell, data = dd, family = "poisson"); r <- summary(fit)})
#... |
library(symmoments)
### Name: toLatex.moment
### Title: LaTeX a multivariate moment
### Aliases: 'toLatex.moment '
### ** Examples
toLatex(callmultmoments(c(1,2,3)))
| /data/genthat_extracted_code/symmoments/examples/toLatex.moment.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 171 | r | library(symmoments)
### Name: toLatex.moment
### Title: LaTeX a multivariate moment
### Aliases: 'toLatex.moment '
### ** Examples
toLatex(callmultmoments(c(1,2,3)))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prox_functions.R
\name{proj_Linf_m}
\alias{proj_Linf_m}
\title{Projection of infinity norm}
\usage{
proj_Linf_m(x, tau)
}
\arguments{
\item{tau}{}
}
\value{
}
\description{
Projection of infinity norm
}
| /man/proj_Linf_m.Rd | no_license | sakuramomo1005/biclusADMM | R | false | true | 282 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prox_functions.R
\name{proj_Linf_m}
\alias{proj_Linf_m}
\title{Projection of infinity norm}
\usage{
proj_Linf_m(x, tau)
}
\arguments{
\item{tau}{}
}
\value{
}
\description{
Projection of infinity norm
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_achievement.R
\name{assign_quarter}
\alias{assign_quarter}
\title{Assign Quarter}
\usage{
assign_quarter(df, curr_qtr = 4)
}
\arguments{
\item{df}{MSD dataframe, standard or reshaped via reshape_msd()}
\item{curr_qtr}{quarter for curren... | /man/assign_quarter.Rd | permissive | ICPI/ICPIutilities | R | false | true | 429 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_achievement.R
\name{assign_quarter}
\alias{assign_quarter}
\title{Assign Quarter}
\usage{
assign_quarter(df, curr_qtr = 4)
}
\arguments{
\item{df}{MSD dataframe, standard or reshaped via reshape_msd()}
\item{curr_qtr}{quarter for curren... |
alpha <- 0.05
tol <- 1.0e-10
itmax <- 50
n <- 36
theta1 <- -0.4716
theta2 <- 0.3853
ny <- n-1
del1 <- theta1*sqrt(n)
del2 <- theta2*sqrt(n)
err1 <- -alpha
c1 <- (del1+del2)/2
err2 <- NA
S8 <- 0
while (err1 < 0)
{ c1 <- c1-0.5
areac1_2 <- pt(c1,ny,del2)
if (is.na(areac1_2))
{ S8 <- 1
... | /UserMacros/TSHEQ_2ndEd_Programs_etc/Source_Programs/R/tt1st.R | no_license | github-student-taker/sas_pgm | R | false | false | 1,397 | r | alpha <- 0.05
tol <- 1.0e-10
itmax <- 50
n <- 36
theta1 <- -0.4716
theta2 <- 0.3853
ny <- n-1
del1 <- theta1*sqrt(n)
del2 <- theta2*sqrt(n)
err1 <- -alpha
c1 <- (del1+del2)/2
err2 <- NA
S8 <- 0
while (err1 < 0)
{ c1 <- c1-0.5
areac1_2 <- pt(c1,ny,del2)
if (is.na(areac1_2))
{ S8 <- 1
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_summary_matrix.R
\name{make_summary_matrix}
\alias{make_summary_matrix}
\title{Creates summary matrix}
\usage{
make_summary_matrix(df, m, method)
}
\arguments{
\item{df}{sorted data frame of processed PCL data}
\item{m}{matrix of PCL hi... | /man/make_summary_matrix.Rd | no_license | xjy11/forestr | R | false | true | 1,110 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_summary_matrix.R
\name{make_summary_matrix}
\alias{make_summary_matrix}
\title{Creates summary matrix}
\usage{
make_summary_matrix(df, m, method)
}
\arguments{
\item{df}{sorted data frame of processed PCL data}
\item{m}{matrix of PCL hi... |
# plot_TADlist_similarities.R
plot_TADlist_comparison <- function(TAD_list, metric, lowColor="blue", highColor="red", nCpu=1, ...) {
symmMetric <- TRUE
require(doMC)
require(foreach)
require(ggplot2)
registerDoMC(nCpu)
metric_args <- list(...)
all_cmbs <- combn(names(TAD_list), 2)
if(metric != "g... | /tadcomp/scripts/plot_TADlist_similarities.R | no_license | marzuf/tadcomp_shinyApp_feb21 | R | false | false | 3,346 | r | # plot_TADlist_similarities.R
plot_TADlist_comparison <- function(TAD_list, metric, lowColor="blue", highColor="red", nCpu=1, ...) {
symmMetric <- TRUE
require(doMC)
require(foreach)
require(ggplot2)
registerDoMC(nCpu)
metric_args <- list(...)
all_cmbs <- combn(names(TAD_list), 2)
if(metric != "g... |
dataset <- read.table("household_power_consumption.txt",
header = TRUE, sep = ";", na.strings = "?")
subdata <- dataset[dataset$Date %in% c("1/2/2007", "2/2/2007"),]
# Subset the data data from the dates 2007-02-01 and 2007-02-02
datetime <- strptime(paste(subdata$Date, subdata$Time), "%d/%m/%Y ... | /plot4.R | no_license | Kinundu/ExData_Plotting1 | R | false | false | 1,690 | r | dataset <- read.table("household_power_consumption.txt",
header = TRUE, sep = ";", na.strings = "?")
subdata <- dataset[dataset$Date %in% c("1/2/2007", "2/2/2007"),]
# Subset the data data from the dates 2007-02-01 and 2007-02-02
datetime <- strptime(paste(subdata$Date, subdata$Time), "%d/%m/%Y ... |
# load libraries
library(rgdal)
library(dplyr)
library(ggplot2)
library(leaflet)
# import the Data
url <- "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_countries.zip"
file <- basename(url)
download.file(url, file)
folder <- getwd()
unzip(file, exdir = folder)
# ... | /import.R | no_license | bquast/Tor-Usage | R | false | false | 1,175 | r | # load libraries
library(rgdal)
library(dplyr)
library(ggplot2)
library(leaflet)
# import the Data
url <- "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_countries.zip"
file <- basename(url)
download.file(url, file)
folder <- getwd()
unzip(file, exdir = folder)
# ... |
sed_inplace <- function(previous, new, file) {
previous <- gsub(pattern = '"', replacement = '\\"', fixed = T, x = previous)
new <- gsub(pattern = '"', replacement = '\\"', fixed = T, x = new)
return(paste0("sed -i \"\" ", file, " \"s/", previous, "/", new, "/g\" "))
}
to_string_array <- function(s) paste0(... | /R/deploy.R | permissive | jeroenvdhoven/datapiper | R | false | false | 19,849 | r | sed_inplace <- function(previous, new, file) {
previous <- gsub(pattern = '"', replacement = '\\"', fixed = T, x = previous)
new <- gsub(pattern = '"', replacement = '\\"', fixed = T, x = new)
return(paste0("sed -i \"\" ", file, " \"s/", previous, "/", new, "/g\" "))
}
to_string_array <- function(s) paste0(... |
#' Import a Python module
#'
#' Import the specified Python module for calling from R.
#'
#' @param module Module name
#' @param as Alias for module name (affects names of R classes). Note that
#' this is an advanced parameter that should generally only be used
#' in package development (since it affects the S3 name... | /R/python.R | permissive | TomKellyGenetics/reticulate | R | false | false | 35,519 | r |
#' Import a Python module
#'
#' Import the specified Python module for calling from R.
#'
#' @param module Module name
#' @param as Alias for module name (affects names of R classes). Note that
#' this is an advanced parameter that should generally only be used
#' in package development (since it affects the S3 name... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lookupr.R
\docType{package}
\name{lookupr}
\alias{lookupr}
\alias{lookupr-package}
\title{lookupr}
\description{
Lookup pulls common lookup tables from a Github repository
and joins them to your data.
}
\details{
This is a port of Python's \h... | /man/lookupr.Rd | no_license | wireservice/lookupr | R | false | true | 495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lookupr.R
\docType{package}
\name{lookupr}
\alias{lookupr}
\alias{lookupr-package}
\title{lookupr}
\description{
Lookup pulls common lookup tables from a Github repository
and joins them to your data.
}
\details{
This is a port of Python's \h... |
setwd("~/Git/stats")
library(stats)
library(data.table)
data2 <- read.csv("~/Git/stats/Purpose_Surveys_Model_Farms_Wave_1_.csv", , header = T, colClasses = "character")
PERMA2<- select(data2, PERMA_M1_1:PERMA_HPY_1)
Nameetc<- select(data2, Q32,Q33.1,Q35,Q37,Q3_1)
setnames(Nameetc, c("Q32","Q33.1","Q35","Q37","Q3_1"), c... | /Psychometric_Youth_Tidy_Data_Perma.R | no_license | yissylevi/work | R | false | false | 1,694 | r | setwd("~/Git/stats")
library(stats)
library(data.table)
data2 <- read.csv("~/Git/stats/Purpose_Surveys_Model_Farms_Wave_1_.csv", , header = T, colClasses = "character")
PERMA2<- select(data2, PERMA_M1_1:PERMA_HPY_1)
Nameetc<- select(data2, Q32,Q33.1,Q35,Q37,Q3_1)
setnames(Nameetc, c("Q32","Q33.1","Q35","Q37","Q3_1"), c... |
# USAGE: R CMD BATCH birrer.R ##
rm(list = ls(all = TRUE))
library(biomaRt)
library(frma)
library(affy)
library(hgu133afrmavecs)
data(hgu133afrmavecs)
##### gene expression data and renormalization ######
step <- 20
setwd("/common/projects/trisch/Ovarian_cancer/birrer2010/data")
direc<-list.celfiles()
dat<- NULL... | /r_code/angiogenic/birrer.R | no_license | xulijunji/GENIUS_ovarian | R | false | false | 3,909 | r | # USAGE: R CMD BATCH birrer.R ##
rm(list = ls(all = TRUE))
library(biomaRt)
library(frma)
library(affy)
library(hgu133afrmavecs)
data(hgu133afrmavecs)
##### gene expression data and renormalization ######
step <- 20
setwd("/common/projects/trisch/Ovarian_cancer/birrer2010/data")
direc<-list.celfiles()
dat<- NULL... |
# 1b.
mark_bins <- function(woe, woe_cutoff = 0.1, min_perc)
{
#print(woe_cutoff)
woe <- woe %>%
mutate(woe_next = lead(woe),
woe_change = abs((woe_next-woe)),
max_cum = cummax(woe),
check = max_cum != woe
)
#woe$perc... | /R/recursive_woe.R | no_license | Smily1984/woeR | R | false | false | 1,660 | r |
# 1b.
mark_bins <- function(woe, woe_cutoff = 0.1, min_perc)
{
#print(woe_cutoff)
woe <- woe %>%
mutate(woe_next = lead(woe),
woe_change = abs((woe_next-woe)),
max_cum = cummax(woe),
check = max_cum != woe
)
#woe$perc... |
# fstcore - R bindings to the fstlib library
#
# Copyright (C) 2017-present, Mark AJ Klik
#
# This file is part of the fstcore R package.
#
# The fstcore R package is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License version 3 as
# published... | /fuzzedpackages/fstcore/R/openmp.R | no_license | akhikolla/testpackages | R | false | false | 3,765 | r | # fstcore - R bindings to the fstlib library
#
# Copyright (C) 2017-present, Mark AJ Klik
#
# This file is part of the fstcore R package.
#
# The fstcore R package is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License version 3 as
# published... |
#load library
library(ncdf.tools)
library(ncdf4)
library(raster)
library(rgdal)
library(ncdf4.helpers)
#load dataset
nc_data <- ncdf4::nc_open("g:/data_gis/tirol_klima/oeks15/daily_values/rr_rcp45.nc")
nc_data <- ncdf4::nc_open("g:/data_gis/tirol_klima/oeks15/daily_values/rr_rcp85.nc")
nc_data <- ncdf4::nc_o... | /r_script/Rscript_climate data collection.R | no_license | simonalois/cliffs | R | false | false | 3,570 | r | #load library
library(ncdf.tools)
library(ncdf4)
library(raster)
library(rgdal)
library(ncdf4.helpers)
#load dataset
nc_data <- ncdf4::nc_open("g:/data_gis/tirol_klima/oeks15/daily_values/rr_rcp45.nc")
nc_data <- ncdf4::nc_open("g:/data_gis/tirol_klima/oeks15/daily_values/rr_rcp85.nc")
nc_data <- ncdf4::nc_o... |
running.freq = function(x, tiles = 4e5, info){
listgr = vector("list", info$part_nr)
names(listgr) = names(x[[1]])
for(chr in names(listgr)){
myt = tileGenome( tilewidth = tiles,
cut.last.tile.in.chrom=TRUE, seqlengths = seqlengths(x[[1]][[chr]])[chr])
for(samp in names(x)){
h... | /R/runningFreqPlot.R | no_license | sen1019san/RTIGER | R | false | false | 3,656 | r | running.freq = function(x, tiles = 4e5, info){
listgr = vector("list", info$part_nr)
names(listgr) = names(x[[1]])
for(chr in names(listgr)){
myt = tileGenome( tilewidth = tiles,
cut.last.tile.in.chrom=TRUE, seqlengths = seqlengths(x[[1]][[chr]])[chr])
for(samp in names(x)){
h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDifferentials.R
\name{getDifferentials}
\alias{getDifferentials}
\title{Creates a heatmap from a selection of groups}
\usage{
getDifferentials(cellexalObj, cellidfile, deg.method = c("anova", "edgeR",
"MAST"), num.sig)
}
\arguments{
\ite... | /man/getDifferentials.Rd | no_license | shambam/cellexalvrR | R | false | true | 589 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDifferentials.R
\name{getDifferentials}
\alias{getDifferentials}
\title{Creates a heatmap from a selection of groups}
\usage{
getDifferentials(cellexalObj, cellidfile, deg.method = c("anova", "edgeR",
"MAST"), num.sig)
}
\arguments{
\ite... |
#!/usr/bin/Rscript
### Pick the first occurrence of heart rate data for each patients in the target population
## Set working directory
setwd("~/mimic2/")
## Load the HR data extracted in the step before
dataVentilator <- read.csv("data_CHARTEVENTS-vent.txt")
## Check dimension
dim(dataVentilator)
## [1] 254851 ... | /20140104mit_hackathon/05.patient.vent.use.R | no_license | kaz-yos/mimic2 | R | false | false | 2,371 | r | #!/usr/bin/Rscript
### Pick the first occurrence of heart rate data for each patients in the target population
## Set working directory
setwd("~/mimic2/")
## Load the HR data extracted in the step before
dataVentilator <- read.csv("data_CHARTEVENTS-vent.txt")
## Check dimension
dim(dataVentilator)
## [1] 254851 ... |
### My_Benchmarks_Daily
rm(list=ls())
graphics.off()
library(forecast)
library(ggplot2)
source("src/my_utils.R")
# load data
my_data <- "data/M4_Daily.rds"
df <- give_sam(readRDS(file=my_data),size = 20, seed = 11)
df <- readRDS(file=my_data)
length(df)
# plot a random series
df_sam <- give_sam(df, size=1)[[1]]
fc_s... | /R_benchmarks/My_Benchmarks_Daily.R | no_license | tm1611/M4-Statistical-Methods | R | false | false | 1,690 | r | ### My_Benchmarks_Daily
rm(list=ls())
graphics.off()
library(forecast)
library(ggplot2)
source("src/my_utils.R")
# load data
my_data <- "data/M4_Daily.rds"
df <- give_sam(readRDS(file=my_data),size = 20, seed = 11)
df <- readRDS(file=my_data)
length(df)
# plot a random series
df_sam <- give_sam(df, size=1)[[1]]
fc_s... |
library(stringr)
######Problem 1
#Read in data and create new file for output
readFile <- scan(file = "Cflorida.vcf", what = character(), sep = "\n")
file.create("CfloridaCounts.vcf")
###Creating regexpressions
#To standardize samples
A <- "[Cc][Ff](07)?\\.[Aa]2?" #For Texas
B <- "[Cc][Ff]\\.[Gg]([Aa][Ii... | /Exercise08.R | no_license | Larnold1997/Intro_Biocomp_ND_317_Tutorial8 | R | false | false | 1,707 | r | library(stringr)
######Problem 1
#Read in data and create new file for output
readFile <- scan(file = "Cflorida.vcf", what = character(), sep = "\n")
file.create("CfloridaCounts.vcf")
###Creating regexpressions
#To standardize samples
A <- "[Cc][Ff](07)?\\.[Aa]2?" #For Texas
B <- "[Cc][Ff]\\.[Gg]([Aa][Ii... |
testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.33738580188587e+218, 0, 0))
result <- do.call(meteor:::ET0_Makkink,testlist)
str(result) | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615856534-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 172 | r | testlist <- list(Rs = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(1.33738580188587e+218, 0, 0))
result <- do.call(meteor:::ET0_Makkink,testlist)
str(result) |
x<-seq(50,100,5)
# 50 55 60 65 70 75 80 85 90 95 100
y.91.knn<- c(0.625 ,0.625 ,0.75 ,0.5 ,0.5 ,0.5 ,0.5 ,0.625 ,0.875 ,0.875 ,0.75 )
y.91.svm<- c(1 ,1 ,1 ,1 ,1 ,0.75 ,1 ,1 ,1 ,1 ,1)
y.91.rf<- c(1 ,1 ,1 ,1 ,0.875 ,1 ,1 ,1 ,1 ,0.875 ,1)
y.91.nnet<- c(1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ... | /codes/plots_rvr.R | no_license | syuxue/BIBM2016 | R | false | false | 2,777 | r | x<-seq(50,100,5)
# 50 55 60 65 70 75 80 85 90 95 100
y.91.knn<- c(0.625 ,0.625 ,0.75 ,0.5 ,0.5 ,0.5 ,0.5 ,0.625 ,0.875 ,0.875 ,0.75 )
y.91.svm<- c(1 ,1 ,1 ,1 ,1 ,0.75 ,1 ,1 ,1 ,1 ,1)
y.91.rf<- c(1 ,1 ,1 ,1 ,0.875 ,1 ,1 ,1 ,1 ,0.875 ,1)
y.91.nnet<- c(1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ... |
#' raster.resid Measure standardized residuals from a linear regression between two rasters.
#'
#' This function builds a linear model for the relationship between two rasters, and returns the linear model
#' and a spatial raster of the residuals from that model.
#'
#' @param x A raster or RasterLayer object, or ENMToo... | /R/raster.resid.R | no_license | nmatzke/ENMTools | R | false | false | 1,187 | r | #' raster.resid Measure standardized residuals from a linear regression between two rasters.
#'
#' This function builds a linear model for the relationship between two rasters, and returns the linear model
#' and a spatial raster of the residuals from that model.
#'
#' @param x A raster or RasterLayer object, or ENMToo... |
# April, 2017
source("Code/Utilities/init.RVE.r")
#### Read in data from EXCEL file ####
sheet <- "3-way"
filename <- "Data/20200213_Data_Extraction_Table.xlsx"
zTrans <- T
dataNames <- c(
"StudyID",
"Authors",
"Sample",
"Subsample",
"Interval",
"n",
"Corr",
"PA",
"Year",
"Country",
"CodingMeth... | /Code/MetaAnalysis_3Way_k.R | no_license | timesler/AttachmentStabilityMetaAnalysis_Opie2019 | R | false | false | 1,405 | r | # April, 2017
source("Code/Utilities/init.RVE.r")
#### Read in data from EXCEL file ####
sheet <- "3-way"
filename <- "Data/20200213_Data_Extraction_Table.xlsx"
zTrans <- T
dataNames <- c(
"StudyID",
"Authors",
"Sample",
"Subsample",
"Interval",
"n",
"Corr",
"PA",
"Year",
"Country",
"CodingMeth... |
testlist <- list(x = structure(c(131098.560294121, 1.26480805335359e-321, 6.68174034981691e-310, 0, 0, 0, 0), .Dim = c(1L, 7L)))
result <- do.call(borrowr:::matchesToCor,testlist)
str(result) | /borrowr/inst/testfiles/matchesToCor/libFuzzer_matchesToCor/matchesToCor_valgrind_files/1609958472-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 192 | r | testlist <- list(x = structure(c(131098.560294121, 1.26480805335359e-321, 6.68174034981691e-310, 0, 0, 0, 0), .Dim = c(1L, 7L)))
result <- do.call(borrowr:::matchesToCor,testlist)
str(result) |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ReadIgorBinary.R
\name{IgorR-private}
\alias{.ReadPackedHeader}
\alias{IgorR-private}
\title{Private functions in IgorR Package}
\usage{
.ReadPackedHeader(con, endian)
}
\arguments{
\item{con}{an R connection to the file we are readin... | /man/IgorR-private.Rd | no_license | richardvancouver/IgorR | R | false | false | 664 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ReadIgorBinary.R
\name{IgorR-private}
\alias{.ReadPackedHeader}
\alias{IgorR-private}
\title{Private functions in IgorR Package}
\usage{
.ReadPackedHeader(con, endian)
}
\arguments{
\item{con}{an R connection to the file we are readin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rules-class.R
\docType{class}
\name{NextBestNCRM-class}
\alias{NextBestNCRM-class}
\alias{.NextBestNCRM}
\alias{NextBestNCRM}
\alias{.DefaultNextBestNCRM}
\title{\code{NextBestNCRM}}
\usage{
NextBestNCRM(target, overdose, max_overdose_prob)
... | /man/NextBestNCRM-class.Rd | no_license | Roche/crmPack | R | false | true | 2,224 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rules-class.R
\docType{class}
\name{NextBestNCRM-class}
\alias{NextBestNCRM-class}
\alias{.NextBestNCRM}
\alias{NextBestNCRM}
\alias{.DefaultNextBestNCRM}
\title{\code{NextBestNCRM}}
\usage{
NextBestNCRM(target, overdose, max_overdose_prob)
... |
##------------------------------------------------------
# AMET Database Setup Script #
# #
# PURPOSE: Deletes a database and an amet #
# user for both MET and AQ #
# ... | /R_db_code/delete_AMETdb_user.R | permissive | USEPA/AMET | R | false | false | 3,153 | r | ##------------------------------------------------------
# AMET Database Setup Script #
# #
# PURPOSE: Deletes a database and an amet #
# user for both MET and AQ #
# ... |
# Yige Wu @WashU Jun 2021
## BAP1_tumorcells_vs_other_tumorcells
# set up libraries and output directory -----------------------------------
## set working directory
dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/"
setwd(dir_base)
source("./ccRCC_snRNA_analysis/load_pkgs.R")
source("./ccRCC_snRNA_analysis... | /snatac/da_peaks/bap1/pathway/ora_msigdb_H_CP_BAP1_vs_othertumors_down_promoter_enhancer_dap_deg_overlap.R | no_license | ding-lab/ccRCC_snRNA_analysis | R | false | false | 3,667 | r | # Yige Wu @WashU Jun 2021
## BAP1_tumorcells_vs_other_tumorcells
# set up libraries and output directory -----------------------------------
## set working directory
dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/"
setwd(dir_base)
source("./ccRCC_snRNA_analysis/load_pkgs.R")
source("./ccRCC_snRNA_analysis... |
library(tidyverse)
library(rvest)
# given a year Y (numeric), return a dataframe containing NBA playoff data
# for the season Y-Y+1. Each line in the dataframe represents one series.
# Note that in the returned dataframe, the year column is Y+1, the calendar
# year that the playoffs actually took place in.
getPlayoffR... | /blog/2021-06-01 nba playoff/nba_playoff_scrape.R | no_license | kjytay/misc | R | false | false | 2,896 | r | library(tidyverse)
library(rvest)
# given a year Y (numeric), return a dataframe containing NBA playoff data
# for the season Y-Y+1. Each line in the dataframe represents one series.
# Note that in the returned dataframe, the year column is Y+1, the calendar
# year that the playoffs actually took place in.
getPlayoffR... |
#' Fit probabilistic pseudotime model
#'
#' This method takes one or more reduced-dimension representations of the gene expression
#' data and returns a one-dimensional Bayesian Gaussian Process latent variable model as
#' a `stanfit` object. The free parameters `smoothing_alpha` and `smoothing_beta` correspond
#' to ... | /R/pseudogp.R | no_license | kieranrcampbell/pseudogp | R | false | false | 7,785 | r |
#' Fit probabilistic pseudotime model
#'
#' This method takes one or more reduced-dimension representations of the gene expression
#' data and returns a one-dimensional Bayesian Gaussian Process latent variable model as
#' a `stanfit` object. The free parameters `smoothing_alpha` and `smoothing_beta` correspond
#' to ... |
#' @title Generate Frequency Distribution Matrix
#' @description For a given names dataframe and placement, a frequency distribution table is returned.
#' @param dframe A dataframe with one column that has one name per row. These names must be english alphabets from A to Z and must not include any non-alphabet charac... | /R/genMatrix.R | no_license | cran/conjurer | R | false | false | 2,722 | r | #' @title Generate Frequency Distribution Matrix
#' @description For a given names dataframe and placement, a frequency distribution table is returned.
#' @param dframe A dataframe with one column that has one name per row. These names must be english alphabets from A to Z and must not include any non-alphabet charac... |
#' Extracao de texto contido em arquivo do tipo pdf.
#'
#' Esta funcao utiliza a funcao \code{readPDF}, do pacote \code{tm} (Text Mining) para extrair
#' o texto contido num arquivo pdf.
#'
#' @param uri uma string contendo o nome do arquivo (ou caminho completo) do arquivo pdf.
#' @return um objeto do tipo \code{chara... | /R/utilExtractPdfText.R | no_license | brunomssmelo/RppsWrangler | R | false | false | 968 | r | #' Extracao de texto contido em arquivo do tipo pdf.
#'
#' Esta funcao utiliza a funcao \code{readPDF}, do pacote \code{tm} (Text Mining) para extrair
#' o texto contido num arquivo pdf.
#'
#' @param uri uma string contendo o nome do arquivo (ou caminho completo) do arquivo pdf.
#' @return um objeto do tipo \code{chara... |
#' create a polygon cell grid from specifications. Assumes lat/lon data
#' and rectangular polygons.
#'
#' @param x0 the left edge of the cell grid to be built
#' @param y0 the lower edge of the cell grid to be built
#' @param x_num the number of cells in the x dimension
#' @param y_num the number of cells in the y di... | /1_get_lake_attr/src/grid_utils.R | no_license | limnoliver/lake-temperature-process-models | R | false | false | 2,174 | r |
#' create a polygon cell grid from specifications. Assumes lat/lon data
#' and rectangular polygons.
#'
#' @param x0 the left edge of the cell grid to be built
#' @param y0 the lower edge of the cell grid to be built
#' @param x_num the number of cells in the x dimension
#' @param y_num the number of cells in the y di... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalizations.r
\name{preProcess}
\alias{preProcess}
\title{preProcess}
\usage{
preProcess(dat, dev = 0)
}
\arguments{
\item{dat}{OTU count/relative abundance matrix (each OTU in one row)}
\item{dev}{dev * IQR from median will be filtered o... | /man/preProcess.Rd | permissive | satopan/beem-static | R | false | true | 445 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalizations.r
\name{preProcess}
\alias{preProcess}
\title{preProcess}
\usage{
preProcess(dat, dev = 0)
}
\arguments{
\item{dat}{OTU count/relative abundance matrix (each OTU in one row)}
\item{dev}{dev * IQR from median will be filtered o... |
# lerning how to use plot funcion 1:
Y <- c(10.99, 9, 6.1, 9.50, 6.30, 12, 18)
plot(Y) # just points
# ===================================================
# Plot Annotation:
# ----------------
# main : The main title (on top) using font, size (character expansion) and color par(c("font.main", "cex.main", "col... | /Graphics/Basic stuff/plot1.R | no_license | MGijon/Learning-R | R | false | false | 2,998 | r | # lerning how to use plot funcion 1:
Y <- c(10.99, 9, 6.1, 9.50, 6.30, 12, 18)
plot(Y) # just points
# ===================================================
# Plot Annotation:
# ----------------
# main : The main title (on top) using font, size (character expansion) and color par(c("font.main", "cex.main", "col... |
## File Name: data.prep.R
## File Version: 1.145
#----- data preparations for rasch.jml and rasch.mml
data.prep <- function( dat, weights=NULL, use.freqpatt=TRUE,
standardize_weights=TRUE)
{
item.means <- colMeans( dat, na.rm=TRUE )
item.elim <- which( item.means %in% c(0,1))
if ( length( item.elim... | /R/data.prep.R | no_license | seonghobae/sirt | R | false | false | 2,737 | r | ## File Name: data.prep.R
## File Version: 1.145
#----- data preparations for rasch.jml and rasch.mml
data.prep <- function( dat, weights=NULL, use.freqpatt=TRUE,
standardize_weights=TRUE)
{
item.means <- colMeans( dat, na.rm=TRUE )
item.elim <- which( item.means %in% c(0,1))
if ( length( item.elim... |
#Group Project
#Exploring the janitor package
#load libraries
library(janitor)
library(tidyverse)
library(here)
library(readxl)
library(kableExtra)
#bring in data
coralgrowth<-read.csv("first_draft/Data/CoralGrowth.csv")
view(coralgrowth) #FYI I renamed the file to be shorter
#a little data wrangling
coralsclean<-co... | /first_draft/script/Janitor_Jordan.R | no_license | RuthVR/Group_Project_Bio_551 | R | false | false | 1,628 | r | #Group Project
#Exploring the janitor package
#load libraries
library(janitor)
library(tidyverse)
library(here)
library(readxl)
library(kableExtra)
#bring in data
coralgrowth<-read.csv("first_draft/Data/CoralGrowth.csv")
view(coralgrowth) #FYI I renamed the file to be shorter
#a little data wrangling
coralsclean<-co... |
library(repec)
### Name: getauthorrecordraw
### Title: Provides extended info about author
### Aliases: getauthorrecordraw get_author_record_raw
### ** Examples
## Not run:
##D getauthorrecordraw('pmo915', code = YOURCODE)
## End(Not run)
| /data/genthat_extracted_code/repec/examples/getauthorrecordraw.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 248 | r | library(repec)
### Name: getauthorrecordraw
### Title: Provides extended info about author
### Aliases: getauthorrecordraw get_author_record_raw
### ** Examples
## Not run:
##D getauthorrecordraw('pmo915', code = YOURCODE)
## End(Not run)
|
n = 10^2
exp(1)-1
U = runif(n)
mean (exp(U))
mean(c(exp(U),exp(1-U)))
| /15(12th Vclass)/Untitled.R | no_license | alidarvishi14/applied-stochastic-process | R | false | false | 70 | r | n = 10^2
exp(1)-1
U = runif(n)
mean (exp(U))
mean(c(exp(U),exp(1-U)))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_meta_hm.R
\name{plot_meta_hm}
\alias{plot_meta_hm}
\title{plot metabolomics heatmap
designed for use with gg.stack with other patient metadata, 16S, etc using 'Sample_ID' on the x axis}
\usage{
plot_meta_hm(data, row_mean_centered = T, o... | /man/plot_meta_hm.Rd | no_license | elittmann/erictools | R | false | true | 988 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_meta_hm.R
\name{plot_meta_hm}
\alias{plot_meta_hm}
\title{plot metabolomics heatmap
designed for use with gg.stack with other patient metadata, 16S, etc using 'Sample_ID' on the x axis}
\usage{
plot_meta_hm(data, row_mean_centered = T, o... |
args <- commandArgs(trailingOnly=T)
print(args)
| /Ideoplot.R | permissive | JinfengChen/chm1_scripts | R | false | false | 51 | r |
args <- commandArgs(trailingOnly=T)
print(args)
|
library(shiny)
library(UsingR)
library(MASS)
#library(ggplot2)
# library(rCharts)
data("mtcars")
mtcars$am <- as.factor(mtcars$am)
levels(mtcars$am) <- c("Automatic", "Manual")
mtcars$carName <- rownames(mtcars)
shinyServer(
function(input, output) {
dataTable <- reactive({
mtcars %>% filter(... | /server.R | no_license | schigrinov/DevelopDataProductCoursework | R | false | false | 1,649 | r | library(shiny)
library(UsingR)
library(MASS)
#library(ggplot2)
# library(rCharts)
data("mtcars")
mtcars$am <- as.factor(mtcars$am)
levels(mtcars$am) <- c("Automatic", "Manual")
mtcars$carName <- rownames(mtcars)
shinyServer(
function(input, output) {
dataTable <- reactive({
mtcars %>% filter(... |
## Clase 13 Estadísticas de áreas
Importante:
Definición de la unidad estadística. Eje. Segmentos y cuales son las distancias y los puntos de riesgo.
Para validar que son vecinos que es lo que buscamos en áreas.
Cantidad de segmentos con vecinos.
+ 1 -> 1 vecicno
+ 2 -> 2 vecinos y luego incrementa. En promedio... | /Clases/clase 13/Clase_13.R | no_license | posgrado-de-estadistica/flujo-de-trabajo-monte777 | R | false | false | 4,925 | r | ## Clase 13 Estadísticas de áreas
Importante:
Definición de la unidad estadística. Eje. Segmentos y cuales son las distancias y los puntos de riesgo.
Para validar que son vecinos que es lo que buscamos en áreas.
Cantidad de segmentos con vecinos.
+ 1 -> 1 vecicno
+ 2 -> 2 vecinos y luego incrementa. En promedio... |
# loading data ------------------------------------------------------------
feat <- read.table("features.txt", col.names = c("n","functions"))
activ <- read.table("activity_labels.txt", col.names = c("code", "activity"))
subtest <- read.table("subject_test.txt", col.names = "subject")
xtest <- read.table("X_test.t... | /run_analysis.R | no_license | DianaAtasie/Peer-graded-Assignment-Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,446 | r |
# loading data ------------------------------------------------------------
feat <- read.table("features.txt", col.names = c("n","functions"))
activ <- read.table("activity_labels.txt", col.names = c("code", "activity"))
subtest <- read.table("subject_test.txt", col.names = "subject")
xtest <- read.table("X_test.t... |
## 0. Librerias y rutas
library(rgdal)
library(rgeos)
library(forestChange)
source('C:/Plumber/biotablero_fun.R') # >>>>>>>> Cambiar ruta
## 1. Cargar un polígono
# pol <- writeWKT(dep[grep('AMAZONAS', dep$NOM_DPTO), ])
dep <- raster::getData('GADM', country = 'COL', level = 0)
# Get a WKT polygon: https... | /run_api.R | no_license | gonzalezivan90/biotablero_api | R | false | false | 19,109 | r | ## 0. Librerias y rutas
library(rgdal)
library(rgeos)
library(forestChange)
source('C:/Plumber/biotablero_fun.R') # >>>>>>>> Cambiar ruta
## 1. Cargar un polígono
# pol <- writeWKT(dep[grep('AMAZONAS', dep$NOM_DPTO), ])
dep <- raster::getData('GADM', country = 'COL', level = 0)
# Get a WKT polygon: https... |
library(dMod)
### Name: as.parframe.parlist
### Title: Coerce object to a parameter frame
### Aliases: as.parframe.parlist as.parframe
### ** Examples
## Generate a prediction function
regfn <- c(y = "sin(a*time)")
g <- Y(regfn, parameters = "a")
x <- Xt(condition = "C1")
## Generate data
data <- datalist(
C1 =... | /data/genthat_extracted_code/dMod/examples/as.parframe.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 930 | r | library(dMod)
### Name: as.parframe.parlist
### Title: Coerce object to a parameter frame
### Aliases: as.parframe.parlist as.parframe
### ** Examples
## Generate a prediction function
regfn <- c(y = "sin(a*time)")
g <- Y(regfn, parameters = "a")
x <- Xt(condition = "C1")
## Generate data
data <- datalist(
C1 =... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setmat <- function(mat) m <<- mat
getmat <- funct... | /cachematrix.R | no_license | patruff/ProgrammingAssignment2 | R | false | false | 700 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setmat <- function(mat) m <<- mat
getmat <- funct... |
##==============================================================================
## seir_ensemble.R
##
## Run a set of SEIR model simulations. This function is not used in the results
## from the Wong et al. manuscript, but is provided to allow testing of the
## model to compare infection rates, expected numbers of dea... | /R/seir_ensemble.R | permissive | tonyewong/SEIR-WW | R | false | false | 6,901 | r | ##==============================================================================
## seir_ensemble.R
##
## Run a set of SEIR model simulations. This function is not used in the results
## from the Wong et al. manuscript, but is provided to allow testing of the
## model to compare infection rates, expected numbers of dea... |
#' Workout a group of expressions individually
#'
#' Given an block of expressions in `{}` [workout()] individually times each
#' expression in the group.
#'
#' @param expr one or more expressions to workout, use `{}` to pass multiple
#' expressions.
#' @param description A name to label each expression, if not suppl... | /R/workout.R | no_license | atusy/bench | R | false | false | 1,161 | r | #' Workout a group of expressions individually
#'
#' Given an block of expressions in `{}` [workout()] individually times each
#' expression in the group.
#'
#' @param expr one or more expressions to workout, use `{}` to pass multiple
#' expressions.
#' @param description A name to label each expression, if not suppl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_co_fuzzycluster.R
\docType{methods}
\name{is.na,co_fuzzycluster-method}
\alias{co_fuzzycluster-method}
\alias{is.na,co_fuzzycluster-method}
\alias{method.consensus}
\alias{method.consensus,}
\alias{method.consensus,co_fuzzycluster-meth... | /man/co_fuzzycluster-methods.Rd | no_license | fauzipandya/advfclust | R | false | true | 706 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/method_co_fuzzycluster.R
\docType{methods}
\name{is.na,co_fuzzycluster-method}
\alias{co_fuzzycluster-method}
\alias{is.na,co_fuzzycluster-method}
\alias{method.consensus}
\alias{method.consensus,}
\alias{method.consensus,co_fuzzycluster-meth... |
library(ggalt)
### Name: geom_cartogram
### Title: Map polygons layer enabling the display of show statistical
### information
### Aliases: geom_cartogram
### ** Examples
## Not run:
##D # When using geom_polygon, you will typically need two data frames:
##D # one contains the coordinates of each polygon (positi... | /data/genthat_extracted_code/ggalt/examples/geom_cartogram.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,175 | r | library(ggalt)
### Name: geom_cartogram
### Title: Map polygons layer enabling the display of show statistical
### information
### Aliases: geom_cartogram
### ** Examples
## Not run:
##D # When using geom_polygon, you will typically need two data frames:
##D # one contains the coordinates of each polygon (positi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadingsPlot.R
\name{loadingsPlot}
\alias{loadingsPlot}
\title{Plot coefficients from a linear (or other) model.}
\usage{
loadingsPlot(model, var.names)
}
\arguments{
\item{model}{a model object of the type generated by lm().}
\item{var.name... | /man/loadingsPlot.Rd | no_license | lnsongxf/dMisc | R | false | true | 718 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadingsPlot.R
\name{loadingsPlot}
\alias{loadingsPlot}
\title{Plot coefficients from a linear (or other) model.}
\usage{
loadingsPlot(model, var.names)
}
\arguments{
\item{model}{a model object of the type generated by lm().}
\item{var.name... |
##############################
# Cleaning
##############################
################
#### ABSTRACT
################
## ---- abstract ----
fileConn <- file ("abstract.txt")
abstract.c = as.character(c("Abstract here."))
writeLines(abstract.c, fileConn)
close(fileConn)
## ----
## ---- abstract.length ----
ab... | /Bahamonde_Quininao_Smote_US.R | permissive | cquininao/Smote_US | R | false | false | 383 | r | ##############################
# Cleaning
##############################
################
#### ABSTRACT
################
## ---- abstract ----
fileConn <- file ("abstract.txt")
abstract.c = as.character(c("Abstract here."))
writeLines(abstract.c, fileConn)
close(fileConn)
## ----
## ---- abstract.length ----
ab... |
#!/usr/bin/env Rscript
setwd(dir = "/home/rstudio/disk/tp/data/BLASTN_data")
test = read.table("blast_stegastes" )
test[test$V2=="ENSSPAG00000013419|si:ch211-256m1.8",]
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, return an error
BlastFile <-args[1]
Species <- args[2]... | /src/annote_fasta_from_blast.R | no_license | Tkastylevsky/tp_clown | R | false | false | 723 | r | #!/usr/bin/env Rscript
setwd(dir = "/home/rstudio/disk/tp/data/BLASTN_data")
test = read.table("blast_stegastes" )
test[test$V2=="ENSSPAG00000013419|si:ch211-256m1.8",]
args = commandArgs(trailingOnly=TRUE)
# test if there is at least one argument: if not, return an error
BlastFile <-args[1]
Species <- args[2]... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formula_tests.R
\name{formula_equals}
\alias{formula_equals}
\alias{formula_equals,}
\alias{two_sided,}
\alias{lhs_equals,}
\alias{rhs_equals,}
\alias{rhs_contains}
\alias{two_sided}
\alias{lhs_equals}
\alias{rhs_equals}
\alias{rhs_contains}
... | /man/formula_tests.Rd | permissive | statnmap/checkr | R | false | true | 1,393 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formula_tests.R
\name{formula_equals}
\alias{formula_equals}
\alias{formula_equals,}
\alias{two_sided,}
\alias{lhs_equals,}
\alias{rhs_equals,}
\alias{rhs_contains}
\alias{two_sided}
\alias{lhs_equals}
\alias{rhs_equals}
\alias{rhs_contains}
... |
library(dplyr)
dat <- household_power_consumption
dim(dat)
print(object.size(dat),units = "Gb")
#dates 2007-02-01 and 2007-02-02
datos <- dat
datos$Date <- as.Date(datos$Date,"%d/%m/%Y")
datos <- datos %>%
filter(year(Date)==2007 & month(Date)==02 &
(day(Date)==1 | day(Date)==2))
datos[,-c(1,2)] <- dat... | /Exploratory.R | no_license | vvchcc2020/ExData_Plotting1 | R | false | false | 379 | r | library(dplyr)
dat <- household_power_consumption
dim(dat)
print(object.size(dat),units = "Gb")
#dates 2007-02-01 and 2007-02-02
datos <- dat
datos$Date <- as.Date(datos$Date,"%d/%m/%Y")
datos <- datos %>%
filter(year(Date)==2007 & month(Date)==02 &
(day(Date)==1 | day(Date)==2))
datos[,-c(1,2)] <- dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSsummarize.R
\name{SSsummarize}
\alias{SSsummarize}
\title{Summarize the output from multiple Stock Synthesis models.}
\usage{
SSsummarize(
biglist,
sizeselfactor = "Lsel",
ageselfactor = "Asel",
selfleet = NULL,
selyr = "startyr",... | /man/SSsummarize.Rd | no_license | cgrandin/r4ss | R | false | true | 2,066 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSsummarize.R
\name{SSsummarize}
\alias{SSsummarize}
\title{Summarize the output from multiple Stock Synthesis models.}
\usage{
SSsummarize(
biglist,
sizeselfactor = "Lsel",
ageselfactor = "Asel",
selfleet = NULL,
selyr = "startyr",... |
## Method declarations
mainMenu <- function(e, ...)UseMethod("mainMenu")
welcome <- function(e, ...)UseMethod("welcome")
housekeeping <- function(e, ...)UseMethod("housekeeping")
inProgressMenu <- function(e, choices, ...)UseMethod("inProgressMenu")
courseMenu <- function(e, courses)UseMethod("courseMenu")
courseDir <... | /R/menu.R | no_license | agidzinski/swirl | R | false | false | 15,020 | r | ## Method declarations
mainMenu <- function(e, ...)UseMethod("mainMenu")
welcome <- function(e, ...)UseMethod("welcome")
housekeeping <- function(e, ...)UseMethod("housekeeping")
inProgressMenu <- function(e, choices, ...)UseMethod("inProgressMenu")
courseMenu <- function(e, courses)UseMethod("courseMenu")
courseDir <... |
#!/usr/bin/Rscript
#Funktiot aineiston yleistä latausta varten
#' Lataa dataframe kustakin aineistoryhmästä
#' Json-tiedoston perusteella ja tarkista, onko tässä ryhmässä
#' ylimääräisiä tai puuttuvia sarakkeita
#'
#' @importFrom jsonlite fromJSON
#' @importFrom dplyr %>% select case_when
#'
#' @export
ProcessJs... | /R/loaderfunctions.R | no_license | hrmJ/phdR | R | false | false | 17,666 | r | #!/usr/bin/Rscript
#Funktiot aineiston yleistä latausta varten
#' Lataa dataframe kustakin aineistoryhmästä
#' Json-tiedoston perusteella ja tarkista, onko tässä ryhmässä
#' ylimääräisiä tai puuttuvia sarakkeita
#'
#' @importFrom jsonlite fromJSON
#' @importFrom dplyr %>% select case_when
#'
#' @export
ProcessJs... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/coercion.r
\name{as.period}
\alias{as.period}
\alias{as.period,Duration-method}
\alias{as.period,Interval-method}
\alias{as.period,Period-method}
\alias{as.period,difftime-method}
\alias{as.period,logical-method}
\alias{as.period,nume... | /man/as.period.Rd | no_license | fieldryand/lubridate | R | false | false | 3,945 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/coercion.r
\name{as.period}
\alias{as.period}
\alias{as.period,Duration-method}
\alias{as.period,Interval-method}
\alias{as.period,Period-method}
\alias{as.period,difftime-method}
\alias{as.period,logical-method}
\alias{as.period,nume... |
# Title : TODO
# Objective : TODO
# Created by: wsz19
# Created on: 3/26/2021
# Title : TODO
# Objective : TODO
# Created by: wsz19
# Created on: 3/10/2021
library(rgeos)
library(sf)
library(sp)
library(raster)
library(rgdal)
library(tidyverse)
library(haven)
library(spatstat)
library(mapt... | /20210312.R | no_license | Dwurian/DATA-310 | R | false | false | 4,164 | r | # Title : TODO
# Objective : TODO
# Created by: wsz19
# Created on: 3/26/2021
# Title : TODO
# Objective : TODO
# Created by: wsz19
# Created on: 3/10/2021
library(rgeos)
library(sf)
library(sp)
library(raster)
library(rgdal)
library(tidyverse)
library(haven)
library(spatstat)
library(mapt... |
\name{show-methods}
\docType{methods}
\alias{show-methods}
\alias{show,ArmaFilter-method}
\alias{show,ArmaModel-method}
\alias{show,ArModel-method}
\alias{show,Autocorrelations-method}
\alias{show,Autocovariances-method}
\alias{show,BJFilter-method}
\alias{show,InterceptSpec-method}
\alias{show,MaModel-method}
\alias{s... | /man/show-methods.Rd | no_license | GeoBosh/sarima | R | false | false | 3,041 | rd | \name{show-methods}
\docType{methods}
\alias{show-methods}
\alias{show,ArmaFilter-method}
\alias{show,ArmaModel-method}
\alias{show,ArModel-method}
\alias{show,Autocorrelations-method}
\alias{show,Autocovariances-method}
\alias{show,BJFilter-method}
\alias{show,InterceptSpec-method}
\alias{show,MaModel-method}
\alias{s... |
\name{simhyd.sim}
\alias{simhyd.sim}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
simhyd.sim(DATA, INSC, COEFF, SQ, SMSC, SUB, CRAK, K, etmult = 0.15, return_state = FAL... | /Rcode/Simhyd/simhydrouting.sim.Rd | permissive | WillemVervoort/VirtExp | R | false | false | 3,823 | rd | \name{simhyd.sim}
\alias{simhyd.sim}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
simhyd.sim(DATA, INSC, COEFF, SQ, SMSC, SUB, CRAK, K, etmult = 0.15, return_state = FAL... |
# #! /bin/Rscript
#### FUNCTIONS
# data reading functions
getDataDelim <- function(pattern, header = T) {
filenames <- read.table("inSAM_script", header = F, stringsAsFactors = F)[,1]
names <- sub(pattern, "", filenames)
names <- sapply(lapply(strsplit(names, "/"), rev), '[', 1)
tables <- list()
count <- 0... | /LRS_postmapping_filter.R | no_license | NeugebauerLab/LRS_Spombe | R | false | false | 1,595 | r |
# #! /bin/Rscript
#### FUNCTIONS
# data reading functions
getDataDelim <- function(pattern, header = T) {
filenames <- read.table("inSAM_script", header = F, stringsAsFactors = F)[,1]
names <- sub(pattern, "", filenames)
names <- sapply(lapply(strsplit(names, "/"), rev), '[', 1)
tables <- list()
count <- 0... |
<?xml version="1.0" encoding="iso-8859-1"?>
<resource schema="titan">
<meta name="title">Abundancy Vertical Profile at Titan with Cassini/CIRS</meta>
<meta name="creationDate">2012-06-05T17:42:00Z</meta>
<meta name="description" format="plain">
</meta>
<meta name="copyright">please put reference to http://ad... | /examples/titan/q.rd.rd | no_license | FlorianTopf/impex-tools | R | false | false | 7,183 | rd | <?xml version="1.0" encoding="iso-8859-1"?>
<resource schema="titan">
<meta name="title">Abundancy Vertical Profile at Titan with Cassini/CIRS</meta>
<meta name="creationDate">2012-06-05T17:42:00Z</meta>
<meta name="description" format="plain">
</meta>
<meta name="copyright">please put reference to http://ad... |
test_that("topic_long_table works", {
expect_equal(
topic_long_table(data.frame(A=rep(1:2, each=4), B=rep(rep(3:4, each=2), 2), C=5:12), topic_cols=2),
structure(
paste(
"\\begin{topiclongtable}{|Fr|Tr|Tr|}",
"",
"",
"\\hline A & B & C \\\\",
"\\hline",
"\... | /tests/testthat/test-topic_long_table.R | no_license | billdenney/TopicLongTableR | R | false | false | 1,652 | r | test_that("topic_long_table works", {
expect_equal(
topic_long_table(data.frame(A=rep(1:2, each=4), B=rep(rep(3:4, each=2), 2), C=5:12), topic_cols=2),
structure(
paste(
"\\begin{topiclongtable}{|Fr|Tr|Tr|}",
"",
"",
"\\hline A & B & C \\\\",
"\\hline",
"\... |
setwd("C:/Estatistica Basica/Estat-stica-B-sica")
library(xlsx)
tabela <- read.xlsx("dados/exercicio5.xls", sheetName = "Plan1")
marcas <- tabela$Marcas
n_pessoas <- tabela$"Nº.pessoas"
color = palette(rainbow(699))
jpeg('graficos/exercicio5_graf1.jpg')
barplot(n_pessoas, names.arg = marcas, xlab = "Marca de antiter... | /codigo/Exercicio5.R | no_license | JVFayad/Estatastica-Basica | R | false | false | 405 | r | setwd("C:/Estatistica Basica/Estat-stica-B-sica")
library(xlsx)
tabela <- read.xlsx("dados/exercicio5.xls", sheetName = "Plan1")
marcas <- tabela$Marcas
n_pessoas <- tabela$"Nº.pessoas"
color = palette(rainbow(699))
jpeg('graficos/exercicio5_graf1.jpg')
barplot(n_pessoas, names.arg = marcas, xlab = "Marca de antiter... |
#' Return full path to the user-specific log dir for this application.
#'
#' Typical user cache directories are:
#'
#' \itemize{
#' \item Mac OS X: \file{~/Library/Logs/<AppName>}
#' \item Unix: \file{~/.cache/<AppName>/log}, or under
#' \\env{$XDG_CACHE_HOME} if defined
#' \item Win XP: \file{C:\\Documents... | /R/log.r | no_license | takewiki/rappdirs | R | false | false | 1,864 | r | #' Return full path to the user-specific log dir for this application.
#'
#' Typical user cache directories are:
#'
#' \itemize{
#' \item Mac OS X: \file{~/Library/Logs/<AppName>}
#' \item Unix: \file{~/.cache/<AppName>/log}, or under
#' \\env{$XDG_CACHE_HOME} if defined
#' \item Win XP: \file{C:\\Documents... |
# pwd <- readline(prompt="Enter DB: ");
# args <- commandArgs()
# print(args)
library(config)
library(Achilles)
setwd("~/Dropbox/tmp/achilles/")
config <- config::get(file="~/Dropbox/db.yaml")
# pwd <- args[4]
connectionDetails <- createConnectionDetails(
dbms=config$dbms,
server=config$server,
user=config... | /thread-etl/R/achilles.R | no_license | terminological/etl-analysis | R | false | false | 1,224 | r | # pwd <- readline(prompt="Enter DB: ");
# args <- commandArgs()
# print(args)
library(config)
library(Achilles)
setwd("~/Dropbox/tmp/achilles/")
config <- config::get(file="~/Dropbox/db.yaml")
# pwd <- args[4]
connectionDetails <- createConnectionDetails(
dbms=config$dbms,
server=config$server,
user=config... |
# Load and assign data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Load ggplot2
library(ggplot2)
# Pulls subset of Baltimore data from full dataset
subset_Baltimore <- NEI[NEI$fips == "24510", ]
# Aggregates data from each year
Yearly_Emissions_by_type_Baltimor... | /Plot3.R | no_license | DamekH/ExData_Emissions_Project | R | false | false | 753 | r | # Load and assign data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Load ggplot2
library(ggplot2)
# Pulls subset of Baltimore data from full dataset
subset_Baltimore <- NEI[NEI$fips == "24510", ]
# Aggregates data from each year
Yearly_Emissions_by_type_Baltimor... |
#include "AEConfig.h"
#include "AE_EffectVers.h"
#include "RotScale_Target.h"
#ifndef AE_OS_WIN
#include "AE_General.r"
#endif
resource 'PiPL' (16000) {
{ /* array properties: 12 elements */
/* [1] */
Kind {
AEEffect
},
/* [2] */
Name {
NAME
},
/* [3] */
Category {
CATEGORY
},
#ifdef AE_OS... | /RotScale/RotScalePiPL.r | permissive | bryful/OpenCVforAE | R | false | false | 922 | r | #include "AEConfig.h"
#include "AE_EffectVers.h"
#include "RotScale_Target.h"
#ifndef AE_OS_WIN
#include "AE_General.r"
#endif
resource 'PiPL' (16000) {
{ /* array properties: 12 elements */
/* [1] */
Kind {
AEEffect
},
/* [2] */
Name {
NAME
},
/* [3] */
Category {
CATEGORY
},
#ifdef AE_OS... |
#Zwei mögliche Datasets:
###Reiseverkehrsdaten 1971-2018. Von Österreich, Schweiz und Spanien.
#path of data set removed due to data safety.
###Produktion, Umsatz und Auftragseingang 1991-2018. Saisonal bereinigt und original Zeitreihe:
... | /scoint_monthly.R | no_license | Karagul/Deutsche-Bundesbank-Internship-2018- | R | false | false | 30,132 | r | #Zwei mögliche Datasets:
###Reiseverkehrsdaten 1971-2018. Von Österreich, Schweiz und Spanien.
#path of data set removed due to data safety.
###Produktion, Umsatz und Auftragseingang 1991-2018. Saisonal bereinigt und original Zeitreihe:
... |
# Find the very-long term equilibrium nf and NPP under standard conditions - by finding the root
solve_VL_FUN_7 <- function(CO2) {
### CO2 is the pre-defined CO2 concentration
### Find unique solution
fn <- function(nf) {
photo_constraint_full(nf, alloc(nf),CO2) - VL_constraint_FUN_7(alloc(nf))... | /QE_Functions/c_cost_of_n/solve_VL_FUN_7.R | no_license | mingkaijiang/QEframework | R | false | false | 637 | r | # Find the very-long term equilibrium nf and NPP under standard conditions - by finding the root
solve_VL_FUN_7 <- function(CO2) {
### CO2 is the pre-defined CO2 concentration
### Find unique solution
fn <- function(nf) {
photo_constraint_full(nf, alloc(nf),CO2) - VL_constraint_FUN_7(alloc(nf))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_trainability.R
\name{set_trainability}
\alias{set_trainability}
\title{Set Trainability of Layers in Model}
\usage{
set_trainability(.model, layer_names = NULL, trainability = FALSE)
}
\arguments{
\item{layer_names}{(character vector) Nam... | /man/set_trainability.Rd | no_license | neuroimaginador/dl4ni | R | false | true | 812 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_trainability.R
\name{set_trainability}
\alias{set_trainability}
\title{Set Trainability of Layers in Model}
\usage{
set_trainability(.model, layer_names = NULL, trainability = FALSE)
}
\arguments{
\item{layer_names}{(character vector) Nam... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... | /meteor/inst/testfiles/ET0_PenmanMonteith/AFL_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1615838570-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 826 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), ra = numeric(0), relh = -1.72131968218895e+83, rs = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.