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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a7868cb705c22469503272418e7f91f6fde6d79 | 244393a89b3f8a836ee5afdd2ec9c91f5e52a6cd | /R_Inference_and_Modeling/margin_of_error.R | a63643611ac17b211df3b588b657847288415005 | [] | no_license | mjchenko/R_for_Data_Science | c33e470bb7b054ba5255df99aa06f60c2940976d | a2d228b738400a80fa2ab6fbf9df7af40a2ad83e | refs/heads/main | 2023-02-01T13:39:57.324999 | 2020-12-18T20:27:20 | 2020-12-18T20:27:20 | 322,691,962 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 352 | r | margin_of_error.R | #margin of error
#2*se
#why multiply by 2
# Pr(abs(Xbar - p) <= 2SE(Xbar)) using same equations to simplify we end up
#Pr(Z <= 2) - Pr(Z <= -2)
pnorm(2) - pnorm(-2)
#95% chance that Xbar will be within 2 standard error to p
#spread of 2 parties = p - (1-p) = 2p - 1
# to estimate use xbar = 2Xbar - 1
# standard error... |
62f15834398fd965e4a88ebf6ccc5af440ca9dab | 1eee16736f5560821b78979095454dea33b40e98 | /thirdParty/HiddenMarkov.mod/demo/beta.R | 312f994bf4321c371ceb6b9fef9e8dea4619e780 | [] | no_license | karl616/gNOMePeaks | 83b0801727522cbacefa70129c41f0b8be59b1ee | 80f1f3107a0dbf95fa2e98bdd825ceabdaff3863 | refs/heads/master | 2021-01-21T13:52:44.797719 | 2019-03-08T14:27:36 | 2019-03-08T14:27:36 | 49,002,976 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,423 | r | beta.R | if (interactive()) par.default <- par(ask=TRUE)
#----- Test Beta Distribution -----
# "shape1" Markov dependent
# "shape2" time dependent
Pi <- matrix(c(0.8, 0.2,
0.3, 0.7),
byrow=TRUE, nrow=2)
x <- seq(0.01, 0.99, 0.01)
plot(x, dbeta(x, shape1=0.5, shape2=2), type="l",
col="... |
e10a2c353119a19f89d09b21ac4c812340897ea1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/stringi/examples/stri_stats_general.Rd.R | 994fc0bfb861f775688325d43847b8c2b8e02fd3 | [] | 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 | 384 | r | stri_stats_general.Rd.R | library(stringi)
### Name: stri_stats_general
### Title: General Statistics for a Character Vector
### Aliases: stri_stats_general
### ** Examples
s <- c("Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"nibh augue, suscipit a, scelerisque sed, lacinia in, mi.",
"Cras vel lorem. Etiam pell... |
55171b2543bbd288e0d1957d5b0c31c114a07401 | 9e8936a8cc7beae524251c8660fa755609de9ce5 | /man/details_poisson_reg_h2o.Rd | bc8147560c77fd3db056360831ca0e6cd02ce52e | [
"MIT"
] | permissive | tidymodels/parsnip | bfca10e2b58485e5b21db64517dadd4d3c924648 | 907d2164a093f10cbbc1921e4b73264ca4053f6b | refs/heads/main | 2023-09-05T18:33:59.301116 | 2023-08-17T23:45:42 | 2023-08-17T23:45:42 | 113,789,613 | 451 | 93 | NOASSERTION | 2023-08-17T23:43:21 | 2017-12-10T22:48:42 | R | UTF-8 | R | false | true | 3,998 | rd | details_poisson_reg_h2o.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/poisson_reg_h2o.R
\name{details_poisson_reg_h2o}
\alias{details_poisson_reg_h2o}
\title{Poisson regression via h2o}
\description{
\code{h2o::h2o.glm()} uses penalized maximum likelihood to fit a model for
count data.
}
\details{
For this engi... |
25b49830ee0bd3489b882e1266e3362b8c2d20d8 | acc80e88c26433639557f85c8b5f08cd3cdbe40a | /R/RunYAPSAAttributionOnly.R | 3975f78e44385f2bb9de08f4025d8358371554c2 | [] | no_license | WuyangFF95/SynSigRun | 32cb430ee5ea30584908f2254be459afb8c9ca81 | 62655260a460ea120de1baa623d0987d45a5a6bc | refs/heads/master | 2022-11-11T10:06:45.160948 | 2021-12-30T06:40:08 | 2021-12-30T06:40:08 | 222,591,376 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,359 | r | RunYAPSAAttributionOnly.R | #' Install YAPSA package from Bioconductor.
#'
#' @keywords internal
InstallYAPSA <- function(){
message("Installing YAPSA from Bioconductor...\n")
if (!requireNamespace("BiocManager", quietly = TRUE))
utils::install.packages("BiocManager")
BiocManager::install("YAPSA")
}
#' Run YAPSA attribution on a spect... |
07276ca1613cca53f905488bc28a919bfbab4aaa | 5c2784e614d0acec87c3b10a609291134d2fd927 | /supplement_7.RCircos.Plot.R | b226e6d43871a2e7eee3e563ebe98366930f0435 | [] | no_license | qindan2008/BiocIntegrativeCancerVis | d57d050c438e6d34d7ebf6810bce1bc523e90087 | 02bf4b0d0ecbde359fb2e0e643358b98fd3de81f | refs/heads/master | 2020-06-02T23:55:38.206847 | 2016-08-28T17:33:39 | 2016-08-28T17:33:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,577 | r | supplement_7.RCircos.Plot.R | #
# RCircos plot to show:
#
# 1. Difference of gene expression (mean) between tumor and normal
# Difference of miRNA expression (mean) between tumor and normal
# Difference of methylation (mean) between tumor and normal
# Link between miRNAs and their most negative linked genes
#
# 2. ... |
6cebfe84138258d1a8140b331d6fdd642c777e67 | 1d34ee4d22faf1b8e099995ca5d4d2e8fdbd8a94 | /Fourth_week/rankhospital.r | 4c7b011e059f888557e1eab81f05fd40d37d90c7 | [] | no_license | schaeferrodrigo/R_course_Coursera | e8092b3b16eca7156f7d1c4ea70da24df3d00e77 | 7a48a7fd83576871a511273207329a3fceeaf55b | refs/heads/master | 2020-12-25T11:15:18.295221 | 2016-10-31T09:51:11 | 2016-10-31T09:51:11 | 61,059,081 | 0 | 0 | null | 2016-10-31T09:51:12 | 2016-06-13T18:14:13 | R | UTF-8 | R | false | false | 961 | r | rankhospital.r | rankhospital <- function(state, outcome, num){
if (is.character(num) == TRUE){
if (num == 'best'){source('best.R')
best(stante,outcome )}
else{source('worst.R')
worst(state,outcome)}
}
else{
data <- read.csv("outcome-of-care-measures.csv" , na.strings="Not Available" , stringsAsFactors=... |
62307844fb8e7e9e774fbfc12d42c00809d80b15 | ba1edf30bca6e023562e4aed21c0ca009d22f431 | /visualization/R/ciEnvelope.R | b769541c003ad649e5938ffea7961202cbe63438 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rgknox/pecan | 79f080e77637dfb974ebb29313b5c63d9a53228e | 5b608849dccb4f9c3a3fb8804e8f95d7bf1e4d4e | refs/heads/master | 2020-12-27T20:38:35.429777 | 2014-05-06T13:42:52 | 2014-05-06T13:42:52 | 19,548,870 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 227 | r | ciEnvelope.R | #plots a confidence interval around an x-y plot (e.g. a timeseries)
ciEnvelope <- function(x,ylo,yhi,...){
polygon(cbind(c(x, rev(x), x[1]), c(ylo, rev(yhi),
ylo[1])), border = NA,...)
} |
a8b16bdadc61ac6547183536e0fcc1e2e882cc84 | d108d0dc2e007110ef1b1f11ebaee05cf0a41e4d | /man/tslars.Rd | df42d23d9e92a06cfd86b911409ed74ed4c2c958 | [] | no_license | cran/tslars | 32dbe6a2c4831ea1d0e33430d0109976b232d5a1 | ce1f40b09b6d6886dec2aab71dc6e4803c2207c5 | refs/heads/master | 2016-09-16T11:33:07.687781 | 2009-01-03T00:00:00 | 2009-01-03T00:00:00 | 17,700,637 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 2,675 | rd | tslars.Rd | \name{tslars}
\alias{tslars}
\alias{tslars.p}
\alias{coef.tslars}
\alias{predict.tslars}
\alias{print.summary.tslars}
\alias{print.tslars}
\alias{summary.tslars}
\title{Function to obtain the selected model accoring the the time series LARS algorithm}
\description{
The \code{tslars} function applies a dynamic... |
0ae9b332d1b02e5f0b6b4fe82531137711906207 | e1e9a355b4f2dbc3616b9ac34266da4a6ab7f6cf | /phi_analysis.R | 30bfd0d3b0e9a6fb30e9b069295773aac0e417a3 | [] | no_license | faustovrz/kingraph | ed30ff94d0d01af44bc1501020ffb78564dee43d | 17428dde4ccbfb0030806004fe3cf6eeb8ec9cbd | refs/heads/master | 2021-07-11T21:05:41.444079 | 2017-10-09T19:58:41 | 2017-10-09T19:58:41 | 105,703,458 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,991 | r | phi_analysis.R | #!/usr/local/bin/Rscript --verbose
library(optparse)
source('kingraph.R')
cat(as.character(Sys.time()),"\n\n", file = stderr())
phi.help <- "comma separated string defining phi values: [default= %default]"
option_list <- list(
make_option("--phi", type = "character", default = "0.177,0.0442",
help= ... |
f5e0e9b2346ac92e98611d56aa5895f49b7eeef1 | 3477491fcd1527416c6f5cc25b8b629b89625d12 | /Assignment/assignment2/assignment_2.R | 7a465eacecd4fa9b54379cf5af7db58c936cd51f | [] | no_license | jason2133/data_mining | 68645af29de2b0b0310f9a99db43fc2bb503badb | 4663d8c951505e0055ee941bc5290d1d4c6690b4 | refs/heads/master | 2023-03-16T06:00:18.270339 | 2022-12-06T05:02:48 | 2022-12-06T05:02:48 | 464,190,348 | 1 | 0 | null | null | null | null | UHC | R | false | false | 2,483 | r | assignment_2.R | rm(list=ls())
data <- read.csv('C:/Users/jason/바탕 화면/coding1/data_mining/Assignment/assignment2/kyungsang_univ_2.csv', header=T)
head(data)
tail(data)
## Here we do!!!
train_data <- data[17521:26280, 3:23]
head(train_data)
tail(train_data)
test_data <- data[26281:35064, 3:23]
head(test_data)
tail(test_data)
summary(... |
9004f8c12d8a079273d23fc030a6fca404ff33d3 | 9cd15df5fa2bb47e21bef95ed4635ee129a0532a | /tests/testthat/testdata/test_file.R | ee5e78cb501784250fd0c04025a3715f24fe0d9a | [
"MIT"
] | permissive | ryanbthomas/hazmat | f6df3ac55bb2b4f3eb1da970ba66e43abc06a7da | 837d6ab72191ff476db5ec18e7e482657eeb7b1c | refs/heads/master | 2022-03-11T21:05:36.366242 | 2019-11-21T03:53:38 | 2019-11-21T03:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 118 | r | test_file.R | # This is a test R file
f1 <- function(x) {
x <- 2*x
rm(ls = ls())
}
f2 <- function(y) {
system('pwd')
}
|
640517d8cc538c969a44ca27f2e86d7342ab2a47 | 18389a860719d7541b209b7963b4ca512043978f | /afrodyn_paper_analyses/mantel/mantel.R | c3c01d30fc61bc06dbb15902f4ca6ea2db9f6dd4 | [] | no_license | Yunxia-li/afrodyn | e38f21af20de614d5ef3e84d07bde4ddfb4ddfc2 | 5d9da980c760e82fda1222b301329bfcd01915b5 | refs/heads/master | 2023-04-25T12:31:36.689079 | 2021-05-11T15:39:12 | 2021-05-11T15:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,309 | r | mantel.R | rm(list=ls())
setwd("~/Dropbox/afrodyn_data/mantel/")
library(distancetocoast)
library(raster)
library(maps)
library(GSIF)
library(assigner)
library(radiator)
library("adegenet")
library(codep)
library(adespatial)
library(car)
library(vcfR)
library(elevatr)
library(raster)
library(maps)
library(GSIF)
library("rnaturale... |
21a1845b0b1f5b1a05c2430219ca55d7a69757ed | 5fede19ec35761f9a42f1dedee2bc208121c6813 | /LoadMetricFiles.r | 52ff6b315a6f456583b6cbc26355d7ab58b6053a | [] | no_license | spolavar/Statistical-Mining-of-NeuroMorpho.Org | 4ab2607b86a8da61c2695eb320180160d7b1e615 | c10fddc4e17db5baac6cd0067f33103a1fb49e01 | refs/heads/master | 2021-01-10T03:42:30.751368 | 2016-03-05T16:56:50 | 2016-03-05T16:56:50 | 53,211,880 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,219 | r | LoadMetricFiles.r | #open metadata file of v5.4
# Load meta data
# Set metadata filename
#metadataFilename <- "C:/Users/sridevi/thesismaterial/proposal/LMpaper/Rcode/all_7986_v5.4_metadata_2.csv"
#metadataFilename <- "C:/Users/sridevi/thesismaterial/proposal/LMpaper/Rcode/all_7986_v5.4_metadata_3.csv"
#metadataFilename <- "C:/Users/... |
a6f867c22c72a852fd40ad7af8fb2cd434724d8f | 319e87f3a5cbe4b81c2394dcf0ae693909ab6600 | /2002_enrichmentAnalyses/200117_IPA_genePathwayEnrichGroupComparison.R | 09a12ee49ea697a215329ca7c1ff75dce9fd2abd | [] | no_license | cfbeuchel/imise_gxmetab | 4d1f497059669b262711f7e489179c78b5da0db8 | 3dab9a25ca713358bb91a0f013302f3fcad3adfd | refs/heads/master | 2023-03-05T01:11:12.806520 | 2021-02-16T15:15:47 | 2021-02-16T15:15:47 | 339,058,123 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,263 | r | 200117_IPA_genePathwayEnrichGroupComparison.R | #' ---
#' title: "IPA Group Comparison Summaries"
#' author: "Carl Beuchel"
#' date: "`r format(Sys.time(), '%d %B, %Y')`"
#' output:
#' html_document:
#' code_download: true
#' fig_captions: yes
#' theme: spacelab #sandstone #flatfly #spacelab
#' highlight: pygments
#' toc: TRUE
#' to... |
2645a0b281e42d5b683943895cbb5e6733ab8679 | 7b74f00cd80694634e6925067aaeb6572b09aef8 | /2020/Assignment-2020/Individual/FE8828-Zhang Yuejiao/Assignment 2/Assignment 2.R | 23adcd114d13eba13a465eebe11350edd6abe7a0 | [] | no_license | leafyoung/fe8828 | 64c3c52f1587a8e55ef404e8cedacbb28dd10f3f | ccd569c1caed8baae8680731d4ff89699405b0f9 | refs/heads/master | 2023-01-13T00:08:13.213027 | 2020-11-08T14:08:10 | 2020-11-08T14:08:10 | 107,782,106 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,717 | r | Assignment 2.R | #Secretary Problem
make_choice <- function(N, split_number){
# built the 'repeat' inside this function to produce the probability as the function's output
times <- 10000
GetN <- 0
for(i in 1:times){
# generate the sample of integers 1 to N
input_list <- sample(1:N,N,replace = FALSE)... |
1b24c16c325cfa6460e0cf32b31c40350e80e95d | 354d44b5921074077ea2f97120acdb1d01fc7301 | /AGG Script.R | 780c304685add4d46f46cfcf68cb966f45163022 | [] | no_license | dpalmer9/Weston_R_Script | 3c3f411137bd7804573fd61bb5970abc269e5bf8 | a005b2d093f634854c205aab8ad0f2e533111a84 | refs/heads/master | 2021-01-02T08:36:42.876714 | 2018-04-09T18:27:11 | 2018-04-09T18:27:11 | 99,031,509 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,286 | r | AGG Script.R | ## Library ##
library(tidyverse)
library(reshape2)
library(car)
library(mice)
library(lme4)
library(nlme)
## Parameters ##
## Acquire data ##
options(scipen=50)
options(contrasts = c('contr.sum','contr.poly'))
raw.data = read.csv('C:\\Users\\dpalmer\\Documents\\WestonANOVAProcedure\\FiveChoiceDatabas... |
2a095e412bac7286a585224c71069c499cae8048 | ac4378367a0adba98736df1c8ff7f3a0d44dd15e | /codigo/ex7.R | 4179c154a088ff97a75a453eae5eeecc4c9119f4 | [] | no_license | paulo-manzone/Data-Science-R | 307892b83031d56b345b91d5b77a82c05960e230 | 6a08dee1da70a4c06081fe49ad6f3cfe46243f53 | refs/heads/master | 2020-03-31T11:02:02.113849 | 2018-10-09T20:33:46 | 2018-10-09T20:33:46 | 152,160,181 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 298 | r | ex7.R | #Instalando pacotes
package.install("xlsx")
library(xlsx)
require(xlsx)
#Lendo dados
df = read.xlsx("./dados/exercicio7.xls", sheetName = "Plan1")
png("./graficos/ex7.png")
barplot(df$Atendimento, names.arg = df$Areas, ylim=c(0,400), cex.names=0.7, col=rainbow(3), main="Atendimentos")
dev.off()
|
e8d21cfc2427dd199bc316caf6ee4d4d968d496a | 57bfec18bfc943ea128b1fe17a0af86544962447 | /plot1.R | 81285a8cb8dcf3837b81008fbcc9353102310550 | [] | no_license | athuroe/ExData_Plotting1 | ce7fb50f7b5369dd19a67efef7d8701d915144cd | e01d9becce707b46119237b4f9fcb0f7eba98c5f | refs/heads/master | 2021-01-17T21:44:43.179953 | 2015-09-13T22:05:59 | 2015-09-13T22:05:59 | 42,397,201 | 0 | 0 | null | 2015-09-13T13:40:11 | 2015-09-13T13:40:11 | null | UTF-8 | R | false | false | 596 | r | plot1.R | ##Read and subset the data
data <- read.table("household_power_consumption.txt", header = TRUE, sep=";", stringsAsFactors = FALSE)
data$Time <- paste(data$Date, data$Time)
data$Date <- NULL
data$Time <- strptime(data$Time, format = "%d/%m/%Y %H:%M:%S")
data <- data[data$Time >= "2007-02-01" & data$Time < "2007-02-03",]... |
c7d2bc0390cc0b7ed40190227efa408b3a2552f4 | f0c9e167c8ceae9388986d22e89eb7293c664343 | /data/FGClimatology/man/calc_pmv.Rd | da98b57a541f95658471aafa67c1e9e0fc90e7b4 | [] | no_license | gavin971/r_dev_messkonzept | 1a2c91e51d45f18df65476bf04b7918c809f0503 | af6073c2b18f1f036a528bf8df6143bf1b51a561 | refs/heads/master | 2020-03-19T03:13:34.235435 | 2015-05-22T08:07:06 | 2015-05-22T08:07:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,547 | rd | calc_pmv.Rd | \name{calc_pmv}
\alias{calc_pmv}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculation of the Predicted Mean Vote (PMV) Value
}
\description{
This function calculates the pmv value for a given input data
}
\usage{
calc_pmv(x, clo, met)
}
%- maybe also 'usage' for other objects doc... |
580f6c696119865830e3b1d10d25fea0d9e943bc | 9c11bee77dee2c81d38af86a48a270914ef06fdb | /age_cleaning.R | a0a4890bd6ede39c230439231d48b075a57644a5 | [] | no_license | EllenBrandell/wolf_parasitology | 415a99ac92b915acbfdbef60bf9a631816e30523 | 060887d488318bf341b1f0429d5a71dad0a8a1ed | refs/heads/main | 2023-07-29T00:15:41.858368 | 2021-09-19T19:08:11 | 2021-09-19T19:08:11 | 367,455,367 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,066 | r | age_cleaning.R | ## Ellen Brandell
## May 2021
## assess the importance of the diameter used to delineate pups/adults
library(tidyverse)
library(cowplot)
theme_set(theme_minimal(base_size=11))
setwd("~/Desktop/scat_project/DATA/data_summaries")
# individual scat data
diameter <- read.csv("scat_diameter.csv")
geno <- read.csv("all_... |
7e34903d199bec96ad58d102626231b4584c8a3d | 54619814c48f9f41c427ced3da8159c47316e601 | /DESeq_backbone.R | dcd65b83a45ce77ac33d288b609b266882383493 | [] | no_license | amarseg/RNA_seq | f40f11d97c3a64a18ba9e413bbdaec3453214c53 | 3d07eb8b77e0f03a6c8ef610798f3af3a434c03e | refs/heads/master | 2021-05-04T10:56:34.146765 | 2017-08-14T09:39:11 | 2017-08-14T09:39:11 | 36,794,988 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 791 | r | DESeq_backbone.R | ##DESeq analysis comparing each time point with the previous one
library("DESeq2")
###Read and prepare data
se.path <- ("~/rna_seq0206/seq_0206/Transcripts_1.rda")
counts <- assays(se)$counts[,seq(1,24,2)]
row.names(counts) <- elementMetadata(se)$ID
colData <- as.data.frame(factor(rep(c(0,1,10,11,2,3,4,5,6,7,8,9))))... |
f49204806a6e986e39ca76fc317bb336f9f7781e | b1f9bdce25564f024a077b481e573829e089a407 | /R/package.R | 83ddbb6b1a0ed57f10ba4199d0e561fa380c9beb | [
"MIT",
"ISC"
] | permissive | jimsforks/cordes | 3e7c253ac408e99e7532dc7bf4672f3549416e4d | bda2b9b75396d935ccd201c357ecfeb4a7aec9ac | refs/heads/master | 2022-12-13T04:56:17.299360 | 2020-09-15T08:16:04 | 2020-09-15T08:16:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 130 | r | package.R | modify_package_json <- function(
field,
content
){
yml <- yaml::read_yaml(
here::here("inst/cordes/package.json")
)
}
|
07f69a3a300aef48f5460b0fa64af537e8ce17fd | 2a5dc31cfb3ff562c9ffcb47776fa0fe542428a6 | /R/files.R | 35aa99a396cafb38003771b30b1dc6fa07c421c3 | [
"MIT"
] | permissive | hairizuanbinnoorazman/googledrive | 835171842771aa97fa3dcda31c9517cc2cad8bfc | 91d1655a72d3e5850745efdb08c9300b32cb0f32 | refs/heads/master | 2021-01-11T17:53:34.796340 | 2017-05-05T17:38:50 | 2017-05-05T17:38:50 | 79,862,995 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,067 | r | files.R | #' Get the list of files from Googledrive
#' @description Utilizes the list_files Google Drive API endpoint to retrieves files and folder details.
#'
#' This function provides the raw functionality of full access to the list_files API endpoint but is not
#' the recommended way of accessing the API. It would be better t... |
3e6785e70cde1bb8a7e7c820e1acb136b00db3be | 592931441d6f1d500e628ba63aa01164cd7d6163 | /R/nest.R | cda0fdc8e7f3dd16fa35c9d93a58c4d03cdfb05b | [] | no_license | dgrtwo/tidyr | 689887ca65ccd41430d37bbd28e629a46db04e67 | 889251bc9999389878c6523c16bdf8fea7965dcc | refs/heads/master | 2021-01-14T08:46:07.295810 | 2016-08-30T19:45:45 | 2016-08-30T19:45:45 | 66,972,183 | 1 | 0 | null | 2016-08-30T19:43:08 | 2016-08-30T19:43:08 | null | UTF-8 | R | false | false | 2,656 | r | nest.R | #' Nest repeated values in a list-variable.
#'
#' There are many possible ways one could choose to nest columns inside a
#' data frame. \code{nest()} creates a list of data frames containing all
#' the nested variables: this seems to be the most useful form in practice.
#'
#' @seealso \code{\link{unnest}} for the inver... |
abbc17502507ccb725ab7f84c8672b6478be3a55 | 83ae358d90cb1c54c8be380bc7bd628a2f6ed530 | /R/stats2.R | 6f62b73830c81219bca1c7f34e9421b574597418 | [] | no_license | cran/Rlab | c7963e1210e2140fc6d397ff6a2cf289f0dd3bd2 | c72e630626f6df15cf75ffd8b9ee7c85322aeda8 | refs/heads/master | 2022-05-28T16:35:40.306539 | 2022-05-04T22:10:02 | 2022-05-04T22:10:02 | 17,693,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 918 | r | stats2.R | "stats2"<-function (x, by,digits=8){
if (!missing(by)) {
x <- cat.to.list(c(x), by)
}
if (!is.list(x) & !is.matrix(x))
x <- matrix(x, ncol = 1)
if (is.list(x)) {
ncol <- length(names(x))
out <- matrix(NA, ncol = ncol, nrow = length(describe2()))
dimnames(... |
d99ff6c1956c2736b65457fb26667b82a7708973 | 29dc4ad394faa3163b6b8a42a9fc60ee01c41d15 | /code/02_RhoneExploration.R | 5a8951eedc3e70810c50a008050348e05d08b6bd | [] | no_license | MaximilianPi/Snails-JSDM | fd4400abfc46df7d530289fccb37d3047e73f3df | f172f1bd7a025ddb5b92fa68b92df3ad32fb5bd1 | refs/heads/main | 2023-08-13T22:16:42.712183 | 2021-10-06T11:44:17 | 2021-10-06T11:44:17 | 394,691,369 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,336 | r | 02_RhoneExploration.R | ################################################################################
#### Rhone River
################################################################################
# Description: Exploring the Rhone River data
# Load required packages
library(tidyverse)
library(parzer)
# Clear R's brain
rm(list = ls())... |
555eedb6681e04d4cc6f4a40cead8f20faf71642 | 48b3ca27ab2270abbfd91abadd9d97314c76aab6 | /data/uk_lower/Bills/UK UK Bills.R | 9f97ed2ce4e49077719393f17a3449d2cd88956f | [] | no_license | yichang-yang/CompLegFall2019 | 43e11c5cf9995ba727ff4b2c1f2feaeae6f0fe64 | a8a897f2240502dced49b7561bfb1b9ef393201f | refs/heads/master | 2020-07-21T11:15:28.180654 | 2020-02-20T01:14:42 | 2020-02-20T01:14:42 | 206,845,599 | 0 | 0 | null | 2019-09-06T17:44:15 | 2019-09-06T17:44:15 | null | UTF-8 | R | false | false | 4,481 | r | UK UK Bills.R | # remove objects
rm(list=ls())
# detach all libraries
detachAllPackages <- function() {
basic.packages <- c("package:stats","package:graphics","package:grDevices","package:utils","package:datasets","package:methods","package:base")
package.list <- search()[ifelse(unlist(gregexpr("package:",search()))==1,TRUE,FALSE... |
502b5cd4aad93809adcc4d451f290ef4193249f3 | b0ed6387572b52cec1b784d54f53355564027fc5 | /run_analysis.R | b6eea685721ae33fc6a191555bd53914bae5b53c | [] | no_license | csubrata/Getting-and-Cleaning-Data-Project | 15e99d60bf0cef13cfeb455103001274b5ba6a6d | f261e5856c66329683b871b24e29b47d31710be6 | refs/heads/master | 2021-01-20T01:03:35.238678 | 2014-07-27T14:51:07 | 2014-07-27T14:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,289 | r | run_analysis.R | ######################################################################################################################
#
# Human Activity Recognition Using Smartphones Data Set
#
# Project Goal:
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standa... |
64055afcb22838c4eb56cbb7e4b3011e25a2b181 | f9f70e201678f3e4d3d87beef4b35d35ef624c50 | /R/read_and_combine_raw.R | 9bf92f86929f116a40fa9c1ef597cced60c9be91 | [] | no_license | TikshiKE/rpackassigment | a7611b38dd9db847577ce619344e3706dcc449f6 | 2d6a55e184f0ed85bf3102e557b87a3735041e76 | refs/heads/master | 2023-02-23T00:25:21.357565 | 2020-12-17T15:23:16 | 2020-12-17T15:23:16 | 322,322,544 | 0 | 1 | null | 2021-01-11T22:21:01 | 2020-12-17T14:39:22 | R | UTF-8 | R | false | false | 492 | r | read_and_combine_raw.R | #' Data reading function
#'
#' @param dir dirrectory with all the raw data files
#' @param na.rm FALSE by default
#'
#' @return A one combined dataset with filename and data
#' @export readData
#'
#' @examples
#'
read_and_combine_raw <- function(dir, na.rm = FALSE) {
result <- list()
for(i in c(1:length(dir))) {
... |
1efad4257486052f980e969eb88613509c6c76c6 | 600a3941d3b09bd41bfecd3f128c25abc1beb651 | /stream_agregation_shiny.R | d7708f05608d1a6c0940173f4362374756f518ca | [] | no_license | ifranl00/BigData_Spark | bf4ed1700102bf2cb7592df8ccc75bc2d1310c9f | fb68d9eb29c1f07d9c4bb2bc40c95ba177eddc19 | refs/heads/main | 2023-04-03T03:10:35.711695 | 2021-03-30T14:51:10 | 2021-03-30T14:51:10 | 353,037,690 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 915 | r | stream_agregation_shiny.R | library(future)
library(sparklyr)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)
sc <- spark_connect(master = "local", spark_version = "2.3.0")
if(file.exists("source")) unlink("source", TRUE)
if(file.exists("source-out")) unlink("source-out", TRUE)
stream_generate_test(iterations = 1)
read_folde... |
785e5223036d4baed8605826f6a5610e10edede1 | ab8f34c224fbe2a8a8e4dd1f3dc6c28bd0781e11 | /Sample1.R | 13890979fcf351fd7a18f5cb6df7bbf8bb300170 | [] | no_license | ghousiamk/RSample | 819e0e956c8796b9fe57863febdb6778f86d0b85 | e93e48191b5f50ef0b45ba7e645e5976ec03d2d7 | refs/heads/master | 2022-11-30T08:19:19.716404 | 2020-08-11T13:22:25 | 2020-08-11T13:22:25 | 286,749,583 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,438 | r | Sample1.R |
install.packages('nutshell')
install.packages('lsa')
install.packages('lattice')
install.packages('MASS')
install.packages('OneR')
install.packages('proxy')
library('nutshell')
library('lattice')
library('MASS')
library('OneR')
library('proxy')
library('lsa')
Lab3 <- read.csv("athlete_events.csv")
na.rm = TRUE
#1. How... |
9db8069bed8820558d1896845fa6bcdb7d1b13c0 | de425ac8ff4158a50530aaf4f64d7247cd1aa911 | /plot1.R | 4303154374afd8434c882ccb473655b471688023 | [] | no_license | stahengik/ExData_Plotting1 | a2120f96d8ba3b069143db06078be44cbf4ec0a6 | b195a6b89f5c3d9ed687e5279cd432cb7f39d95c | refs/heads/master | 2020-04-09T06:31:29.941003 | 2018-12-03T01:39:50 | 2018-12-03T01:39:50 | 160,116,569 | 0 | 0 | null | 2018-12-03T01:41:53 | 2018-12-03T01:41:52 | null | UTF-8 | R | false | false | 704 | r | plot1.R |
# Reading data from file
dataPwr <- read.table(file.choose(), header = TRUE, sep = ";", na.strings = "?")
# head(dataPwr)
#Set types for Date and Time cols
dataPwr$Date <- as.Date(dataPwr$Date, format = "%d/%m/%Y")
dataPwr$Time <- strptime(dataPwr$Time, format = "%H:%M:%S")
# class(dataPwr$Date)
#class(dataPwr$Time)... |
6ced21a7845b701b420afd1680e429b71c079318 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /GDINA/man/cjoint.Rd | ddaf3f71ab05302516a7543fd5bbde07e15bea0a | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | true | 693 | rd | cjoint.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExportedFuncs.R
\name{cjoint}
\alias{cjoint}
\title{Combine R Objects by Columns}
\usage{
cjoint(..., fill = NA)
}
\arguments{
\item{...}{vectors or matrices}
\item{fill}{a scalar used when these objects have different number of r... |
a725ced1fc240bffe25e835df84c724602cc2e73 | 53addc1b00d28e56971a216215011549b066d08b | /cachematrix.R | ddadfdcba5485c92f0d553400fa0935e527b86c5 | [] | no_license | jac0byterebel/ProgrammingAssignment2 | f0d5898f74406ec450ad58aee804fcccedb19ab2 | bd1624cfff249989f86c07ae9657ff07b09f2c18 | refs/heads/master | 2020-03-21T05:01:52.677281 | 2018-06-21T10:23:57 | 2018-06-21T10:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,699 | r | cachematrix.R | ## R-programming Assignment 2 - Gavin Ewan
## The functions makeCacheMatrix and cacheSolve allow us to calculate the inverse of a square matrix.
## This inverse is stored in a special 'matrix' object that can be called whenever the inverse is required
## again, rather than carrying out the computationally slow p... |
2c062aa922e7cd5f12a8fa904d56a362c27e18e6 | c89b84296140e73f9ae3d25af5b1dddb7abba1ad | /R/congress-ids.R | 0d310e8855c7ab2717348aeb1eba20c43799f255 | [] | no_license | SlavicaJ/congress_tweets | 0cbeb9e7531d0c3694e390cd6ac1d4bcb87a1b30 | d46e22e8919c05599efb1638fee01c633190411a | refs/heads/master | 2022-01-24T06:11:36.845746 | 2019-09-13T20:13:38 | 2019-09-13T20:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,714 | r | congress-ids.R |
## function to convert strings to data frame
keypairs2df <- function(x) {
x <- strsplit(x, ": ")
x <- x[lengths(x) == 2]
if (length(x) == 0) return(NULL)
var <- map_chr(x, ~ .x[1])
val <- map(x, ~ .x[2])
names(val) <- var
as.data.frame(val, stringsAsFactors = FALSE, row.names = NULL)
}
## link to data b... |
81022f0080518a7ab8489f2bb76cb3598c5bf2e9 | 7659496f0f1a5e8632dd853c10480874bab7dab9 | /R/plotSignal.R | 9c4cce186aecfeb2b05750d555a8073fe97566b4 | [] | no_license | isglobal-brge/CNVassoc | 77db8ae797b6e7b26d51aecee6ef1ae22294d44c | fc6806fb9bf583cf5321c3efd1ed6df92e290c89 | refs/heads/master | 2021-01-22T05:47:14.323741 | 2019-04-09T12:59:39 | 2019-04-09T12:59:39 | 92,494,611 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,368 | r | plotSignal.R | plotSignal <- function(x, my.colors = c("black",
"red", "blue"), ylab = "Peak Intensity",
xlab = c("individuals", "Phenotype"),
case.control = NULL, cex.leg = 0.6, dens.bw = "nrd0",
dens.adjust = 1, n = 0, ...) {
foo <- function(...) {
old.mfrow <- par("mfrow")
... |
4d4a420921336adeabc3d6637527b64c794e5c76 | 5e42a668e417fd55fe28ecee719c759016f963b9 | /tests/testthat/test-nonportable_path_linter.R | 9ba27f1c2ca2de950be41b75c95f720a7672a9de | [
"MIT"
] | permissive | cordis-dev/lintr | 2120e22820e8499ca3066fa911572fd89c49d300 | cb694d5e4da927f56c88fa5d8972594a907be59a | refs/heads/main | 2023-08-05T08:50:42.679421 | 2023-07-25T13:21:29 | 2023-07-25T13:21:29 | 225,583,354 | 0 | 0 | NOASSERTION | 2019-12-03T09:41:30 | 2019-12-03T09:41:30 | null | UTF-8 | R | false | false | 1,682 | r | test-nonportable_path_linter.R | test_that("nonportable_path_linter skips allowed usages", {
linter <- nonportable_path_linter(lax = FALSE)
# various strings
non_path_strings <- c(
"foo",
"https://cran.r-project.org/web/packages/lintr/",
encodeString("hello\nthere!")
)
for (path in non_path_strings) {
expect_lint(single_quot... |
8f56115a407978cbf03f5caba1daad41bb215fa0 | 2f98d7200eb35cfff5a2060f1c1df3124630775d | /Coursera../HW3../rankall.R | 39c4c2274d7fe363c04eea51530dd95f83f6ab18 | [] | no_license | yukiecho/R-Prog-Practice | d1e57e4d36dbcd7b3c878178adc96a1d6bea0a61 | 0796e830e7a9b51c3bdaa90aff9eea3c11171bb3 | refs/heads/master | 2016-09-05T23:45:30.009857 | 2015-04-16T20:03:14 | 2015-04-16T20:03:14 | 30,261,321 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,607 | r | rankall.R | rankall <- function(outcome, num = "best") {
## Read outcome data
## define all the "Not Available" string as NA
outcomefile <- read.csv("outcome-of-care-measures.csv",colClasses = "character",na.strings="Not Available")
## check that state and outcome are valid
outcomelist <- c("heart attack","heart failure... |
f899866fb5c378cb922a40aa4de7e9851d8fe76b | 8c0969a8aba7988ece1c4b9c20ba1d1fd2f3a0d2 | /R/sharks_with_obs_sim_EKF_1d_interp_joint.r | 5b4a42575e7f3ef653428d663202d3e42375cee2 | [] | no_license | cran/animalEKF | 300e36ebc91fa8143100dfe3179b76f71f5c0fbb | acf5cdd8c0d92e1000d03987afb66acc0c8925fb | refs/heads/master | 2022-12-27T07:30:47.740285 | 2020-10-05T10:50:06 | 2020-10-05T10:50:06 | 301,801,402 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,254 | r | sharks_with_obs_sim_EKF_1d_interp_joint.r | sharks_with_obs_sim_EKF_1d_interp_joint <- function(env_obj) {
for (s in env_obj$sharks_with_obs) {
#print("tis values")
#print(s)
#print(Xpart_history[1:i,c("time_in_state","lambda"),1,s])
#print(shark_intervals[[ s ]])
#sequence of regular steps for which we will update values
#should be different f... |
7b23a85f76f10c9777bf9431963c7c704d326039 | 68f63ff26f6ba800eaf445f844cee713a7e3cf7d | /R/model/estimate-policy-effect.R | f1d305416b1e4ecb05374eb072d881a90c5bdb31 | [
"MIT"
] | permissive | zackbh/covid19-vsl | 343fb8c7cd6a4501cb7743d08d78e99b5847ecaa | e6d9feeaad1fff5253a9f45dbe0c101329ddaf04 | refs/heads/master | 2021-05-21T18:18:14.448798 | 2020-09-03T13:39:11 | 2020-09-03T13:39:11 | 252,749,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,125 | r | estimate-policy-effect.R | # Relationship between policies and mobility
library(dplyr)
library(data.table)
library(dtplyr)
library(covdata)
stringency <- data.table::setDT(readRDS(here::here("data/stringency-index.RDS")))
setkey(stringency, country_name, date)
wb <- readRDS(here::here("data/wb-data.RDS"))
pop <- readr::read_csv(here::here("d... |
0f90e0beb4e5b59a8af8e5a6c54db074f0d7311b | ed46eb7778524102331ea2ee4a3165eacaf01b5e | /man/plot_bb_fits.Rd | fbc98aac642bd2eae5329389129ea518d62ea6ac | [
"Apache-2.0"
] | permissive | Gibbons-Lab/mbtools | 199e2ff4c87a2c3c194372b6b56ab09c3212f312 | 3b7ae9f124c9b9bb7579688243b0b264a040e35f | refs/heads/master | 2023-06-08T03:26:25.971849 | 2023-05-25T19:10:13 | 2023-05-25T19:10:13 | 146,012,432 | 20 | 9 | Apache-2.0 | 2018-11-05T22:48:09 | 2018-08-24T16:04:15 | R | UTF-8 | R | false | true | 633 | rd | plot_bb_fits.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_analysis.R
\name{plot_bb_fits}
\alias{plot_bb_fits}
\title{Plot the Betabinomial fits for all taxa in a phyloseq object}
\usage{
plot_bb_fits(ps, bins = NULL)
}
\arguments{
\item{ps}{A phyloseq object containing data for a reference exp... |
8fc86e602ca27a5434b644067266e3e68046bcc3 | 0073cb8d74a83eba9a621ca158d914867435e6ff | /hitting_and_pitching_app/app.R | 976bd6e1aa2971263c8c4bb78865c6fcde11d5a2 | [] | no_license | MikeCalabro/MLB-hitting-and-pitching | baf712d1153c94c56922627267e4b3aed66314db | 89617caf95981368f23b4e6c7af1476b50a5e028 | refs/heads/master | 2022-12-03T21:22:42.445130 | 2020-08-29T15:43:41 | 2020-08-29T15:43:41 | 289,092,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 72,019 | r | app.R | library(shiny) # Allows for the interactive elements
library(tidyverse) # Data manipulation and visualization
library(baseballr) # For obtaining the statcast data
library(png) # To put that plate image on the screen
library(shinythemes) # For theme selection
library(tidybayes) # Distribution V... |
d1fdf15920c67c53ed3701e5d0a8e65ac493073c | 4344aa4529953e5261e834af33fdf17d229cc844 | /input/gcamdata/R/zgcamusa_L203.water_td.R | e1dfccbc5eb93ed42c29d5db165fc5c082b9c31c | [
"ECL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JGCRI/gcam-core | a20c01106fd40847ed0a803969633861795c00b7 | 912f1b00086be6c18224e2777f1b4bf1c8a1dc5d | refs/heads/master | 2023-08-07T18:28:19.251044 | 2023-06-05T20:22:04 | 2023-06-05T20:22:04 | 50,672,978 | 238 | 145 | NOASSERTION | 2023-07-31T16:39:21 | 2016-01-29T15:57:28 | R | UTF-8 | R | false | false | 27,865 | r | zgcamusa_L203.water_td.R | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_gcamusa_L203.water_td
#'
#' Mapping of water consumption/withdrawal to sectoral demands at the state level.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code... |
a1de49e65d89275a13274ddc854713a6167ed0cf | 82775aacbd58b84f49b9d6a21b433dcf10a0fb79 | /R/convert_usd_to_eur.R | 4d340c5b8afae23945c2b86266d7dee9af5a375d | [] | no_license | karlofiguerres/masteringRskills | 4528cb929143154323728c31c15b8ad08cd00fbf | 4c185fde12d460f25b252f4138a40eedd07eee06 | refs/heads/master | 2020-06-02T03:14:50.240356 | 2019-06-09T20:26:37 | 2019-06-09T20:26:37 | 191,016,668 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 362 | r | convert_usd_to_eur.R | #' Looks up the most recent USD to EUR exchange rate and computes the provided USD amount in EUR
#' @param usd amount in USD to be converted to EUR
#' @return number
#' @export
#' @importFrom httr GET content
#' @importFrom logger log_info
#' @examples
#' convert_usd_to_eur(10)
#' convert_usd_to_eur(25)
convert_usd_to_... |
d860319b19d990befbbd3863a129dcf2304a17a4 | 26d5c692d5272c549bd4e77d6b34cef52ee4b132 | /testscript.R | 3fd7a5ba4655cd9f47486bb9efb5f04d860c545e | [
"MIT"
] | permissive | LenaAckermann/my_first_rproj | d75b99a54fc43a358f2ae627d36765cd0dbaf366 | d3546690e91e265b89c4b1178e556a5f901c908b | refs/heads/main | 2023-04-09T12:15:40.824938 | 2021-04-21T23:17:51 | 2021-04-21T23:17:51 | 360,329,967 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28 | r | testscript.R | # This is just a test script |
e4d5dc6b8a81ffa256410e1de6e8c013e6a7bb9b | cedd4a491cba1747c6874fc9e1bdf03e9790fb77 | /man/apollo_validateInputs.Rd | 996d8b0da4b6f65a8ea2afbcb442054450cc266d | [] | no_license | cran/apollo | eee0e11d7be26f3225e4f024c7d1c4042e627ade | e390dbad0a9041a610456f1a54c2e548c470356c | refs/heads/master | 2023-08-19T16:03:28.519668 | 2023-08-10T12:40:02 | 2023-08-10T13:36:07 | 166,079,906 | 1 | 2 | null | null | null | null | UTF-8 | R | false | true | 8,527 | rd | apollo_validateInputs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apollo_validateInputs.R
\name{apollo_validateInputs}
\alias{apollo_validateInputs}
\title{Prepares input for \code{apollo_estimate}}
\usage{
apollo_validateInputs(
apollo_beta = NA,
apollo_fixed = NA,
database = NA,
apollo_control = N... |
f22f7e5c87d123fb1a5fa9e22b6fabf963b3dda3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dse/examples/shockDecomposition.Rd.R | c7201824bee5c711ce85a5a042007b447a075088 | [] | 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 | 250 | r | shockDecomposition.Rd.R | library(dse)
### Name: shockDecomposition
### Title: Shock Decomposition
### Aliases: shockDecomposition
### Keywords: ts
### ** Examples
data("eg1.DSE.data.diff", package="dse")
model <- estVARXls(eg1.DSE.data.diff)
shockDecomposition(model)
|
fad877c6eac84ce1e58c9733d666d0afcb3f033b | 54d0e0b1cfb9935174e0f9907f176e721d6d3bf3 | /16. CH8 - Tree-Based Methods Bagging, Random Forests/Section2BaggingAndRandomForests/LabCustomerChurnRandomForest.R | 51a22a0f286681c5ef40cf9284d8504796fe39a8 | [] | no_license | clairehu9/R_ML_ISLR | 29f16ddcb02d654ae272f06510d85243ea30c68e | 26bce2a45a1037cfbbc64eef4dca0d93ea56f461 | refs/heads/master | 2020-09-12T06:11:09.600859 | 2019-11-18T01:38:55 | 2019-11-18T01:38:55 | 222,336,639 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,395 | r | LabCustomerChurnRandomForest.R | rm(list=ls())
installIfAbsentAndLoad <- function(neededVector) {
if(length(neededVector) > 0) {
for(thispackage in neededVector) {
if(! require(thispackage, character.only = T)) {
install.packages(thispackage)}
... |
b2d4019ac14923868a2cb549ca763ee5871ab6c5 | 3b2da3a6f650cd7b39fef745aaa3fdd358008518 | /Cousera Software dev in R/2.Advanced R programming/Quiz.R | 49f4e7eb476e4f229811073d4bf5d7463d82b7c8 | [] | no_license | fukeyouko/TestPackage | d21af339da4610e72953978ecf5af4ba2681ba4a | a2ee7a8d0a132b8b27f9020810e6861d0cd4726f | refs/heads/master | 2020-03-14T05:19:37.371713 | 2018-04-29T08:40:37 | 2018-04-29T08:40:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,397 | r | Quiz.R | library(readr)
library(dplyr)
library(ggplot2)
DailySpec<-read.csv("data/daily_SPEC_2014.csv.bz2")
object.size(DailySpec)
#Q1, What is average Arithmetic.Mean for “Bromine PM2.5 LC” in the state of Wisconsin in this dataset?
DailySpec %>% filter(State.Name=="Wisconsin",
Parameter.Name==... |
001d35c155331d760020727a4f7ff6edbd1ad8f1 | a7dce817823c6f4543a401af89aa7980ee962af7 | /cachematrix.R | 432f1c8457cb5f14c8b3773229036f2d87031ef9 | [] | no_license | zboniecki/ProgrammingAssignment2 | 8c9032f07e6fbfa94eae2c152559feed03e7f2c9 | effe7de28c26e15894121d711b404c19d280403f | refs/heads/master | 2021-07-18T05:01:17.161680 | 2017-10-22T10:05:31 | 2017-10-22T10:05:31 | 107,846,719 | 0 | 0 | null | 2017-10-22T07:41:21 | 2017-10-22T07:41:21 | null | UTF-8 | R | false | false | 1,178 | r | cachematrix.R | ## MakeCacheMatrix creates a matrix
## cacheSolve calculates an inverse of that matrix and caches the result
## if run a second time it just returns the cached result
## makeCacheMatrix creates a matrix; default is a 2 by 2 matrix with 4, 2, 7, 6. Then sets inv_cache as NULL
makeCacheMatrix <- function(x = matrix(c(4... |
ac3b3e472ffff43a68b9d4c88fac66a7b00bdad1 | 3ba0e7569ae04208f34c3f5798120513b22be416 | /man/getAddLine.Rd | a6733f1ae3fef0b764abf61381c1fa42d7e45d4d | [] | no_license | bfanson/hormLong | edf5cc9e5c0dd93bdf0129e246671195d325138a | 63fb9b760f2c9335a28d4b7549bda3394939610c | refs/heads/master | 2016-09-05T18:08:06.750089 | 2015-10-10T10:39:34 | 2015-10-10T10:39:34 | 26,885,167 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 455 | rd | getAddLine.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/hormHelpers.R
\name{getAddLine}
\alias{getAddLine}
\title{Helper function for getting Baseline for plotting}
\usage{
getAddLine(d_s, crit, conc, a_l)
}
\arguments{
\item{d_s}{ds_sub}
\item{crit}{x$criteria}
\item{conc}{conc_var}
\i... |
8700fbc9eddbe954137c93e1936e636e58a79fb0 | 6ba493ca9129518a3a9d52826beb6d3404b140da | /R/CAARiseTransitSet_Calculate.R | 596361b5ba1cf722bd71ad5b7172fa0ef919caed | [] | no_license | helixcn/skycalc | a298e7e87a46a19ba2ef6826d611bd9db18e8ee2 | 2d338b461e44f872ceee13525ba19e17926b2a82 | refs/heads/master | 2021-06-16T08:54:46.457982 | 2021-03-25T02:15:38 | 2021-03-25T02:15:38 | 35,885,876 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 238 | r | CAARiseTransitSet_Calculate.R | CAARiseTransitSet_Calculate <-
function(JD, Alpha1, Delta1, Alpha2, Delta2, Alpha3, Delta3, Longitude, Latitude, h0){
.Call("CAARiseTransitSet_Calculate", JD, Alpha1, Delta1, Alpha2, Delta2, Alpha3, Delta3, Longitude, Latitude, h0)
}
|
6a44b83bd609bb5c3ffc60d481ab7bcb1566ca47 | 44cf65e7ab4c487535d8ba91086b66b0b9523af6 | /data/Newspapers/2001.03.12.editorial.38894.0568.r | 844408a2a2182bd2e098e347a8b97aaeaf28efe1 | [] | no_license | narcis96/decrypting-alpha | f14a746ca47088ec3182d610bfb68d0d4d3b504e | 5c665107017922d0f74106c13d097bfca0516e66 | refs/heads/master | 2021-08-22T07:27:31.764027 | 2017-11-29T12:00:20 | 2017-11-29T12:00:20 | 111,142,761 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,068 | r | 2001.03.12.editorial.38894.0568.r | geaba am scris de mai multe ori in " Evenimentul zilei " ca lucrarea " Supliciu " de Constantin Brancusi nu valoreaza o jumatate de milion de dolari .
pentru a arata ce mare patriot si harnic ministru al culturii este , Ion Caramitru a facut tot ce a putut ca guvernul sa plateasca enorma suma .
pentru aceasta a infii... |
073406f597a88eecd0a59f48fcd83cd2a2b04de1 | 5debecde26fc6cf6a5796a86d768f994b39741cd | /DemographieAmericaine/Scripts.R | becb06601a4c196985ab9ff42becf0b420b00a8b | [] | no_license | rcourivaud/FouilleDeDonneesAvecR | 154754fa63fcd74d880f061966ecbff28a5e7b30 | 096b442beb47085686c0e1f391dcc7a4e7d9b891 | refs/heads/master | 2021-01-12T08:00:31.924620 | 2016-12-21T21:22:41 | 2016-12-21T21:22:41 | 77,086,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,846 | r | Scripts.R | # install.packages("maps")
# install.packages("FactoMineR")
library(FactoMineR)
library(maps)
library(RColorBrewer)
library(ade4)
library(corrplot)
source('ACP_TOOLS.R')
df <- read.csv('DataImi.csv', sep=';', header=TRUE)
summary(df)
head(df)
# =========================================================
# ... |
4bb3af56c2d6fe26baf5b2280f7693df0d17aeb8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/qdap/examples/NAer.Rd.R | 247637d1c5b2c55b3455e0342d992ff919f71757 | [] | 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 | 384 | r | NAer.Rd.R | library(qdap)
### Name: NAer
### Title: Replace Missing Values (NA)
### Aliases: NAer
### Keywords: missing-value
### ** Examples
## Not run:
##D set.seed(10)
##D (x <- sample(c(rep(NA, 4), 1:10), 20, rep=T))
##D NAer(x)
##D
##D set.seed(10)
##D (y <- data.frame(matrix(x, 5, 4)) ... |
8c77643a711b389d6d3e69b40ae14a8e3475b3a0 | 0bd4d5ee50ebfb5a5325ae0284087ee886be4f37 | /inst/simulations/ExactPredictionInterval/EPI_simulations00.R | b4300daa3c4023b33ffa08ecf34c846b7fb0f2c7 | [] | no_license | stla/SLutils | 91f53e3ef48b22154642b7425a1be94c0c48053e | 5c5ef7dbb5d172c0a7788b3975a1363a47c4bf67 | refs/heads/master | 2020-04-10T06:21:30.476088 | 2019-09-10T10:00:57 | 2019-09-10T10:00:57 | 160,851,990 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,008 | r | EPI_simulations00.R | setwd("~/MyPackages/SLutils/inst/simulations/ExactPredictionInterval")
library(SLutils)
conf <- c(80,95)/100
k <- c(2, 3)
n <- c(5, 10)
# f1 <- function(){
# DT <- data.table(conf)
# DT <- DT[, list(n), by=names(DT)]
# DT <- DT[, list(k), by=names(DT)]
# }
# f2 <- function(){
# DT <- data.table(expand.grid(co... |
efd75a895a5d6650774e91263541b0f0c5126b64 | 1a83ac47bb1ffe39b416dfce1964051fa77d5b7c | /man/MonteCarloSamplingIZ-class.Rd | 51a58b3180779a889b6fe1379776c30ccf6d86ce | [] | no_license | cran/sampSurf | 9052ab60378e3295ecade04e573e6770c145cf74 | 9388a099e8cef6109c544bcc95770bc9a60670e6 | refs/heads/master | 2021-06-05T21:01:53.864724 | 2021-03-05T14:50:02 | 2021-03-05T14:50:02 | 17,699,448 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,754 | rd | MonteCarloSamplingIZ-class.Rd | \name{MonteCarloSamplingIZ-class}
\Rdversion{1.1}
\docType{class}
\alias{MonteCarloSamplingIZ-class}
\title{Class \code{"MonteCarloSamplingIZ"}}
\description{ This virtual class exists to be combined with an areal
sampling class of choice. This class facilitates creation of a new
areal sampling method that employ... |
7faf244df7cad0e19aed2ae645d52d4a60596e3f | 909635ddbeecedcbafb005e69f01c0d3ddae8289 | /man/Transaction.Rd | af92a074f404d27d06e3c9f599361619ba655e7a | [] | no_license | hitfuture/Neo4jDriveR | 6d45900707d3a93e4567916c3d634ef8ae45c492 | ef8f1226f98dd40de3bf2a89ca8d249715a0eeef | refs/heads/master | 2020-03-18T07:18:39.319158 | 2018-07-19T18:33:36 | 2018-07-19T18:33:36 | 134,444,172 | 0 | 0 | null | 2018-07-19T18:33:37 | 2018-05-22T16:31:54 | R | UTF-8 | R | false | true | 354 | rd | Transaction.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_database.R
\docType{data}
\name{Transaction}
\alias{Transaction}
\title{Transaction}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
Transaction
}
\description{
Transaction is the class that allows execution in... |
73828853ec8db46d6a3e5b9e04c9924b68d97224 | a5b757b279966b9e86cef3e70092fd5b791b11f9 | /man/med_runtime.Rd | c0c5e21e9887651da8ff76acfe37821e5b5ddf13 | [] | no_license | bgulbis/mbohelpr | 62c15326680e91a2d394614287770e101b13daf6 | e362dd59db37edb2c870a46d3389e7f95d9a745b | refs/heads/master | 2023-01-24T11:42:03.100949 | 2023-01-11T20:30:08 | 2023-01-11T20:30:08 | 197,245,899 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,638 | rd | med_runtime.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_runtime.R
\name{med_runtime}
\alias{med_runtime}
\title{Calculate the running time for intermittent medication data}
\usage{
med_runtime(
df,
...,
.id = encntr_id,
.med = medication,
.dt_tm = med_datetime,
.dose = dose,
.me... |
08836a6d4ec1203d32f781704043b88b6bd98322 | 9f80efc84afd9501fa8c3b762399e4fcea8a42ec | /plot3.R | 0163ef74e034234130030281ad33a09310f2a553 | [] | no_license | saoconnell/ExData_Plotting1 | 5b5bbdbda589905215f53d4b5455ca9c62310ce3 | 97d51db67a65da562ae91a49f7f9a202524d7211 | refs/heads/master | 2021-01-14T09:29:33.545945 | 2014-05-09T05:48:18 | 2014-05-09T05:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,661 | r | plot3.R | ###--------------------------------------------------------------
### plot3.R:
### Creates a plot of house hold Sub_Metering 1-3
###
### Date By Notes
### 2014-05-07 saoconnell Initial development
###--------------------------------------------------------------
## CLEANUP THE WORK SPACE... |
806855fba7f0b692f0970a20d6e0243ca4e0b5c6 | 55d830d823cf4578c10d2c55ba1d1682819ea0ab | /stat331-project-master/get_imputed_income.R | a055ef05e70f0133580393cffe2b2b233cefcfd7 | [
"MIT"
] | permissive | ShreyaPrasad31/Birth-Weight-Prediction-Model- | d8af0f80cb53cb2330214c4d6ab2368faa6acfc6 | 31c979124a6d9ef77fdfeda205b7776698402da5 | refs/heads/master | 2020-05-22T02:03:08.972446 | 2019-05-11T23:22:42 | 2019-05-11T23:22:42 | 186,190,441 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,735 | r | get_imputed_income.R | #This file only contains the code necessary to get the imputed income covariate (does not include analysis code required to select imputed dataset)
#Reading in the data
fdata <- read.csv("chds_births.csv")
head(fdata)
#Calculat the number of missing valuesin each column
na_count <- sapply(fdata, function(y) sum(len... |
4c15fd2d48c4fa75c2796a2a9e3c8d928cae1e31 | b0127d0af88c0ba22e6206a4722ffb69e450d69c | /man/filterSQMASSdb.Rd | bdf41d6140de660e8440651c079371eaf3473a1d | [] | no_license | Roestlab/mstools | 0e4ff24e265b885a761f129dbe40433076edf6f1 | d3bdfb5a714a4c103df96a8c7d92b050f67326c8 | refs/heads/master | 2020-12-13T13:09:57.023082 | 2020-02-04T18:42:05 | 2020-02-04T18:42:05 | 234,427,121 | 1 | 0 | null | 2020-02-04T17:46:16 | 2020-01-16T22:51:44 | R | UTF-8 | R | false | true | 776 | rd | filterSQMASSdb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filterSQMASSdb.R
\name{filterSQMASSdb}
\alias{filterSQMASSdb}
\title{Filter and sqMass db file}
\usage{
filterSQMASSdb(sqmass_file, unmodified_sequence_filter)
}
\arguments{
\item{sqmass_file}{A character vector of the absolute path and filen... |
42e8444ffd8e5ae11d79ba99422ef90d57a61f9c | e7df3662ef856d11842c338fc02545eddd9066c5 | /ggPlotShortcuts.R | 3e0c25e5ca21abd5a5b566f34bafd2b705a3a8e4 | [
"MIT"
] | permissive | SchwartzLab/SchwartzLab_ToolBox | 2025172d9d6314dedf9ceaa792e24dae4270c83e | 1ec9494f210a680bc4816573985f3e1df280fc4c | refs/heads/master | 2022-07-22T05:35:48.495118 | 2022-06-24T22:24:00 | 2022-06-24T22:24:00 | 99,702,434 | 0 | 2 | MIT | 2020-12-08T14:33:47 | 2017-08-08T14:33:06 | HTML | UTF-8 | R | false | false | 9,125 | r | ggPlotShortcuts.R | # GGPLOT functions #############################################################
# Multiplot for ggplot2 by winston@stdout.org from Cookbook for R
multiplot <- function(..., plotlist=NULL, file, cols=1, layout=NULL) {
# library(grid)
# Make a list from the ... arguments and plotlist
plots <- c(list(..... |
1974c5889f088622455eec18f8322bfc3eda544b | e29977bff3e7a6271286059797b67c08b695944d | /man/formatfilFormateringsfunktioner.Rd | c889da96aa3824344f1ec035f7d639e1c06b0215 | [] | no_license | KubranurSahan/Formateringsfunktioner | fcf607927f3a5a98cedb2aeb3474150ad5fd9612 | 0e68c5292523022fe0a6f28a3f122928f215c005 | refs/heads/master | 2021-04-17T11:17:12.086766 | 2020-04-24T13:33:50 | 2020-04-24T13:33:50 | 249,440,955 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,166 | rd | formatfilFormateringsfunktioner.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data dokument.R
\docType{data}
\encoding{UTF-8}
\name{formatfilFormateringsfunktioner}
\alias{formatfilFormateringsfunktioner}
\title{Et eksempel på en formatfil}
\format{Formatfil til en datasæt indeholder fem variable og x antal observation... |
ca8eee036abc6ae852e57f30d25b074c95263039 | f89d8437bf557d258cd113e87fed55fe6eb37e61 | /analyses/traits/height_cleaning.R | 525d01393bb1ac1716dcfec1410d2eb4bb06687d | [] | no_license | lizzieinvancouver/wildhellgarden | decfef79b0cf63c7a34e554cd59ee13e5ade707d | a8c09abe9736a29336d1d821e40f6f8038e8dd34 | refs/heads/master | 2023-08-07T14:19:11.048287 | 2023-07-19T14:12:13 | 2023-07-19T14:12:13 | 55,004,840 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,061 | r | height_cleaning.R | # code written by Tolu A., summer of 2022
# edited by Deirdre on Sept 1, 2022
rm(list=ls())
options(stringsAsFactors = FALSE)
library(tidyr)
library(ggplot2)
library(readr)
library(dplyr)
if(length(grep("deirdreloughnan", getwd())>0)) {
setwd("~/Documents/github/wildhellgarden")
} else if(length(grep("Lizzie", getw... |
5bb147207a4994b2a0f642757e6a9c7df4190712 | 91c8414b0f8b8e8e307e5339cc772b49ce042825 | /R/eigen.analysis.R | 60ea3966ee6aa367dc92e1fc3d2b87f945d9913e | [] | no_license | cstubben/popbio | 49c5fc70781a080fead3162914acc5a5e8f6c50f | 6b1c070f3d7fd8909269c0dc37b3616e7526ab56 | refs/heads/master | 2021-01-16T18:43:57.806548 | 2019-09-25T23:53:05 | 2019-09-25T23:53:05 | 3,156,368 | 10 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,902 | r | eigen.analysis.R | #' Eigenvalue and eigenvector analysis of a projection matrix
#'
#' Calculate population growth rate and other demographic parameters from a
#' projection matrix model using matrix algebra
#'
#' The calculation of eigenvalues and eigenvectors partly follows Matlab code in
#' section 4.8.1 (p. 107) in Caswell (2001). Si... |
2a9c26edf9c53d30b76840182ef445d6d11a05f1 | 05a2342858956ba4922a8c0a15a9eb70c28cae7b | /r-essentials-gists/ch1410.R | cba9350e528c044ab87d85f26684728f1a476631 | [] | no_license | jtlai0921/AEL023000_- | c0120f78d4c195a703263d57ae76de8544d5771a | d9a95c63bda951b0e2f8bbb338b63bb388ca8005 | refs/heads/master | 2020-12-19T02:26:47.710279 | 2020-01-22T14:37:24 | 2020-01-22T14:37:24 | 235,592,637 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 388 | r | ch1410.R | # 安裝 ggplot2, gapminder, magrittr
# install.packages(c("ggplot2", "gapminder", "magrittr"))
# 載入 ggplot2, gapminder, magrittr
library(ggplot2)
library(gapminder)
library(magrittr)
# 在直方圖加上標題與標籤
gapminder %>%
ggplot(aes(x = gdpPercap)) +
geom_histogram(bins = 30) +
ggtitle("GDP Per Capita is left-skewed") +
xl... |
1a91d6bf9baf4cfcdfea256afec53d30f0b23f5d | e70aa6b0e12b96033c9d06b7f1ccdb973cd3a71a | /choropleth_map.R | 4d5be24e68c6b717fe7bc88dbebfdd9e6b7231b9 | [] | no_license | aprilcs/Cholera-in-Ireland | 37729f2f5256b6ef287187312909e9effdc31a07 | f4d191e5265459909ab0e7d33279a1964c69e366 | refs/heads/master | 2021-01-16T22:27:57.532616 | 2016-09-28T18:36:05 | 2016-09-28T18:36:05 | 26,297,424 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,214 | r | choropleth_map.R | setwd("C:/Users/April/Desktop/MSc project/github/spacetime-vis")
library(lattice)
library(ggplot2)
library(latticeExtra)
library(gridBase)
library(gridExtra)
myTheme <- custom.theme.2(pch=19, cex=0.7,
region=rev(brewer.pal(9, 'YlOrRd')),
symbol = brewer.pal(n=8, nam... |
ea40f8b6842cff4d6526a8f5e701bb69b1145402 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /RNOmni/man/BAT.Rd | 197d3642fb728b83a5caeeb403d6c24d073701dc | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,359 | rd | BAT.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BAT.R
\name{BAT}
\alias{BAT}
\title{Basic Association Test}
\usage{
BAT(y, G, X = NULL, test = "Score", simple = FALSE)
}
\arguments{
\item{y}{Numeric phenotype vector.}
\item{G}{Genotype matrix with observations as rows, SNPs as columns.}
... |
e7de5d75310995cb1e631520a9efcf590e3ea2a2 | 86f9975c186bd4bb98ffd236891ed4b5ee55c348 | /FINEMAP/FINEMAP-regional-plots.R | 4f26299eecd4d854f9b267da88027185721d217a | [] | no_license | ashwinas88/parra-lab | 716d5b2292ac52e9abde51d867b5938fccaa7cee | aff2765f0ccfca85859eeda6f5009053db01734f | refs/heads/main | 2023-06-03T07:46:54.219579 | 2021-06-22T13:47:35 | 2021-06-22T13:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,218 | r | FINEMAP-regional-plots.R | library(tidyverse)
library(ggplot2)
setwd("C:/Users/etc-etc/")
# plot the log10(Bayes Factor) results for each region (Y axis; colored by LD).
# also works to plot the PIP instead, check out the comments on the script below to modify.
for (subset in 1:5) { # change according to the number of susbsets you a... |
c41815b4b8f527935ff2389aa5b6b4ee27deebdb | 59456c5c0693c7a9412998567a26a703b80273ba | /regenerate.r | 11ce8408adda70de76da59bd5133dc5fa89defed | [
"Artistic-2.0"
] | permissive | perishky/dmrff | c97e84362e75cdf90317606693eba8cd9cb4cc33 | cc1d19cb905bacd24510c0ee0c741053673380df | refs/heads/master | 2023-06-22T20:51:39.654368 | 2023-06-19T10:45:58 | 2023-06-19T10:45:58 | 159,144,556 | 7 | 4 | Artistic-2.0 | 2019-10-27T12:32:13 | 2018-11-26T09:35:51 | R | UTF-8 | R | false | false | 336 | r | regenerate.r | #' The steps below are needed to regenerate
#' the data objects and documentation files
#' included with the package and then
#' run all tests.
#' install.packages("devtools")
#' devtools::install_github("klutometis/roxygen")
library(devtools)
library(roxygen2)
document("dmrff")
system("R CMD INSTALL dmrff")
reload(... |
b7858d4c6b03db5efddc06d178dd49cfd3f539e6 | e2facadc1e8a9e1ccfca847d48515fc1fac5023f | /Attempts/Attempt9- Boosting Attempt.R | 64024458b25530d0187d33ca69051bcfce07a817 | [] | no_license | pnkonge/Statistical-Learning | be85943c2769fd513206477588640a80b4f6bea6 | 357b5e7a7eb70b1be386ce95c1019a0a88191fa7 | refs/heads/master | 2022-01-20T02:23:24.536333 | 2019-06-18T19:18:17 | 2019-06-18T19:18:17 | 192,599,010 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,207 | r | Attempt9- Boosting Attempt.R | # 1) Loading the data required for Competition
getwd()
setwd("./University of Toronto - Mississauga/4 - Fourth Year/STA314/Competition/all")
sample_submission <- read.csv("SampleSubmission.csv")
test_data <- read.csv("test_predictors.csv")
training_data <- read.csv("trainingdata.csv")
library(gbm)
set.se... |
b3f5e9d31e4b87ef6716e209756770c24e573aa1 | 1fdd28ec9ec0c58bdf50db47da583ff52ff0cbde | /man/internal-functions.Rd | 5472c9655b94a4b264d5eb636fe35d36162ee095 | [] | no_license | michaelfop/damda | e6253796b23868f9da47c81d8c7b2d98d4cea5af | f4988a11139de7b3179c6945428083a73ec38959 | refs/heads/main | 2023-08-24T23:16:25.804714 | 2021-10-19T15:09:28 | 2021-10-19T15:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 388 | rd | internal-functions.Rd | \name{internal-functions}
\alias{em_damda}
\alias{init_em}
\alias{mstep_damda}
\alias{start_parallel}
\alias{bic_reg}
\alias{ice}
\alias{estepdamda}
\alias{icf}
\alias{bhat_dist}
\title{
Internal \code{damda} function
}
\description{
Internal function not to be called by the user.
}
\value{
No return value, these func... |
58acf43dbfbb7fca5dd641d10fbea91db433ca0f | 8e727b337656a075f196447372fd97f32f4773a4 | /test_text2vec.R | 0e0a924012d4017a6a2c94137b98b615907b4b9a | [] | no_license | ngfrey/text-analysis-with-R | cfb9fbfc5574a93fa7f4559b46794c9262558d6f | cd80836982afb02203459db7bb481f71d406fd5f | refs/heads/master | 2020-12-31T21:38:19.112875 | 2018-09-09T17:15:12 | 2018-09-09T17:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,918 | r | test_text2vec.R | load('data/shakes_words_df_4text2vec.RData')
library(tidyverse); library(text2vec)
shakes_words_as_list = shakes_words %>%
anti_join(tidytext::stop_words) %>%
split(.$id) %>%
map(function(x) x %>% pull(word))
# tokens <- word_tokenizer(shakes_words_as_list) # you've essentially done this
# Create vocabulary. Te... |
f09c4e95771db4e5b89be7d22b4125e0f9f6bdc6 | 96e92e1a8267457ef7c0c3d2424b028792b196ca | /data/ch6-1.R | ab1f0b34a7620fcdb63af9b7ee0d403d744dabc8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Finfra/r-sem | 23dd74ca1b143b35793cdb2d5a8390856bab4559 | 21ecf73be106bc6e652691a24a58791726409ade | refs/heads/master | 2020-12-03T06:36:50.178279 | 2017-03-03T08:12:16 | 2017-03-03T08:12:16 | 52,897,327 | 0 | 0 | null | 2016-03-01T17:50:39 | 2016-03-01T17:50:39 | null | UTF-8 | R | false | false | 1,114 | r | ch6-1.R | require(lavaan)
data=read.csv("data/data.csv")
str(data)
model <- 'price =~ x1 + x2 + x3 + x4
service =~ x5 + x6 + x7 + x8
atm =~ x9 + x10 + x11 + x12
cs =~ y1 + y2 + y3 + y4
cl =~ y5 + y6 + y7 + y8'
fit <- cfa(model, data =data)
fit
getMethod("print","lavaan")
summary(fit)
summary(fit,header=FALSE,estimates=TRUE)
get... |
fa95c4113fb8ef88020aa7fca08d8462da72f289 | 0ee14073e3f6bf0b1fde7ed81c664597c6bb44c1 | /R/unicoxph.R | ec50a0b3bfee78d9d4abd1f1515993a6461bfb13 | [] | no_license | tienan/lxctk-m1 | f71a714783d32f52f8085c844ac9d30e3433a927 | 60538ffe7e3a1e3042b8c261acb9f3968c86e729 | refs/heads/master | 2020-03-29T18:59:52.571006 | 2018-09-25T09:47:03 | 2018-09-25T09:47:03 | 150,242,676 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,193 | r | unicoxph.R |
unicoxph <- function(cox.f,data,variable.display=NULL, plot=TRUE, ...)
{
variables <- all.vars(cox.f)
n <- length(variables)
lci <- rep(NA, n)
uci <- rep(NA, n)
OR <- rep(NA, n)
p.value <- rep(NA, n)
ci.l <- list()
OR.l <- list()
p.value.l <- list()
for (i in 3:n) {
e <- variables[i]
#surv.f <- eval... |
08a85d305b6662e8d5cf41bc270cd723f00bab4c | f2e879fe1e58c13596c2245188c3aed56ffc125b | /scripts/mash_screen.R | 9e5bddaeb67325fad920b745e3cf20dc83cb5c8f | [
"BSD-3-Clause"
] | permissive | hkaspersen/misc-scripts | 738f4b0e9db5b1320f826daec4f69a5c6aa83c33 | 24bf988439ce61fbabba2b1691a1da0adac53d50 | refs/heads/master | 2021-06-25T20:10:03.047768 | 2020-10-22T13:04:39 | 2020-10-22T13:04:39 | 148,607,047 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,613 | r | mash_screen.R | #!/usr/bin/env Rscript
args <- commandArgs(trailingOnly = TRUE)
report_loc <- args[1]
pattern <- args[2]
filter_value <- args[3]
organism <- args[4]
output_dir <- args[5]
filter_value <- as.numeric(filter_value)
# Libraries
library(ggplot2)
library(dplyr)
library(tidyr)
library(stringr)
library(purrr)
library(viridi... |
5ebc87be47ccab1bb02a853519577ab1695b0317 | e201e192fc8ed87d7b92f141568bdf21b17d965d | /man/univariate.formula.Rd | 090c50cf373a5286f23925db5bbc87dc63f66bd0 | [] | no_license | zeligdev/ZeligDVN | e66c0ee16dea4cf5faae9bfe35a986eaa0489885 | 091b46787249fe1362cdbfb7184873f29b2082e9 | refs/heads/master | 2020-12-24T14:18:47.566770 | 2011-12-13T15:21:06 | 2011-12-13T15:21:06 | 2,349,825 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 566 | rd | univariate.formula.Rd | \name{univariate.formula}
\alias{univariate.formula}
\title{Create a Formula with a Univariate Outcome...}
\usage{univariate.formula(outcome, explanatory, intercept, envir)}
\description{Create a Formula with a Univariate Outcome}
\details{...}
\value{a formula with a single outcome variable}
\author{Matt Owen \email{m... |
49c211e659bf091089787865b9a2ab79a2ed0668 | e885d8de246fc8bd8a212356e83a8ca4020a0034 | /plot1.R | d5a382aaf89a11c120a61778965cd7e7f6d2d48d | [] | no_license | momo476/ExData_Plotting1 | 192177562d1e5a316348bc6dcf0d6baee5db486e | 4a20d397e670c5fb62859cb5270bad50262b9b16 | refs/heads/master | 2020-04-29T09:15:30.925951 | 2016-01-10T00:48:25 | 2016-01-10T00:48:25 | 49,169,400 | 0 | 0 | null | 2016-01-07T00:02:39 | 2016-01-07T00:02:38 | null | UTF-8 | R | false | false | 909 | r | plot1.R | ## This code loads dplyr libraries
## The data file is then imported and the column classes set
## The table is converted into tbl_df format and filtered so that the data is ready to be plotted
library(dplyr) ##load dplyr library
plotdata <- read.table("household_power_consumption.txt",sep=";", header = TRUE, colCl... |
c6772d063136b002b05679bee8697a370e7f863a | 53d7e351e21cc70ae0f2b746dbfbd8e2eec22566 | /inst/developer/tests to finish/test_xmuValues.r | 75742f1e225516fe536b0eb9579a2c5758626a4a | [] | no_license | tbates/umx | eaa122285241fc00444846581225756be319299d | 12b1d8a43c84cc810b24244fda1a681f7a3eb813 | refs/heads/master | 2023-08-31T14:58:18.941189 | 2023-08-31T09:52:02 | 2023-08-31T09:52:02 | 5,418,108 | 38 | 25 | null | 2023-09-12T21:09:45 | 2012-08-14T20:18:01 | R | UTF-8 | R | false | false | 666 | r | test_xmuValues.r | data(myFADataRaw, package = "OpenMx")
manifests = paste0("x", 1:3)
latents = c("A", "B")
df = myFADataRaw[, manifests]
m1 <- mxModel("m1", type = "RAM",
latentVars = latents,
manifestVars = manifests,
umxPath("B", to = manifests),
umxPath("A", with = "B", fixedAt = 1),
# umxPath(means = manifests),
umxPath(var ... |
1aadb437fa8db6598caf19a69760c2b20e0a8aa7 | dc763fb2506daf7aa1138b694a4dc3c1317a4d7d | /Statistics_project.R | ba6ac0fdeb3c9c3463ddc772fa19ddf7d80991f5 | [] | no_license | GioNardi/DataScienceprojects | 208cd3f33e8269082d8df01da2cf2aa4b937ebd6 | c6c0de0cebc6e74ddc64b22f587670525d1bdf34 | refs/heads/master | 2023-03-09T11:54:25.953461 | 2021-02-21T13:17:41 | 2021-02-21T13:17:41 | 299,362,704 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 7,276 | r | Statistics_project.R | tmp <- read.table("car.data", header = TRUE, sep = ";")
#nella prima fase si legge analizza il dataset e lo si rende utilizzabile per le prossime analisi
options(scipen = 999)
auto=car.data
library(funModeling)
df_status(auto)
attach(auto)
auto$Years=2018-auto$Year
auto$Price_difference= auto$Present_Price - au... |
65c241b236c615e41e81c01763b8caedda22ee2d | 752a33afa8fab689738da3032b03bdb70f2cce3b | /k_fold_CV_MarkerDensity_plus_MultipleModels_Marcus_Adjusted.All.Models.noParentsSelected.R | 62009cd471c6716cac6d87b53352d4ba32386f40 | [] | no_license | marcbios/Evaluation-of-Genomic-Selection-and-Marker-Assisted-Selection-in-Miscanthus-and-energycane | ee80dcc8531d4982a857198bd2fe963d1635c7f3 | 8adcd870c7b161d8156f371a34a471561f09f4f0 | refs/heads/master | 2020-04-11T09:10:51.454407 | 2019-08-13T16:48:18 | 2019-08-13T16:48:18 | 161,668,897 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 27,604 | r | k_fold_CV_MarkerDensity_plus_MultipleModels_Marcus_Adjusted.All.Models.noParentsSelected.R | run.k.fold.CV.using.rrBLUP <- function(the.phenotypes = NULL, the.genotypes = NULL, the.output.dir = NULL, number.of.folds = NULL,
proportion.to.select = NULL, user.input.seed.number = FALSE, seed.number = NULL, geno.proportion=NULL, ncycles=NULL){
setwd(the.output.dir)
... |
dc0db60ec1ca802ec8f32fe3ce179afbf77c86a4 | 6beb664cff08e5875853f22441fadf0879e713d5 | /R/mvCircTruncNormal.R | 3c54580cd8385849d95cae3dbb317a0db133c9d5 | [
"BSD-3-Clause"
] | permissive | lrodriguezlujan/mvcircular | ef703a53fcb85cf7c01544611e739f79cc0de7a6 | f42966ebfc69a742c0b7cbd63d850e99936d57b9 | refs/heads/master | 2021-01-10T08:17:19.638751 | 2016-04-12T14:59:53 | 2016-04-12T14:59:53 | 45,543,757 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,775 | r | mvCircTruncNormal.R | #' @name mvCircTruncNormal
#' @rdname mvCircTruncNormal
#' @title Multivariate circular truncated normal distribution
#'
#' @description
#' These functions implement diverse functionality over the
#' multivariate wrapped normal distribution given its parameters mu, the circular mean vector,
#' and sigma, the varianc... |
43c9bb69f1a7d98371258b74e30ecfc98825bab6 | eafe89a586691ba69c445cdb27e171e42f7b9602 | /GraphicsColor.R | b00d6143baf5215c5368f7fb2785e4cf2e725ce5 | [] | no_license | BMVerrico/Bio381_ComputationalBiology | 073ff775d727c6435ceaf7104f1b8ffbd79e6984 | 283bc58c9508655b9d3a7d97c7a6b59ed2e3a3fa | refs/heads/master | 2021-09-14T05:53:49.323026 | 2018-05-08T23:10:11 | 2018-05-08T23:10:11 | 117,879,977 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,478 | r | GraphicsColor.R | # ggplot graphics
# 04.17.2018
library(ggplot2)
library(ggthemes)
library(wesanderson)
library(TeachingDemos)
char2seed("short capo")
# colors in graphics
# aesthetics
# large geom (fills) -- pale colors
# small geom (points, lines) -- brighter colors
# dichromat() -- visible with people with RG color blindness... |
67a0d8ff43311db6c9343ba3fbbf57c2929e2614 | 4ea40094ed91786879c2ea4b4b39ca30aa99261f | /r/get_evi_nc_func.R | 525597219618d74a35e7ff4848ed186a2e1c9512 | [] | no_license | Jinyan-Yang/get_evi | c1862308255f6add86c3afcb273687785cf63b21 | 43a35b510179a070f345301e474dd610de64f8ce | refs/heads/master | 2021-06-25T04:53:35.681932 | 2021-03-10T23:21:21 | 2021-03-10T23:21:21 | 214,079,233 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,087 | r | get_evi_nc_func.R | # TERN AusCover. [Year and version number of data product]. [Data product title]. Obtained from [server URL], made available by the AusCover facility (http://www.auscover.org.au) of the Terrestrial Ecosystem Research Network (TERN, http://www.tern.org.au). Accessed [Date accessed].
#This dataset has been developed by ... |
05191368240b244644dca5f8abd67058485b6ba6 | a7e3f0739f609ca7d81468a89348f55633c22d44 | /src/mgqueue/README.R | 33de564fac9f2695a9df7c4cd5deec799bd3c5cf | [] | no_license | kkaloudis/approximate-bayesian-computation | 1d3b0c752a691ac687657d92f12f43dc14fad333 | 6fa28c285661cbb22cd006940f8b86a71f5a7254 | refs/heads/master | 2023-03-18T14:29:28.375220 | 2020-05-28T17:45:16 | 2020-05-28T17:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 662 | r | README.R | Reproduce results for the queueing model in Section 5.3 of the article.
===
queue_wsmc_marginal_intermediate.R: load data set (RData file in the folder),
and approximates WABC posterior based on Wasserstein distance between marginal
distributions of synthetic and observed data sets.
queue_pmmh_intermediate.R: loads r... |
2a5257caf680e8dfc74ce77649f3048d6a4789d4 | 410af461636b0463e12703fd35cd966d6d8d9e27 | /R/stratifier.R | 71de39420810dd93ba5d0b73da7b063e7d542dd4 | [] | no_license | Generalizer/thegeneralizer | a8b354999c178225505f0f02065586e9d1670841 | 1921658e94b99b07188ec0a1c308ae2ec504972f | refs/heads/master | 2022-11-12T08:49:17.682394 | 2020-07-01T18:54:25 | 2020-07-01T18:54:25 | 210,443,988 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,848 | r | stratifier.R | #'Stratify a population data frame.
#'
#'This function is designed to receive a data frame containing information about
#'an inference population.
#'
#'...
#'
#'To complete the generalization process, the user should run this function on
#'their desired inference population data frame and save the output to an object.
... |
982dfb6c33e8a2df558b6fc39a84c77a2b53c795 | df3b3e2cff3f789a3e91e561d7e3121603d51546 | /R/ShroutFleissICC1k.R | 4418f666cb3c4317ee54632019c10501092501db | [] | no_license | humanfactors/superb | 39218b3458d8d8d834b844412a22b9a4bf5a8746 | cdb7a903d84c2a83d4a4c7c94a97a2d4bc2221a4 | refs/heads/master | 2023-07-16T21:47:00.530298 | 2021-09-04T16:52:48 | 2021-09-04T16:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,969 | r | ShroutFleissICC1k.R | ######################################################################################
#' @title Shrout and Fleiss intra-class correlation functions
#'
#' @aliases ShroutFleissICC1 ShroutFleissICC11 ShroutFleissICC1k
#'
#' @md
#'
#' @description The functions ShroutFleissICC1, ShroutFleissICC11
#' and ShroutF... |
e76d1a9d8f8df781dda5f0efde715b86b39f2e8f | 760ef5fb8162d11468999fe7656269dcafe1a12f | /R/swlist.R | 1cadbb66bbb7f59067bc5ccab758b8f8787e9b98 | [] | no_license | FredHutch/swift | 2779abf143c410b4c90528e84bf30be28b073082 | 7a791238b2455362f953066122b7f0b2c3b46862 | refs/heads/master | 2021-04-26T23:27:30.577739 | 2015-01-15T05:52:45 | 2015-01-15T05:52:45 | 27,573,273 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,982 | r | swlist.R | swlist <-
function(container=NULL, format=c("short", "abbrv", "long"), ...,
prefix=NULL, delimiter=NULL)
{
stopifnot(missing(container) || .isString(container))
format <- match.arg(format)
stopifnot(is.null(prefix) || .isString(prefix))
stopifnot(is.null(delimiter) || .isString(delimite... |
a6df03b6d0dc4a86f2a2b667554ef2bea091b9a9 | 6376f6678c494a6f87ddbe5d1d4afc8b2018600c | /R/mod_rural.R | 01693e6350c8265f3ee0728f7828cec5d1663ac4 | [
"MIT"
] | permissive | databrew/hefpi | d6a666dc87f6de8a09781b4cdb56692320fe15c9 | 16c2a877b6ef44a5e8aa456f4964d8b506b7e0cf | refs/heads/master | 2023-04-06T03:06:03.761124 | 2023-03-23T23:02:39 | 2023-03-23T23:02:39 | 242,064,106 | 0 | 1 | NOASSERTION | 2023-03-23T23:02:41 | 2020-02-21T05:45:43 | R | UTF-8 | R | false | false | 16,139 | r | mod_rural.R | # Module recent value subnational
#' @title mod_recent_sub.R
#' @description A shiny Module.
#'
#' @param id shiny id
#' @param input internal
#' @param output internal
#' @param session internal
#'
#' @keywords internal
#' @export
mod_rural_ui <- function(id){
# let leaflet know that selections should persist
# ... |
51380656434fea9b08371e07566096df6c802043 | 41220a1d459375277408dfd5c15530871e1b8585 | /man/get_size.Rd | 6f667a5a3485b65c549af21ee50cdda4a8be9e27 | [
"MIT"
] | permissive | emilyriederer/wigo | 219380437072078436095d0541d79b5a40347d73 | 4ffccd3c65733745fe505a753e715a8f5ba26549 | refs/heads/master | 2020-11-30T20:46:33.119555 | 2020-01-08T12:47:46 | 2020-01-08T12:47:46 | 230,475,879 | 7 | 0 | null | null | null | null | UTF-8 | R | false | true | 292 | rd | get_size.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_size}
\alias{get_size}
\title{Format object size with different units based on size}
\usage{
get_size(x)
}
\description{
Format object size with different units based on size
}
\keyword{internal}
|
dcf518cb66cf58cb6b05bf18f204913378c3369a | 76a61cd24a8e8f8b7a5c146538cc6dc7d93d975a | /r_dataset_titanic.R | 192528b9c4ba6b76806ea024b1416b4b97ec5102 | [] | no_license | yuu-ito/yuu-ito.github.io | 0534b313cca8756ef651c19ae78da7907b5c4387 | b1c3bbb01788007667a5f20219af8173cff7c0b1 | refs/heads/master | 2021-01-01T06:11:46.990074 | 2014-06-18T13:57:01 | 2014-06-18T13:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 937 | r | r_dataset_titanic.R | # refs
# - http://ww2.coastal.edu/kingw/statistics/R-tutorials/loglin.html
data(Titanic)
# ?Titanic
dimnames(Titanic)
require(graphics)
mosaicplot(Titanic, main = "Survival on the Titanic")
margin.table(Titanic, c(2,4))
# オッズ比
(odds_male_survived <- 367/1364)
(odds_female_survived <- 344/126)
(odds_... |
65d75203cf321e8f7b8268d03a4d3b7da01210a4 | 0f669180ea51e8b804b5a2b776398e0e22a7d721 | /scripts/interaction_figs.R | 17585f30cd5fa798046db2e7a6f1c34f373ba10b | [
"MIT"
] | permissive | fergusca/NLA_lk_hydro | e4ac8a171802d374685769976afad5b1df6d8b71 | 9a7090bc001d9052402468a600b8afd1e685defe | refs/heads/main | 2023-06-19T04:59:23.166498 | 2021-07-15T18:37:11 | 2021-07-15T18:37:11 | 382,412,347 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,231 | r | interaction_figs.R | #######################
## INTERACTION PLOTS
## EFFECT SIZE CURVE USING JOHN GELDHOF'S Spreadsheet
## Simplified biplot of VertDD ~ PHDI by Hydrap class
## Will combine for a conceptual figure showing interaction
##
## 7/9/21
#######################
remove(list=ls())
library(dplyr)
library(ggplot2)
library(grid)
li... |
9c17ae3e9c00cbccded93b452d2e5fd8a67d4f2e | f8ce1034cef41685ab2387fa42084ac1ee5c96cf | /chapter13/setleaves.R | 1109c14956aaad6cf0c2e8213c998e590aa7023a | [] | no_license | AnguillaJaponica/RProgramming | ab7e15d99153ebe585745289490e6e3df118a35c | ae1401920b5a52795cffc95bd83922f15761e531 | refs/heads/master | 2020-11-28T10:07:02.579925 | 2019-12-23T15:28:23 | 2019-12-23T15:28:23 | 229,777,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 235 | r | setleaves.R | # リーフの点の種類、文字の大きさ、色、ラベルの大きさの変更
dend %>%
set("leaves_pch", 19) %>%
set("leaves_cex", 0.5) %>%
set("leaves_col", "blue") %>%
set("labels_cex", 0.7) %>%
plot |
627b44c4d31baf61eecf288ea2a7b60e85a54a72 | 0545754d49da01622f87c46f69ae29693a25b6de | /cachematrix.R | 17b7da31adb60859d3a4d377a8abbe0f0dece624 | [] | no_license | cosereagheorghe/ProgrammingAssignment2 | 62cc9e7a2e1f977d38fe20579e63a2b13dfbc546 | 08914b855c10fd29eb05a00f0b5806ab6724a1e6 | refs/heads/master | 2020-12-25T09:08:53.891986 | 2014-06-20T05:23:43 | 2014-06-20T05:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,394 | r | cachematrix.R | ## Description :
## Create a "cache matrix" ie. matrix that keeps its computed inverse
## so that further usage of its invers dont require any computation.
##
## The "cache matrix" is just a list with the set/get methods for fields
## we cache; the cached filds are in the parent envirionment where the
## methods are d... |
c05792072d74ebaaed3ffd85a54ea4c5cce6f2ab | a74fb6bf52760d2df735721a3afb560b4a265cad | /COSTT4_A_vs_PINCP.R | 78bdcaa13239dcf06c8b7aa455254a40802ab63c | [] | no_license | cmw72d/Community-Survey-College-Scorecard | 70a046cfc030dc2027af60ff6e9d2ce879a621c0 | c8b934ce616b1e79cdd898be474105173d849eea | refs/heads/master | 2016-09-14T07:00:38.361129 | 2016-04-25T18:32:58 | 2016-04-25T18:32:58 | 56,654,259 | 0 | 2 | null | 2016-04-20T05:23:01 | 2016-04-20T04:04:39 | Python | UTF-8 | R | false | false | 3,373 | r | COSTT4_A_vs_PINCP.R | library(ggplot2)
library(dplyr)
scorecard = group_by(Scorecard, st_fips) %>% filter(COSTT4_A != "NA") %>% summarize(mean = mean(COSTT4_A))
ss13pusa$ST[ss13pusa$ST %in% "1"] <- "Alabama"
ss13pusa$ST[ss13pusa$ST %in% "2"] <- "Alaska"
ss13pusa$ST[ss13pusa$ST %in% "4"] <- "Arizona"
ss13pusa$ST[ss13pusa$ST %in% "5... |
e240318f56ba8bd32516a14ddf4a192c60f7134f | 192fd3dbc491d3c36bd9351f02cf9b5957ea56d1 | /Methodology/Survival Model Research/ggRandomForests/ggRandomForests-master/man/calc_roc.rfsrc.Rd | b4ca1f348f3286d45ff2e16a6a4a9d0460ad6c81 | [] | no_license | ryerex/Research_and_Methods | d4d211defdbee83e47ecc72c59944c3f60a3bcca | 4010b75a5521c2c18ee624d48257ee99b29a7777 | refs/heads/master | 2023-05-26T01:54:17.048907 | 2020-08-05T16:14:29 | 2020-08-05T16:14:29 | 91,369,271 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,374 | rd | calc_roc.rfsrc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_roc.R
\name{calc_roc.rfsrc}
\alias{calc_roc}
\alias{calc_roc.randomForest}
\alias{calc_roc.rfsrc}
\title{Reciever Operator Characteristic calculator}
\usage{
calc_roc.rfsrc(object, yvar, which.outcome = "all", oob = TRUE)
}
\arguments{
\... |
ef918afaae1b53a7906bdf1862f4781370c1be22 | c123ffc8e23813033f1a8c90c23f6ee28d13ed13 | /Rejection likelihood MCMC ASR Super Subject.R | a2ccea2779ced553230b2c88e283d6dc6c9fde4a | [] | no_license | noahmthomas-nmt/ABC_Chapter | 6aba6de5dc07bb7b9a1976eac867e3511847c02f | 73eda7d3fc9535806599063315f674562d6d1bef | refs/heads/main | 2023-09-05T16:26:57.443473 | 2021-11-02T17:42:01 | 2021-11-02T17:42:01 | 423,571,684 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,107 | r | Rejection likelihood MCMC ASR Super Subject.R | rm(list = ls()) # Clear environment
# ------------------------------------------------------------- Set up
# Rejection based MCMC for ASR
set.seed(43210) # set seed for reproducibility
library("tidyverse") # import tidy function
library("compiler") # import R compiler
library("MCMCpack") # MH sampler algorithm
... |
d75fef31f85df98ebb56d20b6be3a1b18cc6385c | e89596399215b86d90385143b93ef718a5d3fc5e | /tests/testthat/test_ux.R | 49c0c8e8de8c92f232331201e2d99f4187d8a328 | [
"MIT"
] | permissive | fdrennan/rjsonpath | a8096134f3d0684d5632a1fa6e9dcb0d4f9a3c79 | dc6877270d7d688f925dcc386b386a45b3a02e92 | refs/heads/master | 2021-12-14T20:04:08.603066 | 2017-06-03T22:35:30 | 2017-06-03T22:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 81 | r | test_ux.R | context("Error messages")
test_that("errors report missing nested fields", {
})
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.