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
572807f08d30511e291aca355144da8522eada40
67c2a90c7edfac3cfd891cb332c45e71cf4a6ad1
/R/din.equivalent.class.R
14cf4cecebc0e659a694a47604d7d30117a1a736
[]
no_license
alexanderrobitzsch/CDM
48316397029327f213967dd6370a709dd1bd2e0a
7fde48c9fe331b020ad9c7d8b0ec776acbff6a52
refs/heads/master
2022-09-28T18:09:22.491208
2022-08-26T11:36:31
2022-08-26T11:36:31
95,295,826
21
11
null
2019-06-19T09:40:01
2017-06-24T12:19:45
R
UTF-8
R
false
false
1,630
r
din.equivalent.class.R
## File Name: din.equivalent.class.R ## File Version: 0.191 #**** calculation of equivalent skill classes din.equivalent.class <-function( q.matrix, rule="DINA") { Q <- q.matrix # Matrix with all skill classes S <- expand.grid( as.data.frame( t( matrix( rep( c(0,1), each=ncol(Q)), ncol=2 )))) J <- nr...
7f5cc8a6738ebe9438c07aece18a68ad5cc76a6d
29585dff702209dd446c0ab52ceea046c58e384e
/mgpd/R/Alog.R
00e0a4df3aa4168e2e5c7f3bc624ebd8beff50ac
[]
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
102
r
Alog.R
Alog <- function(t1, t2, alpha=2 ,... ) eval({t1<-t1; t2<-t2; alpha<-alpha; .Alog})
541261bae139ff349056188533c05b4f9d584927
80c98dbfc7f47256233c4a164482530ad20dd523
/primer/ejp-1/primero.R
702ee91e3754fd87b67cb61d5110588ef088d79d
[]
no_license
davidlechuga/Remedia-est-des
de21f35842e48a997e70243629cac984e820b974
1ade475392d7503a332bb2f32b4298ebb6e3b5b7
refs/heads/master
2020-05-18T21:13:27.838597
2019-05-02T21:42:17
2019-05-02T21:42:17
184,655,250
0
0
null
null
null
null
UTF-8
R
false
false
1,307
r
primero.R
library(readxl) #leer archivos en excel library(dplyr) # libreria para manipular frames library(graphics) # libreria de grafos primero <- read_excel("primero.xlsx", col_names = FALSE) #abrimos el documento typeof(primero) # vemos el tipo de variables del objeto View(primero) primero1<-as.matrix(primero) # convert...
6b63a6587d5444b6653fb406de44671fbef56f8f
0fa414cecc28b3eae79096922a72924981247d0d
/taylor_sin.R
e557fd8d51cf63a27806163a0ee3eb84d15dc59e
[]
no_license
Asmith9555/R_Functions
5e8c67c80892cf0533e2ead543499eb8f71c1011
a60cd817bdbb49dd9096a774a19049259b30409b
refs/heads/main
2023-03-15T20:30:45.185519
2021-03-10T19:55:48
2021-03-10T19:55:48
346,475,104
0
0
null
null
null
null
UTF-8
R
false
false
211
r
taylor_sin.R
#--- taylor_sin <- function(x, n){ taylor_approx <- 0 sin_function <- sin(x) for (k in 0:n){ taylor_approx <- taylor_approx + ((-1)^k)*((x^((2*k)+1))/(factorial((2*k)+1))) } return(taylor_approx) }
117454a9d7ce21c9151ab91dbea511f28534eac4
31fb3920c121d0f174e81d68b0185df98645e60b
/Code/install_pkg.R
8894e15a14610acbb10cc28c8423dac2d8cc35cb
[]
no_license
omega-eol/ds_boilerplate
8af23660c236888d01f4c9ca352c8762f1c10f62
d3912cc9b9d7b308ce318e94d8e63d83b34eb4c2
refs/heads/master
2021-01-10T05:55:01.838847
2015-12-31T23:24:10
2015-12-31T23:24:10
44,648,067
0
0
null
null
null
null
UTF-8
R
false
false
743
r
install_pkg.R
# list of most common packages that I usually use # update all old packages first update.packages(); # to support parallel computation install.packages("codetools"); install.packages("foreach"); install.packages("doMC"); install.packages("parallel"); # sparse matrix install.packages("Matrix"); # c++ support install...
06e85b75a6ed819bb96d5fcb32afc3a6b89b703b
65cc65e883596f91bd8cf5c571127bd825b77026
/Weekend_Homework.R
5fc29abff67b6777c69fcd7aa651fcbcd50fbad9
[]
no_license
Nkomo1997/Intro_to_R_UWC
4fa60b0e915e9899303ad65d735a5bbe99894475
0eb1a3021f4bba58172fdbabdf5c1c681cf61cd4
refs/heads/master
2020-04-19T16:06:20.164987
2019-05-14T20:23:17
2019-05-14T20:23:17
168,294,101
0
0
null
null
null
null
UTF-8
R
false
false
2,575
r
Weekend_Homework.R
# Instructions: # Submit: Tuesday morning (before 10-am) # Answer each of the sections in an individual script # Answer all sections # Add comments and notes thoughout the script # Section 1: # Make use of the rast_feb and rast_aug dataset: # Explore the dataset (Hint* head, tail, glimpse etc) - Make use of google fo...
b92704f38b2c4108032105445294b2597689cee3
1ed875767a44b0458a6ef079e51d0a0cbb545fff
/server.R
c924b113182094b63c75c911d16185ff23956142
[]
no_license
fleschgordon/Coursera_DevDataProd
09835b8209736f6d4476eadae0a74d3c81359ec2
e3d40a0364d59b94b3766e89bcacc4db8f991ca1
refs/heads/master
2020-06-11T15:32:48.909293
2016-12-05T15:45:55
2016-12-05T15:45:55
75,625,725
0
0
null
null
null
null
UTF-8
R
false
false
4,140
r
server.R
# # This is the server logic of a Shiny web application. # library(shiny) library(shiny) library(dplyr) library(tidyr) library(ggplot2) library(plotly) library(RSQLite) library(reshape2) library(RColorBrewer) library(gplots) library(data.table) library(d3heatmap) library(viridis) # Define server logic required to dr...
c2d5ebfc94ab6f1e77b7d1cacec076a339e77689
99227ef3ea18a4ca96e9d1e6b1f6ea77dcf19dba
/readcsv.r
0392ece12f1e8a416d7c93d2c99a9fa8bc3961f2
[]
no_license
sayefi/test-repo
4655df193df4e01b88926ba8d9a11a4cb7c0ef1f
5639756e4f6b960cdd840b2785392f31713c0a99
refs/heads/master
2021-01-02T23:05:13.755078
2017-08-29T03:11:22
2017-08-29T03:11:22
99,464,865
0
0
null
2017-08-06T16:38:25
2017-08-06T04:50:02
null
UTF-8
R
false
false
305
r
readcsv.r
fileUrl<-"https://d396qusza40orc.cloudfront.net/getdata%2Fwksst8110.for" download.file(fileUrl,"data/quizdata.csv") list.files("./data") fData<-read.csv("data/quizdata.csv",sep=" ",skip = 3,header = TRUE) fData<-read.fwf("data/quizdata.csv",skip=4,widths=c(12, 7, 4, 9, 4, 9, 4, 9, 4)) sum(fData$V4)
a53bb5478e1bcf3b798a4a11e9dc307542a6c657
cd69c92a74016f7957dcd7a81c2f3a1fb91fba01
/test.R
401238c83d1dd8a8df22b5c6a2632feb9d591b1c
[]
no_license
kalexanderk/TestTask_SAS
cff7f48861ac6fb3f67fb843ca3b24aa5abddb9d
78635f94b482e230891cc620cebcf2511708e7e8
refs/heads/master
2021-07-09T10:13:11.958354
2017-10-08T09:55:22
2017-10-08T09:55:22
null
0
0
null
null
null
null
UTF-8
R
false
false
1,219
r
test.R
library("openxlsx") df_initial <- read.xlsx("Data/payments.xlsx", sheet=1) typeof(df_initial) class(df_initial) change_date <- function(x) as.Date(x ,origin='1960-01-01') df <- data.frame(df_initial['lead_id'], lapply(df_initial['dt'], change_date), df_initial['amount']) df['weekday'] <- format(df['dt'], "%A") summary...
1ecc58e74768765c1b12b9d3631239535b4e0c64
c79c01fc45ddf21fcd482563ff023d483374efd4
/R/sperrorest.R
5603345492032ea2bbf3655910a801e6cda79d61
[]
no_license
cran/sperrorest
75700bd7da78449c5e5d25ac44d836a1a2600f40
00e8c435a36e08b8592373e8487271daad0ab2b9
refs/heads/master
2022-11-12T17:15:09.873658
2022-10-16T11:50:02
2022-10-16T11:50:02
17,700,028
0
2
null
null
null
null
UTF-8
R
false
false
23,762
r
sperrorest.R
#' @title Perform spatial error estimation and variable importance assessment #' #' @description {sperrorest} is a flexible interface for multiple types of #' parallelized spatial and non-spatial cross-validation and bootstrap error #' estimation and parallelized permutation-based assessment of spatial variable #'...
c79d3277dd036e765197c768eeb25295574eb3b1
5757fcdbcf06bec35c9c72fb07a5523f99f137f2
/R/get-targets.r
1ab4444246ac6ffb5914741b69a80c9447a0845d
[]
no_license
nrminor/ebird-target-map
080eff43ca5d309e43f18faa357b9e7d52d70938
a4d121d8afc4fd6f2633d263f79afcc9a17b7a94
refs/heads/master
2023-07-06T08:25:41.105670
2019-03-12T15:59:05
2019-03-12T15:59:05
null
0
0
null
null
null
null
UTF-8
R
false
false
469
r
get-targets.r
get_targets <- function(life_list, region_list, freq_thresh, period) { if (period > 0) { region_list <- dplyr::filter(region_list, month == period) } dplyr::group_by(region_list, region_code, species_code) %>% dplyr::summarise(frequency = mean(frequency)) %>% dplyr::ungroup() %>% dplyr::filter(...
e10854fd721b5d1ce3d76ec319cbed1165b146fd
fb63f02100ac34f6d050e22d2028904e1c7dd462
/R/RIT.R
8ebd21d02a7a9995a2c3a4f012408c0c6da7aec7
[]
no_license
chanzuckerberg/FSInteractX
f99a687428ef97f2fb902203fc2f68475e1c398b
ea8a9e7996d720a973ad0b2abca2dc01662b6561
refs/heads/master
2020-04-07T00:24:27.623146
2018-11-20T21:38:29
2018-11-20T21:38:29
157,902,653
0
0
null
null
null
null
UTF-8
R
false
false
3,882
r
RIT.R
RIT <- function(z, z0, branch=5, depth=10L, n_trees=100L, theta0=0.5, theta1=theta0, min_inter_sz=2L, L=100L, n_cores=1L, output_list=FALSE) { ## check L, branch, depth, t, min_inter_sz, n_cores, output_list L <- as.integer(L) branch <- as.double(branch) depth <- as.integer(depth) n_tree...
5ae27923fb37dd41fc3b241fe390393bc20737a3
9247d61661679ce45b608f778a7783a9d57b4557
/pda.R
ed76b54a89d4b9f96296c119334e8ed0658c0491
[]
no_license
smartbenben/platform
3ab887918d86e201e0d3a2294974cc6134221f43
1873260a5c063f733961e73c83e801a05639bff5
refs/heads/master
2022-12-26T06:29:27.682053
2020-10-03T00:06:09
2020-10-03T00:06:09
290,269,174
0
0
null
null
null
null
UTF-8
R
false
false
1,523
r
pda.R
# Closed-form probability distribution of treatment allocation # N: number of patients (scalar) # p: success probabilities (vector) # priora, priorb: priors for beta(alpha, beta) pda <- function(N, p, nmin, early.stop=FALSE, priora=NULL, priorb=NULL) { # number of treatment arms k <- length(p) ...
47e71db8dbaeea9e8cf27588a8dfe87bdecb474c
4136fec9aeffcf809ee5f5e2d9dc1c7f8a413ba9
/code.R
9f798c5ce741599b65f4e191880d54783a691da1
[]
no_license
atamagnini/r-project-happiness-report
1c4831b09205e058f5c46ffe1858adae70fbb89a
86367576ddafecb290d75c4222c7531a24fa2035
refs/heads/main
2023-08-19T10:30:48.135718
2021-09-29T20:19:05
2021-09-29T20:19:05
411,814,510
0
0
null
null
null
null
UTF-8
R
false
false
1,278
r
code.R
library(tidyverse) library(highcharter) library(webshot) library(htmlwidgets) dataset <- read.csv('~/dataset.csv') #Reshape dataframe df <- as.data.frame(dataset) df <- df[, -c(3:5)] colnames(df)[1] <- 'Country' glimpse(df) df$Country <- as.character(as.factor(df$Country)) #Replace value in specifi...
8db12f0308292197f80798f4fa846128af327b3d
a4bcc17bab2f4ac27c37f8f0027168211a9bc24d
/man/subsetTxi.Rd
c869093d171c2379aae2ed8d5ed344fdf65f32c5
[]
no_license
hcnh174/hlsgr
7da6307f535038d00e9030eab61e1a0045fc745a
23b0d0cce887eef200c90fccb5a667b4fc1f37cd
refs/heads/master
2023-04-13T18:44:28.519716
2023-04-03T05:38:45
2023-04-03T05:38:45
262,727,333
0
0
null
null
null
null
UTF-8
R
false
true
334
rd
subsetTxi.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rnaseq.R \name{subsetTxi} \alias{subsetTxi} \title{Subset txi data by sample or gene} \usage{ subsetTxi(txi, samples, include_genes = rownames(txi$counts)) } \arguments{ \item{include_genes}{} } \value{ } \description{ Subset txi data by sam...
aecd883eec83d90fccb70dd13d335e7fb3b2407f
f43ff1e09138649558c2e90a75bd2d4f3cbbdbb6
/source/Windows/R-Portable-Win/library/digest/tinytest/test_raw.R
902a1e2721ceb04ed701258abaff687a13dbe7ce
[ "GPL-2.0-only", "MIT", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
romanhaa/Cerebro
5b2d9371403c52f60341894f84cd0f6a006cc930
946ed178c986027d60af6013e63d1fc51ae8b371
refs/heads/master
2022-12-02T15:49:57.705873
2021-11-20T11:47:12
2021-11-21T17:09:37
164,686,297
87
23
MIT
2022-11-10T18:21:44
2019-01-08T16:09:59
HTML
UTF-8
R
false
false
692
r
test_raw.R
## tests for raw output suppressMessages(library(digest)) current <- hmac("Jefe", 'what do ya want for nothing?', "md5", raw=TRUE) expected <- as.raw(c(0x75, 0x0c, 0x78, 0x3e, 0x6a, 0xb0, 0xb5, 0x03, 0xea, 0xa8, 0x6e, 0x31, 0x0a, 0x5d, 0xb7, 0x38)) expect_equal(current, expected) current <- d...
e3a4200344ff66bb5814dd81e94b562768599c00
29585dff702209dd446c0ab52ceea046c58e384e
/bpca/demo/rock.var.rd.R
8e4867e95772f5dbf6aebdfb404c2a6cfb086d99
[]
no_license
ingted/R-Examples
825440ce468ce608c4d73e2af4c0a0213b81c0fe
d0917dbaf698cb8bc0789db0c3ab07453016eab9
refs/heads/master
2020-04-14T12:29:22.336088
2016-07-21T14:01:14
2016-07-21T14:01:14
null
0
0
null
null
null
null
UTF-8
R
false
false
1,097
r
rock.var.rd.R
oask <- devAskNewPage(dev.interactive(orNone=TRUE)) bp <- bpca(rock, var.rb=TRUE, var.rd=TRUE) summary(bp) # The total variance explained is satisfactory (>= .80)! plot(bp) # A more accurate diagnostic bp$var.rd # It is possible to observe that the variable 'perm' # has not a good representat...
ebb5420a95b85651553d43c1ac3105fd6f366c26
c750c1991c8d0ed18b174dc72f3014fd35e5bd8c
/pkgs/oce/tests/testthat/test_flags.R
8c85f3e6e5ec162d4cb8cd85fb97648d0e661997
[]
no_license
vaguiar/EDAV_Project_2017
4b190e66fe7a6b4078cfe1b875bccd9b5a594b25
288ffaeec1cfdd873fe7439c0fa0c46a90a16a4f
refs/heads/base
2021-01-23T02:39:36.272851
2017-05-01T23:21:03
2017-05-01T23:21:03
86,010,131
1
0
null
2017-05-01T23:43:04
2017-03-24T00:21:20
HTML
UTF-8
R
false
false
3,975
r
test_flags.R
library(oce) context("Flags") test_that("[[ and [[<- work with ctd flags", { data(section) ctd <- section[["station", 100]] expect_equal(c(2,2,2,2,2,3), ctd[["salinityFlag"]][1:6]) ctd[["salinity"]][2] <- -999 ctd[["salinityFlag"]] <- ifelse(ctd[["salinity"]] < 0, 3, c...
85f06b4b8f6c01720f539cf172a3ba1680978a74
1b874124f7a4492b23028ebb7878fb6db7ec6ccb
/man/gene_pos_counts.Rd
748409ed636ea8514869d3ac0c95025936923a77
[ "MIT" ]
permissive
sariya/GARCOM
c149c40483742d68c72be54311e0df1dace68bb9
53ad17a654c71ddbc6aacbf9065d2b736c3855fd
refs/heads/master
2023-04-11T21:41:49.020295
2022-12-23T11:37:19
2022-12-23T11:37:19
290,058,010
0
0
null
null
null
null
UTF-8
R
false
true
3,441
rd
gene_pos_counts.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gene_pos_counts.R \name{gene_pos_counts} \alias{gene_pos_counts} \title{gene position counts} \usage{ gene_pos_counts(dt_gen,dt_snp,dt_gene,keep_indiv=NULL, extract_SNP=NULL,filter_gene=NULL, impute_missing=FALSE,impute_method="mean") } \argu...
6ed72734d4b385a36f47cc388a8c42a4bf10b350
aff3c6907f74ee86a8661cf9280b3049c60e02cc
/man/addIntercept.Rd
9cf7de5c2455e82d61a3eedf92e19dcf3cd9d04a
[]
no_license
josherrickson/pbph
1c701e07928c84b70f62bc31b43fbd3f45bb2c93
2f322d46af1c2f1e8c1431cfc7a2af3f27d135d2
refs/heads/main
2023-06-23T04:10:03.698604
2023-06-07T13:31:25
2023-06-07T13:31:25
42,535,789
1
0
null
null
null
null
UTF-8
R
false
true
696
rd
addIntercept.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities.R \name{addIntercept} \alias{addIntercept} \title{Internal function to add a column for the intercept to a matrix.} \usage{ addIntercept(x) } \arguments{ \item{x}{A \code{matrix} or \code{data.frame}.} } \value{ A \code{matrix} (if ...
29759323c8422fff8c2d1c65cb52a2cbe1df5c56
9ad7f8213adb1064d4b95e240a36572fdd413dbe
/GeraAlerta/fun/pop.r
bba78a02fdfaf9adccd0bc6412c7ce541073443f
[]
no_license
claudia-codeco/AlertaDengueAnalise
5bb2e0a05fc54cf88652df8bc22238d2d7ac3fc7
a39d8df5ce95e0dbd5881b1511935502a3585a37
refs/heads/master
2021-01-16T20:39:26.028225
2015-10-10T20:31:03
2015-10-10T20:31:03
22,836,135
0
0
null
null
null
null
UTF-8
R
false
false
320
r
pop.r
d<- read.csv(file="pop.csv") head(d) class(d$pop) b <- read.csv(file="bairro2AP.csv") names(b)[2]<-"BAIRRO" head(b) bd <-merge(d,b,all.d=TRUE) head(bd) class(bd$pop) popap<-aggregate(bd$pop,by=list(bd$APS),FUN=sum) names(popap)<-c("APS","Pop2010") write.csv(popap,file="populacao2010porAPS_RJ.csv",row.names=FALSE)
fdc61fb57a9a427df88536aa20354d97708d6d0a
bb2cf94c9925c755e8d838e5e7547c3d82ca48bb
/RSI NORMAL.R
2ef1a49ec44bc7ee393ccd07474a30120714cf9f
[]
no_license
VivekVerma25/codingground
8a6706dfa3293a577e3594ec5ddbad7bc02268bf
7387e33d8cd142982e8ba0f44d1251f3523c96e9
refs/heads/master
2021-01-22T06:11:56.225998
2017-06-16T17:24:06
2017-06-16T17:24:06
92,528,840
0
0
null
null
null
null
UTF-8
R
false
false
25,467
r
RSI NORMAL.R
library(zoo) library(TTR) # library(timeSeries) # library(slam) # library(quantmod) # library(quantreg) # library(allelematch) path_input<-"C:/Users/YashV/Desktop/Framework Data/" path_output<-"C:/Users/YashV/Desktop/Framework Data/" stck_lvl<-data.frame(read.csv(paste(path_input,"Roll adjusted returns.csv",...
5a4cd4215f0cf5c4003ef5a9ce58ca80b0882322
a9a48fd57852f07d84e874579050ca124345868f
/R/Healthcareai/Diabetes/diabetes.R
efd25eb9e134a9b986acae75321f3766f338527c
[]
no_license
nicolaumatarrodona/AI
f28689d3f56192fd24e3622427a6b0e20c1d72da
3d024541a902a05855e3273d527417f29fe1b76d
refs/heads/master
2020-08-04T13:57:46.176130
2019-10-13T06:30:19
2019-10-13T06:30:19
212,159,883
1
0
null
null
null
null
UTF-8
R
false
false
5,392
r
diabetes.R
library(healthcareai) str(pima_diabetes) #-------------------------------------------------------- # Easy Machine Learning #-------------------------------------------------------- quick_models <- machine_learn(pima_diabetes, patient_id, outcome = diabetes) quick_models predictions <- predict(quick_models) predictio...
6cb7d8010b1850a66aaaa82c6e7db4e87f0a0783
35f40a71768518309a394e584e25aa7c043311db
/ui.R
77a9af0ce19b367ed3ec0312912410952d803c88
[]
no_license
sandrafdo/Shopping-Analysis
593e1d4b524ec7b6fdcb7bbfa31ab9b96417d272
5a823baa20cb4b5bc1b5616e63e67868c9e4b8d7
refs/heads/master
2020-03-20T00:13:29.516246
2018-06-12T07:53:19
2018-06-12T07:53:19
137,036,455
0
0
null
null
null
null
UTF-8
R
false
false
634
r
ui.R
library(shinythemes) library(datasets) library(rsconnect) InputData<-read.csv("D:/Analysis.csv") # Use a fluid Bootstrap layout fluidPage( theme = shinytheme("slate"), # Give the page a title titlePanel("ONLINE SHOPPING ANALYSIS"), # Generate a row with a sidebar sidebarLayout( # Defi...
7a78cbddb4ff502cf96301326dba404daec65e69
728315d8c5d09e13c67641030b92d59c5e7e2222
/moderate/predict_the_number.r
2a6bbb475cac92d44161f3bf761b0913024d8cd1
[ "MIT" ]
permissive
shortthirdman/code-eval-challenges
88ea93c0e9385b2a0db95a05b1f3f753c900a62d
cf2197927830326539399fdd3e16c9b8a4468f7d
refs/heads/master
2023-03-06T19:34:44.607154
2023-02-26T13:30:56
2023-02-26T13:30:56
92,970,178
4
0
MIT
2023-02-26T13:30:57
2017-05-31T17:14:59
Go
UTF-8
R
false
false
242
r
predict_the_number.r
cat(sapply(as.double(readLines(tail(commandArgs(), n=1))), function(t) { r <- 0 if (t >= 2^31) { t <- t - 2^31 r <- 1 } s <- as.integer(t) while (s > 0) { s <- bitwAnd(s, s - 1) r <- r + 1 } r %% 3 }), sep="\n")
c1528624680f94f1f67517b6ae17ae465e7f001e
f32f521476b59d0a3f1ecc15be45a08c544603b6
/other_code/make_tpm_files.R
91bfd7e6f3491ee3372000a762e88d56d60f4612
[]
no_license
buttelab/harmonyrna
e32e4ff373ab2fe59ed5947f66848c5200545b57
6059618c761d5e635bb13a27a23c2c322141dc99
refs/heads/master
2022-11-29T13:05:20.272831
2020-08-12T20:21:27
2020-08-12T20:21:27
286,588,291
0
0
null
null
null
null
UTF-8
R
false
false
6,003
r
make_tpm_files.R
# Code created by Matthew Elliott # Contact: melliot1@ucsc.edu (valid until 2023) # Phone: 231-392-1263 (just in case) ############# ### Set Up Notebook ############# library(plyr) library(biomaRt) ############# ### Load Data ############# # We reharmnonize the wholeblood dataset using harmony ran method ...
96bff821923b8f8ef9519573cf7ad5f590fd5bb9
bd4a9e6c4e7f83f2f6ac1a750cefd17fe3ee3598
/proc_CITIPM_v1_0.R
1a351a84ef872f034294fe836a96c303b0d1eef4
[]
no_license
castillosebastian/JUSTAT
e125ece65a8e9f032ecef4cf442ba220ce111a5f
63f11a714a8a446f0a90bf14fda3963c455db26e
refs/heads/master
2021-01-18T15:40:52.211027
2017-08-15T14:51:13
2017-08-15T14:51:13
100,383,250
0
0
null
null
null
null
UTF-8
R
false
false
2,458
r
proc_CITIPM_v1_0.R
# JUSTAT is a free software developed for official statistics of Supreme Court # of Entre Ríos (STJER), Argentina, Office of Planification Management and # Statistics (APGE) # V.1.0 # 13-06-17 # Authors # JUSTAT: Lic. Sebastián Castillo, Ing. Federico Caballaro y Lic. Paolo Orundes ############################ proc...
fa46a0fa3f57b21cd483cf09465c75055249d7da
52586df6b1df22e19750306185ee69a7b09abf42
/FastIEM/src/GMM/utils/algos.R
3a39c39f1a22bdfc88886cb3bd92aa7ef35fbc21
[]
no_license
BelhalK/AccelerationTrainingAlgorithms
5d1390f5a5cb6f24f59f2c06073040056014aa64
0cc5f4405ad103f704cd7c6259762a66fb6bf37f
refs/heads/master
2023-07-25T02:28:38.095277
2020-10-30T09:14:28
2020-10-30T09:14:28
94,530,148
0
0
null
2023-07-06T21:20:14
2017-06-16T09:46:26
Jupyter Notebook
UTF-8
R
false
false
5,616
r
algos.R
require(ggplot2) require(gridExtra) require(reshape2) mixt.simulate <-function(n,weight,mu,sigma) { G <- length(mu) Z <- sample(1:G, n, prob=weight, replace=T) x<-NULL for (g in 1:G) { x<-c(x,rnorm(length(which(Z==g)),mu[g],sigma[g])) } return(x) } #------------------------------------- mixt.em <...
3176f072b452bd4063bb3eebbd6d360bb8d2d0b4
dc0dfacaa2d82b87ea71a9e951ab2716d5459dd7
/R/baseline.norm.cl.R
049507cf46e954946d71e1df15e84dcbf6e0f748
[]
no_license
navinlabcode/copykat
7e797eaad48a5a98883024dc0ee2194f9d7010e0
b795ff793522499f814f6ae282aad1aab790902f
refs/heads/master
2023-09-05T13:42:47.124206
2022-09-23T17:43:44
2022-09-23T17:43:44
231,153,766
158
53
null
2021-03-05T22:20:36
2019-12-31T22:45:07
R
UTF-8
R
false
false
2,121
r
baseline.norm.cl.R
#' find a cluster of diploid cells with integrative clustering method #' #' @param norm.mat.smooth smoothed data matrix; genes in rows; cell names in columns. #' @param min.cells minimal number of cells per cluster. #' @param n.cores number of cores for parallel computing. #' #' @return 1) predefined diploid cell names...
de024a647786e86441600e633162d088b5e01e37
b8edf0c8c2e7ace0427623bb7d0915d757261c9d
/man/choose_rho.Rd
873566ec9eae813adbfaacad53e1b55a5d6ac712
[ "MIT" ]
permissive
ressomlab/INDEED
63326276b316c1248f1473573571a572067396c7
b935993c28d4e136297075d50549d7036eeddc13
refs/heads/master
2022-08-12T02:00:51.612094
2022-07-29T19:40:12
2022-07-29T19:40:12
130,506,907
9
8
null
2019-10-30T20:36:20
2018-04-21T19:45:42
R
UTF-8
R
false
true
561
rd
choose_rho.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/helper_function.R \name{choose_rho} \alias{choose_rho} \title{Draw error curve} \usage{ choose_rho(data, n_fold, rho) } \arguments{ \item{data}{This is a matrix.} \item{n_fold}{This parameter specifies the n number in n-fold cross_validation...
9334d61fefbdddc2103e7bdf666bfaa3e041c4c4
d11dba6dafe5f5204743e03662d8d6d216672393
/man/ip_random.Rd
2a416f7c8e08ae9f78bb0c8cf749bcbe0bef346c
[]
no_license
ktargows/iptools
d7b6e260296750198444b0edde26a09df4ad3630
d3d85680cd85d276672a42f4bbdeb8fac3d8758e
refs/heads/master
2021-01-11T01:55:03.682784
2016-10-06T01:54:41
2016-10-06T01:54:41
null
0
0
null
null
null
null
UTF-8
R
false
true
821
rd
ip_random.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generators.R \name{ip_random} \alias{ip_random} \title{generate random IPv4 IP addresses} \usage{ ip_random(n) } \arguments{ \item{n}{the number of IP addresses to randomly generate.} } \value{ a character vector of randomly-generated IPv4 ad...
e2e7a0479dd6e866a09eb180a71355a400c89daf
2b864fa89488650a9840c49f8312ebccc3fefffc
/ggplot2 - hadley wickham/chapter4.R
017e66aa49086c129f99fbb173e219172bc3a011
[]
no_license
harryyang1982/r-codes
8147d3f70fd7cf435ecb34d1bc1acd921b75f7bd
89fb033f11f26c285837c0e04b74d6453c16be50
refs/heads/master
2020-12-30T11:52:12.212063
2018-04-12T06:25:58
2018-04-12T06:25:58
91,541,975
0
5
null
null
null
null
UTF-8
R
false
false
740
r
chapter4.R
# 4.2 Building a Scatterplot library(tidyverse) ggplot(mpg, aes(displ, hwy, color=factor(cyl))) + geom_point() ggplot(mpg, aes(displ, hwy, color=factor(cyl))) + geom_line() + theme(legend.position = "none") ggplot(mpg, aes(displ, hwy, color=factor(cyl))) + geom_bar(stat="identity", position = "identity", fi...
7f552a406cf81e128f771069ae7537c01593b2c1
29585dff702209dd446c0ab52ceea046c58e384e
/ggtern/R/utilities.R
42d687dab4dd2228ccba7cf521499e99af95125f
[]
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
8,739
r
utilities.R
#'Internal Functions #' #'@description INTERNAL FUNCTIONS: \code{ggtern} makes use of several non-exported internal functions, list are as follows: #'@keywords internal #'@name zzz-internal #'@rdname undocumented NULL #' \code{ifthenelse} function takes input arguments \code{x}, \code{a} and \code{b} and returns \code...
099bc1814b5bc79a5d0d43d37e1b93b4d235df65
b4ff9e10ae4ee08998429208ae74586ff402deed
/man/plot_worms_grid.Rd
6db834669621cf22b010988c85e6790b77aa54c7
[]
no_license
chuanboguo/gfdlm
61e5869a3e3227a8e70cd5eb86e6da74c69e308a
8e878a8b06f14ba7d92f12766de73463f275359c
refs/heads/master
2022-11-15T01:54:34.299145
2020-04-22T05:36:34
2020-04-22T05:36:34
269,184,929
0
0
null
2020-06-03T20:13:09
2020-06-03T20:13:09
null
UTF-8
R
false
true
767
rd
plot_worms_grid.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/figures-worm.R \name{plot_worms_grid} \alias{plot_worms_grid} \title{Make a Kobe "worm" timeseries plot with uncertainty} \usage{ plot_worms_grid(object_list, prob = 0.5, include_historical = TRUE) } \arguments{ \item{object_list}{A named lis...
e8a9245bccbc7c8d84f2478ae0e89a84ea3fe285
7ebe128fc17cdc0e2f534dbe5940774e98da4ce8
/man/WAIC.Rd
26795572ba63c8de8b63a102c100199ad1272dd5
[]
no_license
cran/bamlss
89f8d08be4599c03120acb9ed097c31916d1ef21
5535fb038104cdd3df08eccb92863a778cd56e75
refs/heads/master
2023-07-17T04:24:23.253981
2023-07-04T06:30:02
2023-07-04T06:30:02
82,776,249
2
5
null
null
null
null
UTF-8
R
false
false
1,014
rd
WAIC.Rd
\name{WAIC} \alias{WAIC} \title{ Watanabe-Akaike Information Criterion (WAIC) } \description{ Function returning the Watanabe-Akaike Information Criterion (WAIC) of a fitted model object. } \usage{ WAIC(object, ..., newdata = NULL) } \arguments{ \item{object}{A fitted model object which conta...
88b830f3ec82b3fc857f8f63bbaaa8eee1f441bf
6e9eb1a6eee8b578b6d8a530eadef32ccdb4ef4a
/content/mapk/mapk_VP.R
c76ca7396aa7a328ad8fb42bff11b4ef3499fd99
[]
no_license
metrumresearchgroup/ub-cdse-2019
72fcbd1544b79b7ed78de5bc00244b8728a9c331
018859a3aebbb1d114a39f2684ef501080e68b99
refs/heads/master
2020-05-07T09:55:00.952992
2019-04-18T22:06:00
2019-04-18T22:06:00
180,396,320
6
2
null
null
null
null
UTF-8
R
false
false
3,583
r
mapk_VP.R
library(mrgsolve) library(tidyverse) library(magrittr) library(reshape2) library(R.utils) sourceDirectory("content/script/VPop/") # Load simulation results (We are trying to match this Population) sims <- readRDS("content/mapk/mapk_sims.RDS") sims %<>% filter(label == "GDC") # Load treatment regimens reg <- readRDS(...
30dd2c5b104444ffb76cabe23c5666bbbc45323e
0505b9118b71b919d8cae3684ce15f1328ef9c72
/man/binQTLScan.Rd
e6d04b6bf418aa89f27c2c000f8c407a70b1b374
[]
no_license
YaoLab-Bioinfo/binQTL
851a1d090f0932c0bd71f38a9a79ca5b72f7ddb2
97c7dce106b673d7af880cc6c387f7008c4e7f36
refs/heads/master
2022-01-11T19:57:21.731539
2019-05-18T13:54:57
2019-05-18T13:54:57
93,064,482
1
0
null
null
null
null
UTF-8
R
false
false
1,630
rd
binQTLScan.Rd
\name{binQTLScan} \alias{binQTLScan} \title{QTL mapping with binmap data} \usage{ binQTLScan(phenotype="", genotype="", population="RIL") } \arguments{ \item{phenotype}{A data frame representing the phenotype of a population.} \item{genotype}{A data frame representing the genotype of a population.} \i...
6539e4d8daf388fc4b63fc8e73c6cb450473fe10
9cc6a9e0035cbfa4f05e7e6a7bc986fb28d0b8f8
/tests/test.matharray.R
172ff92c4c8df5d00f0f403bc07988165ed8c98b
[]
no_license
cran/xtable
5718ef14118ecf648f45a9cb0235a2121249426f
137fbfebc88cfd4aa5e7d2463e8889049b033dce
refs/heads/master
2021-06-08T07:10:15.108553
2019-04-21T11:20:03
2019-04-21T11:20:03
17,700,942
3
5
null
null
null
null
UTF-8
R
false
false
898
r
test.matharray.R
require(xtable) V <- matrix(c(1.140380e-03, 3.010497e-05, 7.334879e-05, 3.010497e-05, 3.320683e-04, -5.284854e-05, 7.334879e-05, -5.284854e-05, 3.520928e-04), nrow = 3) ### Simple test of print.xtableMatharray print.xtableMatharray(xtable(V, display = rep("E", 4))) class(V) <- c("xtable...
0bd0c55d889ce7059868f8918080cc7460a51b6b
242e7e98e5cade53b253664f69f77afeaa8895e7
/TestFunctions.R
285f09833912cc299e6d532c221e53e696695025
[]
no_license
MarkBell1310/PGSMs
a7446d86353229710d0f7d43f20c7952c2c66ce2
01f6ec55f84030a9091082ad41a882a83ba72791
refs/heads/master
2021-01-24T21:25:23.786728
2018-04-16T13:09:58
2018-04-16T13:09:58
123,270,036
0
0
null
null
null
null
UTF-8
R
false
false
2,539
r
TestFunctions.R
#**************************************************** # #**** Particle Gibbs for SBMs - Test functions ****** # #**************************************************** rm(list = ls()) library(Matrix) library(igraph) library(matrixStats) #library(blockmodels) source("PGSMsFunctions.R") #**********************************...
8befba189cb38a0382e85bb8b3865f7917a7a9fe
9f372e4eda2adcdbdfc20883d4a66083fcf42d7c
/Scripts/Benchmark_script.R
fb9801ebf5bd0b3457efa30259664ec6ddd2474d
[]
no_license
mftth/Deko_Projekt
bb4f68f6b83fffb9ff29ae8e6086830c3148cc72
9b7d13483055f3c2012260b11f96e20d55e451a8
refs/heads/master
2023-02-22T11:33:10.189233
2021-01-19T09:36:48
2021-01-19T09:36:48
null
0
0
null
null
null
null
UTF-8
R
false
false
4,052
r
Benchmark_script.R
### benchmark runs # missing_samples = c("105103","130002","PNET08","130003","145702","1344","127403","PNET55") library(devtools) load_all("~/artdeco") source("~/Deko_Projekt/CIBERSORT_package/CIBERSORT.R") library("stringr") library("bseqsc") library("MuSiC") ### #transcriptome_data = read.table("~/Deko_Projekt/Data...
7339254052d668cb0167050d2709b3a7ae97e862
3ab3abeca359d7690de4bb3d0cd7d3b55db349c3
/Impute NA.R
37256ff07f5f5b7ec73f58558a720cd5313f558d
[]
no_license
ravindrareddytamma/EDA-Techniques
7eed4308bd095a0efb7dad41eae7f6c1d3b4560a
59faa76132405e9fa8b347651912124f1d783f0f
refs/heads/master
2020-03-14T08:11:58.542173
2018-05-01T17:47:22
2018-05-01T17:47:22
131,519,641
0
0
null
null
null
null
UTF-8
R
false
false
177
r
Impute NA.R
impute.na <- function(colname) { if(!is.numeric(colname)) stop("Required Numeric Column as Input!") suppressWarnings(require(zoo)) return(na.approx(colname)) }
0230c0ef1f847c8205c7a8d9fc589e56d5a69f7d
7cde2a767abd22950471a6ef9d83b4122c6aa674
/scripts/original_simulations/4-plotResults.R
98a11a819f1ad126511f10ac04a361e48e49a82a
[]
no_license
jfiksel/ReVAMP_Simulations
c6c73211106497efcaa39d6f96632fb881dc5ecf
6a142be0a53e2828573309efe62b7d118f449f6d
refs/heads/master
2020-03-28T04:52:57.748212
2018-09-17T15:08:55
2018-09-17T15:08:55
147,742,363
0
0
null
null
null
null
UTF-8
R
false
false
1,402
r
4-plotResults.R
library(ggplot2) library(dplyr) results <- readRDS("../../data/simulation_results.rds") results$csmf.acc.split <- round(results$csmf.acc.split, 2) ### relevel results results$method <- factor(results$method, levels = c('tariff_calib', 'tariff_train_and_calib', ...
21547739d9ea051dbe4ff5ccbc95c724d8df0bd2
5ded80783b7c77fba142feae93509f0dc062b31b
/R/plugin.R
08ac2f33f9d2133292fb9275bb25e22e83ad84bd
[]
no_license
cran/ROI.plugin.scs
daf5f4714784f0ab1c97fe0794cef96bf837746e
efc0509c21b38aedefb4049daea9502bbc84c4c1
refs/heads/master
2023-08-05T04:06:41.381302
2023-07-07T11:40:02
2023-07-07T11:40:02
61,485,404
0
0
null
null
null
null
UTF-8
R
false
false
8,644
r
plugin.R
## ROI plugin: SCS ## based on scs interface cone_dims <- function(x, ctype) { wcol <- which(colnames(x) == ctype) if ( length(wcol) == 0 ) return(NULL) as.integer(table(x$v[x$j == wcol])) } cone_counts <- function(x, ctype) { wcol <- which(colnames(x) == ctype) if ( length(wcol) == 0 ) return(0) ...
2a92698842393df12c91f4b347080301e8d3c0b6
0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb
/cran/paws.analytics/man/gluedatabrew_delete_schedule.Rd
dfde919193870603f6d301f2cb565d25892343e4
[ "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
521
rd
gluedatabrew_delete_schedule.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gluedatabrew_operations.R \name{gluedatabrew_delete_schedule} \alias{gluedatabrew_delete_schedule} \title{Deletes the specified DataBrew schedule} \usage{ gluedatabrew_delete_schedule(Name) } \arguments{ \item{Name}{[required] The name of the...
93be39609545533105cb9ab8937b37bf19b5b776
bcb827857c741281b6a99616c8244d02a0d0bfc6
/R/split2csv.R
da056728e3b6f486c34a738a173ef08d9fe40525
[]
no_license
ellyck/upgraded-waffle
d6cd301b7af6941ec523f0000e994118e476c8b1
f1fd6c8f160d6cc182123c50b62181b02c79a8e0
refs/heads/master
2022-02-22T00:52:38.209064
2017-11-21T22:21:58
2017-11-21T22:21:58
null
0
0
null
null
null
null
UTF-8
R
false
false
1,339
r
split2csv.R
#' Split List to CSV by Factor #' #' This function allows you to split a data frame into a list of data frames by a chosen factor and write them out as separate CSV files in the chosen directory. #' @param x the vector or data frame containing values to be divided into groups. #' @param f a ‘factor’ in the sense that ...
1d35178bcc030e1cebf8ebf58ce30d38c5b5c815
75e7cb1ada7b0edc7b62c02d9698217255738660
/Binomial Distribution in R.R
b6dedd79d2fd0ff5a3fe336c12d164eabf035423
[ "MIT" ]
permissive
JatinRanaV1/Working-on-R
4faf478ea95d99755031523dddded95f32f7b84d
83f5a228677ba89dfd65295e4e5f5563e2b6331f
refs/heads/main
2023-01-21T21:53:03.722994
2020-12-04T18:30:30
2020-12-04T18:30:30
308,795,353
0
0
null
null
null
null
UTF-8
R
false
false
1,078
r
Binomial Distribution in R.R
# dbinom(x,size,prob) --> This function gives the probability density distribution at each point where prob = probability of success # Create a sample of 100 numbers which are incremented by 1. x1 <- seq(0,100,by = 1) # Create the binomial distribution. y <- dbinom(x1,100,0.5) # Plot the graph for this sample. plot(x1...
c796626ee1790cf36b2b49df1419d715235bf025
466673bd6d98827f9705e2643d838d10db3c950a
/testing-checkboxinput/app.R
6f0fadd1aa63541aca64b98d5c5d356b66caa0f5
[]
no_license
jyuu/shiny-apps
7a7d59c5e30689473a067eabaddb6724985a1344
5ec1ea989f587a7a4f2a616346bca242cd5a2178
refs/heads/master
2020-07-04T07:04:12.648296
2019-08-22T00:48:07
2019-08-22T00:48:07
202,197,247
0
0
null
null
null
null
UTF-8
R
false
false
1,251
r
app.R
testUI <- function(id) { ns <- NS(id) tagList( tags$div( shinyWidgets::pickerInput( ns('tidyselector'), label = 'Pivot variables selection helper', choices = c("Starts With", "Ends With", "Select All"), width = "100%" ) ), tags$div( style = "wi...
2c6d070b936014a12e35fd597ebfbfd171698715
1448728f802319af18b58ee89f34ef1a07a277c6
/test.script.r
92b390557a090c629acc1a68370f4f426e5c6451
[]
no_license
brianscheng/cheng-lab-test
83133e5b2619fa5c00839705e22d3a75e82bdd20
847401a68f1bbe368ce81262be805abeed4274b1
refs/heads/master
2022-08-10T06:20:30.629843
2020-05-19T19:38:55
2020-05-19T19:38:55
265,344,005
0
0
null
null
null
null
UTF-8
R
false
false
40
r
test.script.r
#this is test script #some awesome code
e1309c9f68590a318cda901620decf55b8f95e09
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/phangorn/examples/cladePar.Rd.R
30c21ed95712fd67804b10de9c79313c9f038c7b
[]
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
262
r
cladePar.Rd.R
library(phangorn) ### Name: cladePar ### Title: Utility function to plot.phylo ### Aliases: cladePar ### Keywords: plot ### ** Examples tree <- rtree(10) plot(tree) nodelabels() x <- cladePar(tree, 12) cladePar(tree, 18, "blue", "blue", x=x, plot=TRUE)
bba00922b9a122b421f60e765106974ab2df151c
6f646a9dd32f79184b6bf512247c27c280fa39a2
/classify_with_words.R
cacae2208e2b541e15bd99185e79412d0cc16318
[]
no_license
mjockers/no_reasonable_person
31fbd459c90d15c451d202ed84b132dc835374cb
889abab710cc6e15dad0d1a2aa10a13530d5b6e4
refs/heads/master
2021-09-14T23:42:29.923719
2018-05-22T13:43:52
2018-05-22T13:43:52
114,029,433
3
0
null
null
null
null
UTF-8
R
false
false
12,439
r
classify_with_words.R
library(caret) library(dplyr) library(readr) library(pamr) library(tidyr) library(pROC) library(ROCR) # Load the wide form word frequencies data load("data/wide_form_word_freqs.RData") # load the metadata load("data/metadata_word_punc.RData") # Ignore very short documents: e.g. docs < 1000 wds word_threshold <- 100...
13598c171b549bd65da4231ee8d875c82156d174
dbd1ce9b5cd4dea4f39a6f5a4a717210bc77649e
/Mevo/mevo_daily_bikes.R
77218ef43bae912601cc8049de68b43bf1ef21b4
[]
no_license
hrpunio/Data
7b26d18f39d7e8b38bf2e951d85283cdbacfec14
8d894237e6a0cbe140c075d09ee1231a56788cd5
refs/heads/master
2023-07-24T06:33:29.212661
2022-01-27T19:38:22
2022-01-27T19:38:22
2,735,606
4
4
null
2022-02-03T13:55:26
2011-11-08T17:41:23
HTML
UTF-8
R
false
false
3,504
r
mevo_daily_bikes.R
## http://www.statmethods.net/stats/regression.html ## http://www.cookbook-r.com/Statistical_analysis/Regression_and_correlation/ ## google:: trust wvs Heston et al. ## http://tdhock.github.io/animint/geoms.html require(ggplot2) require(ggpubr) d <- read.csv("MEVO_DAILY_BIKES.csv", sep = ';', header=T, na.string="NA...
740bb5abbd15f9dc98966fe73f5e77ed917292ec
0c5b5d084fbdb1954752c7eed2943f22ffbcde96
/central_limit_theorem_homework.R
a3507d99e5937ca83ad3516f307756509e4dc32f
[]
no_license
miltoss/HWZ_DataAnalysis_2015
82c0e9947d3c9493007255a108e00c78baa0af71
68d48bedf689ad0d881d1a4adba1ce3bae6730db
refs/heads/master
2021-01-10T06:34:58.138172
2016-01-26T20:08:31
2016-01-26T20:08:31
43,833,432
1
4
null
null
null
null
UTF-8
R
false
false
1,681
r
central_limit_theorem_homework.R
# HOMEWORK EXCERCISE # This is a simulation of the central limit theorem # (Chapter 6.4 of the book) # The idea is the following: Iteratively generate a vector data_dist of random numbers # following a probability density function (for example the uniform distribution). # There will be n_samples iterations (i.e. gen...
fdf43d9404c062622ba4a732e417c0a08a0abae8
b934fa93e660667ec7e5193639a02137f29e746e
/ikde.Rcheck/00_pkg_src/ikde/R/data.R
e28c9dd1030860b9e34e5ab6b1500659b69a394c
[]
no_license
tkmckenzie/ikde-scripts
b5fe5ec86de11905a7bfd7c03f3640dea37ea106
989c2dbc416cd489788d5a6071282d1c109d8c3e
refs/heads/master
2020-04-10T19:35:48.600541
2019-01-09T17:36:21
2019-01-09T17:36:21
161,240,905
0
0
null
null
null
null
UTF-8
R
false
false
1,237
r
data.R
#' Randomly generated multivariate linear model data #' #' A dataset for estimation of linear models #' #' @format A list with two components: #' \describe{ #' \item{X}{Matrix of independent variables} #' \item{y}{Vector of dependent variable observations} #' } #' @details #' Generated with the following code: #...
d7506f9ea0dc69ca9c8d5b54eda06d593192bff6
c3979af4d5e88510fc6bc204d15a89999173c78f
/man/ozone.Rd
7f063901a43283984d1148c6da1b9d9d1b0bafc8
[]
no_license
cran/faraway
a82ac66b6e3696ce4b3d3959c61e7136d2ef7aa9
fd738166e58ee12f02afe35029b4e5e7ebff58d1
refs/heads/master
2022-08-31T20:44:43.259095
2022-08-23T13:50:02
2022-08-23T13:50:02
17,695,973
0
0
null
null
null
null
UTF-8
R
false
true
1,042
rd
ozone.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/faraway-package.R \docType{data} \name{ozone} \alias{ozone} \title{Ozone in LA in 1976} \format{ A data frame with 330 observations on the following 10 variables. \describe{ \item{O3}{Ozone conc., ppm, at Sandbug AFB.} \item{vh}{a numeric vec...
06460d0d1495ade79d48a2c0cac69bd7524c6a36
a6d2fd0960626ba07f222e37b4ad9299d7e061e0
/man/getVersion.Rd
19bc8a4b58aa04558da1f0570ec201414b7dbab0
[]
no_license
cran/SpectralGEM
b61104c48f355f6035a4fa5da614c0b68060a9a4
6d424c701c3936bc22ab8b8a6bbd048719a436b7
refs/heads/master
2021-01-01T18:18:03.499673
2009-07-07T00:00:00
2009-07-07T00:00:00
null
0
0
null
null
null
null
UTF-8
R
false
false
272
rd
getVersion.Rd
\name{getVersion} \alias{getVersion} %- Also NEED an '\alias' for EACH other topic documented here. \title{ getVersion} \description{ Internal function. } \usage{ getVersion(InputFile) } \arguments{ \item{InputFile}{Input file name.} } \keyword{file}
a6058ce28d69f1de749e8ba30ed630539b8c203a
6f2f5a6cae8f8aca53041a45ec9c81b3f4a221b1
/MAIN - Additional Data Wrangling.R
07484927485531ddb009a1f370d8ead3d5c24463
[]
no_license
pierremichelhardy/Master-Thesis
ba8246ce62a9e5879ca336ea034cad41eeee2405
caf9aef42c3c4b9459824739d07db81b3c29effd
refs/heads/main
2023-01-01T02:44:25.360325
2020-10-28T14:51:03
2020-10-28T14:51:03
308,048,320
0
0
null
null
null
null
UTF-8
R
false
false
2,550
r
MAIN - Additional Data Wrangling.R
# This code is written by Pierre Michel B. Hardy in partial fulfillment of his master thesis # This code contains additional data wrangling before running the regression # Namely, it's about taking out the effects of individual artist effects from the variables. # Packages ######### library(readxl) library(...
890b0b315e546ea23a1d78c7b4f8eb02a4934fb1
2c7ffda73e9a3f3bdacfb11c615a420217b638e0
/run_analysis.R
1f964a08da2bb79a33d8c5c1d3279d4495d36d80
[]
no_license
stormy-ua/humanactivityrecognition
61970659f63a02d08f8764d7fa02a8b93356886d
073ba5c840c63b2a057e6897f05fe7fac611d79d
refs/heads/master
2021-01-01T06:49:46.014759
2015-02-25T14:14:46
2015-02-25T14:14:46
30,977,905
0
0
null
null
null
null
UTF-8
R
false
false
1,848
r
run_analysis.R
library(dplyr) library(magrittr) # loads tidy train or test data set loadDataSet <- function(xFile, yFile, subjectsFiles) { # load list of all features from features.txt featureNames <- as.character(read.table("features.txt", stringsAsFactors = F)[, 2]) # we want to load only std and mean features so ...
0194998c030bce0a2aa76fc03f468002239e9159
4ba01df88418e1877fc115a8c90bc1da1b81dc3d
/R/predict.R
6cb80de81406a6ffdc3f4bc5d72659aba86331ae
[]
no_license
kaixinhuaihuai/OncoCast
9c9839f68058b67e6fd027ed6bd079e11b5c0e2a
beea742940deb7b7d44d0e903ba4388954e51f0a
refs/heads/master
2023-01-22T16:29:52.166583
2020-12-08T23:02:48
2020-12-08T23:02:48
null
0
0
null
null
null
null
UTF-8
R
false
false
10,357
r
predict.R
#' predIncomingSurv #' #' This function let's user predict the genetic risk score of new/incoming patients. This function #' makes use of the output of the OncoCast function and an inputed data set similar to the one use to generate #' those results. The user can retrieve the genetic risk score of those new patients an...
889e9e6fdffb9c5e862e057934f0426afa98b116
d11d7fe9df513536af20898f7dd8c36beec2ed06
/US_Scrapping.R
8cfb5f9e4e0a4ee2ccc23f9eb954facfd78fd6c5
[]
no_license
urosgodnov/Trademarks
b54a1b3e913825ad95c6563504709e1392d707b8
3cd8e9685e54c961b96bd13a591c527355ecaf36
refs/heads/master
2021-09-06T10:48:14.471968
2018-02-05T19:08:24
2018-02-05T19:08:24
105,199,426
0
0
null
null
null
null
UTF-8
R
false
false
19,526
r
US_Scrapping.R
GetOwner<-function(dataOwner) { assignements <- dataOwner %>% html_nodes(xpath = "//div[@class='assignmentsContainer persist-area' and (@data-assign-type='Ownership and Name Change' or @data-assign-type='Others')]/@id")%>% html_text() assignementsStatus <- dataOwner %>% html_nodes(xpath = "//div[...
ff15bb2e6dd42473fb8d8ee7a5f0b6912846ec48
b2f61fde194bfcb362b2266da124138efd27d867
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Tentrup/mult-matrix/mult_bool_matrix_dyn_9_6.unsat/mult_bool_matrix_dyn_9_6.unsat.R
49f455350b74430ce8545f69534d21a6c6057ff0
[]
no_license
arey0pushpa/dcnf-autarky
e95fddba85c035e8b229f5fe9ac540b692a4d5c0
a6c9a52236af11d7f7e165a4b25b32c538da1c98
refs/heads/master
2021-06-09T00:56:32.937250
2021-02-19T15:15:23
2021-02-19T15:15:23
136,440,042
0
0
null
null
null
null
UTF-8
R
false
false
82
r
mult_bool_matrix_dyn_9_6.unsat.R
ac1500c0e85bb933126d3dac996a3ed5 mult_bool_matrix_dyn_9_6.unsat.qdimacs 5492 16388
36d3289b89107fbd190f0e8a00d19e26ab709ce6
e5b3c5ceb002c9aa926e5a1caee2cfe6beb43e1b
/7-figures_and_tables/t_test_table.r
af14d14cc24c67f14ce45999c5cef11a607c9090
[]
no_license
brendane/symbiosis_gene_evolution_initial
4e4f9edc146fd2f1efe79e49b7d8e63d8b55941b
c69a2357c561794c79e2ec1189886b58e9354dad
refs/heads/master
2022-11-20T23:13:48.105230
2020-07-26T23:53:21
2020-07-26T23:53:21
282,684,232
0
0
null
null
null
null
UTF-8
R
false
false
12,817
r
t_test_table.r
#!/usr/bin/env Rscript # # Make table of medians (or means) and t-test p-values for several key # comparisons. Has a lot of overlap with the gene_count_table. # # Also reports some correlations. # projdir = '/home/tiffinp/epste051/project/symbiosis_gene_evolution' indir = file.path(projdir, 'notes/table') genes_fil...
0ae66a60500083e432e57111f18023f86bfe3eb9
5ee4a55ce230452b5b537feb4528a16c71928970
/runShinyApp.R
615105e82d72bee9cf063395f7a6e624e6865296
[]
no_license
leegang1990/Local-App-Deployment-Shiny-Portable-R
7302246a2798cc41de5960e463a041bbada3f163
24e11108f855592282c807a70dacf9cbc2154144
refs/heads/master
2022-05-30T13:56:10.444035
2020-05-03T06:14:02
2020-05-03T06:14:02
260,732,812
0
0
null
null
null
null
UTF-8
R
false
false
138
r
runShinyApp.R
message('library paths:\n', paste('... ', .libPaths(), sep='', collapse='\n')) shiny::runApp('./App/app.R', launch.browser = TRUE)
1478d99a172255b332577b81c6afb32b95cb3cd2
8f045a1293610a0bb955da7022418beea0d80c6f
/ChicagoChlamydiaModel/ChicagoChlamydiaModel/ChicagoChlaModel.R
52152220b551ccc46ab7d9a945009823044ffb2f
[]
no_license
chrisporras/Chicago-chlamydia-spatialsim
11fbca7369c1ec26d237df06d6a0547d49f481a0
0256b142178c902750e0fd5874d8711300a73e64
refs/heads/master
2020-03-23T08:16:30.350473
2018-08-07T16:20:39
2018-08-07T16:20:39
141,317,760
0
0
null
null
null
null
UTF-8
R
false
false
1,740
r
ChicagoChlaModel.R
library(pracma) library(ggplot2) library(MASS) library(compositions) library(ggmap) library(rgdal) library(rgeos) library(maptools) library(dplyr) library(tidyr) library(tmap) setwd( "/Users/marlinfiggins/Desktop/ChicagoChlamydiaModel/") Chicago= readOGR(dsn = "chicomm", layer = "chicomm") ExtraData = read.csv(file="Ch...
0fd6a51f035fd62f66e0b89c3137c083475d2d41
13750542b2e5406b948059ae7d2bbe9967bb58bc
/plotGrid (woodgrain).R
1e25fa6e099916594055a188321654c5d7179a3e
[]
no_license
jrevenaugh/Riquity
ce65cd3e9f0f30b92b8e773e723b1cb34793e226
64ce1eed78467f6a6849744819829f9aa469f4c7
refs/heads/master
2020-03-15T01:57:34.876482
2018-05-07T21:07:17
2018-05-07T21:07:17
131,906,279
0
0
null
null
null
null
UTF-8
R
false
false
1,727
r
plotGrid (woodgrain).R
# plotGrid # # Make a simple plot of a Riquity grid plotGrid <- function(grid) { centers <- gCenter centers$gc <- grid openCenters <- centers %>% filter(gc == FALSE) filledCenters <- centers %>% filter(gc == TRUE) g <- ggplot() + scale_y_continuous(limits = c(-1, 5)) + scale_x_continuous(limit...
fcfd9cdcdd2e29183a49642876d7a7ac2e484d3f
8843d262a2721cc9995169b45ac808731b0b6457
/Plot5.R
c68ea1d49e1fdf3c2ec3606b137de734abebb89f
[]
no_license
JackIsrael2020/ExData_Plotting2
0a015604d6b6408c465294fddfdfedac5eaf2397
ffc7a5f3795ea1b8fade41760803e47a2554f81e
refs/heads/master
2022-10-24T22:31:56.099745
2020-06-19T13:25:28
2020-06-19T13:25:28
272,690,160
0
0
null
null
null
null
UTF-8
R
false
false
784
r
Plot5.R
## This solution uses the "downloader" package from CRAN. If you already have it loaded, ## then please ignore the next section. ########## install.packages("downloader") library(downloader) ########## url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download(url, dest="dataset.zip", mode="w...
b097f257ac845546c8bca733c7b5824491ebe369
71f5a07ab52e014d43cb74274b14662ba5e9279a
/8.Practical Machine Learning/ex4.R
b11b5b29c1f77a7852c67916f66510ac6e8040b4
[]
no_license
xiangacadia/DataSciencCoursera
b95c6b82abbac76873a3e681f83f421a856975c0
20e064039be87228eb25d21764fdb5f3e0d4e834
refs/heads/master
2016-09-03T06:30:03.361941
2014-12-01T19:39:30
2014-12-01T19:39:30
null
0
0
null
null
null
null
UTF-8
R
false
false
100
r
ex4.R
Q1. library(ElemStatLearn) data(vowel.train) data(vowel.test) set.seed(33833) summary(vowel.train)
b2414e572e5b1854712bdea74ec6eca2b087ce8d
5c065353ded3ccb1798904ce2ec0c8d38cbcd9ac
/plot2.R
7dfa60536959e0360b0bed078a92e0ee1ea844c6
[]
no_license
naveen74/ExData_Plotting1
3334542c2ec532b701cc266bd4589a5f546e7fa9
50c7fc0f1a8d279454be7d525d37dd05b17a2f9b
refs/heads/master
2021-01-15T20:53:34.023079
2015-02-08T17:28:57
2015-02-08T17:28:57
30,351,190
0
0
null
2015-02-05T10:59:17
2015-02-05T10:59:16
null
UTF-8
R
false
false
514
r
plot2.R
df<- read.table("household_power_consumption.txt", header = TRUE, sep=";", as.is=TRUE, na.strings="?") DATE1 <- as.Date("01/02/2007", "%d/%m/%Y") DATE2 <- as.Date("02/02/2007", "%d/%m/%Y") df$Date <- as.Date(df$Date, "%d/%m/%Y") df1 <- df[df$Date >= DATE1 & df$Date <= DATE2, ] x <- paste(df1$Date, df1$Time) x <- strpt...
27e4cfce90e2edb323adc2e41aae3fad4e2fd95a
879896ca6b4c167e3cc8f2cfd59c5b7e6a571d2e
/R/b_parsing.R
28b2ef31e1f4961a5e42aa8b603b3a795d322b6b
[ "MIT" ]
permissive
brshallo/flipbookr
b2861fe8a9697c8b1bf6c60a007592d746f4c474
2013c7e389dd8ce8caf76de9938dcbe6127387a7
refs/heads/master
2023-07-08T15:25:13.092571
2021-08-12T06:17:42
2021-08-12T06:17:42
395,095,527
0
0
null
null
null
null
UTF-8
R
false
false
8,176
r
b_parsing.R
####### Get code from source chunk ##### chunk_code_get <- function(chunk_name){ paste(knitr::knit_code$get(chunk_name), collapse = "\n") } correct_py <- function(lang){ if (lang == "py") {lang <- "python"} } code_remove_omit <- function(code, omit = "#OMIT"){ code %>% stringr::str_split(pattern =...
2e9afb6ea9608efad33d0f7d25aea482dc6ad6fc
49be6f5d1dcacdbb9589398a26167e203ea0f525
/R/get_cache_site.R
50c2cde1ccabe9e0922c04ac4bb77abebf6189a9
[ "MIT" ]
permissive
NIVANorge/aquamonitR
09ece04387ba4b0db43b355fc393c579379bbfbd
8a27d3ac83eda4e0fcc4387bff543e7380af0967
refs/heads/main
2023-07-03T08:21:44.108362
2021-08-09T14:29:42
2021-08-09T14:29:42
323,634,747
1
1
NOASSERTION
2021-02-05T08:50:03
2020-12-22T13:32:49
R
UTF-8
R
false
false
81
r
get_cache_site.R
.get_cache_site <- function() { cache_site <- "AquaCache" cache_site }
a274b906e8293908b229bf6534e82198d26f7569
98fd03ebd9de52038f06cd89200a460432f9cc5c
/R/pkg_ref_class_extract.R
f63ec74133372132036306809a695e88295d72aa
[ "MIT" ]
permissive
pharmaR/riskmetric
51d3b067da6db6ad1252f3ba706db1d922b5df64
3d1501880edc07cff5cd72129c0df0899db83029
refs/heads/master
2023-07-26T07:33:56.471690
2023-05-31T14:58:21
2023-05-31T14:58:21
173,354,970
148
32
NOASSERTION
2023-09-12T20:41:31
2019-03-01T19:11:16
R
UTF-8
R
false
false
4,204
r
pkg_ref_class_extract.R
#' @export `$.pkg_ref` <- function(x, name) { `[[`(x, as.character(name)) } #' @export `$<-.pkg_ref` <- function(x, name, value) { `[[<-`(x, as.character(name), value = value) } #' Lazily instantiated, immutable metadata access #' #' If errors are thrown upon instantiation, they are saved and rethrown any tim...
0c8b238fe0a1b1148a6666231273bde3dd8cf517
7c712df431e316689cd9204e98621662a2f4a42d
/codes/.ipynb_checkpoints/Tobias_Try-checkpoint.R
8ee9f15632860c9c45ea96d66ca4d054b0858cf6
[]
no_license
Tobiaspk/Dynamic_Centrality
94f3edc479d65d2adb5e423b48f182f3addabc1e
a92f84bda94753113cdc3a89cdae5a5b1de3dccb
refs/heads/master
2023-03-06T08:38:17.275075
2021-02-16T18:14:27
2021-02-16T18:14:27
339,482,370
0
0
null
null
null
null
UTF-8
R
false
false
1,926
r
Tobias_Try-checkpoint.R
devtools::load_all() library(fasttime) library(Matrix) ## GLOBAL data_names <- c("Votes", "Postings", "Following") # store data as .fst read_csv_data(user = "tobias", data_names = data_names, save_as_fst = TRUE, return_df = FALSE) # read .fst votes <- read_fst_data(user = "t...
7b49a388032e4fbe1ceab7f8135f6741d7343311
3a9f1487a7afa658cf2a2c4c3cab36955eaec89c
/Funny_String.R
bc019c0d5d217bab697d490672b02ef0b4016640
[]
no_license
yusukeaoki1223/Hackerrank-1
0427d7c7b0f56b9a6bf495eccd45b7d8a286d17c
42df160ac440556e8c550a020de7af1efd16c3be
refs/heads/master
2022-08-19T10:07:47.541862
2017-08-30T14:44:14
2017-08-30T14:44:14
null
0
0
null
null
null
null
UTF-8
R
false
false
2,381
r
Funny_String.R
# Enter your code here. Read input from STDIN. Print output to STDOUT library(stringr) nums <- suppressWarnings(readLines(file("stdin"))) nums2<-nums[-1] asc <- function(x) { strtoi(charToRaw(x),16L) } strReverse <- function(x) sapply(lapply(strsplit(x, NULL), rev), paste, collapse="") allSame <- funct...
df4aa48fc55845745ba9d5eee56e750482098195
ff53eb4044c2006e7ccf4a5a92e666a7fdebfebc
/CCM/CCMBaseExperiment.R
722724310da897c67756e7532f62a0da930197aa
[]
no_license
AhahaJade/netinf
d31b8a96782ca9dc6d1b998929f6074820351448
282fc2411d609523d0faa9e32b5564c8c72bc1e2
refs/heads/master
2022-11-05T04:01:19.701124
2020-06-26T17:08:42
2020-06-26T17:08:42
null
0
0
null
null
null
null
UTF-8
R
false
false
3,231
r
CCMBaseExperiment.R
CCMBaseExperiment <- function(data, mats, E, num_libs, tau=1, num_trials=dim(data)[3], num_samples=100, preprocfn=identity, freq=1, result_path=NULL, data_obs_idx=NULL) { # return: votingMats, est, tableResults save_data <- TRUE if (is.null(result_path)) { save_data <- FALSE } ...
cdc42281de4c56af8c3c8d28522e185fe365fe22
096192b28074e28f19acaf69a04667c6ae62d397
/input/000_BDRLE/sesion000_crearGuia.R
7ec26968a51e895c31989dca6963c453e9c77f75
[ "MIT" ]
permissive
red-list-ecosystem/RLE-xml-db
a022726fc9b0821e71f661d4dbc02288c1442df9
e8decc879cd866b5e820fcb87b01eec0b8bef032
refs/heads/master
2022-08-09T14:08:52.191003
2021-01-14T06:33:58
2021-01-14T06:33:58
240,814,561
1
0
null
null
null
null
UTF-8
R
false
false
869
r
sesion000_crearGuia.R
##R --vanilla setwd("~/tmp/Provita") require(foreign) require(gdata) require(vegan) require(xtable) require(rgeos) require(rgdal) require(XML) require(RColorBrewer) hoy <- format(Sys.time(), "%Y%m%d") mi.path <- "~/doc/" mi.path <- "~/Dropbox/Provita/doc/" mi.path <- "~/Provita_JRFP/doc/" mi.dir <- "000_BDRLE" mi.a...
441e21b1b9a312a41acb20de8724b7d87ae735e4
9b29740c13ba8a40228da4ba233973e88aec83bb
/R/make_stan_model.R
21400571435572f13f36df51cba8d9029a1dddaa
[]
no_license
boryspaulewicz/bhsdtr
2cb8f33e518184426dbd55dc962b504f649cf733
3411f3ef80aaaa3320f66fb514604c808726f34c
refs/heads/master
2022-04-07T02:38:40.392834
2020-02-05T18:37:43
2020-02-05T18:37:43
103,666,088
12
0
null
null
null
null
UTF-8
R
false
false
3,360
r
make_stan_model.R
## -*- coding: utf-8 -*- #' Creates the SDT stan model code. #' #' \code{make_stan_model} function creates the stan model code #' defining the SDT model with additional regression structure and #' random effects if these are specified using the \code{random} #' argument. See \code{\link{make_stan_data}} for details on...
2027301a38a199b3e000a6ccfa871ba1eaca94f0
3f7efd40023f39eb3cfde82413596f602211d0f1
/R/funcs.R
e07458237f26deaf921b583390c23abb6126d4ff
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tbep-tech/piney-point
72881b5392e88f2a806774d76b696e10883b87c1
d26d62958d5e2d141ce322ba8251b1f87e39d15d
refs/heads/main
2023-08-31T06:39:31.994455
2023-08-31T01:34:01
2023-08-31T01:34:01
353,409,644
3
1
null
null
null
null
UTF-8
R
false
false
17,031
r
funcs.R
g_legend <- function(a.gplot){ tmp <- ggplot_gtable(ggplot_build(a.gplot)) leg <- which(sapply(tmp$grobs, function(x) x$name) == "guide-box") legend <- tmp$grobs[[leg]] return(legend) } #' wqdat is input data #' station is station character string #' plo_fun <- function(wqdat, station, cols, parms){ # sca...
92d90bbf9d778e6100ff56de5e4aed18dde2ac1e
80048b095e0aeff1a9285a1d11425c4cbab1f9bd
/man/Bonferroni_m.Rd
95a303601f36424ec3d3d1a1c4e8b8bff3e2dbcb
[]
no_license
alexmarzel/svisits
1af7b9ac8b35b7593585347eaf7fe45e41c3bac2
9b6f13e251a3eb443096a772331447b8b7874035
refs/heads/master
2020-05-25T23:25:32.143389
2017-01-22T17:37:00
2017-01-22T17:37:00
63,353,396
0
0
null
2016-07-15T13:55:59
2016-07-14T16:45:09
R
UTF-8
R
false
false
2,404
rd
Bonferroni_m.Rd
\name{Bonferroni_m} \alias{Bonferroni_m} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Detecting the pairs using Bonferroni correction } \description{ This method is much faster than the shuffling method, but less precise. } \usage{ Bonferroni_m(unadjusted_pairs, ids=ids, ...
5bb0f295db995f014cf119cc7542cfac80682697
c66cf0b8cedef9cc8294ee94a26ad8b4fcb0c609
/MIW/base.R
4b36275fa60ca04c88e777010d9993ce5e7b7cde
[]
no_license
tkachenia/multimedia_course
931b11d2b1f95543c6ce2e8eab296325e6d215ab
56d6401edec2b2c0a07b7a3b8306cc4f1712fb7a
refs/heads/master
2021-11-29T03:46:05.843055
2021-11-25T15:10:25
2021-11-25T15:10:25
157,021,523
0
0
null
null
null
null
UTF-8
R
false
false
1,324
r
base.R
hexAbc <- function(str_abc, prefix = "") { abc <- strsplit(str_abc, "")[[1]] abc_utf8 <- enc2utf8(abc) hex <- sapply(abc_utf8, charToRaw, simplify = TRUE) hex_str <- paste0(prefix, toupper(hex)) utf8 <- sapply(hex_str, as.character) dim(utf8) <- dim(hex) if (!is.null(dim(utf8))) ...
2d6b7a0cd23c49a9402b11db54c3491bfa4f126d
ac2762a5038694f43e41ec93a5b1ad721f70062c
/man/residual.plots.Rd
7ccc315b4ccc8bcd34e63e9cdf92acb1dedb3786
[]
no_license
adamleerich/alr3-aa1f43f9
8de29bbacd14a8baccd934b2c337244ba4e81d38
ccd7ec645559a0258e07bd31e773e16565457a88
refs/heads/main
2023-04-29T18:24:42.166791
2021-05-10T14:54:27
2021-05-10T14:54:27
366,079,517
0
0
null
null
null
null
UTF-8
R
false
false
4,151
rd
residual.plots.Rd
\name{residual.plots} \alias{residual.plots} \alias{residual.plots.lm} \alias{resplot} \alias{resid.curv.test} \alias{tukey.nonadd.test} \title{Residual plots and curvature tests for linear model fits} \description{ Plots the residuals versus each term in a mean function and versus fitted values. Also computes a curva...
39c8adf067f55c03d5e4b92ef055fbc32641eb09
3c1e14e19ae1b763232dc9dae81d59958ab1225d
/plot2.R
823ddfe27a37f16922e579d6c54433df74dc6bed
[]
no_license
rodmel/ExData_Plotting1
3ac6b47443fc3ba00f566afa20ceb2920db64c98
37fc2741fdc8ac7ce6671d104129657a95d2c4ea
refs/heads/master
2020-12-25T12:47:57.727048
2015-05-22T22:51:24
2015-05-22T22:51:24
21,773,292
0
0
null
null
null
null
UTF-8
R
false
false
2,340
r
plot2.R
## Exploratory Data Analysis ## version 1.0 ## By Rodrigo Melgar - July 2014 ##================================================================## ## Household energy usage over 2-day period in February 2007 ## ## Based on Individual household electric power consumption data ## ##=====================...
f8af8c65f82657847339a673b19e6f24206ce753
ab3ba20d8a8d1deeb49a30c10186d44763afeccc
/man/nl_reverse.Rd
019cbbac62ea788be2e59d680155eadf23eea2d6
[]
no_license
cran/nlgeocoder
f6c30f4e3d16226d9a1233e6d1e1a4b81aa6f26c
97c919b0f651eb01eaba9d521a95344409ba3e6e
refs/heads/master
2020-03-31T10:13:44.864225
2018-10-08T17:30:06
2018-10-08T17:30:06
152,127,650
0
1
null
null
null
null
UTF-8
R
false
true
225
rd
nl_reverse.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nl_reverse.R \name{nl_reverse} \alias{nl_reverse} \title{experimental reverse api} \usage{ nl_reverse() } \description{ experimental reverse api }
5c49f248fa847b2c17909191ad10db1c133f27d1
d63882da14a027b82bdc9b4906c77da037e204a0
/tests/testthat/test-function-calculate_operational_parameters_berlin_t.R
9b2ab8d47d54e18ca1d443f21e6acc6e8e5cae35
[ "MIT" ]
permissive
KWB-R/aquanes.report
f0dd0db38b99bf26b94b5cd24f8a0d0aabbbccf8
7df99ab71b6fbdf05a7b64024d8f7555361e3903
refs/heads/master
2021-03-30T20:25:32.869920
2019-09-09T07:14:46
2019-09-09T07:14:46
83,431,353
0
3
null
2018-05-08T11:57:43
2017-02-28T12:44:26
R
UTF-8
R
false
false
221
r
test-function-calculate_operational_parameters_berlin_t.R
# # This test file has been generated by kwb.test::create_test_files() # test_that("calculate_operational_parameters_berlin_t() works", { expect_error(aquanes.report:::calculate_operational_parameters_berlin_t()) })
00337758fb660524cba92c3907a682d340eed3ce
0b63dedc1660e619fbea468ad3e34dbd383ccf94
/scratch.R
b4db29e4ce086bf550bb518710f95e8811852c25
[]
no_license
OMahoneyM/GGBN_sample_query
cb76d8ce9419cd0f5238045d8d8d52dc351da7e7
4ca01f7761d7acdc58d1dea90a2125ab54d9be69
refs/heads/main
2023-03-13T21:24:55.633404
2021-03-11T19:01:13
2021-03-11T19:01:13
344,582,339
0
0
null
null
null
null
UTF-8
R
false
false
15,139
r
scratch.R
# needed to run fromJSON(), library('jsonlite') # needed to run flatten() library('purrr') #library('tidyverse') # needed to run RCurl() library('RCurl') # needed to run rbind.fill() library('plyr') # needed to run the progress_bar library('progress') # needed to run str_replace_all() library('stringr') # needed to ru...
8be6c38cf0a39d3d0e3f55ff1c058b17e82a9436
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/HWEintrinsic/examples/HWEdata-class.Rd.R
2c70166264fcdd6a893cef2b10c46517954b736a
[]
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
354
r
HWEdata-class.Rd.R
library(HWEintrinsic) ### Name: HWEdata-class ### Title: Class "HWEdata". Data specification for the Hardy-Weinberg ### Testing Problem Using the Intrinsic Prior Approach. ### Aliases: HWEdata-class HWEdata initialize,HWEdata-method ### Keywords: classes methods ### ** Examples data.tmp <- c(3, 9, 8) dataset <- n...
3fd3d8fe7d670312196d77d625d3e1367c71e772
2c751b858462d002f9afe0c31ea233dc2c148796
/plot3.R
248822bdabb92167f0c3aba9c0f0d717249c9b92
[]
no_license
speedy3d/Coursera-ExploratoryDataAnalysis
78d0ec6aedf88618b333f1ed0ab11119a7e565d0
2891a9733166511a727ae8156fc498884571f76a
refs/heads/master
2020-05-17T01:23:32.092259
2014-11-23T19:46:01
2014-11-23T19:46:01
null
0
0
null
null
null
null
UTF-8
R
false
false
1,134
r
plot3.R
##Plot 3 - shows total PM2.5 emission for each of the years (1999,2002,2005,2008) in baltimore broken down by source #get required library library(ggplot2) #set working directory setwd("../Exploratory Data Analysis/Project 2") #import data from PM2.5 emissions RDS file NEI <- readRDS("summarySCC_PM25.rds") #import ...
2d9b723cd5795eaf388750614e4493447de06adf
62710fa1d384c68cce4f703c54782778c38e8032
/get_county_pop.R
a5d99165dc205dbcc0ad7ef30e19b477e5c0750e
[]
no_license
kfaiola22/covid_maps
acdde5d2d0775a49a4d499b4858080f2a923c88d
8a89cd291294f0aba5e4ec8b061c84e7a0c3ff5c
refs/heads/master
2022-04-28T16:26:53.884944
2020-04-30T23:38:02
2020-04-30T23:38:02
260,337,919
0
0
null
null
null
null
UTF-8
R
false
false
541
r
get_county_pop.R
tidycensus::census_api_key("34ee793ce93ee686718193c8f108cb8de08dfc91") # create table of county demographics options(tigris_use_cache = TRUE) #county_map <- tigris::counties(class = "sf", cb = TRUE, resolution = "20m") county_pop <- tidycensus::get_acs( geography = "county", variables = "B01003_001", geomet...
8abcba980754c0776d3c326f49e4f94ab2d47370
c529e1776d0073d1c122ee88def416f6f69d6c87
/R/stat-identity.r
6be2822f218426fd684a6a70130852899560f7d1
[]
no_license
lixinyao/ggplot2
db919577d8c53bc0522b7c47d9d56cd10ff28452
7be4c8944bca845c9b9e189ec8c44231f6b4dc2b
refs/heads/master
2021-01-18T18:22:59.926529
2016-01-31T22:22:40
2016-01-31T22:22:40
50,810,838
1
0
null
2016-02-01T03:18:43
2016-02-01T03:18:43
null
UTF-8
R
false
false
1,984
r
stat-identity.r
#' Identity statistic. #' #' The identity statistic leaves the data unchanged. #' #' @param mapping The aesthetic mapping, usually constructed with #' \code{\link{aes}} or \code{\link{aes_string}}. Only needs to be set #' at the layer level if you are overriding the plot defaults. #' @param data A layer specific ...
b5b6426fcc00b113b7014fade337f938bce4eba6
23b6a147398a1c5f376c4386de5731cb1f063637
/data/preprocessing/scripts/superSeq_summary.R
61e777b5308b326160bff213247e3ce4a539e249
[ "MIT" ]
permissive
StoreyLab/superSeq-manuscript
fe6de4afb27205766b38cea57427f3cb807f8caa
99c27e0bbbcf5f692e17abacfeebe9beb07a9194
refs/heads/master
2021-07-30T23:58:27.831879
2021-07-29T02:05:49
2021-07-29T02:05:49
185,483,248
4
0
null
null
null
null
UTF-8
R
false
false
611
r
superSeq_summary.R
#! /usr/bin/env Rscript library(subSeq) library(DESeq2) library(dplyr) library(qvalue) library(data.table) args <- commandArgs(trailingOnly = TRUE) experiment <- args[1] contrast <- args[2] presample = as.numeric(args[3]) outfolder = args[4] infolder = args[5] trial = as.numeric(args[6]) load(paste0(infolder, "/", e...
626d02d1bfaa0cbe051f9be968590d4cd06987b7
cbbbfb067b2189cb8a3f3c36d37f4f56092086b8
/man/filter.Rd
b2ab3c817cdb7b0ecad23ab7133ecee97f7e6dc3
[]
no_license
mstewie/liveregr
cf7ae982cc312602a1a6e2aeb7d3656d8598f356
a533f84181515c5867cce87a0410e4cf6946dbd4
refs/heads/master
2020-03-28T20:53:08.222419
2018-09-17T11:34:35
2018-09-17T11:34:35
149,110,959
0
0
null
null
null
null
UTF-8
R
false
true
1,108
rd
filter.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filter.livereg.R \name{filter} \alias{filter} \title{Filter CSO Live Register data} \usage{ filter(object, gender = c("both", "male", "female"), age.group = c("all", "under_25", "over_and_25"), start.year = 1967, end.year = 2018) } \argumen...
925fc2bf98bc07d829e770954e9064d5257b0f49
375e98a79ccefec3d226edbb3cb8e03e8e3b01a2
/man/parse_taxonomy_silva_128.Rd
851999a41d5b59a37021787227264cd6f4449f52
[ "MIT" ]
permissive
sekingsley/MicrobiomeR
e1325c519e34bcbc32bf75cab0a65a4f0df07a67
dfc8f67d88f7a9dfaa15753a369df73ccc948396
refs/heads/master
2022-12-01T13:29:05.960005
2019-08-30T20:35:06
2019-08-30T20:35:06
null
0
0
null
null
null
null
UTF-8
R
false
true
4,243
rd
parse_taxonomy_silva_128.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/phyloseq.R \name{parse_taxonomy_silva_128} \alias{parse_taxonomy_silva_128} \title{Parse elements of a taxonomy vector} \usage{ parse_taxonomy_silva_128(char.vec) } \arguments{ \item{char.vec}{(Required). A single character vector of taxonomi...
8abf8dcef3e03c941c6b6e2667e1cf149bcf54b0
7eb128f9b7899c33d4854009edbd38dd566cba72
/R Tutorials/Book spuRs/scripts/binom.sim.r
13023912554259adbd741d4796bfc9aa2933da32
[]
no_license
chengjun/Research
1149add090ec563f544c4b5a886c01b1392a25d4
c01e3d2eac2bca74671abb9cd63e1b06e5566fc8
refs/heads/master
2021-06-15T16:35:15.005107
2019-08-06T09:03:29
2019-08-06T09:03:29
11,498,113
4
6
null
2021-04-15T09:27:11
2013-07-18T08:36:12
Mathematica
UTF-8
R
false
false
231
r
binom.sim.r
# program spuRs/resources/scripts/binom.sim.r binom.sim <- function(n, p) { X <- 0 px <- (1-p)^n Fx <- px U <- runif(1) while (Fx < U) { X <- X + 1 px <- px*p/(1-p)*(n-X+1)/X Fx <- Fx + px } return(X) }
f70d6f2ddef3adcbbc5038d59898ac0b1b9a6962
54c82ee4afc95ee439b9c625dfaeed76984db5af
/R/roundx_n.R
930948da5a83553c668e94c2583d18feb7d9d1fb
[ "MIT" ]
permissive
johnaclouse/curios
06c48db7848c269332e216d7ae971ccda4d2def8
cfebfde9ed90cdeac565660d8b783a869ab10f38
refs/heads/main
2022-06-17T15:42:35.938675
2022-06-05T06:55:53
2022-06-05T06:55:53
167,911,423
1
0
null
null
null
null
UTF-8
R
false
false
741
r
roundx_n.R
#' Round value based on magnitude #' #' @param x A numeric value to be rounded. Values >= 100 are rounded to 1 #' decimal place. Values < 100 and >=1 are rounded to two decimal places. #' Values <1 are rounded to three decimal places. #' #' @return A numeric value rounded based on the magnitude of `x` #' @export #'...
afaaa2d15a605200747a6c11923b0985e7452939
a7940556142d37c569ececafc29e08859778fafe
/analysis.R
be0313548190a2fa4b231a0f7924506f26ec7ef0
[ "MIT" ]
permissive
info201a-w21/a3-lechauthaoquynh
fee3abe363ebbe04649084b22ee46d4cca20db37
66ef71d0ed46dd61d70a38ad5d575b4afbde2741
refs/heads/main
2023-03-14T14:19:27.280863
2021-03-02T07:07:39
2021-03-02T07:07:39
338,643,164
0
0
null
null
null
null
UTF-8
R
false
false
4,859
r
analysis.R
#Assignment 3: Incarceration trends # Loading data ----------------------------------------------------------------- # Install and load the packages library(tidyverse) install.packages("maps") install.packages("mapproj") install.packages("patchwork") library(maps) library(mapproj) library(patchwork) # Load incarcerat...
2c3377e16f16a8f95369340db15fcc5bfcbec913
94d1a45dfeeb0c6aa151e6d3a2a6d090fa82897d
/man/extract_tags.Rd
43de161bfef280147856047d6b8a649ad15be634
[]
no_license
lwjohnst86/orgclockr
15c83b1b56b0299040b933baa29e576c6e5d3658
baaf62675967388eeb61171f2727edc41ca4379d
refs/heads/master
2021-01-22T01:34:43.430367
2015-05-07T09:53:41
2015-05-07T09:56:06
null
0
0
null
null
null
null
UTF-8
R
false
false
1,362
rd
extract_tags.Rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{extract_tags} \alias{extract_tags} \title{Extract the tags of an org file.} \usage{ extract_tags(x, inherit = TRUE) } \arguments{ \item{x}{org object as character vector.} \item{inherit}{logical; if \code{TRUE} (default), inherit tags from level one headlines....
09602caead12cf88cfbfeb5daa6ce655d7cf6dce
5667104d156cd74946ae4c6660926a89dc9aa552
/Pop Mod code(1).R
cf0d706ca36aec10f203e4b311400325601163a5
[]
no_license
Robertcavaye/R-Practice-
b51921adec269531eb83c776da0e70d66905af75
c11b09235db41e5ee4724c7a91cbaa4a2e499a54
refs/heads/master
2021-04-30T04:18:03.749305
2018-02-18T13:42:24
2018-02-18T13:42:24
121,532,231
0
0
null
null
null
null
UTF-8
R
false
false
6,588
r
Pop Mod code(1).R
# It's good practice to start your code with a line that clears R's memory: rm(list=ls()) # 2. Simple population models Years <- 100 # sets the duration of the simulation R <- 0.2 # sets the population’s growth rate N <- c(10,rep(0,Years-1)) # defines a vector to store the population sizes (an initial ...
74821a092f6e598b78d1ca5092f47ec1ae22bec3
ea35efa70d0a10b4b6708de564577da8e5b92680
/Prediction Models/LM_Model_for_edr.R
72f29fa972b2ecc7902352935b43bc9b8647037d
[]
no_license
akuyper/minneMUDAC
57f6604da41d4bb4268a750f554560edd33a5d0a
f6bcf72fb65aa9e72ec8fcfd30e12751232a976f
refs/heads/master
2020-03-31T23:45:29.379818
2018-11-04T21:28:22
2018-11-04T21:28:22
152,668,414
2
1
null
null
null
null
UTF-8
R
false
false
3,612
r
LM_Model_for_edr.R
#### LM Model for edr (Presinct Level) #### Ziyi Lu # Load Packages library(tidyverse) library(janitor) library(skimr) library(readxl) # Load data data <- readRDS("data/processed/competition_data.rds") %>% select(-pctname,-signatures,-county,-date) #total = signatures + ab_mb data$mailballot <- ifelse(data$mailbal...
cea7eaa6a84c37122810e1f80a184f4cca5377ca
cbe6eb38d57711b27fb63bfc8768d02e21f501ef
/plot4.R
180502c3ae7442f679996da37b0194f190dc4831
[]
no_license
Rongbin-Ye-94/JHU-DS-Explantory-Data-Analysis
3e03fec717a11a0284a14dffde357eed14d38317
6fcfafcd5f0358e6c733f5d6bb9eabbcf0900c68
refs/heads/master
2020-06-12T23:14:32.615977
2019-07-01T01:57:01
2019-07-01T01:57:01
194,525,015
0
0
null
null
null
null
UTF-8
R
false
false
1,510
r
plot4.R
FileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" Dest_1 <- "Elec_UCI.zip" if(!file.exists(Dest_1)){download.file(FileUrl,destfile = Dest_1, method = "curl")} if(file.exists(Dest_1)){unzip(Dest_1)} library(grDevices) #loading data data_full <- read.csv("household_powe...
ecf2c4f23800821c11dd895e905e9b7338625475
31b0773626f57cf0a4d2e4007b80ba853613c99c
/R/metaROC.R
858130298ae0b6196611c5eabbfd060ff9f3db3b
[]
no_license
cran/nsROC
d63918034cce7b9e7f6a89f7545282df45e70518
653970764286dee9054ceb92a003dcb2d7d655d7
refs/heads/master
2021-01-21T23:16:35.840779
2018-08-07T08:10:03
2018-08-07T08:10:03
95,219,628
1
0
null
null
null
null
UTF-8
R
false
false
6,851
r
metaROC.R
metaROC <- function(data, ...) { UseMethod("metaROC") } metaROC.default <- function(data, Ni=1000, model=c("fixed-effects", "random-effects"), plot.Author=FALSE, plot.bands=TRUE, plot.inter.var=FALSE, cex.Author=0.7, lwd.Author=12, col.curve='blue', col.bands='light blue', alpha.trans=0.5, col.border='blue', ...){ ...
9994d78a2aca44bad04a8d00cdf5b4ccc82c026e
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/ramps/examples/corRExp2.Rd.R
c38996a3358c3cbd176632276a39fa422c569e5c
[]
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
503
r
corRExp2.Rd.R
library(ramps) ### Name: corRExp2 ### Title: Non-Separable Exponential Spatio-Temporal Correlation Structure ### Aliases: corRExp2 ### Keywords: models ### ** Examples sp1 <- corRExp2(form = ~ x + y + t) spatDat <- data.frame(x = (0:4)/4, y = (0:4)/4, t=(0:4)/4) cs1Exp <- corRExp2(c(1, 1, 1), form = ~ x + y + t) ...
d65ba03c81651d1194dd190750cf510e8195b832
3653a5e85dca41ca724b03c83fad08e92c433244
/Leaflet.R
b03c262b691beacdc896f025a0afeb046d985ebf
[]
no_license
ChanningC12/Developing-Data-Products
3742e035ddd05403673c4e329cb44ebe175422ec
a3165c3ebf12a6bbd8e207dafbded7c216dfffad
refs/heads/master
2020-07-02T09:53:23.507313
2016-11-21T01:44:09
2016-11-21T01:44:09
74,312,179
0
0
null
null
null
null
UTF-8
R
false
false
2,755
r
Leaflet.R
# Leaflet: Javascript libraries for creating interactive map install.packages("leaflet") library(leaflet) my_map = leaflet() %>% # pipe notation in R %>%, equals my_map = addTiles(leaflet()) addTiles() my_map # Adding Markers my_map = my_map %>% addMarkers(lat=39.2980803, lng=-76.5898801, popu...