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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLUIDPROPS.R
\name{oil.dead_visc.BeggsRobinson}
\alias{oil.dead_visc.BeggsRobinson}
\title{Dead Oil viscosity by Beggs-Robinson}
\usage{
oil.dead_visc.BeggsRobinson(temp, API)
}
\arguments{
\item{temp}{temperature}
\item{API}{oil specific gr... | /man/oil.dead_visc.BeggsRobinson.Rd | no_license | maulingogri/rNodal | R | false | true | 382 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FLUIDPROPS.R
\name{oil.dead_visc.BeggsRobinson}
\alias{oil.dead_visc.BeggsRobinson}
\title{Dead Oil viscosity by Beggs-Robinson}
\usage{
oil.dead_visc.BeggsRobinson(temp, API)
}
\arguments{
\item{temp}{temperature}
\item{API}{oil specific gr... |
setwd('~/dev/marchMayhem/March_Madness_2017/')
rm(list = ls())
# scripts needed for data transformations
source('../prepData.R')
season.years <- levels(as.factor(tourney_results.c$Season))[19:32]
# season.years <- c('2016')
train_df <- prepTrainingData(season.years)
test_df <- prepTestingData('2017')
str(train_df)
... | /datacleanup.R | no_license | SeyiA91/MarchMadness | R | false | false | 3,978 | r | setwd('~/dev/marchMayhem/March_Madness_2017/')
rm(list = ls())
# scripts needed for data transformations
source('../prepData.R')
season.years <- levels(as.factor(tourney_results.c$Season))[19:32]
# season.years <- c('2016')
train_df <- prepTrainingData(season.years)
test_df <- prepTestingData('2017')
str(train_df)
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/purity.R
\name{savgol}
\alias{savgol}
\title{Savytzky-Golay filter}
\usage{
savgol(data, params)
}
\arguments{
\item{data}{a matrix with data values}
\item{params}{vector with parameters: derivative order, width of filter and polynom... | /man/savgol.Rd | no_license | svkucheryavski/supure | R | false | false | 407 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/purity.R
\name{savgol}
\alias{savgol}
\title{Savytzky-Golay filter}
\usage{
savgol(data, params)
}
\arguments{
\item{data}{a matrix with data values}
\item{params}{vector with parameters: derivative order, width of filter and polynom... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dd.plot.R
\name{dd.plot}
\alias{dd.plot}
\title{Depth-Depth Plots}
\usage{
dd.plot(data1, data2 = rmvnorm(nrow(data1), array(0, ncol(data1)), diag(1,
ncol(data1), ncol(data1))), main = "Normal DD-plot",
xlab = "Sample Depths", ylab = "Nor... | /man/dd.plot.Rd | no_license | cran/depth.plot | R | false | true | 1,233 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dd.plot.R
\name{dd.plot}
\alias{dd.plot}
\title{Depth-Depth Plots}
\usage{
dd.plot(data1, data2 = rmvnorm(nrow(data1), array(0, ncol(data1)), diag(1,
ncol(data1), ncol(data1))), main = "Normal DD-plot",
xlab = "Sample Depths", ylab = "Nor... |
library(readxl)
library(optimx)
library(pracma)
library(tseries)
library(Metrics)
# parameters
h <- 0.9701556 # obtained from data
# function looking for optimal sigma and beta parameters
TP_findpar <- function(betasigma) {
beta <- betasigma[1]
sigma <- betasigma[2]
# pre-allocate
b <- matrix(... | /Code/RMSE_TermPremium.R | no_license | MartinVojtek/masters_thesis | R | false | false | 1,760 | r | library(readxl)
library(optimx)
library(pracma)
library(tseries)
library(Metrics)
# parameters
h <- 0.9701556 # obtained from data
# function looking for optimal sigma and beta parameters
TP_findpar <- function(betasigma) {
beta <- betasigma[1]
sigma <- betasigma[2]
# pre-allocate
b <- matrix(... |
apply(mtcars,2,mean)
apply(mtcars,1,mean)
#lapply()
#sapply()
#> apply(mtcars,2,mean)
# mpg cyl disp hp drat wt qsec vs am gear carb
# 20.090625 6.187500 230.721875 146.687500 3.596563 3.217250 17.848750 0.437500 0.406250 3.68... | /Funtion_remember/Part2(apply).R | no_license | LucasZhengrui/R_Lauguage_Study | R | false | false | 1,665 | r | apply(mtcars,2,mean)
apply(mtcars,1,mean)
#lapply()
#sapply()
#> apply(mtcars,2,mean)
# mpg cyl disp hp drat wt qsec vs am gear carb
# 20.090625 6.187500 230.721875 146.687500 3.596563 3.217250 17.848750 0.437500 0.406250 3.68... |
# Time Series - xts
| /77-TS/TS-xts.R | no_license | DUanalytics/rAnalytics | R | false | false | 20 | r | # Time Series - xts
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/koboAPI.R
\name{kobo_noGroupsHeader}
\alias{kobo_noGroupsHeader}
\title{Remove groupes from dataframe header}
\usage{
kobo_noGroupsHeader(data, formid, pwd, user,
api = "https://kobo.humanitarianresponse.info", separator = "\\\\/")
}
\argum... | /man/kobo_noGroupsHeader.Rd | no_license | agualtieri/koboAPI | R | false | true | 928 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/koboAPI.R
\name{kobo_noGroupsHeader}
\alias{kobo_noGroupsHeader}
\title{Remove groupes from dataframe header}
\usage{
kobo_noGroupsHeader(data, formid, pwd, user,
api = "https://kobo.humanitarianresponse.info", separator = "\\\\/")
}
\argum... |
################################################################
## Workshop: Collecting and Analyzing Social Media Data with R
## Script 3: Collecting Facebook data
## Author: Shivam Panchal
################################################################
# Loading the Rfacebook package
library(Rfacebook)
... | /facebook-data-collection.r | no_license | ShivamPanchal/Social-Media-Analysis-using-R | R | false | false | 3,238 | r | ################################################################
## Workshop: Collecting and Analyzing Social Media Data with R
## Script 3: Collecting Facebook data
## Author: Shivam Panchal
################################################################
# Loading the Rfacebook package
library(Rfacebook)
... |
## PURPOSE: APPLY A BAYESIAN NETWORK TO ESTIMATE LEARNER KNOWLEGE STATE GIVEN EVIDENCE OF LEARNING
## MEASUREMENT. The scope of the estimation is bounded by the learning map associated with a course unit and the
## course section. An external file USE_CASE_QUERY_ATTRIBUTES specifies the scope of the query.
##
## MA... | /PrototypeSubroutinesInR/LEARNER_KNOW_STATE—BRUTE_FORCE.R | no_license | hamlett-neil-ur/diagnostic_cognitive_model | R | false | false | 42,478 | r | ## PURPOSE: APPLY A BAYESIAN NETWORK TO ESTIMATE LEARNER KNOWLEGE STATE GIVEN EVIDENCE OF LEARNING
## MEASUREMENT. The scope of the estimation is bounded by the learning map associated with a course unit and the
## course section. An external file USE_CASE_QUERY_ATTRIBUTES specifies the scope of the query.
##
## MA... |
library(agridat)
### Name: hayman.tobacco
### Title: Diallel cross of Aztec tobacco
### Aliases: hayman.tobacco
### Keywords: datasets
### ** Examples
# 1951 data. Fit the first REML model of Mohring 2011 Supplement.
data(hayman.tobacco)
dat1 <- subset(hayman.tobacco, year==1951)
# Make a factor 'comb' in which... | /data/genthat_extracted_code/agridat/examples/hayman.tobacco.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,894 | r | library(agridat)
### Name: hayman.tobacco
### Title: Diallel cross of Aztec tobacco
### Aliases: hayman.tobacco
### Keywords: datasets
### ** Examples
# 1951 data. Fit the first REML model of Mohring 2011 Supplement.
data(hayman.tobacco)
dat1 <- subset(hayman.tobacco, year==1951)
# Make a factor 'comb' in which... |
#' vcf annotation with MORFEE
#'
#' @param myvcf_annot an ANNOVAR annotated VCF object to annotate with MORFEE
#' @param morfee_data data object obtained from get.morfee.data()
#'
#' @importFrom stats na.omit
#' @import foreach
#' @import VariantAnnotation
#' @import Biostrings
#' @import GenomicRanges
#'
#' @export
#'... | /R/morfee.R | no_license | daissi/MORFEE | R | false | false | 20,313 | r | #' vcf annotation with MORFEE
#'
#' @param myvcf_annot an ANNOVAR annotated VCF object to annotate with MORFEE
#' @param morfee_data data object obtained from get.morfee.data()
#'
#' @importFrom stats na.omit
#' @import foreach
#' @import VariantAnnotation
#' @import Biostrings
#' @import GenomicRanges
#'
#' @export
#'... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_multiedge_count.R
\name{get_multiedge_count}
\alias{get_multiedge_count}
\title{Get the count of multiple edges}
\usage{
get_multiedge_count(graph)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
}
\value{
a vector w... | /man/get_multiedge_count.Rd | permissive | akkalbist55/DiagrammeR | R | false | true | 1,172 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_multiedge_count.R
\name{get_multiedge_count}
\alias{get_multiedge_count}
\title{Get the count of multiple edges}
\usage{
get_multiedge_count(graph)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
}
\value{
a vector w... |
\name{navigation.hac}
\alias{navigation.hac}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute bearing, navigated distance and speed
}
\description{
This function computes navigation course (bearing), navigated distance, time diference and navigation speed between GPS fixes in position da... | /man/navigation.hac.Rd | no_license | hvillalo/echogram | R | false | false | 1,682 | rd | \name{navigation.hac}
\alias{navigation.hac}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute bearing, navigated distance and speed
}
\description{
This function computes navigation course (bearing), navigated distance, time diference and navigation speed between GPS fixes in position da... |
#' Filter Vegetation Index with Modified Whittaker Approach
#'
#' @description
#' Use a modified Whittaker filter function (see References) from package
#' **ptw** to filter a vegetation index (VI) time series of satellite data.
#'
#' @param vi `Raster*` or `character` file names, sorted VI. Use [preStack()]
#' ... | /R/whittaker.R | permissive | itati01/MODIS | R | false | false | 17,749 | r | #' Filter Vegetation Index with Modified Whittaker Approach
#'
#' @description
#' Use a modified Whittaker filter function (see References) from package
#' **ptw** to filter a vegetation index (VI) time series of satellite data.
#'
#' @param vi `Raster*` or `character` file names, sorted VI. Use [preStack()]
#' ... |
# Descriptive Analysis
# Central VA Youth Volunteer Hours
# Redcross Internship
# Yixin Tang (July 29th, 2021)
# Data Source: Red Cross Hour by Race (Calculated by Sophia Walton)
# OUTLIERS INFO ANALYSIS
# Load packages
library(tidyverse)
library(ggplot2)
library(readxl)
library(viridis)
# Read in the data
race <- ... | /hoursbyrace(outliers).R | no_license | srw9rx/redcross_diversityanalysis_codebook | R | false | false | 9,063 | r | # Descriptive Analysis
# Central VA Youth Volunteer Hours
# Redcross Internship
# Yixin Tang (July 29th, 2021)
# Data Source: Red Cross Hour by Race (Calculated by Sophia Walton)
# OUTLIERS INFO ANALYSIS
# Load packages
library(tidyverse)
library(ggplot2)
library(readxl)
library(viridis)
# Read in the data
race <- ... |
kursname <- "bbSt Eng GS 18/19-1"
kursfile <- "bbst_gs_englisch_1819"
lab.kurs <- c(
"A" = "Berufsbegleitende Studien Englisch Grundschule")
lev.kurs <- c(
"Berufsbegleitende Studien Englisch Grundschule")
l.fragen.gs_englisch <- c(
"Das Gesamtkonzept für die bbSt Englisch mit der Aufteilung in die Bereiche Fach... | /3_Analyse/Scripte/bbst_gs_englisch.R | no_license | StefanMunnes/Evaluation_Steps | R | false | false | 8,193 | r | kursname <- "bbSt Eng GS 18/19-1"
kursfile <- "bbst_gs_englisch_1819"
lab.kurs <- c(
"A" = "Berufsbegleitende Studien Englisch Grundschule")
lev.kurs <- c(
"Berufsbegleitende Studien Englisch Grundschule")
l.fragen.gs_englisch <- c(
"Das Gesamtkonzept für die bbSt Englisch mit der Aufteilung in die Bereiche Fach... |
# China dataset cleaning and spade operations
# Created by Simone Passarelli 11_18_20
library(tidyverse)
library(haven)
library(here)
library(janitor)
china_1 <- read_sas(here("data", "raw" , "China", "nutr1_00.sas7bdat"))
china_2 <- read_sas(here("data", "raw" , "China", "nutr2_00.sas7bdat"))
china_3 <- read_sas(he... | /scripts/china_prep.R | no_license | cg0lden/subnational_distributions_BFA | R | false | false | 1,242 | r | # China dataset cleaning and spade operations
# Created by Simone Passarelli 11_18_20
library(tidyverse)
library(haven)
library(here)
library(janitor)
china_1 <- read_sas(here("data", "raw" , "China", "nutr1_00.sas7bdat"))
china_2 <- read_sas(here("data", "raw" , "China", "nutr2_00.sas7bdat"))
china_3 <- read_sas(he... |
#' @title Frequency map profile
#' @description Function to create a frequency profile for a process map.
#' @param value The type of frequency value to be used: absolute or relative.
#' @export enriched_frequency
enriched_frequency <- function(value = c("absolute", "relative"),columnName = NULL) {
value <- match.ar... | /R/enriched_frequency.R | no_license | wfeijen/Uitbreiden_ProcessMap | R | false | false | 538 | r | #' @title Frequency map profile
#' @description Function to create a frequency profile for a process map.
#' @param value The type of frequency value to be used: absolute or relative.
#' @export enriched_frequency
enriched_frequency <- function(value = c("absolute", "relative"),columnName = NULL) {
value <- match.ar... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615835757-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
####
# Raw data - Care Seeking Behavior and Treatment
#
# We model the treatment cascade first as the probability of symptoms appearing followed by the probability of following through with seeking treatment.
#
# Both of these quantities are modeled using the symptoms and treatment reported in the MIS data.
#
# Octobe... | /scripts/Care_Seeking_Model.R | no_license | dd-harp/2019_ASTMH_Bioko_Simulations | R | false | false | 3,126 | r | ####
# Raw data - Care Seeking Behavior and Treatment
#
# We model the treatment cascade first as the probability of symptoms appearing followed by the probability of following through with seeking treatment.
#
# Both of these quantities are modeled using the symptoms and treatment reported in the MIS data.
#
# Octobe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrapper.R
\name{downloadMultipleObjects}
\alias{downloadMultipleObjects}
\title{downloadMultipleObjects}
\usage{
downloadMultipleObjects(bucketname, src, dest = ".", pattern = NULL,
resume = TRUE, split = 5, method = "aria2", quiet = TRUE, ... | /man/downloadMultipleObjects.Rd | permissive | gahoo/ross | R | false | true | 1,506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrapper.R
\name{downloadMultipleObjects}
\alias{downloadMultipleObjects}
\title{downloadMultipleObjects}
\usage{
downloadMultipleObjects(bucketname, src, dest = ".", pattern = NULL,
resume = TRUE, split = 5, method = "aria2", quiet = TRUE, ... |
#' Edge Code
#'
#' This function allows you to classify individual pitches based on the various categories from the Edge% metric. The dataframe passed to the function must include the batter's handedness, the px and pz coordinates from the PITCHf/x system, and the batter's height.
#' @param df A dataframe that, at a mi... | /R/edge_code.R | no_license | keberwein/baseballr | R | false | false | 6,735 | r | #' Edge Code
#'
#' This function allows you to classify individual pitches based on the various categories from the Edge% metric. The dataframe passed to the function must include the batter's handedness, the px and pz coordinates from the PITCHf/x system, and the batter's height.
#' @param df A dataframe that, at a mi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CCAMLRGIS_DataDescription.R
\docType{data}
\name{Coast}
\alias{Coast}
\title{Coast}
\format{
SpatialPolygonsDataFrame
}
\usage{
data(Coast)
}
\description{
Coastline polygons generated from \link{load_Coastline} and sub-sampled to only contai... | /man/Coast.Rd | no_license | rsbivand/CCAMLRGIS | R | false | true | 670 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CCAMLRGIS_DataDescription.R
\docType{data}
\name{Coast}
\alias{Coast}
\title{Coast}
\format{
SpatialPolygonsDataFrame
}
\usage{
data(Coast)
}
\description{
Coastline polygons generated from \link{load_Coastline} and sub-sampled to only contai... |
##-------- Load the .txt as Data Frame ------------------- ##
data <- read.table("./household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?")
##-------- Format the Date ------------------------------- ##
data$Date <- format(strptime(as.character(data$Date), "%d/%m/%Y"), "%Y-%m-%d")
##-------- Subset... | /plot2.R | no_license | chris-villarroel/Assignment-N3 | R | false | false | 916 | r |
##-------- Load the .txt as Data Frame ------------------- ##
data <- read.table("./household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?")
##-------- Format the Date ------------------------------- ##
data$Date <- format(strptime(as.character(data$Date), "%d/%m/%Y"), "%Y-%m-%d")
##-------- Subset... |
library(tidyverse)
library(ncdf4)
library(lubridate)
#edit this path
#TODO: get this from pecan.xml
outdir_name <- "/data/tests/ed2_transect_WB/"
#TODO: refactor this to parallelize as it is quite slow
# Also, shouldn't use .h5 files since we already summarized into .nc files, right?
# If .h5 are necessary, can I use... | /ED2/transect_runs/test/run/plot.R | no_license | KristinaRiemer/model-vignettes | R | false | false | 3,281 | r | library(tidyverse)
library(ncdf4)
library(lubridate)
#edit this path
#TODO: get this from pecan.xml
outdir_name <- "/data/tests/ed2_transect_WB/"
#TODO: refactor this to parallelize as it is quite slow
# Also, shouldn't use .h5 files since we already summarized into .nc files, right?
# If .h5 are necessary, can I use... |
require(XLConnect)
wb <- loadWorkbook("RNASeq_Tools.xlsx")
lst = readWorksheet(wb, sheet = getSheets(wb)[-1], startRow=1, header=FALSE)
for(i in getSheets(wb)[-1]) {
fname = gsub(" ","",i)
write.csv(lst[[i]], row.names=FALSE, col.names=NA, file=paste0("csv/",fname,".csv"))
} | /SoftwareList/xls2csv.R | no_license | ncchung/bioinformatics | R | false | false | 280 | r | require(XLConnect)
wb <- loadWorkbook("RNASeq_Tools.xlsx")
lst = readWorksheet(wb, sheet = getSheets(wb)[-1], startRow=1, header=FALSE)
for(i in getSheets(wb)[-1]) {
fname = gsub(" ","",i)
write.csv(lst[[i]], row.names=FALSE, col.names=NA, file=paste0("csv/",fname,".csv"))
} |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 5.05213242132815e+208, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109957-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 5.05213242132815e+208, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
library(car) ;library(dae) ;library(nlme) ;library(effects)
library(ggplot2) ;library(psych) ;library(interplot)
library(plyr) ;library(devtools);library(ez)
rm(list=ls())
names_group=c("old","young","patient","control")
fname = "/Users/heshamelshafei/Dropbox/Fieldtripping/R/txt/PrepAtt22_behav_table4R.csv"
behav_sum... | /rstudio/PrepAtt22_BehavioralAnalysis_Percentages_InteractionPlot.R | no_license | elshafeh/own | R | false | false | 4,442 | r | library(car) ;library(dae) ;library(nlme) ;library(effects)
library(ggplot2) ;library(psych) ;library(interplot)
library(plyr) ;library(devtools);library(ez)
rm(list=ls())
names_group=c("old","young","patient","control")
fname = "/Users/heshamelshafei/Dropbox/Fieldtripping/R/txt/PrepAtt22_behav_table4R.csv"
behav_sum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rangemap_fig.R
\name{rangemap_fig}
\alias{rangemap_fig}
\title{Figures of species range maps}
\usage{
rangemap_fig(range, polygons, add_extent = FALSE, add_occurrences = FALSE,
basemap_color = "grey93", range_color = "darkgreen",
extent_c... | /man/rangemap_fig.Rd | no_license | ynzhangrong/rangemap | R | false | true | 7,216 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rangemap_fig.R
\name{rangemap_fig}
\alias{rangemap_fig}
\title{Figures of species range maps}
\usage{
rangemap_fig(range, polygons, add_extent = FALSE, add_occurrences = FALSE,
basemap_color = "grey93", range_color = "darkgreen",
extent_c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_app.R
\name{start_shiny_app}
\alias{start_shiny_app}
\title{Shiny app for absolute copy number scaling}
\usage{
start_shiny_app(
load_sample_data = TRUE,
launch_browser = TRUE,
host = getOption("shiny.host", "127.0.0.1"),
port =... | /man/start_shiny_app.Rd | permissive | crukci-bioinformatics/rascal | R | false | true | 1,104 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_app.R
\name{start_shiny_app}
\alias{start_shiny_app}
\title{Shiny app for absolute copy number scaling}
\usage{
start_shiny_app(
load_sample_data = TRUE,
launch_browser = TRUE,
host = getOption("shiny.host", "127.0.0.1"),
port =... |
#' Barnes-Hut implementation of t-Distributed Stochastic Neighbor Embedding
#'
#' Wrapper for the C++ implementation of Multicore t-SNE. t-SNE is a method for constructing a low dimensional embedding of high-dimensional data, distances or similarities. Exact t-SNE can be computed by setting theta=0.0.
#'
#' Given a... | /R/Rtsne.R | no_license | pkharchenko/Rtsne.multicore | R | false | false | 9,465 | r | #' Barnes-Hut implementation of t-Distributed Stochastic Neighbor Embedding
#'
#' Wrapper for the C++ implementation of Multicore t-SNE. t-SNE is a method for constructing a low dimensional embedding of high-dimensional data, distances or similarities. Exact t-SNE can be computed by setting theta=0.0.
#'
#' Given a... |
library(emmeans)
### Name: xtable.emmGrid
### Title: Using 'xtable' for EMMs
### Aliases: xtable.emmGrid xtable.summary_emm print.xtable_emm
### ** Examples
pigsint.lm <- lm(log(conc) ~ source * factor(percent), data = pigs)
pigsint.emm <- emmeans(pigsint.lm, ~ percent | source)
xtable::xtable(pigsint.emm, type = "... | /data/genthat_extracted_code/emmeans/examples/xtable.emmGrid.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 334 | r | library(emmeans)
### Name: xtable.emmGrid
### Title: Using 'xtable' for EMMs
### Aliases: xtable.emmGrid xtable.summary_emm print.xtable_emm
### ** Examples
pigsint.lm <- lm(log(conc) ~ source * factor(percent), data = pigs)
pigsint.emm <- emmeans(pigsint.lm, ~ percent | source)
xtable::xtable(pigsint.emm, type = "... |
## This programme caches the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() x
setinverse <- function(solve) s <<- solve
getinverse <... | /cachematrix.R | no_license | Tuckerman2/ProgrammingAssignment2 | R | false | false | 931 | r | ## This programme caches the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() x
setinverse <- function(solve) s <<- solve
getinverse <... |
associationsToDiamondPlotDf <- function(dat, covariates, criterion,
labels = NULL,
decreasing=NULL,
conf.level=.95,
esMetric = 'r') {
if (is.null(label... | /R/associationsToDiamondPlotDf.R | no_license | DBoegner/userfriendlyscience | R | false | false | 2,657 | r | associationsToDiamondPlotDf <- function(dat, covariates, criterion,
labels = NULL,
decreasing=NULL,
conf.level=.95,
esMetric = 'r') {
if (is.null(label... |
/lib/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/Headers/SecurityHI.r | no_license | oshanis/webnnel | R | false | false | 547 | r | ||
library(ggplot2)
library(dplyr)
interleave <- function(v1,v2)
{
ord1 <- 2*(1:length(v1))-1
ord2 <- 2*(1:length(v2))
c(v1,v2)[order(c(ord1,ord2))]
}
boxes = data.frame(x=c(
1920/2 - 38 * c(1,2,3,4),
1920/2 + 38 * c(1,2,3,4)),
y= 1080/2)
boxCentres = c( 1920/2 - 38 * c(1,2,3,4), 1920/2 + 38 * c(1,2,3,4))
sqSi... | /analysis/check_fix.R | no_license | Riadsala/RemappedCrowding | R | false | false | 1,635 | r | library(ggplot2)
library(dplyr)
interleave <- function(v1,v2)
{
ord1 <- 2*(1:length(v1))-1
ord2 <- 2*(1:length(v2))
c(v1,v2)[order(c(ord1,ord2))]
}
boxes = data.frame(x=c(
1920/2 - 38 * c(1,2,3,4),
1920/2 + 38 * c(1,2,3,4)),
y= 1080/2)
boxCentres = c( 1920/2 - 38 * c(1,2,3,4), 1920/2 + 38 * c(1,2,3,4))
sqSi... |
library(testthat)
library(Rssa)
test_check("Rssa")
| /tests/testthat.R | no_license | asl/rssa | R | false | false | 52 | r | library(testthat)
library(Rssa)
test_check("Rssa")
|
# DESCRIPTION
# This file contains essential functions for the "draw_ifrs.R" file
#' @title Compute PDF or CDF of delay
#' @description Compute PDF or CDF of lognormal delays
#'
#' @param lmu mean on the logscale
#' @param lsigma sd on the logscale
#'
#' @return vector of either probability densities or ... | /utils.R | no_license | ChloeRickards/sars-cov-2-ifr-nyc | R | false | false | 12,045 | r | # DESCRIPTION
# This file contains essential functions for the "draw_ifrs.R" file
#' @title Compute PDF or CDF of delay
#' @description Compute PDF or CDF of lognormal delays
#'
#' @param lmu mean on the logscale
#' @param lsigma sd on the logscale
#'
#' @return vector of either probability densities or ... |
#
#DEPENDENCIES
#
#
suppressMessages(library(RJDBC, quietly=FALSE)) #requires "./sqljdbc4.jar"
suppressMessages(library(getPass, quietly=FALSE))
#
#FUNCTIONS
#
#
getRawDataAll = function(minYear, maxYear, save=F){
#minYear: start of modeled time period
#maxYear: end of modeled time period
#
#value : a raw data... | /try2/quickScripts/dataMatters/dataFunkAll.r | no_license | gasduster99/sppComp | R | false | false | 11,272 | r | #
#DEPENDENCIES
#
#
suppressMessages(library(RJDBC, quietly=FALSE)) #requires "./sqljdbc4.jar"
suppressMessages(library(getPass, quietly=FALSE))
#
#FUNCTIONS
#
#
getRawDataAll = function(minYear, maxYear, save=F){
#minYear: start of modeled time period
#maxYear: end of modeled time period
#
#value : a raw data... |
##################################################
#Author : Pichai Raman
#Date : 10/15/15
#Package : This package is for the creation
#and display of ROC plots that are customizable
#with GGplot. It is meant both for novice and expert
#GGPlot & R users and has a command line component.
################################... | /code/helper/rocon.R | no_license | PichaiRaman/PDACSurvivalAnalysis | R | false | false | 3,728 | r | ##################################################
#Author : Pichai Raman
#Date : 10/15/15
#Package : This package is for the creation
#and display of ROC plots that are customizable
#with GGplot. It is meant both for novice and expert
#GGPlot & R users and has a command line component.
################################... |
library(sp)
load("nc_zips.rda")
library(tidyverse)
glimpse(shp@data)
# Print the class of the data slot of shp
class(shp@data)
# Print GEOID10
shp@data$GEOID10
load("wealthiest_zips.rda")
# Glimpse the nc_income data
glimpse(nc_income)
# Summarize the nc_income data
summary(nc_income)
# Left join nc_income onto... | /R/interactive_maps_leaflet/ex4.R | no_license | m-mburu/data_camp | R | false | false | 3,513 | r |
library(sp)
load("nc_zips.rda")
library(tidyverse)
glimpse(shp@data)
# Print the class of the data slot of shp
class(shp@data)
# Print GEOID10
shp@data$GEOID10
load("wealthiest_zips.rda")
# Glimpse the nc_income data
glimpse(nc_income)
# Summarize the nc_income data
summary(nc_income)
# Left join nc_income onto... |
# this script enables to easily remove log entries in incremental mode.
# if we want to rerun/overwrite previous data
library(magrittr)
logFolder <-
"D:\\temp\\outputFolder\\packageMode"
diagnosticsFileName <- "CreatedDiagnostics.csv"
listFiles <-
list.files(
path = logFolder,
pattern = diagnosticsFileNam... | /extras/EditIncrementalLogDiagnostics.R | permissive | gowthamrao/CohortDiagnostics | R | false | false | 916 | r | # this script enables to easily remove log entries in incremental mode.
# if we want to rerun/overwrite previous data
library(magrittr)
logFolder <-
"D:\\temp\\outputFolder\\packageMode"
diagnosticsFileName <- "CreatedDiagnostics.csv"
listFiles <-
list.files(
path = logFolder,
pattern = diagnosticsFileNam... |
#Wilcox Test
data = read.table("ttestdata.txt")
library(car)
leveneTest(data$V3~factor(data$V2)) #checking for Homogeneity of Variance
#Test is significant, thus indicating a violation of the assumption
t.test(data$V3~factor(data$V2))
#Test is significant, but is inappropriate due to the failure of assumption
wilco... | /Assignment 9.R | no_license | JulietRowe/Stats | R | false | false | 1,254 | r | #Wilcox Test
data = read.table("ttestdata.txt")
library(car)
leveneTest(data$V3~factor(data$V2)) #checking for Homogeneity of Variance
#Test is significant, thus indicating a violation of the assumption
t.test(data$V3~factor(data$V2))
#Test is significant, but is inappropriate due to the failure of assumption
wilco... |
\name{cgarchfilter-methods}
\docType{methods}
\alias{cgarchfilter}
\alias{cgarchfilter,ANY-method}
\alias{cgarchfilter,cGARCHspec-method}
\title{function: Copula-GARCH Filter}
\description{
Method for creating a Copula-GARCH filter object.
}
\usage{
cgarchfilter(spec, data, out.sample = 0, filter.control = li... | /man/cgarchfilter-methods.Rd | no_license | cran/rmgarch | R | false | false | 2,799 | rd | \name{cgarchfilter-methods}
\docType{methods}
\alias{cgarchfilter}
\alias{cgarchfilter,ANY-method}
\alias{cgarchfilter,cGARCHspec-method}
\title{function: Copula-GARCH Filter}
\description{
Method for creating a Copula-GARCH filter object.
}
\usage{
cgarchfilter(spec, data, out.sample = 0, filter.control = li... |
# Define UI for data upload app ----
ui <- fluidPage(
# App title ----
titlePanel(" Fake News Detector"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
#text input
textInput(inputId = "text"... | /ver3/ui.r | no_license | farooqsaqib2017/ShinyApp-Ver1 | R | false | false | 1,822 | r | # Define UI for data upload app ----
ui <- fluidPage(
# App title ----
titlePanel(" Fake News Detector"),
# Sidebar layout with input and output definitions ----
sidebarLayout(
# Sidebar panel for inputs ----
sidebarPanel(
#text input
textInput(inputId = "text"... |
########## FINAL SYMPTOM 2 ##########
setwd("/Users/gildamatteucci/OneDrive - Politecnico di Milano/PROGETTO BAYESIANA/Modified_Data/Filtered_NEW")
symp <- read.csv("Filtered_ALSHistory_Subject_symptoms.csv", header = T)
sy <- symp
library(plyr)
# specifico il sintomo che c'è in other
levels(sy$FINAL_SYMPTOM) <- c... | /Dataset&Filter/Filtering script/Filter_R_ALS_Subject_symptoms.R | no_license | DanielSakir/Bayesian-SLA-project | R | false | false | 2,169 | r | ########## FINAL SYMPTOM 2 ##########
setwd("/Users/gildamatteucci/OneDrive - Politecnico di Milano/PROGETTO BAYESIANA/Modified_Data/Filtered_NEW")
symp <- read.csv("Filtered_ALSHistory_Subject_symptoms.csv", header = T)
sy <- symp
library(plyr)
# specifico il sintomo che c'è in other
levels(sy$FINAL_SYMPTOM) <- c... |
library("RMySQL")
ucscDb <- dbConnect(MySQL(), user="genome", db="hg19",
host="genome-mysql.cse.ucsc.edu")
allTables <- dbListTables(ucscDb)
length(allTables)
dbDisconnect(ucscDb)
allTables[1:5]
| /GettingAndCleaningData/QuizTestingWeek2.R | no_license | ashtearty/datasciencecoursera-1 | R | false | false | 217 | r | library("RMySQL")
ucscDb <- dbConnect(MySQL(), user="genome", db="hg19",
host="genome-mysql.cse.ucsc.edu")
allTables <- dbListTables(ucscDb)
length(allTables)
dbDisconnect(ucscDb)
allTables[1:5]
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_advarsel.R
\name{get_advarsel}
\alias{get_advarsel}
\title{Get and parse the alarmeringsapp rss feed}
\usage{
get_advarsel(rss_feed = "https://alarmeringsapp.like.st/rss")
}
\arguments{
\item{rss_feed}{is the url to the advarsels rss feed... | /man/get_advarsel.Rd | no_license | mikkelkrogsholm/alarmeringsapp | R | false | true | 485 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_advarsel.R
\name{get_advarsel}
\alias{get_advarsel}
\title{Get and parse the alarmeringsapp rss feed}
\usage{
get_advarsel(rss_feed = "https://alarmeringsapp.like.st/rss")
}
\arguments{
\item{rss_feed}{is the url to the advarsels rss feed... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_BSS_SGL.R
\name{prox.nuclear.func.fLS}
\alias{prox.nuclear.func.fLS}
\title{Proximal function for nuclear norm penalty}
\usage{
prox.nuclear.func.fLS(y, A, b, L, lambda, AtA, Atb)
}
\arguments{
\item{y}{model parameter}
\item{A}{de... | /man/prox.nuclear.func.fLS.Rd | no_license | peiliangbai92/VARDetect | R | false | true | 670 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions_BSS_SGL.R
\name{prox.nuclear.func.fLS}
\alias{prox.nuclear.func.fLS}
\title{Proximal function for nuclear norm penalty}
\usage{
prox.nuclear.func.fLS(y, A, b, L, lambda, AtA, Atb)
}
\arguments{
\item{y}{model parameter}
\item{A}{de... |
library("dplyr")
library("readxl")
library("partykit")
library("rpart")
library("caTools")
library("caret")
Data <- read_xlsx("C:/Users/User/Desktop/SEM-1/Data Analytics/ProjectData.xlsx")
str(Data)
df <- data.frame(Data[,-1]) #remove ID from dataframe
Target=ifelse(df$Response==1,'Y','N')
df <- data.frame(d... | /Project.R | no_license | basithamid/DA-Assignments | R | false | false | 5,935 | r | library("dplyr")
library("readxl")
library("partykit")
library("rpart")
library("caTools")
library("caret")
Data <- read_xlsx("C:/Users/User/Desktop/SEM-1/Data Analytics/ProjectData.xlsx")
str(Data)
df <- data.frame(Data[,-1]) #remove ID from dataframe
Target=ifelse(df$Response==1,'Y','N')
df <- data.frame(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util_gfft.R
\name{drop_nodes}
\alias{drop_nodes}
\title{Drop a node from an FFT definition}
\usage{
drop_nodes(fft, nodes = NA, quiet = FALSE)
}
\arguments{
\item{fft}{One FFT definition
(as a data frame in tidy format, with one row per node)... | /man/drop_nodes.Rd | no_license | ndphillips/FFTrees | R | false | true | 2,071 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util_gfft.R
\name{drop_nodes}
\alias{drop_nodes}
\title{Drop a node from an FFT definition}
\usage{
drop_nodes(fft, nodes = NA, quiet = FALSE)
}
\arguments{
\item{fft}{One FFT definition
(as a data frame in tidy format, with one row per node)... |
# To run this make sure these packages have been installed (to install them run
# file with the next line of code uncommented, you only need to do this once per
# machine)
# install.packages(c("httr", "jsonlite", "dplyr", "tidyr"))
library(httr)
library(jsonlite)
library(dplyr)
library(tidyr)
# Sets up information f... | /OPR.R | no_license | OscarLewis/FRCR | R | false | false | 6,668 | r | # To run this make sure these packages have been installed (to install them run
# file with the next line of code uncommented, you only need to do this once per
# machine)
# install.packages(c("httr", "jsonlite", "dplyr", "tidyr"))
library(httr)
library(jsonlite)
library(dplyr)
library(tidyr)
# Sets up information f... |
\name{AlgebraicRule-class}
\docType{class}
\alias{AlgebraicRule-class}
\title{SBML type "AlgebraicRule"}
\description{Expresses equations that are not assignments nor rates of change.}
\section{Instantiation}{
Objects can be created by calls of the form \code{new("AlgebraicRule", ...)}.
}
\section{Slots}{
\describe{... | /man/AlgebraicRule-class.Rd | no_license | cran/rsbml | R | false | false | 1,353 | rd | \name{AlgebraicRule-class}
\docType{class}
\alias{AlgebraicRule-class}
\title{SBML type "AlgebraicRule"}
\description{Expresses equations that are not assignments nor rates of change.}
\section{Instantiation}{
Objects can be created by calls of the form \code{new("AlgebraicRule", ...)}.
}
\section{Slots}{
\describe{... |
library(ape)
testtree <- read.tree("12590_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12590_0_unrooted.txt") | /codeml_files/newick_trees_processed/12590_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("12590_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12590_0_unrooted.txt") |
testlist <- list(a = 1735549300L, b = 1952542255L, x = c(795373421L, NA, 2053468767L, 1885430635L, 1634166131L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610386564-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 174 | r | testlist <- list(a = 1735549300L, b = 1952542255L, x = c(795373421L, NA, 2053468767L, 1885430635L, 1634166131L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
# Quiz 07-2
set.seed(1034)
library(tidyverse)
library(GGally)
library(cowplot)
n <- 20
x1 <- scale(runif(n, 5, 9))
x2 <- scale(runif(n, 1, 4))
y <- rnorm(n, 5, 2) + (2.3 * x1 + rnorm(n)) + (1.8 * x2 + rnorm(n))
M <- data.frame(y, x1, x2)
ggscatmat(M)
fm <- lm(y ~ x1 + x2)
summary(fm)
| /Quiz_Code/Quiz_08-2.R | permissive | midoripanda/quant_methods | R | false | false | 291 | r | # Quiz 07-2
set.seed(1034)
library(tidyverse)
library(GGally)
library(cowplot)
n <- 20
x1 <- scale(runif(n, 5, 9))
x2 <- scale(runif(n, 1, 4))
y <- rnorm(n, 5, 2) + (2.3 * x1 + rnorm(n)) + (1.8 * x2 + rnorm(n))
M <- data.frame(y, x1, x2)
ggscatmat(M)
fm <- lm(y ~ x1 + x2)
summary(fm)
|
#' Adds column to a NONMEM data file containing values of a time-varying covariate.
#'
#' @author Katarzyna Nurzynska
#' @param data_cov data frame containing information about time-varying covariate.
#' @param data_dose data frame containing information about when the dose was administered.
#' @param data_final d... | /R/covariate_time_update.R | no_license | jgrevel/BAST1-R-Library | R | false | false | 7,245 | r | #' Adds column to a NONMEM data file containing values of a time-varying covariate.
#'
#' @author Katarzyna Nurzynska
#' @param data_cov data frame containing information about time-varying covariate.
#' @param data_dose data frame containing information about when the dose was administered.
#' @param data_final d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eval.R
\name{path.plot}
\alias{path.plot}
\title{Plot the regularization path}
\usage{
path.plot(v0s, obj, G, thres = 0.5, normalize = FALSE, xlab = "",
ylab = "", main = "")
}
\arguments{
\item{v0s}{the vector of parameter v0}
\item{obj}{... | /EMGS/man/path.plot.Rd | no_license | richardli/EMGS | R | false | true | 710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eval.R
\name{path.plot}
\alias{path.plot}
\title{Plot the regularization path}
\usage{
path.plot(v0s, obj, G, thres = 0.5, normalize = FALSE, xlab = "",
ylab = "", main = "")
}
\arguments{
\item{v0s}{the vector of parameter v0}
\item{obj}{... |
#' @importFrom glue glue
#' @importFrom attempt warn_if_not
create_dockerfile <- function(FROM = "rocker/r-base", AS = NULL){
if (is.null(AS)) {
glue("FROM {FROM}")
} else {
glue("FROM {FROM} AS {AS}")
}
}
add_run <- function(cmd){
glue("RUN {cmd}")
}
add_add <- function(from, to, force = TRUE){
i... | /R/add.R | permissive | uribo/dockerfiler | R | false | false | 1,923 | r | #' @importFrom glue glue
#' @importFrom attempt warn_if_not
create_dockerfile <- function(FROM = "rocker/r-base", AS = NULL){
if (is.null(AS)) {
glue("FROM {FROM}")
} else {
glue("FROM {FROM} AS {AS}")
}
}
add_run <- function(cmd){
glue("RUN {cmd}")
}
add_add <- function(from, to, force = TRUE){
i... |
library(rehh)
library(vcfR)
library(cowplot)
locus <- read_tsv("data/hpc/selection/vcf_files/locus.txt", col_names = "id")
make_ehh_plot <- function(loci) {
scaff <- str_split(loci,":")[[1]][1]
pos <- str_split(loci,":")[[1]][2] %>% as.numeric()
print(scaff)
hh <- data2haplohh(hap_file = paste0("data/hpc/sel... | /scripts/plot_ehh.R | no_license | bakeronit/acropora_digitifera_wgs | R | false | false | 1,847 | r | library(rehh)
library(vcfR)
library(cowplot)
locus <- read_tsv("data/hpc/selection/vcf_files/locus.txt", col_names = "id")
make_ehh_plot <- function(loci) {
scaff <- str_split(loci,":")[[1]][1]
pos <- str_split(loci,":")[[1]][2] %>% as.numeric()
print(scaff)
hh <- data2haplohh(hap_file = paste0("data/hpc/sel... |
# titanic is avaliable in your workspace
# 1 - Check the structure of titanic
str(titanic)
# 2 - Use ggplot() for the first instruction
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position = "dodge")
# 3 - Plot 2, add facet_grid() layer
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position ... | /4-2/titanic.R | no_license | jt1800/springboard-projects | R | false | false | 664 | r | # titanic is avaliable in your workspace
# 1 - Check the structure of titanic
str(titanic)
# 2 - Use ggplot() for the first instruction
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position = "dodge")
# 3 - Plot 2, add facet_grid() layer
ggplot(titanic, aes(x = Pclass, fill = Sex)) +
geom_bar(position ... |
\name{move.HMM.dwell.plot}
\alias{move.HMM.dwell.plot}
\title{Dwell Plot}
\usage{
move.HMM.dwell.plot(move.HMM)
}
\arguments{
\item{move.HMM}{A move.HMM object containing a fitted HMM
model.}
}
\value{
A plot of dwell times
}
\description{
This function plots the (geometric) pdf of the fitted
model against ... | /man/move.HMM.dwell.plot.Rd | no_license | benaug/move.HMM | R | false | false | 401 | rd | \name{move.HMM.dwell.plot}
\alias{move.HMM.dwell.plot}
\title{Dwell Plot}
\usage{
move.HMM.dwell.plot(move.HMM)
}
\arguments{
\item{move.HMM}{A move.HMM object containing a fitted HMM
model.}
}
\value{
A plot of dwell times
}
\description{
This function plots the (geometric) pdf of the fitted
model against ... |
print(connect via ssh) | /sshconnect.R | no_license | cereberaodollam/RStudio-Test | R | false | false | 22 | r | print(connect via ssh) |
#' Localised multiple kernel k-means
#'
#' Perform the training step of the localised multiple kernel k-means.
#' @param Km Array of size N X N X M containing M different N x N kernel
#' matrices.
#' @param parameters A list of parameters containing the desired number of
#' clusters, \code{cluster_count}, and the numb... | /R/lmkkmeans_missingData.R | permissive | rnaimehaom/klic | R | false | false | 7,460 | r | #' Localised multiple kernel k-means
#'
#' Perform the training step of the localised multiple kernel k-means.
#' @param Km Array of size N X N X M containing M different N x N kernel
#' matrices.
#' @param parameters A list of parameters containing the desired number of
#' clusters, \code{cluster_count}, and the numb... |
library(nlme)
### Name: Variogram.corSpatial
### Title: Calculate Semi-variogram for a corSpatial Object
### Aliases: Variogram.corSpatial
### Keywords: models
### ** Examples
cs1 <- corExp(3, form = ~ Time | Rat)
cs1 <- Initialize(cs1, BodyWeight)
Variogram(cs1, FUN = function(x, y) (1 - exp(-x/y)))[1:10,]
| /data/genthat_extracted_code/nlme/examples/Variogram.corSpatial.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 316 | r | library(nlme)
### Name: Variogram.corSpatial
### Title: Calculate Semi-variogram for a corSpatial Object
### Aliases: Variogram.corSpatial
### Keywords: models
### ** Examples
cs1 <- corExp(3, form = ~ Time | Rat)
cs1 <- Initialize(cs1, BodyWeight)
Variogram(cs1, FUN = function(x, y) (1 - exp(-x/y)))[1:10,]
|
N <- 60
y <-
c(0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1,
1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0)
x <-
c(-0.339249227079859, 2.16776116177459, 0.583946420212137,
-1.25010955939473, -2.51903611689114, 1.81544864387954, -0.... | /test/integration/example-models/ARM/Ch.5/separation.data.R | permissive | nhuurre/stanc3 | R | false | false | 1,317 | r | N <- 60
y <-
c(0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1,
1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0)
x <-
c(-0.339249227079859, 2.16776116177459, 0.583946420212137,
-1.25010955939473, -2.51903611689114, 1.81544864387954, -0.... |
# These two functions work in concert to provide the inverse of a function
# without calculating it more than once. Use "makeCacheMatrix" to create an
# object that can hold a cached inverse. Use "cacheSolve" to calculate the inverse.
# Proper usage:
## obj <- makeCacheMatrix(mymatrix)
## cacheSolve(obj) # returns inve... | /cachematrix.R | no_license | entrity/ProgrammingAssignment2 | R | false | false | 1,124 | r | # These two functions work in concert to provide the inverse of a function
# without calculating it more than once. Use "makeCacheMatrix" to create an
# object that can hold a cached inverse. Use "cacheSolve" to calculate the inverse.
# Proper usage:
## obj <- makeCacheMatrix(mymatrix)
## cacheSolve(obj) # returns inve... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{compute.logLR}
\alias{compute.logLR}
\title{Compute logLR.}
\usage{
compute.logLR(x, g, TItable = NULL, read.depth = NULL, minobs = 1,
pseudocounts = 0.5, all = FALSE, center = FALSE, repara = TRUE,
forcebin = FALSE, lm.approx = TRUE, disp = "add", nullchec... | /package/multiseq.Rcheck/00_pkg_src/multiseq/man/compute.logLR.Rd | no_license | stephenslab/multiseq | R | false | false | 3,135 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{compute.logLR}
\alias{compute.logLR}
\title{Compute logLR.}
\usage{
compute.logLR(x, g, TItable = NULL, read.depth = NULL, minobs = 1,
pseudocounts = 0.5, all = FALSE, center = FALSE, repara = TRUE,
forcebin = FALSE, lm.approx = TRUE, disp = "add", nullchec... |
# plot2.R: Time trace of global active power
data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = "?")
datas <- subset(data, (data$Date == "1/2/2007" | data$Date == "2/2/2007"))
x <- paste(datas$Date, datas$Time)
time <- strptime(x, "%d/%m/%Y %H:%M:%S")
plot(time, datas$Global_active_power, yl... | /plot2.R | no_license | mdwyman/ExData_Plotting1 | R | false | false | 480 | r | # plot2.R: Time trace of global active power
data <- read.csv("household_power_consumption.txt", sep = ";", na.strings = "?")
datas <- subset(data, (data$Date == "1/2/2007" | data$Date == "2/2/2007"))
x <- paste(datas$Date, datas$Time)
time <- strptime(x, "%d/%m/%Y %H:%M:%S")
plot(time, datas$Global_active_power, yl... |
# Analysis code for Garner & Raymond - Distinct selection mechanisms for when
# predictions and rewards guide visual selective attention
# https://docs.google.com/document/d/1j_9irYF9LbegaxuxnWxSFdmkLe8nSrm6AsWl-ShVCYI/edit?usp=sharing
# (c) K. Garner, University of Birmingham, Sept 2017
# if you have any questions pl... | /code-analysis-and-task/Exp_1_2_ANALYSIS.R | no_license | Nian-Jingqing/attention-value-certainty | R | false | false | 26,134 | r | # Analysis code for Garner & Raymond - Distinct selection mechanisms for when
# predictions and rewards guide visual selective attention
# https://docs.google.com/document/d/1j_9irYF9LbegaxuxnWxSFdmkLe8nSrm6AsWl-ShVCYI/edit?usp=sharing
# (c) K. Garner, University of Birmingham, Sept 2017
# if you have any questions pl... |
library(ggplot2)
## load data
humChr <- c("chr1","chr2","chr3","chr4","chr5","chr6","chr7","chr8","chr9","chr10","chr11","chr12","chr13","chr14","chr15","chr16","chr17","chr18","chr19","chr20","chr21","chr22")
for(i in 1:(length(humChr))){
if(i==1){
afYRI <- read.table(paste("chr1YRI.af", sep=""), head=T, sep =... | /figS10.R | no_license | jbergman/gcDynamics | R | false | false | 1,051 | r | library(ggplot2)
## load data
humChr <- c("chr1","chr2","chr3","chr4","chr5","chr6","chr7","chr8","chr9","chr10","chr11","chr12","chr13","chr14","chr15","chr16","chr17","chr18","chr19","chr20","chr21","chr22")
for(i in 1:(length(humChr))){
if(i==1){
afYRI <- read.table(paste("chr1YRI.af", sep=""), head=T, sep =... |
#!/usr/bin/env Rscript
echo "Program about to run"
Rscript --vanilla simulation.R 500 0 0 "homozygous" "heterozygous"
Rscript --vanilla simulation.R 500 0 0 "heterozygous" "heterozygous"
Rscript --vanilla simulation.R 500 0 0 "homozygous" "homozygous"
Rscript --vanilla simulation.R 500 0 0 "heterozygous" "homozygous"... | /Project/Code/a_sim_1-1.sh | no_license | matthewcampos/CMEECourseWork | R | false | false | 777 | sh | #!/usr/bin/env Rscript
echo "Program about to run"
Rscript --vanilla simulation.R 500 0 0 "homozygous" "heterozygous"
Rscript --vanilla simulation.R 500 0 0 "heterozygous" "heterozygous"
Rscript --vanilla simulation.R 500 0 0 "homozygous" "homozygous"
Rscript --vanilla simulation.R 500 0 0 "heterozygous" "homozygous"... |
setwd("/Users/admin/Manuscripts/75 Mat4DiseaseEnhancerPrediction (DEP)/Rcode/dthybrid/")
pkgs <- c(
"matrixcalc",
"data.table",
"Rcpp",
"ROCR",
"Bolstad2",
"MESS",
"nloptr",
"cluster",
"kernlab",
"plyr",
"parallel",
"snow",
"foreach",
"gtools",
"DTHybrid",
"data.table",
"mltools",
"M... | /Rcode/dthybrid/DTHbrid_LOOCV_eachrow.R | no_license | hauldhut/DEP | R | false | false | 5,245 | r | setwd("/Users/admin/Manuscripts/75 Mat4DiseaseEnhancerPrediction (DEP)/Rcode/dthybrid/")
pkgs <- c(
"matrixcalc",
"data.table",
"Rcpp",
"ROCR",
"Bolstad2",
"MESS",
"nloptr",
"cluster",
"kernlab",
"plyr",
"parallel",
"snow",
"foreach",
"gtools",
"DTHybrid",
"data.table",
"mltools",
"M... |
library(openair)
library(plyr)
library(dplyr)
library(rmweather)
library(ranger)
library(magrittr)
library(globals)
library(future)
library(foreach)
library(iterators)
library(parallel)
library(doFuture)
library(readxl)
library(doParallel)
plan(multicore)
registerDoParallel(cores = detectCores()- 1)
registerDoFuture()
... | /Data and code/2019/Milan_Rural/RWshort.R | no_license | songnku/COVID-19-AQ | R | false | false | 2,920 | r | library(openair)
library(plyr)
library(dplyr)
library(rmweather)
library(ranger)
library(magrittr)
library(globals)
library(future)
library(foreach)
library(iterators)
library(parallel)
library(doFuture)
library(readxl)
library(doParallel)
plan(multicore)
registerDoParallel(cores = detectCores()- 1)
registerDoFuture()
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simpleTests.R
\name{cofeeConsumption}
\alias{cofeeConsumption}
\title{Function to screen for higher coffee consumption}
\usage{
cofeeConsumption(myDNA)
}
\arguments{
\item{myDNA}{(character) path to the genotype file}
}
\description{
Function... | /man/cofeeConsumption.Rd | no_license | IngaPa/myDNAS | R | false | true | 1,622 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simpleTests.R
\name{cofeeConsumption}
\alias{cofeeConsumption}
\title{Function to screen for higher coffee consumption}
\usage{
cofeeConsumption(myDNA)
}
\arguments{
\item{myDNA}{(character) path to the genotype file}
}
\description{
Function... |
#' Returns a line from a file.
#'
#' @param linenumber is the line number of the line to grab.
#' @param file is the file to grab the line from.
#' @return A line of text.
#' @export
get.line <- function(linenumber, file) readLines(file)[linenumber]
| /R/get.line.R | no_license | johnjosephhorton/JJHmisc | R | false | false | 255 | r | #' Returns a line from a file.
#'
#' @param linenumber is the line number of the line to grab.
#' @param file is the file to grab the line from.
#' @return A line of text.
#' @export
get.line <- function(linenumber, file) readLines(file)[linenumber]
|
a.image <- function(Q,color=rev(heat.colors(100)),#paste0("gray",100:0),
numbers=F,num.cex=1,label.axis=F,
numcolor="black",axis.num=T,...) {
image(t(apply(Q,2,rev)),yaxt="n",xaxt="n",col=color,...)
ec <- apply(Q,2,sum)
er <- apply(Q,1,sum)
seq1 <- seq(0,1,len=length... | /Fall2014/Stat635/project/mm/R/rfunctions.R | no_license | luiarthur/byuHW | R | false | false | 10,961 | r | a.image <- function(Q,color=rev(heat.colors(100)),#paste0("gray",100:0),
numbers=F,num.cex=1,label.axis=F,
numcolor="black",axis.num=T,...) {
image(t(apply(Q,2,rev)),yaxt="n",xaxt="n",col=color,...)
ec <- apply(Q,2,sum)
er <- apply(Q,1,sum)
seq1 <- seq(0,1,len=length... |
setwd("/Users/Michelle/Documents")
hp <- read.table("household_power_consumption.txt", header = TRUE, sep = ";")
hp$Time <- strptime(paste(hp$Date, hp$Time), "%d/%m/%Y %H:%M:%S")
hp$Date <- as.Date(hp$Date, "%d/%m/%Y")
##convert Date and Time variables
subhp <- subset(hp, Date %in% as.Date(c("2007-02-01", "2007-02-0... | /DataSource.R | no_license | Michelle-Zhao/Course-Project-1 | R | false | false | 344 | r | setwd("/Users/Michelle/Documents")
hp <- read.table("household_power_consumption.txt", header = TRUE, sep = ";")
hp$Time <- strptime(paste(hp$Date, hp$Time), "%d/%m/%Y %H:%M:%S")
hp$Date <- as.Date(hp$Date, "%d/%m/%Y")
##convert Date and Time variables
subhp <- subset(hp, Date %in% as.Date(c("2007-02-01", "2007-02-0... |
plot.graphrestrictions <- function(nodes, positions, distance ) {
plot.new()
if (NROW(positions) == 1){
positions <- rbind(positions, 0)
minx <- min(positions)
maxx <- max(positions)
miny <- -distance
maxy <- distance
}
else {
minx <- min(positions[1 , ])
maxx <- max(positions[1 ... | /functions/plot.graph.functions/plot.graphrestrictions.R | permissive | shepherdmeng/BNdownscale | R | false | false | 992 | r | plot.graphrestrictions <- function(nodes, positions, distance ) {
plot.new()
if (NROW(positions) == 1){
positions <- rbind(positions, 0)
minx <- min(positions)
maxx <- max(positions)
miny <- -distance
maxy <- distance
}
else {
minx <- min(positions[1 , ])
maxx <- max(positions[1 ... |
rm(list=ls())
#load packages
library(readr)
library(DBI)
library(RMySQL)
library(tm)
require("NLP")
#install.packages("NMF")
require("openNLP")
library("tm")
library("SnowballC")
library("RColorBrewer")
library("wordcloud")
library(NMF)
library(plyr) #weight sentiment
#install.packages("rJava")
#install.packages("Rword... | /Airline Compliant Reviews.R | no_license | SiqiJiang47/Airline-Compliant-Reviews | R | false | false | 4,608 | r | rm(list=ls())
#load packages
library(readr)
library(DBI)
library(RMySQL)
library(tm)
require("NLP")
#install.packages("NMF")
require("openNLP")
library("tm")
library("SnowballC")
library("RColorBrewer")
library("wordcloud")
library(NMF)
library(plyr) #weight sentiment
#install.packages("rJava")
#install.packages("Rword... |
#simulate drift - demonstrate loss of heterozygosity but overall maintenance of allele frequencies
# by Anders Gonçalves da Silva (C) 2014
# email: andersgs@gmail.com
# 20 March 2014
#a function to simulate drift
sim_drift = function(initial_geno_count=c(4,8,4), generations=200,n_pop=50){
# use: sim_drift(initial... | /morning/first_session/sim_drift.R | permissive | andersgs/canberra_workshop_day2 | R | false | false | 4,026 | r | #simulate drift - demonstrate loss of heterozygosity but overall maintenance of allele frequencies
# by Anders Gonçalves da Silva (C) 2014
# email: andersgs@gmail.com
# 20 March 2014
#a function to simulate drift
sim_drift = function(initial_geno_count=c(4,8,4), generations=200,n_pop=50){
# use: sim_drift(initial... |
ci.transformed <-
function (x, y, n, conf.level) {
z <- qnorm(1-((1-conf.level)/2))
ll <- exp(log(x/y)-z*sqrt((1-x)/(n$d*x)+(1-y)/(n$h*y)))
ul <- exp(log(x/y)+z*sqrt((1-x)/(n$d*x)+(1-y)/(n$h*y)))
res <- list (ci = matrix(c(ll,ul), ncol = 2))
}
| /R/ci.transformed.R | no_license | cran/OptimalCutpoints | R | false | false | 286 | r | ci.transformed <-
function (x, y, n, conf.level) {
z <- qnorm(1-((1-conf.level)/2))
ll <- exp(log(x/y)-z*sqrt((1-x)/(n$d*x)+(1-y)/(n$h*y)))
ul <- exp(log(x/y)+z*sqrt((1-x)/(n$d*x)+(1-y)/(n$h*y)))
res <- list (ci = matrix(c(ll,ul), ncol = 2))
}
|
\name{vcov.CountsEPPM}
\alias{vcov.CountsEPPM}
\title{
Variance/Covariance Matrix for Coefficients
}
\description{
Variance/covariance matrix for coefficients of fitted model.
}
\usage{
\method{vcov}{CountsEPPM}(object, model = c("full", "mean", "scale.factor"), \dots)
}
\arguments{
\item{object}{
fitted... | /man/vcov.CountsEPPM.Rd | no_license | cran/CountsEPPM | R | false | false | 1,222 | rd | \name{vcov.CountsEPPM}
\alias{vcov.CountsEPPM}
\title{
Variance/Covariance Matrix for Coefficients
}
\description{
Variance/covariance matrix for coefficients of fitted model.
}
\usage{
\method{vcov}{CountsEPPM}(object, model = c("full", "mean", "scale.factor"), \dots)
}
\arguments{
\item{object}{
fitted... |
#!/usr/bin/env Rscript
# calc spearman corr between kmer GC and counts
# cjfiscus
library(pacman)
p_load(data.table, stringr)
args = commandArgs(trailingOnly=TRUE)
# args[1] is input file, args[2] is output file, args[3] is array id
# SLURM_TASK_ARRAY_ID -> col to read in
array<-as.integer(args[3])
# import kmer an... | /chapter_1/analysis_scripts/kmer_pl/006a_corr_count_gc.R | permissive | cjfiscus/2022_Fiscus_Dissertation | R | false | false | 600 | r | #!/usr/bin/env Rscript
# calc spearman corr between kmer GC and counts
# cjfiscus
library(pacman)
p_load(data.table, stringr)
args = commandArgs(trailingOnly=TRUE)
# args[1] is input file, args[2] is output file, args[3] is array id
# SLURM_TASK_ARRAY_ID -> col to read in
array<-as.integer(args[3])
# import kmer an... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coreNLPsetup_rexports.R, R/gofastr_reexports.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{check_setup}
\alias{reexports}
\alias{as_dtm}
\alias{reexports}
\alias{as_tdm}
\title{Objects exported from other packages}
\keyword{int... | /man/reexports.Rd | no_license | Smfun12/tagger | R | false | true | 599 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coreNLPsetup_rexports.R, R/gofastr_reexports.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{check_setup}
\alias{reexports}
\alias{as_dtm}
\alias{reexports}
\alias{as_tdm}
\title{Objects exported from other packages}
\keyword{int... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_stop_relational_database}
\alias{lightsail_stop_relational_database}
\title{Stops a specific database that is currently running in Amazon Lightsail}
\usage{
lightsail_stop_relational_database(
relation... | /cran/paws.compute/man/lightsail_stop_relational_database.Rd | permissive | paws-r/paws | R | false | true | 806 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_stop_relational_database}
\alias{lightsail_stop_relational_database}
\title{Stops a specific database that is currently running in Amazon Lightsail}
\usage{
lightsail_stop_relational_database(
relation... |
# problem 1
x=matrix(c(3,6,4,4,5,7,4,7),nrow=4,byrow = T)
#mle of mean vector is xbar. and variance is S.
X_bar<-colMeans(x) # mean vector
n<-nrow(x)
S<- var(x)*((n-1)/n) # Sigma^2/n
#problem 2
# a) follows a chi square distribution. with 6 dof Sum of squares of standard normal variables
# b) distribution of... | /Hmw2.R | no_license | bharathallu/Multivariate-Analysis | R | false | false | 16,087 | r | # problem 1
x=matrix(c(3,6,4,4,5,7,4,7),nrow=4,byrow = T)
#mle of mean vector is xbar. and variance is S.
X_bar<-colMeans(x) # mean vector
n<-nrow(x)
S<- var(x)*((n-1)/n) # Sigma^2/n
#problem 2
# a) follows a chi square distribution. with 6 dof Sum of squares of standard normal variables
# b) distribution of... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getVencimentosTitulosPublicos.R
\name{getVencimentosTitulosPublicos}
\alias{getVencimentosTitulosPublicos}
\title{Prepara Dados}
\usage{
retorna planilha do tesouro direto
}
\description{
os dados vem da seguinte url: http://www.tesourotransp... | /man/getVencimentosTitulosPublicos.Rd | no_license | lojadedados/rtesourodescomplicado | R | false | true | 600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getVencimentosTitulosPublicos.R
\name{getVencimentosTitulosPublicos}
\alias{getVencimentosTitulosPublicos}
\title{Prepara Dados}
\usage{
retorna planilha do tesouro direto
}
\description{
os dados vem da seguinte url: http://www.tesourotransp... |
## Aula 2 GLM
library(ggplot2)
library(data.table)
library(car)
x<- rnorm(100, 0, 1)
y<- seq(100)
sampling <- seq(50, 100)
sd_s <- seq(1, 10)
cor(x, y)
a <- 0
while (abs(cor(x, y)) <= 0.8){
x <- rnorm(100, sample(sampling, 1), 5)
y <- rnorm(100, sample(sampling, 1), sample(sd_s, 1))
c <- co... | /GLM- aula- 2.R | no_license | martim98/aulas_2_semestre | R | false | false | 2,098 | r | ## Aula 2 GLM
library(ggplot2)
library(data.table)
library(car)
x<- rnorm(100, 0, 1)
y<- seq(100)
sampling <- seq(50, 100)
sd_s <- seq(1, 10)
cor(x, y)
a <- 0
while (abs(cor(x, y)) <= 0.8){
x <- rnorm(100, sample(sampling, 1), 5)
y <- rnorm(100, sample(sampling, 1), sample(sd_s, 1))
c <- co... |
\docType{data}
\name{pisa.psa.cols}
\alias{pisa.psa.cols}
\title{Character vector representing the list of covariates used for estimating
propensity scores.}
\format{a character vector with covariate names for estimating propensity scores.}
\description{
Character vector representing the list of covariates used
for... | /man/pisa.psa.cols.Rd | no_license | Libardo1/PSAgraphics2 | R | false | false | 373 | rd | \docType{data}
\name{pisa.psa.cols}
\alias{pisa.psa.cols}
\title{Character vector representing the list of covariates used for estimating
propensity scores.}
\format{a character vector with covariate names for estimating propensity scores.}
\description{
Character vector representing the list of covariates used
for... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/explanationObject.R
\docType{methods}
\name{explainRuleModel,explanationObject,data.frame-method}
\alias{explainRuleModel,explanationObject,data.frame-method}
\title{Method for explaining a rule model}
\usage{
\S4method{explainRuleModel}{expl... | /man/explainRuleModel-explanationObject-data.frame-method.Rd | no_license | jirifilip/arulesExplain | R | false | true | 506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/explanationObject.R
\docType{methods}
\name{explainRuleModel,explanationObject,data.frame-method}
\alias{explainRuleModel,explanationObject,data.frame-method}
\title{Method for explaining a rule model}
\usage{
\S4method{explainRuleModel}{expl... |
source(system.file(file.path('tests', 'test_utils.R'), package = 'nimble'))
context("Testing of different Filtering Algorithms")
### particle filter testing follows similar steps to MCMC testing.
### for each example, we comapare filter output between R and C. We also (where applicable) compare:
### 1) estimated valu... | /packages/nimble/inst/tests/test-Filtering2.R | no_license | clarkfitzg/nimble | R | false | false | 10,111 | r | source(system.file(file.path('tests', 'test_utils.R'), package = 'nimble'))
context("Testing of different Filtering Algorithms")
### particle filter testing follows similar steps to MCMC testing.
### for each example, we comapare filter output between R and C. We also (where applicable) compare:
### 1) estimated valu... |
###-------ECONOMIC MANAGEMENT APPROVAL--###
###-----------GENERAL SETUP-------------###
###-------------Mats Ahrenshop----------###
setwd("C:\\Users\\User\\Downloads")
pe <- read.csv2("PHE.csv")
pe$date <- ISOdate(pe$Year, pe$Month, pe$Day)
pe$date <- as.Date(pe$date)
## The Problem: Aggregating six time s... | /President-s Handling of the Economy PHE/R script PHE.R | no_license | rayduch/US-Economic-Policy-Uncertainty-is-Presidential | R | false | false | 32,687 | r | ###-------ECONOMIC MANAGEMENT APPROVAL--###
###-----------GENERAL SETUP-------------###
###-------------Mats Ahrenshop----------###
setwd("C:\\Users\\User\\Downloads")
pe <- read.csv2("PHE.csv")
pe$date <- ISOdate(pe$Year, pe$Month, pe$Day)
pe$date <- as.Date(pe$date)
## The Problem: Aggregating six time s... |
source('MAPMeasure.R')
Precision <- function(retrieved, relevant){ #r-precision se considera soh os |relevantes| primeiros retrieved
return (sum (retrieved %in% relevant) / length(retrieved) )
}
Recall <- function(retrieved, relevant){
return (sum (retrieved %in% relevant) / length(relevant) )
}
MIR = read.csv... | /Validation/Validation.R | no_license | jorgehpo/ConcentricRadviz | R | false | false | 7,241 | r | source('MAPMeasure.R')
Precision <- function(retrieved, relevant){ #r-precision se considera soh os |relevantes| primeiros retrieved
return (sum (retrieved %in% relevant) / length(retrieved) )
}
Recall <- function(retrieved, relevant){
return (sum (retrieved %in% relevant) / length(relevant) )
}
MIR = read.csv... |
\name{dummy.ppm}
\alias{dummy.ppm}
\title{Extract Dummy Points Used to Fit a Point Process Model}
\description{
Given a fitted point process model,
this function extracts the `dummy points' of the
quadrature scheme used to fit the model.
}
\usage{
dummy.ppm(object, drop=FALSE)
}
\arguments{
\item{object}{
... | /man/dummy.ppm.Rd | no_license | spatstat/spatstat.core | R | false | false | 2,251 | rd | \name{dummy.ppm}
\alias{dummy.ppm}
\title{Extract Dummy Points Used to Fit a Point Process Model}
\description{
Given a fitted point process model,
this function extracts the `dummy points' of the
quadrature scheme used to fit the model.
}
\usage{
dummy.ppm(object, drop=FALSE)
}
\arguments{
\item{object}{
... |
names(d)
names(regs)
regs %<>%
rename(rin = RIN) %>%
left_join(d)
regtracker <- read_csv("data/Deregulation-tracker-data-Final.csv")
regtracker %<>%
mutate(frNumber = str_extract(`Proposed-link`, "20[0-9][0-9]-[0-9]{5}"))
regtracker$frNumber
regtracker %<>%
distinct() %>%
filter(!is.na(frNumber)) ... | /code/BrookingsRegTracker.R | no_license | zoeang/rulemaking | R | false | false | 445 | r |
names(d)
names(regs)
regs %<>%
rename(rin = RIN) %>%
left_join(d)
regtracker <- read_csv("data/Deregulation-tracker-data-Final.csv")
regtracker %<>%
mutate(frNumber = str_extract(`Proposed-link`, "20[0-9][0-9]-[0-9]{5}"))
regtracker$frNumber
regtracker %<>%
distinct() %>%
filter(!is.na(frNumber)) ... |
## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse.
## Th... | /cachematrix.R | no_license | pahal2007/Coursera-R-Programming-Exercises-Solved | R | false | false | 1,140 | r | ## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse.
## Th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/networks.R
\name{rewire_connections_to_node.network}
\alias{rewire_connections_to_node.network}
\title{Rewire connections to a node}
\usage{
\method{rewire_connections_to_node}{network}(x, node, prob_rewire = 1,
weights = NULL, alpha = 100,... | /SeqNet/man/rewire_connections_to_node.network.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 1,783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/networks.R
\name{rewire_connections_to_node.network}
\alias{rewire_connections_to_node.network}
\title{Rewire connections to a node}
\usage{
\method{rewire_connections_to_node}{network}(x, node, prob_rewire = 1,
weights = NULL, alpha = 100,... |
mcp_d <- function(x,lambda,a=3){
## -----------------------------------------------------------------------------------------------------------------
## The name of the function: mcp_d
## -----------------------------------------------------------------------------------------------------------------
## D... | /R/mcp_d.R | no_license | Ren-Mingyang/HeteroGGM | R | false | false | 1,353 | r | mcp_d <- function(x,lambda,a=3){
## -----------------------------------------------------------------------------------------------------------------
## The name of the function: mcp_d
## -----------------------------------------------------------------------------------------------------------------
## D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.