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 |
|---|---|---|---|---|---|---|---|---|---|
\name{FastBellman}
\alias{FastBellman}
\title{Fast Bellman Recursion}
\description{Approximate the value functions using the Bellman recursion
and fast methods}
\usage{
FastBellman(grid, reward, control, disturb, weight, r_index, Neighbour,
smooth = 1, SmoothNeighbour)
}
\arguments{
\item{grid}{Matrix rep... | /man/FastBellman.Rd | no_license | IanMadlenya/rcss | R | false | false | 3,321 | rd | \name{FastBellman}
\alias{FastBellman}
\title{Fast Bellman Recursion}
\description{Approximate the value functions using the Bellman recursion
and fast methods}
\usage{
FastBellman(grid, reward, control, disturb, weight, r_index, Neighbour,
smooth = 1, SmoothNeighbour)
}
\arguments{
\item{grid}{Matrix rep... |
##########################################################################
# Description of the functions #
# Copyright Jenny Andersson, Rebecka Bertilsson, Helena Foogde, #
# Lovisa Köllerström, Robin Lindström. Gothenburg University 2018 . #
####################... | /Genedata/Functions_gene.R | no_license | hansronald/kandidaten | R | false | false | 42,114 | r | ##########################################################################
# Description of the functions #
# Copyright Jenny Andersson, Rebecka Bertilsson, Helena Foogde, #
# Lovisa Köllerström, Robin Lindström. Gothenburg University 2018 . #
####################... |
pacman::p_load('read.dbc', 'foreign', 'dplyr', 'purrr', 'kableExtra', 'ggplot2')
#### Item d) ----------------------------------
### Capítulos do CID-10
## Agrupamentos
caps_df <- data.frame(
"Grupo" = paste("Grupo", seq(1,7), sep = " "),
"Capitulos" = c(paste("I", "X", "XVIII", sep = ", "),
pas... | /Trabalho1/Exercicio_3-prep.R | no_license | Voz-bonita/Demografia | R | false | false | 2,152 | r | pacman::p_load('read.dbc', 'foreign', 'dplyr', 'purrr', 'kableExtra', 'ggplot2')
#### Item d) ----------------------------------
### Capítulos do CID-10
## Agrupamentos
caps_df <- data.frame(
"Grupo" = paste("Grupo", seq(1,7), sep = " "),
"Capitulos" = c(paste("I", "X", "XVIII", sep = ", "),
pas... |
mdes.cra2r2 <- function(power=.80, alpha=.05, two.tailed=TRUE,
rel1=1, rho2, p=.50, g2=0, r21=0, r22=0,
n, J){
user.parms <- as.list(match.call())
.error.handler(user.parms)
df <- J - g2 - 2
SSE <- sqrt(rho2*(1-r22)/(p*(1-p)*J) +
(1-rho2)... | /R/cra2.R | no_license | cran/PowerUpR | R | false | false | 31,769 | r | mdes.cra2r2 <- function(power=.80, alpha=.05, two.tailed=TRUE,
rel1=1, rho2, p=.50, g2=0, r21=0, r22=0,
n, J){
user.parms <- as.list(match.call())
.error.handler(user.parms)
df <- J - g2 - 2
SSE <- sqrt(rho2*(1-r22)/(p*(1-p)*J) +
(1-rho2)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eks_operations.R
\name{eks_describe_update}
\alias{eks_describe_update}
\title{Returns descriptive information about an update against your Amazon EKS
cluster or associated managed node group}
\usage{
eks_describe_update(name, updateId, nodeg... | /cran/paws.compute/man/eks_describe_update.Rd | permissive | TWarczak/paws | R | false | true | 2,382 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eks_operations.R
\name{eks_describe_update}
\alias{eks_describe_update}
\title{Returns descriptive information about an update against your Amazon EKS
cluster or associated managed node group}
\usage{
eks_describe_update(name, updateId, nodeg... |
.onLoad <- function(libname, pkgname){
options(ERLANG_PRINT = 50L)
} | /R/zzz.R | permissive | JohnCoene/ericsson | R | false | false | 70 | r | .onLoad <- function(libname, pkgname){
options(ERLANG_PRINT = 50L)
} |
setwd("D:/HDF/he5so2/april2020")
library(sf)
library(rhdf5)
library(raster)
library(rasterVis)
library(sommer)
shp_path <- "D:/HDF/shp"
shp_name <- "World_Countries.shp"
shp_file <- paste(shp_path, shp_name, sep="/")
world_shp <- read_sf(shp_file)
world_outline <- as(st_geometry(world_shp), Class="Spatial")... | /code/so2/part1/so2april2020.R | no_license | samyam200200/AQI-Indian-Subcontinent | R | false | false | 2,700 | r | setwd("D:/HDF/he5so2/april2020")
library(sf)
library(rhdf5)
library(raster)
library(rasterVis)
library(sommer)
shp_path <- "D:/HDF/shp"
shp_name <- "World_Countries.shp"
shp_file <- paste(shp_path, shp_name, sep="/")
world_shp <- read_sf(shp_file)
world_outline <- as(st_geometry(world_shp), Class="Spatial")... |
\name{devices}
\alias{DEV_down}
\alias{RFID_up}
\alias{TT_up}
\alias{MSR_up}
\alias{DEV_findfiles}
\title{device upload/download functions}
\description{DEV_down is used to copy RFID/VIDEO files from SD to RAWdir; DEV_findfiles finds new files in RAWdir (not normally RFID or video, but it finds those as well); all th... | /man/devices.Rd | no_license | alrutten/gryllus2014 | R | false | false | 400 | rd |
\name{devices}
\alias{DEV_down}
\alias{RFID_up}
\alias{TT_up}
\alias{MSR_up}
\alias{DEV_findfiles}
\title{device upload/download functions}
\description{DEV_down is used to copy RFID/VIDEO files from SD to RAWdir; DEV_findfiles finds new files in RAWdir (not normally RFID or video, but it finds those as well); all th... |
## This program is intended to solve and cache the inverse of matrix.
## makeCacheMatrix creates a special "matrix", which is really a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of the Inverse Matrix
# 4. get the value of the Inverse Matrix
makeC... | /cachematrix.R | no_license | ashishjwr/ProgrammingAssignment2 | R | false | false | 1,272 | r | ## This program is intended to solve and cache the inverse of matrix.
## makeCacheMatrix creates a special "matrix", which is really a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value of the Inverse Matrix
# 4. get the value of the Inverse Matrix
makeC... |
testlist <- list(b = c(32684L, -1397979988L, -1397965652L, -1400897364L, -1397969748L, 742658064L, 269488144L, 721453069L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613100375-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 431 | r | testlist <- list(b = c(32684L, -1397979988L, -1397965652L, -1400897364L, -1397969748L, 742658064L, 269488144L, 721453069L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... |
test_that("convert time correctly parses string", {
expect_equal(convert_time("11:00 h, miércoles 06 de abril de 2016"),
"2016-04-06 11:00:00")
expect_equal(convert_time("11:00 h,
miércoles 06 de abril de 2016
"), "2016-04-06 11:00:00")
})
test_that(("convert units"), {
# df_max_zone <- ge... | /tests/testthat/test_data.R | permissive | robertoalvarezm/aire.zmvm | R | false | false | 6,409 | r | test_that("convert time correctly parses string", {
expect_equal(convert_time("11:00 h, miércoles 06 de abril de 2016"),
"2016-04-06 11:00:00")
expect_equal(convert_time("11:00 h,
miércoles 06 de abril de 2016
"), "2016-04-06 11:00:00")
})
test_that(("convert units"), {
# df_max_zone <- ge... |
library(dplyr)
library(readr)
library (magick)
library(rcrossref) ## getting year published from doi
library(pander) ## creating reports
source("functions.r")
library (knitr)
#blogdown::new_site(theme="aerohub/hugrid", hostname = "github.com") #used to create the website,kept for reference
## give here url of publicat... | /WEsitecreator.R | permissive | memory-consolidation/SFB1315_Public_result_gallery | R | false | false | 746 | r | library(dplyr)
library(readr)
library (magick)
library(rcrossref) ## getting year published from doi
library(pander) ## creating reports
source("functions.r")
library (knitr)
#blogdown::new_site(theme="aerohub/hugrid", hostname = "github.com") #used to create the website,kept for reference
## give here url of publicat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaults.R
\name{ov_default_setter_calls_table}
\alias{ov_default_setter_calls_table}
\title{Default setter calls table}
\usage{
ov_default_setter_calls_table()
}
\value{
A tibble
}
\description{
Default setter calls table
}
| /man/ov_default_setter_calls_table.Rd | permissive | openvolley/ovscout | R | false | true | 303 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaults.R
\name{ov_default_setter_calls_table}
\alias{ov_default_setter_calls_table}
\title{Default setter calls table}
\usage{
ov_default_setter_calls_table()
}
\value{
A tibble
}
\description{
Default setter calls table
}
|
#########Clean Data####################
CleanDBData_web<-function(Mo=6,file='C:/Users/enzo7311/Desktop/test_/backupinfo.csv',MAgent='all',hour=0){
# c(18,19,20,12,21,23)){
# 1,2,3,4,5,6,7,8,9,
#Read the big File
#Type of query
#### FROM [commserv].[dbo].[CommCellBackupInfo]
... | /helper - Copy.R | no_license | EnzoCalogero/CV-R | R | false | false | 4,477 | r | #########Clean Data####################
CleanDBData_web<-function(Mo=6,file='C:/Users/enzo7311/Desktop/test_/backupinfo.csv',MAgent='all',hour=0){
# c(18,19,20,12,21,23)){
# 1,2,3,4,5,6,7,8,9,
#Read the big File
#Type of query
#### FROM [commserv].[dbo].[CommCellBackupInfo]
... |
#' Plot average age per commune vs the proportion of preschool kids
#'
#' @param population_summary_df The data frame returned by \link[bevstat]{summarise_population_df}
#' @param alpha opacity
#'
#' @return A scatter plot of average age per commune vs the proportion of preschool kids
#' @export
#'
#' @importFrom dplyr... | /R/make-some-lit-scatterplot.R | permissive | MaximilianBernkopf/bevstat | R | false | false | 1,260 | r | #' Plot average age per commune vs the proportion of preschool kids
#'
#' @param population_summary_df The data frame returned by \link[bevstat]{summarise_population_df}
#' @param alpha opacity
#'
#' @return A scatter plot of average age per commune vs the proportion of preschool kids
#' @export
#'
#' @importFrom dplyr... |
#Analysis of Similarities following Clarke 1993
library(grid)
library(vegan)
library(dplyr)
library(stringr)
#load data
load(url("http://github.com/secanno/coralreef_stressorinteractions/blob/main/data.RData?raw=true"))
#set site names as rownames
row.names(data_env) <- data_env$Site
row.names(data_cover) <- data_c... | /3_BIOENV.R | no_license | secanno/coralreef_stressorinteractions | R | false | false | 2,451 | r | #Analysis of Similarities following Clarke 1993
library(grid)
library(vegan)
library(dplyr)
library(stringr)
#load data
load(url("http://github.com/secanno/coralreef_stressorinteractions/blob/main/data.RData?raw=true"))
#set site names as rownames
row.names(data_env) <- data_env$Site
row.names(data_cover) <- data_c... |
# Description
#' run MCMC algorithm to fit the ZINB-DPP model for the input n-by-p count matrix
# Dependencies:
#' @import Rcpp
# Parameters:
#' @param count.matrix A count matrix from metagenomic shotgun sequencing or 16SrRNA sequencing technologies.
#' Columns represent the taxonomic features and ... | /GymFunctions/ZINBDPP.R | no_license | shuangj00/MicrobiomeGym | R | false | false | 4,539 | r | # Description
#' run MCMC algorithm to fit the ZINB-DPP model for the input n-by-p count matrix
# Dependencies:
#' @import Rcpp
# Parameters:
#' @param count.matrix A count matrix from metagenomic shotgun sequencing or 16SrRNA sequencing technologies.
#' Columns represent the taxonomic features and ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccard.R
\name{jaccard}
\alias{jaccard}
\title{Compute a Jaccard/Tanimoto similarity coefficient}
\usage{
jaccard(x, y, center = FALSE, px = NULL, py = NULL)
}
\arguments{
\item{x}{a binary vector (e.g., fingerprint)}
\item{y}{a binary vect... | /jaccard/man/jaccard.Rd | no_license | akhikolla/InformationHouse | R | false | true | 766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jaccard.R
\name{jaccard}
\alias{jaccard}
\title{Compute a Jaccard/Tanimoto similarity coefficient}
\usage{
jaccard(x, y, center = FALSE, px = NULL, py = NULL)
}
\arguments{
\item{x}{a binary vector (e.g., fingerprint)}
\item{y}{a binary vect... |
#' Check Not Empty
#'
#' @description
#' Checks if not empty using
#'
#' `length(x) != 0L`
#'
#' **Pass**: `1`, `1:2`, `NA`, `matrix(1:3)`, `list(1)`, `data.frame(x = 1)`.
#'
#' **Fail**: `NULL`, `logical(0)`, `list()`, `data.frame()`.
#'
#' @inheritParams params
#' @inherit params return
#'
#' @family chk_misc
#'
#' @... | /R/chk-not-empty.R | permissive | poissonconsulting/chk | R | false | false | 945 | r | #' Check Not Empty
#'
#' @description
#' Checks if not empty using
#'
#' `length(x) != 0L`
#'
#' **Pass**: `1`, `1:2`, `NA`, `matrix(1:3)`, `list(1)`, `data.frame(x = 1)`.
#'
#' **Fail**: `NULL`, `logical(0)`, `list()`, `data.frame()`.
#'
#' @inheritParams params
#' @inherit params return
#'
#' @family chk_misc
#'
#' @... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_ad_list.R
\name{create_ad_tibble}
\alias{create_ad_tibble}
\alias{create_ad_list}
\title{Create a tibble of artifact distributions by construct}
\usage{
create_ad_tibble(
ad_type = c("tsa", "int"),
n = NULL,
sample_id = NULL,
c... | /man/create_ad_tibble.Rd | no_license | psychmeta/psychmeta | R | false | true | 8,120 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_ad_list.R
\name{create_ad_tibble}
\alias{create_ad_tibble}
\alias{create_ad_list}
\title{Create a tibble of artifact distributions by construct}
\usage{
create_ad_tibble(
ad_type = c("tsa", "int"),
n = NULL,
sample_id = NULL,
c... |
#' @export
index <- function() {
rmd <- dir(pattern = "\\.rmd$")
headers <- lapply(rmd, extract_headers)
names(headers) <- rmd
# Save in human readable and R readable
cat(yaml::as.yaml(headers), file = "toc.yaml")
headers_df <- stack(headers)
headers_df$ind <- as.character(headers_df$ind)
saveRDS(set... | /R/index.R | no_license | dereksz/bookdown | R | false | false | 5,543 | r | #' @export
index <- function() {
rmd <- dir(pattern = "\\.rmd$")
headers <- lapply(rmd, extract_headers)
names(headers) <- rmd
# Save in human readable and R readable
cat(yaml::as.yaml(headers), file = "toc.yaml")
headers_df <- stack(headers)
headers_df$ind <- as.character(headers_df$ind)
saveRDS(set... |
library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/central_nervous_s... | /Model/EN/AvgRank/central_nervous_system/central_nervous_system_074.R | no_license | leon1003/QSMART | R | false | false | 400 | r | library(glmnet)
mydata = read.table("./TrainingSet/AvgRank/central_nervous_system.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/AvgRank/central_nervous_s... |
f7e6ee39eab7a5307261c312d755822b p20-20.pddl_planlen=24.qdimacs 14080 2164924 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Kronegger-Pfandler-Pichler/bomb/p20-20.pddl_planlen=24/p20-20.pddl_planlen=24.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 77 | r | f7e6ee39eab7a5307261c312d755822b p20-20.pddl_planlen=24.qdimacs 14080 2164924 |
library(PCICt)
### Name: round.PCICt
### Title: round.PCICt
### Aliases: round.PCICt
### ** Examples
## Convert strings to PCICt objects, on a 360 day calendar
x <- as.PCICt(c("1961-02-30 12:00:00", "1962-03-24 12:34:56"), cal="360")
## Round them to the nearest hour
x.hour <- round(x, "hours")
## Round them to t... | /data/genthat_extracted_code/PCICt/examples/round.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 364 | r | library(PCICt)
### Name: round.PCICt
### Title: round.PCICt
### Aliases: round.PCICt
### ** Examples
## Convert strings to PCICt objects, on a 360 day calendar
x <- as.PCICt(c("1961-02-30 12:00:00", "1962-03-24 12:34:56"), cal="360")
## Round them to the nearest hour
x.hour <- round(x, "hours")
## Round them to t... |
test_that("get_last_path_part() works", {
expect_last_part <- function(x, tail) {
expect_equal(get_last_path_part(x), tail)
}
expect_last_part("~", "~/")
expect_last_part("~/", "~/")
expect_last_part("abc", "abc")
expect_last_part("abc/", "abc/")
expect_last_part("~/abc", "abc")
expect_last_part("... | /tests/testthat/test-drive_get_path.R | permissive | stjordanis/googledrive | R | false | false | 3,269 | r | test_that("get_last_path_part() works", {
expect_last_part <- function(x, tail) {
expect_equal(get_last_path_part(x), tail)
}
expect_last_part("~", "~/")
expect_last_part("~/", "~/")
expect_last_part("abc", "abc")
expect_last_part("abc/", "abc/")
expect_last_part("~/abc", "abc")
expect_last_part("... |
setwd("C:\\Users\\Amitoj\\Documents\\R Programming Coursera\\ProgrammingAssignment3")
list.files()
helper <- function(data, col_num, state) {
state_subset <- data[data[, 7]==state, ]
outcome_arr <- state_subset[, col_num]
min <- min(outcome_arr, na.rm=T)
min_index <- which(outcome_arr == min)
hosp_... | /ProgrammingAssignment3/best.R | no_license | musicakc/DataScienceCoursera | R | false | false | 1,463 | r | setwd("C:\\Users\\Amitoj\\Documents\\R Programming Coursera\\ProgrammingAssignment3")
list.files()
helper <- function(data, col_num, state) {
state_subset <- data[data[, 7]==state, ]
outcome_arr <- state_subset[, col_num]
min <- min(outcome_arr, na.rm=T)
min_index <- which(outcome_arr == min)
hosp_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{globalSelectize}
\alias{globalSelectize}
\title{Create a selectize input available from any page}
\usage{
globalSelectize(id, placeholder)
}
\arguments{
\item{id}{Character: input identifier}
\item{placeholder}{Character: input p... | /man/globalSelectize.Rd | no_license | zhangyupisa/psichomics | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{globalSelectize}
\alias{globalSelectize}
\title{Create a selectize input available from any page}
\usage{
globalSelectize(id, placeholder)
}
\arguments{
\item{id}{Character: input identifier}
\item{placeholder}{Character: input p... |
funcdirect="C:/Users/Cindy/Desktop/R scripts/Functions/"
load (paste(funcdirect,"CStask.Rfunc",sep=""))
load (paste(funcdirect,"mpcextract_blockSingle.Rfunc",sep=""))
load (paste(funcdirect,"mpcextractSingle.Rfunc",sep=""))
mpcdatadir = "C:/Users/Cindy/Desktop/Test/"
allfiles = list.files(mpcdatadir)
alldata = list... | /R functions/CStask_batchextract.r | no_license | vegmer/NMDA | R | false | false | 2,508 | r | funcdirect="C:/Users/Cindy/Desktop/R scripts/Functions/"
load (paste(funcdirect,"CStask.Rfunc",sep=""))
load (paste(funcdirect,"mpcextract_blockSingle.Rfunc",sep=""))
load (paste(funcdirect,"mpcextractSingle.Rfunc",sep=""))
mpcdatadir = "C:/Users/Cindy/Desktop/Test/"
allfiles = list.files(mpcdatadir)
alldata = list... |
#' Run a data scrape
#'
#' Executing a data scrape based on inputs of week, season, analysts and positions.
#' If no inputs are specified the user will be prompted.
#'
#' @note Historical scrapes are nearly impossible to do as very few if any sites
#' actually stores their historical projections. An attempt to scrape h... | /R Package/ffanalytics/R/runScrape.R | no_license | ajs098/FantasyFootballAnalyticsR | R | false | false | 4,356 | r | #' Run a data scrape
#'
#' Executing a data scrape based on inputs of week, season, analysts and positions.
#' If no inputs are specified the user will be prompted.
#'
#' @note Historical scrapes are nearly impossible to do as very few if any sites
#' actually stores their historical projections. An attempt to scrape h... |
#' Three stage group sequential adaptive design with subgroup selection
#'
#' \code{ASSISTant} is a package that implements a three-stage adaptive clinical trial design with
#' provision for subgroup selection where the treatment may be effective. The main design object
#' is an \code{R6} class that can be instantiated... | /R/ASSISTant.R | no_license | bnaras/ASSISTant | R | false | false | 3,577 | r | #' Three stage group sequential adaptive design with subgroup selection
#'
#' \code{ASSISTant} is a package that implements a three-stage adaptive clinical trial design with
#' provision for subgroup selection where the treatment may be effective. The main design object
#' is an \code{R6} class that can be instantiated... |
diceSim <- function(n=100)
{
totals<-rep(0,12)
for(i in 1:n)
{
x<-sample(1:6,1)
y<-sample(1:6,1)
totals[x+y]=totals[x+y]+1
}
totals
} | /2460/Quiz 1.r | no_license | MrRobot245/Cis-2460 | R | false | false | 165 | r | diceSim <- function(n=100)
{
totals<-rep(0,12)
for(i in 1:n)
{
x<-sample(1:6,1)
y<-sample(1:6,1)
totals[x+y]=totals[x+y]+1
}
totals
} |
# Joseph Lux
# Ch 12 Solutions
remove(list = ls())
library(mdsr)
db <- src_scidb("airlines")
flights <- tbl(db, "flights")
carriers <- tbl(db, "carriers")
flights
carriers
# Start of Excercise 12.1 (Using 2014 data)
flights %>%
filter(year == 2014 & month == 5 & day == 14 & dest == "DFW") %>%
summarize(N=n())
... | /Homework3.R | no_license | Joseph-Lux/3213-DataScience | R | false | false | 3,279 | r | # Joseph Lux
# Ch 12 Solutions
remove(list = ls())
library(mdsr)
db <- src_scidb("airlines")
flights <- tbl(db, "flights")
carriers <- tbl(db, "carriers")
flights
carriers
# Start of Excercise 12.1 (Using 2014 data)
flights %>%
filter(year == 2014 & month == 5 & day == 14 & dest == "DFW") %>%
summarize(N=n())
... |
## uiBreakIntoWords.R
## App BreakIntoWords tab (client side)
## by Phil Ferriere
menuItemBreakIntoWords = menuSubItem("Break Into Words", tabName = "tabNameBreakIntoWords")
tabItemBreakIntoWords = tabItem(
tabName = "tabNameBreakIntoWords",
fluidRow(column(width = 12, box(width = 12, title = "Quick Help", statu... | /uiBreakIntoWords.R | permissive | leoluyi/mscsshiny | R | false | false | 2,388 | r | ## uiBreakIntoWords.R
## App BreakIntoWords tab (client side)
## by Phil Ferriere
menuItemBreakIntoWords = menuSubItem("Break Into Words", tabName = "tabNameBreakIntoWords")
tabItemBreakIntoWords = tabItem(
tabName = "tabNameBreakIntoWords",
fluidRow(column(width = 12, box(width = 12, title = "Quick Help", statu... |
# Load data
f <- read.table('household_power_consumption.txt', header=TRUE, sep=';',
na.strings='?')
# Subset data
f <- subset(f, Date == '1/2/2007' | Date == '2/2/2007')
# Create a combined DateTime column
f$DateTime <- paste(f$Date, f$Time, sep=' ')
f$DateTime <- strptime(f$DateTime, format='%d/%m/... | /plot3.r | no_license | pnicewicz421/ExData_Plotting1 | R | false | false | 865 | r | # Load data
f <- read.table('household_power_consumption.txt', header=TRUE, sep=';',
na.strings='?')
# Subset data
f <- subset(f, Date == '1/2/2007' | Date == '2/2/2007')
# Create a combined DateTime column
f$DateTime <- paste(f$Date, f$Time, sep=' ')
f$DateTime <- strptime(f$DateTime, format='%d/%m/... |
set.seed(1);
data = rpois(n=10000, lambda=5)
png("Example_Poisson_lambda5.png")
hist(data, col="grey65", xlab="Observed Expression Value", main="Poisson Distribution", breaks=0:20)
dev.off()
png("Example_Poisson_Weights.png")
hist(data, col="grey65", xlab="Observed Expression Value", main="Poisson Distribution", brea... | /vignette/Make_Explanatory_Plots.R | no_license | hzmbucam/PoissonUMIs | R | false | false | 497 | r | set.seed(1);
data = rpois(n=10000, lambda=5)
png("Example_Poisson_lambda5.png")
hist(data, col="grey65", xlab="Observed Expression Value", main="Poisson Distribution", breaks=0:20)
dev.off()
png("Example_Poisson_Weights.png")
hist(data, col="grey65", xlab="Observed Expression Value", main="Poisson Distribution", brea... |
match_inep_muni <- function(locais_muni, inep_muni){
#this function operates on a single municipality
if(nrow(inep_muni) == 0){
return(NULL)
}
#Match on inep name
name_inep_dists <- stringdist::stringdistmatrix(locais_muni$normalized_name, inep_muni$norm_school, method = "lv")
#Normalize for string le... | /R/string_matching_geocode_fns.R | no_license | designermiran/geocode_br_polling_stations | R | false | false | 13,409 | r | match_inep_muni <- function(locais_muni, inep_muni){
#this function operates on a single municipality
if(nrow(inep_muni) == 0){
return(NULL)
}
#Match on inep name
name_inep_dists <- stringdist::stringdistmatrix(locais_muni$normalized_name, inep_muni$norm_school, method = "lv")
#Normalize for string le... |
group_by_MDF <-
function(chemicalid,mchemicaldata,corthresh,global_cor,mzid,max_diff_rt=10,level_module_isop_annot,
adduct_table,adduct_weights)
{
mchemicaldata$mz<-as.numeric(as.character(mchemicaldata$mz))
mchemicaldata$time<-as.numeric(as.character(mchemicaldata$time))
chemical_score<-(0)
#print(chemical... | /R/group_by_MDF.R | no_license | jaspershen/MSannotator | R | false | false | 15,610 | r | group_by_MDF <-
function(chemicalid,mchemicaldata,corthresh,global_cor,mzid,max_diff_rt=10,level_module_isop_annot,
adduct_table,adduct_weights)
{
mchemicaldata$mz<-as.numeric(as.character(mchemicaldata$mz))
mchemicaldata$time<-as.numeric(as.character(mchemicaldata$time))
chemical_score<-(0)
#print(chemical... |
rankall <- function(outcome, num = "best") {
## Read outcome data
outcome_measures <- read.csv("outcome-of-care-measures.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
#conversions
outcome <- tolower(outcome)
# convert best and worst rank to numeric
if (num == "best") nu... | /R Programming/week4/rankall.R | no_license | nsitaraman/datasciencecoursera | R | false | false | 1,525 | r | rankall <- function(outcome, num = "best") {
## Read outcome data
outcome_measures <- read.csv("outcome-of-care-measures.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
#conversions
outcome <- tolower(outcome)
# convert best and worst rank to numeric
if (num == "best") nu... |
library(IRISMustangMetrics)
### Name: spectrumMetric2Xml
### Title: Convert a SpectrumMetric into XML for the BSS
### Aliases: spectrumMetric2Xml
### ** Examples
## Not run:
##D # Open a connection to IRIS DMC webservices
##D iris <- new("IrisClient")
##D
##D # NOTE: The following trace has 1.728 million point... | /data/genthat_extracted_code/IRISMustangMetrics/examples/spectrumMetric2Xml.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,505 | r | library(IRISMustangMetrics)
### Name: spectrumMetric2Xml
### Title: Convert a SpectrumMetric into XML for the BSS
### Aliases: spectrumMetric2Xml
### ** Examples
## Not run:
##D # Open a connection to IRIS DMC webservices
##D iris <- new("IrisClient")
##D
##D # NOTE: The following trace has 1.728 million point... |
#Article: Cancer phase I trials design using drug combinations when a fraction of dose limiting toxicities is attributable to one or mode agents
#Authors: Jose L. Jimenez, Mourad Tighiouart and Mauro Gasparini.
#E-mail addresses: jose.jimenez@polito.it, Mourad.Tighiouart@cshs.org, gasparini@calvino.polito.it
#File: Jim... | /JimenezTighiouartGasparini_BiometricalJournalScript7.R | no_license | jjimenezm1989/Partial-toxicity-attributions-in-drug-combination-trials | R | false | false | 18,803 | r | #Article: Cancer phase I trials design using drug combinations when a fraction of dose limiting toxicities is attributable to one or mode agents
#Authors: Jose L. Jimenez, Mourad Tighiouart and Mauro Gasparini.
#E-mail addresses: jose.jimenez@polito.it, Mourad.Tighiouart@cshs.org, gasparini@calvino.polito.it
#File: Jim... |
# Close windows and clear variables
graphics.off()
rm(list = ls(all = TRUE))
# Install Packages
libraries = c("hexbin")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {install.packages(x)})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# setting (font, size etc.) for paper or pr... | /ARRhexage/ARRhexage.R | no_license | QuantLet/ARR | R | false | false | 4,841 | r | # Close windows and clear variables
graphics.off()
rm(list = ls(all = TRUE))
# Install Packages
libraries = c("hexbin")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {install.packages(x)})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# setting (font, size etc.) for paper or pr... |
# Making a data set divided in units of 2 days, which a corresponding (independent) max RH values
#
#' Function to obtain data set with resolution of 2 days
#' @import data.table
#'
#' @export
data2d <- function(data,STN1=235,STN2=260,STN3=280,STN4=310,STN5=380,SW=FALSE){
tmp <- data
tmp$d2 <- 0
tmp$d2[1] <- 1
... | /R/data2d.R | no_license | tanxuezhi/HourlyPrecipExtr | R | false | false | 1,697 | r | # Making a data set divided in units of 2 days, which a corresponding (independent) max RH values
#
#' Function to obtain data set with resolution of 2 days
#' @import data.table
#'
#' @export
data2d <- function(data,STN1=235,STN2=260,STN3=280,STN4=310,STN5=380,SW=FALSE){
tmp <- data
tmp$d2 <- 0
tmp$d2[1] <- 1
... |
testlist <- list(id = integer(0), x = c(1.90359856625529e+185, 7.29111993354965e-304, NaN, 2.52467545024877e-321, 0, 0, 0, 9.61235670663551e+281, 3.96573944649364e-317, 0, 4.53801546776667e+279, 9.80104716176339e+281, 2.88109526018606e+284, 7.06327445644536e-304, 7.1071553048134e-15, 6.8181059126092e-322, 0, -3.275... | /ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1609955772-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,280 | r | testlist <- list(id = integer(0), x = c(1.90359856625529e+185, 7.29111993354965e-304, NaN, 2.52467545024877e-321, 0, 0, 0, 9.61235670663551e+281, 3.96573944649364e-317, 0, 4.53801546776667e+279, 9.80104716176339e+281, 2.88109526018606e+284, 7.06327445644536e-304, 7.1071553048134e-15, 6.8181059126092e-322, 0, -3.275... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotFeatureData}
\alias{plotFeatureData}
\title{Plot feature (gene) data from an SCESet object}
\usage{
plotFeatureData(object, aesth = aes_string(x = "n_cells_exprs", y =
"prop_total_counts"), ...)
}
\arguments{
\item{obje... | /man/plotFeatureData.Rd | permissive | 12379Monty/scater | R | false | true | 1,801 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotFeatureData}
\alias{plotFeatureData}
\title{Plot feature (gene) data from an SCESet object}
\usage{
plotFeatureData(object, aesth = aes_string(x = "n_cells_exprs", y =
"prop_total_counts"), ...)
}
\arguments{
\item{obje... |
\name{progeny}
\alias{progeny}
\encoding{UTF-8}
\docType{data}
\title{
\emph{Sitophilus zeamais} progeny
}
\description{
Progeny of \emph{Sitophilus zeamais}, the maize weevil, when treated with different organic extracts
}
\usage{data(progeny)}
\format{
A data frame with 40 observations on the following 2 variables... | /man/progeny.Rd | no_license | cran/hnp | R | false | false | 2,646 | rd | \name{progeny}
\alias{progeny}
\encoding{UTF-8}
\docType{data}
\title{
\emph{Sitophilus zeamais} progeny
}
\description{
Progeny of \emph{Sitophilus zeamais}, the maize weevil, when treated with different organic extracts
}
\usage{data(progeny)}
\format{
A data frame with 40 observations on the following 2 variables... |
## -----------------------------------------------------------------------------
##
library(IP)
## IPv4
ipv4("192.168.0.0")
## IPv4 range using CIDR notation
ipv4r("192.168.0.0/16")
## same thing using dash notation
ipv4r("192.168.0.0-192.168.255.255")
## same thing using an IPv4 object and an integer giving the number... | /inst/doc/ip-intro.R | no_license | cran/IP | R | false | false | 4,294 | r | ## -----------------------------------------------------------------------------
##
library(IP)
## IPv4
ipv4("192.168.0.0")
## IPv4 range using CIDR notation
ipv4r("192.168.0.0/16")
## same thing using dash notation
ipv4r("192.168.0.0-192.168.255.255")
## same thing using an IPv4 object and an integer giving the number... |
class <- c("character", "character", rep("numeric",7))
power <- read.table("household_power_consumption.txt", colClasses=class, header=TRUE, sep = ";", comment.char = "", na.strings="?")
newPower <- power[66637:69517,]
dateTime <- as.POSIXlt(paste(as.Date(newPower$Date,format="%d/%m/%Y"), newPower$Time, sep = " "))
... | /plot3.R | no_license | kschertz/ExData_Plotting1 | R | false | false | 718 | r | class <- c("character", "character", rep("numeric",7))
power <- read.table("household_power_consumption.txt", colClasses=class, header=TRUE, sep = ";", comment.char = "", na.strings="?")
newPower <- power[66637:69517,]
dateTime <- as.POSIXlt(paste(as.Date(newPower$Date,format="%d/%m/%Y"), newPower$Time, sep = " "))
... |
#Statistics and Data Analysis for Financial Engineering
#Chapter 16: Portfolio Selection
library(Ecdat)
library(quadprog)
library(lpSolve)
library(linprog)
#16.6 Risk-Efficiency Portfolios with N Risky Asstes
data(CRSPday)
R <- 100 * CRSPday[, 4:6]
mean_vect <- apply(R, 2, mean)
cov_vect <- cov(R)
sd_vect <- sqrt(dia... | /solve.QP.R | no_license | hankHeish/TSSCO | R | false | false | 6,551 | r | #Statistics and Data Analysis for Financial Engineering
#Chapter 16: Portfolio Selection
library(Ecdat)
library(quadprog)
library(lpSolve)
library(linprog)
#16.6 Risk-Efficiency Portfolios with N Risky Asstes
data(CRSPday)
R <- 100 * CRSPday[, 4:6]
mean_vect <- apply(R, 2, mean)
cov_vect <- cov(R)
sd_vect <- sqrt(dia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importMIDN.R
\name{importMIDN}
\alias{importMIDN}
\title{importMIDN}
\usage{
importMIDN(Dir)
}
\arguments{
\item{Dir}{The directory where the data is found}
}
\value{
Returns a list with 12 \code{NPSForVeg} objects, one for each park.
}
\desc... | /man/importMIDN.Rd | no_license | govtmirror/NPSForVeg | R | false | true | 530 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importMIDN.R
\name{importMIDN}
\alias{importMIDN}
\title{importMIDN}
\usage{
importMIDN(Dir)
}
\arguments{
\item{Dir}{The directory where the data is found}
}
\value{
Returns a list with 12 \code{NPSForVeg} objects, one for each park.
}
\desc... |
## ----echo=TRUE----------------------------------------------------------------
caesar::caesar(text = "As a rule, men worry more about what they can't see than about what they can.")
## ----echo=TRUE----------------------------------------------------------------
caesar::caesar(text = c("As a rule, men worry mo... | /inst/doc/Encrypting-and-decrypting-text.R | no_license | cran/caesar | R | false | false | 1,992 | r | ## ----echo=TRUE----------------------------------------------------------------
caesar::caesar(text = "As a rule, men worry more about what they can't see than about what they can.")
## ----echo=TRUE----------------------------------------------------------------
caesar::caesar(text = c("As a rule, men worry mo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScoreCard.R
\name{getScoreCard2}
\alias{getScoreCard2}
\title{Wylicza punkty score'owe na podstawie parametrów modelu}
\usage{
getScoreCard2(model, from, to, test = FALSE)
}
\arguments{
\item{model}{model, którego parametry zostaną przekształ... | /man/getScoreCard2.Rd | no_license | michaldanaj/MDBinom | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ScoreCard.R
\name{getScoreCard2}
\alias{getScoreCard2}
\title{Wylicza punkty score'owe na podstawie parametrów modelu}
\usage{
getScoreCard2(model, from, to, test = FALSE)
}
\arguments{
\item{model}{model, którego parametry zostaną przekształ... |
checkIntensityFile <- function(path=".",
filename,
file.type=c("gds", "ncdf"),
snp.annotation,
scan.annotation,
sep.type,
ski... | /R/checkIntensityFile.R | no_license | DanielEWeeks/GWASTools | R | false | false | 13,652 | r | checkIntensityFile <- function(path=".",
filename,
file.type=c("gds", "ncdf"),
snp.annotation,
scan.annotation,
sep.type,
ski... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_gam_1d.R
\name{plot_gam_1d}
\alias{plot_gam_1d}
\title{Plot smooth parameters estimated from Generalized Additive Models (GAM) based on ggplot2}
\usage{
plot_gam_1d(
gam_model = NULL,
select_smooth_terms = NULL,
columns = 2,
col_... | /man/plot_gam_1d.Rd | permissive | deandevl/RgamPkg | R | false | true | 3,100 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_gam_1d.R
\name{plot_gam_1d}
\alias{plot_gam_1d}
\title{Plot smooth parameters estimated from Generalized Additive Models (GAM) based on ggplot2}
\usage{
plot_gam_1d(
gam_model = NULL,
select_smooth_terms = NULL,
columns = 2,
col_... |
app <- ShinyDriver$new("../../")
app$snapshotInit("mytest")
app$setInputs(api = "aspirin")
app$setInputs(start_date = "2004-01-15")
app$setInputs(end_date = "2021-02-28")
app$setInputs(seriousness = "1")
app$setInputs(submit = "click")
Sys.sleep(2) # sleeping past notifications
app$snapshotDownload("download_data")
ap... | /tests/shinytest/mytest.R | no_license | philbowsher/philgatests | R | false | false | 633 | r | app <- ShinyDriver$new("../../")
app$snapshotInit("mytest")
app$setInputs(api = "aspirin")
app$setInputs(start_date = "2004-01-15")
app$setInputs(end_date = "2021-02-28")
app$setInputs(seriousness = "1")
app$setInputs(submit = "click")
Sys.sleep(2) # sleeping past notifications
app$snapshotDownload("download_data")
ap... |
\name{formula1}
\alias{formula1}
\alias{formula_1}
\alias{formula_one}
\alias{formula1_points_systems}
\alias{F1}
\alias{F1_2014}
\alias{F1_table_2016}
\alias{F1_table_2017}
\alias{F1_table_2018}
\alias{F1_table_2019}
\alias{formula1_table_2017}
\alias{F1_points_2017}
\alias{formula1_points_2017}
\alias{formula1_2017_t... | /man/formula1.Rd | no_license | R-D-Hyper-2-League-of-Legends/hyper2 | R | false | false | 1,912 | rd | \name{formula1}
\alias{formula1}
\alias{formula_1}
\alias{formula_one}
\alias{formula1_points_systems}
\alias{F1}
\alias{F1_2014}
\alias{F1_table_2016}
\alias{F1_table_2017}
\alias{F1_table_2018}
\alias{F1_table_2019}
\alias{formula1_table_2017}
\alias{F1_points_2017}
\alias{formula1_points_2017}
\alias{formula1_2017_t... |
##############################################
## Author: Indrajit Haridas
## Date: 2018-26-04
## Title: Neural Network - Mini Project
## Purpose: Assignment 3
##############################################
#### (1) Sigmoid activation function####
sigmoid <- function(x){1.0/(1.0+exp(-x))}
#### (2)... | /Neural Netwroks.R | no_license | Indrajitharidas/Basic-Neural-network | R | false | false | 2,406 | r | ##############################################
## Author: Indrajit Haridas
## Date: 2018-26-04
## Title: Neural Network - Mini Project
## Purpose: Assignment 3
##############################################
#### (1) Sigmoid activation function####
sigmoid <- function(x){1.0/(1.0+exp(-x))}
#### (2)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count2d.R
\name{count2d}
\alias{count2d}
\title{Provides the counts in 2D histograms.}
\usage{
count2d(xb, yb, nb)
}
\arguments{
\item{xb}{a vector along \code{x} to be binned in 2D.}
\item{yb}{a vector along \code{y} to be binned in 2D.}
\... | /man/count2d.Rd | permissive | HolaTeo/additive-splines | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count2d.R
\name{count2d}
\alias{count2d}
\title{Provides the counts in 2D histograms.}
\usage{
count2d(xb, yb, nb)
}
\arguments{
\item{xb}{a vector along \code{x} to be binned in 2D.}
\item{yb}{a vector along \code{y} to be binned in 2D.}
\... |
#Day 06#
##########################################
#1.Visualizing distribution---continued
##(Fundamentals of datavis: Chapter 7)
##########################################
# copied from Day05
head(iris)
colnames(iris)=c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width","Species")
ggplot()+
geo... | /practice/day06secA.R | no_license | jessica7890/R-visualization- | R | false | false | 6,845 | r | #Day 06#
##########################################
#1.Visualizing distribution---continued
##(Fundamentals of datavis: Chapter 7)
##########################################
# copied from Day05
head(iris)
colnames(iris)=c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width","Species")
ggplot()+
geo... |
## This script provides visualization for the data products processed
## in the build_data script
## These should be compared with assumptions made in the STAN model
## to ensure that the assumptions made are appropriate given the data
## Prepare workspace
rm(list = ls())
library(ggplot2)
library(reshape2)
library(d... | /r/Data_viz_SYLVANIA.R | no_license | amwillson/npp-stat-model | R | false | false | 5,439 | r | ## This script provides visualization for the data products processed
## in the build_data script
## These should be compared with assumptions made in the STAN model
## to ensure that the assumptions made are appropriate given the data
## Prepare workspace
rm(list = ls())
library(ggplot2)
library(reshape2)
library(d... |
library(shiny)
library(sassr)
library(colourpicker)
input_scss <- "new-style.scss"
output_css <- "new-style.css"
style_list <- list(
`$color` = "#FFFFFF"
)
compile_sass(input_scss, output = output_css)
ui <- fluidPage(
headerPanel("Sassr Example"),
sidebarPanel(
colourInput("color", "Background Color", v... | /139-sassr-font/app.R | permissive | eniyei/shiny-examples | R | false | false | 1,342 | r | library(shiny)
library(sassr)
library(colourpicker)
input_scss <- "new-style.scss"
output_css <- "new-style.css"
style_list <- list(
`$color` = "#FFFFFF"
)
compile_sass(input_scss, output = output_css)
ui <- fluidPage(
headerPanel("Sassr Example"),
sidebarPanel(
colourInput("color", "Background Color", v... |
source("incl/start.R")
library("listenv")
message("*** transparent() ...")
## No global variables
f <- try(transparent({
42L
}), silent=FALSE)
print(f)
stopifnot(inherits(f, "UniprocessFuture"), !f$lazy)
print(resolved(f))
y <- value(f)
print(y)
stopifnot(y == 42L)
plan(transparent)
## No global variables
f <- t... | /tests/transparent.R | no_license | tdhock/future | R | false | false | 632 | r | source("incl/start.R")
library("listenv")
message("*** transparent() ...")
## No global variables
f <- try(transparent({
42L
}), silent=FALSE)
print(f)
stopifnot(inherits(f, "UniprocessFuture"), !f$lazy)
print(resolved(f))
y <- value(f)
print(y)
stopifnot(y == 42L)
plan(transparent)
## No global variables
f <- t... |
## Reads data into R
hpc <- read.table("household_power_consumption.txt", na.strings = "?", sep = ";", header = TRUE)
## load necesary packages
library(lubridate); library(dplyr)
## convert Date column in to a "date" class
## and filter the first 2 days of february
hpc[,1] <- dmy(hpc$Date)
hpc <- filter(hpc, Date >= "... | /week 1/plot2.R | no_license | enmanuelenrique/Exploratory_data_analysis | R | false | false | 617 | r |
## Reads data into R
hpc <- read.table("household_power_consumption.txt", na.strings = "?", sep = ";", header = TRUE)
## load necesary packages
library(lubridate); library(dplyr)
## convert Date column in to a "date" class
## and filter the first 2 days of february
hpc[,1] <- dmy(hpc$Date)
hpc <- filter(hpc, Date >= "... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lpo.R
\name{crossv_lpo}
\alias{crossv_lpo}
\alias{crossv_lpo.data.frame}
\alias{crossv_lpo.grouped_df}
\alias{crossv_loo}
\title{Generate cross-validated leave-p-out test/training pairs}
\usage{
crossv_lpo(data, p, ...)
\method{crossv_lpo}{d... | /man/crossv_lpo.Rd | no_license | jrnold/resamplr | R | false | true | 2,533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lpo.R
\name{crossv_lpo}
\alias{crossv_lpo}
\alias{crossv_lpo.data.frame}
\alias{crossv_lpo.grouped_df}
\alias{crossv_loo}
\title{Generate cross-validated leave-p-out test/training pairs}
\usage{
crossv_lpo(data, p, ...)
\method{crossv_lpo}{d... |
##################################################################################
# Program to convert to proportions##############################################
# 3. Apply proportions to lifetable mx at the national level#####################
# 4. I am interested in 20 years, from 1995-2015#########################... | /R/6_Supplemental_ASMR_IHD.R | no_license | jmaburto/Violence-and-Lifespan-variation | R | false | false | 4,370 | r | ##################################################################################
# Program to convert to proportions##############################################
# 3. Apply proportions to lifetable mx at the national level#####################
# 4. I am interested in 20 years, from 1995-2015#########################... |
#' @export "check_timing"
"check_timing" <- function(object) {
if (FALSE){
cat("hrs:\n") ; print(object@hrs)
cat("mins:\n") ; print(object@mins)
cat("secs:\n") ; print(object@secs)
cat("sign:\n") ; print(object@sign)
cat("raw:\n") ; print(object@raw)
}
errors <- character()
len_h <- length(... | /R/timing.R | no_license | pdbaines/timing | R | false | false | 10,663 | r |
#' @export "check_timing"
"check_timing" <- function(object) {
if (FALSE){
cat("hrs:\n") ; print(object@hrs)
cat("mins:\n") ; print(object@mins)
cat("secs:\n") ; print(object@secs)
cat("sign:\n") ; print(object@sign)
cat("raw:\n") ; print(object@raw)
}
errors <- character()
len_h <- length(... |
#' Missing Values
#'
#' Indicates which elements are missing: methods for "lcens," "mcens," and "qw" data.
#'
#'
#' @aliases is.na.lcens is.na.mcens is.na.qw
#' @param x the object to be tested.
#' @return A logical vector of the same length as its argument \code{x},
#'containing TRUE for those elements marked NA and F... | /R/is.na.R | permissive | Zhenglei-BCS/smwrQW | R | false | false | 890 | r | #' Missing Values
#'
#' Indicates which elements are missing: methods for "lcens," "mcens," and "qw" data.
#'
#'
#' @aliases is.na.lcens is.na.mcens is.na.qw
#' @param x the object to be tested.
#' @return A logical vector of the same length as its argument \code{x},
#'containing TRUE for those elements marked NA and F... |
### This plot will make a combined frequency distribution plot of FST and HZ of Green Crab Data -------
#load libraries
library(ggplot2)
#load data
dat=read.csv("Locus_Fst.csv",sep=",")
dat_Het=dat[,c("Locus","Het")];colnames(dat_Het)[2]="Value";dat_Het$metric="Hetero"
dat_FST=dat[,c("Locus","FST")];colnames(dat_FST... | /Het_FST_Plots.R | no_license | rystanley/Collaborative_R_Stuff | R | false | false | 1,546 | r | ### This plot will make a combined frequency distribution plot of FST and HZ of Green Crab Data -------
#load libraries
library(ggplot2)
#load data
dat=read.csv("Locus_Fst.csv",sep=",")
dat_Het=dat[,c("Locus","Het")];colnames(dat_Het)[2]="Value";dat_Het$metric="Hetero"
dat_FST=dat[,c("Locus","FST")];colnames(dat_FST... |
data_path <- "./twitterdata"
rter_id <- read.csv(paste(data_path, "tweets", "612121494232145920", sep = "/"))$id
# 609418768578674688
# 628783838190305280
rter <- c()
for(id in rter_id) {
rter <- rbind(rter, rters[rters$id == id,])
}
rter_id <- c(fusion$id, rev(intersect(rter_id, dir(paste(data_path, "friends",... | /test.R | no_license | SYAN83/twitter_network | R | false | false | 1,588 | r | data_path <- "./twitterdata"
rter_id <- read.csv(paste(data_path, "tweets", "612121494232145920", sep = "/"))$id
# 609418768578674688
# 628783838190305280
rter <- c()
for(id in rter_id) {
rter <- rbind(rter, rters[rters$id == id,])
}
rter_id <- c(fusion$id, rev(intersect(rter_id, dir(paste(data_path, "friends",... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/utilities.R
\name{get_valid_curency_codes}
\alias{get_valid_curency_codes}
\title{Returns all valid currency codes as stored within the Faraday warehouse}
\usage{
get_valid_curency_codes()
}
\description{
Returns all valid currency co... | /man/get_valid_curency_codes.Rd | no_license | faradaypricing/faraday-pricing | R | false | false | 405 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/utilities.R
\name{get_valid_curency_codes}
\alias{get_valid_curency_codes}
\title{Returns all valid currency codes as stored within the Faraday warehouse}
\usage{
get_valid_curency_codes()
}
\description{
Returns all valid currency co... |
pollutantmean<-function(directory,pollutant,id=1:332){
data = numeric()
for(i in id){
#paste is for string concatenation in R
#formatC foramt number to 3 digit
readFile<-read.csv(paste(directory,"/",formatC(i,width = 3, flag="0"),".csv",sep = ""))
data<-c(data,readFile[[pollutant]])
}
return(me... | /course2/week2/project.R | no_license | virajbhalala/courseraDataScience | R | false | false | 1,188 | r | pollutantmean<-function(directory,pollutant,id=1:332){
data = numeric()
for(i in id){
#paste is for string concatenation in R
#formatC foramt number to 3 digit
readFile<-read.csv(paste(directory,"/",formatC(i,width = 3, flag="0"),".csv",sep = ""))
data<-c(data,readFile[[pollutant]])
}
return(me... |
\name{options}
\alias{terraOptions}
\title{Options}
\description{
Class and methods for showing and setting general options for terra.
}
\usage{
terraOptions(...)
}
\arguments{
\item{...}{additional arguments. Can be use to set options (see examples). When empty, the current options are shown}... | /terra/man/terraOptions.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 1,142 | rd | \name{options}
\alias{terraOptions}
\title{Options}
\description{
Class and methods for showing and setting general options for terra.
}
\usage{
terraOptions(...)
}
\arguments{
\item{...}{additional arguments. Can be use to set options (see examples). When empty, the current options are shown}... |
#' @importFrom sjmisc add_variables
plot_type_est <- function(type,
ci.lvl,
se,
tf,
model,
terms,
group.terms,
rm.terms,
... | /R/plot_type_est.R | no_license | strengejacke/sjPlot | R | false | false | 3,991 | r | #' @importFrom sjmisc add_variables
plot_type_est <- function(type,
ci.lvl,
se,
tf,
model,
terms,
group.terms,
rm.terms,
... |
parseFileName<-function(filePath,isPath=T)
{
if(isPath)
{
fileName<-strsplit(filePath,"/")[[1]]#parse the path
fileName<-fileName[length(fileName)]#get last element as filename
}else
{
fileName<-filePath
}
sepFilename<-strsplit(fileName,".",fixed=TRUE)[[1]]
extName<-sepFilename[length(sepFilename)]
file... | /Rcode/parseFileName.r | no_license | duxiuxia/Gas2 | R | false | false | 420 | r | parseFileName<-function(filePath,isPath=T)
{
if(isPath)
{
fileName<-strsplit(filePath,"/")[[1]]#parse the path
fileName<-fileName[length(fileName)]#get last element as filename
}else
{
fileName<-filePath
}
sepFilename<-strsplit(fileName,".",fixed=TRUE)[[1]]
extName<-sepFilename[length(sepFilename)]
file... |
plotSamplePaths <- function(given,
particles.l,
particles.ystar) {
L = dim(particles.l)[2]
N = dim(particles.l)[1]
dimnames(particles.ystar) = list(sample = 1:N, step = 1:L, point = given$xstar)
df0 <- as.data.frame.table(particles.ystar)
names(df0)[4] = "y"
s... | /plotSamplePaths.R | no_license | 561GH/masters | R | false | false | 1,012 | r | plotSamplePaths <- function(given,
particles.l,
particles.ystar) {
L = dim(particles.l)[2]
N = dim(particles.l)[1]
dimnames(particles.ystar) = list(sample = 1:N, step = 1:L, point = given$xstar)
df0 <- as.data.frame.table(particles.ystar)
names(df0)[4] = "y"
s... |
# Librerias
library(tidyverse)
library(moderndive)
# 1. Simular una normal
calif <- rnorm(n = 100000,
mean = 5,
sd = 1.5)
calif2 <- rnorm(n = 1e5,
mean = 3,
sd = 0.9)
calif3 <- rnorm(n = 1e5,
mean = 7,
sd = 1.5)
# Lo... | /Laboratorio 12/scriptSesion12.R | no_license | JuveCampos/PeriodismoDeDatos2020 | R | false | false | 2,486 | r | # Librerias
library(tidyverse)
library(moderndive)
# 1. Simular una normal
calif <- rnorm(n = 100000,
mean = 5,
sd = 1.5)
calif2 <- rnorm(n = 1e5,
mean = 3,
sd = 0.9)
calif3 <- rnorm(n = 1e5,
mean = 7,
sd = 1.5)
# Lo... |
##============================================================================##
## ##
## A. Tredennick, P. Adler, and F. Adler ##
## "The relationship between species richness and ecosystem vari... | /modelCode/SI_simulations/simulate_storage_effect_function_8species.R | permissive | atredennick/Coexistence-Stability | R | false | false | 6,937 | r | ##============================================================================##
## ##
## A. Tredennick, P. Adler, and F. Adler ##
## "The relationship between species richness and ecosystem vari... |
suppressPackageStartupMessages(library("tidyverse"))
library("tidyverse")
# Create a folder for the phenotype data
source('02_library/get_script_path.R') # function to retrieve path of this script.
output_dir <- paste(get_script_path(), "phenotypes/", sep = "/") # only works when called via Rscript
if(!dir.exists(outp... | /04_analyses/03_condition_on_top_snp/format_phenotypes.R | no_license | ellisztamas/tumv_ms | R | false | false | 1,450 | r | suppressPackageStartupMessages(library("tidyverse"))
library("tidyverse")
# Create a folder for the phenotype data
source('02_library/get_script_path.R') # function to retrieve path of this script.
output_dir <- paste(get_script_path(), "phenotypes/", sep = "/") # only works when called via Rscript
if(!dir.exists(outp... |
data_full <-
read.csv(
"household_power_consumption.txt",
header = T,
sep = ';',
na.strings = "?",
nrows = 2075259,
check.names = F,
stringsAsFactors = F,
comment.char = "",
quote = '\"'
)
data1 <- subset(data_full, Date %in% c("1/2/2007", "2/2/2007"))
data1$Date <- as.Date(data1... | /plot4.R | no_license | jhd6242/ExData_Plotting1 | R | false | false | 1,368 | r | data_full <-
read.csv(
"household_power_consumption.txt",
header = T,
sep = ';',
na.strings = "?",
nrows = 2075259,
check.names = F,
stringsAsFactors = F,
comment.char = "",
quote = '\"'
)
data1 <- subset(data_full, Date %in% c("1/2/2007", "2/2/2007"))
data1$Date <- as.Date(data1... |
#### ANOVA 1 TB ####
deseq_TB_AOV1 <- com_merged_raw_list %>%
filter(!str_detect(INVENTORY, "OTU")) %>%
mutate(results = map(data, function(data){
tab <- data %>%
mutate(TAXON = fct_explicit_na(TAXON, "Unclassified")) %>%
spread_cdm(LAC_POS, TAXON, COUNT) %>%
t()
cdat <- colnames(tab... | /R/AN_DESeq2.R | no_license | fkeck/top_bottom | R | false | false | 1,622 | r |
#### ANOVA 1 TB ####
deseq_TB_AOV1 <- com_merged_raw_list %>%
filter(!str_detect(INVENTORY, "OTU")) %>%
mutate(results = map(data, function(data){
tab <- data %>%
mutate(TAXON = fct_explicit_na(TAXON, "Unclassified")) %>%
spread_cdm(LAC_POS, TAXON, COUNT) %>%
t()
cdat <- colnames(tab... |
#' Predict mechanical loading
#'
#' Predict either ground reaction force or loading rate, or both, based on
#' accelerometer data.
#'
#' @param data An \code{impactr_data} object, as obtained with
#' \link[=read_acc]{read_acc()}.
#' @param outcome A character string. Can be either "grf" (for ground reaction
#' forc... | /R/predict.R | permissive | verasls/impactr | R | false | false | 14,199 | r | #' Predict mechanical loading
#'
#' Predict either ground reaction force or loading rate, or both, based on
#' accelerometer data.
#'
#' @param data An \code{impactr_data} object, as obtained with
#' \link[=read_acc]{read_acc()}.
#' @param outcome A character string. Can be either "grf" (for ground reaction
#' forc... |
set.seed=8675309
rater1<-sample.int(98,98,FALSE,NULL)
rater2<-sample.int(98,98,FALSE,NULL)
rater3<-sample.int(98,98,FALSE,NULL)
rater4<-sample.int(98,98,FALSE,NULL)
Orders<-cbind(rater1,rater2,rater3,rater4)
write.table(Orders, "clipboard", sep="\t") | /Randomization.R | no_license | EricLeingang/Personal-Essay-Project | R | false | false | 250 | r | set.seed=8675309
rater1<-sample.int(98,98,FALSE,NULL)
rater2<-sample.int(98,98,FALSE,NULL)
rater3<-sample.int(98,98,FALSE,NULL)
rater4<-sample.int(98,98,FALSE,NULL)
Orders<-cbind(rater1,rater2,rater3,rater4)
write.table(Orders, "clipboard", sep="\t") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loglikelihood.R
\name{loglikelihood}
\alias{loglikelihood}
\title{Compute log-likelihood of a GMVAR model using parameter vector}
\usage{
loglikelihood(
data,
p,
M,
params,
conditional = TRUE,
parametrization = c("intercept", "mea... | /man/loglikelihood.Rd | no_license | yangkedc1984/gmvarkit | R | false | true | 10,842 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loglikelihood.R
\name{loglikelihood}
\alias{loglikelihood}
\title{Compute log-likelihood of a GMVAR model using parameter vector}
\usage{
loglikelihood(
data,
p,
M,
params,
conditional = TRUE,
parametrization = c("intercept", "mea... |
# Load in libraries
# install.packages("nflreadR")
# install.packages("tidyverse")
library(nflreadr)
library(tidyverse)
# Load play-by-play
pbp <- nflreadr::load_pbp(seasons = 2020:2021)
# Load rosters
roster <- nflreadr::load_rosters(seasons = 2020:2021)
# Load snaps
snaps <- nflreadr::load_snap_counts(seasons = 2020... | /fantasy_football.R | no_license | avkrishnamurthy/fantasy_football_walkthrough | R | false | false | 425 | r | # Load in libraries
# install.packages("nflreadR")
# install.packages("tidyverse")
library(nflreadr)
library(tidyverse)
# Load play-by-play
pbp <- nflreadr::load_pbp(seasons = 2020:2021)
# Load rosters
roster <- nflreadr::load_rosters(seasons = 2020:2021)
# Load snaps
snaps <- nflreadr::load_snap_counts(seasons = 2020... |
#!/applications/R/R-3.5.0/bin/Rscript
# Plot smoothed library-size-normalized coverage in windows along chromosomes
# Usage:
# ./chrProfilesPlot_sRNAseq_unsmoothed.R CS+_2_LIB18613_LDI16228 both "_20nt" "20-nt" 10kb 10000 "grey30" 221118 48
libName1 <- "CS+_2_LIB18613_LDI16228"
align <- "both"
name1 <- "_20nt"
nameY... | /chromosomeProfiles/TO_BE_AMENDED_chrProfilesPlot_sRNAseq_unsmoothed.R | no_license | ajtock/wheat | R | false | false | 4,656 | r | #!/applications/R/R-3.5.0/bin/Rscript
# Plot smoothed library-size-normalized coverage in windows along chromosomes
# Usage:
# ./chrProfilesPlot_sRNAseq_unsmoothed.R CS+_2_LIB18613_LDI16228 both "_20nt" "20-nt" 10kb 10000 "grey30" 221118 48
libName1 <- "CS+_2_LIB18613_LDI16228"
align <- "both"
name1 <- "_20nt"
nameY... |
library(shiny)
# Define UI
shinyUI(pageWithSidebar(
# Application title
headerPanel("Dynamics Simulation of Honey Bee Population and Food Storage"),
sidebarPanel(
wellPanel(tags$h3("Axis"),
sliderInput("tmaxday", "Duration (Days):",
value=1000, min=365, max=4000,... | /ui.R | no_license | nanhung/beerisk | R | false | false | 2,769 | r | library(shiny)
# Define UI
shinyUI(pageWithSidebar(
# Application title
headerPanel("Dynamics Simulation of Honey Bee Population and Food Storage"),
sidebarPanel(
wellPanel(tags$h3("Axis"),
sliderInput("tmaxday", "Duration (Days):",
value=1000, min=365, max=4000,... |
#March 2020 avery.richards@berkeley.edu
###building out SFODM
library(RSocrata)
library(ggplot2)
library(tmap)
library(sf) #simple features.
library(dplyr)
library(tidyverse) #may not be neccessary.
###San Francisco open data 311 dataset### Very large dataset, allow time to load. Longer than get a cup of coffee time... | /SF_ODM_GRAPHS.R | no_license | Averysaurus/SF_ODM | R | false | false | 5,051 | r | #March 2020 avery.richards@berkeley.edu
###building out SFODM
library(RSocrata)
library(ggplot2)
library(tmap)
library(sf) #simple features.
library(dplyr)
library(tidyverse) #may not be neccessary.
###San Francisco open data 311 dataset### Very large dataset, allow time to load. Longer than get a cup of coffee time... |
library(ape)
testtree <- read.tree("7420_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="7420_4_unrooted.txt") | /codeml_files/newick_trees_processed/7420_4/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("7420_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="7420_4_unrooted.txt") |
# Hierarchical Clustering
# Importing the dataset
dataset <- read.csv("Mall_Customers.csv")
X <- dataset[, 4:5]
# Using dendogram to determine the optimal number of clusters
dendogram = hclust(dist(X, method = "euclidean"), method = "ward.D")
plot(dendogram,
main = paste("Dendogram"),
xlab = "Customers",
... | /Clustering/Hierarchical_clustering/hc.R | no_license | htutk/machine_learning | R | false | false | 816 | r | # Hierarchical Clustering
# Importing the dataset
dataset <- read.csv("Mall_Customers.csv")
X <- dataset[, 4:5]
# Using dendogram to determine the optimal number of clusters
dendogram = hclust(dist(X, method = "euclidean"), method = "ward.D")
plot(dendogram,
main = paste("Dendogram"),
xlab = "Customers",
... |
#########################################################################
# Example of RBF network
# import dataset
train_set <- read.table ( "train.csv" , sep="," , header = TRUE )
test_set <- read.table ( "test.csv" , sep="," , header= TRUE )
head ( train_set)
plot( train_set$x1 , tra... | /Example.R | no_license | zanocom/RBF_Network | R | false | false | 1,340 | r | #########################################################################
# Example of RBF network
# import dataset
train_set <- read.table ( "train.csv" , sep="," , header = TRUE )
test_set <- read.table ( "test.csv" , sep="," , header= TRUE )
head ( train_set)
plot( train_set$x1 , tra... |
library(shiny)
# Define server logic required to draw a histogram
function(input, output) {
output$rPlot <- renderPlot({
#setwd("\\\\moray.jacks.local/william.alsaker/Documents and Settings/My Documents/STAT 702/Final Project")
rgdt.lag<-read.csv(file="rgdtlag.csv", header... | /server.R | no_license | wcalsaker/Region | R | false | false | 4,324 | r |
library(shiny)
# Define server logic required to draw a histogram
function(input, output) {
output$rPlot <- renderPlot({
#setwd("\\\\moray.jacks.local/william.alsaker/Documents and Settings/My Documents/STAT 702/Final Project")
rgdt.lag<-read.csv(file="rgdtlag.csv", header... |
## S3 method
project <- function (object,...) UseMethod("project")
## Calculate Kullback-Leibler projection from ssanova objects
project.ssanova <- function(object,include,...)
{
if (class(object)[1]=="ssanova0")
stop("gss error: square error projection is not implemented for ssanova0")
nobs <- nrow(obj... | /R/project.ssanova.R | no_license | cran/gss | R | false | false | 4,940 | r | ## S3 method
project <- function (object,...) UseMethod("project")
## Calculate Kullback-Leibler projection from ssanova objects
project.ssanova <- function(object,include,...)
{
if (class(object)[1]=="ssanova0")
stop("gss error: square error projection is not implemented for ssanova0")
nobs <- nrow(obj... |
library(tidyverse)
library(extrafont)
loadfonts(device = "win")
board_games <- readr::read_csv('data/2019/2019-03-12/board_games.csv')
head(board_games)
hl_games <- board_games %>%
filter(board_games$name %in% c('Catan','Twilight Struggle','Acquire','Mouse Trap','Connect Four'))
board_games %>%
ggplot(.) +
... | /190312_board_game_plots.R | permissive | joshua-meyers/tidytuesday | R | false | false | 1,812 | r | library(tidyverse)
library(extrafont)
loadfonts(device = "win")
board_games <- readr::read_csv('data/2019/2019-03-12/board_games.csv')
head(board_games)
hl_games <- board_games %>%
filter(board_games$name %in% c('Catan','Twilight Struggle','Acquire','Mouse Trap','Connect Four'))
board_games %>%
ggplot(.) +
... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = numeric(0), rs = numeric(0), temp = c(NaN, 8.82893744750688e+199, -3.79265217111687e+305, 5.43230922486616e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | /meteor/inst/testfiles/ET0_PenmanMonteith/libFuzzer_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1612736765-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 561 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = numeric(0), rs = numeric(0), temp = c(NaN, 8.82893744750688e+199, -3.79265217111687e+305, 5.43230922486616e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
library(tidyverse)
library(jsonlite)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
stims_critical <- toJSON(read.csv("ssi_normstims - critical.csv"))
stims_filler <- toJSON(read.csv("ssi_normstims - filler.csv"))
stims_exclusion <- toJSON(read.csv("ssi_normstims - exclusion.csv"))
write_file(stims_crit... | /ModernRacismScale/experiment/stims/csvtojson.r | no_license | dmanko99/Pragmatics-stereotypes | R | false | false | 429 | r | library(tidyverse)
library(jsonlite)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
stims_critical <- toJSON(read.csv("ssi_normstims - critical.csv"))
stims_filler <- toJSON(read.csv("ssi_normstims - filler.csv"))
stims_exclusion <- toJSON(read.csv("ssi_normstims - exclusion.csv"))
write_file(stims_crit... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_aggregates.R
\name{get_aggregates}
\alias{get_aggregates}
\title{Get all aggregates}
\usage{
get_aggregates(sort = c("id", "-id", "name", "-name"), lang = c("pl",
"en"), ...)
}
\arguments{
\item{sort}{A type of sorting, "id" (default), ... | /man/get_aggregates.Rd | no_license | waridhuan/R_Package_to_API_BDL | R | false | true | 923 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_aggregates.R
\name{get_aggregates}
\alias{get_aggregates}
\title{Get all aggregates}
\usage{
get_aggregates(sort = c("id", "-id", "name", "-name"), lang = c("pl",
"en"), ...)
}
\arguments{
\item{sort}{A type of sorting, "id" (default), ... |
# new lines
# stopword_count
# Image quality
# WordBatch https://www.kaggle.com/c/mercari-price-suggestion-challenge/discussion/47295
# Mercari https://www.kaggle.com/c/mercari-price-suggestion-challenge/discussion/50256
# https://www.kaggle.com/lopuhin/mercari-golf-0-3875-cv-in-75-loc-1900-s
rm(list=ls());gc()
Sys.se... | /R/model_v0_4_5.R | no_license | ivanliu1989/Avito-Demand-Prediction-Challenge | R | false | false | 19,128 | r | # new lines
# stopword_count
# Image quality
# WordBatch https://www.kaggle.com/c/mercari-price-suggestion-challenge/discussion/47295
# Mercari https://www.kaggle.com/c/mercari-price-suggestion-challenge/discussion/50256
# https://www.kaggle.com/lopuhin/mercari-golf-0-3875-cv-in-75-loc-1900-s
rm(list=ls());gc()
Sys.se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/em_2var.R
\name{em_2var}
\alias{em_2var}
\title{Two-Variable Entry Model}
\usage{
em_2var(data, Sm1, Sm2, y, N_max = 5, alpha0 = rep(0.1, N_max),
gamma0 = rep(1, N_max))
}
\arguments{
\item{data}{A \code{data.frame} object containing your d... | /man/em_2var.Rd | permissive | Allisterh/entrymodels | R | false | true | 1,924 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/em_2var.R
\name{em_2var}
\alias{em_2var}
\title{Two-Variable Entry Model}
\usage{
em_2var(data, Sm1, Sm2, y, N_max = 5, alpha0 = rep(0.1, N_max),
gamma0 = rep(1, N_max))
}
\arguments{
\item{data}{A \code{data.frame} object containing your d... |
\name{densityMap}
\alias{densityMap}
\alias{plot.densityMap}
\title{Plot posterior density of stochastic mapping on a tree}
\usage{
densityMap(trees, res=100, fsize=NULL, ftype=NULL, lwd=3, check=FALSE,
legend=NULL, outline=FALSE, type="phylogram", direction="rightwards",
plot=TRUE, ...)
\method{plot}{densityMap}... | /man/densityMap.Rd | no_license | olmen/phytools | R | false | false | 3,737 | rd | \name{densityMap}
\alias{densityMap}
\alias{plot.densityMap}
\title{Plot posterior density of stochastic mapping on a tree}
\usage{
densityMap(trees, res=100, fsize=NULL, ftype=NULL, lwd=3, check=FALSE,
legend=NULL, outline=FALSE, type="phylogram", direction="rightwards",
plot=TRUE, ...)
\method{plot}{densityMap}... |
#' Read prelude files
#'
#' Read data files in prelude format, which has 2 line headers and column names
#' seperated from data with dashes.
#'
#'
#' @param skr Prelude file name
#' @param rownames Should first column be used as row names? Default FALSE
#' @param dots.in.text Should underscores in column names be re... | /R/pre2s.R | no_license | Hafro/geo | R | false | false | 1,316 | r | #' Read prelude files
#'
#' Read data files in prelude format, which has 2 line headers and column names
#' seperated from data with dashes.
#'
#'
#' @param skr Prelude file name
#' @param rownames Should first column be used as row names? Default FALSE
#' @param dots.in.text Should underscores in column names be re... |
devtools::install_github('PMassicotte/gtrendsR')
library(gtrendsR)
library(tidyverse)
library(plotly)
# Visualizando as categorias
head(categories,20)
# Visualizando as regiões
head(countries,20)
# Visualizando as marcações do Brasil
head(countries[countries$country_code =='BR',],20)
finamax <-gtrends('emprestim... | /PreProcessamento/Googletrends.R | no_license | david-drezza/reimagined-spoon | R | false | false | 1,099 | r |
devtools::install_github('PMassicotte/gtrendsR')
library(gtrendsR)
library(tidyverse)
library(plotly)
# Visualizando as categorias
head(categories,20)
# Visualizando as regiões
head(countries,20)
# Visualizando as marcações do Brasil
head(countries[countries$country_code =='BR',],20)
finamax <-gtrends('emprestim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.