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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a187ac194853f24262347858a788f01c31d2f861 | 7e7fc42484fa77ebcc6ab36bdce75efb6a8b2362 | /ml02.R | f1177e12b0e1bf670aff7e9c4a70bb1f4d0a3082 | [] | no_license | lee-saint/lab-r | 80b1c9211c92debd095bc51389527c8f0517af22 | 157658d77276dad6a67535e4eb2a580b72af642a | refs/heads/master | 2020-11-30T12:29:44.763574 | 2019-12-27T08:11:42 | 2019-12-27T08:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,113 | r | ml02.R | # k-NN 알고리즘을 이용한 Iris 품종 분류
# csv 파일에서 데이터프레임 생성
iris <- read.csv("data/Iris.csv", stringsAsFactors = F)
str(iris)
head(iris)
tail(iris)
# iris 품종 분류와는 관계없는 변수(특징)인 Id를 제거
iris <- iris[-1]
str(iris)
# Species 컬럼을 팩터로 만들기 - 레이블
iris$Species <- factor(iris$Species,
levels = c("Iris-setosa", "Iri... |
e18b9d1b03af7e98f136496f11f0badfade267c0 | fca1aacc8fbc5b749eb4a4488b5a3702589032eb | /R/get_kth_fold.R | 39709811e92f5fe19b1b51936ba8c3b7d0ff84ab | [] | no_license | vegarsti/fhtboost | 8414ae6b35cf330df8aaf7414849d03ccf10ad5e | 0f76df551e693063b0a8235a7bebd038f658d87a | refs/heads/master | 2020-03-28T01:19:28.572369 | 2019-12-11T07:54:06 | 2019-12-11T07:54:06 | 147,496,116 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 72 | r | get_kth_fold.R | #' @export
get_kth_fold <- function(folds, k) {
return(folds[[k]])
}
|
8f807ac2ef227547f51da3ec6e148df1c85a9ff9 | a249beeec2598922dc69817a68d5bc7e6b1586ab | /tests/testthat.R | 85cfb48fac1cade938c26f8eabb0a4dc1dc4d4bd | [] | no_license | aedobbyn/dobtools | 9c9b56241c65d37d318923bd546a03ce5963b43f | f63664430648e48f6ded8dade3afe55699c025bf | refs/heads/master | 2021-01-19T21:24:33.469420 | 2019-05-03T21:13:28 | 2019-05-03T21:13:28 | 101,250,864 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 99 | r | testthat.R | library(tidyverse)
library(assertthat)
library(testthat)
library(dobtools)
test_check("dobtools")
|
0ccbb07acb96f2f5e3e9bcda3ef2257391ee3bb5 | 130d972b7c45e2f71852fb39840e5b1b099a9dd7 | /scripts/generate_filelist.R | 13ef97162a647636bdb6a47e1af0799ece058450 | [
"MIT"
] | permissive | wheelern/CellProfiler_Pipelines | cbca146394f7d02740b474bf9d1ccf27349cca59 | f7ce9f82d0c3079ecab137073d75ac7c7f1c52c0 | refs/heads/main | 2023-07-26T07:19:20.790658 | 2021-09-08T22:06:40 | 2021-09-08T22:06:40 | 373,529,059 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,706 | r | generate_filelist.R | library(tidyverse)
# setwd('~/Desktop/')
args = commandArgs(trailingOnly = TRUE)
plate <- args[1]
mask <- args[2]
# plate <- '20210521-p01-KJG_641'
# wd <-'Users/njwheeler/Desktop'
# mask <- 'well_mask.png'
image_dir <- stringr::str_c(getwd(), 'CellProfiler_Pipelines', 'projects', plate, 'raw_images', sep = '/')
i... |
c396f31b705fa261984c9358f05f2af4acea7b6f | d32427ca155a12ea40abc6ad8aa38d00a1d2a44b | /man/segmentationHclust.Rd | 1758459250d1c1f9c6f0538d9a537e4581b29aba | [
"Artistic-2.0"
] | permissive | lima1/PureCN | 4d60d1ff266294c97748c4ef3257550da061d799 | df67480ec5fd05b14c7676ea1190af201141966b | refs/heads/devel | 2023-07-19T20:56:20.077565 | 2023-07-18T15:29:48 | 2023-07-18T15:29:48 | 99,367,098 | 137 | 34 | Artistic-2.0 | 2023-07-05T16:56:36 | 2017-08-04T17:49:35 | R | UTF-8 | R | false | true | 2,712 | rd | segmentationHclust.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentationHclust.R
\name{segmentationHclust}
\alias{segmentationHclust}
\title{Minimal segmentation function}
\usage{
segmentationHclust(
seg,
vcf = NULL,
tumor.id.in.vcf = 1,
normal.id.in.vcf = NULL,
min.logr.sdev = 0.15,
prune... |
22ece906adc21887d99c60642def2b40bb2a7ff4 | 1ade2742a79ba69f8a63658aa3c17ac914ff14e2 | /Misc Code/misc_spatial_sims.R | 7b539181e8427da32f6ece5caabe3659a3d9f653 | [] | no_license | lou0806/Louis_Ye_Honours_Project_Coding_R | 05cdf4d8ced05c5cc73b39111eb88ef3572649a4 | 0b6f982ef1b99b8fe0690e897477d4bb0b1d1a75 | refs/heads/master | 2023-01-24T19:47:12.298115 | 2020-11-19T11:09:29 | 2020-11-19T11:09:29 | 256,194,821 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,864 | r | misc_spatial_sims.R |
output <- SSB.mod(y = matrix(y[,1],ncol = 1), z = z, x = x, n.terms = n, DOF=1,mx.sige=1,mx.sigs=1)
points(clusters_dist, type = 'p')
plot(z[,1],z[,2],col=output$membership, type = 'p', pch = 19)
points(clusters_dist, type = 'p')
#unique(output$membership)
#points(t(output$knot[,unique(output$membership)]), type = ... |
14d6b4a6745fcef03e59118277688f047eb9dd4a | 36975485c360081e1a1cd3bee16df40940221266 | /Matrix.Differences.LargerThanOneAndAHalfSD.R | d575eed6f3b21c1083b8b40f64836def54d114c2 | [] | no_license | darokun/Others | 7005291c7f538cedae626b1a2c2c26d246a843e5 | 2c85abb5a41ab7512758f3dff67300a012ac774e | refs/heads/master | 2021-01-10T12:52:09.342865 | 2017-01-11T14:50:33 | 2017-01-11T14:50:33 | 45,177,486 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,062 | r | Matrix.Differences.LargerThanOneAndAHalfSD.R | ### Script for Miryam
# you may skip these two steps
# generating 102 (6*17) random values of mean 5 and sd 1.5
set.seed(1234)
x <- rnorm(102, 5, 1.5)
# building a matrix from x, with 6 rows and 17 columns
data <- matrix(x,nrow=6,ncol=17)
# you may start here
# sorting out the first column
sort(data[,1])
# create ... |
34476bf4b050f7752994ff991553dd496bb2047c | c0a14859f57647064f89449005293d04777ef30f | /older_scripts/Oct18.R | 956f76f22108204d4ff94df6fe18e19570cf7895 | [] | no_license | efeichtinger/LittleBlueDinos | d66905987f13cd9a7299365a1ba44ff970b90826 | c993c31c2e1ed54f5746aa95472d3ca6b7c64a2f | refs/heads/master | 2020-04-06T22:03:47.645177 | 2017-07-27T19:46:07 | 2017-07-27T19:46:07 | 50,062,977 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,556 | r | Oct18.R | ### 1981 to 2015
## Started 10-18-2016
library(survival)
library(ggplot2)
library(car)
library(coxme)
library(kinship2)
library(plyr)
library(corrplot)
#1981-2015
aprilD <- read.csv("April_Census_Dates.csv")
aprilD$CensusDate <- as.Date(aprilD$CensusDate, format = "%m/%d/%Y")
jays <- read.csv("Erin_HY_1981.csv")
... |
00cac62f2553a3c24aafe673c6fbf2b7a5aeba55 | c85ab5fc908a443eac6e96f6818857842346a6e7 | /code/sandbox/04a_geo_date_data.R | bfaedbed89f89b9d1e1beea6adaf887f332873dc | [] | no_license | erflynn/sl_label | 34d4df22f651a44317a9fb987970dfed6e1731a7 | 6e81605f4c336e0c1baa07abc168c72c9a9eaceb | refs/heads/master | 2023-04-01T01:57:48.862307 | 2021-03-30T18:27:36 | 2021-03-30T18:27:36 | 244,698,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,344 | r | 04a_geo_date_data.R | # 02a_geo_date_data.R
# E Flynn
# 07/20/2020
#
# Get data for microarray samples. Some of this is in refine-bio studies but
# it has high missingness --> we will query GEOmetadb and ArrayExpress directly.
#
# END GOAL:
# have these tables so we can make a figure:
# 1. sample | organism | data_type | sex | studies | sam... |
9624c2be1d4ad7bf0de6750a360fa819b8fa725f | 8b306c29c6fb2355e624dad4775c62978b571287 | /man/alphaMcmcPost-methods.Rd | d616f774676a505d78db43abc65124fc52807272 | [] | no_license | sba1/mgsa-bioc | 079552a6a1605d125185fc34823ca9f1bc68a87d | e33a2ebb0498b33bba34ba79ca7565a29f622577 | refs/heads/master | 2021-06-08T13:31:23.187732 | 2021-05-16T16:29:59 | 2021-05-16T16:29:59 | 14,407,304 | 4 | 5 | null | 2017-04-03T18:45:04 | 2013-11-14T21:18:32 | R | UTF-8 | R | false | false | 584 | rd | alphaMcmcPost-methods.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/MgsaResults-class.R
\docType{methods}
\name{alphaMcmcPost}
\alias{alphaMcmcPost}
\alias{alphaMcmcPost,MgsaMcmcResults-method}
\title{posterior estimates of the parameter alpha for each MCMC run}
\usage{
alphaMcmcPost(x)
\S4method{alp... |
7c2fc7ef673391845fc1d13fafb7474fe6fffaaf | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.management/man/appregistry_get_application.Rd | 772ef6b48a53abe7447c62fbc0b91d64331e9b25 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 908 | rd | appregistry_get_application.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/appregistry_operations.R
\name{appregistry_get_application}
\alias{appregistry_get_application}
\title{Retrieves metadata information about one of your applications}
\usage{
appregistry_get_application(application)
}
\arguments{
\item{applica... |
cbd28a372389151b10e4f398b0d70176346c2559 | 26d23229dc13b530c86ebc58abb20e3507153a1a | /runBeta.R | 63091f01318c919c182269cd4a1defc17ad8eab8 | [] | no_license | hajaramini/KIAT_F1 | 8053a8d0b01be4ed70e49340ada4f77c862243d9 | b94fa1e649ad99a6ab3b89965eb38b1b0e97fcb7 | refs/heads/master | 2021-04-28T08:36:57.748743 | 2018-02-20T19:01:22 | 2018-02-20T19:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,073 | r | runBeta.R | library(MBASED)
library(tidyverse)
TwoSample <- function(annotatedData, mySNVs, genotype1, genotype2, numSim = 0){
RO1 <- paste(genotype1, "RO", sep = "_")
AO1 <- paste(genotype1, "AO", sep = "_")
RO2 <- paste(genotype2, "RO", sep = "_")
AO2 <- paste(genotype2, "AO", sep = "_")
RAB1 <- paste(genotype1, "refB... |
b93dc2a80fd12155ad8d9b8626051c2c9d433314 | 1431062791ec634e6e2220743345ed0aa356e852 | /tests/testthat/test-sklearn.R | 9eed41b176fb2c9b1c43815b4a66699adca5a892 | [
"MIT"
] | permissive | news-r/gensimr | 4da573e4e4c79b64ff71c0a0e6856626ac27e93e | 8e7f4408501e954c50499c2dd4dcf6bbf415af51 | refs/heads/master | 2021-06-27T12:27:55.009018 | 2021-01-07T13:54:34 | 2021-01-07T13:54:34 | 198,456,476 | 36 | 5 | NOASSERTION | 2019-07-29T08:02:26 | 2019-07-23T15:18:46 | R | UTF-8 | R | false | false | 3,534 | r | test-sklearn.R | test_that("sklearn works", {
# set seed
seed <- 42L
set.seed(seed)
reticulate::py_set_seed(seed)
# preprocess
data(corpus, package = "gensimr")
docs <- prepare_documents(corpus)
dictionary <- corpora_dictionary(docs)
corpus_bow <- doc2bow(dictionary, docs)
corpus_mm <- serialize_mmcorpus(corpus_bow... |
61befe770924a87201a82ce32707380878cfe9bb | 81d2188a3ac862d66c7a4110a8b0f3ee58680bfe | /update document/RShiny-amr/ui.R | 5d87054db545b9f3993cc2290b4b6a66e570a846 | [
"Apache-2.0"
] | permissive | YaraSabry96/NTI-Project- | f46a53ed96984bee0a65e4f5bdbfc3c296a0ae91 | e174b377a757c6ae7c1a3ebd2054873ec2e54507 | refs/heads/master | 2020-04-09T11:34:12.560957 | 2018-12-04T07:34:04 | 2018-12-04T07:34:04 | 160,315,143 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,648 | r | ui.R |
library(shiny)
library(shinydashboard)
shinyUI(
dashboardPage(
dashboardHeader(),
dashboardSidebar(
sidebarMenu(
menuItem("upload", tabName = "upload", icon = icon("dashboard")),
menuItem("Analysis", tabName = "analysis", icon = icon("dashboard")),
menuItem("Visualizat... |
83307d51bc7917c087893f0970f8c0dce179a0fc | a66068dd2e2b72d3fcff2a9581c92cf1098f3761 | /2_data_visualization/stratify_and_box_plot.R | 75f0b0b1e91463e910123a5c626b7018cd002eba | [] | no_license | marc-haddad/data-science-cert-journey | 05f67a26f7e04b0319296b43960c5074ea18fa84 | 00c4e33e67d8b61aa63bbc9b19ce66f482f94ed4 | refs/heads/master | 2020-11-26T02:14:05.964650 | 2020-04-25T17:25:59 | 2020-04-25T17:25:59 | 228,933,878 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 305 | r | stratify_and_box_plot.R | p = gapminder %>%
filter(year == 2010, !is.na(gdp)) %>%
mutate(region = reorder(region, dollars_per_day, FUN = median)) %>%
ggplot(aes(region, dollars_per_day, fill = continent))
p + geom_boxplot() +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
scale_y_continuous(trans = "log2") |
eb7c7a9daa53fe172c5e3ad6a725447584636675 | bed336fc87b09834348f6c3de364953c7558d8bb | /R/mosaicsRunAll.R | fd692bffd2e945700c5fb8c8076799c2f5f8bc5c | [] | no_license | keleslab/mosaics | 7bc6b95376d8b8a78427194ef3181be67020de40 | 786f5db1438015aaa6bac6c423e7b3655e5df946 | refs/heads/master | 2021-07-14T18:00:09.109482 | 2020-02-27T00:37:56 | 2020-02-27T00:37:56 | 38,325,192 | 1 | 0 | null | 2016-05-02T17:50:57 | 2015-06-30T18:11:55 | R | UTF-8 | R | false | false | 18,815 | r | mosaicsRunAll.R | mosaicsRunAll <- function(
chipFile=NULL, chipFileFormat=NULL,
controlFile=NULL, controlFileFormat=NULL,
binfileDir=NULL,
peakFile=NULL, peakFileFormat=NULL,
reportSummary=FALSE, summaryFile=NULL,
reportExploratory=FALSE, exploratoryFile=NULL,
reportGOF=FALSE, gofFile=NULL,
... |
a35d7fcdd7208a41886173648aa6a08c26693796 | a45bdb32cd9b137bc8d6744186d997a80315deb4 | /code/prepare_data/delete_temp_vital_rate_files.R | b75ce7091e0d8ade5d2eb8ab3e3e4c9e357a89f2 | [] | no_license | akleinhesselink/forecast-plants | afff9bd51bd19dd37aeaed020eb84d857195874f | 272774addd8be03492f8fc095bd36a6089eaf522 | refs/heads/master | 2023-08-22T23:59:24.015321 | 2023-08-14T16:11:03 | 2023-08-14T16:11:03 | 181,106,169 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 318 | r | delete_temp_vital_rate_files.R | rm (list = ls())
combos <- expand.grid(spp = c('ARTR', 'HECO', 'POSE', 'PSSP'), vr = c('growth','survival', 'recruitment'))
temp_files <- file.path( 'data/temp', paste0( combos$spp, '_', combos$vr, '.RDS'))
to_remove <- temp_files[ file.exists(temp_files) ]
file.remove(to_remove) # Clean up temporary files
|
44cdc23516ecd65aa3af3b3daf9b2dc31fa23ac7 | 8ab72a394d8ece44c405202b77866bfa6d20001a | /R/download.R | 9a271ffc5f421af7931aa461799542fc2499acbd | [] | no_license | ateucher/era5landDownloadTools | bdbcc0c618d11a9fadba94b344c6e39ca410604a | 3fa887e67bde245daae497808a707d12c13018ae | refs/heads/master | 2023-08-12T04:04:50.254279 | 2021-10-01T17:46:26 | 2021-10-01T17:46:26 | 414,678,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,180 | r | download.R | #' Download hourly
#'
#' This function
#'
#' @param aoi any sf object
#' @param aoi_name string
#' @param years numeric from 1979-2021
#' @param months numeric from 1-12
#' @param days numeric from 1-31
#' @param hours numeric from 0-23
#' @param variables 'surface_net_solar_radiation','2m_temperature','total_precipita... |
92fc412fb771eb61314c3c3e0d4522a2856c5a25 | 99439d0385ef8ccdd69ff84c69e628582613f9d4 | /comparisonoftails.R | f52f675022ea178861ba801c4c962c1e1354d21c | [] | no_license | kanishkasthana/TADLocator | 017e325271b6bc221e2c5e3a4ac04ac39f52682c | 7baa3a66bd5a76f61436075c2de6bfc8d0b7bafd | refs/heads/master | 2021-03-12T21:37:23.845659 | 2015-01-20T21:37:59 | 2015-01-20T21:37:59 | 27,063,829 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 342 | r | comparisonoftails.R | tailbins=function(stringency){
tailbins=apply(all_rates,2,function(rates){
mn=mean(rates);
s=sd(rates);
new_rows_left[rates<=(mn-stringency*s)]
})
return(tailbins[[6]])
}
out=sapply(1:length(sts),function(i)
{
out=length(intersect(rep1[[i]],rep2[[i]]))/min(length(rep1[[i]]),length(rep2[[i]]));
... |
5794246bca8e45108ea17009af02a1167aeff218 | b1a12b171097fcb0b2a6f7a10e0ab7afdf41aac1 | /man/gaugeArrow.Rd | f420a1ecb45968338ccba8208e121b1abe9ed9cc | [] | no_license | myndworkz/rAmCharts | 7e1d66002cbca9ef63e1d2af6b4e49a1ac7cd3c3 | 6ea352cab2c9bc5f647447e5e7d902d9cbec0931 | refs/heads/master | 2021-01-14T13:06:28.947936 | 2015-07-29T12:34:13 | 2015-07-29T12:34:13 | 39,955,321 | 1 | 0 | null | 2015-07-30T14:37:43 | 2015-07-30T14:37:43 | null | UTF-8 | R | false | false | 453 | rd | gaugeArrow.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/GaugeArrow.R
\name{gaugeArrow}
\alias{gaugeArrow}
\title{Constructor.}
\usage{
gaugeArrow(fillAlpha, alpha = 1, axis, ...)
}
\arguments{
\item{\code{...}:}{{Properties of GaugeArrow.
See \code{\url{http://docs.amcharts.com/3/javascrip... |
f5e9c6575d9a3cca64030e7afdddf598d393de97 | fc36112ec2687ee3a56086fc121a8e8101c5d62c | /man/validate_title.Rd | 817854c6a35947a05b575ab34df19ada7d596ee0 | [
"MIT"
] | permissive | EDIorg/EMLassemblyline | ade696d59147699ffd6c151770943a697056e7c2 | 994f7efdcaacd641bbf626f70f0d7a52477c12ed | refs/heads/main | 2023-05-24T01:52:01.251503 | 2022-11-01T01:20:31 | 2022-11-01T01:20:31 | 84,467,795 | 36 | 17 | MIT | 2023-01-10T01:20:56 | 2017-03-09T17:04:28 | R | UTF-8 | R | false | true | 440 | rd | validate_title.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate_arguments.R
\name{validate_title}
\alias{validate_title}
\title{Validate dataset title}
\usage{
validate_title(fun.args)
}
\arguments{
\item{fun.args}{(named list) Function arguments and their values.}
}
\value{
\item{character}{Desc... |
e64231562163dc78466942ed3c9ac5fe5c297162 | c1bf7397ddc833b7ba9617e22ee2bdc86e646ee4 | /rCode/sql for app_version.R | a0134561c232a92b08807e86daf8e2283af9cf3e | [] | no_license | cxq914/Data-Science | 1b5f6f9ac089d098b8d6c91d722dbf70f75e5613 | 6f9648cf323f8cfbcd69aa6b97991f9162013d34 | refs/heads/master | 2021-01-19T18:55:56.696529 | 2016-02-18T00:34:11 | 2016-02-18T00:34:11 | 21,634,205 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,356 | r | sql for app_version.R | library(openxlsx)
library(scales)
library(DBI)
library(RPostgreSQL)
# create a connection
# save the password that we can "hide" it as best as we can by collapsing it
pw <- {
"SJux7eBpuZRN"
}
# loads the PostgreSQL driver
drv <- dbDriver("PostgreSQL")
# creates a connection to the postgres database
# note that "con... |
1f2f5234eca6a2a315a9f15af35615c8f5b4583a | 1f9b2393f1ad1408b5f41723d76b93a6c3817640 | /airflow/scripts/R/upsert_tidyverse_data.R | 5e107e1336a37c327f3567c20495c0aabc839b73 | [] | no_license | dscheel42/productor | 259d8bf31da3e12dd3153af5c4739c06c8348990 | 413387ed6b35e503777820ffeb47e8f625d36064 | refs/heads/master | 2022-12-03T12:04:35.841905 | 2020-07-29T21:21:18 | 2020-07-29T21:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 487 | r | upsert_tidyverse_data.R | library(productor)
(function() {
con <-
postgres_connector(
POSTGRES_HOST = Sys.getenv('POSTGRES_HOST'),
POSTGRES_PORT = Sys.getenv('POSTGRES_PORT'),
POSTGRES_USER = Sys.getenv('PRODUCTOR_POSTGRES_USER'),
POSTGRES_PASSWORD = Sys.getenv('PRODUCTOR_POSTGRES_PASSWORD'),
POSTGRES_DB = ... |
0d22545498337cf9195a8deaa3de8451f23c7fce | 93a5d1061c7ab7e9f206bbba4f7db15af6402cff | /tests/testthat/test-export_list.R | bf7b239a6335d3ba0f5dab90013f16bb1f3622d8 | [
"MIT"
] | permissive | medpsytuebingen/medpsytueR | 5167020e7883835df31cbd136bff13aa1c1fa832 | a9e99e7b4a45d0db27fd37218b87cb44d12a3b5b | refs/heads/master | 2018-11-23T05:26:07.233791 | 2018-10-12T08:43:31 | 2018-10-12T08:43:31 | 122,198,819 | 1 | 1 | null | 2018-09-04T10:59:52 | 2018-02-20T13:01:56 | R | UTF-8 | R | false | false | 182 | r | test-export_list.R | context("test-export_list.R")
l <- list(a = c("a", "b"),
b = c(1, 2, 3))
v <- c(1, 2, 3)
test_that("fail if no list is provided", {
expect_error(export_list = v)
})
|
7486b7a1826fa187344939a93fd86ee8d10744c8 | 9cbc8d7ae4c57f4948d47f11e2edcba21a1ba334 | /sources/modules/VETransportSupply/man/BusEquivalents_df.Rd | 8b412c21de55ebb6adb44369ca4e626590682213 | [
"Apache-2.0"
] | permissive | rickdonnelly/VisionEval-Dev | c01c7aa9ff669af75765d1dfed763a23216d4c66 | 433c3d407727dc5062ec4bf013abced4f8f17b10 | refs/heads/master | 2022-11-28T22:31:31.772517 | 2020-04-29T17:53:33 | 2020-04-29T17:53:33 | 285,674,503 | 0 | 0 | Apache-2.0 | 2020-08-06T21:26:05 | 2020-08-06T21:26:05 | null | UTF-8 | R | false | true | 1,226 | rd | BusEquivalents_df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AssignTransitService.R
\docType{data}
\name{BusEquivalents_df}
\alias{BusEquivalents_df}
\title{Bus equivalency factors}
\format{A data frame with 8 rows and 2 variables containing factors for
converting revenue miles of various modes to bus ... |
0957dbb62b57d8d34aca88f0dc26d36cf1c27dda | 9de3ee2a75cfb11724662e53651c11d01d7b4b1b | /inst/tests/CopyOfcheck_incDemo.R | 3b1e3cf651a672caf62c16566cde75b691adfff1 | [] | no_license | markusfritsch/pdynmc | 52a3d884c907380085a932f661d2e2ae61bf57b8 | 62f96a72438260fb589aaaba750696a03dfd47d2 | refs/heads/master | 2023-08-09T07:42:42.064521 | 2023-07-26T10:50:46 | 2023-07-26T10:50:46 | 229,298,521 | 6 | 3 | null | 2022-04-26T08:48:24 | 2019-12-20T16:23:37 | R | UTF-8 | R | false | false | 11,956 | r | CopyOfcheck_incDemo.R |
rm(list = ls())
# install.packages("pdynmc")
library(pdynmc)
# install.packages("pder")
library(pder)
data("DemocracyIncome", package = "pder")
data("DemocracyIncome25", package = "pder")
dat <- DemocracyIncome
# dat <- DemocracyIncome25
rm(DemocracyIncome, DemocracyIncome25)
head(dat)
tail(dat)
str(dat)
... |
508e1cc8e8ea438b47d0ca7213899110f5de3d7e | 7322d471211d096da536eb3383753fd75c994807 | /res/rol-5.r | 0cfb1893b51a091dc8c3536b128772a9cc9b2ede | [] | no_license | HeitorBRaymundo/861 | fbe09d7d226511895a493174b90fcdfe0a7f490d | cfcedf9097280073d4325fc9c5d7e28ba3633a52 | refs/heads/master | 2020-06-28T18:22:50.598143 | 2019-11-01T21:45:39 | 2019-11-01T21:45:39 | 200,306,264 | 0 | 0 | null | 2019-11-01T21:46:10 | 2019-08-02T22:48:20 | Assembly | UTF-8 | R | false | false | 1,274 | r | rol-5.r | | pc = 0xc002 | a = 0x02 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc004 | a = 0x02 | x = 0x05 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc007 | a = 0x02 | x = 0x05 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | MEM[0x0305] = 0x02 |
| pc = 0xc00a | a = 0x02 | x = 0x05... |
c7cb16f3d600bf13e63fdd73f272e17175eab423 | da112c3e7e600b5bb42723eac31899260173de8a | /R/cprd_medcodes.R | ba9170565a3e996aea229255ddf7586a1a61db8b | [] | no_license | rosap/test | b1b01d039ed895be7cbff04ac23d1661b4dec76b | 604585f7bb9350db1b0fe7ddc6457083aeb3936b | refs/heads/master | 2020-04-12T09:39:23.594450 | 2016-10-07T15:01:47 | 2016-10-07T15:01:47 | 63,771,068 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,001 | r | cprd_medcodes.R | #' Produce a dataset of CPRD medcodes with frequencies of patients in the clinical table
#'
#' This function aggregates all distinct patients matching each CPRD medcode in the clinical table
#'
#' Note that this does not translate to Read/OXMIS codes.
#' This function should be fast because all of the heavy lifting h... |
3baf425e096132ee90509f2bcf3eaa05546310aa | 642015754f6334c883d87fc35d4ab83e3e1f2f5c | /metacell/scrdb/internal_tests/test_datasets.R | ea3821389431ef69ee15de81e1ad3a49afac56c2 | [] | no_license | tanaylab/hematopoiesis2018 | 343d226e56842e0ccac088c9ced77a0e4a843e7e | 5b83d8e5addbc827a39b85d12bdc5d03d5e97673 | refs/heads/master | 2020-07-17T14:08:29.587073 | 2018-06-19T07:18:38 | 2018-06-19T07:18:38 | 206,033,624 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 904 | r | test_datasets.R |
source("./tests/testthat//workflow.R")
test_all = function(label="base", # what are we testing now? will be part of the output pathe, should be a valid sub-directory name (no "/").
datasets = c("e9", "hsc_tier3", "melanoma"), #all contain a matrix called umis
datadir = "/net/... |
726353cc692d0ba2ba31ee5b6a0d4041ce9a36a9 | 2693a682078fe71bed78997f82b71b82c0abd0ad | /modules/emulator/man/jump.Rd | 1e3b9d1515d89a0933cfd0dc228aef1435d98b12 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ashiklom/pecan | 642a122873c9bca4f7ac60f6f260f490f15692e4 | 52bb31866810e2c93ddf540f2065f41ec008627b | refs/heads/develop | 2023-04-01T11:39:16.235662 | 2021-05-24T22:36:04 | 2021-05-24T22:36:04 | 28,980,311 | 3 | 0 | NOASSERTION | 2023-04-01T20:08:15 | 2015-01-08T18:44:03 | R | UTF-8 | R | false | true | 238 | rd | jump.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jump.R
\name{jump}
\alias{jump}
\title{jump}
\usage{
jump(ic = 0, rate = 0.4, ...)
}
\arguments{
\item{rate}{}
}
\description{
jump
}
\author{
Michael Dietze
}
|
d0bc70877bda77f2e6c2ea875fe23c6fcaf6d022 | 615dd5f834a08734a2ec9586233a7a8dfaf7d2dd | /server.R | a858433960429c552cca1e3a282b14cd8b51b344 | [] | no_license | lingani/DS_CapstoneProject | ba9077902e32b886e95426bc50d1f8d4a3a9653c | fd589312034bde278c4fac93bbb4a204f90f3ee2 | refs/heads/master | 2020-05-18T07:37:41.657407 | 2015-04-26T04:05:55 | 2015-04-26T04:05:55 | 34,597,197 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 952 | r | server.R |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
devtools::install_github ("lingani/swiftcap")
library(swiftcap)
data(model)
shinyServer(function(input, output, clientData, session) {
pred <... |
2592586ca27054b8c9361efbb4fe2328ceaee4d8 | afc0d3af1c1600408eee99e1dc75d76e16a255e9 | /keep_potential_hits.R | 2ae633d07fc068ef6d5280c40088521aeaa876b6 | [
"BSD-3-Clause"
] | permissive | ruppinlab/tcga-microbiome-prediction | d2ac408c2b46ca997839c154400f4ccd9b9552fb | 6f90aa76e41afa3689037a620258f4e6f0dabded | refs/heads/master | 2023-04-08T05:01:19.436964 | 2022-06-04T14:10:28 | 2022-06-04T14:10:28 | 280,190,541 | 15 | 8 | null | null | null | null | UTF-8 | R | false | false | 469 | r | keep_potential_hits.R | # Keep comparisons that have a p-value (p_adj is not NA) and for which
# the comparison vs. clinical covariates is in the right direction.
suppressPackageStartupMessages({
library(dplyr)
library(readr)
})
args <- commandArgs(trailingOnly = TRUE)
results_table <- read_tsv(args, col_types = cols())
results_table <-... |
b7308a134c63f5f7805ee6a04e8edba78e5d077f | bb54e684f4d38ab7762aefa24e3a3cbf9a6c8dcd | /R/addCronjob.R | cf66b6bafc5fba2a41018dda23d4c8d05b84f279 | [] | no_license | ebailey78/crontabR | 385cec7ac97a8719590c6da0aa3d4d8546912376 | b072ecc6a679c23aaea7618fcf34d3661b4a6605 | refs/heads/master | 2020-05-22T01:16:47.456220 | 2019-05-31T18:23:13 | 2019-05-31T18:23:13 | 59,335,938 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,188 | r | addCronjob.R | #'Task Scheduling
#'
#'Add/remove a cronjob to automate an R script to your personal crontab
#'
#'@rdname task_scheduling
#'
#'@param name A unique name for this cronjob
#'@param desc A description of what the script does
#'@param env_vars A list of environment variables that need to be set for this cronjob
#'@param sc... |
a5fa02e79019197fac0c39dffd2d8c4d401f97d6 | b8652ccef6a738eaff1658f1ccc22ebcaefded75 | /plot3.R | 87e70f7ebc4a4fe45532cc30c503f81fac56bc3a | [] | no_license | lifan0127/ExData_Plotting1 | 81a77449cab34708bc786ce59b9f127efa900964 | 7a68037c4f09e17281ed1da32cfc439c349d4c37 | refs/heads/master | 2020-12-11T01:40:41.329411 | 2014-05-11T19:28:26 | 2014-05-11T19:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,100 | r | plot3.R | # Coursera Data Science Specialization (JHU)
# 4. Exploratory Data Analysis
# Fan Li
# 5/11/2014
# Import data
library(lubridate)
data <- read.table("household_power_consumption.txt",
header=TRUE,
sep=";",
nrows=2500000,
as.is=TRUE)
# Conver... |
d3ea63a1ab1188b5a7b4ce771b5197d93e12b28f | 4bfe6f2e9226f8b27b3c0c3a8160135e7d336b5b | /man/lm_outliers.Rd | bb2951884445a2ad692e00a936b2b717522a00b1 | [
"MIT"
] | permissive | cedricbatailler/marguerite | 7f905a8cef0b4744a7600d690ecc312a0bc5316d | 301aafc5243898bb5338260ea07b44102d772aa4 | refs/heads/main | 2022-06-24T04:25:34.721092 | 2022-06-13T11:04:56 | 2022-06-13T11:04:56 | 292,825,108 | 1 | 0 | NOASSERTION | 2022-06-13T11:04:57 | 2020-09-04T10:58:53 | R | UTF-8 | R | false | true | 1,115 | rd | lm_outliers.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lm_outliers.R
\name{lm_outliers}
\alias{lm_outliers}
\title{Returns outlier indices}
\usage{
lm_outliers(data, formula, id, verbose = FALSE)
}
\arguments{
\item{data}{A data.frame.}
\item{formula}{A model formula.}
\item{id}{A column name f... |
5c5c57f9c59f096a040a61b8ae1b11c7ec908d6e | d8a28f2f5a8d532da596a433aa75348187befa76 | /functions/func_openEVI.R | ebb75f3dde1ed0800d94c4b212765e28bea4b0b4 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nreinicke/EVIPro-Fleet-Gen | 9340e5139024a7e1997ec5c55e89df90a946126d | 3892d9eefeaa57801ff3daa12b18fa2383d74220 | refs/heads/master | 2023-01-10T15:45:36.795840 | 2020-07-10T19:20:13 | 2020-07-10T19:20:13 | 283,615,589 | 1 | 0 | NOASSERTION | 2020-07-29T22:34:45 | 2020-07-29T22:34:44 | null | UTF-8 | R | false | false | 2,561 | r | func_openEVI.R | # Author: Schatz Energy Research Center
# Original Version: Micah Wright
# Edits: Jerome Carman, Max Blasdel
# Version: 2.1
# Description: wrapper function to create a PEV fleet
# Required Variables
# evi_raw: data table of EVI-Pro charge session data
# fleet: integer specifying the size of the desired fleet
# pe... |
833ed0854b11105295be9c28f8f1c4627639dabf | 9b230b93b14b1dbdf606044f31cdc934c2849894 | /three_way_admixture/finemap_distributions_ld.R | 6eaa4146798b24563d1c6420451601d969b132c0 | [] | no_license | marcustutert/thesis_code | 237362acaf4b37b250db35ed63146f3f816d6642 | fd058f2bd46b36451e4047e18fc67036749b816a | refs/heads/main | 2023-06-23T09:21:22.398256 | 2021-07-20T10:26:30 | 2021-07-20T10:26:30 | 354,377,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,470 | r | finemap_distributions_ld.R | #Run FINEMAP across the distributions of LD
#We will do this (eventually) with summary statistic imputation added in, but for now just using the true sumstats data
#We need to calculate the FINEMAP statistics across the true GWAS haplotypes, the different reference panels, including those combined- and my weighted refe... |
feec6a830f222cd9776c5454a3f35fe5fe959447 | 99e57cd556aef28c5c753895589372eed8f5cab7 | /man/raw_to_char.Rd | 81e10f1f7ed19973b25ffc79799a610075a2271f | [
"MIT"
] | permissive | Athospd/forkliftr | 83a051bcbe9859f4b0c91786237993d5ee0bb4d4 | a88f89fa4793e3fcc2362ea3b3a3be028fa865de | refs/heads/master | 2020-04-05T12:10:25.139392 | 2017-08-13T20:20:41 | 2017-08-13T20:20:41 | 95,243,073 | 3 | 1 | null | 2017-07-03T22:54:23 | 2017-06-23T17:47:50 | R | UTF-8 | R | false | true | 337 | rd | raw_to_char.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guess_aux.R
\name{raw_to_char}
\alias{raw_to_char}
\title{Auxiliar function to convert vector of raws to chars}
\usage{
raw_to_char(raw)
}
\arguments{
\item{raw}{Vector of raw characters}
}
\description{
Auxiliar function to convert vector of... |
074368d196819c36425220b67e274e874d77d727 | 98ea0c910eedcb82659f23ef9a5811c2e4fdca26 | /cachematrix.R | 3dc5474a4a6561f7affce9f3de466f2ced804210 | [] | no_license | Shivali-Vij/ProgrammingAssignment2 | ee208ebaad865d7b9c670defdecb74c1387f4c4b | 8775571499467ccb84c66ba3cc5bf67fa8762ac8 | refs/heads/master | 2021-01-22T19:23:11.814161 | 2014-10-25T17:55:12 | 2014-10-25T17:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,322 | r | cachematrix.R | ## Matrix inversion is usually a costly computation and their may be some benefit to
##caching the inverse of a matrix
##rather than compute it repeatedly
## function makeCacheMatrix creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m<-matrix()
set <- f... |
e39812c52c7665cb07ba16187ad9440419191207 | 797bdd4783d74de145977a64c39ec4b9b1b58e87 | /uusi_tapa.R | 4696b1039ce3d285f18889a7f2d1b244491327f5 | [] | no_license | LCHawk/op | bcbca1661fc234924a62486915d747c737853083 | b17a62bdfc7923772d3baeb2da717e95b0aa9a07 | refs/heads/master | 2022-11-23T11:29:01.764992 | 2020-07-31T13:50:56 | 2020-07-31T13:50:56 | 283,794,929 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,811 | r | uusi_tapa.R | library(tidyverse)
library(rvest)
pankit <- read_html("https://www.op.fi/op-ryhma/osuuspankit/osuuspankkien-omat-sivut")
pankit <- pankit %>% html_nodes("a") %>% html_attr("href")
pankit <- pankit[grepl("www.op.fi",pankit)]
hn<-list()
#Tehdään aluksi yhdellä ja tutkitaan hallintoa
for(i in 1:length(pankit)){
pankk... |
3e0482c0f673dcb29063b5f067283e6d8199a588 | 8f061026073ec0dbfbb36342d560db8d85ec6970 | /Hands-on/0.Profiling/Profiling.R | 5009377762275a5290365642304f56dce7e9abe0 | [] | no_license | bbrydsoe/R_for_HPC | 7b4f287521dc9be1112482d5bf4ce3c269d6d0dd | 796349a6d964f2dac44530329426bfb9b5bb7642 | refs/heads/main | 2023-03-08T20:22:15.845637 | 2021-02-26T07:44:07 | 2021-02-26T07:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,855 | r | Profiling.R | #---
#title: "Exercises"
#author: "Pedro Ojeda, Birgitte Brydsö, Mirko Myllykoski"
#date: "Feb., 2021"
#output: html_document
#---
## 1. Exercise
#Use the following template by filling the *FIXME* strings with the corresponding
#R code. In this exercise, you will use the **tictoc** package to time different
#parts of... |
f3500847747d39242bfd542c08667b04a7148466 | b4d40b3981527b4879d1c4e9411c8d051ed1539c | /corr.R | 02fed933051e047364ff45ace1be141b4e7eef83 | [] | no_license | victoriaehall/datasciencecoursera | 47164cf3a479abbb51f5cfeea4688d38c1252e1c | 31d88289652a247c3b8782e6ba9dbbe82984e392 | refs/heads/master | 2020-05-20T01:10:31.604457 | 2015-02-15T21:53:43 | 2015-02-15T21:53:43 | 28,843,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 638 | r | corr.R | setwd("/Users/victoriahall/datasciencecoursera")
corr <- function(directory, threshold=0) {
allfiles <- list.files(directory, full.names=TRUE)
mydata <- data.frame()
final <- numeric()
for (i in 1:length(allfiles)) {
current_file <- read.csv(allfiles[i])
... |
f43a72eae333ce4a3ebd2fd392d0f6b19a4c015a | 517388003b7b82681c000be24fa8538c4c8505fa | /HW4/hw4.R | dad0e3929baba8014ea46c27f1c8368199a79c32 | [] | no_license | liuyangyu0622/STAT347 | 728afa114a40baa521331a96663b37f7d30bc497 | ff4f67aeff36d01a8d75f380cfeb250ce5a01b13 | refs/heads/master | 2021-04-28T18:36:54.557392 | 2018-02-17T17:44:59 | 2018-02-17T17:44:59 | 121,877,293 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,674 | r | hw4.R | # 1(a)
data(leafblotch)
View(leafblotch)
str(leafblotch)
plot(blotch~as.numeric(site),leafblotch,xlab="site",main="blotch against site")
plot(blotch~as.numeric(variety),leafblotch,xlab="variety",main="blotch against variety")
# 1(b)
leafblotch$affected <- leafblotch$blotch*10000
leafblotch$unaffected <- 10000 - leafbl... |
c8e2d29b873c8424dfb25f26408064821d453411 | 661d4d3f14e14b699c697efc8db05a220ed40eb9 | /mosaicApps/mosaicManipOriginal/R/mCI.R | 95ba15939eb523c09daf58fec10e5fe7047c5b04 | [] | no_license | dtkaplan/MOSAIC-Summer-2015 | 60518bb08edb3c7165ddb5e74104ccdfdb1c0225 | 2f97827b9e09fccc7cc5679888fe3000d71fe1cc | refs/heads/master | 2021-01-23T13:31:24.897643 | 2015-11-17T22:39:39 | 2015-11-17T22:39:39 | 35,576,261 | 0 | 1 | null | 2015-06-02T21:24:26 | 2015-05-13T21:58:29 | R | UTF-8 | R | false | false | 4,845 | r | mCI.R | #' Interactive applets to explore confidence interval coverage
#'
#' These applets allow the user explore the coverage of confidence intervals
#' computed from many random samples.
#'
#' Data for \code{mCIprop} is created using \code{rbinom}. The user may choose
#' to calculate confidence intervals using a Wald inter... |
2c75696b07568f226306ef7de0a115c920233d3c | a8aee44a8d388660d1747fecf0350076830ec753 | /man/U_equation.Rd | 17fefd0b89c685bb942e4aa831feae3a6735c8d5 | [] | no_license | ZexiCAI/TVQRLB | 0f5cccadc95d1198ba5439711278eaac843722c0 | fc91914df78e2f766da5623473009ce79f4a90a9 | refs/heads/master | 2020-04-12T22:55:13.567396 | 2019-12-29T10:47:15 | 2019-12-29T10:47:15 | 155,048,285 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,079 | rd | U_equation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TVQRLB_main.R
\name{U_equation}
\alias{U_equation}
\title{Form the Estimating Equation}
\usage{
U_equation(beta, dataset, denom, qtile, weight, norm = TRUE)
}
\arguments{
\item{beta}{The parameter estimate.}
\item{dataset}{The survival data.... |
6cc4b832d4efdcbcb3d4684c82e38968299a3817 | 5dace2e2ef48e88eba95c8c07bbba7697cd9c042 | /man/ihdengland.Rd | 7c97c463c8a4c31c68e0eff28c4e3e4efd1d486c | [] | no_license | kingwatam/disbayes | 555be72a081d0fec1e4543e9d509f3bc8443a90b | 67bcff25afbe083f299dec7affa0cbbebb481ccf | refs/heads/master | 2023-06-11T07:42:22.872477 | 2021-07-07T10:14:20 | 2021-07-07T10:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,493 | rd | ihdengland.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/disbayes-package.R
\docType{data}
\name{ihdengland}
\alias{ihdengland}
\title{Ischemic heart disease in England}
\format{
A data frame with columns:
\code{sex}: \code{"male"} or \code{"female"}.
\code{ageyr}. Year of age.
\code{location}... |
2fe47e53c223cb4de69b3145c05859445a8a7b0c | 8d99e28aa5de124ef88e41a8bbe6d0fcaaefc9af | /man/revbayes.Rd | a92ee6c3786235e890ee72d4f28d3bf5f4117493 | [] | no_license | DomBennett/om..revbayes | 13b596b82ee451a3acb8e717464fe68d4bd6bb21 | 74131b1debfd7aed6e72716f1d80ab8a46764b11 | refs/heads/master | 2020-04-22T16:53:05.262928 | 2019-10-25T13:05:57 | 2019-10-25T13:05:57 | 170,522,842 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 394 | rd | revbayes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{revbayes}
\alias{revbayes}
\title{revbayes}
\usage{
revbayes(...)
}
\arguments{
\item{...}{Arguments}
}
\description{
Run revbayes
}
\details{
Note, no interaction possible.
}
\examples{
library(outsider)
revbayes <- module_... |
8f111191d3a87b4a9f3615a3544eb85f5ab24197 | 9fcbcdd002b754a2ebf108a67e99985fe434cda8 | /scripts/web-scraper/2.indexing.R | de98c9bc40f17117bd1bbf108a64cdd42cea747a | [] | no_license | paddytobias/pc_publications | f374e8b9853be041e30ffee04052d30b458443b0 | 783b82fc511d281df0f5fc2a01f278a568b3b1b0 | refs/heads/master | 2020-04-05T02:50:14.186396 | 2018-11-07T05:09:28 | 2018-11-07T05:09:28 | 155,674,495 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,229 | r | 2.indexing.R | query_terms = c(#"peacebuilding",
#"peace and conflict studies",
#"conflict resolution",
#"liberal peacebuilding",
#"peacemaking"
#,"conflict transformation"
#, 'state-building'
#, 'nation-building'
"conflict prevention",
"peacekeeping"
)
for (search in query_terms){
page_files = list.files(pa... |
02f77dcf8e4c63f5a062004e7a23b8fa185ed21d | e1eba8f8812ff239d21dd5b1f348ecf62e48ddc9 | /man/may_terminate.Rd | 6b393f4a5918c49f1409c1f74ca91d4ff6a9a9d7 | [] | no_license | lorenzwalthert/namespaces | e5c60259f5e2f86c032f6da16af76a22b9cd93af | 1d7c95f54bf1202068789b4706a0dcc66d126ef3 | refs/heads/master | 2020-03-09T09:51:50.753911 | 2019-05-06T09:59:17 | 2019-05-06T09:59:17 | 128,722,777 | 7 | 0 | null | null | null | null | UTF-8 | R | false | true | 641 | rd | may_terminate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bisect.R
\name{may_terminate}
\alias{may_terminate}
\title{How did it all end?}
\usage{
may_terminate(range, fun)
}
\arguments{
\item{range}{A range of candidates for the bisection}
\item{fun}{A function to be applied to range once range shr... |
a5f46cbbc2b200306aa8da145c60f1f604865201 | a2b22db23c7a4d69fa8027d268677e29152d398e | /man/dmm.JModel.Rd | b42d22547f022bfde833fd2271ee224523d9d65f | [
"MIT"
] | permissive | nsdumont/jDirichletMixtureModels | 42d20baca5f6e62a00d8b9da729ab9d5837a879d | b01ab74d3542fada132bba6cfa00b702f3004f2e | refs/heads/master | 2020-03-11T16:56:09.555422 | 2018-04-22T03:50:35 | 2018-04-22T03:50:35 | 130,132,458 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,522 | rd | dmm.JModel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dmm_model.R
\name{dmm.JModel}
\alias{dmm.JModel}
\title{Create a model using Julia fucntions}
\usage{
\code{dmm.addfile(filename)}
\code{model <- dmm.model(pdf_name, sample_name, marg_name, params, isconjugate=TRUE)}
\code{model <- dmm.Jmodel... |
6c5e35e6789dee2632418464ab8d4deaa7a17c60 | 502d0505e01e1c1385571cf5fb935630614896de | /man/FELLA.sample.Rd | 612665b3eb1a12efc9dfad2640f1bb972fc30d1b | [] | no_license | b2slab/FELLA | 43308e802b02b8f566ac26c972dc51e72a340c0e | 53276c4dfcb8cb4b5a688b167ba574d0f85228a6 | refs/heads/master | 2021-03-27T20:53:29.212810 | 2020-10-27T15:33:01 | 2020-10-27T15:33:01 | 24,852,722 | 14 | 4 | null | null | null | null | UTF-8 | R | false | true | 818 | rd | FELLA.sample.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doc-data.R
\docType{data}
\name{FELLA.sample}
\alias{FELLA.sample}
\title{FELLA.DATA sample data}
\format{An object of class \code{FELLA.DATA} of length 1.}
\source{
Generated from a mid-2017 KEGG release
(\url{http://www.genome.jp/kegg/})
}... |
2c7404a02ff011de2bca1c8a1cf6d939bb43258a | 07373a07ec45cf2b5b9e6ec97ae85c2355ba4e44 | /ModelValidation.r | cf7fdc5d5e0c82dc38bba63bc4db5563940aa60b | [] | no_license | bchasco/squid | 23ae5c3acee775a6643a287952ae2c3f8a335525 | feee30a50d71bf9c44539eaa8aeb1252426540f8 | refs/heads/master | 2022-02-15T12:47:43.850002 | 2022-01-27T20:37:36 | 2022-01-27T20:37:36 | 229,161,733 | 0 | 0 | null | 2020-05-22T02:43:28 | 2019-12-20T00:39:04 | HTML | UTF-8 | R | false | false | 1,516 | r | ModelValidation.r | ParHat <- fit$ParHat
#7) Temporal correlation
RhoConfig= c("Beta1" = 0 #Temporal corr. encounter covariate intercepts
,"Beta2" = 0 #Temporal corr. for positive catch covariate intercepts
,"Epsilon1"= 0 #Temporal corr. for encounter probability intercepts
,"Epsilon2" = 0) #Tempora... |
e34e61e634365df66b9fe2b91e0f309267b27a35 | 443bfca7f6cc29a2d77278ea12544959ec0f7791 | /MICE_mediate_ex.R | 062271ff12e82eee9064efba5551777d8543f386 | [] | no_license | APoernbacher/Multiple-Imputation-R | 362465984a1083b25dc4cb8066c88ec0b9ff5a7c | f69a1d1d8ec71d2604c53a5b3959bee997b6d15d | refs/heads/master | 2023-03-15T21:45:23.850593 | 2018-06-26T13:21:16 | 2018-06-26T13:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,708 | r | MICE_mediate_ex.R | ### Use multiple imputation to create imputed data and run a mediation
#Created by Jessie-Raye Bauer, Oct. 2017
#Load Packages
library(VIM)
library(mice)
library(lattice)
# Using the built-in airquality dataset
data <- airquality
#create missing data
data[80:81,3] <- rep(NA, 2)
data[4:15,3] <- rep(NA,12)
data[1:5,2]... |
ab09be21053cafb4e2a09156dfe18486061bbb52 | 66203f6723fc06f00a3c7b92db71fe8e3b875929 | /cachematrix.R | 3c617c0710d31d3ebd53fa69a23b9b424da4e432 | [] | no_license | LokeshMakhija/ProgrammingAssignment2 | 97f16a66514e238e9ebe2d6718a084290566ca8d | 3b004c4792f6bf885b06cc074b6ebf7ea68f4c70 | refs/heads/master | 2020-03-26T11:31:28.059015 | 2018-08-15T13:37:24 | 2018-08-15T13:37:24 | 144,846,926 | 0 | 0 | null | 2018-08-15T11:52:36 | 2018-08-15T11:52:36 | null | UTF-8 | R | false | false | 1,038 | r | cachematrix.R | ## makeCacheMatrix creates a special matrix, given a matrix as an input. It has special functions which
## can cache the inverse of the original matrix through setInv function and returns the inverse value
## when requested through getInv function.
## eg. to run
## x <- makeCacheMatrix(matrix(rnorm(25),5,5))
## c... |
d11c03f1da441c2b3e71b3e0cda5ccdff1f7e187 | 81ff4f78af4de923a71b1ac05cfebc82fb01818d | /CRAN/contrib/spaMM/R/fit_as_ZX.R | f9144cd2b66ebd0dfd234edd6b6ce3157ffb9154 | [] | no_license | PRL-PRG/dyntrace-instrumented-packages | 9d56a2a101c4bd9bee6bbe2ababe014d08cae1a0 | 6c586a26b8007dc6808865883e1dd7d2a1bf6a04 | refs/heads/master | 2020-03-08T15:45:59.296889 | 2018-04-06T09:41:52 | 2018-04-06T09:41:52 | 128,220,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 33,034 | r | fit_as_ZX.R | .do_damped_WLS <- function(sXaug, zInfo, # fixed descriptors of system to be solved
old_Vscaled_beta,
oldAPHLs,
APHLs_args,
damping,
dampingfactor=2, ## no need to change the input value
... |
6eea0903be1df93db8f3e45022eb89f57ae449fb | d70911c992652597604689ac46a6f069da533e40 | /cachematrix.R | 34a3f86e0ae4e90aba5dec14cd183c1aa4286258 | [] | no_license | josephl/ProgrammingAssignment2 | 2dd39634de0a963a2c81d00f7325ac5342bf0d1e | bdc90a10225af05f9681f47159b6476421383d5f | refs/heads/master | 2021-01-17T15:05:34.502763 | 2014-11-23T04:51:35 | 2014-11-23T04:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,063 | r | cachematrix.R | ## Programming Assignment 2
## Joseph Lee
## These functions (makeCacheMatrix, cacheSolve) cache the inverse of a matrix,
## since computing inverses of large matrices can be quite expensive.
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
s... |
13b7b9767ee9df22385a9ac3633b3a07d4f0b932 | d8a644476b2772a4e327e05a019c5f41a33da224 | /general_skew_mode-final right place.r | 79230c4ab847877c61ba898c267594dff39b4796 | [] | no_license | BaderAlruwaili/R-package-for-merging-of-Skewed-normal-mixtures- | bbae5545888394f3dabd404467284db0e4837f3c | 6bf25d02f2de45c0e5baf5a576671b087cf607dc | refs/heads/master | 2020-04-16T04:26:15.844127 | 2019-01-11T16:04:14 | 2019-01-11T16:04:14 | 165,267,052 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,388 | r | general_skew_mode-final right place.r | ############################################################
#
library(sn)
sn.mode<- function(x,alpha,xi=0,omega=1){
z=(x-xi)/omega
# I am making z as the axis
#skewness
#pnorm,and dnorm of normal distribution
PHI<- pnorm(alpha*z)
phi<- dnorm(alpha*z)
# To find the mode of skew nor... |
be2776a0cb031b0148d21135e6b77fe7140b825a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/recexcavAAR/examples/cootrans.Rd.R | 90042109ef515b8493e7e572c81cc1507cfdb40f | [] | 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 | 548 | r | cootrans.Rd.R | library(recexcavAAR)
### Name: cootrans
### Title: Tool for transforming local metric coordinates
### Aliases: cootrans
### ** Examples
coord_data <- data.frame(
loc_x = c(1,3,1,3),
loc_y = c(1,1,3,3),
abs_x = c(107.1,107,104.9,105),
abs_y = c(105.1,107,105.1,106.9)
)
data_table <- data.frame(
x = c(1.5,1.2,1... |
3c7e47da366f94c5637ec38b28b8737606fd6f8e | 57c3760975cdba7133cd7a8296127d7da6b59c1a | /Homework/Jose.Picon_HW3.R | 352bc2d7ec2830f6e040fd29cb97b31fbbd0b106 | [] | no_license | josepicon/IST-687 | 8b98d714baab48f6803caaa91b4aee715ae178e1 | a2ef83f300aaf8ec561a3979b3e997d311b4fc0c | refs/heads/master | 2020-03-30T22:07:40.109720 | 2018-12-17T23:21:37 | 2018-12-17T23:21:37 | 151,655,431 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,131 | r | Jose.Picon_HW3.R | #Cleaning/munging dataframes
#Step 1: Create a function (named readStates) to read a CSV file into R
#1: Note that you are to read a URL, not a file local to your computer
readStates <- read.csv(url("http://www2.census.gov/programs-surveys/popest/tables/2010-2011/state/totals/nst-est2011-01.csv"))
#Step 2: Clean ... |
45bb21014d6560e22fe0a1b11ff04da4457f1acf | b6b470cdf0fec7037b74858efc64a8adf652a514 | /Constrained ordination.R | d624023b09aa7d5cb84e4cbb47171cd2845dd714 | [] | no_license | BenjaminGazeau/Quantitative-Ecology | 9a8b4875b1dd75a5149a3fa03c460c63bd6e6ab0 | 18a02533b057be9a680e4dd206259fadc58e115a | refs/heads/master | 2023-07-01T06:15:54.247930 | 2021-08-03T14:14:12 | 2021-08-03T14:14:12 | 382,034,627 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,777 | r | Constrained ordination.R | # Load Packages
library(tidyverse)
library(betapart)
library(vegan)
library(gridExtra)
library(grid)
library(gridBase)
library(tidyr)
# Load Data
spp <- read.csv('data/SeaweedsSpp.csv', row.names = 1)
dim(spp) # 58 rows and 847 cols
# Setup Data
# We want to focus on species turnover without a nestedness-resu... |
a3e92602b0d0cd50ef07e394ae6f913a9ca8dce0 | 6e400e8825aa796f6258ece58a2ea146d02b9711 | /fj_DT_fullvar.r | 003ca241f94887af676f36f507e451a43bc05e1c | [] | no_license | kmoh19/Weather_Sensor | 836a8223b883b7e2bfde51cf67b98616d0b119d0 | d78f5530a344ad5dc7cd5e2fff87f1ffbe107229 | refs/heads/master | 2020-12-13T03:25:53.841982 | 2020-01-16T11:13:34 | 2020-01-16T11:13:34 | 234,298,944 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,279 | r | fj_DT_fullvar.r | library(rpart)
library(rpart.plot)
weather<-read.csv('C:\\Users\\7222115\\Desktop\\DS_sensor_weather.csv',header=TRUE,sep=',')
weather_nna<-weather %>% na.omit()
weather_nna_nr<-weather_nna[,-11]
weather_nna_nr_rf<-(weather_nna_nr %>% mutate(relative_humidity_pm_rf=relative_humidity_pm>30))[,-10]
weathe... |
46cf3fc045220674e8a05ba547d56e851bc09240 | 8103eedd31f9d263813495a77cefccb5038eb291 | /CleanDataScript.R | 5854cfe1af9d596441ce47aacaa5de2b6e4bdea6 | [] | no_license | kcp200607/CleanData | 917e8ac26a182591bc0de81a9081288deab4ddb7 | a9d0c61e5387b836408fd7c73497924c88d90bb7 | refs/heads/master | 2020-04-12T18:21:43.284360 | 2014-06-18T21:09:18 | 2014-06-18T21:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,557 | r | CleanDataScript.R | sub_test <- read.table("subject_test.txt")
sub_train <- read.table("subject_train.txt")
features <- read.table("features.txt")
y_test <- read.table("y_test.txt")
x_test <- read.table("x_test.txt")
y_train <- read.table("y_train.txt")
x_train <- read.table("x_train.txt")
y_join <- rbind(y_test, y_train)
x_join <- rbind... |
d3d460d95633676b2376a00ceb29a0e53236678e | 9fdd3e567cd49d00b1559a627dd865853556d0bc | /enveomics.R/man/enve.recplot2.__peakHist.Rd | 61752857ea3c96ae60d0d3ab743dc3b3b7d7b092 | [
"Artistic-2.0"
] | permissive | yoyohashao/enveomics | ed8fa98dd98d3ef1940f86a9bbcc5f1dc879d135 | eb4cd3ec4ba4a9479b9fd35048cf8e99a3ff0116 | refs/heads/master | 2021-01-14T08:35:12.484687 | 2016-01-13T20:50:27 | 2016-01-13T20:50:27 | 49,878,394 | 1 | 0 | null | 2016-01-18T13:24:46 | 2016-01-18T13:24:45 | null | UTF-8 | R | false | false | 360 | rd | enve.recplot2.__peakHist.Rd | \name{enve.recplot2.__peakHist}
\alias{enve.recplot2.__peakHist}
\title{enve recplot2 peakHist}
\description{Internal ancilliary function (see `enve.RecPlot2.Peak`).}
\usage{enve.recplot2.__peakHist(x, mids, counts = TRUE)}
\arguments{
\item{x}{
}
\item{mids}{
}
\item{counts}{
}
}
\author{Lui... |
60986766e80d2ebefd86b61ad8cf31e325189ef3 | d1a360fc9e6f2415d4b9c5a7964d2cb7b4c01e45 | /Bayesian Baseball 2018/scripts/Modeling/Comparison Models/adaptivepriors.r | 0973d86f74f4de7e76ad1063852bc71bc72bc83e | [] | no_license | blakeshurtz/Bayesian-Baseball | 8ea89ac5d191c9fb2558ef2776f5e6e71cc88ddc | 86d0cf8cd8fba05d108c0a7a677de6158f856b1a | refs/heads/master | 2022-01-30T00:14:25.207927 | 2019-07-02T19:34:25 | 2019-07-02T19:34:25 | 146,781,829 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,581 | r | adaptivepriors.r | ###adaptive priors
c(h, hits_h, double_h, triple_h, HR_h, balls_h, hits_allowed_h, pballs_h, pstrikeouts_h, strikes_h)[home] ~ dmvnormNC(sigma_home,Rho_home),
c(a, hits_a, double_a, triple_a, HR_a, balls_a, hits_allowed_a, pballs_a, pstrikeouts_a, strikes_a)[away] ~ dmvnormNC(sigma_away,Rho_away),
sigma_home ~ dcauchy(... |
dbe11480b6a5c5c5e776ebab278e5fe6c5872337 | cdf3707ae58fa058ce220977bd6ff9172a735388 | /3 Course Deliverables/IST 687 - Introduction to Data Science/Code and Data (California Protected Land Analysis)/Protected Land Areas of CA.R | 45649e3cecc632ec80c2dc091a10464ac45b2982 | [] | no_license | lplawless/Applied-Data-Science-Portfolio | d26b5dfa01fa9c2b73dacb2acd954a1fbde0b6ca | d252d3be7f5311a391b49e590600eae9bc9612a3 | refs/heads/master | 2022-12-11T21:49:17.613171 | 2020-09-14T17:42:46 | 2020-09-14T17:42:46 | 282,275,445 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 151,643 | r | Protected Land Areas of CA.R | #Index - Double click on the bracketed string and press Ctrl+F and then Enter to jump to that section.
# Load and prep [i001]
# Data Munging [i002]
# Descriptive Analysis [i003]
# Descriptive Charts [i003a]
# Descriptive Maps [i003b]
# Advanced Analysis [i004]
#--------------------------------------Load and prep [i001... |
8348c392fd9bbe1be8b5766c058d3f47e6840737 | 08a2a7468e3f09e803afb74616b9c37fd4f05335 | /R/server-side.R | 9acecd0fdc2fa1859f0293d792bc02c869bbed6d | [
"MIT"
] | permissive | ginberg/brochure | 8b2e9fb6551d045730fb3e14f6950ebafb583d2e | 33a1c2fe59e5ec43cb800bc0864eb388638eefd9 | refs/heads/main | 2023-03-05T00:43:56.760095 | 2021-02-23T07:11:48 | 2021-02-23T07:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 314 | r | server-side.R | #' Do a server side redirection
#'
#' @param to the destination of the redirection
#' @param session shiny session object, default is `shiny::getDefaultReactiveDomain()`
#'
#' @export
server_redirect <- function(
to,
session = shiny::getDefaultReactiveDomain()
){
session$sendCustomMessage("redirect", to)
}
|
64f300ee3e37d1572ed819eac16d3d3841d7a6c6 | 150ddbd54cf97ddf83f614e956f9f7133e9778c0 | /man/delin.Rd | 8d893e16a3e15ec96fbff8d26f7e4686d608f68d | [
"CC-BY-4.0"
] | permissive | debruine/webmorphR | 1119fd3bdca5be4049e8793075b409b7caa61aad | f46a9c8e1f1b5ecd89e8ca68bb6378f83f2e41cb | refs/heads/master | 2023-04-14T22:37:58.281172 | 2022-08-14T12:26:57 | 2022-08-14T12:26:57 | 357,819,230 | 6 | 4 | CC-BY-4.0 | 2023-02-23T04:56:01 | 2021-04-14T07:47:17 | R | UTF-8 | R | false | true | 985 | rd | delin.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delin.R
\name{delin}
\alias{delin}
\title{Manually delineate images}
\usage{
delin(stimuli)
}
\arguments{
\item{stimuli}{list of stimuli}
}
\value{
list of stimuli with new templates
}
\description{
Adjust the templates in a shiny interface. ... |
015aa2b7e044e80ff66c561995706dc11c921db3 | 29585dff702209dd446c0ab52ceea046c58e384e | /REAT/R/locq.R | a447b4215d2a8118b5587640c8ed20b8705c4c5c | [] | 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 | 205 | r | locq.R | locq <-
function (e_ij, e_j, e_i, e) {
if (e_ij > e_j) { return (NA) }
if (e_i > e) { return (NA) }
if (e_j > e) { return (NA) }
s_ij <- e_ij/e_i
s_j <- e_j/e
LQ <- s_ij/s_j
return(LQ)
}
|
138c056bc141eb710f0fffda90277cdf9823ad99 | 2b76e72f3e46d2fa85721b1a6ff4bdbb71c40f04 | /man/csv_to_sheet.Rd | 99758b516818dd1a687132afa0def16b46bdcccb | [
"MIT"
] | permissive | elias-jhsph/rsmartsheet | ae7f1a8531ce2225417d3444d3de213152c169d5 | 18bff1da9dce5acdaff07a3da49c5fe4827c4d98 | refs/heads/master | 2021-07-07T09:57:20.373524 | 2021-05-10T17:57:50 | 2021-05-10T17:57:50 | 236,876,103 | 8 | 6 | null | null | null | null | UTF-8 | R | false | true | 545 | rd | csv_to_sheet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Smartsheet-R-sdk.R
\name{csv_to_sheet}
\alias{csv_to_sheet}
\title{Create New Smartsheet}
\usage{
csv_to_sheet(file_path, all_text_number = FALSE)
}
\arguments{
\item{file_path}{a path which locates the csv and provides the name}
}
\value{
re... |
653b892c2980eb843eeff190396a0eaafbf5132d | c83d3adcad7bdf5043935a3ecb22277bdb0ff5f0 | /HW1/HW1.r | ff465448886c2c5d5324d5ece82bd3ae96b832a0 | [] | no_license | Ninada-U/Math-189 | 0477ed893703c6a828f0ae7c5c2c79bcc0a1280a | bf0131ea302470c80df2c46a0f3802af54a9be10 | refs/heads/master | 2022-06-04T02:38:00.078783 | 2020-05-04T01:48:23 | 2020-05-04T01:48:23 | 256,535,545 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,026 | r | HW1.r | library(ggplot2)
# read in data
bb = read.table('babies.txt', header=1)
bb$smoke[bb$smoke == 0] <- "Non-smoker"
bb$smoke[bb$smoke == 1] <- "Smoker"
bb <- bb[bb$smoke!=9,]
# remove extreme outliers
bb <- bb[bb$smoke!=9,]
bb <- bb[bb$weight<750,]
bb <- bb[bb$height<75,]
bb <- bb[bb$age<50,]
bb <- bb[bb$gestation<500,]
... |
21cd31896287805860a3e33d6159671a827388de | 4a953f8360e02b48c8fc0cce3247ce85461386e2 | /man/physics.Rd | 40a3b941720780a99050f4aebaf4dad062e2dadd | [] | no_license | cran/alr3 | 70aa935c50ea155544e3753638b8ecf14389578a | e0417610cc7ecf5d1fd4900d831a7bf8ea18c492 | refs/heads/master | 2021-01-16T00:27:48.401071 | 2018-06-22T20:05:11 | 2018-06-22T20:05:11 | 17,694,346 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 930 | rd | physics.Rd | \name{physics}
\alias{physics}
\alias{physics1}
\docType{data}
\title{Physics data}
\description{
The file physics constains results for \eqn{\pi^+}{pi+} meson as input and
\eqn{\pi^+}{pi+} meson as
output. physics1 is for \eqn{\pi^-}{pi-} to \eqn{\pi^-}{pi-}.
}
\format{This data frame contains the following... |
b8f25b321e7c97ed1dea2219bda19f5c6e43ae0e | 540f7014a92ebaf0f6d9a0d0365bc806c2c33b88 | /ca4EnrichVsFold.r | fb41489fa35f4170dd6e44bb3a5b9125fb9fdc4f | [
"MIT"
] | permissive | cembrowskim/hipposeq | 7b550ea4ec0a1c5833cab7966c6c45df8c623022 | 4b6d2d1af76e580da24eed703ed554f582868faf | refs/heads/master | 2021-01-10T13:33:40.792302 | 2016-04-28T17:42:03 | 2016-04-28T17:42:03 | 54,387,642 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,391 | r | ca4EnrichVsFold.r | ####################################################################################
#
# Mark Cembrowski, Janelia Research Campus, April 8 2015
#
# This script looks for the number of mossy cell-enriched transcripts relative
# to neighbouring DG GCs and CA3 PCs.
#
#######################################################... |
7d006c9ac9177bb1604a9385e04f2b325eaa2717 | 60d40635d000c7a7ef0b8774da34ab3c29d6502e | /misc/visu/draw_cumulative.R | e2e29b7a5f27260010a0836a27a281890953aa9c | [] | no_license | obps/obps | 8d6ce068ab5b802937ad6b8105367703105e4ed5 | 01df6619cc3d96fe821a6650979fa9f8031e9bdb | refs/heads/master | 2020-12-31T06:47:01.030245 | 2017-03-31T07:57:56 | 2017-03-31T07:57:56 | 86,603,881 | 1 | 0 | null | 2017-03-29T16:16:07 | 2017-03-29T16:16:07 | null | UTF-8 | R | false | false | 6,909 | r | draw_cumulative.R | #!/usr/bin/env Rscript
'usage: tool.R <input_file> ... [-o <output_pdf>] [-l <lineinput>]
tool.R -h | --help
options:
<input_file> The input data.
-o <output_pdf> Output file in case of pdf/tikz/png output.
-l <lineinput> lineinput.
-h , --help Sh... |
2182f9cb41c1d21bdf80834b78718d6522ea42b1 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googledeploymentmanageralpha.auto/man/ResourceUpdate.error.Rd | 0bc0641e6c1f9eec394ebfe2240296ba7b8d3d84 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 956 | rd | ResourceUpdate.error.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deploymentmanager_objects.R
\name{ResourceUpdate.error}
\alias{ResourceUpdate.error}
\title{ResourceUpdate.error Object}
\usage{
ResourceUpdate.error(ResourceUpdate.error.errors = NULL, errors = NULL)
}
\arguments{
\item{ResourceUpdate.error.... |
991c6879300a361c31aeb45524fb6deccb26fcb9 | a135835b38ef0f196012b594bc7fe7856722159f | /man/fit.networkBasedSVM.Rd | 86d02ce3307d9efa80ad8c7ee687a08f6716ca97 | [] | no_license | cran/pathClass | 6365bec2abcde76934dc80dcdb7d957724e1a221 | c9fe63704541d30300697f310caf53abe01b71b7 | refs/heads/master | 2021-01-10T21:38:46.012952 | 2013-06-25T00:00:00 | 2013-06-25T00:00:00 | 17,698,371 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,376 | rd | fit.networkBasedSVM.Rd | \name{fit.networkBasedSVM}
\alias{fit.networkBasedSVM}
\title{Implementation of the network-based Support Vector Machine introduced by Yanni Zhu et al., 2009.}
\usage{
fit.networkBasedSVM(exps, y, DEBUG = FALSE, n.inner = 3,
scale = c("center", "scale"), sd.cutoff = 1,
lambdas = 10^(-2:4), adjacencyList)
}
\a... |
610736fc938d2c806a54458693dc841c9f4c6de6 | 73b297f2e53e18fc7a3d52de4658fede00a0319c | /man/orderArray.Rd | 54a894c1a26fe84827bf097180197b5f186d5021 | [
"MIT"
] | permissive | bentyeh/r_bentyeh | 4f5d0f403dceffb450bd77d8ff87adcaa6c222da | 971c63f4ec1486366e0fe07fc705c0589ac7ea39 | refs/heads/master | 2023-02-06T19:10:18.055017 | 2020-07-21T18:18:48 | 2020-07-21T18:18:48 | 281,471,203 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,713 | rd | orderArray.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{orderArray}
\alias{orderArray}
\title{Order each dimension of array by hierarchical clustering.}
\usage{
orderArray(
ar,
dims = NULL,
metric = "cor",
method = "complete",
cor_use = "pairwise.complete.obs",
cor_method... |
46dfa717567e4e9f7e3e1bb62e36ca8137ad9773 | 3fc12685acd8034eea0a08d946f49efb746fcf88 | /man/get_significant_results.Rd | eccf3902bf0f5b3a9e6ebbcd2515e8b01e169f9f | [
"BSD-3-Clause"
] | permissive | surbut/mashr | 16eb64d685085409aeba5785a65d0384d6843ea6 | b66d2af16503bc46d785ac9c9ba447ecc29b6fae | refs/heads/master | 2020-04-08T03:15:53.456268 | 2018-11-24T20:04:50 | 2018-11-24T20:04:50 | 158,968,895 | 0 | 0 | BSD-3-Clause | 2018-11-24T19:54:17 | 2018-11-24T19:54:17 | null | UTF-8 | R | false | true | 902 | rd | get_significant_results.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_functions.R
\name{get_significant_results}
\alias{get_significant_results}
\title{Find effects that are significant in at least one condition}
\usage{
get_significant_results(m, thresh = 0.05, conditions = NULL,
sig_fn = get_lfsr)
}
\ar... |
e0d05d82ef2c24b16488aee46718f09232d86e27 | 266a322b66eddc97c035753a27fa2e95d9b6dc6d | /Part3/home_prac.R | 914cdd4c310bd3155bc1fd34d813d753927e61d5 | [] | no_license | duamkr/R-program | b42894eb81024d40dcab6c870dc64ebbaf219638 | e88fd69a58cf9efd58b9b097f81d786981284c5a | refs/heads/master | 2020-05-29T13:39:21.242384 | 2019-06-18T08:47:43 | 2019-06-18T08:47:43 | 189,168,744 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,081 | r | home_prac.R | setwd("E:/workspace/R/R-program/Part3/data")
getwd()
# 변수에 데이터 담기
aaa1 <- 'aaa' #'aaa'의 문자열 및 111의 숫자형태의 값도 변수 입력 가능
aaa2 <- 111 # 변수의 값 지정 명령어는 변수 <- 값 이지만, 값 -> 변수도 가능
# Sequence_연속된 숫자의 값을 나열
seq(1:9)
seq(from='1',to='99',by=1) # 1-99까지 1값 증가 출력
seq(from=as.Date('2019-05-30') # by=1 지정 1일씩 증가 출력
... |
4172745bab9f300db1ed084f00e1a6710709bedf | bb310e92f81d1ef05d7b74fff808060fb7d7eeec | /R/zzz.R | e1c057cafc76aaa5e8e972936d32375ca9cfda5f | [] | no_license | DarwinAwardWinner/rctutils | 21646b4d2c5ec771250d78a23fcb82b6d70933a8 | b7747eb50a42c9f48aecbf052c53a8cd42995031 | refs/heads/master | 2022-07-26T13:56:25.549006 | 2022-07-20T14:51:57 | 2022-07-20T14:51:57 | 130,285,249 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,803 | r | zzz.R | #' Shortcut for the usual "requireNamespace" dance
#'
#' This shortens the boilerplate required to use functios from a
#' suggested package.
#'
#' @param ... Packages to require
#' @param caller The name of the function this was called from. Only
#' used to create an appropriate error message.
req_ns <- function(..... |
a7cde9a08058fb78f5c912c2bfb587dc2912559e | 92f5eca955e8137e3688ca447a013589fb51945f | /Limits Determination Code Final.R | 064103e56da92b7c6f290e9c1c4f3bce2500ba7a | [] | no_license | OMRFJamesLab/Cytokine-Quality-Control | 88d675675abe6934433803b60ecf9b71bf722488 | 62bee5a45c30a5d64909991b19c2fa882a92a1ff | refs/heads/master | 2021-01-20T15:19:32.388226 | 2017-02-22T13:26:13 | 2017-02-22T13:26:13 | 82,806,880 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 33,008 | r | Limits Determination Code Final.R | #Load drm package which is used for the 5-parameter logistic curve optimization
library(nCal)
library(vioplot)
library(gridExtra)
library(grid)
######################################################################################
####The functions used to build the bigger algorithm#############################... |
9b1acba2870e25f39c1df71cfc7fecaa0599718b | 77adeb996aa86cf4c27c51fd2eb66a17adaa95e1 | /2018 - 01/03. 시계열분석/2018-06-05 수업 (1).R | 688565295570888f21622ec0c882929d7bb5f64e | [] | no_license | ajskdlf64/Bachelor-of-Statistics | 44e5b5953ac0c17406bfc45dd868efbfab18e70f | bc7f92fce9977c74c09d4efb0ead35e2cd38e843 | refs/heads/master | 2021-07-20T00:22:26.981721 | 2021-07-14T08:47:43 | 2021-07-14T08:47:43 | 220,665,955 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,324 | r | 2018-06-05 수업 (1).R | # 계절추세 + ARMA 오차 회귀 모형.
library(forecast)
# 자료 불러오기.
tourist <- scan("C:/Users/user/Desktop/학교수업/시계열분석/수업 자료/tourist.txt")
tourist.ts <- ts(tourist, start = c(1981), frequency = 12)
tour92 <- scan("C:/Users/user/Desktop/학교수업/시계열분석/수업 자료/tourist.txt")
tour92.ts <- ts(tourist, start = c(1982), frequency = 12)
plot(tour... |
f5fda3daa59e90f1e2d38dc946f1f752d1d8c7b4 | 0054f25bd3fd82f8d8440de039cd589ca35e3168 | /man/CoW.Rd | b5fe083cd2b791941478a28a1a93c60898e7f2d5 | [] | no_license | dncnbrn/EmsiAgnitio | 6e3bcf0324fed7462be6e26a068e2efa424975e1 | c4ef657605da55bcb3a8451e145b6ab00d788b5e | refs/heads/master | 2023-03-31T01:06:15.421945 | 2021-03-24T18:27:51 | 2021-03-24T18:27:51 | 123,454,318 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 590 | rd | CoW.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dimensions.R
\name{CoW}
\alias{CoW}
\title{A short-hand function to map UK ClassOfWorker dimensions around one of four options}
\usage{
CoW(option)
}
\arguments{
\item{option}{One of "E" (for Employee), "P" (for "Proprietor"), "A" (for "All" ... |
1d65c41c613806f70ca210df5060f0bfc14ccc46 | 8091ac441b2d468d9d9350ea299970aecf35e8e0 | /R/AAProcess.R | af2ad51a8759afa0491384c273c77035cb833474 | [] | no_license | bchain/agilp | e56f993e3abafd05b0d047be6580431d03ae8352 | 645de2c648b1bf57e05a3b1b12f6d703f96b7f08 | refs/heads/master | 2016-09-10T22:04:06.529888 | 2015-04-17T04:40:46 | 2015-04-17T04:40:46 | 28,714,946 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,456 | r | AAProcess.R | AAProcess<-function(input=file.path(system.file(package="agilp"),"input",""),output=file.path(system.file(package="agilp"),"output/",""),s=9){
#reads the input directory of file names into directory
directory<-unlist(dir(input))[]
M<-length(directory)
#read in first data set skipping first "s" rows
inputpath<-c(rep(... |
15be10b2c071860232a5417788749086f817fa5c | dfd898b1ff366eac82cd5818ba5d6db4db5eb7b6 | /Plot2.R | 870952f2cae95e63adb2e03b764eaf4ee0e9df2f | [] | no_license | cesar-arce/Exploratory-Data-Analysis-Week4 | 2a48e17560801ba827b1005652055a4b3388b833 | 9acde84361f4b0d60abd4261538e447900a0f561 | refs/heads/master | 2022-10-25T17:51:20.652641 | 2020-06-09T01:56:16 | 2020-06-09T01:56:16 | 270,876,540 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 668 | r | Plot2.R | # Peer Graded Assignment: Exploratory Data Analysis Course Project 2 (week 4)
# forming Baltimore data which will be NEI_data subset
baltdata <- NEI[NEI$fips=="24510", ]
# Baltimore yearly emmisisons data
baltYrEmm <- aggregate(Emissions ~ year, baltdata, sum)
#### generates plot2.png
cols1 <- c("maroon", "yellow",... |
880ddca0364cf02d41a6c7c25b20d9f63f924eb6 | 093c976951d69367db559b760ce14879b8874e1c | /code/p-spline-mixture-models/help-functions.R | 7cc217c7ac281320f64050b39eccc350a9770b33 | [] | no_license | taylerablake/Dissertation | da87de83872e1eab54791598a78b4479e5594e7f | 9dc0db00409777a9007afb42c18ed0ee9b94cdf8 | refs/heads/master | 2021-03-24T12:46:40.194419 | 2017-07-24T20:07:37 | 2017-07-24T20:07:37 | 65,043,074 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,822 | r | help-functions.R | # Compute B-spline base matrix
bspline <- function(X., XL., XR., NDX., BDEG.) {
dx <- (XR. - XL.)/NDX.
knots <- seq(XL. - BDEG. * dx, XR. + BDEG. * dx, by = dx)
B <- spline.des(knots, X., BDEG. + 1, 0 * X.)$design
B
}
# row-tensor product (or Box product of two matrices)
rowtens <- function(X, B) {
... |
44d6dcce0ca2cf794e711c228e8b1ce31780d663 | 03bc16fe40ab567e3dde851f42c92cfd464a0dd5 | /R/cleverR.R | bd7c3aa00db070368e4ce011a837911a0ad22337 | [
"MIT"
] | permissive | michael-andre-stevens/CleverR | f75e90654faaeebf8d81afcd6f70734b38fa9948 | 9336a37c4f9aca2e8d94ce03e2722f2c03e4da80 | refs/heads/master | 2020-07-03T23:57:27.738871 | 2020-01-07T12:47:20 | 2020-01-07T12:47:20 | 202,092,219 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 253 | r | cleverR.R | #' cleverR: Functions For Clever Notebooks.
#'
#' The foo package provides three categories of important functions:
#' foo, bar and baz.
#'
#' @section cleverR functions:
#' The cleverR functions ...
#'
#' @docType package
#' @name cleverR
NULL
#> NULL
|
9794f5cddd1fcb8584e9e289ce6a3c60eadffb87 | 6d0f4cde529471472332a3eb65b2e74890bbe916 | /MGLM/man/MGLMsparsereg-class.Rd | a317dea314663195e3772ee445ea6fa93098982d | [] | no_license | Yiwen-Zhang/MGLM | f9717283c97302dc298960313fc6e6ce698bbbf7 | 1a86e4968c9708e99e143d9caf45f5cc0d0423a0 | refs/heads/master | 2021-01-10T21:59:21.657115 | 2016-02-28T18:17:48 | 2016-02-28T18:17:48 | 9,347,523 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,035 | rd | MGLMsparsereg-class.Rd | \name{MGLMsparsereg-class}
\Rdversion{1.1}
\docType{class}
\alias{MGLMsparsereg-class}
\title{Class \code{"MGLMsparsereg"}}
\description{
A list containing the results from the \code{MGLMsparsereg}.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("MGLMsparsereg", ...)}.
}
\s... |
492238ec7edef2173b441c3c99b5a81fa96324a6 | 2f94579f26bcbc190a21378221c55d205284e95f | /listings/ex-6.3.R | 0cc98615766428b82b72e5e8f099560e081619c2 | [] | no_license | Fifis/ekonometrika-bakalavr | 9fdf130d57446182fcf935e60d9276cc99d89c0e | c2d89a382d3eaf450a8f4f4dc73c77dd7c6eefd7 | refs/heads/master | 2021-01-20T20:42:12.937927 | 2016-07-23T17:14:35 | 2016-07-23T17:14:35 | 63,989,268 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 277 | r | ex-6.3.R | set.seed(115)
n <- 100
x <- rexp(n)
log_ml <- function(lam, x) {
sum(-dexp(x, rate = lam, log = TRUE))
}
lam_start <- 1/mean(x)
res <- nlm(f=log_ml, p=lam_start, x = x)
res$estimate
res <- nlm(f=log_ml, p=lam_start, x = x, hessian=TRUE)
fisher <- res$hessian
solve(fisher) |
b5a1028a2aa75d79d40a6cc678e65b1be56b7097 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875429-test.R | 0bbb1b8f36421d63476bb9d78410ed973b591d24 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 287 | r | 1609875429-test.R | testlist <- list(genotype = c(1684300900L, 1684300900L, 1684300900L, 1684300900L, 1684300900L, 1684301055L, -16777216L, 245L, 211L, NA, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(detectRUNS:::genoConvertCpp,testlist)
str(result) |
5d5739fc60be0bcd570caffef5da8243aad0e8be | c03b195fb958ca1cd8ce86782ff6c84af88cd25f | /R/segment.R | f9f7cd56e040791031fac0c8cc5db268755c7076 | [
"MIT"
] | permissive | rebekahyates-peak/CITRUS | 8dedfa7692742f865126d3560d0660b8e8ec0dac | 41faff1762223d9fa0cd9c1b0118ef8608a9a96a | refs/heads/main | 2023-08-02T07:21:21.966433 | 2021-09-28T09:49:54 | 2021-09-28T09:49:54 | 406,312,927 | 0 | 0 | NOASSERTION | 2021-09-14T09:56:39 | 2021-09-14T09:56:38 | null | UTF-8 | R | false | false | 5,467 | r | segment.R | #' Segment Function
#'
#' Segments the data by running all steps in the segmentation pipeline, including output table
#' @param data data.frame, the data to segment
#' @param modeltype character, the type of model to use to segment choices are: 'tree', 'k-clusters'
#' @param FUN function, A user specified function to s... |
d5c38aeb0e83eaa12da57e6616edb520bbff0162 | 9e01e643567801ec1188f17b18609af2ceff5999 | /04-exploratory_data_analysis/project2/plot1.R | fa56dde1201b42a3509c4ad38ecbe4861cd8a612 | [] | no_license | reidpowell/datascience | 077d522a84838572e0b3d0575cf24bc4d7f2532f | 1fd3ddec7a21c2ca325218e3b59e9a9ba1fd4c1b | refs/heads/master | 2021-01-10T05:03:54.756547 | 2016-02-01T10:29:46 | 2016-02-01T10:29:46 | 48,336,485 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 845 | r | plot1.R | # plot1.R
# assumes that spec *.rds are unzipped and in <pwd>/data/
# user parameters
output_file <- "./plot1.png"
# load libraries
library(sqldf)
# read data files
dat <- readRDS("./data/summarySCC_PM25.rds")
cod <- readRDS("./data/Source_Classification_Code.rds")
# select data for plot
sql <- "SELECT year, SUM(Em... |
4703ac6d44396cce908302ff70efe34cfab591f0 | 14b76686fbb656353323de8dea135a2c96fbb037 | /testing.R | 690a39bb04a97a296a23bd93ea5e59d076c60694 | [] | no_license | sayon000/oac-shiny | 8dd3a8a8c8a26d54a90806e54cbf3c130c39b163 | 1d1ce6f5ecdbc30e2036f519dc368a7334321c64 | refs/heads/master | 2020-09-09T00:14:37.267383 | 2019-04-05T18:12:55 | 2019-04-05T18:12:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,950 | r | testing.R | #Misc. testing
library(shiny)
library(shinyjs)
library(zoo)
library(xts)
library(reshape)
library(lubridate)
library(ggplot2)
library(plotly)
library(DT)
#library(shinyTime)
data_sorter <- function(filein){
#TODO: Account for obvious outlier values (see RAT.csv)
if(is.null(filein)){
return (NULL)
}
e... |
c94129e5bb2d6f1a89832e07eb52cd4fb5af3b65 | b4dfe3e6c1118b234c911c8f426455a05c1cf66b | /cachematrix.R | 4c4ef7b013aa7bdd52550b7c8991b132f936532a | [] | no_license | TomMarvolo/ProgrammingAssignment2 | fb739760811729abf8486f2a51f5d8c4cabf41d1 | ce4e2b9e5fedc64714cec1a5a5d85d9479a23358 | refs/heads/master | 2021-01-18T03:49:14.603676 | 2014-05-22T20:23:17 | 2014-05-22T20:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,167 | r | cachematrix.R | ## This script defines a Matrix which save its own inverse.
## makeCacheMatrix -> creates a matrix with a Setter/Getter for the values
## and Setter/Getter for the inverse values.
makeCacheMatrix <- function(x = matrix()) { # if x is missing create an empty matrix
inv <- NULL
set <- function(value){
x <<- val... |
4ab5060c2cdfabe6da4d09ba557510f8a7c2e5c6 | f1e7940e5455d36d36d06b7e92d4fac2aaebd605 | /man/lag_covariates.Rd | 56ba3b059e9630e998bf640b5762ca4063ff4dbe | [
"MIT"
] | permissive | patdumandan/portalcasting | f9dbf0f9ff4718475a8a04137f2bf39382b151e3 | 6faf4c89df2ee686636bd96a535202530fd93acf | refs/heads/main | 2023-05-29T03:11:42.222799 | 2021-03-10T23:21:01 | 2021-03-10T23:21:01 | 328,410,286 | 0 | 0 | NOASSERTION | 2021-01-10T15:05:45 | 2021-01-10T15:05:45 | null | UTF-8 | R | false | true | 1,376 | rd | lag_covariates.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_covariates.R
\name{lag_covariates}
\alias{lag_covariates}
\title{Lag covariate data}
\usage{
lag_covariates(covariates, lag, tail = FALSE, arg_checks = TRUE)
}
\arguments{
\item{covariates}{\code{data.frame} of covariate data to be la... |
4e2af70c83fbb6c903df25a631bac15c674ea9f0 | 0766c9ba62e459c753c138c423e57fba14629551 | /run_analysis.R | f14c33fea10014b6f36ea3523bdbb28935aa3281 | [] | no_license | saptarshihere/datasciencecoursera | 17d9a62a179eca75e82e035a0ae90e866e80a330 | de77c83246ff5a928817506b771a61870a2f0a98 | refs/heads/master | 2021-01-11T17:54:35.951877 | 2017-03-19T16:47:32 | 2017-03-19T16:47:32 | 79,869,816 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,249 | r | run_analysis.R | library(dplyr)
##Setting working directory
setwd("E:/DataScience/Workspace")
##Download and unzip file in local machine
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./UCI_HAR_Dataset.zip")
unzip(zipfile="./UCI_HAR_Dataset.zip")
# Re... |
b259db41c4d8cb93458b85b1c9e2110cb7d26b98 | 8d61e8c0f417348f843fbd3a0f13311d03fa50f8 | /man/compare_version.Rd | c14e70b9ce8e3343db914b6e14838df58a91eca7 | [
"MIT"
] | permissive | mokymai/bio | 5ca95723fda6a7f6fcaa0ff6b8a4bb55e76d9330 | 032b86e67fcdf848128e76dcdd3081376d868ce2 | refs/heads/master | 2023-08-31T09:10:26.340392 | 2023-08-26T21:28:22 | 2023-08-26T21:28:22 | 234,381,371 | 3 | 1 | NOASSERTION | 2023-08-26T18:56:07 | 2020-01-16T18:08:35 | R | UTF-8 | R | false | true | 792 | rd | compare_version.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/packages--check.R
\name{compare_version}
\alias{compare_version}
\title{Compare Version Numbers}
\usage{
compare_version(v_installed, v_required)
}
\arguments{
\item{v_installed}{vector with installed version numbers}
\item{v_required}{vecto... |
399637a3c390843d1fd4b7d5d6a84940826d1ef1 | 30226a8ce00f58e009fea1df7ab4be3e3015d5cc | /global.R | a3b315960847b7eb66079a654f7e8f8355858b2b | [] | no_license | scottglennscott/RshinyDB | d476311d053f49e6c70210b5bfb5c8c8920977e7 | 9dfd6a360a07fb58d8f8ebf1535b59fe2c0608a6 | refs/heads/master | 2020-03-26T00:09:55.449004 | 2018-08-10T18:49:02 | 2018-08-10T18:49:02 | 144,308,803 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,220 | r | global.R | # Load major & minor categories for the survey mock data
source("settings/categories.R")
library(data.table)
library(ggplot2)
library(rgdal)
library(leaflet)
# Create color palette
# Read geojson with world country data
shp <- rgdal::readOGR(dsn = "layers")
shp@data$level <- as.numeric(shp@data$level)
shp = subset(sh... |
43537c569ec201306acd3b48bf8e77b73cb0ddab | b33735d157848984bc57288b41ce2bded79e2710 | /man/print.CInLPN.Rd | 59533c408b99138e465e97fac8eb44afa4ab1ea2 | [] | no_license | bachirtadde/CInLPN | 9a00a0cabf5af34ba8403b17d81763db6067b990 | bb51492aa116635c4bf70afd29de7bdd58de15a5 | refs/heads/master | 2023-06-30T15:21:04.684650 | 2023-06-20T14:31:49 | 2023-06-20T14:31:49 | 163,929,733 | 2 | 1 | null | 2021-03-28T14:58:25 | 2019-01-03T06:00:38 | R | UTF-8 | R | false | true | 327 | rd | print.CInLPN.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.CInLPN.R
\name{print.CInLPN}
\alias{print.CInLPN}
\title{Print CInLPN object}
\usage{
\method{print}{CInLPN}(x, ...)
}
\arguments{
\item{x}{an CInLPN object}
\item{\dots}{optional parameters}
}
\value{
0
}
\description{
Print CInLPN ob... |
5d7b9283335983fd741c0d6309789463586b511c | 375aa98bbe1bcc9ec96e1ff9a0b563c2526ef317 | /first_paper/GMM EXPORT.R | daaff398ecf5563e677a19998fc7b880729a7713 | [] | no_license | QiKatherine/phd_dissertation | 06f09bfb5ce465cb3536b9302aa349ec0bec3d39 | 0411c7ace720f9616dadbda101b063e622de0d0c | refs/heads/master | 2023-07-30T10:42:48.983012 | 2021-09-09T15:20:04 | 2021-09-09T15:20:04 | 404,759,069 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,973 | r | GMM EXPORT.R | # add_sig_level <- function(x) {
# sig_level <- function(dat) {
#
# if (is.na(dat)) return("")
# y <- as.numeric(dat)
# if (y <= 0.001) return("***")
# else if (y <= 0.01) return("**")
# else if (y <= 0.05) return("*")
# else return("")
# }
# map_chr(x, sig_level)
# }
#
# library(ti... |
317932a47f95c8c21e2f0545ac4103662d9adcbf | fa6c05d1ef97f092b4c51c167f70eb426bc6c1f7 | /05-cluster.r | ad8492ae79a8746b323677dc57a73398bd4d50cf | [] | no_license | huaiyutian/Dengue_COVID-19 | 5120e1b0681307714104eedf599c1238771f02d2 | c0c56b18f8fa2280da29770bd7909796518778ab | refs/heads/main | 2023-08-25T16:03:56.458418 | 2021-10-17T14:27:13 | 2021-10-17T14:27:13 | 418,144,930 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 860 | r | 05-cluster.r | library(pvclust)
npi <- read.csv("00.data/02.PHSM_HMB.csv",row.names=1)
pdf("02.fig/Fig_S14/Fig_S13_cluster.pdf")
# The hierarchical clustering analysis of Bootstrap (the number of Bootstrap is 10000) was carried out. Ward method
# The dissimilarity matrix based on correlation were adopted as follows:
result <- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.