blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 327 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 5 134 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 46
values | visit_date timestamp[us]date 2016-08-02 22:44:29 2023-09-06 08:39:28 | revision_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | committer_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | github_id int64 19.4k 671M ⌀ | star_events_count int64 0 40k | fork_events_count int64 0 32.4k | gha_license_id stringclasses 14
values | gha_event_created_at timestamp[us]date 2012-06-21 16:39:19 2023-09-14 21:52:42 ⌀ | gha_created_at timestamp[us]date 2008-05-25 01:21:32 2023-06-28 13:19:12 ⌀ | gha_language stringclasses 60
values | src_encoding stringclasses 24
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 9.18M | extension stringclasses 20
values | filename stringlengths 1 141 | content stringlengths 7 9.18M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7de3a53185ff14667c9410ffb7bdc57ef9ee94d | bbfcc35c6394e5cb99b3164c0c5b16ad6821ddec | /man/bt.fisher.Rd | de138f8d027f10240b1b45a52eb08347312dbb91 | [
"MIT"
] | permissive | PhanstielLab/bedtoolsr | 41ec321d3c16a2f893a56182c2d01254bf386de9 | cce152f1ce653771d8d41431e0d12e4ef9c42193 | refs/heads/master | 2022-11-15T13:02:56.285838 | 2022-11-08T22:20:19 | 2022-11-08T22:20:19 | 151,143,796 | 31 | 5 | NOASSERTION | 2019-12-05T18:11:09 | 2018-10-01T19:08:56 | R | UTF-8 | R | false | true | 2,628 | rd | bt.fisher.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bt.fisher.R
\name{bt.fisher}
\alias{bt.fisher}
\title{Calculate Fisher statistic b/w two feature files.}
\usage{
bt.fisher(
a,
b,
g,
m = NULL,
s = NULL,
S = NULL,
f = NULL,
F = NULL,
r = NULL,
e = NULL,
split = NULL,
n... |
c66cba24a0393487219d7bef29a5aa4d0b15001d | 6c5ed0d438fe8170ae8a98f0e56b3f843c5131b1 | /man/soft.thre.Rd | 8f4cabd4f25071db6670ab800d590ca190ba74ad | [] | no_license | mariedueker/lwglasso | 87580465658a1f340906b37ba2dbfca67c17ea21 | ba0228f07218c8d39602f41d573924cebdc6ba31 | refs/heads/master | 2022-08-01T09:19:26.747570 | 2020-05-27T04:42:50 | 2020-05-27T04:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 580 | rd | soft.thre.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auxfunctions.R
\name{soft.thre}
\alias{soft.thre}
\title{softthresholding complex matrix G}
\usage{
soft.thre(G, phi, diagTF = TRUE)
}
\arguments{
\item{G}{Input complex matrix}
\item{phi}{Threshold level parameter}
\item{diagT... |
e88dd0daa7a06d9965e4c94f295c0dea2f47f5e0 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/h2o/examples/dim.H2OFrame.Rd.R | 527b0646a47d71ef30ea41cd8204de66732c51e9 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 211 | r | dim.H2OFrame.Rd.R | library(h2o)
### Name: dim.H2OFrame
### Title: Returns the Dimensions of an H2OFrame
### Aliases: dim.H2OFrame
### ** Examples
## No test:
h2o.init()
iris_hf <- as.h2o(iris)
dim(iris_hf)
## End(No test)
|
ae9e6fb7755602dfad430199a7b89b8aa302e4ef | 27df58994df6d1d57ed07fdd4d21ba9fd77af799 | /Functional Data Analysis/gam_part1.R | ffb67568564c4fd357fab493eb32d9c5d2449582 | [] | no_license | timothyvigers/School | ded3960fbba42aa6b6e7a2d6e7a97ac2f6f359a5 | 7a14890884db1f23f0d7e2ad72758a04fa17880c | refs/heads/master | 2023-04-06T18:41:54.309469 | 2023-03-17T21:05:11 | 2023-03-17T21:05:11 | 145,224,185 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,059 | r | gam_part1.R | library("mgcv")
set.seed(80487)
N <- 200
P <- 4
X <- matrix(rnorm(N*P), N, P)
## set up the association structures
f1 <- function(x) sin(pi*x)
f2 <- function(x) 2*x
f3 <- function(x) 0.25*x^3
f4 <- function(x) cos(pi*x)*x
## get the linear predictor
eta <- 1 + f1(X[,1]) + f2(X[,2]) + f3(X[,3]) + f4(X[,4]) ## simulate ... |
e88e63ac4bebd6e216aa3874523a8cfa86e008ca | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/SpadeR/examples/ChaoSpecies.Rd.R | 246c5732e9ab561d5217fee0136336e1a4c1899c | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 697 | r | ChaoSpecies.Rd.R | library(SpadeR)
### Name: ChaoSpecies
### Title: Estimation of species richness in a community
### Aliases: ChaoSpecies
### ** Examples
data(ChaoSpeciesData)
# Type (1) abundance data
ChaoSpecies(ChaoSpeciesData$Abu,"abundance",k=10,conf=0.95)
# Type (1A) abundance-frequency counts data
ChaoSpecies(ChaoSpeciesData$... |
bb35d73d670c233a3a4fd172e1d7442cbe7284df | 6dec0f6aec45dff66fcc2f480b03a5ffe3b9408c | /R/gx.eb.R | 6b0f8d9b658dd44079ef5d60956d7b51acecb3d6 | [] | no_license | cran/rgr | 9645638952aa019902d3308e7e6cf04c1112bab7 | 87383fabc4cb3529c4c97493c596f7fd347cf302 | refs/heads/master | 2021-01-21T21:55:06.570408 | 2018-03-05T22:42:52 | 2018-03-05T22:42:52 | 17,699,219 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,645 | r | gx.eb.R | gx.eb <-
function(r, s, xx, ...)
{
# NOTE: Prior to using this function the data frame/matrix containing the
# parts, xx, must be run through ltdl.fix.df to convert any <dl -ve
# values to positive half that value, and set zero2na = TRUE if it is
# required to convert any zero values or other nume... |
706825c5725ad373b6e5e09b2603b941946687e6 | 0aa63f99a9ebe79e55cc09338d5bb4ce2377fd83 | /R/redcapConnection.R | 1fb585a849833d62d2838600d3e04dadf1880ebd | [] | no_license | nutterb/redcapAPI | c13b890b5d33b40c134833155861ee42d44b06c7 | 9b7287106198581c352fc91492d83fc7806d2bd7 | refs/heads/main | 2023-09-01T07:41:41.326514 | 2023-08-28T14:02:23 | 2023-08-28T14:02:23 | 11,691,011 | 47 | 31 | null | 2022-11-03T22:49:05 | 2013-07-26T17:31:51 | R | UTF-8 | R | false | false | 40,474 | r | redcapConnection.R | #' @name redcapConnection
#'
#' @title Connect to a REDCap Database
#' @description Creates an object of class \code{redcapApiConnection} for
#' using the REDCap API
#'
#' @param url URL for a REDCap database API. Check your institution's REDCap
#' documentation for this address. Either \code{url} or \code{con... |
b6d8e0c167bc9ab27e87de8382c1964f021f559f | d4fb7b0bf2830af9f44f95f1ffdbc906c11379ab | /man/carto_epci.Rd | fa897b6781ff43dc008785dd0470f9e6b37402d0 | [
"CC-BY-4.0",
"etalab-2.0",
"CC-BY-3.0",
"LicenseRef-scancode-etalab-2.0-en"
] | permissive | jengelaere/enr.reseaux | b973be63f793652717c340d0fbf0785f960d1aff | 72c4b44aa13c5fbb68ad18a2281d9a19478a8917 | refs/heads/main | 2023-04-10T19:43:47.856755 | 2021-04-06T18:58:27 | 2021-04-06T18:58:27 | 355,301,058 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,135 | rd | carto_epci.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_carto.R
\docType{data}
\name{carto_epci}
\alias{carto_epci}
\title{carto_epci}
\format{
A data frame with 72 rows and 9 variables:
\describe{
\item{ EPCI }{ code de l'EPCI, factor }
\item{ AREA }{ surface de l'EPCI, units }
\item{ ... |
8e982559603a58b7669ad5bd5f7532a1ff1d1479 | 1a4b653701ea2cbee79bf52e8e4b1bdb4b6d9d45 | /CVS case/0_clean_data_nonsmk.r | 6a6cb7d96635ca64e8acde72ce35b3085e6d4167 | [] | no_license | Superet/Tobacco | c5fbab709d2ea7be74be2f0cc7466d279ebcd551 | 7fe51f480cd3d0db812987c3cf73c7086978980b | refs/heads/master | 2021-05-04T10:29:17.916670 | 2017-07-15T19:13:54 | 2017-07-15T19:13:54 | 44,255,630 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,854 | r | 0_clean_data_nonsmk.r | library(reshape2)
library(data.table)
library(lubridate)
library(xlsx)
# setwd("~/Documents/Research/Tobacco/processed_data")
# plot.wd <- "~/Desktop"
setwd("U:/Users/ccv103/Documents/Research/tobacco/processed_data")
# setwd("/sscc/home/c/ccv103/Tobacco")
###################################
# Data of smokers and n... |
c8d923df243dc081ae0b0a1ecd25e9c510506287 | c35fbc233528e1920a9ec2ba13232828fae401b9 | /man/nmECx.Rd | 8e79074f42d6194bb7fe9569153a5cac0a2ec267 | [] | no_license | cran/mixtox | 03d9af3b74dfc1286008352119971aed14ea79ab | 996fec422d5a36a42cbf9fa6483111c93d773cb9 | refs/heads/master | 2022-07-05T18:41:34.137823 | 2022-06-20T15:40:02 | 2022-06-20T15:40:02 | 36,813,233 | 6 | 4 | null | null | null | null | UTF-8 | R | false | false | 2,349 | rd | nmECx.Rd | \name{nmECx}
\alias{nmECx}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Effect Concentration Calculation for J-shaped Models}
\description{
Effect concentrations are calculated at particular effects based on the fitting coefficients
of J-shaped Models.
}
\usage{nmECx(model, param, effv... |
ec4dd14db9337200531f266fa6e0619aa0b6156b | 849d11b2b53a0c9eb60719b52279fd2548a16fea | /origin_code/bootstrap.R | f844378d50f0426cdc43850ba858db6219c2cd17 | [] | no_license | jingwang134/financial-engineering | 7f292e564818609f6fa8116d1ce4f196568c4e34 | 78ae279c5d4ed5b60df8db65b284a2b0d48c7fa1 | refs/heads/master | 2021-04-26T22:15:53.478307 | 2018-03-06T09:49:28 | 2018-03-06T09:49:28 | 124,055,942 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,029 | r | bootstrap.R | ########### R script for Chapter 6 ####################################################
########### of Statistics and Data Analysis for Financial Engineering, 2nd Edition ######
########### by Ruppert and Matteson ####################################################
##############################################... |
0c9e81dd1fcf20a01fab47400bd06c385d15cc22 | 86727f33e262a33acc6714944b25d1b965ef5c4e | /plot6.R | 9e1c7203f49c03cbb4e4c9080af27f1ca643b92b | [] | no_license | terencelimzhengwei/ExData_Plotting2 | 3d87a5de8921c3033c9e4f2f3ad2d9fabf932f72 | c7c7cc7d15fb5770abbc6ac56ff7e70393003a23 | refs/heads/master | 2021-01-10T03:00:38.589937 | 2016-01-15T03:45:16 | 2016-01-15T03:45:16 | 49,658,210 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 829 | r | plot6.R | # Check whether data has already been loaded
if(sum(c("NEI","SCC") %in% ls())!=2)
source("./load_data.R")
# Coal Related Source
motor_scc <- SCC[grep("Vehicle", SCC$EI.Sector ,ignore.case = TRUE),]
# Group by County/Year
motor_data <- NEI %>%
filter(SCC %in%motor_scc$SCC) %>%
filter(fips=="24510"|fips=="0... |
b67a64b3ae949b77ac158deb1ac81c393dd42520 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hitandrun/examples/eliminateRedundant.Rd.R | af9022f567563a2b60d31473a827780b81c6dcec | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 441 | r | eliminateRedundant.Rd.R | library(hitandrun)
### Name: eliminateRedundant
### Title: Eliminate redundant linear constraints
### Aliases: eliminateRedundant
### Keywords: constraint
### ** Examples
constr <- list(
constr = rbind(
c(-1 , 0),
c( 0 , -1),
c( 1 , 1),
c( 0.5, -1)),
dir = c('<=', '<=', '=', '<='),
rhs = ... |
be61ba65b9b84ef3ec6e127ddeae70667bf513eb | eef234939eeebc2e5dcf2ad9cfd1888ce36259df | /ident_regression/data/preproc_ridge.R | 708f62db602b076c55dba6f7f192128fe0214b88 | [] | no_license | snarles/misc | 5d4e138cbb17bfd08143fc4c097fb84417446990 | 246f9fac0130340e44837b528a2f59e9256f2711 | refs/heads/master | 2023-06-26T06:53:53.933752 | 2023-06-12T13:29:17 | 2023-06-12T13:29:17 | 18,860,939 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 5,909 | r | preproc_ridge.R | #############################################################
## DATA PREPROCESSING ##
#############################################################
savelist <- c()
isqrtm <- function(m) {
res <- eigen(m)
d <- res$values
if (min(d) < -1e-5) warning("Negative eigenvalues in i... |
a3af7e285363bf86734e96e0ae613c793e2f0ebd | 15e6ac3031acc9b771cef4d26e3d5d03e8e3c936 | /day2/change-detection/mle-rouder08-indiv.R | 963fdec47f462468dcb30995a5c235b6d8ff5773 | [] | no_license | anhnguyendepocen/CognitiveModelingWorkshop | de60a5a1910560a1ea8cf5c14abf992bbc2de6c9 | 080db90e6745f28247a7829222982912e6f9b6dd | refs/heads/master | 2021-09-20T09:40:23.408058 | 2018-08-07T22:23:53 | 2018-08-07T22:23:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,872 | r | mle-rouder08-indiv.R |
# MLE Rouder et al (2008) PNAS
# get the MLE functions from the group script
source("day1/change-detection/mle-rouder08-group.R")
# the data is also read in under cd
head(cd)
# function to calculate fit statistics from -LL
fit_stats <- function(nLL, n, p){
# nLL = negative log liklihood
# n = number of observat... |
f18a6fd2eff78820d255ecd6f617eeecb5e0f93e | b2180767977549f293f4b7492284863aeb2cc6ab | /VS-ABC-GKTS.R | b47b46af9397eeda4935349c3ad9ef18eab89058 | [] | no_license | NTomasetti/Variational-Updating | 04b02653112cc479b5c2fadd60f542f57e4f393d | 80098be791ee9f19de874fe1a1a7210d36a0e8a2 | refs/heads/master | 2020-04-06T12:43:44.340180 | 2018-11-14T00:56:14 | 2018-11-14T00:56:14 | 157,468,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,847 | r | VS-ABC-GKTS.R | rm(list = ls())
repenv <- Sys.getenv("SLURM_ARRAY_TASK_ID")
id <- as.numeric(repenv)
library(plyr, lib.loc = 'packages')
library(ks, lib.loc = 'packages')
library(tibble, lib.loc = 'packages')
library(mvtnorm, lib.loc = 'packages')
eucdist <- function(y,z, w) {
t(y-z) %*% w %*% (y-z)
}
drawGK <-function(theta, T, ... |
5ff4738204315c91b05eedfa51b0b5a654bd04d6 | 64c4bf0bfb4e4d9ea19782db65defd7bdb2542df | /man/gendist.Rd | f2a83867272979e6dbd39a77d88166fe170a61d3 | [] | no_license | martinezsebastian/ri | f199bcd8cd2194f731c1f8e61483be57443d8400 | 31cdc4616d77cc9ea224d9315a3431e2ba861275 | refs/heads/master | 2020-04-04T14:28:50.191285 | 2012-05-10T00:00:00 | 2012-05-10T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,990 | rd | gendist.Rd | \name{gendist}
\alias{gendist}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generates randomization distribution of estimated ATEs
}
\description{
Takes hypothesized potential outcomes, a permutation matrix, and arguments for \code{estate()} to produce a randomization distribution of estimated... |
8dfb3497a65f8d281c83e6c138d8fb2b8216f12a | 82b8d7b02e49e98613cb92346baf1e114c084275 | /tests/testthat/test-prompt-git.R | 2e468b40f446c768a91b3e7c13b86a756685f699 | [
"MIT"
] | permissive | gwd999/prompt | ceaae598b7f3ee2a25247f8f5fb8235a1e451329 | 9f2ee37c1c07aecab335cd676e8fbd03a4a84bc7 | refs/heads/x | 2023-03-23T16:36:01.130623 | 2021-03-22T21:47:33 | 2021-03-22T21:47:33 | 319,088,522 | 0 | 0 | NOASSERTION | 2021-03-22T21:47:33 | 2020-12-06T17:17:34 | null | UTF-8 | R | false | false | 3,614 | r | test-prompt-git.R |
test_that("prompt_git", {
withr::local_options(cli.unicode = FALSE)
mockery::stub(prompt_git, "is_git_dir", FALSE)
expect_equal(prompt_git(), "> ")
mockery::stub(prompt_git, "is_git_dir", TRUE)
mockery::stub(prompt_git, "git_branch", "main")
mockery::stub(prompt_git, "git_dirty", "*")
mockery::stub(pro... |
bc4d6662c638598d6492a778a7953da784a1bcb0 | b3478761ab8118aead4760e0658b40e804ff1e4a | /BRT_00_Setup.R | 5d19ecf15aabc3247eeb6388bff08cbcd8deaee8 | [] | no_license | CaitLittlef/DroughtSens-BRTs | 0dda6eee65f2417a12ef8398ffd5257c4a92a653 | c83af06843422054ea4872a558fec6114c4edf0d | refs/heads/master | 2020-04-17T09:09:07.832529 | 2019-01-18T17:28:50 | 2019-01-18T17:28:50 | 166,446,771 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,435 | r | BRT_00_Setup.R | ### PACKAGES
install.packages("readr")
install.packages("tidyverse")
install.packages("dplyr")
install.packages("dismo")
install.packages("gbm")
install.packages("usdm")
install.packages("pdp")
### LIBRARIES
library(readr)
library(tidyverse)
library(dplyr)
library(dismo)
library(gbm)
library(usdm)
li... |
2bd3e58b9696aa560709bc22e1960959d3bc890d | 7e852c30d994c115468c8ec7cd8a2b924949e4c4 | /binder/install.R | a92aa7edc1a4d1fd6f8df28f0b5e1f91bd991b08 | [] | no_license | larssp/mybinder-J-Py-R-oct | f1c952467156d265d152d7b5f06b01802223b6b0 | 2d4aca3b308937f4fc73ba3a80ba0fc7963cac88 | refs/heads/master | 2021-06-06T02:53:19.281357 | 2020-03-25T14:33:37 | 2020-03-25T14:33:37 | 146,731,421 | 0 | 1 | null | 2018-09-05T13:18:50 | 2018-08-30T10:06:17 | Jupyter Notebook | UTF-8 | R | false | false | 907 | r | install.R | .libPaths( c( "~/binder/R/packages", .libPaths()) )
install.packages("tidyverse", lib="~/binder/R/packages")
install.packages("rmarkdown", lib="~/binder/R/packages")
install.packages("httr", lib="~/binder/R/packages")
install.packages("shinydashboard", lib="~/binder/R/packages")
install.packages("leaflet", lib="~/bind... |
097ef051905063da4ee25d3a2b0860507f99469e | 8a925980d46654ef70a7fee57178503d50627ce9 | /Job_Satisfaction.R | 8f1c21238d2ac49eba4b5f752f3d2cf17521eb0e | [] | no_license | time-consume/R-project | 5130d7eeddafb92acfa01af5c25b6ad273df5f08 | 017f9a717830f15ad38f52d0a62fdd8d150b50d7 | refs/heads/master | 2020-05-07T01:21:02.978364 | 2019-04-23T17:16:41 | 2019-04-23T17:16:41 | 180,270,962 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 721 | r | Job_Satisfaction.R | #Load packages
require(car)
require(ggplot2)
require(jtools)
require(pequod)
#Read data
dat<-read.csv("EmployeeSat.csv")
names(dat)
#lm w/o interactions
lmbase<-lm(dat$Job_Satisfaction~dat$ValueCompensation+dat$age)
summary(lmbase)
#center
dat$MCcompensation<-scale(dat$ValueCompensation,center = TRUE,scale = F)
dat$MCa... |
9d64193f0ae3ba431a074ab2dc606dec1b2ede95 | 23b125bbe7b94578e7696550ff367333400a3c26 | /encode_names.R | 363d227f1e7998ea52198d16ddf357f54fcb2afc | [] | no_license | tambu85/staribacher_diaries | 80d6daefb9a11d69e8d7d57aefd6c4bd64fce603 | 80c18b9f558c1358000a1ff0648e8f3959fb589d | refs/heads/main | 2023-05-09T11:49:21.211773 | 2021-05-26T14:59:23 | 2021-05-26T14:59:23 | 371,061,327 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 524 | r | encode_names.R | library(stringi)
library(XML)
html_txt <- function(str) {
xpathApply(htmlParse(str, asText=TRUE),
"//body//text()",
xmlValue)[[1]]
}
##The html_txt can parse the ã etc chars to their respective UTF values which can further be taken by stringi functions to convert into english alphabe... |
ad16ad00df3bfb971de2c1e5c9afe4ccac308c3f | 011b4028e257972160e712a8f7b414b31b992328 | /Scripts/dimReduceCreLines.R | 988bf1ba7851a866a7bea37ea743c945c16de863 | [] | no_license | flw88/deepseq_awesome | 320818d9f32bfe84c59ddca012c46b1db774d61d | fb27d8dc872176d5a428f4ace7b3ebe1294ac1f4 | refs/heads/master | 2020-05-29T09:16:14.419573 | 2017-03-23T01:59:43 | 2017-03-23T01:59:43 | 70,201,225 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,557 | r | dimReduceCreLines.R | #!/usr/bin/Rscript
## setwd and load files
print("Loading files...")
setwd("/home/local/users/eflynn/deepseq/")
fpkm<-read.csv("datasets/scRNASeq/fpkm_table.csv")
pheno<-read.csv("datasets/scRNASeq/columns-cells.csv")
#genes<-read.csv("datasets/scRNASeq/rows-genes.csv")
## reformat fpkm df
fpkm[,1] -> row.names(fp... |
7fe23a664e4d99f149f67a1a6563f60d99f02d7f | 1fe9c4fc4f4b3a193ee042c414bcd87c22fec4af | /Data_management_and_frequent_tasks/initLesson.R | f15387413c2d700e202ac8897672fd9fa49e38a7 | [
"MIT"
] | permissive | oucru-biostats/Data_management_and_basic_summaries_in_R | 949e6efd6e2dbe0c5d381aab2a6cfe087e4786a3 | 8153ee732eff1a3bc227cd5211ff30c357871e1f | refs/heads/main | 2023-03-19T04:17:51.909131 | 2021-03-03T02:47:39 | 2021-03-03T02:47:39 | 343,683,158 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,711 | r | initLesson.R | # Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
default.par <- par()
check.package <- function(package) requireNamespace(package, quietly ... |
0fad934cb2841e7911ca7a1e7cd4d538126bece0 | a71b7fe35d652d86f136823cd1801eb51d902839 | /abort.R | ae473dbb54df87a2541eb230f1cee81f6c1f5b4c | [] | no_license | StaThin/data | 9efd602022db768b927c3338e5ce7483f57e3469 | d7f6c6b5d4df140527c269b032bb3b0be45ceeeb | refs/heads/master | 2023-03-29T18:40:09.694794 | 2023-03-15T09:32:42 | 2023-03-15T09:32:42 | 29,299,462 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,013 | r | abort.R | # Christensen
"abort" <-
structure(list(Age = c(20, 20, 20, 30, 30, 30, 40, 40, 40, 50,
50, 50, 60, 60, 60, 70, 70, 70, 20, 30, 40, 50, 60, 70, 20, 30,
40, 50, 60, 70, 20, 30, 40, 50, 60, 70, 20, 30, 40, 50, 60, 70,
20, 30, 40, 50, 60, 70, 20, 30, 40, 50, 60, 70, 20, 30, 40, 50,
60, 70, 20, 30, 40, 50, 60, 70, 20, ... |
1b87c2ff36222270abd1e5a57e5fe028c4f95632 | 46827846ffbc3eb7b420f4f44dceac6af511aad6 | /practice9/R/funcs1.R | 5806719d567e1ce06b17a6f436fbe6a5d2624c30 | [] | no_license | wibbn/r-homeworks | 89db3056844c7aa8cf111822a3dfcb6ad0a4ae19 | aba89f07f8fef5390321d61c1b3c8ede28c7bd42 | refs/heads/master | 2023-05-30T07:42:47.174019 | 2021-06-07T12:21:08 | 2021-06-07T12:21:08 | 362,555,400 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 922 | r | funcs1.R | id <- 1:3
country <- as.factor(c("Flatland", "Wonderland", "Sphereland"))
craziness <- c(20, 15, 18)
region_type <- c("A", "B", "A")
author <- as.factor(c("Abbot", "Carroll", "Burger"))
size <- c(10, 100, 30)
df <- data.frame(id, country, craziness, region_type, author, size)
s <- sapply(df, class)
first <- function... |
855e09858ac66fab70c1f69b79cf82db0b94e3ce | b25a2e2831e65331c04ea4f130eb821ce8c7615b | /plot1.R | 116790f6b7bf0cf6d39e9b1441c063a38d0268b1 | [] | no_license | joselle4/RepRes_OpAssign1 | 6a62dc4f66295dea47459e0f4d8fa08152eb9045 | b62c58efdf04feae2b4563d9bb2059a9d92e725b | refs/heads/master | 2023-06-23T21:24:03.789720 | 2021-07-12T22:46:13 | 2021-07-12T22:46:13 | 385,403,315 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 770 | r | plot1.R | # Make a plot that answers the question: what is the relationship
# between mean covered charges (Average.Covered.Charges) and mean
# total payments (Average.Total.Payments) in New York?
# load library
library(ggplot2)
library(cowplot)
# set directories
filePayments <- paste0(getwd(), "/coursera/payments.csv")
# r... |
f3a7c1d03193acc15b005bf4e11adbecf4ccc91f | 17d582790e37f4a1fa3cfcfc531fdf5c4f4086d4 | /packrat/lib/x86_64-redhat-linux-gnu/3.5.1/rhdf5/tests/testthat/test_h5read.R | bfea81f9e2b83ef70c81ac364e71b2ae69dd3879 | [] | no_license | teyden/asthma-research | bcd02733aeb893074bb71fd58c5c99de03888640 | 09c1fb98d09e897e652620dcab1482a19743110f | refs/heads/master | 2021-01-26T08:20:58.263136 | 2020-02-27T04:12:56 | 2020-02-27T04:12:56 | 243,374,255 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,950 | r | test_h5read.R | library(rhdf5)
############################################################
context("h5read")
############################################################
A = 1L:7L;
B = matrix(1:18, ncol = 2);
D = seq(0, 1, by=0.1)
attr(D, "scale") <- "centimeters"
## output file name
h5File <- tempfile(pattern = "ex_read", file... |
b7cdcca55acfb5a8c83fa924f8aff7b34dfeabbd | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RISmed/examples/MinuteReceived.Rd.R | 7db03203818a98c8d1ee35e28921ca76bb1ca09b | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 190 | r | MinuteReceived.Rd.R | library(RISmed)
### Name: MinuteReceived
### Title: Extracts 'MinuteReceived' from 'Medline' object.
### Aliases: MinuteReceived
### ** Examples
data(myeloma)
MinuteReceived(myeloma)
|
88a4a37646dbf426af07655130a0aa94742fcec9 | cd322790b759a022f357366a9a7beaa68681fff9 | /Titanic.R | 00641fd91d5877a197840e9580347e6b3574259b | [] | no_license | amardeepm9/Amar_R_project | 2588a97ea59b5417ce8d29fc7ae6d1c5bfca988f | 72c566ba0972c8923714cb00ec00c5a69b1cf53a | HEAD | 2016-09-06T19:28:43.058887 | 2014-09-23T02:58:58 | 2014-09-23T02:58:58 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 2,214 | r | Titanic.R | Tit<-read.csv("C:/Users/Anil/Desktop/titanic/train.csv", stringsAsFactors=FALSE)
Tit
str(Tit)
summary(Tit)
table(Tit$Survived)
#We see that in the training set, 342 passengers survived, while 549 died.
# How about a proportion? Well, we can send the output of one function into another.
#So now give prop.table() the o... |
e4353b23b011d31ca29b262cde17733fc8400428 | d316f17a1a53f3ed3e0ab6c9d195d51b16754c63 | /NBA_Analysis.R | d87be148c5d3c10768406bf4b65fc7e4883b0744 | [] | no_license | DaxFree/NBA-Championship-R-Analysis | 0a5851bd6042423c1dfaab281b880a619086295c | d43ce300cfa8d0767c712f187ee57f2e7de35195 | refs/heads/master | 2021-01-20T07:24:19.090909 | 2017-08-27T07:28:30 | 2017-08-27T07:28:30 | 101,536,636 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,896 | r | NBA_Analysis.R | # Dax Freeman
# May 2017
# Senior Capstone
# NBA Championship Teams 80'-16' Basic R Analysis
library(readr)
install.packages("ggplot2")
library(ggplot2)
# Bulls
Bulls1993 <- read_csv("~/Desktop/CapstoneCSV/Bulls1993.csv")
Bulls91 <- read_csv("~/Desktop/CapstoneCSV/Bulls91.csv")
Bulls92 <- read_csv("~/Desktop/CapstoneC... |
611b8007a8146f64ddbdcab8480c4181abf21791 | d2c892e59bb876e2205ad6ca9acb3e904aaeab5b | /code/functions/Code_5term_opt.R | d47054d5f49d7e847b95080b5505ef0295ab0ed4 | [] | no_license | yuqimiao/multiomics-SIMLR | 088738b77a7e0441a41e0d6b14137c2e1aefa8a7 | bedd32e5e5ddafad2844803d901e5075c716203a | refs/heads/master | 2023-03-09T10:18:04.289011 | 2021-02-20T04:40:39 | 2021-02-20T04:40:39 | 293,400,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,633 | r | Code_5term_opt.R | library(quadprog)
case_control_mat = function(response) {
# response: a vector of binary outcomes (0s and 1s)
# Construct a matrix to show the case/control status between responses: 1 (same) -1 (different)
return(2*as.matrix(stats::dist(response, method = 'manhattan'))-1)
}
Crazy_5term_opt = function(Kmat_ls, #... |
4484d2785addf203199f39ec83b191184ff24036 | c6d3fba0648f0ad48557a6614b42e1943a13e1b8 | /cachematrix.R | 138db1d987beec14adf3903ef2a8e378127f1772 | [] | no_license | tprashanth85/ProgrammingAssignment2 | fb7e02e19d487adb814f4b6fd07f2a527a540649 | adb488830f09c36faf06094a4138a2b8107d27cf | refs/heads/master | 2020-12-25T11:20:26.919850 | 2014-07-25T04:13:53 | 2014-07-25T04:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,587 | r | cachematrix.R | ## The two below functions are developed to simulate caching for calculating the inverse of a
## matrix. makeCacheMatrix creates a special object that can be used to set and get matrix and
## to set and get inverse of matrix. cacheSolve function computes the inverse of the
## special "matrix" returned by makeCacheMatr... |
62c481c7a4e8dbe573d688117bb98574ed347e12 | 1182588893ed8a91009078deb8b65620033f32d5 | /plot4.R | f31f979d54e69df1da110721dbfc6e19df0531c9 | [] | no_license | mwatchorn/ExData_Plotting1 | d3405a0e75947b4697f2c486426864d0a391beaa | 3ee3c2aaf2ef8302442ca0692c5ab7a5a70d66f1 | refs/heads/master | 2020-05-29T11:08:05.622717 | 2016-05-27T01:02:18 | 2016-05-27T01:02:18 | 59,589,881 | 0 | 0 | null | 2016-05-24T16:28:21 | 2016-05-24T16:28:20 | null | UTF-8 | R | false | false | 1,693 | r | plot4.R | setwd ("G://ed_proj1")
pwr_consume_agg <- read.table (
file = "household_power_consumption.txt"
, header = TRUE
, sep = ";"
, na.strings = "?"
, stringsAsFactors = FALSE
)
pwr_consume_agg$Date <- as.Date (pwr_consume_agg$Date, "%d/%m/%Y")
pwr_consume_eval <- subset (pwr_consume... |
586ef78452a8899e39e4f4a255e7db253536cca0 | b950da2e7c75b35ed22e7b0f02936f3b022e9c71 | /old/WTPCM_r/Eval_WTPwC_IS2a.R | 7316c1b356353b3f953c3bea3d3fd72b53314683 | [] | no_license | YvesMSaintDrenan/WT_PowerCurveModel | f5c6c2568371aeb303f80988ad175dbf2e69b88e | e82d989a6115651b8ae58c546993783e2bd2f10d | refs/heads/master | 2023-06-22T08:37:07.624032 | 2023-06-12T12:30:30 | 2023-06-12T12:30:30 | 246,547,657 | 9 | 5 | null | null | null | null | UTF-8 | R | false | false | 7,108 | r | Eval_WTPwC_IS2a.R | # library needed to use function polymul
# there also is a function conv, which should do the same but for some reason doesn't
# library(pracma)
Eval_WTPwC <- function(WT_param) {
# Define the 11 parameters for the Cp model based on values found in the literature
# This assigns the values from Table A.2 of the ... |
be31948ac308c511b1c37b37ca2054fcceecfe34 | a114996ecfdd212ea60e54238a24b3bf51112b13 | /Functions/PrimeSieve.R | eb4cdf2ea3b52a7304979839a458af26fd43494d | [] | no_license | Adam-Hoelscher/ProjectEuler.R | 35610697d5bc4c61e9adfaec6d923a424df20486 | e060484365cafcfcd400c3cecacc189293dfc682 | refs/heads/master | 2021-01-23T01:29:54.585429 | 2017-09-11T18:28:46 | 2017-09-11T18:28:46 | 102,432,553 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 445 | r | PrimeSieve.R | PrimeSieve<-function(to, from = 1){
if (from > to){
warning('Upper bound of sieve is below lower bound integer(0) returned')
return(integer(0))
}
n <- to
a <- c(F, rep(T, times = (n-1)))
p <- 2
while (p^2 <= n){
j <- p^2
while (j <= n){
a[j] <- F
j <- (j+p)
... |
32686d471ef4a97641303fdb8e37404d056f17e5 | 274f1381f22346a58e5635763c924b4872d013f1 | /R/callWithoutArgs.R | ca0c87f0babd5be0306b18396a9dbdb2e7fbd97f | [] | no_license | cran/maxLik | c9eeb1d95b3aa4a174cad54f67936cf75ed4b908 | 3e23589ca66ae3e1d3ddc6dba6c3a88dced57ca9 | refs/heads/master | 2021-08-07T07:13:49.328723 | 2021-07-26T16:30:02 | 2021-07-26T16:30:02 | 17,697,315 | 0 | 4 | null | 2021-04-03T12:39:53 | 2014-03-13T05:16:36 | R | UTF-8 | R | false | false | 330 | r | callWithoutArgs.R | ## strip arguments "args" and call the function with name "fName" thereafter
callWithoutArgs <- function(theta, fName, args, ...) {
f <- match.call()
f[ args ] <- NULL
f[[1]] <- as.name(fName)
names(f)[2] <- ""
f[["fName"]] <- NULL
f[["args"]] <- NULL
f1 <- eval(f, sys.frame(sys.parent()))
retur... |
8b9516ea88006592d618450d7a16e83b8aa927c1 | c1bb17204521840a31199cd14fd54bdecd43f990 | /analysis_notebooks/chromHMM_maps_all_tissues.R | c3c8d345f71005a774f348b6a92cad9a8eed75bd | [] | no_license | pjshort/de_novo_noncoding | 761593c77e8226a4dad28c41173c274578205c43 | a8d1328549910656d01b6b44928a87d71bdabe57 | refs/heads/master | 2020-02-26T17:26:44.932949 | 2016-06-19T16:50:47 | 2016-06-19T16:50:47 | 58,368,422 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,448 | r | chromHMM_maps_all_tissues.R | # test the MAPS difference between quiescent and all other states in each tissue type
source("~/software/dddMAPS/dddMAPS/MAPS.R")
load("~/software/dddMAPS/data/DDD_4k_parents_synonymous_maps_lm.RData")
library(stringr)
mu_snp <- read.table("~/reference_data/forSanger_1KG_mutation_rate_table.txt", header=TRUE)
gencode... |
c50603959210c134484c34b1096493bd77353de4 | 966ad8c38d12e6365338d3dbfe03e7389a08860a | /archive/analysis/elo_check.R | 2613a89e89bc890759cc5a518dadd9d78a7d285e | [
"MIT"
] | permissive | turneralex/afl_elo | cd9522e482d73b60139360b9fba034650ff8ccc9 | 025a5723adf911c4d9a01f69cd13efd7a17c04d9 | refs/heads/master | 2023-08-16T21:01:06.210181 | 2023-08-08T04:57:35 | 2023-08-08T04:57:35 | 169,377,895 | 1 | 0 | MIT | 2023-08-08T04:57:36 | 2019-02-06T08:57:05 | HTML | UTF-8 | R | false | false | 5,494 | r | elo_check.R | source(here::here("fixture scripts/fixture_all.R"))
source(here::here("elo update/functions_general.R"))
library(tidyverse)
library(ggpubr)
elo_par <- read_csv("./new elo/elo_par.csv") %>%
deframe()
elo_par[3:10] %>%
enframe(name = "location", value = "hga") %>%
mutate(
location = str_replace... |
5df9e9b75f5420addf65838bcfd96b6ee3d82732 | 42a4ac640afa40dfae8a7e6bdbb7af59a22aa755 | /non-app-funs/R/scraping/ts_word_frequency.R | c94b8fd27386e56a07ed31668956dc88efc14777 | [] | no_license | Npaffen/Advanced_R_Project | 9946ab949351fb5ac8ca49ac9040339ffc55008f | ca89cdd4a6ce0f2abc147a3a94203323f5e0b14a | refs/heads/master | 2022-07-15T04:44:58.608442 | 2022-07-08T07:17:57 | 2022-07-08T07:17:57 | 240,293,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,430 | r | ts_word_frequency.R | library(tidytext)
library(stopwords)
library(lubridate)
library(quanteda)
library(Quandl)
library(fredr)
library(tidyverse)
# helper function ----------------------------------------
# this function tokenizes the articles i.e. converts them into
# tidy text format--a table with **one-token-per-row**, token == a word... |
351ced45d9dcc0af47a4908d2296ebf9fb09c6a1 | 3570b80c30c4935f4e19169dece31a3bd33d70d0 | /R/discounting.model.simulate.R | c30f3e87cfb9f9c9d7fd920bcfac1e8bcd5369bd | [] | no_license | chuanchang/BehavioralEconomics | 71d79b27e0cc389ace8a03c8786719109d589141 | 99252c64f530cb40b5d13242c545de70879f7476 | refs/heads/master | 2020-12-02T16:55:48.609199 | 2011-03-08T01:30:04 | 2011-03-08T01:30:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 360 | r | discounting.model.simulate.R | discounting.model.simulate <- function(choices, model, parameters)
{
for (i in 1:nrow(choices))
{
x1 <- choices[i, 'X1']
t1 <- choices[i, 'T1']
x2 <- choices[i, 'X2']
t2 <- choices[i, 'T2']
p <- discounting.model.choice.probability(x1, t1, x2, t2, 1, model, parameters)
choices[i, 'C'] <- rbi... |
0384f75b36a617a730dd96deade84b5eaba1916a | bf98913ace9f5de43f50c3521774a88494c656b0 | /calib_indep.R | 6b7a6783e1b8a25ca897f38e8eb837f855bd84dd | [] | no_license | baeyc/floral-coverage | 19e9e26adebcd51468638f7e37d603fb31401991 | ae938144eeb1a38cf11d5c8b0179e99e4334a9f6 | refs/heads/master | 2020-09-25T03:22:43.951769 | 2019-12-04T16:40:53 | 2019-12-04T16:40:53 | 225,906,110 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,596 | r | calib_indep.R | # Floral coverage model
#options(echo=FALSE)
#args<-commandArgs(trailingOnly = TRUE)
#print(args)
args <- c("pasture","4","0","0.7","0","0.7","10","1")
landuseCat <-args[1]
nbrep <- as.integer(args[2])
m1l <- as.numeric(args[3])
m1u <- as.numeric(args[4])
m2l <- as.numeric(args[5])
m2u <- as.numeric(args[6])
nb_mcmc... |
5085ed349bc441103efcb6421dbe9c49e326ab51 | f7fb88ca3b6c0b29a3d10ed20df25efa6e4f8602 | /man/users_list.Rd | b3234b1332b6f353db5a1a8abb7be67356318566 | [] | no_license | cran/civis | 9fdf3e2ff64b72fc5c448d02cd621594d0f603b4 | e334467f2e8af73bb76c1e80f60e3f6ba460b509 | refs/heads/master | 2023-04-07T13:39:21.376985 | 2023-03-31T07:00:03 | 2023-03-31T07:00:03 | 103,786,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,972 | rd | users_list.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{users_list}
\alias{users_list}
\title{List users}
\usage{
users_list(
feature_flag = NULL,
account_status = NULL,
query = NULL,
group_id = NULL,
group_ids = NULL,
organization_id = NULL,
exclude_groups =... |
796fa781b898b08c1a4cef5edbe5abffa1d4c287 | f13d80975c1a67bc5a35227c7a6fed5fd60db0a2 | /MarkDown/Overlap.R | 81613e5398ed820c424041741bbb1ca44fe1f18b | [] | no_license | haoboguo/NetBAS | 6b85e1be3381b81b1692659bd8efe6233782c517 | babfed11f5ff22fab9fbe543f9b4783a6d68796f | refs/heads/master | 2022-10-03T02:04:49.329435 | 2020-06-09T16:45:28 | 2020-06-09T16:45:28 | 151,443,387 | 3 | 4 | null | null | null | null | UTF-8 | R | false | false | 1,621 | r | Overlap.R | # overlaps of gene sets
library('gplots')
list.file <- read.csv("list", header=F, stringsAsFactors=F)
hmk.set.list <- list.file$V1
dims <- length(hmk.set.list)
om <- matrix(0, ncol = dims, nrow = dims)
for (i in 1:dims) {
ith.name <- paste(hmk.set.list[i], "/", hmk.set.list[i], ".csv", sep="")
ith.file <- read.c... |
54387bc49f45941cc7b7fd5280f41e1f61d26fed | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/chillR/examples/check_temperature_record.Rd.R | 47ee121d120019db6b39212d0f3393956428ee59 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 274 | r | check_temperature_record.Rd.R | library(chillR)
### Name: check_temperature_record
### Title: Check a daily or hourly temperature record for compliance with
### chillR's standards
### Aliases: check_temperature_record
### Keywords: utilities
### ** Examples
check_temperature_record(KA_weather)
|
75b79555b700415c96bed042720ec25cef778f56 | 8c6d0610b0844bf7ed6bfd8dfcfe302b7286a78f | /functions/get_required.R | 6c3c8d85bd22ebe0e541c86d8f1dd06828373500 | [] | no_license | SzarR/rJAQv3 | 0fbf619a55278eeb47f90af7a1078e3433050dd9 | a65b8f1659adbb8b8d5033c15b904a28001ae7fb | refs/heads/master | 2021-03-28T03:18:20.428927 | 2020-08-25T14:08:40 | 2020-08-25T14:08:40 | 247,830,006 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 617 | r | get_required.R | get_required <- function(datum, section) {
# Specify variable names.
if(section == 'task'){
VarLab_REQU_Task <- paste0("REQU_", 1:TaskNumbers)
}
if(section == 'ksao'){
VarLab_REQU_Task <- paste0("REQU_", 1:KSAONumbers)
}
# Run calculations.
REQU <- dichot_scale(datum, scale = VarLab_REQU_Task, roun... |
47dcfca661a5d7be85274412db70734a962157a4 | 1e39fc5bc9e4f53f63655269d203fd896caeeb00 | /R/double.obs.sim.R | ee085eed4a85c0657cabddc64bb16fdb7fac24eb | [] | no_license | m-murchie/dht-bootstrap | 0405c921dd2e5dffee3b32e5123fe7eeb672ebb8 | 9b64c13593b63cfbfbea6756c756b0ea8177fb64 | refs/heads/master | 2020-04-05T23:14:16.058224 | 2016-07-07T15:35:08 | 2016-07-07T15:35:08 | 60,344,043 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,453 | r | double.obs.sim.R | # --- DOUBLE OBSERVER DATA SIM FUNCTION: VERSION 1 ---
double.obs.sim <- function(region.obj, design.obj, pop.description.obj, detect.obj.1,
detect.obj.2, ddf.analyses.list, seed = 123456,
plot=FALSE) {
set.seed(seed)
## simulatio... |
e1424a1a5434e741848c2640747e34ac0eb8d6a1 | f5f142e469ba0526a2768a509630c8b5156b1fcb | /man/highlight_distinct_edges.Rd | f1267776d30510980062b5a2b8e0ad612b7edb4f | [] | no_license | JohnMCMa/dendextend | 350ca633b439b8964eec739ba9247c9527ae37f4 | 1e25e5bf786d943b3aa651f4257336462187d43c | refs/heads/master | 2021-01-18T16:05:01.686085 | 2017-03-30T14:15:29 | 2017-03-30T14:15:29 | 86,709,713 | 0 | 0 | null | 2017-03-30T14:06:03 | 2017-03-30T14:06:03 | null | UTF-8 | R | false | true | 2,531 | rd | highlight_distinct_edges.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distinct_edges.R
\name{highlight_distinct_edges}
\alias{highlight_distinct_edges}
\alias{highlight_distinct_edges.dendlist}
\alias{highlight_distinct_edges.dendrogram}
\title{Highlight distint edges in a tree (compared to another one)}
\usage... |
2a2c04d9bf9e1bc3fd231de359ede95a31cafe6c | fbdc3731313c3a2398b3b87351c8ca17e12fbab0 | /man/ThetaMater.M2.Rd | 64044b99bf717e4e385de36524c0652643ceddc3 | [] | no_license | radamsRHA/ThetaMater | b51ccacd7f8cc8c39e23363de05afe1d214044f7 | 02f87295994dcaa11c71c8cfb507cb2ccb23ed75 | refs/heads/master | 2021-01-20T14:47:04.711591 | 2020-03-31T16:54:19 | 2020-03-31T16:54:19 | 90,657,612 | 6 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,357 | rd | ThetaMater.M2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ThetaMater.M2.R
\name{ThetaMater.M2}
\alias{ThetaMater.M2}
\title{ThetaMater.M2: (Bayesian Model 2) MCMC function that uses the MCMCmetrop1R function from MCMCpack with a discrete gamma rate variation model}
\usage{
ThetaMater.M2(k.vec, l.vec... |
58e32b59bf385464303f443dd8cc34757ed3659b | 83cca7265e5a38e1524c531430371844ca20f8a8 | /pkg/man/print.summary.attribution.Rd | 0169eab0f85198a5d6e5ac23277268403e27d581 | [] | no_license | jmarshallnz/islandR | e486c577dc56fb4352f419150e9e987d782ba36d | 22e32150bbe61f5f7edc1dc55fb3cbe29e8aff5e | refs/heads/master | 2022-10-07T18:22:16.106515 | 2022-09-26T22:15:40 | 2022-09-26T22:15:40 | 38,412,796 | 0 | 3 | null | 2020-05-16T02:51:27 | 2015-07-02T05:17:11 | R | UTF-8 | R | false | true | 501 | rd | print.summary.attribution.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attribution.R
\name{print.summary.attribution}
\alias{print.summary.attribution}
\title{Print a summary of an attribution object}
\usage{
\method{print}{summary.attribution}(x, ...)
}
\arguments{
\item{x}{an object of class `summary.attributi... |
09fae520348c5ea76331a996b234e20b62deb679 | 996790634a55078a7d1469286e54b7dff5b23b31 | /tests/testthat/test-plot_heatmap.R | 3246fbd64a4a27648cc5f477bc0fcf6cda8c09ed | [
"MIT"
] | permissive | epiforecasts/scoringutils | d811ff7dc30e0f4ba6639ed6a42897793fe67b54 | b7090104e0736f2f59a2b9771171a256f3af3514 | refs/heads/main | 2023-08-08T22:48:48.957717 | 2023-07-28T10:19:06 | 2023-07-28T10:19:06 | 240,501,300 | 32 | 13 | NOASSERTION | 2023-09-06T13:12:03 | 2020-02-14T12:16:42 | R | UTF-8 | R | false | false | 349 | r | test-plot_heatmap.R | library(ggplot2, quietly = TRUE)
test_that("plot_heatmap() works as expected", {
scores <- suppressMessages(
summarise_scores(scores, by = c("model", "target_type", "range"))
)
p <- plot_heatmap(scores, x = "target_type", metric = "bias")
expect_s3_class(p, "ggplot")
skip_on_cran()
vdiffr::expect_doppe... |
0f71d82d49b22fa1f628d147aad0a10306608706 | 75a592004d51c8722ac896b119826f12c763950e | /R/Fig. 8.r | 5fc3103e3b0ac0ffde4a43a4af7ee68f96134bf6 | [] | no_license | YaojieLu/Lu-et-al.-2016-JTB | 2fcab27d0d2e5bec713d5fd83a415b86c6ddfe9f | 0ba71719014ebe868c323e9a0ed1771f4b435cbc | refs/heads/master | 2021-01-10T14:40:25.283953 | 2019-12-08T01:28:59 | 2019-12-08T01:28:59 | 49,685,335 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,293 | r | Fig. 8.r |
data <- dvs
data$ca <- as.factor(data$ca)
data$k <- as.factor(data$k)
Cols <- c("red","darkgreen","blue")
#plots
windows(8, 6)
par(mgp=c(2.2, 1, 0), xaxs="i", yaxs="i", lwd=2, mar=c(4, 4, 1.5, 2), mfrow=c(1,1))
# the effect (ratio) of elevated ca on A & E
ca400medium <- subset(data, ca==400 & k==0.05)
ca800medium <- ... |
04b637f15fae25995fc9d8029b0651263f771af8 | bd191bc02b74a7efb9e9ec1dfd9af7d1b22a5be6 | /covid-report.R | 575df7c5088ebfa57c4b9b0a330d1fe8cd244b31 | [] | no_license | didempaloglu/covid-report | a2c2439b76c224f9cbc991a53c79e40c1185437c | b0bc6c0540c575d3f8994bb152438a61118ed87a | refs/heads/main | 2023-04-11T16:25:51.127521 | 2021-05-05T22:03:34 | 2021-05-05T22:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 507 | r | covid-report.R | #############################################
# Reproducible Research #
# Final Project #
# #
# A look at the pandemic #
# for a specified period. #
# ... |
46d226c993bade617513b6ddd079f0b12e65ae0a | 606abfc33cfb89b2f1f6858012c9c5d653f0a933 | /man/Brt_pre.Rd | 41c3d83664657f18a4b9c8a7f6df1fc94b7e0c9c | [] | no_license | mengluchu/APMtools | b29bbe3ced1a9b5fb3930a763415b9fa8ba8f468 | 2bce8d890b17bc500c45d7b93ed9667f9beb21d5 | refs/heads/master | 2022-02-23T08:36:10.706066 | 2022-01-20T14:47:10 | 2022-01-20T14:47:10 | 213,626,720 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 404 | rd | Brt_pre.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Brt_pre.R
\name{Brt_pre}
\alias{Brt_pre}
\title{brt predictions}
\usage{
Brt_pre(
variabledf,
opti = F,
ntree = 1000,
y_varname = c("day_value", "night_value", "value_mean"),
interaction.depth = 6,
bag.fraction = 0.5,
shrinkage ... |
6dca17855bea8c71930f60767e8ff7dd6b1c82b9 | 8c2d7e0920b7c279f79cf256e9949f7ef7539807 | /R/4-variograms.R | 06e23498112f0a4907b1b0c829e7163d0dcd86c6 | [] | no_license | nabilabd/ATLRUG_spacetime | 6f6a7207b9bdaa3c759661fa1ac0fb3b4d3237f7 | 503d1d492af0896fddb1aa144be9e58790f718e8 | refs/heads/master | 2021-01-21T04:53:56.452173 | 2016-06-11T19:07:44 | 2016-06-11T19:07:44 | 50,754,281 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 583 | r | 4-variograms.R |
source("R/1-data.R")
library(gstat)
# start with an example: calculate sample vgm
data(meuse)
coordinates(meuse) <- ~ x + y
lzn.vgm <- variogram(log(zinc) ~ 1, data = meuse)
plot(lzn.vgm)
plot(lzn.vgm, pch=16)
# inspect visual properties
vgm()
show.vgms()
# fit a model
lzn.fit <- fit.variogram(lzn.vgm, model=vgm... |
bb88207ed83894d56f49c837128679f0156d4ae8 | 4353771966887410582d9ce9877a0ebedc981e6d | /Project 2 - Analysis of UN HIV Data/UN_AIDS_Circumcision.R | 9a4ecb8ea22687514889c195aa6ce359a218ed87 | [] | no_license | LinRZhou/Project-2 | dde81e2b5e0fc45e30bf9bf2d80bf3a411b8e419 | 50d02fc11233dc8cd292566fb14071cc07e5d2eb | refs/heads/master | 2020-04-24T17:19:15.689970 | 2019-02-22T22:28:15 | 2019-02-22T22:28:15 | 172,142,963 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,644 | r | UN_AIDS_Circumcision.R | library(plyr)
library (tidyverse)
library(stringr)
source("UN_AIDS_Prevalence_Incidence_Project_2.R")
#setwd("C:/Users/linra/Documents/UNC Masters Degree/Fall 2018/BIOS 611/Project 2")
HIV_prev_df=read_csv("UN_HIV_Prevalence.csv")
HIV_inc_df=read_csv("UN_HIV_Incidence.csv")
HIV_Circ_df=read_csv("UN_HIV_Circumcis... |
07dbc4643fce0e58fbfdf15174b464c9f97f05ed | b151b039002a7773d06a95dea652a8684f3dd2d3 | /man/derl.Rd | 6eca5482b61c6f3ff57c984396e3d3623f2c23af | [
"MIT"
] | permissive | runtastic/sBGmodel | 9bb39463e90c0944ac49589dc325b916a94cf090 | 0d26f593697f682485ddfcaa3f68d54237e37738 | refs/heads/master | 2020-07-01T14:30:18.078779 | 2019-08-08T13:19:25 | 2019-08-08T13:19:25 | 201,197,152 | 3 | 2 | null | null | null | null | UTF-8 | R | false | true | 846 | rd | derl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/customer_performance.R
\name{derl}
\alias{derl}
\title{Calculate discounted expected residual lifetime}
\usage{
derl(model, period = 1, discount_rate = 0.25)
}
\arguments{
\item{model}{a sBG model}
\item{period}{a vector with period(s) for w... |
25c602e766ec746b303226797c389d07ae85ce5e | 0a11b2535695dc71724334a1a485cfe7b999aaa9 | /DMP_ENRICHMENT/CellType_DEG_DMP_Enrichment/CellType_DEG_DML_Correspondence.R | 16e924bbfd15faf4ebe1ada0d4aff874006c94f5 | [] | no_license | soojinyilab/Schizophrenia_CellType | 134af96fd61ec55db9aa040c931517cb735f2ce0 | 61ab71f654f04cd82941e94e45adea33ad7bd29f | refs/heads/master | 2020-04-24T05:07:56.887092 | 2019-02-13T03:16:39 | 2019-02-13T03:16:39 | 171,726,301 | 1 | 1 | null | 2019-02-20T18:21:39 | 2019-02-20T18:21:39 | null | UTF-8 | R | false | false | 1,980 | r | CellType_DEG_DML_Correspondence.R | library(qdap)
library(ggpubr)
library(cowplot)
library(ggthemes)
load("CellType_DMR.RData")
dge <- read.table("CELLTYPE_LIMMA_DGE.txt")
df <- merge(dge,dml, by.x="row.names",by.y="SYMBOL",all=F)
df <- na.omit(df)
df$Class <- genX(df$annotation, " (", ")")
df$Class <- as.factor(df$Class)
df$CellType <- ifelse(df$logF... |
ffa79d56f921a44563863af3bdce978119e83b32 | 9f2c2d1c1bfe949ec76e6d323d9327d9d400fc24 | /Run-WFSims-Autosomal.R | e54b0223c1cf0722421ec922d958bf767e0d4325 | [] | no_license | colin-olito/XvAutosomeInversions | fba08c4c05e1df84922a39d25f3c33892c87d89c | cc69ca1a8212439423f58a02482d1ba61d38279f | refs/heads/master | 2021-03-22T00:05:22.720462 | 2018-07-16T22:08:18 | 2018-07-16T22:08:18 | 103,689,205 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,318 | r | Run-WFSims-Autosomal.R | ##############################################################
# Wright-Fisher forward simulations of invasion of autosomal
# inversion capturing 2 locally adaptive alleles, as well as
# possible linked deleterious mutations
#
# R code for W-F forward simulations. Generates output data
# as .csv files saved to ./... |
5fb871fd5fb9131a9771bef6b88b6b1234f8847f | 394b0b27a68e590165d0dfb9243e7b2d5deaf4d5 | /man/processZoomParticipantsInfo.Rd | bea220fed6b1c30acb1896ce279d19be11c144ef | [
"MIT"
] | permissive | NastashaVelasco1987/zoomGroupStats | 5b414b28e794eecbb9227d4b1cd81d46b00576e4 | 8f4975f36b5250a72e5075173caa875e8f9f368d | refs/heads/main | 2023-05-05T18:23:17.777533 | 2021-05-24T16:08:23 | 2021-05-24T16:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,152 | rd | processZoomParticipantsInfo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/processZoomParticipantsInfo.R
\name{processZoomParticipantsInfo}
\alias{processZoomParticipantsInfo}
\title{Process participant information from a Zoom meeting export}
\usage{
processZoomParticipantsInfo(inputPath)
}
\arguments{
\item{inputPa... |
847dcd9decb2bb22e65db517bce6a3dec3c1fbfc | be84793607fb7a185eb85f29b42ed504d6cba2e9 | /05/src/songsLoading.R | 25e67eef5af14c9457fbb7b3383d69caa2eb3584 | [] | no_license | laz08/Information-Retrieval | c77b36b0d587f7cd83f9ebf544bdc22b6e28d5c1 | 4341aa4886a82f19bbd80a67a1ab28878cd3da62 | refs/heads/master | 2020-04-02T12:57:45.522108 | 2019-01-03T15:00:07 | 2019-01-03T15:00:07 | 154,460,243 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,990 | r | songsLoading.R |
loadSongs <- function() {
if(!LOAD_MERGED_SELECTION){
#################
songdata <- read.csv("./datasets/songdata.csv", encoding="851", stringsAsFactors=FALSE)
songdata$link <- NULL
songdata$artist <- as.factor(songdata$artist)
#View(levels(songdata$artist))
coldp... |
ab7ebe694daacd8960497af9e4b6c0443e8ee391 | 29585dff702209dd446c0ab52ceea046c58e384e | /causaleffect/R/causal.effect.R | 510c164f90e8b12ae777cdee2b10a0767500759d | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,883 | r | causal.effect.R | causal.effect <-
function(y, x, z = NULL, G, expr = TRUE, simp = TRUE) {
if (!is.dag(observed.graph(G))) stop("Graph 'G' is not a DAG")
to <- topological.sort(observed.graph(G))
to <- get.vertex.attribute(G, "name")[to]
G.unobs <- unobserved.graph(G)
G.Adj <- as.matrix(get.adjacency(G.unobs))
if (len... |
cbc9ba5fae9fb4174b86982357aca49390d58741 | c326adaafd17d86d9caaa199fe75120f20188acd | /man/overlap_jaccard_mat.Rd | f1eb367d6fe249fe799afe8c4ae65dc773006bc6 | [
"BSD-2-Clause"
] | permissive | adrisede/lowcat | 4614c881aafccf814e816e880d4ec5fd87fe738f | cdbdcc23e80306d17723dc1cec36c84a62acd95a | refs/heads/master | 2022-03-02T21:35:26.457043 | 2019-10-07T20:45:43 | 2019-10-07T20:45:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 774 | rd | overlap_jaccard_mat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distances.R
\name{overlap_jaccard_mat}
\alias{overlap_jaccard_mat}
\title{Compute jaccard similarity values based on GenomicRanges overlaps in parallel.}
\usage{
overlap_jaccard_mat(fragment_list, n_cores = "auto",
cluster_type = "PSOCK")
}... |
511d6396e0a2b184eb9ddd7f7a9ff64a6e832fbf | 2fb4cc8514d1a472a96eec3ce9160841de177603 | /anniversary_stats.R | d0c08444b8c0afd1d2196c8041ea6248ef7242d5 | [] | no_license | georoen/standbildNews | f36aacfd5acdb5ef9e237a02210274c0d877aa9b | ec351e7f09dd3ef7892b3bae27d23f4fcf9184f2 | refs/heads/master | 2022-10-30T23:56:26.530842 | 2022-10-11T20:01:46 | 2022-10-11T20:01:46 | 83,040,162 | 3 | 0 | null | 2018-07-16T20:51:06 | 2017-02-24T12:40:37 | R | UTF-8 | R | false | false | 2,576 | r | anniversary_stats.R | library(dplyr)
library(lubridate)
library(ggplot2)
library(ggridges)
x <- read.csv("Logfile.csv", stringsAsFactors = FALSE)
x$date <- as.Date(x$date)
x <- as_data_frame(x)
date_all <- x %>% distinct(date, sendung) %>%
group_by(sendung) %>% summarize(start_date = min(date), n = n()) %>% na.omit() %>% pull(start_date) ... |
c587a30477f33def9cdbb33d2cebe0add682a98c | 03b184b4221623bc72002f6f5326972e922583bb | /appannie.R | de9505b11ef1b1a5811b213b4b4ff64c7c03ad32 | [] | no_license | carolssnz/appannie | 4175c2aaf8ec1aa0a194c6ae61957cf91b415b9d | 4ba6f91b640dd5ee779c142af5deb26b53c1350e | refs/heads/master | 2021-01-21T03:49:45.073607 | 2014-11-01T14:06:11 | 2014-11-01T14:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,346 | r | appannie.R | #!/usr/bin/R
# running average function
runavg_n = 7
runavg <- function(x, n=runavg_n) { filter(x, rep(1/n, n), sides=2) }
to_file = !interactive()
for (f in Sys.glob('Numbers *.csv')) {
n = sub('.csv', '', sub('Numbers ', '', f))
# to PNG unless interactive
if (to_file) {
pdf(file=paste(paste('Downloads', n,... |
df52a11f88f6da6d8defc03cdea332959fc7121d | 0cc863fed706b96df0c44afe7d466cff23228049 | /R/ZTNegativeBinomial.R | 4e3878b779bc0c26d94b2fecd979951efd85dcef | [
"MIT"
] | permissive | alexpghayes/distributions3 | 80a96665b4dabe2300908d569cb74de3cc75b151 | 67d27df128c86d80fe0c903b5b2c8af1fb9b0643 | refs/heads/main | 2023-01-27T14:49:47.588553 | 2023-01-18T18:12:22 | 2023-01-18T18:12:22 | 185,505,802 | 52 | 11 | NOASSERTION | 2023-01-18T18:12:24 | 2019-05-08T01:38:24 | R | UTF-8 | R | false | false | 14,980 | r | ZTNegativeBinomial.R | #' The zero-truncated negative binomial distribution
#'
#' Density, distribution function, quantile function, and random
#' generation for the zero-truncated negative binomial distribution with
#' parameters \code{mu} and \code{theta} (or \code{size}).
#'
#' The negative binomial distribution left-truncated at zero (o... |
38bc7e7e068e9704103a2d7db54fe169f6696744 | ad67aec0b4bbc865465e37368b7660c0488c86a1 | /man/HTable_row_italic.Rd | 4ec09e1014dd0e62b5b1b18b63339c0069dab09f | [] | no_license | fazetu/htable | b6dadc033fb2081a14236d18166aacb067347c7d | 8924560ba8ec6fa0e364db30ae2897b69ae6ef16 | refs/heads/master | 2021-07-19T09:42:55.501605 | 2020-02-07T21:48:50 | 2020-02-07T21:48:50 | 195,873,455 | 0 | 0 | null | 2019-11-12T15:36:30 | 2019-07-08T19:24:42 | R | UTF-8 | R | false | true | 640 | rd | HTable_row_italic.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/row_styles.R
\name{HTable_row_italic}
\alias{HTable_row_italic}
\title{Add an italic style to a row}
\usage{
obj$row_italic(row = NULL, include_header = FALSE)
}
\arguments{
\item{row}{Numeric vector of which rows to target.}
\item{include_h... |
8375d2c97659fc5056a80c60576c4d866e0ffd97 | 34231281a76d728e59946edd2720126ec86248ba | /plot4.R | be9095af2da5abdd9296d156107db7a7fe987de4 | [] | no_license | ajonikoyi/ExData_Plotting1 | 192914b8ca62dfcfe7a37b705d0de1fbbd5d2787 | 56aedd4cad04a44d291117df63085f4f876d3af6 | refs/heads/master | 2021-01-20T14:15:15.181896 | 2017-05-08T05:41:42 | 2017-05-08T05:41:42 | 90,574,670 | 0 | 0 | null | 2017-05-08T01:36:56 | 2017-05-08T01:36:56 | null | UTF-8 | R | false | false | 1,157 | r | plot4.R | ##Open file and subset as necessary
test1<-read.table("./household_power_consumption.txt",sep=";",na.strings="?",header=TRUE)
test2<-subset(test1,test1$Date=="1/2/2007"|test1$Date=="2/2/2007")
powerconsumption<-test2
##Convert to POSIXct format for plots
powerconsumption$weekdayy<-as.POSIXct(strptime(paste(test2... |
68755053bfa225718171507bc5255d98fe694867 | ba07f5cbc690640115108e4ee07b46ef8340e5fe | /DA3-labs/airbnb_london_prediction.R | f7f4e3f2b7a68ac328d3e5b78827a876002d58f4 | [] | no_license | ozkrleal/london-prediction-r | 08a16f4c6b3416d57d3b2cea24b10c797eafed41 | f81488a92dae37b7e54074d6ebb76b62f95fbfa7 | refs/heads/master | 2020-12-20T13:12:59.718332 | 2020-02-15T00:32:02 | 2020-02-15T00:32:02 | 236,085,457 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 29,575 | r | airbnb_london_prediction.R | ############################################################
#
# DATA ANALYSIS TEXTBOOK
# MODEL SELECTION
# CASE STUDY
# Ch 14
# Airbnb London 2017 march 05 data
# v1.4 2019 09 05
#
############################################################
#
# WHAT THIS CODES DOES:
# Descriptive statistics and regressions
library... |
66356084df379351a86f60cc0ef9faa33d4afeb7 | c22cbf66cb76e152185ee8c595a4e2a422cb4273 | /R/DensityView.R | cdd7c6acfe7aa1f87bfdd2a65301753b1d0b7749 | [] | no_license | WubingZhang/ggView | 1a73e98fba493d8a904c390513fb9df97defde64 | 344419b69a2261c092a07ee0f996a5730a64ee6d | refs/heads/master | 2021-07-24T12:08:02.129949 | 2021-06-30T19:43:09 | 2021-06-30T19:43:09 | 149,407,780 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,942 | r | DensityView.R | #' Density plot for gene beta scores in Control and Treatment
#'
#' Plot the density of gene beta scores in two samples.
#'
#' @docType methods
#' @name DensityView
#' @rdname DensityView
#'
#' @param beta Data frame, including \code{samples} as columns.
#' @param samples Character, specifying sample names in \code{bet... |
f061bc0f75890fee8d3417ce5cca16f25919830a | 0ce2d79cfe9d5528eebdb57fb82ae261bcbeb50b | /cachematrix.R | 8529507daafde205090609ce5f0216c0d8bdcde9 | [] | no_license | SamhooXee/ProgrammingAssignment2 | 3ffd8e36f1d59782d1f774474daf636d92b6bae3 | 646c843f3b3ec311e9dee215385c4e63ee394521 | refs/heads/master | 2020-12-28T20:31:48.948567 | 2014-12-19T15:52:13 | 2014-12-19T15:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,079 | r | cachematrix.R |
## The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## set the value of the matrix
## get the value of the matrix
## set the value of the inverse
## get the value of the inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) ... |
531dcd71b98ccc5ba3aeaa48b8eb249c2e701101 | f6a640c67b28543cc607ba83fb8587767e905251 | /4. CART_tuning.R | ff77c24c873970ce30474673189609ddd1ea6e11 | [] | no_license | RichardYCX/LoanDefaultAnalytics | 122ef480d7712f2c850c6469b3f6486983a40a37 | 5105c810b832b586cb7bf5ca00c65c2f581bb7e0 | refs/heads/main | 2023-02-10T23:18:10.688227 | 2021-01-09T15:34:11 | 2021-01-09T15:34:11 | 316,862,948 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,971 | r | 4. CART_tuning.R | # ========================================================================================================
# Purpose: Rscript for Application of LOG REG and CART (with sampling) on Full Loan Dataset
# Notes: Add clustering?
#================================================================================... |
5416affc34b7a23e15627bd3f0f744c3379f4a02 | d0a2e85476c647d49516600dacfa755110b33e06 | /03_assignment/others/github_api.R | 0744d17bff2eac1a3123913c7307541f02b4e24e | [] | no_license | rtorlow/courses | 4d3c3d9fa58834259d2d1f8f5bb830016a228ca1 | ac6bdbc43e9e58ba30f9616f7c6cc5d88bb9c512 | refs/heads/master | 2020-04-07T07:42:19.837046 | 2015-11-04T17:23:05 | 2015-11-04T17:23:05 | 42,225,051 | 0 | 0 | null | 2015-09-10T05:53:54 | 2015-09-10T05:53:54 | null | UTF-8 | R | false | false | 2,328 | r | github_api.R |
# ============================================================================= #
# Q1 Quiz2
# ============================================================================= #
# NOT RUN In R-STUDIO, only R Original is working!!!
.libPaths("D:/R-project/Rpackages")
library(httr)
# 1. Find OAuth settings for github:
... |
8f5e0c2fd0672fad5ea0e2066ea1f62d712b5e66 | a6be7e12866b55842e989750efd6524e14590912 | /R/swap.R | 48559bcb9d9d118028b5696d32e1cb8ec63b93fc | [] | no_license | SigbertIngress/findWeb | 0ef0439dcc1e2c8461f81e2bd1677e702d8114a2 | cfce77c8ecea73045277799aeb21ade678c2986b | refs/heads/master | 2020-03-26T05:50:56.359556 | 2018-09-11T07:56:43 | 2018-09-11T07:56:43 | 144,577,893 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 493 | r | swap.R | #' swap
#'
#' Swaps the given structure between portals. Mainly for use in \link{optimizeWeb}.
#
#' @param g a web
#' @param i numeric: index of first portal to be swapped
#' @param j numeric: index of second portal to be swapped
#'
#' @return the modified web
#' @export
#'
#' @examples
#' par(mfrow=c(1,2))
#' g <- fis... |
23bf8d4d8162998516f4e78c7e29b7fe881cd181 | 355838dd080a4fbcf4cccb45eeec673bd2dc2c94 | /.Rproj.user/5700CA6/sources/s-E8B6519/B35E8EE1-contents | 6696275d1ffca7b990ec4a578b0ffd77d053d1a1 | [] | no_license | ZordoC/March_2019-Classification_Preference_Brand | 2a205d05a1f33b610309cb80e75fa0aac577630f | 31387cf1f1d182b2ba84fdb58d150420e87c3acd | refs/heads/master | 2020-05-02T19:44:55.614279 | 2019-05-13T09:43:09 | 2019-05-13T09:43:09 | 178,167,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,024 | B35E8EE1-contents | ggCompleteSurvey <- ggplot(CompleteResponsesOG, aes(x=salary, y=age)) +
geom_point(aes(col=brand), size=3) +
labs(title="Brand by Salary and Age", y="Age", x="Salary")
plot(ggCompleteSurvey)
IncompleteResponsesWPredictions <- cbind(IncompleteSurvery,predictionRandomForestALL)
ggIncompleteSurvey <- ggplot(In... | |
90f338fe70b0ae69187603627037622b79a8fefc | 4c8fefa343c910f1f37630abf3ccdd7633b27603 | /man/unmatvec.Rd | df8cd1e19fefe94e9451ae8386bf7f2cfd62a0fa | [] | no_license | cran/rTensor | 55d1b0d4b22e4716e39cc296bf842ab2471554a6 | 94a947179df5c67485b70e154c7f8edf317be65a | refs/heads/master | 2021-07-07T18:47:18.540146 | 2021-05-15T05:20:10 | 2021-05-15T05:20:10 | 17,698,970 | 2 | 3 | null | null | null | null | UTF-8 | R | false | true | 895 | rd | unmatvec.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rTensor_Misc.R
\name{unmatvec}
\alias{unmatvec}
\title{Unmatvec Folding of Matrix}
\usage{
unmatvec(mat, modes = NULL)
}
\arguments{
\item{mat}{matrix to be folded into a Tensor}
\item{modes}{the modes of the output Tensor}
}
\value{
Tensor ... |
9a317f798aa2e7731a3b79809a7966f51a002373 | 6e5efc0b6b6b37c735c1c773531c41b51675eb10 | /man/Setup.AdductData.Rd | a7504c4c1659895a20cedee117d20607f4a9fc04 | [
"GPL-2.0-or-later"
] | permissive | xia-lab/MetaboAnalystR | 09aa09c9e57d7da7d73679f5a515eb68c4158e89 | 9edbbd1e2edda3e0796b65adf440ad827abb7beb | refs/heads/master | 2023-08-10T06:08:56.194564 | 2023-08-01T15:13:15 | 2023-08-01T15:13:15 | 109,994,826 | 268 | 165 | MIT | 2023-03-02T16:33:42 | 2017-11-08T15:38:12 | R | UTF-8 | R | false | true | 504 | rd | Setup.AdductData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/peaks_to_function.R
\name{Setup.AdductData}
\alias{Setup.AdductData}
\title{Save adduct names for mapping}
\usage{
Setup.AdductData(mSetObj = NA, qvec)
}
\arguments{
\item{mSetObj}{Input the name of the created mSetObj (see InitDataObjects)}
... |
82cf4b84a087035804bcbc8ce2544abb5d89b7eb | 3f5f4dd503ab172270f69d8b189b98a1a19861fe | /helpers.R | 7dcb1bef68b68a17898de55ec0a0680cbe528067 | [] | no_license | SamHannah/wf-sequence-DualProcess | b739f8386e6d071f24a8306f26c6d8aaad380837 | b3704be1f978e19d9c77f6c4daa7c6fa04f10b2c | refs/heads/master | 2021-01-10T15:33:07.795128 | 2015-06-25T18:58:40 | 2015-06-25T18:58:40 | 36,904,798 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,432 | r | helpers.R | # runs a simulation of a word frequency sequence effect experiment (no feedback) at some level of L, F, SF and dp,
# and for some number of simulated subjects
# Uses a DUAL-PROCESS version of MAL, with recall = test of normed echo against memory using high, fixed criterion and recognition =
# test of unnormed resubmitt... |
60c73439a5ed4ceea408534c6fc1dbc9a8a29cfa | ed6b76d240b43781fef5d74445f0eb73fadc1bb5 | /R/debinfer_utils.R | bebbc90e7d54cb3db6af8ac8649922f5d94969d0 | [] | no_license | pboesu/debinfer | 36fe4b8b803c6620e7d7f597a98dfe5393a14d88 | 6642195ed327f5e1fd262ddc04f51e20eb0298ef | refs/heads/master | 2022-11-17T19:38:29.143214 | 2022-11-16T17:16:49 | 2022-11-16T17:16:49 | 56,190,045 | 14 | 5 | null | 2019-12-10T16:43:45 | 2016-04-13T22:23:44 | R | UTF-8 | R | false | false | 2,604 | r | debinfer_utils.R | #more utility functions for the inference outputs
#' Summary of the inference results
#'
#' A wrapper for coda::summary.mcmc
#'
#' @param object a deBInfer_result object
#' @param ... further arguments to summary.mcmc
#' @seealso \code{\link[coda]{summary.mcmc}}
#' @import coda
#' @export
summary.debinfer_result <- fu... |
a1571481bc94684f4962b4b3863c41fd4eb9d48c | 48b40fd678b06843cc2a0c12c7f6ae7b5028bf57 | /man/fix_hour.Rd | 08f79926b974db6936567314da4bda573013d3e7 | [] | no_license | BayAreaMetro/gtfsr | f57c68f163a1df0dd47f7743a27aee43130a2a84 | e14fc6c4102eba019fe6c255f65ddca1c5cee372 | refs/heads/master | 2020-03-09T21:32:00.962025 | 2019-02-16T21:27:12 | 2019-02-16T21:27:12 | 129,011,655 | 0 | 0 | null | 2018-04-17T17:40:35 | 2018-04-11T00:39:45 | R | UTF-8 | R | false | true | 364 | rd | fix_hour.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mtc_utilities.R
\name{fix_hour}
\alias{fix_hour}
\title{Format GTFS Time strings as standard time string}
\usage{
fix_hour(x)
}
\arguments{
\item{a}{GTFS Time string}
}
\value{
Time string with no hours greater than 24
}
\description{
Format ... |
d0453b5057b51336f3c185641f82dc560b5497e3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rgdal/examples/GridsDatums.Rd.R | d8ec85ac0536746ab0694c704d53b26352cdba7b | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 318 | r | GridsDatums.Rd.R | library(rgdal)
### Name: GridsDatums
### Title: Grids and Datums PE&RS listing
### Aliases: GridsDatums
### Keywords: datasets
### ** Examples
data(GridsDatums)
GridsDatums[grep("Norway", GridsDatums$country),]
GridsDatums[grep("Google", GridsDatums$country),]
GridsDatums[grep("^Mars$", GridsDatums$country),]
|
65b5f6f44f320e29d7a37b4c80cd7bfc472b9819 | 5e206bb3b8bb3e2e7c24f051b675d6bfd36e6146 | /ITMD_527_Data_Analytics/Assignment1/Q2.R | 50a6753d540e74b59e8413caf088209006c954b4 | [] | no_license | Schavan7/CollegeProjects | 9274c5ecff122365a28ed50e7936262c31198fa2 | 6e9a2f3deaae0e8e4460ba526cf3a86b7a38cdac | refs/heads/master | 2021-04-28T16:36:53.668740 | 2018-02-25T17:54:34 | 2018-02-25T17:54:34 | 122,018,758 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,325 | r | Q2.R | gasmf = read.csv("gasmf.csv", header = TRUE)
str(gasmf)
summary(gasmf)
gasmf$X=NULL
# as the data was just confusing having X1(the ID column) and x1 the actual IV. I deleted the Id column to avoid confusion.
#1.
model =lm(y~x1+x6, data = gasmf)
summary(model)
abline(model)
plot(model)
par(mfrow=c(2,2))
#2
fullmode... |
c9b9e7442d05610071c5e5fe0cc888ccef06039e | d467e26218f698bf656095a0fdcaa52a3a30ba90 | /man/cnk_ngg.Rd | e0b08bc241819fc94c79cd248834f554f94ba68c | [] | no_license | AABI-Gibbs-type-priors/AABI-RGibbs-type-priors | 8c302fed368a5598d48dccde274768d54e4102a0 | 2dd3fee993fa330043a199c0a8c152023f6379bd | refs/heads/main | 2023-01-11T23:05:09.266336 | 2020-11-13T20:35:40 | 2020-11-13T20:35:40 | 312,677,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 529 | rd | cnk_ngg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RGibbsTypePriors.R
\name{cnk_ngg}
\alias{cnk_ngg}
\title{Computes the generalized binomial coefficients}
\usage{
cnk_ngg(n, k, sigma, prec = 53)
}
\arguments{
\item{n}{The value for n}
\item{k}{The value for k}
\item{sigma}{The value for si... |
eab079360493b29809bd0ec9390d8948e8b42196 | 4f0b6567a19d2babeafa616c6d8ddf5572004c37 | /data-science-scripts/zach/diamonds subsets.R | 760fad1295606e74ea05684b96276f37dcb9f275 | [] | no_license | mcohenmcohen/DataRobot | a9b8fff8b0532e9066a207c1914b12702abbf48c | 156e548d94d033b032d5027f2e436a13ddb85cf8 | refs/heads/master | 2022-09-01T18:14:29.587815 | 2022-08-23T20:54:59 | 2022-08-23T20:54:59 | 134,179,047 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 457 | r | diamonds subsets.R | library(ggplot2)
for(i in 2:4){
n <- 10^i
for(m in c(n, 5*n)){
file <- paste0('~/datasets/diamonds', m, '.csv.gz')
print(file)
write.csv(head(diamonds, m), gzfile(file))
}
}
for(n in 2:4){
m <- n * 1000
file <- paste0('~/datasets/diamonds', m, '.csv.gz')
print(file)
write.csv(head(diamonds, m... |
0ced40abe22e98a4d80cb2d63eb00e52f4fe8d82 | a01fe8e31792d79dab00764ef6ae505e699524b4 | /R/ThetaMultiplicative.R | d965ba3259e65625de205dec6670570fc82ba5eb | [] | no_license | dpwynne/mmnst | 7c5972d75fad0d983c65ac044cf2b566531720e5 | cadda88522a025115eb9a163510629ec2f55c672 | refs/heads/master | 2023-08-06T23:43:19.372858 | 2023-07-26T15:47:40 | 2023-07-26T15:47:40 | 202,798,431 | 4 | 2 | null | 2019-12-18T19:46:11 | 2019-08-16T20:59:31 | R | UTF-8 | R | false | false | 1,491 | r | ThetaMultiplicative.R | #' Multiplicative intensity function \eqn{\theta(t)}
#'
#' Calculates the multiplicative intensity function \eqn{\theta(t)} introduced in Ramezan *et al.* (2014).
#'
#' @param t a numeric vector of time points at which to evaluate the function.
#' @param f a numeric vector containing frequency values.
#' @param w0 a nu... |
e76b38c12902681c8e9289f5185dd9c740c68ab6 | 837a3177789464eabb12b7abfb12e8621feb71fb | /(2)Diagnostic_plots/(01d)plotChl_a_compare.R | acfe72772579bdbae541bbbe5f494a1c91df78df | [] | no_license | mcgregorv/AtlantisRscripts | 21140225d43ba583a1bebc70557c8cb5f61b9b5c | 1009f0d1961fc95bc4a98d25eea7dc1d7cccee77 | refs/heads/master | 2020-07-11T14:20:34.142538 | 2019-08-26T22:22:13 | 2019-08-26T22:22:13 | 204,566,512 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,916 | r | (01d)plotChl_a_compare.R | library(ggmap)
library(rgdal)
library(gtable)
library(maps)
library(mapdata)
library(rgeos)
source(paste(DIR$'General functions',"\\get_first_number.R",sep=""))
source(paste(DIR$'General functions',"formatShape.R",sep=""))
this_run<-"base"
this_out<-"TEST150yrfish"
burnin<-35 #number of years to skip in p... |
98d6a78dff61c83cfa948c589379211d482c091f | 410f2d89246c991adbb0cc5893f6d3eddb5cbb02 | /func_outlier_removal.R | c99df2c21e6eea400b23a70f23e79e265994ae65 | [] | no_license | muluayele999/HAPPI_GWAS | e1783ed97c829cc59f832b3be4c208064534e7e9 | 97761f6b521aa984b81e2dd9184115120e1cb5ec | refs/heads/master | 2022-06-16T12:26:49.947704 | 2020-05-15T18:38:35 | 2020-05-15T18:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,631 | r | func_outlier_removal.R |
## Outlier removal function
outlier_removal <- function(dat, by_column = c(1, 2), start_column = 3){
# Convert first column to character
dat[,1] <- as.character(dat[,1])
# Convert the rest columns to numeric
for (i in 2:ncol(dat)) {
dat[,i] <- as.numeric(dat[,i])
}
# Create lmer fo... |
c70ffda35340afdabf5d1b281df143312e1c9ff1 | 940e4d3aed30a8e0557b65c85d649ee97e31a9a4 | /get_bracket_db.R | efa96268a24573af0f5843ad053783513d1328e3 | [] | no_license | nate-d-olson/strviz | c60092fb74e3d33f2bdfa39712623d15c9a0cb90 | f7d51700a0da5d8feba3ec299826989af7685b41 | refs/heads/master | 2021-01-10T07:02:47.595460 | 2015-08-03T18:56:40 | 2015-08-03T18:56:40 | 36,394,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 795 | r | get_bracket_db.R | library(dplyr)
setwd("/Users/sew/Desktop/strviz/Bracket_Notation")
file_names <- dir()
Bracket_Database <- do.call(rbind,lapply(file_names,read.csv))
Bracket_Database <- select(Bracket_Database, 3:6)
Bracket_Database["Forward"] <- "Forward"
Bracket_Database["Reverse"] <- "Reverse"
Bracket_Database[Bracket_Database==""]... |
5a3f8a981cd7d5fc299fbb589a11f3ddcb400e8f | 49847557d80237231eb76b46a34e3ec9357d45b8 | /cachematrix.R | b4d8df8ecb7643227050f021a4cf6cb2255bf6c0 | [] | no_license | vladislavvalt/ProgrammingAssignment2 | 982c74e34b23eed54b38effa2ea76ae254853d6b | d7f2fe8712a592aa86fbe52ddac87ce4e271ec50 | refs/heads/master | 2021-01-17T10:02:35.927193 | 2014-10-25T09:32:57 | 2014-10-25T09:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,028 | r | cachematrix.R | ## Functions in this file allows to compute inverse form of the matrix
## with caching. Preserves unnecessary computation.
## Creates a wrapper around the matrix object for storing
## its inverse form cached
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y... |
3f70b3ab07a84a98877a7883f0c133a78b70ab6d | 27f9da112786a84da2296cd94f2a3cc0e455f8cc | /colocalization.R | 30a40e569252162858377442433c672ecdbddd7e | [] | no_license | Dan609/stat | a980e4aac638d626132dcb72bba5ee8301796830 | 25851eb526bfcddaf058db08747132e94f334497 | refs/heads/master | 2021-06-17T21:42:45.725305 | 2021-03-01T07:40:48 | 2021-03-01T07:40:48 | 171,457,622 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,952 | r | colocalization.R | # Statistical analysis of colocalozation coefficients, Dan Bobkov, 2019
# Firstly, calculate coef in ImajeJ :
# Kendall's Tau-b rank correlation value = bTau
# Spearman's rank correlation value = Rs
# Manders' coefficients = tM1 and tM2
# Pearson's R value (above threshold) = Rval
# Import libraries
library(... |
a184e98debe37a8f0a000bca507e7cca4cd64161 | 21458fe5033fc2f62ffaa0b8bfb04b7a1ad1bf86 | /man/sr2lim.Rd | 464758190a803b3caaee05091a8e0144dfc95e6b | [] | no_license | einarhjorleifsson/fishvise | c1c3c7fd6d38765ef879e676627acf62a4d6ea4d | b1e56db880c037cf9dd75adea47f2d811d5b85bb | refs/heads/master | 2021-01-10T19:21:22.523937 | 2015-01-08T09:38:42 | 2015-01-08T09:38:42 | 14,083,740 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 256 | rd | sr2lim.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{sr2lim}
\alias{sr2lim}
\title{Set the limits for small statistical squares}
\usage{
sr2lim(sr)
}
\arguments{
\item{sr}{The small statistical square}
}
\description{
May not be of any bloody use
}
|
df403b2c4628d48f493aa384c1923c8d687777b9 | 0723925deca1f9332721e0704fcacf0e9c1a1d7a | /Assignment2Q3d.R | 35490d8bff15beeb024913ea0ac2a20c1bbdbc34 | [] | no_license | kuzmia/mathbio | 4b988645f143221b540c7b017836793ef2367c08 | 8049f32d487f798160ab6ea7e06397c9f7ddd61d | refs/heads/master | 2021-05-05T08:16:13.486637 | 2018-04-05T18:23:16 | 2018-04-05T18:23:16 | 118,956,754 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,527 | r | Assignment2Q3d.R | library(deSolve)
## Vector Field for SIR model
SIR.vector.field <- function(t, vars=c(S,I,R), parms=c(R_0,gamma)) {
with(as.list(c(parms, vars)), {
dS <- -gamma*R_0*S*I # dS/dt
dI <- gamma*R_0*S*I - gamma*I # dI/dt
dR <- gamma*I #dR/dt
vec.fld <- c(dS=dS, dI=dI, dR=dR)
return(list(vec.fld)) # ode... |
0a98f67296eca82e681386a0defdbe16e2bc5d6b | ec4719729a7fc7c219dcedbf26c3518cbf3bfb5e | /man/asap.data.list.Rd | 31739ffab9b3305bc21aadf9883931d822c7a386 | [] | no_license | cran/BaM | ca832e5dd3fddc64aac6e5f5a9c2c6a60961c7c1 | 272242a3e43a5770ffeea306b92e5365d7ebeba7 | refs/heads/master | 2022-11-09T11:35:50.643781 | 2022-10-14T10:25:17 | 2022-10-14T10:25:17 | 17,677,986 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,870 | rd | asap.data.list.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asap.data.list-data.R
\docType{data}
\name{asap.data.list}
\alias{asap.data.list}
\title{asap.data.list}
\usage{
data(asap.data.list)
}
\description{
The American State Administrator's Project (ASAP) survey asks administrators about the influ... |
3af6b639b91ff08ec39b5eb72ef5ed26a5658e24 | 29585dff702209dd446c0ab52ceea046c58e384e | /dashboard/R/dashboard_stop.R | 311c52ee38b84ee67fe67134696eea14877895a3 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 797 | r | dashboard_stop.R | #' dashboard_stop stops the local Rook server
#'
#' \code{dashboard_stop} stops the Rook server running. Not needed in linux, but required in unix environment
#'
#' @docType methods
#' @param dashboard.env name of the global environment variable used across the dashboard package
#' @export
#' @examples
#' dashboard_op... |
bfa67e1e9db1e3a69f98f27fe5a60cffb42710d0 | 34cc0de8269856373e4ccd1bf2f97d67de979169 | /R/extract_lm_quantities.R | e1fc8d9c5be2d992d93d9898be2b23f2ef8f13bf | [] | no_license | mmp3/deltacomp | 0a120e9bdd40937f304cdc4709d40e529a128c13 | 366e689c0dcde7782858121384d43bc412d2af0d | refs/heads/master | 2023-06-04T11:29:05.434094 | 2021-05-28T07:36:22 | 2021-05-28T07:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,177 | r | extract_lm_quantities.R | #' Extract critical quantities from a lm object (for confidence interval calculations)
#'
#' @param lm_X a lm object
#' @param alpha level of significance. Defaults to 0.05.
#'
#' @return
#' A list containing the \code{lm}'s model matrix (\code{dmX}),
#' the inverse of \code{t(dmX) %*% dmX} (\code{XtX_inv}),
#' the s... |
ec17fd39664fddae9d20ef91b3e202da0ef84412 | 16cface76db9d5c130ae2adfdd0c2e6d89c41603 | /R/fars_functions.R | 0e4f76c0766870ee75c24d04904fed54f9b8a38f | [] | no_license | patrik-h-m/practicepackage | b1f0bd07d03a5c158a22b2cc325b812999f9155d | 5298a0dfb80ba7f4b0024a54a346e1b9704a6940 | refs/heads/main | 2023-07-17T10:45:02.991375 | 2021-08-19T08:57:23 | 2021-08-19T08:57:23 | 397,834,022 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,997 | r | fars_functions.R | #' Read data from csv file
#'
#' This function reads data reads data from a csv file into a tibble.
#' Internally the function uses \code{readr::read_csv} to read the file.
#'
#' If \code{filename} does not exist an error is thrown.
#'
#' @param filename the name of the file from which to read the data
#'
#' @return a ... |
083b3f0e276bf6d56a8936022afa9e3bc8d28dbb | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rebus.numbers/tests/test-number_range.R | 19a68c1ea90c4f2f8ba1d69c359c6b92f1191870 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,042 | r | test-number_range.R | context("number_range")
test_that(
"number_range returns a correct regex for 0 to 9999",
{
expected <- as.regex("(?:[0-9]{4})")
actual <- number_range(0, 9999)
expect_equal(actual, expected)
}
)
test_that(
"number_range returns a correct regex for 123 to 876",
{
expected <- as.... |
e9d74856a125f4c60118da40baba340b1a19b133 | 0ac8da4ce785221deb33e97d6b5a27ac3eb87fd7 | /R/poached50_A20.R | ed088908f3f8a3caee3dee7987f229781f43e78f | [] | no_license | andbeck/Parrots_2021 | 3d113a04bc451677e50031d795d5d866a358a88f | 0c82c2af75ba183dc867004d1e2b87964d2c13a4 | refs/heads/main | 2023-05-12T07:44:29.344671 | 2021-06-08T20:23:36 | 2021-06-08T20:23:36 | 338,265,549 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,645 | r | poached50_A20.R | # YSA Stochastic Model of Population Growth under Poaching Pressure of 10% reduced fledgling survival
# With changes in immature stage duration of 1:5 years.
# With adult stage duration of 20:16 years.
# With imputed survival rates.
# Density independent
#### Libraries ----
library(popbio)
library(tidyverse)
library(p... |
1b14231b3f0bbc3667b940799abd94785c6383bf | ab39ad07bbbb65c1e61315076a43bce6cfa688f3 | /R_Codes/3-PLS/spls_scores/R/plot.spls.R | c9edc208485664155f9d05395134cc04b676bd2c | [] | no_license | ManonMartin/thesisMaterial | 771e7fdcd0ff3ceba7607f2abaa7d05e20366d61 | 950b79588f224c649ef12a3a3c0fa7c3280e9806 | refs/heads/master | 2021-11-06T23:15:01.741098 | 2021-11-04T13:34:46 | 2021-11-04T13:34:46 | 208,266,675 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 965 | r | plot.spls.R |
# coefficient path plot
"plot.spls" <-
function( x, yvar=c(1:ncol(x$y)), ... )
{
# initialization
betamat <- x$betamat
K <- x$K
eta <- x$eta
p <- ncol(x$x)
# coefficient plot
Ks <- c(1:K)
for ( i in 1:length(yvar) )
{
if ( i>1 ) { dev.new() }
b... |
3835e92ed2b4588ae76c8ea67a872943628f232c | e532902731033a9b2e4339cd6b7073389a21b78d | /man/sdRain.Rd | 2649a1929fcebc8794bcefce4a4ca8d7f3372870 | [] | no_license | CRUKMI-ComputationalBiology/twoddpcr | 0cd307a42a26c1db00a6ac969d5ad9803d14bef4 | 58667eb96e30274285bf93a2db091ad6f2ddb7bd | refs/heads/master | 2021-07-22T01:49:54.307616 | 2021-02-09T23:48:44 | 2021-02-09T23:48:44 | 70,164,790 | 9 | 1 | null | null | null | null | UTF-8 | R | false | true | 3,964 | rd | sdRain.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sdRain.R
\name{sdRain}
\alias{sdRain}
\alias{sdRain,data.frame-method}
\alias{sdRain,ddpcrWell-method}
\alias{sdRain,ddpcrPlate-method}
\title{Add rain to a classification by using a chosen multiple of standard
deviation.}
\usage{
sdRain(drop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.