content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(lifecontingencies)
context("Object Initialization")
test_that("Unequal lengths and population at risk is non-increasing", {
x <- 0:5
lx <- c(100, 75, 50, 51, 12)
expect_error(new("lifetable", x = x, lx = lx))
})
test_that("Increasing x", {
x <- c(0, 2, 1, 3)
lx <- c(100, 50, 75, 25)... | /lifecontingencies/tests/testthat/testObjectInitialization.R | no_license | akhikolla/InformationHouse | R | false | false | 1,552 | r | library(lifecontingencies)
context("Object Initialization")
test_that("Unequal lengths and population at risk is non-increasing", {
x <- 0:5
lx <- c(100, 75, 50, 51, 12)
expect_error(new("lifetable", x = x, lx = lx))
})
test_that("Increasing x", {
x <- c(0, 2, 1, 3)
lx <- c(100, 50, 75, 25)... |
\name{add.response}
\alias{add.response}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Function to add response values to an experimental design}
\description{
This function allows to add numeric response variables to an experimental plan of
class design. The responses are added both to ... | /man/add.response.Rd | no_license | cran/DoE.base | R | false | false | 5,990 | rd | \name{add.response}
\alias{add.response}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Function to add response values to an experimental design}
\description{
This function allows to add numeric response variables to an experimental plan of
class design. The responses are added both to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db_download.R
\name{db_download}
\alias{db_download}
\alias{db_download_ncbi}
\alias{db_download_itis}
\alias{db_download_tpl}
\alias{db_download_col}
\alias{db_download_gbif}
\title{Download taxonomic databases}
\usage{
db_download_ncbi(verb... | /man/db_download.Rd | permissive | aseetharam/taxizedb | R | false | true | 1,455 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db_download.R
\name{db_download}
\alias{db_download}
\alias{db_download_ncbi}
\alias{db_download_itis}
\alias{db_download_tpl}
\alias{db_download_col}
\alias{db_download_gbif}
\title{Download taxonomic databases}
\usage{
db_download_ncbi(verb... |
library(parallel)
simRep <- 20000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
b.var <- c(0.0529) # The set of varaince of random covariates b as random slope
smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1
cores <- 1
r.sim <- b... | /full simulation/summer/hetero_power/extension/2020/heter_power_0.0529_pca_u_seed1_20_20.R | no_license | wma9/FMRI-project | R | false | false | 9,187 | r | library(parallel)
simRep <- 20000 # Replication times in one simulation
pvalue.true <- .05 # Testing type I error
b.var <- c(0.0529) # The set of varaince of random covariates b as random slope
smooth <- 0 # measurement error is added to M if smooth = 0; no measurement error is added if sooth = 1
cores <- 1
r.sim <- b... |
library(QuantPsyc)
### Name: plotNorm
### Title: Normal Density Plot
### Aliases: plotNormX plotNormXm
### Keywords: distribution smooth
### ** Examples
# plot.normX
data(USJudgeRatings) # data packaged with R
plotNormX(USJudgeRatings$CONT)
# creates a pdf file that contains plots for all 12 variables in USJudge... | /data/genthat_extracted_code/QuantPsyc/examples/plotNormX.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 463 | r | library(QuantPsyc)
### Name: plotNorm
### Title: Normal Density Plot
### Aliases: plotNormX plotNormXm
### Keywords: distribution smooth
### ** Examples
# plot.normX
data(USJudgeRatings) # data packaged with R
plotNormX(USJudgeRatings$CONT)
# creates a pdf file that contains plots for all 12 variables in USJudge... |
\name{EWHP}
\alias{EWHP}
\alias{ewhp}
\docType{data}
\title{House price data set (DataFrame) in England and Wales}
\description{
A house price data set over the England and Wales with 9 hedonic variables from 1999.
}
\usage{data(EWHP)}
\format{
A data frame with 519 observations on the following 12 variables.
\descr... | /man/EWHP.Rd | no_license | DCAL12/GWmodel2 | R | false | false | 1,866 | rd | \name{EWHP}
\alias{EWHP}
\alias{ewhp}
\docType{data}
\title{House price data set (DataFrame) in England and Wales}
\description{
A house price data set over the England and Wales with 9 hedonic variables from 1999.
}
\usage{data(EWHP)}
\format{
A data frame with 519 observations on the following 12 variables.
\descr... |
\name{Illumina.Human.WG6.v2}
\alias{Illumina.Human.WG6.v2}
\docType{data}
\title{
Illumina Human WG6 v2 ChrY probes
}
\description{
Y chromosome probes from the Illumina Human WG6 v2 array. The probes in this dataset mapped to the Y chromosome of Ensembl reference genome GRCh37.p11.
}
\format{
A data frame with 100 ... | /man/Illumina.Human.WG6.v2.Rd | no_license | cran/MASSI | R | false | false | 2,553 | rd | \name{Illumina.Human.WG6.v2}
\alias{Illumina.Human.WG6.v2}
\docType{data}
\title{
Illumina Human WG6 v2 ChrY probes
}
\description{
Y chromosome probes from the Illumina Human WG6 v2 array. The probes in this dataset mapped to the Y chromosome of Ensembl reference genome GRCh37.p11.
}
\format{
A data frame with 100 ... |
library(samr)
library(data.table)
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/CAF20.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/EAP1.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/eIF4E.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/eIF4G1.csv... | /AD.normalisation/RBP_SAM.R | no_license | Krutik6/MSci_KrutikPatel_16-17 | R | false | false | 1,794 | r | library(samr)
library(data.table)
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/CAF20.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/EAP1.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/eIF4E.csv", row.names = 1) -> X
#read.csv("~/DISK2/AD/Data/RBPs/AD_norm_data/eIF4G1.csv... |
library(shiny)
shinyUI(fluidPage(
titlePanel("Wine Quality Regression Analysis"),
sidebarLayout(
sidebarPanel(
helpText(
h2("App Documentation"),
p('This Shiny app aims to demonstrate simple linear regression analysis of data from Wine Quality Data Set taken from http://archive.ics.uci.ed... | /data_Product_APP/ui.R | permissive | macchiatoism/coursera_data_product_project | R | false | false | 1,605 | r | library(shiny)
shinyUI(fluidPage(
titlePanel("Wine Quality Regression Analysis"),
sidebarLayout(
sidebarPanel(
helpText(
h2("App Documentation"),
p('This Shiny app aims to demonstrate simple linear regression analysis of data from Wine Quality Data Set taken from http://archive.ics.uci.ed... |
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
require(ape)
require(seqinr)
alig = read.dna(file=args[1],format="fasta")
d = dist.dna(alig)
alig = read.alignment(file=args[1],format="fasta")
dnds = kaks(alig)
cat(paste(labels(d)[1],round(d[1],digits = 4)),labels(d)[2] , dnds$ka, dnds$ks, dnds$ka/dnds$k... | /calcdist.R | no_license | loire/Moubata_paper | R | false | false | 352 | r | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
require(ape)
require(seqinr)
alig = read.dna(file=args[1],format="fasta")
d = dist.dna(alig)
alig = read.alignment(file=args[1],format="fasta")
dnds = kaks(alig)
cat(paste(labels(d)[1],round(d[1],digits = 4)),labels(d)[2] , dnds$ka, dnds$ks, dnds$ka/dnds$k... |
library(RgoogleMaps)
#
maplocation <- read.xlsx("map-location.xlsx", sheet = 1)
#
my.lat <- maplocation$'纬度'
my.lon <- maplocation$'经度'
#找邊界
bb = qbbox(my.lat, my.lon)
print(bb)
MyMap <- GetMap.bbox(bb$lonR, bb$latR, maptype = "roadmap")
My.markers <- cbind.data.frame(lat = my.lat, lon = my.lon)
tmp <- PlotOnStaticMap(... | /top10location.R | no_license | sunnyorsunny/WaveNetProject | R | false | false | 454 | r | library(RgoogleMaps)
#
maplocation <- read.xlsx("map-location.xlsx", sheet = 1)
#
my.lat <- maplocation$'纬度'
my.lon <- maplocation$'经度'
#找邊界
bb = qbbox(my.lat, my.lon)
print(bb)
MyMap <- GetMap.bbox(bb$lonR, bb$latR, maptype = "roadmap")
My.markers <- cbind.data.frame(lat = my.lat, lon = my.lon)
tmp <- PlotOnStaticMap(... |
library(magrittr)
library(shiny.semantic)
config <- config::get()
ships_data_manager <- ShipsDataManager$new(data.table::fread(config$dataset))
ui <- semanticPage(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "css/styles.css")
),
shiny.semantic::grid(
create_grid_template(),
ma... | /app.R | permissive | szymanskir/ShipsExplorer | R | false | false | 1,116 | r | library(magrittr)
library(shiny.semantic)
config <- config::get()
ships_data_manager <- ShipsDataManager$new(data.table::fread(config$dataset))
ui <- semanticPage(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "css/styles.css")
),
shiny.semantic::grid(
create_grid_template(),
ma... |
############################################################################################
# This script is a revision of convert_csv_to_linkage.R, to convert a .csv file in chi
# square root table format into a .linkage file. The difference between this and
# convert_csv_to_linkage.R is that the input .csv is orie... | /LepMAP/convert_csv_to_linkage-alreadyHorizontal.R | no_license | benranco/docs | R | false | false | 5,096 | r | ############################################################################################
# This script is a revision of convert_csv_to_linkage.R, to convert a .csv file in chi
# square root table format into a .linkage file. The difference between this and
# convert_csv_to_linkage.R is that the input .csv is orie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inspre.R
\name{make_weights}
\alias{make_weights}
\title{Helper function to make weights for inspre.}
\usage{
make_weights(SE, max_med_ratio = NULL)
}
\arguments{
\item{SE}{DxD matrix of standard errors.}
\item{max_med_ratio}{Float > 1. Rati... | /man/make_weights.Rd | permissive | brielin/inspre | R | false | true | 483 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inspre.R
\name{make_weights}
\alias{make_weights}
\title{Helper function to make weights for inspre.}
\usage{
make_weights(SE, max_med_ratio = NULL)
}
\arguments{
\item{SE}{DxD matrix of standard errors.}
\item{max_med_ratio}{Float > 1. Rati... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manage.R
\name{get_contents}
\alias{get_contents}
\title{Get the contents of a simulator directory}
\usage{
get_contents(dir = ".", out_loc = "out")
}
\arguments{
\item{dir}{name of the directory where directory named "files" exists}
\item{o... | /man/get_contents.Rd | no_license | zdk123/simulator | R | false | true | 638 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manage.R
\name{get_contents}
\alias{get_contents}
\title{Get the contents of a simulator directory}
\usage{
get_contents(dir = ".", out_loc = "out")
}
\arguments{
\item{dir}{name of the directory where directory named "files" exists}
\item{o... |
library(jsonlite)
setJSONMessageToFlatten <- function(message){
jsonMessage <<- message
}
getFlatJSON <- function(){
df <- data.frame(matrix(unlist(jsonMessage), nrow=1, byrow=T),stringsAsFactors=FALSE)
#colnames(df) <- c("code","msg","credits","remaining_credits","model","score_tag","agreement","subjectivity",
... | /src/json-flattener.R | no_license | Elhios1982/mdc.sa | R | false | false | 1,807 | r | library(jsonlite)
setJSONMessageToFlatten <- function(message){
jsonMessage <<- message
}
getFlatJSON <- function(){
df <- data.frame(matrix(unlist(jsonMessage), nrow=1, byrow=T),stringsAsFactors=FALSE)
#colnames(df) <- c("code","msg","credits","remaining_credits","model","score_tag","agreement","subjectivity",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ComputeShpilkinMethod.R,
% R/ComputeShpilkinMethod2.R
\name{ComputeShpilkinMethod}
\alias{ComputeShpilkinMethod}
\title{Shpilkin's Method}
\usage{
ComputeShpilkinMethod(data, Candidates, CandidatesText = NULL, MainCandidate, TotalReg, Total... | /man/ComputeShpilkinMethod.Rd | no_license | rdavis27/EFToolkit | R | false | true | 4,492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ComputeShpilkinMethod.R,
% R/ComputeShpilkinMethod2.R
\name{ComputeShpilkinMethod}
\alias{ComputeShpilkinMethod}
\title{Shpilkin's Method}
\usage{
ComputeShpilkinMethod(data, Candidates, CandidatesText = NULL, MainCandidate, TotalReg, Total... |
library(stats)
library(float, quietly=TRUE)
library(rbenchmark)
set.seed(1234)
reps = 5
cols <- c("test", "replications", "elapsed", "relative")
m = 7500
n = 500
x = matrix(rnorm(m*n), m, n)
s = fl(x)
cov_spm = function(x)
{
s = scale(x, TRUE, FALSE)
crossprod(s) / max(1L, nrow(x)-1)
}
cor_spm = function(x)
{
... | /inst/benchmarks/cov.r | permissive | wrathematics/float | R | false | false | 592 | r | library(stats)
library(float, quietly=TRUE)
library(rbenchmark)
set.seed(1234)
reps = 5
cols <- c("test", "replications", "elapsed", "relative")
m = 7500
n = 500
x = matrix(rnorm(m*n), m, n)
s = fl(x)
cov_spm = function(x)
{
s = scale(x, TRUE, FALSE)
crossprod(s) / max(1L, nrow(x)-1)
}
cor_spm = function(x)
{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VegXSurfaceTypeDefinition.R
\docType{class}
\name{VegXSurfaceTypeDefinition-class}
\alias{VegXSurfaceTypeDefinition-class}
\title{S4 class for Veg-X surface type definition}
\description{
S4 class for Veg-X surface type definition
}
\section{... | /man/VegXSurfaceTypeDefinition-class.Rd | no_license | Heterocephalus/VegX | R | false | true | 535 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/VegXSurfaceTypeDefinition.R
\docType{class}
\name{VegXSurfaceTypeDefinition-class}
\alias{VegXSurfaceTypeDefinition-class}
\title{S4 class for Veg-X surface type definition}
\description{
S4 class for Veg-X surface type definition
}
\section{... |
dir <- "/home/wayne/Documents/Code/R/specdata/"
id <- 332:1
format <- function(x) {
if (nchar(x) == 1){
return (paste("00",x,sep=""))
}
if (nchar(x) == 2) {
return (paste("0",x,sep=""))
}
if (nchar(x) == 3) {
return (paste("",x,sep=""))
}
}
col1 <- character()
col2 <- numeric(... | /specdata/prob2draft.R | no_license | datafyre/RCode | R | false | false | 976 | r |
dir <- "/home/wayne/Documents/Code/R/specdata/"
id <- 332:1
format <- function(x) {
if (nchar(x) == 1){
return (paste("00",x,sep=""))
}
if (nchar(x) == 2) {
return (paste("0",x,sep=""))
}
if (nchar(x) == 3) {
return (paste("",x,sep=""))
}
}
col1 <- character()
col2 <- numeric(... |
## Two functions coded below are used to create a special "matrix" object
## compute the inverse of the same and cache its inverse.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
ge... | /cachematrix.R | no_license | arindam671/ProgrammingAssignment2 | R | false | false | 981 | r | ## Two functions coded below are used to create a special "matrix" object
## compute the inverse of the same and cache its inverse.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
ge... |
install.packages("dplyr")
install.packages("stringr")
install.packages("data.table")
install.packages("pracma")
#Only run code above when running the code for the first time
#and you have not used any of the packages above before.
#After running install.packages code ONCE, run from here until the
#co... | /dedup_lyme.R | no_license | AJCervantes/Deduplication | R | false | false | 728 | r | install.packages("dplyr")
install.packages("stringr")
install.packages("data.table")
install.packages("pracma")
#Only run code above when running the code for the first time
#and you have not used any of the packages above before.
#After running install.packages code ONCE, run from here until the
#co... |
\name{ADDT-package}
\alias{ADDT-package}
\alias{ADDT}
\docType{package}
\title{
Accelerated Destructive Degradation Testing
}
\description{
Accelerated destructive degradation tests (ADDT) are often used to collect necessary data for assessing the long-term properties of polymeric materials. Based on the collected data... | /man/ADDT-package.Rd | no_license | cran/ADDT | R | false | false | 2,893 | rd | \name{ADDT-package}
\alias{ADDT-package}
\alias{ADDT}
\docType{package}
\title{
Accelerated Destructive Degradation Testing
}
\description{
Accelerated destructive degradation tests (ADDT) are often used to collect necessary data for assessing the long-term properties of polymeric materials. Based on the collected data... |
% file sn/man/dp2cp.Rd
% This file is a component of the package 'sn' for R
% copyright (C) 2013 Adelchi Azzalini
%---------------------
\name{dp2cp}
\alias{dp2cp}
\alias{cp2dp}
\alias{dp2op}
\alias{op2dp}
\title{Conversion between parametrizations of a skew-elliptical distribution}
\description{
Convert direct... | /man/dp2cp.Rd | no_license | Yuqi12222/sn | R | false | false | 7,593 | rd | % file sn/man/dp2cp.Rd
% This file is a component of the package 'sn' for R
% copyright (C) 2013 Adelchi Azzalini
%---------------------
\name{dp2cp}
\alias{dp2cp}
\alias{cp2dp}
\alias{dp2op}
\alias{op2dp}
\title{Conversion between parametrizations of a skew-elliptical distribution}
\description{
Convert direct... |
#Question 11
colnames(airquality)
#Q12
airquality[c(1,2),]
#Q13
nrow(airquality)
#Q14
airquality[c(152,153),] #from the answer to Q13, which was 153
airquality[c((nrow(airquality)-1),nrow(airquality)),]
#Q15
airquality[47,1]
airquality[47,"Ozone"]
airquality$Ozone[47]
#Q16
#number_... | /Week1Coursera.R | permissive | liliaevgeniou/Coursera-R-Programming | R | false | false | 1,445 | r | #Question 11
colnames(airquality)
#Q12
airquality[c(1,2),]
#Q13
nrow(airquality)
#Q14
airquality[c(152,153),] #from the answer to Q13, which was 153
airquality[c((nrow(airquality)-1),nrow(airquality)),]
#Q15
airquality[47,1]
airquality[47,"Ozone"]
airquality$Ozone[47]
#Q16
#number_... |
corr <- function(directory, threshold = 0) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'threshold' is a numeric vector of length 1 indicating the
## number of completely observed observations (on all
## variables) required to compute the cor... | /r_programming/ProgrammingAssignment1/corr.R | permissive | popotam/datasciencecoursera | R | false | false | 834 | r | corr <- function(directory, threshold = 0) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'threshold' is a numeric vector of length 1 indicating the
## number of completely observed observations (on all
## variables) required to compute the cor... |
## Runs Test
## Simon Dedman 28/8/2018
## https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test
## https://www.itl.nist.gov/div898/handbook/eda/section3/eda35d.htm
##
install.packages("tseries")
library(tseries)
setwd("C:/Users/simon/Dropbox/Farallon Institute/Data & Analysis/Biological/Anchovy & Sardi... | /R/RunsTest.R | no_license | SimonDedman/FarallonInstitute | R | false | false | 1,004 | r | ## Runs Test
## Simon Dedman 28/8/2018
## https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test
## https://www.itl.nist.gov/div898/handbook/eda/section3/eda35d.htm
##
install.packages("tseries")
library(tseries)
setwd("C:/Users/simon/Dropbox/Farallon Institute/Data & Analysis/Biological/Anchovy & Sardi... |
#' Create Rstudio project library
#'
#' Creates project library directory \code{lib} inside specified \code{path}.
#'
#' If there is no .Rproj file inside specified \code{path} then error will be
#' thown.
#'
#' If there is no .Rprofile file inside \code{path} then it will be created there
#' and activation command for... | /R/library.R | permissive | Bijection1to1/prolibr | R | false | false | 1,912 | r | #' Create Rstudio project library
#'
#' Creates project library directory \code{lib} inside specified \code{path}.
#'
#' If there is no .Rproj file inside specified \code{path} then error will be
#' thown.
#'
#' If there is no .Rprofile file inside \code{path} then it will be created there
#' and activation command for... |
mixNB.Sim <- function(nbT,weight,mean,variance,seed=2019)
{
if(FALSE){
nbT=1000
weight=c(0.2,0.6,0.2)
mean=c(100,200,300)
variance=rep(1000,3)
seed=2019
sim=mixNB.Sim(nbT,weight,mean,variance,seed)
sim
x=sim$x
print(sim,"Y")
hist(sim)
plot(sim)
}
if(!is... | /R/Integrate/mixNB.Sim.R | no_license | Hankrise/classNB | R | false | false | 1,300 | r | mixNB.Sim <- function(nbT,weight,mean,variance,seed=2019)
{
if(FALSE){
nbT=1000
weight=c(0.2,0.6,0.2)
mean=c(100,200,300)
variance=rep(1000,3)
seed=2019
sim=mixNB.Sim(nbT,weight,mean,variance,seed)
sim
x=sim$x
print(sim,"Y")
hist(sim)
plot(sim)
}
if(!is... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Submissions.R
\name{submit_current}
\alias{submit_current}
\title{Submit the currently chosen exercise to the TMC server}
\usage{
submit_current(path, credentials)
}
\arguments{
\item{path}{Path to the currently chosen directory.}
\item{cred... | /tmcrstudioaddin/man/submit_current.Rd | no_license | testmycode/tmc-rstudio | R | false | true | 1,120 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Submissions.R
\name{submit_current}
\alias{submit_current}
\title{Submit the currently chosen exercise to the TMC server}
\usage{
submit_current(path, credentials)
}
\arguments{
\item{path}{Path to the currently chosen directory.}
\item{cred... |
# Get station meta data from RCC ACIS
# MAC 11/18/19
# to do: figure out way to gauge missing days?, station types/threadex stations
# load libraries
library(RCurl)
library(jsonlite)
# get valid date ranges
jsonQuery='{"state":"NM","meta":"sids,name,valid_daterange,ll","elems":"pcpn"}'
out<-postForm("http://data.rcc... | /stationPlots/getStations.R | no_license | mcrimmins/ClimPlot | R | false | false | 1,578 | r | # Get station meta data from RCC ACIS
# MAC 11/18/19
# to do: figure out way to gauge missing days?, station types/threadex stations
# load libraries
library(RCurl)
library(jsonlite)
# get valid date ranges
jsonQuery='{"state":"NM","meta":"sids,name,valid_daterange,ll","elems":"pcpn"}'
out<-postForm("http://data.rcc... |
#IMPORT LIBRARIES
library(tidyverse)
library(ggplot2)
library(mice)
library(caTools)
library(scales)
library(caret)
#IMPORT DATASETS
training_set = read.csv("train.csv")
test_set = read.csv("test.csv")
PassengerId = test_set$PassengerId
#PRE-PROCESSING
#Data Cleaning and manipulation
training_set = training_set %>%
... | /titanic_final.R | no_license | santoshselvarajr/Titanic_Survival_Analysis | R | false | false | 8,674 | r | #IMPORT LIBRARIES
library(tidyverse)
library(ggplot2)
library(mice)
library(caTools)
library(scales)
library(caret)
#IMPORT DATASETS
training_set = read.csv("train.csv")
test_set = read.csv("test.csv")
PassengerId = test_set$PassengerId
#PRE-PROCESSING
#Data Cleaning and manipulation
training_set = training_set %>%
... |
###################################################
# read data from Japanese Human Mortality Database
###################################################
read.jpn_death <- function(region, label = region)
{
path <- paste("http://www.ipss.go.jp/p-toukei/JMD/", region, "/STATS/", "Deaths_1x1.txt", sep = "")... | /1_Preparation of mortality data.R | no_license | hanshang/Taylor_law | R | false | false | 31,316 | r | ###################################################
# read data from Japanese Human Mortality Database
###################################################
read.jpn_death <- function(region, label = region)
{
path <- paste("http://www.ipss.go.jp/p-toukei/JMD/", region, "/STATS/", "Deaths_1x1.txt", sep = "")... |
## Loop through all attached directories looking for
## regular expression pattern.
objip <-
function(pattern, where = search(), all.names=FALSE, mode="any", class, ## , sorted=TRUE (requires R-3.2.0)a
ls.function=if (mode != "any" || !missing(class)) "ls.str" else "ls")
{
ls.function <- match.... | /R/objip.R | no_license | cran/HH | R | false | false | 1,162 | r | ## Loop through all attached directories looking for
## regular expression pattern.
objip <-
function(pattern, where = search(), all.names=FALSE, mode="any", class, ## , sorted=TRUE (requires R-3.2.0)a
ls.function=if (mode != "any" || !missing(class)) "ls.str" else "ls")
{
ls.function <- match.... |
#' @importFrom utils packageDescription
.onAttach <- function(libname = find.package("ipmr"), pkgname = "ipmr") {
packageStartupMessage(
"Welcome to `ipmr`! `browseVignettes('ipmr')` to get started."
)
}
| /R/on_load_on_attach.R | permissive | padrinoDB/ipmr | R | false | false | 221 | r | #' @importFrom utils packageDescription
.onAttach <- function(libname = find.package("ipmr"), pkgname = "ipmr") {
packageStartupMessage(
"Welcome to `ipmr`! `browseVignettes('ipmr')` to get started."
)
}
|
context("Fitting and plotting explanations")
set.seed(1)
X <- tibble::as_tibble(MASS::mvrnorm(50, rep(0, 10), diag(1, 10)))
local <- live::sample_locally(data = X,
explained_instance = X[3, ],
explained_var = "V1",
size = 50)
loc... | /tests/testthat/test_explaining.R | no_license | GapData/live | R | false | false | 791 | r | context("Fitting and plotting explanations")
set.seed(1)
X <- tibble::as_tibble(MASS::mvrnorm(50, rep(0, 10), diag(1, 10)))
local <- live::sample_locally(data = X,
explained_instance = X[3, ],
explained_var = "V1",
size = 50)
loc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neptune_operations.R
\name{neptune_copy_db_cluster_parameter_group}
\alias{neptune_copy_db_cluster_parameter_group}
\title{Copies the specified DB cluster parameter group}
\usage{
neptune_copy_db_cluster_parameter_group(
SourceDBClusterPara... | /cran/paws.database/man/neptune_copy_db_cluster_parameter_group.Rd | permissive | TWarczak/paws | R | false | true | 2,524 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neptune_operations.R
\name{neptune_copy_db_cluster_parameter_group}
\alias{neptune_copy_db_cluster_parameter_group}
\title{Copies the specified DB cluster parameter group}
\usage{
neptune_copy_db_cluster_parameter_group(
SourceDBClusterPara... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lap.R
\name{LAPJV}
\alias{LAPJV}
\title{Solve linear assignment problem using LAPJV}
\usage{
LAPJV(x)
}
\arguments{
\item{x}{Square matrix of costs.}
}
\value{
A list with two entries: \code{score}, the score of the optimal matchi... | /fuzzedpackages/TreeDist/man/LAPJV.Rd | no_license | akhikolla/testpackages | R | false | true | 2,413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lap.R
\name{LAPJV}
\alias{LAPJV}
\title{Solve linear assignment problem using LAPJV}
\usage{
LAPJV(x)
}
\arguments{
\item{x}{Square matrix of costs.}
}
\value{
A list with two entries: \code{score}, the score of the optimal matchi... |
# measures defined in Ren et al. 2008
# with equidistant grid
integrate_fun <- function(X,
n = nrow(X),
nxgrid = ncol(X),
xind = matrix(as.vector(1:ncol(X)),
nrow=nrow(X),
... | /code/measures_johnson.R | no_license | bernard-liew/2020_lowbackpain_ucm_lifting | R | false | false | 2,518 | r | # measures defined in Ren et al. 2008
# with equidistant grid
integrate_fun <- function(X,
n = nrow(X),
nxgrid = ncol(X),
xind = matrix(as.vector(1:ncol(X)),
nrow=nrow(X),
... |
######draw heatmap of MCPcounter 10 cell types
######
load("8.KIRC/3.immune.sets.kirc/mcpCounter/socre.Mcpcounter.kirc.RData")
mcpscore.kirc=as.data.frame(t(score.mcp.kirc))
mcpscore.kirc=as.data.frame(scale(mcpscore.kirc))
head(mcpscore.kirc)
#ids=intersect(rownames(kaps.td), rownames(mcpscore))
ht.mcpscore.kirc=cbi... | /8.KIRC/3.immune.sets.kirc/mcpCounter/ht.cell.type.MCPcounter.kirc.R | no_license | saisaitian/immune.overdrive | R | false | false | 3,494 | r | ######draw heatmap of MCPcounter 10 cell types
######
load("8.KIRC/3.immune.sets.kirc/mcpCounter/socre.Mcpcounter.kirc.RData")
mcpscore.kirc=as.data.frame(t(score.mcp.kirc))
mcpscore.kirc=as.data.frame(scale(mcpscore.kirc))
head(mcpscore.kirc)
#ids=intersect(rownames(kaps.td), rownames(mcpscore))
ht.mcpscore.kirc=cbi... |
# DB-Lytix Example.
Renv <- new.env(parent = globalenv())
FLenv <- as.FL(Renv)
Renv$tbl <- iris
Renv$tbl$Species <- as.numeric(Renv$tbl$Species)
FLenv$tbl <- as.FLTable(Renv$tbl,tableName = getOption("TestTempTableName"),
temporary=F, drop = TRUE)
#'
#' fliris <- as.FL(rtbl)
#' flirispca <- prcomp(Species~., dat... | /tests/next/test_FLPCA.R | no_license | phani-srikar/AdapteR | R | false | false | 647 | r | # DB-Lytix Example.
Renv <- new.env(parent = globalenv())
FLenv <- as.FL(Renv)
Renv$tbl <- iris
Renv$tbl$Species <- as.numeric(Renv$tbl$Species)
FLenv$tbl <- as.FLTable(Renv$tbl,tableName = getOption("TestTempTableName"),
temporary=F, drop = TRUE)
#'
#' fliris <- as.FL(rtbl)
#' flirispca <- prcomp(Species~., dat... |
# the following needs to be repeated 100 times
run_function_multiple <- function(resolution=c(10,10),
model_type = c("unstructured", "structured", "joint", "unstructuredcov", "jointcov", "jointtwo"),
plotting = FALSE, summary_results = FALSE,
nsamp = NULL, seed = NULL, dim = NULL, lambda = NULL, env.beta... | /run_function_multiple.R | no_license | NERC-CEH/IOFFsimwork | R | false | false | 6,461 | r | # the following needs to be repeated 100 times
run_function_multiple <- function(resolution=c(10,10),
model_type = c("unstructured", "structured", "joint", "unstructuredcov", "jointcov", "jointtwo"),
plotting = FALSE, summary_results = FALSE,
nsamp = NULL, seed = NULL, dim = NULL, lambda = NULL, env.beta... |
% File rmongodb/man/mongo.shorthand.Rd
\name{mongo.shorthand}
\alias{mongo.shorthand}
\title{Define shorthand for BSON and GridFS}
\description{
Define shorthand names for BSON and GridFS functions and constants.
All symbols dealing with BSON and GridFS are defined by this function excluding the "mongo." prefix.
The... | /rstuff/rmongodb/rmongodb/man/mongo.shorthand.Rd | permissive | BigBlueBox/GoodAndBad | R | false | false | 833 | rd | % File rmongodb/man/mongo.shorthand.Rd
\name{mongo.shorthand}
\alias{mongo.shorthand}
\title{Define shorthand for BSON and GridFS}
\description{
Define shorthand names for BSON and GridFS functions and constants.
All symbols dealing with BSON and GridFS are defined by this function excluding the "mongo." prefix.
The... |
/ShinyBeginnings/data/helpers.R | no_license | Angnar1997/ShinyPath | R | false | false | 1,420 | r | ||
tabPanel('Box Plot', value = 'tab_box_plot_1',
fluidPage(
fluidRow(
column(12, align = 'left',
h4('Box Plot - I')
)
),
hr(),
fluidRow(
column(12,
tabsetPanel(type = 'tabs',
tabPanel('plotly',
fluidRow(
column(2,
selectInput('boxly1_select_... | /inst/app-visualize/ui/ui_box_plot_1.R | no_license | cran/xplorerr | R | false | false | 2,658 | r | tabPanel('Box Plot', value = 'tab_box_plot_1',
fluidPage(
fluidRow(
column(12, align = 'left',
h4('Box Plot - I')
)
),
hr(),
fluidRow(
column(12,
tabsetPanel(type = 'tabs',
tabPanel('plotly',
fluidRow(
column(2,
selectInput('boxly1_select_... |
#=============================================================
# Load required packages
#=============================================================
require(h2oEnsemble)
require(ggplot2)
require(h2o)
#=============================================================
# Init H2O (connect to a running H2O cluster)
#=======... | /Stacking_H2O.R | no_license | rajkstats/h2o_examples | R | false | false | 7,414 | r | #=============================================================
# Load required packages
#=============================================================
require(h2oEnsemble)
require(ggplot2)
require(h2o)
#=============================================================
# Init H2O (connect to a running H2O cluster)
#=======... |
library("sp")
library('methods')
#library("dplyr")
#library(rSOILWAT2)
#These are the functions I need:
# if (!exists("vwcmatric.dy")) vwcmatric.dy <- get_Response_aggL(swof["sw_vwcmatric"], tscale = "dy",
# scaler = 1, FUN = stats::weighted.mean, weights... | /For_Sense/Ex_SWABall_Summer.R | no_license | bobshriver/Exposure_scripts | R | false | false | 4,492 | r | library("sp")
library('methods')
#library("dplyr")
#library(rSOILWAT2)
#These are the functions I need:
# if (!exists("vwcmatric.dy")) vwcmatric.dy <- get_Response_aggL(swof["sw_vwcmatric"], tscale = "dy",
# scaler = 1, FUN = stats::weighted.mean, weights... |
##Set working directory
if(!file.exists('Project 1')) {
dir.create('Project 1')
}
setwd('.\\Project 1')
## Download data
datafile<-'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(datafile, destfile = 'household_power_consumption.txt')
rm(datafile)
## Import da... | /plot2.R | no_license | diesteffi/Exploratorive_Data_1 | R | false | false | 1,043 | r | ##Set working directory
if(!file.exists('Project 1')) {
dir.create('Project 1')
}
setwd('.\\Project 1')
## Download data
datafile<-'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(datafile, destfile = 'household_power_consumption.txt')
rm(datafile)
## Import da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotsitewise_operations.R
\name{iotsitewise_list_asset_relationships}
\alias{iotsitewise_list_asset_relationships}
\title{Retrieves a paginated list of asset relationships for an asset}
\usage{
iotsitewise_list_asset_relationships(assetId, tra... | /paws/man/iotsitewise_list_asset_relationships.Rd | permissive | sanchezvivi/paws | R | false | true | 1,361 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotsitewise_operations.R
\name{iotsitewise_list_asset_relationships}
\alias{iotsitewise_list_asset_relationships}
\title{Retrieves a paginated list of asset relationships for an asset}
\usage{
iotsitewise_list_asset_relationships(assetId, tra... |
#' Linear Discriminant Analysis using the Schafer-Strimmer Covariance Matrix
#' Estimator
#'
#' Given a set of training data, this function builds the Linear Discriminant
#' Analysis (LDA) classifier, where the distributions of each class are assumed
#' to be multivariate normal and share a common covariance matrix. Wh... | /R/lda-schafer.r | no_license | elephann/sparsediscrim | R | false | false | 7,428 | r | #' Linear Discriminant Analysis using the Schafer-Strimmer Covariance Matrix
#' Estimator
#'
#' Given a set of training data, this function builds the Linear Discriminant
#' Analysis (LDA) classifier, where the distributions of each class are assumed
#' to be multivariate normal and share a common covariance matrix. Wh... |
\name{GomezTenureStatus}
\alias{GomezTenureStatus}
\docType{data}
\title{GomezTenureStatus}
\description{GomezTenureStatus}
\usage{data(GomezTenureStatus)}
\format{
A data frame with 187 observations on the following 2 variables.
\describe{
\item{\code{TenureStatus}}{a factor with levels \code{fixed-rent} \code... | /R Package Creation/STAR/man/GomezTenureStatus.Rd | no_license | djnpisano/RScriptLibrary | R | false | false | 459 | rd | \name{GomezTenureStatus}
\alias{GomezTenureStatus}
\docType{data}
\title{GomezTenureStatus}
\description{GomezTenureStatus}
\usage{data(GomezTenureStatus)}
\format{
A data frame with 187 observations on the following 2 variables.
\describe{
\item{\code{TenureStatus}}{a factor with levels \code{fixed-rent} \code... |
###### Read in libraries ######
library(jsonlite)
###### Specify study IDs ######
studies <- c(6000000010, 6000000034)
###### Download, reformat, and save JSON file for each study ######
base_url <- Sys.getenv("BASEURL")
if(is.null(base_url)){
base_url <- "https://terraref.org"
}
study_base_url <- paste0(base_url,... | /download_studies.R | no_license | frostbytten/ardn-terra-ref | R | false | false | 699 | r | ###### Read in libraries ######
library(jsonlite)
###### Specify study IDs ######
studies <- c(6000000010, 6000000034)
###### Download, reformat, and save JSON file for each study ######
base_url <- Sys.getenv("BASEURL")
if(is.null(base_url)){
base_url <- "https://terraref.org"
}
study_base_url <- paste0(base_url,... |
## Course Project 1
## Plot 4
# Showing the weekdays in English, otherwise it will be in Dutch...
Sys.setlocale("LC_TIME", "English")
# Load the data
hpc <- read.table("./household_power_consumption.txt", sep=";", header=T, na.strings="?")
hpc$Date <- as.Date(hpc$Date,format="%d/%m/%Y")
# Getting the subset we need:... | /plot4.R | no_license | ErnaOudman/ExData_Plotting1 | R | false | false | 1,377 | r | ## Course Project 1
## Plot 4
# Showing the weekdays in English, otherwise it will be in Dutch...
Sys.setlocale("LC_TIME", "English")
# Load the data
hpc <- read.table("./household_power_consumption.txt", sep=";", header=T, na.strings="?")
hpc$Date <- as.Date(hpc$Date,format="%d/%m/%Y")
# Getting the subset we need:... |
#' @title Stroke dataset
#' @description Data from in-patients with acute stroke
#' @format A dataframe with columns and rows
#' \describe{
#' \item{sex}{sex of patient}
#' \item{race}{race of patient}
#' \item{doa}{date of admission}
#' \item{doa}{date of discharge}
#' }
"stroke"
| /R/stroke.R | no_license | drkamarul/data4medic | R | false | false | 286 | r | #' @title Stroke dataset
#' @description Data from in-patients with acute stroke
#' @format A dataframe with columns and rows
#' \describe{
#' \item{sex}{sex of patient}
#' \item{race}{race of patient}
#' \item{doa}{date of admission}
#' \item{doa}{date of discharge}
#' }
"stroke"
|
#' Water Use Data for the City of Santa Monica
#'
#' A dataset containing metered water use data for customers of the
#' City of Santa Monica public works department. Data has been modified slightly
#' from its original format to drop extra columns and rename columns to simpler
#' descriptive names.
#'
#' @format A dat... | /R/data.R | permissive | California-Data-Collaborative/RateParser | R | false | false | 869 | r | #' Water Use Data for the City of Santa Monica
#'
#' A dataset containing metered water use data for customers of the
#' City of Santa Monica public works department. Data has been modified slightly
#' from its original format to drop extra columns and rename columns to simpler
#' descriptive names.
#'
#' @format A dat... |
#-------------------------------------------------------
# MDS - Fundamentos
# Distribuciones multivariantes
# Practica 4 Distribucion normal bidimensional
#-------------------------------------------------------
rm(list=ls())
library(plot3D)
library(scatterplot3d)
#----------------------------------------------
# N... | /Fundamentos_de_DS/Practica Semana 2/Multivariantes_Practica_4.R | no_license | octadelsueldo/Master_DS_CUNEF | R | false | false | 1,846 | r | #-------------------------------------------------------
# MDS - Fundamentos
# Distribuciones multivariantes
# Practica 4 Distribucion normal bidimensional
#-------------------------------------------------------
rm(list=ls())
library(plot3D)
library(scatterplot3d)
#----------------------------------------------
# N... |
## When adding new options, be sure to update the VALID_OPTIONS list
## (define your own custom validators by assigning a function)
## and update the default_opts() function + documentation in 'get_opts()' below
VALID_OPTIONS <- list(
auto.snapshot = function(x) x %in% c(TRUE, FALSE),
use.cache = list(TRUE, FALSE)... | /R/options.R | no_license | vasiliosz/packrat | R | false | false | 9,234 | r | ## When adding new options, be sure to update the VALID_OPTIONS list
## (define your own custom validators by assigning a function)
## and update the default_opts() function + documentation in 'get_opts()' below
VALID_OPTIONS <- list(
auto.snapshot = function(x) x %in% c(TRUE, FALSE),
use.cache = list(TRUE, FALSE)... |
#' Import MCMC samples into a ggs object than can be used by all ggs_* graphical functions.
#'
#' This function manages MCMC samples from different sources (JAGS, MCMCpack, STAN -both via rstan and via csv files-) and converts them into a data frame tbl. The resulting data frame has four columns (Iteration, Chain, Para... | /ggmcmc/R/ggs.R | no_license | ingted/R-Examples | R | false | false | 12,505 | r | #' Import MCMC samples into a ggs object than can be used by all ggs_* graphical functions.
#'
#' This function manages MCMC samples from different sources (JAGS, MCMCpack, STAN -both via rstan and via csv files-) and converts them into a data frame tbl. The resulting data frame has four columns (Iteration, Chain, Para... |
\name{sofaes}
\alias{sofaes}
\title{sofaes default}
\usage{
sofaes(x, ...)
}
\arguments{
\item{x}{input}
\item{...}{more stuff}
}
\description{
sofaes default
}
| /man/sofaes.Rd | no_license | ramnathv/sofa | R | false | false | 171 | rd | \name{sofaes}
\alias{sofaes}
\title{sofaes default}
\usage{
sofaes(x, ...)
}
\arguments{
\item{x}{input}
\item{...}{more stuff}
}
\description{
sofaes default
}
|
library(dplyr)
Sys.setlocale("LC_ALL", 'en_US.UTF-8') # important, because my OS isn't in English
if (!file.exists('./data')) {
dir.create('./data')
}
## It will download and unzip the data only if there isn't the dataset in the
## current working directory
if (!file.exists('./data/household_power_consumption.txt')... | /plot4.R | no_license | tuliocasagrande/ExData_Plotting1 | R | false | false | 2,148 | r | library(dplyr)
Sys.setlocale("LC_ALL", 'en_US.UTF-8') # important, because my OS isn't in English
if (!file.exists('./data')) {
dir.create('./data')
}
## It will download and unzip the data only if there isn't the dataset in the
## current working directory
if (!file.exists('./data/household_power_consumption.txt')... |
## Plot the 30-day mortality rates for heart attack
## Read the outcome data into R via the read.csv function and look at the first few rows.
outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
head(outcome)
## There are many columns in this dataset. You can see how many by typing ncol(outc... | /no_submit.R | no_license | bernieh2005/ProgrammingAssignment3Templates | R | false | false | 965 | r | ## Plot the 30-day mortality rates for heart attack
## Read the outcome data into R via the read.csv function and look at the first few rows.
outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character")
head(outcome)
## There are many columns in this dataset. You can see how many by typing ncol(outc... |
\name{wmlung5070US}
\alias{wmlung5070US}
\docType{data}
\title{
U.S. lung cancer mortality data for white males, 1950-1969 and 1970-1994
}
\description{
Count and age-adjusted rate of lung cancer mortality among white men for the total U.S.,
aggregated for 1950-69 and 1970-94.
}
\usage{wmlung5070US}
\f... | /man/wmlung5070US.Rd | no_license | Suppaman/micromapST | R | false | false | 1,163 | rd | \name{wmlung5070US}
\alias{wmlung5070US}
\docType{data}
\title{
U.S. lung cancer mortality data for white males, 1950-1969 and 1970-1994
}
\description{
Count and age-adjusted rate of lung cancer mortality among white men for the total U.S.,
aggregated for 1950-69 and 1970-94.
}
\usage{wmlung5070US}
\f... |
dat = read.csv("saerela.csv")
library(boot)
# function that takes data and indices as input and generates an estimate of the mean outcome under
# always treat - mean outcome under never treat strategy
standard = function(data, indices) {
d = data[indices,]
#d$interv = -1
# IPT weights:
tmodel1 <- glm(Z1 ~... | /iptw.R | no_license | DBomber60/is.causal | R | false | false | 1,751 | r | dat = read.csv("saerela.csv")
library(boot)
# function that takes data and indices as input and generates an estimate of the mean outcome under
# always treat - mean outcome under never treat strategy
standard = function(data, indices) {
d = data[indices,]
#d$interv = -1
# IPT weights:
tmodel1 <- glm(Z1 ~... |
# Karan app
library(shiny)
library(data.table)
library(fasttime) #for fastPosixct
library(ggplot2)
library(scales)
suppressWarnings(library(plotly))
options(shiny.maxRequestSize=100*1024^2)
rm(list=ls())
Sys.setenv(TZ="Asia/Kolkata")
shinyServer(
function(input, output) {
dframe <- reactive( {
#inpu... | /Karan_app/server.R | no_license | loneharoon/R_apps | R | false | false | 1,982 | r | # Karan app
library(shiny)
library(data.table)
library(fasttime) #for fastPosixct
library(ggplot2)
library(scales)
suppressWarnings(library(plotly))
options(shiny.maxRequestSize=100*1024^2)
rm(list=ls())
Sys.setenv(TZ="Asia/Kolkata")
shinyServer(
function(input, output) {
dframe <- reactive( {
#inpu... |
library(circumplex)
### Name: instruments
### Title: List all available instruments
### Aliases: instruments
### ** Examples
instruments()
| /data/genthat_extracted_code/circumplex/examples/instruments.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 146 | r | library(circumplex)
### Name: instruments
### Title: List all available instruments
### Aliases: instruments
### ** Examples
instruments()
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fa_i.R
\name{fa_i}
\alias{fa_i}
\title{Generate a Font Awesome \verb{<i>} tag}
\usage{
fa_i(name, class = NULL, ..., html_dependency = NULL, verify_fa = TRUE)
}
\arguments{
\item{name}{The name of the Font Awesome icon. This could be as a sho... | /man/fa_i.Rd | permissive | fiorenzino/fontawesome | R | false | true | 2,686 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fa_i.R
\name{fa_i}
\alias{fa_i}
\title{Generate a Font Awesome \verb{<i>} tag}
\usage{
fa_i(name, class = NULL, ..., html_dependency = NULL, verify_fa = TRUE)
}
\arguments{
\item{name}{The name of the Font Awesome icon. This could be as a sho... |
# R has various packages which need to be install and also contain various data sets
# Built-in datasets in R
data()# List of built-in Datasets in R. Open in different tab.
# Loading
data(mtcars)
# Print the first 6 rows
head(mtcars, 6)
| /4.6 Built in Data in R.R | no_license | Vaibhavtomar20/Learning-R | R | false | false | 247 | r | # R has various packages which need to be install and also contain various data sets
# Built-in datasets in R
data()# List of built-in Datasets in R. Open in different tab.
# Loading
data(mtcars)
# Print the first 6 rows
head(mtcars, 6)
|
suppressPackageStartupMessages(library(data.table))
suppressPackageStartupMessages(library(DT))
suppressPackageStartupMessages(library(purrr))
# sets standard concepts for use with mapped vs. direct search options
standard_concepts <- data.table("domain_type"= c("Measurement","Condition","Drug","Observation","Device",... | /PatientExploreR-OMOP_functions.R | permissive | BenGlicksberg/PatientExploreR | R | false | false | 48,196 | r | suppressPackageStartupMessages(library(data.table))
suppressPackageStartupMessages(library(DT))
suppressPackageStartupMessages(library(purrr))
# sets standard concepts for use with mapped vs. direct search options
standard_concepts <- data.table("domain_type"= c("Measurement","Condition","Drug","Observation","Device",... |
#' @title Round a numeric vector; halves will be rounded up, ala Microsoft Excel.
#'
#' @description
#' In base R \code{round()}, halves are rounded to even, e.g., 12.5 and 11.5 are both rounded to 12. This function rounds 12.5 to 13 (assuming \code{digits = 0}). Negative halves are rounded away from zero, e.g., -0.5... | /R/round_half_up.R | permissive | martinctc/janitor | R | false | false | 2,258 | r | #' @title Round a numeric vector; halves will be rounded up, ala Microsoft Excel.
#'
#' @description
#' In base R \code{round()}, halves are rounded to even, e.g., 12.5 and 11.5 are both rounded to 12. This function rounds 12.5 to 13 (assuming \code{digits = 0}). Negative halves are rounded away from zero, e.g., -0.5... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rap.R
\name{statistics.classNRI}
\alias{statistics.classNRI}
\title{Reclassification metrics with classes (ordinals) as inputs.}
\usage{
statistics.classNRI(c1, c2, y, s1, s2)
}
\arguments{
\item{c1}{Risk class of Reference model (ord... | /R_RiskAssessmentPlot/man/statistics.classNRI.Rd | no_license | aabojana/InterpretableBreastCancerPrognosis | R | false | false | 816 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rap.R
\name{statistics.classNRI}
\alias{statistics.classNRI}
\title{Reclassification metrics with classes (ordinals) as inputs.}
\usage{
statistics.classNRI(c1, c2, y, s1, s2)
}
\arguments{
\item{c1}{Risk class of Reference model (ord... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relation.R
\name{joinOperatorFromJson}
\alias{joinOperatorFromJson}
\title{joinOperatorFromJson}
\usage{
joinOperatorFromJson(json)
}
\description{
joinOperatorFromJson
}
| /man/joinOperatorFromJson.Rd | no_license | tercen/rtercen | R | false | true | 249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/relation.R
\name{joinOperatorFromJson}
\alias{joinOperatorFromJson}
\title{joinOperatorFromJson}
\usage{
joinOperatorFromJson(json)
}
\description{
joinOperatorFromJson
}
|
#' Enrichment score
#'
#' Calculates an enrichment score for a gene set.
#' @param L Vector with one expression value per gene.
#' @param S Vector of same length as L where 1 indicates that the gene in L is present in the gene set and 1 indicates that it is not.
#' @param p Weight. Default is 1.
#' @param doplot If TR... | /R/es.R | no_license | gdorum/GSEArot | R | false | false | 2,174 | r | #' Enrichment score
#'
#' Calculates an enrichment score for a gene set.
#' @param L Vector with one expression value per gene.
#' @param S Vector of same length as L where 1 indicates that the gene in L is present in the gene set and 1 indicates that it is not.
#' @param p Weight. Default is 1.
#' @param doplot If TR... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesian_code_final.R
\name{consensus_cluster}
\alias{consensus_cluster}
\title{consensus_cluster function}
\usage{
consensus_cluster(R, kmin = 2, kmax, clusterAlg = "hclust_ward", B = 10,
prop_resamp = 0.8)
}
\arguments{
\item{R}{a correla... | /man/consensus_cluster.Rd | no_license | azolling/EBmodules | R | false | true | 793 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayesian_code_final.R
\name{consensus_cluster}
\alias{consensus_cluster}
\title{consensus_cluster function}
\usage{
consensus_cluster(R, kmin = 2, kmax, clusterAlg = "hclust_ward", B = 10,
prop_resamp = 0.8)
}
\arguments{
\item{R}{a correla... |
# Method: "regarima" for the function summary
#' @export
#' @export
summary.regarima <- function(object, ...){
if (is.null(object$arma)) {
result <- list(arma_orders = NULL, results_spec = NULL,
coefficients = list(arima = NULL,
regression = NULL,
... | /R/regarima_print.R | no_license | jdemetra/rjdemetra | R | false | false | 9,624 | r | # Method: "regarima" for the function summary
#' @export
#' @export
summary.regarima <- function(object, ...){
if (is.null(object$arma)) {
result <- list(arma_orders = NULL, results_spec = NULL,
coefficients = list(arima = NULL,
regression = NULL,
... |
#' @aliases NULL
#' @import purrr
#' @import stats
#' @import utils
#' @importFrom readr read_csv
#' @importFrom furrr future_map
#' @importFrom magrittr %>%
#' @details
#' Linear Regression with Little Bag of Bootstraps
"_PACKAGE"
#' @details
#' Regression models with Little Bag of Bootstraps
"_PACKAGE"
## quiets co... | /R/blblm.R | no_license | ivahuang/blblm--2020STA141C | R | false | false | 8,809 | r | #' @aliases NULL
#' @import purrr
#' @import stats
#' @import utils
#' @importFrom readr read_csv
#' @importFrom furrr future_map
#' @importFrom magrittr %>%
#' @details
#' Linear Regression with Little Bag of Bootstraps
"_PACKAGE"
#' @details
#' Regression models with Little Bag of Bootstraps
"_PACKAGE"
## quiets co... |
## Read a text file and translate to edge descriptions
##' Read and write text representations of models
##'
##' The functions \code{read.digraph} and \code{parse.digraph} read a model
##' description from a text file and a string respectively, while
##' \code{write.digraph} writes a text representation of the model ... | /R/text.R | no_license | SWotherspoon/QPress | R | false | false | 8,702 | r | ## Read a text file and translate to edge descriptions
##' Read and write text representations of models
##'
##' The functions \code{read.digraph} and \code{parse.digraph} read a model
##' description from a text file and a string respectively, while
##' \code{write.digraph} writes a text representation of the model ... |
\name{LGG-v2.0.1}
\alias{ LGG-v2.0.1 }
\docType{data}
\title{ Brain Lower Grade Glioma }
\description{
A document describing the TCGA cancer code
}
\details{
\preformatted{
> experiments( LGG )
ExperimentList class object of length 13:
[1] LGG_CNASeq-20160128: RaggedExperiment with 6360 rows and 104 columns
[2] LGG_... | /man/LGG-v2.0.1.Rd | no_license | waldronlab/curatedTCGAData | R | false | false | 5,511 | rd | \name{LGG-v2.0.1}
\alias{ LGG-v2.0.1 }
\docType{data}
\title{ Brain Lower Grade Glioma }
\description{
A document describing the TCGA cancer code
}
\details{
\preformatted{
> experiments( LGG )
ExperimentList class object of length 13:
[1] LGG_CNASeq-20160128: RaggedExperiment with 6360 rows and 104 columns
[2] LGG_... |
library(readr)
install.packages("httr")
library(httr)
install.packages("rjstat")
library(rjstat)
library(tidyverse)
library(dplyr)
set1json <- "http://data.ssb.no/api/v0/dataset/95274.json?lang=no"
dftemp <- GET(set1json)
dfjson <- fromJSONstat(content(dftemp, "text"))
df1 <- dfjson[[1]]
df1 <- ... | /Obligatorisk_innlevering_3.R | no_license | Johnrejor/lecture_3.0 | R | false | false | 2,029 | r | library(readr)
install.packages("httr")
library(httr)
install.packages("rjstat")
library(rjstat)
library(tidyverse)
library(dplyr)
set1json <- "http://data.ssb.no/api/v0/dataset/95274.json?lang=no"
dftemp <- GET(set1json)
dfjson <- fromJSONstat(content(dftemp, "text"))
df1 <- dfjson[[1]]
df1 <- ... |
testlist <- list(type = 13565952L, z = 1.26480805335359e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609894392-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 115 | r | testlist <- list(type = 13565952L, z = 1.26480805335359e-321)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
library(SummarizedExperiment)
library(BuenColors)
library(dplyr)
library(Matrix)
library(BuenColors)
library(data.table)
library(ggbeeswarm)
library(dplyr)
library(matrixStats)
library(ComplexHeatmap)
library(circlize)
library(stringr)
# Import signac procssed stuff
d <- readRDS("../output/21March2020_signac_process.r... | /figure_CRC/code/02_cnv_analysis.R | no_license | ChenPeizhan/mtscATACpaper_reproducibility | R | false | false | 2,714 | r | library(SummarizedExperiment)
library(BuenColors)
library(dplyr)
library(Matrix)
library(BuenColors)
library(data.table)
library(ggbeeswarm)
library(dplyr)
library(matrixStats)
library(ComplexHeatmap)
library(circlize)
library(stringr)
# Import signac procssed stuff
d <- readRDS("../output/21March2020_signac_process.r... |
require(dplyr)
## Get the training and test data read into R
test <- read.table("test/X_test.txt", header = FALSE)
train <- read.table("train/X_train.txt", header = FALSE)
ytrain <- read.table("train/y_train.txt", header = FALSE,
stringsAsFactors = FALSE)
ytest <- read.table("test/y_test.... | /run_analysis.R | no_license | adamazoulay/GettingAndCleaningData | R | false | false | 2,426 | r | require(dplyr)
## Get the training and test data read into R
test <- read.table("test/X_test.txt", header = FALSE)
train <- read.table("train/X_train.txt", header = FALSE)
ytrain <- read.table("train/y_train.txt", header = FALSE,
stringsAsFactors = FALSE)
ytest <- read.table("test/y_test.... |
# learner with error "foo" in predict
makeRLearner.classif.__mlrmocklearners__1 = function() {
makeRLearnerClassif(
cl = "classif.__mlrmocklearners__1", package = character(0L), par.set = makeParamSet(),
properties = c("twoclass", "multiclass", "missings", "numerics", "factors", "prob")
)
}
trainLearner.cla... | /tests/testthat/helper_mock_learners.R | no_license | HeidiSeibold/mlr | R | false | false | 5,718 | r | # learner with error "foo" in predict
makeRLearner.classif.__mlrmocklearners__1 = function() {
makeRLearnerClassif(
cl = "classif.__mlrmocklearners__1", package = character(0L), par.set = makeParamSet(),
properties = c("twoclass", "multiclass", "missings", "numerics", "factors", "prob")
)
}
trainLearner.cla... |
## OPTION1 (NOT USED) Reading the entire table and selecting the two days of interest
## Data <- read.table("household_power_consumption.txt", header=TRUE, sep =";")
## Data <- subset(Data, Date=="1/2/2007" | Date=="2/2/2007")
# OPTION2: Alternative way of reading only relevant dates
library(sqldf)
Data2 <- r... | /plot3.R | no_license | ADOL1961/ExData_Plotting1 | R | false | false | 1,222 | r | ## OPTION1 (NOT USED) Reading the entire table and selecting the two days of interest
## Data <- read.table("household_power_consumption.txt", header=TRUE, sep =";")
## Data <- subset(Data, Date=="1/2/2007" | Date=="2/2/2007")
# OPTION2: Alternative way of reading only relevant dates
library(sqldf)
Data2 <- r... |
#load Data
data <- read.table("household_power_consumption.txt", header=T, sep=";")
subset <- data[data["Date"]=="1/2/2007" | data["Date"]=="2/2/2007",]
subset$NewDate <- strptime(paste(subset$Date,subset$Time), "%d/%m/%Y %H:%M:%S");
#Open Device
png(filename="plot4.png")
#Set Parameter
par(mfcol=c(2,2))
#Plot 1
plo... | /plot4.R | no_license | dabergueiro/ExData_Plotting1 | R | false | false | 1,429 | r | #load Data
data <- read.table("household_power_consumption.txt", header=T, sep=";")
subset <- data[data["Date"]=="1/2/2007" | data["Date"]=="2/2/2007",]
subset$NewDate <- strptime(paste(subset$Date,subset$Time), "%d/%m/%Y %H:%M:%S");
#Open Device
png(filename="plot4.png")
#Set Parameter
par(mfcol=c(2,2))
#Plot 1
plo... |
####
# calculates distribution of
# Rural, Town, and Urban residents in sample (subjects only)
# based on current and childhood residences
# and plots as two side-by-side histograms
####
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
# read in data
source('inread.r')
almost_everything <- inread('data/2... | /urb_dist.r | permissive | saralakumari/lmsim | R | false | false | 2,592 | r | ####
# calculates distribution of
# Rural, Town, and Urban residents in sample (subjects only)
# based on current and childhood residences
# and plots as two side-by-side histograms
####
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
# read in data
source('inread.r')
almost_everything <- inread('data/2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/permutations.R
\name{runPermutations}
\alias{runPermutations}
\title{Create permutation files}
\usage{
runPermutations(file, trait, cpus, work.dir = getwd(),
topfile = file.path(work.dir, paste(basename(file_path_sans_ext(file)),
"topfile... | /man/runPermutations.Rd | no_license | imbs-hl/mbmdR | R | false | true | 1,186 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/permutations.R
\name{runPermutations}
\alias{runPermutations}
\title{Create permutation files}
\usage{
runPermutations(file, trait, cpus, work.dir = getwd(),
topfile = file.path(work.dir, paste(basename(file_path_sans_ext(file)),
"topfile... |
#' orthoBlast
#'
#' remove duplicated in query and subject and subset by a coverage and id.cutoff
#'
#' @param raw.blast raw blast tables obtained with ReadBlastTables functino
#' @param coverage numeric coverage cutoff
#' @param id.cutoff numeric, identity percent cutoff
#'
#' @import dplyr
#' @import magrittr
#' @ret... | /R/BlastTools.R | no_license | torresmanno/BioTools | R | false | false | 3,002 | r | #' orthoBlast
#'
#' remove duplicated in query and subject and subset by a coverage and id.cutoff
#'
#' @param raw.blast raw blast tables obtained with ReadBlastTables functino
#' @param coverage numeric coverage cutoff
#' @param id.cutoff numeric, identity percent cutoff
#'
#' @import dplyr
#' @import magrittr
#' @ret... |
# get list of single unique words from all sources
# blog + news
blog.news.freq <- full_join(blog.freq, news.freq, by = "word") %>%
mutate(blog.news.n = n.x + n.y) %>%
select(-c(n.x, n.y))
# blog + news + twitter
all.freq <- full_join(blog.news.freq, twitter.freq, by = "word") %>%
mutate(freq = blog.news.n + n... | /week2q8.R | no_license | MogwaiMomo/capstone | R | false | false | 864 | r |
# get list of single unique words from all sources
# blog + news
blog.news.freq <- full_join(blog.freq, news.freq, by = "word") %>%
mutate(blog.news.n = n.x + n.y) %>%
select(-c(n.x, n.y))
# blog + news + twitter
all.freq <- full_join(blog.news.freq, twitter.freq, by = "word") %>%
mutate(freq = blog.news.n + n... |
#' @rdname scheduler
#' @section Plotters:
#' \code{plotPrior:} Method to plot prior distributions.
#' @export
plotPrior <- function(scheduler){
packageCheck("ggplot2")
packageCheck("patchwork")
sch <- scheduler
xmin <- min(-3, min(unlist(sch@rewards)))
xmax <- max(3, max(unlist(sch@rewards)))
plots <- ... | /R/3-scheduler-viz.R | no_license | zhenxuanzhang/rarsim | R | false | false | 3,889 | r | #' @rdname scheduler
#' @section Plotters:
#' \code{plotPrior:} Method to plot prior distributions.
#' @export
plotPrior <- function(scheduler){
packageCheck("ggplot2")
packageCheck("patchwork")
sch <- scheduler
xmin <- min(-3, min(unlist(sch@rewards)))
xmax <- max(3, max(unlist(sch@rewards)))
plots <- ... |
# This is the user-interface definition of a Shiny web application.
library(shiny)
# Fix tag("div", list(...)) : could not find function "showOut…
library(rCharts)
shinyUI(
navbarPage("Storm Database Explorer",
tabPanel("Plot",
sidebarPanel(
sliderInput("range",
... | /ui.R | no_license | renrenang/Developing-Data-Products---Shiny | R | false | false | 3,246 | r | # This is the user-interface definition of a Shiny web application.
library(shiny)
# Fix tag("div", list(...)) : could not find function "showOut…
library(rCharts)
shinyUI(
navbarPage("Storm Database Explorer",
tabPanel("Plot",
sidebarPanel(
sliderInput("range",
... |
testlist <- list(b = c(-1667457875L, -1667457892L, 2100493L, 2100493L, -1835887972L ))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613108319-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 153 | r | testlist <- list(b = c(-1667457875L, -1667457892L, 2100493L, 2100493L, -1835887972L ))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
dstemp <- ds
ds <- dstemp
library(Hmisc); library(ggplot2); library(caret);
# FUNCTIONS
#sum up detailled data per couple (campaign, App)
groupMeasuresPerCampPerApp <- function(data, subcriteria){
groupingby <- list(cid = data$CampaignID, aid = data$AppOriginID, ctry = data$Country)
subsetFrom <- length... | /clustering_over_campaign_AppOriginID.R | no_license | ArnOrgelet/AdNetwork-analysis-with-R | R | false | false | 20,438 | r | dstemp <- ds
ds <- dstemp
library(Hmisc); library(ggplot2); library(caret);
# FUNCTIONS
#sum up detailled data per couple (campaign, App)
groupMeasuresPerCampPerApp <- function(data, subcriteria){
groupingby <- list(cid = data$CampaignID, aid = data$AppOriginID, ctry = data$Country)
subsetFrom <- length... |
# load libraries
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require(caret)) install.packages("caret", repos = "http://cran.us.r-project.org")
if(!require(data.table)) install.packages("data.table", repos = "http://cran.us.r-project.org")
if(!require(lubridate)) ins... | /Books.R | no_license | blockshade83/Goodreads_Project | R | false | false | 12,255 | r | # load libraries
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require(caret)) install.packages("caret", repos = "http://cran.us.r-project.org")
if(!require(data.table)) install.packages("data.table", repos = "http://cran.us.r-project.org")
if(!require(lubridate)) ins... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jagsRun.R
\name{jagsRun}
\alias{jagsRun}
\title{Run JAGS}
\usage{
jagsRun(jagsData, jagsModel, jagsInits, params, jagsID, jagsDsc, db_hash,
n_chain = 3, n_adapt = 5000, n_burn, n_draw, n_thin = 1,
DEBUG = FALSE, EXTRA = FALSE, RANDOM = FA... | /man/jagsRun.Rd | no_license | caseyyoungflesh/jagsRun | R | false | true | 4,391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jagsRun.R
\name{jagsRun}
\alias{jagsRun}
\title{Run JAGS}
\usage{
jagsRun(jagsData, jagsModel, jagsInits, params, jagsID, jagsDsc, db_hash,
n_chain = 3, n_adapt = 5000, n_burn, n_draw, n_thin = 1,
DEBUG = FALSE, EXTRA = FALSE, RANDOM = FA... |
#' @title A Subset of the Ames Data Set with Imputed Values
#' @description A randomly selected subset of the Ames data set.
#' The dataset has had its values imputed and any remaining NA values removed.
#' @name AmesImp
#' @docType data
#' @usage AmesImp
#' @format A data frame with 2047 observations on 74 variables.
... | /R/AmesImp.R | no_license | pikos90/tree.bins | R | false | false | 521 | r | #' @title A Subset of the Ames Data Set with Imputed Values
#' @description A randomly selected subset of the Ames data set.
#' The dataset has had its values imputed and any remaining NA values removed.
#' @name AmesImp
#' @docType data
#' @usage AmesImp
#' @format A data frame with 2047 observations on 74 variables.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_functions.R
\name{get_col}
\alias{get_col}
\title{Select columns by indices}
\usage{
get_col(.m, cols)
}
\arguments{
\item{.m}{A 2d matrix}
\item{cols}{Numeric or character vector or empty (missing)}
}
\value{
Subset of columns of mat... | /man/get_col.Rd | permissive | user01/uvadsi | R | false | true | 554 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_functions.R
\name{get_col}
\alias{get_col}
\title{Select columns by indices}
\usage{
get_col(.m, cols)
}
\arguments{
\item{.m}{A 2d matrix}
\item{cols}{Numeric or character vector or empty (missing)}
}
\value{
Subset of columns of mat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/googleLoginModule.R
\name{googleLoginModule}
\alias{googleLoginModule}
\title{Generate a google login environment, with preprocessing function to tailor developer app}
\usage{
googleLoginModule()
}
\value{
}
\description{
Generate a google l... | /man/googleLoginModule.Rd | permissive | tpemartin/webtemplate | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/googleLoginModule.R
\name{googleLoginModule}
\alias{googleLoginModule}
\title{Generate a google login environment, with preprocessing function to tailor developer app}
\usage{
googleLoginModule()
}
\value{
}
\description{
Generate a google l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc_RegAttrPages.R
\name{FontFaceElementStemvAttribute}
\alias{FontFaceElementStemvAttribute}
\title{stemv}
\description{
Sets the vertical stem width.
}
\section{Available Attribute Values}{
The value is defined as follows:
\describe{
\item... | /man/FontFaceElementStemvAttribute.Rd | permissive | mslegrand/svgR | R | false | true | 605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc_RegAttrPages.R
\name{FontFaceElementStemvAttribute}
\alias{FontFaceElementStemvAttribute}
\title{stemv}
\description{
Sets the vertical stem width.
}
\section{Available Attribute Values}{
The value is defined as follows:
\describe{
\item... |
# ABCD Activities questionnaire data
library(dtplyr)
library(dplyr)
library(tidyr)
library(data.table)
# load data ---------------------------------------------------------------
activitiesFile <- "/Users/jri/Documents/ Research/Projects/simphony/ABCD/Sports and Activities NDA17 Release data.csv"
subjFields <- c("id_... | /AnalyzeActivities_Arts_NDA17.R | no_license | jiversen/ABCD-saiq-music | R | false | false | 4,536 | r | # ABCD Activities questionnaire data
library(dtplyr)
library(dplyr)
library(tidyr)
library(data.table)
# load data ---------------------------------------------------------------
activitiesFile <- "/Users/jri/Documents/ Research/Projects/simphony/ABCD/Sports and Activities NDA17 Release data.csv"
subjFields <- c("id_... |
# regression bern-gamma for vector
graphics.off() # This closes all of R's graphics windows.
rm(list=ls()) # Careful! This clears all of R's memory!
require(rstan)
require('qmap')
set.seed(123)
n <- 100
prob <- 0.8 # non-zero probability
shape <- 0.6
rate <- 2.0
scale <- 1/rate
y <- rberngamma(n, prob, scale=scale,... | /code/berngamma_y.R | no_license | dynaryu/fatality | R | false | false | 2,768 | r | # regression bern-gamma for vector
graphics.off() # This closes all of R's graphics windows.
rm(list=ls()) # Careful! This clears all of R's memory!
require(rstan)
require('qmap')
set.seed(123)
n <- 100
prob <- 0.8 # non-zero probability
shape <- 0.6
rate <- 2.0
scale <- 1/rate
y <- rberngamma(n, prob, scale=scale,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.