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 |
|---|---|---|---|---|---|---|---|---|---|
#Redback hatchlings (relative to adults) as a function of the proportion of Peaks of Otter
#salamanders at a site
#includes site as a random effect and pass/date as nested random effects
#so model is stagebin ~ propPO + (1|site) + (1|pass/date)
dat<-rbhatch
#dat$date.int<-as.integer(as.factor(rbdata_tl$dat... | /r-code/rb/stanHATRB_prop2RE.R | no_license | dmmarsh/salamander-contact-zone-analysis | R | false | false | 2,870 | r | #Redback hatchlings (relative to adults) as a function of the proportion of Peaks of Otter
#salamanders at a site
#includes site as a random effect and pass/date as nested random effects
#so model is stagebin ~ propPO + (1|site) + (1|pass/date)
dat<-rbhatch
#dat$date.int<-as.integer(as.factor(rbdata_tl$dat... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{extract}
\alias{extract}
\title{Extract Elements from a Named Object}
\usage{
extract(x, ...)
}
\arguments{
\item{x}{An \R object with a \code{names} attribute.}
\item{...}{an optional number of 'names' to match in \code{dat}.}
}
\description{
Extracts element... | /man/extract.Rd | no_license | dpastoor/Kmisc | R | false | false | 1,008 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{extract}
\alias{extract}
\title{Extract Elements from a Named Object}
\usage{
extract(x, ...)
}
\arguments{
\item{x}{An \R object with a \code{names} attribute.}
\item{...}{an optional number of 'names' to match in \code{dat}.}
}
\description{
Extracts element... |
# Library setup --------------------------------------------------------
library(tidyverse)
library(repurrrsive)
library(jsonlite)
library(magrittr)
library(stringr)
library(stringi)
## Specifying the function in map() + parallel mapping -----------------
# map() function specification
# Pull out GOT data/aliases
ali... | /Purrr/purrr_jennybc_mapping.R | no_license | ariasmiguel/tidyverse | R | false | false | 3,316 | r | # Library setup --------------------------------------------------------
library(tidyverse)
library(repurrrsive)
library(jsonlite)
library(magrittr)
library(stringr)
library(stringi)
## Specifying the function in map() + parallel mapping -----------------
# map() function specification
# Pull out GOT data/aliases
ali... |
testlist <- list(scale = 0, shape = 9.97923593732563e-316)
result <- do.call(bama:::rand_igamma,testlist)
str(result) | /bama/inst/testfiles/rand_igamma/AFL_rand_igamma/rand_igamma_valgrind_files/1615926719-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 117 | r | testlist <- list(scale = 0, shape = 9.97923593732563e-316)
result <- do.call(bama:::rand_igamma,testlist)
str(result) |
library(shiny)
library(datasets)
airData <- air
shinyServer(function(input, output){
airline1Input <- reactive({
switch(input$airline1,
"American Airlines (AA)" = "AA", "Delta Airlines (DL)" = "DL",
"Southwest Airlines (SW)" = "SW", "United Airlines(UA)" = "UA",
"Northwest Airlines (NW)" ... | /server.R | no_license | Vregalia/Homework4git | R | false | false | 3,908 | r | library(shiny)
library(datasets)
airData <- air
shinyServer(function(input, output){
airline1Input <- reactive({
switch(input$airline1,
"American Airlines (AA)" = "AA", "Delta Airlines (DL)" = "DL",
"Southwest Airlines (SW)" = "SW", "United Airlines(UA)" = "UA",
"Northwest Airlines (NW)" ... |
#' function to download all available shapefile files from a URL
#' @import RCurl
#' @export
#' @examples
#' \dontrun{
#' download_shp('ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Administrative_and_Political_Boundaries/d-nhsenatedists/2012','NHSenateDists2012')
#' download_shp('http://jwhollister.com/iale_... | /R/download_shp.R | permissive | jhollist/miscPackage | R | false | false | 1,800 | r | #' function to download all available shapefile files from a URL
#' @import RCurl
#' @export
#' @examples
#' \dontrun{
#' download_shp('ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Administrative_and_Political_Boundaries/d-nhsenatedists/2012','NHSenateDists2012')
#' download_shp('http://jwhollister.com/iale_... |
install.packages("forecast")
library(dplyr)
library(lubridate)
library(xts)
library(highcharter) # check it out! pretty fancy!
library(ggplot2)
library(plotly)
library(prophet)
library(forcast)
#### OR568 Final---------
crime <- read.csv("crimes-chicago/Chicago_Crimes_2012_to_2017.csv")
#### Cleaning data format------... | /time-series-Chicago.R | no_license | pinerchen/r-timeseries-chicagotemp | R | false | false | 2,071 | r |
install.packages("forecast")
library(dplyr)
library(lubridate)
library(xts)
library(highcharter) # check it out! pretty fancy!
library(ggplot2)
library(plotly)
library(prophet)
library(forcast)
#### OR568 Final---------
crime <- read.csv("crimes-chicago/Chicago_Crimes_2012_to_2017.csv")
#### Cleaning data format------... |
# rtInitProjectDir.R
# ::rtemis::
# 2019 E.D. Gennatas lambdamd.org
#' Initialize Project Directory
#'
#' Initializes Directory Structure: "R", "Data", "Results"
#'
#' @author E.D. Gennatas
#' @export
rtInitProjectDir <- function(verbose = TRUE) {
wd <- getwd()
if (verbose) msg("Initializing project directory...... | /R/rtInitProjectDir.R | no_license | tlarzg/rtemis | R | false | false | 1,172 | r | # rtInitProjectDir.R
# ::rtemis::
# 2019 E.D. Gennatas lambdamd.org
#' Initialize Project Directory
#'
#' Initializes Directory Structure: "R", "Data", "Results"
#'
#' @author E.D. Gennatas
#' @export
rtInitProjectDir <- function(verbose = TRUE) {
wd <- getwd()
if (verbose) msg("Initializing project directory...... |
###Get grid reference requests###
#Returns text and inReplyTo##
gridRefTweets <- function(tweets = NULL){
load("twitteR_credentials") # load credentials
if(!registerTwitterOAuth(Cred)) stop('login failed') # Check login
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"... | /Scripts/gridRefTweets.r | no_license | AugustT/NatureNearMe | R | false | false | 1,427 | r | ###Get grid reference requests###
#Returns text and inReplyTo##
gridRefTweets <- function(tweets = NULL){
load("twitteR_credentials") # load credentials
if(!registerTwitterOAuth(Cred)) stop('login failed') # Check login
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"... |
require(rjson)
require(plyr)
library(RTextTools)
res1 <- fromJSON(file=theCall)
res1$results
str(res1$results)
class(res1$results)
res1$results[[1]]
res1 <- from JSON(file)
res1 <- ldply(res1$results, as.data.frame)
results <- vector("list", 3)
theCall <- "http://api.nytimes.com/svc/search/v1/article?format=json&que... | /class_notes_924.R | no_license | ek2758/Data_Science_HW2 | R | false | false | 1,043 | r | require(rjson)
require(plyr)
library(RTextTools)
res1 <- fromJSON(file=theCall)
res1$results
str(res1$results)
class(res1$results)
res1$results[[1]]
res1 <- from JSON(file)
res1 <- ldply(res1$results, as.data.frame)
results <- vector("list", 3)
theCall <- "http://api.nytimes.com/svc/search/v1/article?format=json&que... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/symbol_as_character.R
\name{symbol_as_character}
\alias{symbol_as_character}
\title{Convert a possible symbol to character.}
\usage{
symbol_as_character(symbol)
}
\arguments{
\item{symbol}{A symbol or character (of length one... | /man/symbol_as_character.Rd | no_license | simrankhanna/import | R | false | false | 411 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/symbol_as_character.R
\name{symbol_as_character}
\alias{symbol_as_character}
\title{Convert a possible symbol to character.}
\usage{
symbol_as_character(symbol)
}
\arguments{
\item{symbol}{A symbol or character (of length one... |
rm(list=ls())
setwd("/SFS/scratch/zhapingy/sim62/code/")
source("MySimData_sim62.R")
source("Myboost2.R")
source("Myboost.R")
source("OneStep.R")
source("ROWSi.R")
source("method_2stepRF.1.0_ez.R")
### Case 1: Interaction: NO; Prognostic coefficient: 0.2;
MySim <- function(rep){
print(paste('Iteration: ',rep,sep='')... | /EricCode/SimMyboost_sim62.R | permissive | gqwang1001/InterpretSGB | R | false | false | 4,696 | r | rm(list=ls())
setwd("/SFS/scratch/zhapingy/sim62/code/")
source("MySimData_sim62.R")
source("Myboost2.R")
source("Myboost.R")
source("OneStep.R")
source("ROWSi.R")
source("method_2stepRF.1.0_ez.R")
### Case 1: Interaction: NO; Prognostic coefficient: 0.2;
MySim <- function(rep){
print(paste('Iteration: ',rep,sep='')... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/InventoryGrowthFusion.R
\name{InventoryGrowthFusion}
\alias{InventoryGrowthFusion}
\title{InventoryGrowthFusion}
\usage{
InventoryGrowthFusion(data, n.iter, random = TRUE)
}
\arguments{
\item{data}{list of data inputs}
\item{random}{... | /modules/data.land/man/InventoryGrowthFusion.Rd | permissive | davidjpmoore/pecan | R | false | false | 606 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/InventoryGrowthFusion.R
\name{InventoryGrowthFusion}
\alias{InventoryGrowthFusion}
\title{InventoryGrowthFusion}
\usage{
InventoryGrowthFusion(data, n.iter, random = TRUE)
}
\arguments{
\item{data}{list of data inputs}
\item{random}{... |
# Create directory ------------------------------------------------------------
tbl_dir <- "data_tables/hc_care_qual"
dir.create(tbl_dir)
# Define groups ---------------------------------------------------------------
row_grps <- demo_grps %>% add_v2X
# Run for specified year(s) -------------------------------------... | /run_care_qual.R | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 3,936 | r | # Create directory ------------------------------------------------------------
tbl_dir <- "data_tables/hc_care_qual"
dir.create(tbl_dir)
# Define groups ---------------------------------------------------------------
row_grps <- demo_grps %>% add_v2X
# Run for specified year(s) -------------------------------------... |
# Accompanies the book:
# Kruschke, J. K. (2014). Doing Bayesian Data Analysis:
# A Tutorial with R, JAGS and Stan, 2nd Edition. Academic Press / Elsevier.
source("DBDA2E-utilities.R")
#===============================================================================
genMCMC = function(
# data=myData , zName="W... | /Bayesian_model.R | no_license | BINBINWU/MarchMadness | R | false | false | 14,334 | r | # Accompanies the book:
# Kruschke, J. K. (2014). Doing Bayesian Data Analysis:
# A Tutorial with R, JAGS and Stan, 2nd Edition. Academic Press / Elsevier.
source("DBDA2E-utilities.R")
#===============================================================================
genMCMC = function(
# data=myData , zName="W... |
library(move)
### Name: seglength
### Title: Segment lengths of a track
### Aliases: seglength seglength,SpatialPointsDataFrame-method
### ** Examples
## Not run:
##D ## Move object in longlat projection
##D data(leroy)
##D head(seglength(leroy))
##D # to add this information to the move object, a "NA" has to be... | /data/genthat_extracted_code/move/examples/seglength.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 843 | r | library(move)
### Name: seglength
### Title: Segment lengths of a track
### Aliases: seglength seglength,SpatialPointsDataFrame-method
### ** Examples
## Not run:
##D ## Move object in longlat projection
##D data(leroy)
##D head(seglength(leroy))
##D # to add this information to the move object, a "NA" has to be... |
output$localities <- renderRHandsontable({
x <- dbGetQuery(conn = con, statement = "SELECT * FROM Locality;")
rhandsontable(x)
})
output$species <- renderRHandsontable({
x <- dbGetQuery(conn = con, statement = "SELECT * FROM Species;")
rhandsontable(x)
})
output$surveys <- renderRHandsontable({
x <- dbGetQu... | /R/manage_tables.R | no_license | zkuralt/ChiloBioBase | R | false | false | 394 | r | output$localities <- renderRHandsontable({
x <- dbGetQuery(conn = con, statement = "SELECT * FROM Locality;")
rhandsontable(x)
})
output$species <- renderRHandsontable({
x <- dbGetQuery(conn = con, statement = "SELECT * FROM Species;")
rhandsontable(x)
})
output$surveys <- renderRHandsontable({
x <- dbGetQu... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/createInputCall.R
\name{mfpcaCalls}
\alias{mfpcaCalls}
\title{Create input calls for plot_shiny.mfpca()}
\usage{
mfpcaCalls(plot.npc, plotObj, percents)
}
\arguments{
\item{plot.npc}{list of 2 numeric entries giving number of sliders ... | /man/mfpcaCalls.Rd | no_license | gofia/refund.shiny | R | false | false | 864 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/createInputCall.R
\name{mfpcaCalls}
\alias{mfpcaCalls}
\title{Create input calls for plot_shiny.mfpca()}
\usage{
mfpcaCalls(plot.npc, plotObj, percents)
}
\arguments{
\item{plot.npc}{list of 2 numeric entries giving number of sliders ... |
# ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... | /Caret/Script/Script_bagEarth.R | no_license | bemayer/DigitRecognizer | R | false | false | 2,723 | r | # ------------------------------------------------------------------------------
# Libraries
library(dplyr)
library(readr)
library(stringr)
library(caret)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
#... |
#install.packages("ggplot2")
library(ggplot2)
#Paul Code for plotting respirometry data together
#Set working directory
#setwd("Users\erin.tully\Desktop\Respirometry Trials\Calibration Trials")
# kept getting errors for how the pathname was importing
setwd("C:/Users/erin.tully/Desktop/Respirometry Trials/C... | /Respirometry_trials_code.R | no_license | KROVINSKI/19-Hollings-RespirometryData | R | false | false | 6,024 | r | #install.packages("ggplot2")
library(ggplot2)
#Paul Code for plotting respirometry data together
#Set working directory
#setwd("Users\erin.tully\Desktop\Respirometry Trials\Calibration Trials")
# kept getting errors for how the pathname was importing
setwd("C:/Users/erin.tully/Desktop/Respirometry Trials/C... |
#' Environmental dynamics
#'
#' This function takes the master dataframe and calculates the
#' per patch climatic yields from per patch precipitation and irrigation
#' @param settlements Tibble of settlement agents.
#' @export
#' @examples
#' allocate_time(households)
environmental_dynamics <- function(settlements){
... | /R/environmental_dynamics.R | no_license | ak202/Silvanus | R | false | false | 1,887 | r | #' Environmental dynamics
#'
#' This function takes the master dataframe and calculates the
#' per patch climatic yields from per patch precipitation and irrigation
#' @param settlements Tibble of settlement agents.
#' @export
#' @examples
#' allocate_time(households)
environmental_dynamics <- function(settlements){
... |
synch.data = read.csv("features-data.csv", header = TRUE, sep = ",",stringsAsFactors=FALSE)
#standardize
synch.data$avg_within <- scale(synch.data$avg_within)
synch.data$avg_between <- scale(synch.data$avg_between)
synch.data$rpc <- scale(synch.data$rpc)
synch.data$referendum <- scale(synch.data$referendum)
syn... | /ols.r | no_license | mmamei/socialk | R | false | false | 884 | r |
synch.data = read.csv("features-data.csv", header = TRUE, sep = ",",stringsAsFactors=FALSE)
#standardize
synch.data$avg_within <- scale(synch.data$avg_within)
synch.data$avg_between <- scale(synch.data$avg_between)
synch.data$rpc <- scale(synch.data$rpc)
synch.data$referendum <- scale(synch.data$referendum)
syn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{kalman_filtering}
\alias{kalman_filtering}
\title{Smoothing of time series}
\usage{
kalman_filtering(time, series)
}
\arguments{
\item{bc}{vector or matrix; meteorological boundary conditions}
}
\value{
vector or matrix; meteor... | /man/kalman_filtering.Rd | permissive | robertladwig/thermod | R | false | true | 419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{kalman_filtering}
\alias{kalman_filtering}
\title{Smoothing of time series}
\usage{
kalman_filtering(time, series)
}
\arguments{
\item{bc}{vector or matrix; meteorological boundary conditions}
}
\value{
vector or matrix; meteor... |
library(data.table)
setwd("/Users/vinaysesham/Documents/datasciencecoursera/ExploratoryDataAnalysis/explot_project1")
hpc <- read.table("household_power_consumption.txt",header=TRUE,sep=";",stringsAsFactors=FALSE)
hpcSubset <- hpc[hpc$Date %in% c("1/2/2007","2/2/2007") ,]
hpcSubset$datetime <- strptime(paste(subSetDat... | /plot3.R | no_license | vsesham/ExData_Plotting1 | R | false | false | 768 | r | library(data.table)
setwd("/Users/vinaysesham/Documents/datasciencecoursera/ExploratoryDataAnalysis/explot_project1")
hpc <- read.table("household_power_consumption.txt",header=TRUE,sep=";",stringsAsFactors=FALSE)
hpcSubset <- hpc[hpc$Date %in% c("1/2/2007","2/2/2007") ,]
hpcSubset$datetime <- strptime(paste(subSetDat... |
# Plot3.R is part of Project 1 for Johns Hopkins' Exploratory Data Analysis
# course. This script uses data from the "Individual household consumption
# data set" from the UCI Machine Learning Repository, and creates a plot to
# match one provided for the assignment.
# Data from the "Individual household consumption ... | /plot3.R | no_license | sehahn/ExData_Plotting1 | R | false | false | 1,300 | r | # Plot3.R is part of Project 1 for Johns Hopkins' Exploratory Data Analysis
# course. This script uses data from the "Individual household consumption
# data set" from the UCI Machine Learning Repository, and creates a plot to
# match one provided for the assignment.
# Data from the "Individual household consumption ... |
## In the following code two functions are defined.
## For this assignment, it was assumed that the matrix supplied should
## always be invertible. Due to use of "solve" function, input matrix m
## must be square matrix.
## 1. function "makeCacheMatrix" creates a special "matrix" which caches
## the matrix being... | /cachematrix.R | no_license | MKom1982/ProgrammingAssignment2 | R | false | false | 1,186 | r | ## In the following code two functions are defined.
## For this assignment, it was assumed that the matrix supplied should
## always be invertible. Due to use of "solve" function, input matrix m
## must be square matrix.
## 1. function "makeCacheMatrix" creates a special "matrix" which caches
## the matrix being... |
###Tiffanie Stone R EEOB590A - Dataset for Analysis
# Repository: Uploading US Food Consumption Data from 1994 - 2008
# The purpose is to upload this national data set which will be used to find trends in food consumption over time and across low and high income groups of people.
#This information will form a baselin... | /analysis/stonedataRfoodconsumption_data exploration1_10-21-19.R | no_license | EEOB590A-Fall-2019/TiffanieRepository | R | false | false | 1,873 | r | ###Tiffanie Stone R EEOB590A - Dataset for Analysis
# Repository: Uploading US Food Consumption Data from 1994 - 2008
# The purpose is to upload this national data set which will be used to find trends in food consumption over time and across low and high income groups of people.
#This information will form a baselin... |
\name{TEdata}
\alias{TEdata}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
The constructor of TEData object.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
TEdata(MVdata.obj, miss.rate)
}
%- maybe also 'usage' for oth... | /man/TEdata.Rd | no_license | godkin1211/EMVA | R | false | false | 2,161 | rd | \name{TEdata}
\alias{TEdata}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
The constructor of TEData object.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
TEdata(MVdata.obj, miss.rate)
}
%- maybe also 'usage' for oth... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536098038e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615769976-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536098038e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
<?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WindowsAzure1" generation="1" functional="0" release="0" Id="c223cd3b-e516-4adc-b3d7-15626a056f55" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dslt... | /WindowsAzure1/csx/Debug/ServiceDefinition.rd | no_license | dunix/BackEnd | R | false | false | 8,446 | rd | <?xml version="1.0" encoding="utf-8"?>
<serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WindowsAzure1" generation="1" functional="0" release="0" Id="c223cd3b-e516-4adc-b3d7-15626a056f55" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/dslt... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
j <- NULL
set <- function(y){
x <<- y
j <<- NULL
}
get <- function()x
setInverse <- function(inverse) j <<- inverse
getIn... | /cachematrix.R | no_license | Chirality924/ProgrammingAssignment2 | R | false | false | 680 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
j <- NULL
set <- function(y){
x <<- y
j <<- NULL
}
get <- function()x
setInverse <- function(inverse) j <<- inverse
getIn... |
## plot6.R
## Question: Compare emissions from motor vehicle sources in Baltimore City
## with emissions from motor vehicle sources in Los Angeles County,
## California (fips == "06037"). Which city has seen greater changes
## over time in motor vehicle emissions?
## Set working direct... | /plot6.R | no_license | AtlantaSam/Coursera_TrackDS_EDA_CP2 | R | false | false | 1,409 | r | ## plot6.R
## Question: Compare emissions from motor vehicle sources in Baltimore City
## with emissions from motor vehicle sources in Los Angeles County,
## California (fips == "06037"). Which city has seen greater changes
## over time in motor vehicle emissions?
## Set working direct... |
library(RNentropy)
### Name: RN_calc_LPV
### Title: RN_calc_LPV
### Aliases: RN_calc_LPV
### Keywords: RNentropy
### ** Examples
data("RN_Brain_Example_tpm", "RN_Brain_Example_design")
LPV <- RN_calc_LPV(RN_Brain_Example_tpm, RN_Brain_Example_design)
## The function is currently defined as
function(X, design = NUL... | /data/genthat_extracted_code/RNentropy/examples/RN_calc_LPV.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 782 | r | library(RNentropy)
### Name: RN_calc_LPV
### Title: RN_calc_LPV
### Aliases: RN_calc_LPV
### Keywords: RNentropy
### ** Examples
data("RN_Brain_Example_tpm", "RN_Brain_Example_design")
LPV <- RN_calc_LPV(RN_Brain_Example_tpm, RN_Brain_Example_design)
## The function is currently defined as
function(X, design = NUL... |
\name{03.ReadingData}
\alias{03.ReadingData}
\title{Reading Microarray Data from Files}
\description{
This help page gives an overview of LIMMA functions used to read data from files.
}
\section{Reading Target Information}{
The function \code{\link{readTargets}} is designed to help with organizing informatio... | /man/03reading.Rd | no_license | khokamp/limma | R | false | false | 4,399 | rd | \name{03.ReadingData}
\alias{03.ReadingData}
\title{Reading Microarray Data from Files}
\description{
This help page gives an overview of LIMMA functions used to read data from files.
}
\section{Reading Target Information}{
The function \code{\link{readTargets}} is designed to help with organizing informatio... |
bal.tab <- function(...) UseMethod("bal.tab")
base.bal.tab <- function(weights, treat, distance = NULL, subclass = NULL, covs, call = NULL, int = FALSE, addl = NULL, continuous, binary, s.d.denom, m.threshold = NULL, v.threshold = NULL, ks.threshold = NULL, imbalanced.only = FALSE, un = FALSE, disp.means = FALSE, disp.... | /R/bal.tab.R | no_license | xiaosongz/cobalt | R | false | false | 102,738 | r | bal.tab <- function(...) UseMethod("bal.tab")
base.bal.tab <- function(weights, treat, distance = NULL, subclass = NULL, covs, call = NULL, int = FALSE, addl = NULL, continuous, binary, s.d.denom, m.threshold = NULL, v.threshold = NULL, ks.threshold = NULL, imbalanced.only = FALSE, un = FALSE, disp.means = FALSE, disp.... |
##' Play the Mine Sweeper game in R
##'
##' The controls should be familiar to you: Click the left mouse
##' button to dig in an area, and right button to mark or unmark the
##' area with flags.
##' @param width number of grids in horizontal axis
##' @param height number of grids in vertical axis
##' @param mines numbe... | /R/mine_sweeper.R | no_license | talgalili/fun | R | false | false | 10,647 | r | ##' Play the Mine Sweeper game in R
##'
##' The controls should be familiar to you: Click the left mouse
##' button to dig in an area, and right button to mark or unmark the
##' area with flags.
##' @param width number of grids in horizontal axis
##' @param height number of grids in vertical axis
##' @param mines numbe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct01_frameBuildingFuncs.R
\name{is_newlyIPO}
\alias{is_newlyIPO}
\title{is_newlyIPO}
\usage{
is_newlyIPO(TS, nearby = months(-2), datelist, stockID, drop = FALSE,
datasrc = "local")
}
\description{
is_newlyIPO
}
| /man/is_newlyIPO.Rd | no_license | raphael210/QDataGet | R | false | true | 293 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct01_frameBuildingFuncs.R
\name{is_newlyIPO}
\alias{is_newlyIPO}
\title{is_newlyIPO}
\usage{
is_newlyIPO(TS, nearby = months(-2), datelist, stockID, drop = FALSE,
datasrc = "local")
}
\description{
is_newlyIPO
}
|
library(randcorr)
### Name: randcorr.sample.sink
### Title: Sample from the (unnormalized) distribution sin(x)^k, 0 < x <
### pi, k >= 1
### Aliases: randcorr.sample.sink
### ** Examples
# -----------------------------------------------------------------
# Example 1: Draw a random variate from sin(x), 0<x<pi
x = ... | /data/genthat_extracted_code/randcorr/examples/randcorr.sample.sink.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 475 | r | library(randcorr)
### Name: randcorr.sample.sink
### Title: Sample from the (unnormalized) distribution sin(x)^k, 0 < x <
### pi, k >= 1
### Aliases: randcorr.sample.sink
### ** Examples
# -----------------------------------------------------------------
# Example 1: Draw a random variate from sin(x), 0<x<pi
x = ... |
library(dplyr)
library(readr)
library(ggplot2)
library(caret)
library(pROC)
library(ROCR)
library(parallel)
library(randomForest)
library(lubridate)
###############################################################################
# Function Name: get_classes (Helper Function)
# Inputs: yactives: A data frame containing... | /drug-screening.R | no_license | wewilli1/drug-screening | R | false | false | 18,302 | r | library(dplyr)
library(readr)
library(ggplot2)
library(caret)
library(pROC)
library(ROCR)
library(parallel)
library(randomForest)
library(lubridate)
###############################################################################
# Function Name: get_classes (Helper Function)
# Inputs: yactives: A data frame containing... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Nonpareil.R
\name{Nonpareil.read_metadata}
\alias{Nonpareil.read_metadata}
\title{Read the metadata headers.}
\usage{
Nonpareil.read_metadata(x)
}
\arguments{
\item{x}{\code{Nonpareil.Curve} object.}
}
\description{
Read the metadata headers.... | /utils/Nonpareil/man/Nonpareil.read_metadata.Rd | permissive | lmrodriguezr/nonpareil | R | false | true | 323 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Nonpareil.R
\name{Nonpareil.read_metadata}
\alias{Nonpareil.read_metadata}
\title{Read the metadata headers.}
\usage{
Nonpareil.read_metadata(x)
}
\arguments{
\item{x}{\code{Nonpareil.Curve} object.}
}
\description{
Read the metadata headers.... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plotting.R
\name{freewaySpeedMap}
\alias{freewaySpeedMap}
\title{freewaySpeedMap}
\usage{
freewaySpeedMap(con, corridorID, startDate, endDate, weekdays = TRUE,
outputPng = NULL)
}
\arguments{
\item{con}{database connection PORTAL Po... | /man/freewaySpeedMap.Rd | no_license | bpb824/portalr | R | false | false | 978 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plotting.R
\name{freewaySpeedMap}
\alias{freewaySpeedMap}
\title{freewaySpeedMap}
\usage{
freewaySpeedMap(con, corridorID, startDate, endDate, weekdays = TRUE,
outputPng = NULL)
}
\arguments{
\item{con}{database connection PORTAL Po... |
\alias{gtkTreeModelGetIter}
\name{gtkTreeModelGetIter}
\title{gtkTreeModelGetIter}
\description{Sets \code{iter} to a valid iterator pointing to \code{path}.}
\usage{gtkTreeModelGetIter(object, path)}
\arguments{
\item{\verb{object}}{A \code{\link{GtkTreeModel}}.}
\item{\verb{path}}{The \code{\link{GtkTreePath}}.}
}
\v... | /RGtk2/man/gtkTreeModelGetIter.Rd | no_license | lawremi/RGtk2 | R | false | false | 568 | rd | \alias{gtkTreeModelGetIter}
\name{gtkTreeModelGetIter}
\title{gtkTreeModelGetIter}
\description{Sets \code{iter} to a valid iterator pointing to \code{path}.}
\usage{gtkTreeModelGetIter(object, path)}
\arguments{
\item{\verb{object}}{A \code{\link{GtkTreeModel}}.}
\item{\verb{path}}{The \code{\link{GtkTreePath}}.}
}
\v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fontawesome-icons.R
\name{gt_fa_rating}
\alias{gt_fa_rating}
\title{Add rating "stars" to a gt column}
\usage{
gt_fa_rating(
gt_object,
column,
max_rating = 5,
...,
color = "orange",
icon = "star"
)
}
\arguments{
\item{gt_object}{... | /man/gt_fa_rating.Rd | permissive | adamkemberling/gtExtras | R | false | true | 1,894 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fontawesome-icons.R
\name{gt_fa_rating}
\alias{gt_fa_rating}
\title{Add rating "stars" to a gt column}
\usage{
gt_fa_rating(
gt_object,
column,
max_rating = 5,
...,
color = "orange",
icon = "star"
)
}
\arguments{
\item{gt_object}{... |
#### PREAMBLE ####
# date: 14.11.18
# author: Alexander Pitsch
# Analyzes the data created by running a Double DQN algorihtm on a multi-period
# portfolio selection problem setup with 2 periods, 2 assets with independently
# but not identically normally distributed log-returns, and an investor with
# log-utility.
#... | /analysis_mod2.R | permissive | xiaogaogaoxiao/drl_mppo | R | false | false | 16,654 | r | #### PREAMBLE ####
# date: 14.11.18
# author: Alexander Pitsch
# Analyzes the data created by running a Double DQN algorihtm on a multi-period
# portfolio selection problem setup with 2 periods, 2 assets with independently
# but not identically normally distributed log-returns, and an investor with
# log-utility.
#... |
#' Cell type assignments with SCINA on a SingleCellExperiment
library(tidyverse)
library(tensorflow)
library(SingleCellExperiment)
library(scater)
library(data.table)
library(methods)
library(scran)
library(yaml)
library(scrna.utils)
library(scrna.sceutils)
library(cellassign)
library(cellassign.utils)
library(argpar... | /pipelines/real_data_benchmarking/R/scina_sce.R | no_license | Irrationone/cellassign-paper | R | false | false | 6,623 | r | #' Cell type assignments with SCINA on a SingleCellExperiment
library(tidyverse)
library(tensorflow)
library(SingleCellExperiment)
library(scater)
library(data.table)
library(methods)
library(scran)
library(yaml)
library(scrna.utils)
library(scrna.sceutils)
library(cellassign)
library(cellassign.utils)
library(argpar... |
#'Compute or Extract Silhouette Information from Clustering based on similarity matrix.
#'
#'Silhouette refers to a method of interpretation and validation of consistency within clusters of data.
#'The technique provides a succinct graphical representation of how well each object lies within its cluster (From Wik... | /R/Valiation.R | no_license | buutrg/CancerSubtypes | R | false | false | 20,743 | r |
#'Compute or Extract Silhouette Information from Clustering based on similarity matrix.
#'
#'Silhouette refers to a method of interpretation and validation of consistency within clusters of data.
#'The technique provides a succinct graphical representation of how well each object lies within its cluster (From Wik... |
/MAIN.R | permissive | 532867531/XEJ | R | false | false | 2,150 | r | ||
library(tm)
library(stringr)
library(wordcloud)
library(RColorBrewer)
library(cluster)
library(SnowballC)
cname <- file.path("C:", "texts")
cname
dir(cname)
docs <- VCorpus(DirSource(cname))
summary(docs)
inspect(docs[1])
writeLines(as.character(docs[1]))
docs <- tm_map(docs,removePunctuation)
f... | /textmining.R | no_license | krishika-r/Text | R | false | false | 2,772 | r | library(tm)
library(stringr)
library(wordcloud)
library(RColorBrewer)
library(cluster)
library(SnowballC)
cname <- file.path("C:", "texts")
cname
dir(cname)
docs <- VCorpus(DirSource(cname))
summary(docs)
inspect(docs[1])
writeLines(as.character(docs[1]))
docs <- tm_map(docs,removePunctuation)
f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/phyloseq_filter.R
\name{phyloseq_filter_prevalence}
\alias{phyloseq_filter_prevalence}
\title{Filter low-prevalence OTUs.}
\usage{
phyloseq_filter_prevalence(physeq, prev.trh = 0.05, abund.trh = NULL,
threshold_condition = "OR", abund.type ... | /man/phyloseq_filter_prevalence.Rd | permissive | Jorisvansteenbrugge/metagMisc | R | false | true | 1,909 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/phyloseq_filter.R
\name{phyloseq_filter_prevalence}
\alias{phyloseq_filter_prevalence}
\title{Filter low-prevalence OTUs.}
\usage{
phyloseq_filter_prevalence(physeq, prev.trh = 0.05, abund.trh = NULL,
threshold_condition = "OR", abund.type ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_statistics.R
\name{dmode}
\alias{dmode}
\title{Mode of a vector x}
\usage{
dmode(x)
}
\arguments{
\item{x}{vector of values}
}
\value{
vector (can return multiple maxima)
}
\description{
Mode of a vector x
}
\examples{
dmode(c(2,3,34,2... | /man/dmode.Rd | no_license | jsilve24/driver | R | false | true | 327 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_statistics.R
\name{dmode}
\alias{dmode}
\title{Mode of a vector x}
\usage{
dmode(x)
}
\arguments{
\item{x}{vector of values}
}
\value{
vector (can return multiple maxima)
}
\description{
Mode of a vector x
}
\examples{
dmode(c(2,3,34,2... |
# A script to update the daily forecast and rebuild the shiny app
#
# - Please ensure setup.R has been run at least once since cloning repository
# before running this update script!
# Load all packages -----------------------------------------------------------
# This is done first to ensure all packages are instal... | /update-forecast.R | permissive | ApexRMS/covid19sim | R | false | false | 3,184 | r | # A script to update the daily forecast and rebuild the shiny app
#
# - Please ensure setup.R has been run at least once since cloning repository
# before running this update script!
# Load all packages -----------------------------------------------------------
# This is done first to ensure all packages are instal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TransformationsInverse.R
\name{InvTurkey}
\alias{InvTurkey}
\title{Performs a Inverse Turkey power tranformation with predefined Lambda}
\usage{
InvTurkey(x, lambda_fit)
}
\arguments{
\item{x}{A vector which needs to be inverse-tranformed}
\... | /man/InvTurkey.Rd | no_license | SrinivasaSaketh/BestTransform | R | false | true | 603 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TransformationsInverse.R
\name{InvTurkey}
\alias{InvTurkey}
\title{Performs a Inverse Turkey power tranformation with predefined Lambda}
\usage{
InvTurkey(x, lambda_fit)
}
\arguments{
\item{x}{A vector which needs to be inverse-tranformed}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imports.R
\docType{package}
\name{eventstudy}
\alias{eventstudy}
\title{Event Study Models and their implementation}
\description{
Wrapper for Difference in Differences with multiple periods and variation in
treatment timing
}
| /man/eventstudy.Rd | no_license | pedrohcgs/MarcusSantAnna2020 | R | false | true | 306 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imports.R
\docType{package}
\name{eventstudy}
\alias{eventstudy}
\title{Event Study Models and their implementation}
\description{
Wrapper for Difference in Differences with multiple periods and variation in
treatment timing
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asim_f.R
\name{asim7_f}
\alias{asim7_f}
\title{Resampling with row/column species richness fixed}
\usage{
asim7_f(speciesData)
}
\arguments{
\item{speciesData}{species-by-site abundance matrix}
}
\value{
shuffled abundance matrix
}
\descripti... | /man/asim7_f.Rd | no_license | irhoppe/AbundSimR | R | false | true | 1,965 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asim_f.R
\name{asim7_f}
\alias{asim7_f}
\title{Resampling with row/column species richness fixed}
\usage{
asim7_f(speciesData)
}
\arguments{
\item{speciesData}{species-by-site abundance matrix}
}
\value{
shuffled abundance matrix
}
\descripti... |
/auxiliar/up2RData.R | no_license | LuisLauM/LBR | R | false | false | 486 | r | ||
## ---- calculate-state-transition-probabilities ----
state_transition_probabilities <- function(state1){
s1<-student_states[state==state1,student_number]
t <- substr(state1,nchar(state1),nchar(state1)) %>% as.integer()
student_states[student_number %in% s1][term==t+1,state] %>% table() %>% prop.table() %>% round... | /DawsonCollege/ScienceProgram/2016/FindingDO/predict-science-enrollment-functions.R | no_license | sameerbhatnagar/CEGEP_Data_mining_for_student_success | R | false | false | 4,916 | r | ## ---- calculate-state-transition-probabilities ----
state_transition_probabilities <- function(state1){
s1<-student_states[state==state1,student_number]
t <- substr(state1,nchar(state1),nchar(state1)) %>% as.integer()
student_states[student_number %in% s1][term==t+1,state] %>% table() %>% prop.table() %>% round... |
#download data file & unzip it in workspace
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="data.zip", method="curl")
unzip ("data.zip", exdir = "./")
#read data
power <- read.csv("household_power_consumption.txt", sep=";", na.strings="?")
# transfor... | /Plot1.R | no_license | 7amza79/ExData_Plotting1 | R | false | false | 802 | r | #download data file & unzip it in workspace
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="data.zip", method="curl")
unzip ("data.zip", exdir = "./")
#read data
power <- read.csv("household_power_consumption.txt", sep=";", na.strings="?")
# transfor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simode.R
\docType{data}
\name{sir_example}
\alias{sir_example}
\title{Example dataset for a multi-group SIR model}
\format{
A list containing the following variables:
\describe{
\item{equations}{The ODE equations describing the sys... | /man/sir_example.Rd | no_license | cran/simode | R | false | true | 1,178 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simode.R
\docType{data}
\name{sir_example}
\alias{sir_example}
\title{Example dataset for a multi-group SIR model}
\format{
A list containing the following variables:
\describe{
\item{equations}{The ODE equations describing the sys... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ageRanges.R
\name{ageRanges}
\alias{ageRanges}
\title{Find the age range for each taxon in a dataframe}
\usage{
ageRanges(Data, Taxonomy = "genus")
}
\arguments{
\item{Data}{A data frame downloaded from the paleobiology database API.}
\item{... | /velociraptr/man/ageRanges.Rd | no_license | willgearty/analysis_tools | R | false | true | 1,229 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ageRanges.R
\name{ageRanges}
\alias{ageRanges}
\title{Find the age range for each taxon in a dataframe}
\usage{
ageRanges(Data, Taxonomy = "genus")
}
\arguments{
\item{Data}{A data frame downloaded from the paleobiology database API.}
\item{... |
#Set Working Directory
setwd("C:/Users/moranb7/Desktop/Coursera")
#Read in src file
src <- "household_power_consumption.txt"
data <- read.table(src, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".")
# Subsetting data for the time period of interest
data_sub <- data[data$Date %in% c("1/2/2007"... | /plot1.r | no_license | redsoxfan0219/ExploratoryDataAnalysisProject1 | R | false | false | 586 | r | #Set Working Directory
setwd("C:/Users/moranb7/Desktop/Coursera")
#Read in src file
src <- "household_power_consumption.txt"
data <- read.table(src, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".")
# Subsetting data for the time period of interest
data_sub <- data[data$Date %in% c("1/2/2007"... |
Replicates = function(repeats, K.V, N.V, gens.V, RRS.V, RRSvar.V, r0.V, l.V, nloci.V, countimmat.V, killimmat.V, adultmort.V,
fecundity.V, maturity.V, lifespan.V, repro1.V,
startcap.V, endcap.V, capfound.V, newfound.V, propnew.V, caplife.V, coffprop.V,
... | /source/Replicates.R | no_license | jwillou/captivebreeding-IBM | R | false | false | 2,093 | r | Replicates = function(repeats, K.V, N.V, gens.V, RRS.V, RRSvar.V, r0.V, l.V, nloci.V, countimmat.V, killimmat.V, adultmort.V,
fecundity.V, maturity.V, lifespan.V, repro1.V,
startcap.V, endcap.V, capfound.V, newfound.V, propnew.V, caplife.V, coffprop.V,
... |
library(ape)
testtree <- read.tree("4994_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4994_0_unrooted.txt") | /codeml_files/newick_trees_processed/4994_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("4994_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="4994_0_unrooted.txt") |
library(rvest)
library(dplyr)
library(forecast)
library(ggplot2)
#install.packages("fpp2")
library(fpp2)
#install.packages("seasonal")
library(seasonal)
library(lubridate)
df = read.csv("final_data.csv")
df$Date = ymd_hms(df$Date)
##Create time series object
##install.packages("xts")
require(xts)
... | /Classical_Time_Series_Decomposition.r | no_license | shringarsharan/Time-Series-Forecasting | R | false | false | 2,095 | r | library(rvest)
library(dplyr)
library(forecast)
library(ggplot2)
#install.packages("fpp2")
library(fpp2)
#install.packages("seasonal")
library(seasonal)
library(lubridate)
df = read.csv("final_data.csv")
df$Date = ymd_hms(df$Date)
##Create time series object
##install.packages("xts")
require(xts)
... |
\name{letterR}
\alias{letterR}
\docType{data}
\title{Window in Shape of Letter R}
\description{
A window in the shape of the capital letter R,
for use in demonstrations.
}
\format{
An object of class \code{"owin"}
representing the capital letter R,
in the same font as the R package logo.
See \code{\link{ow... | /man/letterR.Rd | no_license | cuulee/spatstat | R | false | false | 448 | rd | \name{letterR}
\alias{letterR}
\docType{data}
\title{Window in Shape of Letter R}
\description{
A window in the shape of the capital letter R,
for use in demonstrations.
}
\format{
An object of class \code{"owin"}
representing the capital letter R,
in the same font as the R package logo.
See \code{\link{ow... |
# chapter 9 notes
# King Markov, not efficient, trying to do it before looking at code in book
n <- 1e4
pos <- numeric(n)
pos[1] <- sample(1:10, 1)
for (i in 1:(n-1)) {
coin <- sample(1:2,1)
if (coin==1) {
seashells <- pos[i]-1
} else {
seashells <- pos[i]+1
}
if (seashells==0) {seashells <- 10}
if ... | /chapter9notes.R | no_license | CollinErickson/StatisticalRethinking | R | false | false | 1,935 | r | # chapter 9 notes
# King Markov, not efficient, trying to do it before looking at code in book
n <- 1e4
pos <- numeric(n)
pos[1] <- sample(1:10, 1)
for (i in 1:(n-1)) {
coin <- sample(1:2,1)
if (coin==1) {
seashells <- pos[i]-1
} else {
seashells <- pos[i]+1
}
if (seashells==0) {seashells <- 10}
if ... |
measure_summary <- function(measure = "SE-3", program = "Akron Childrens") {
metric <- metric_data[metric_data$measure_id == measure,]
pretty_rate <- function(data, unit) {
result <- data
if(!is.na(data)) {
#result <- paste0(round(data,3)*100, "%")
if(unit == "Percent") {
... | /reports/2017 Q2/measure_summary.R | permissive | rparrish/GAMUT_reports | R | false | false | 2,402 | r |
measure_summary <- function(measure = "SE-3", program = "Akron Childrens") {
metric <- metric_data[metric_data$measure_id == measure,]
pretty_rate <- function(data, unit) {
result <- data
if(!is.na(data)) {
#result <- paste0(round(data,3)*100, "%")
if(unit == "Percent") {
... |
impact <- read.table("../cleaned_IMPACT_mutations_180508.txt",
sep = "\t", stringsAsFactors = FALSE, header = TRUE)
selected_mutation_types = c("stopgain_SNV",
"splicing",
"nonsynonymous_SNV",
"nonframeshift_insertion",
... | /data/annotate_with_oncokb/prepare_for_annotation.R | no_license | ElsaB/impact-annotator | R | false | false | 1,249 | r | impact <- read.table("../cleaned_IMPACT_mutations_180508.txt",
sep = "\t", stringsAsFactors = FALSE, header = TRUE)
selected_mutation_types = c("stopgain_SNV",
"splicing",
"nonsynonymous_SNV",
"nonframeshift_insertion",
... |
library(circlize)
layout(matrix(1:9,3,3))
for (i in 1:9){
factors = letters[1:8]
par(mar = c(0.5,0.5,0.5,0.5))
circos.par(cell.padding = c(0,0,0,0))
circos.initialize(factors = factors, xlim = c(0, 1))
circos.trackPlotRegion(ylim = c(0, 1), track.height = 0.05,
bg.col = rand_color(8),... | /circos05.R | no_license | ZhouTong2018/Circos | R | false | false | 533 | r | library(circlize)
layout(matrix(1:9,3,3))
for (i in 1:9){
factors = letters[1:8]
par(mar = c(0.5,0.5,0.5,0.5))
circos.par(cell.padding = c(0,0,0,0))
circos.initialize(factors = factors, xlim = c(0, 1))
circos.trackPlotRegion(ylim = c(0, 1), track.height = 0.05,
bg.col = rand_color(8),... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_data.R
\name{gen_sub_question_data}
\alias{gen_sub_question_data}
\title{Generate sub_question data}
\usage{
gen_sub_question_data(sub, n_answer, min_count, max_count)
}
\arguments{
\item{sub}{Numeric. The index of the sub_question that i... | /man/gen_sub_question_data.Rd | permissive | leofmr/surveystats | R | false | true | 809 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_data.R
\name{gen_sub_question_data}
\alias{gen_sub_question_data}
\title{Generate sub_question data}
\usage{
gen_sub_question_data(sub, n_answer, min_count, max_count)
}
\arguments{
\item{sub}{Numeric. The index of the sub_question that i... |
/R/skate_mapping_regions.R | no_license | iantaylor-NOAA/BigSkate_Doc | R | false | false | 11,067 | r | ||
`trecase.b1.A` =
function(yi, ind.lst, X, twosex, sex, ni, ni0, xs, start, iphi=1, theta=1, maxiter=100, eps=1E-3, tech.ctrl){
triali = 0
par0 = start
if(twosex){
zeroes = rep(0, 2)
seq = 1:4
np = 1:11
bsi1 = c(3, 5)
bsi2 = c(4, 6)
}else{
zeroes = rep(0, 1)
seq = 1:2
... | /R/trecase.b1.A.R | no_license | cran/rxSeq | R | false | false | 2,096 | r | `trecase.b1.A` =
function(yi, ind.lst, X, twosex, sex, ni, ni0, xs, start, iphi=1, theta=1, maxiter=100, eps=1E-3, tech.ctrl){
triali = 0
par0 = start
if(twosex){
zeroes = rep(0, 2)
seq = 1:4
np = 1:11
bsi1 = c(3, 5)
bsi2 = c(4, 6)
}else{
zeroes = rep(0, 1)
seq = 1:2
... |
# Script to calculate VIC CPUE Correlation and make plot
mydata <- read.csv("VIC_CPUE_Settlement_Correlation_data.csv", header = T)
# # tests different lags (I think) - note i manually did a 1 year lag above.
x <- ccf(mydata$Predicted.settlement, mydata$CPUE, na.action = na.pass)
x
plot(x)
# Create lag... | /3_Figures/Figure_7.R | no_license | jaseeverett/TailorParticleTracking | R | false | false | 1,582 | r | # Script to calculate VIC CPUE Correlation and make plot
mydata <- read.csv("VIC_CPUE_Settlement_Correlation_data.csv", header = T)
# # tests different lags (I think) - note i manually did a 1 year lag above.
x <- ccf(mydata$Predicted.settlement, mydata$CPUE, na.action = na.pass)
x
plot(x)
# Create lag... |
# !diagnostics off
# packages ----------------------------------------------------------------
library("DiagrammeR")#install.packages("DiagrammeR")
library(plotly)
library(plyr)
library(dplyr)
library(tableone)
# get data ----------------------------------------------------------------
setwd("C:/Users/amykr/Box Sync/... | /R01/astmh abstracts 2017/priyanka malaria aic visit a.r | no_license | amyrobyn/LaBeaud_Lab | R | false | false | 20,761 | r | # !diagnostics off
# packages ----------------------------------------------------------------
library("DiagrammeR")#install.packages("DiagrammeR")
library(plotly)
library(plyr)
library(dplyr)
library(tableone)
# get data ----------------------------------------------------------------
setwd("C:/Users/amykr/Box Sync/... |
submit = function(){
source("lib/submitWithConfiguration.R")
conf <- list()
conf$assignmentSlug = 'logistic-regression';
conf$itemName = 'Logistic Regression';
conf$partArrays = c(
'1',
'sigmoid.R' ,
'Sigmoid Function',
'2',
'costFunction.R' ,
'Logistic Regression Cost',
'3... | /Starter_solution/ex2/submit.R | no_license | Arpan-Kreeti/ml-course | R | false | false | 1,543 | r | submit = function(){
source("lib/submitWithConfiguration.R")
conf <- list()
conf$assignmentSlug = 'logistic-regression';
conf$itemName = 'Logistic Regression';
conf$partArrays = c(
'1',
'sigmoid.R' ,
'Sigmoid Function',
'2',
'costFunction.R' ,
'Logistic Regression Cost',
'3... |
#' @@comment: add comments to the Rd file.
#'
#' @tagUsage @@comment This is a comment that will not be user visible.
setClass("CommentTag", contains = "Tag")
setMethod("writeRd", "CommentTag", function(object) {
RdCommand("comment", object@text)
})
| /R/tag-comments.r | no_license | kashenfelter/roxygen3 | R | false | false | 253 | r | #' @@comment: add comments to the Rd file.
#'
#' @tagUsage @@comment This is a comment that will not be user visible.
setClass("CommentTag", contains = "Tag")
setMethod("writeRd", "CommentTag", function(object) {
RdCommand("comment", object@text)
})
|
## from iconv.Rd
(x <- "fa\xE7ile")
charToRaw(xx <- iconv(x, "latin1", "UTF-8"))
iconv(x, "latin1", "ASCII") # NA
iconv(x, "latin1", "ASCII", "?") # "fa?ile"
iconv(x, "latin1", "ASCII", "") # "faile"
iconv(x, "latin1", "ASCII", "byte") # "fa<e7>ile"
# Extracts from R help files
(x <- c("Ekstr\xf8... | /R-Portable/tests/encodings.R | permissive | ksasso/Electron_ShinyApp_Deployment | R | false | false | 863 | r | ## from iconv.Rd
(x <- "fa\xE7ile")
charToRaw(xx <- iconv(x, "latin1", "UTF-8"))
iconv(x, "latin1", "ASCII") # NA
iconv(x, "latin1", "ASCII", "?") # "fa?ile"
iconv(x, "latin1", "ASCII", "") # "faile"
iconv(x, "latin1", "ASCII", "byte") # "fa<e7>ile"
# Extracts from R help files
(x <- c("Ekstr\xf8... |
hpc<-read.table("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE)
columnnames<-hpc[1,]
namesv<-as.vector(columnnames)
namesv1<-unlist(namesv,use.names=FALSE)
colnames(hpc)<-namesv1
hpc$Date <- as.Date(hpc$Date , "%d/%m/%Y")
hpc.sub <- subset(hpc, Date=="2007-2-1"|Date=="2007-2-2")
hpc.sub$datetime<-past... | /plot4.R | no_license | louieongithub/ExData_Plotting1 | R | false | false | 1,008 | r | hpc<-read.table("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE)
columnnames<-hpc[1,]
namesv<-as.vector(columnnames)
namesv1<-unlist(namesv,use.names=FALSE)
colnames(hpc)<-namesv1
hpc$Date <- as.Date(hpc$Date , "%d/%m/%Y")
hpc.sub <- subset(hpc, Date=="2007-2-1"|Date=="2007-2-2")
hpc.sub$datetime<-past... |
spendingSummaryUI <- function() {
fluidPage(
tags$head(
tags$style(
HTML("
.thresholdsetter > .shiny-input-container {
width : 100%;
padding-left: 60px;
}
")
)
... | /R/ui_spending_summary.R | no_license | tkoncz/personal-finance-monitoring | R | false | false | 1,387 | r | spendingSummaryUI <- function() {
fluidPage(
tags$head(
tags$style(
HTML("
.thresholdsetter > .shiny-input-container {
width : 100%;
padding-left: 60px;
}
")
)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package_revision_list.R
\name{package_revision_list}
\alias{package_revision_list}
\title{Return a dataset (package's) revisions as a list of dictionaries.}
\usage{
package_revision_list(
id,
url = get_default_url(),
key = get_default_k... | /man/package_revision_list.Rd | permissive | ropensci/ckanr | R | false | true | 1,570 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package_revision_list.R
\name{package_revision_list}
\alias{package_revision_list}
\title{Return a dataset (package's) revisions as a list of dictionaries.}
\usage{
package_revision_list(
id,
url = get_default_url(),
key = get_default_k... |
source('code/functions/helper.R')
source('code/functions/cleanup.R')
cq_fed <- read_csv('output/80_10/community_quota_fed_only_80_10.csv') %>%
filter(sim<41)
cq_oa <- read_csv('output/80_10/community_quota_open_access_80_10.csv') %>%
filter(sim<41)
sq <- read.csv("output/80_10/status_quo_80_10.csv")
state_ecs <... | /code/scenarios/80_10/evaluations.R | no_license | ben-williams/parallel_diverge | R | false | false | 23,135 | r |
source('code/functions/helper.R')
source('code/functions/cleanup.R')
cq_fed <- read_csv('output/80_10/community_quota_fed_only_80_10.csv') %>%
filter(sim<41)
cq_oa <- read_csv('output/80_10/community_quota_open_access_80_10.csv') %>%
filter(sim<41)
sq <- read.csv("output/80_10/status_quo_80_10.csv")
state_ecs <... |
#install.packages("gpr")
library(gpr)
#%% =========== Part 1: Loading and Visualizing Data =============
#% We start the exercise by first loading and visualizing the dataset.
#% The following code will load the dataset into your environment and plot
#% the data.
#%
trial <- read.csv("trial.csv", head = T, sep =... | /Assignement_5/ex5.r | no_license | clustersdata/MachineLearning-25 | R | false | false | 4,929 | r |
#install.packages("gpr")
library(gpr)
#%% =========== Part 1: Loading and Visualizing Data =============
#% We start the exercise by first loading and visualizing the dataset.
#% The following code will load the dataset into your environment and plot
#% the data.
#%
trial <- read.csv("trial.csv", head = T, sep =... |
# disaggregation of a timeseries using natural spline interpolation,
# employing function stats::spline. We don't use function spline in package
# regts because stats::spline does not implement the not-a-knot boundary condition.
# we use this function to test regts::spline
disagg_natural <- function(x, nfrequency,
... | /pkg/tests/testthat/utils/disagg_natural.R | no_license | timemod/regts | R | false | false | 2,028 | r | # disaggregation of a timeseries using natural spline interpolation,
# employing function stats::spline. We don't use function spline in package
# regts because stats::spline does not implement the not-a-knot boundary condition.
# we use this function to test regts::spline
disagg_natural <- function(x, nfrequency,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cartogram_ncont.R
\name{cartogram_ncont}
\alias{cartogram_ncont}
\alias{cartogram_ncont.SpatialPolygonsDataFrame}
\alias{cartogram_ncont.sf}
\title{Calculate Non-Contiguous Cartogram Boundaries}
\usage{
cartogram_ncont(x, weight, k = 1, inpla... | /man/cartogram_ncont.Rd | no_license | neocarto/cartogram | R | false | true | 1,606 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cartogram_ncont.R
\name{cartogram_ncont}
\alias{cartogram_ncont}
\alias{cartogram_ncont.SpatialPolygonsDataFrame}
\alias{cartogram_ncont.sf}
\title{Calculate Non-Contiguous Cartogram Boundaries}
\usage{
cartogram_ncont(x, weight, k = 1, inpla... |
context("Reading from workbook is identical to reading from file")
test_that("Reading from loaded workbook", {
wb <- createWorkbook()
for (i in 1:4)
addWorksheet(wb, sprintf("Sheet %s", i))
writeData(wb, sheet = 1, x = mtcars, colNames = TRUE, rowNames = TRUE, startRow = 10, startCol = 5, borders = "all... | /tests/testthat/test-load_read_file_read_equality.R | no_license | pachadotdev/openxlsx | R | false | false | 1,747 | r |
context("Reading from workbook is identical to reading from file")
test_that("Reading from loaded workbook", {
wb <- createWorkbook()
for (i in 1:4)
addWorksheet(wb, sprintf("Sheet %s", i))
writeData(wb, sheet = 1, x = mtcars, colNames = TRUE, rowNames = TRUE, startRow = 10, startCol = 5, borders = "all... |
library(psych)
library(cvTools)
library(doParallel)
library(tidyverse)
library(svd)
library(foreach)
library(fanc)
tr <- psych::tr
map <- purrr::map
log_trans <- function(Mat, offset){
return(log(Mat + offset))
}
kullback <- function(beta,ui, test){
calculated <- beta%*%t(beta) + diag(ui)
calculated <- as.matri... | /Simulation/functions.R | no_license | doublexism/episfa | R | false | false | 35,171 | r | library(psych)
library(cvTools)
library(doParallel)
library(tidyverse)
library(svd)
library(foreach)
library(fanc)
tr <- psych::tr
map <- purrr::map
log_trans <- function(Mat, offset){
return(log(Mat + offset))
}
kullback <- function(beta,ui, test){
calculated <- beta%*%t(beta) + diag(ui)
calculated <- as.matri... |
%% File Name: immer_jml.Rd
%% File Version: 0.508
\name{immer_jml}
\alias{immer_jml}
\alias{summary.immer_jml}
\alias{IRT.likelihood.immer_jml}
\alias{logLik.immer_jml}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Joint Maximum Likelihood Estimation for the Partial Credit Model
w... | /man/immer_jml.Rd | no_license | cran/immer | R | false | false | 7,677 | rd | %% File Name: immer_jml.Rd
%% File Version: 0.508
\name{immer_jml}
\alias{immer_jml}
\alias{summary.immer_jml}
\alias{IRT.likelihood.immer_jml}
\alias{logLik.immer_jml}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Joint Maximum Likelihood Estimation for the Partial Credit Model
w... |
# Copyright 2018 GRAIL, Inc. All rights reserved.
# Use of this source code is governed by the Apache 2.0
# license that can be found in the LICENSE file.
# Global variables used by tests (helper-* files are loaded by testthat)
base_out_dir <- "."
data_dir <- file.path(base_out_dir, "test_data")
in_dir_s... | /tests/testthat/helper-test_data.R | permissive | slw287r/conta | R | false | false | 4,217 | r | # Copyright 2018 GRAIL, Inc. All rights reserved.
# Use of this source code is governed by the Apache 2.0
# license that can be found in the LICENSE file.
# Global variables used by tests (helper-* files are loaded by testthat)
base_out_dir <- "."
data_dir <- file.path(base_out_dir, "test_data")
in_dir_s... |
library(shiny)
library(ggplot2)
library(leaflet)
library(shinydashboard)
library(magrittr)
library(shinyjs)
data("diamonds", package = "ggplot2")
root <- rprojroot::find_rstudio_root_file()
pizza <- jsonlite::fromJSON(file.path(root, "/lesson2_Flexdashboard/favoritespots.json")) %>%
tidyr::unnest()
shinyServer... | /lesson3_Shinydashboard/app2/server.r | no_license | lili013/shiny_dashboard_tutorial | R | false | false | 2,609 | r | library(shiny)
library(ggplot2)
library(leaflet)
library(shinydashboard)
library(magrittr)
library(shinyjs)
data("diamonds", package = "ggplot2")
root <- rprojroot::find_rstudio_root_file()
pizza <- jsonlite::fromJSON(file.path(root, "/lesson2_Flexdashboard/favoritespots.json")) %>%
tidyr::unnest()
shinyServer... |
\name{ecospat.grid.clim.dyn}
\alias{ecospat.grid.clim.dyn}
\title{Dynamic Occurrence Densities Grid}
\description{Create a grid with occurrence densities along one or two gridded environmental gradients.}
\usage{ecospat.grid.clim.dyn (glob, glob1, sp, R, th.sp, th.env, geomask,
kernel.method, extend.ext... | /man/ecospat.grid.clim.dyn.Rd | no_license | cran/ecospat | R | false | false | 7,636 | rd | \name{ecospat.grid.clim.dyn}
\alias{ecospat.grid.clim.dyn}
\title{Dynamic Occurrence Densities Grid}
\description{Create a grid with occurrence densities along one or two gridded environmental gradients.}
\usage{ecospat.grid.clim.dyn (glob, glob1, sp, R, th.sp, th.env, geomask,
kernel.method, extend.ext... |
# opposite of in operator
# @param x value to search for
# @param table object to search
#
`%nin%` <- function (x, table)
match(x, table, nomatch = 0) == 0
# named vector to tibble
#
# @description turn a named vector into a wide tibble.
# This is similar to and connected with `tibble::enframe`.
# However, the... | /R/misc.R | no_license | bcjaeger/tibbleOne | R | false | false | 2,008 | r |
# opposite of in operator
# @param x value to search for
# @param table object to search
#
`%nin%` <- function (x, table)
match(x, table, nomatch = 0) == 0
# named vector to tibble
#
# @description turn a named vector into a wide tibble.
# This is similar to and connected with `tibble::enframe`.
# However, the... |
#load packages
pack <- function(pkg){
newpkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(newpkg))
install.packages(newpkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages <- c("tidyverse", "magrittr", "sf", "tidycensus", "readxl", "units", "scales")
pa... | /Scripts/Pavement Conditions/1) Data Import.R | no_license | kevinanderson26/Tracking-Progess | R | false | false | 5,405 | r | #load packages
pack <- function(pkg){
newpkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(newpkg))
install.packages(newpkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages <- c("tidyverse", "magrittr", "sf", "tidycensus", "readxl", "units", "scales")
pa... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{KinematicsFeatures-class}
\alias{KinematicsFeatures-class}
\title{KinematicsFeatures class}
\description{
S4 class for storing information on all kinematics features identified for a single trajector... | /man/KinematicsFeatures-class.Rd | permissive | federicomarini/flowcatchR-release | R | false | false | 437 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{KinematicsFeatures-class}
\alias{KinematicsFeatures-class}
\title{KinematicsFeatures class}
\description{
S4 class for storing information on all kinematics features identified for a single trajector... |
#' Count graphs in a graph series object
#'
#' @description
#'
#' Counts the total number of graphs in a graph series object.
#'
#' @param graph_series A graph series object of type `dgr_graph_1D`
#'
#' @return A numeric vector representing a count of graphs in a graph series
#' object.
#'
#' @examples
#' # Create th... | /R/count_graphs_in_graph_series.R | permissive | rich-iannone/DiagrammeR | R | false | false | 1,134 | r | #' Count graphs in a graph series object
#'
#' @description
#'
#' Counts the total number of graphs in a graph series object.
#'
#' @param graph_series A graph series object of type `dgr_graph_1D`
#'
#' @return A numeric vector representing a count of graphs in a graph series
#' object.
#'
#' @examples
#' # Create th... |
library(rstan)
library(tidyverse)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
d <- read_csv(file='dataset/data-conc.csv')
# Kick Stan model ---------------------------------------------------------
T_new <- 60
Time_new <- seq(from=0, to=24, length=T_new)
stan_data <- list(T=nrow(d... | /kick/kick_differential_equation_model.R | no_license | KamonohashiPerry/stan100knocks | R | false | false | 1,231 | r | library(rstan)
library(tidyverse)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
d <- read_csv(file='dataset/data-conc.csv')
# Kick Stan model ---------------------------------------------------------
T_new <- 60
Time_new <- seq(from=0, to=24, length=T_new)
stan_data <- list(T=nrow(d... |
## Name: Elizabeth Lee
## Date: 9/8/17
## Function: write ili data at national level
## Use this as another counterpoint for cty-level comparison of aggregation bias
## Filenames: physician_coverage/DX_Coverage_by_Flu_Season_20150620.csv; Py_export/iliByallZip_allWeekly_totServ_totAge.csv
## Data Source: IMS Health i... | /programs/write_iliProp_data_nat.R | no_license | eclee25/flu-SDI-scales | R | false | false | 4,182 | r |
## Name: Elizabeth Lee
## Date: 9/8/17
## Function: write ili data at national level
## Use this as another counterpoint for cty-level comparison of aggregation bias
## Filenames: physician_coverage/DX_Coverage_by_Flu_Season_20150620.csv; Py_export/iliByallZip_allWeekly_totServ_totAge.csv
## Data Source: IMS Health i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpolateFunctions.R
\name{weeklyInterpolate.1D}
\alias{weeklyInterpolate.1D}
\title{Interpolate LTER data to weekly}
\usage{
weeklyInterpolate.1D(lakeAbr, var, dataset)
}
\arguments{
\item{lakeAbr}{Lake identification, string}
\item{var}{... | /man/weeklyInterpolate.1D.Rd | no_license | hdugan/NTLlakeloads | R | false | true | 846 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpolateFunctions.R
\name{weeklyInterpolate.1D}
\alias{weeklyInterpolate.1D}
\title{Interpolate LTER data to weekly}
\usage{
weeklyInterpolate.1D(lakeAbr, var, dataset)
}
\arguments{
\item{lakeAbr}{Lake identification, string}
\item{var}{... |
library(shiny)
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "Results"),
dashboardSidebar(
box(
width = NULL, background = "black",
# Input: Selector for choosing variable ----
checkboxGroupInput("variable", label = h5("Choose joint(s)"), #h3 is larger than h4 #Output is th... | /ui.R | no_license | Schelin/AnalysisChoicesOLVH | R | false | false | 3,777 | r | library(shiny)
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "Results"),
dashboardSidebar(
box(
width = NULL, background = "black",
# Input: Selector for choosing variable ----
checkboxGroupInput("variable", label = h5("Choose joint(s)"), #h3 is larger than h4 #Output is th... |
library(tidyverse)
library(caret)
library(signal)
library(zoo)
source("./preprocessing.R")
# load model
model_rf <- readRDS("./model_rf.rds")
# load test set and label
test_DF <- read_csv("./")
label_DF <- read_csv("./")
# load result
result <- hold_out_test(test_DF, label_DF, model_rf)
print(result)
| /holdOutTest.R | no_license | avehwing/telematics-data-analysis | R | false | false | 306 | r | library(tidyverse)
library(caret)
library(signal)
library(zoo)
source("./preprocessing.R")
# load model
model_rf <- readRDS("./model_rf.rds")
# load test set and label
test_DF <- read_csv("./")
label_DF <- read_csv("./")
# load result
result <- hold_out_test(test_DF, label_DF, model_rf)
print(result)
|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.95783720510302e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615839580-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 363 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.95783720510302e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta... |
# SOMnn topology-based classifier
# Copyright (C) 2017 Andreas Dominik
# THM University of Applied Sciences
# Gießen, Germany
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | /R/SOMnn.R | no_license | cran/som.nn | R | false | false | 9,670 | r | # SOMnn topology-based classifier
# Copyright (C) 2017 Andreas Dominik
# THM University of Applied Sciences
# Gießen, Germany
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.