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
ee59901c97ceb1267aad2db3642d2fe92abd2c75
cdbc1057868bef1b44b28e9a30d0fcbf86d98bbf
/find_aliasgeneposition_biomart.R
e3475091b3113555bd78c3055dcfdfcad8214d53
[]
no_license
xwang234/ovarian
4f57ecfe16dc1f0a06afa72b1d5be5ed29ad3198
b23bdd340230b3d0145bd3e4b432397c4c1512ba
refs/heads/master
2021-07-08T17:14:48.542354
2017-10-05T21:09:22
2017-10-05T21:09:22
105,941,140
1
0
null
null
null
null
UTF-8
R
false
false
2,968
r
find_aliasgeneposition_biomart.R
#!/usr/bin/env Rscript njob=100 library("biomaRt") #mart=useMart("ENSEMBL_MART_ENSEMBL", host="may2009.archive.ensembl.org/biomart/martservice/", dataset="hsapiens_gene_ensembl") #NCBI36, use listDatasets(mart) mart=useMart("ENSEMBL_MART_ENSEMBL", host="feb2014.archive.ensembl.org/biomart/martservice/", dataset="hsapie...
f1ee234dd3f3829495e62eb0370e908918387109
4d21fd017062a2d3242017e13fe8f5a30f78bcc6
/Code/tutte_funzioni_Amalgamare_rete.R
80064ab3b4213c50614fa6dbe7cb15050b13282b
[]
no_license
FedericoMelograna/CTBN_PhaseDistribution
05cce6ea1bafe8103a5dadcbe5134f460ce00b52
949af0fa112966e0abb6f0f8ca9bf4597571199f
refs/heads/master
2022-05-22T19:09:37.748517
2022-05-10T14:34:46
2022-05-10T14:34:46
222,083,031
0
0
null
null
null
null
WINDOWS-1252
R
false
false
24,275
r
tutte_funzioni_Amalgamare_rete.R
# funzioni amalgamazione e indietro --------------------------------------- library(stringr) # creazionefullRapprdatoDirect -------------------------------------------- directnames=function(k_int,N_int,matriced){ vector=c() for (i in 1:k_int){ for (j in 1:N_int){ vector=c(vector,paste0(j,"_",i)...
f23642d6e68e25d8b0be7c12cccfd89b2a044835
69db104f2b9234bfdc99192794f2f369395cf7be
/R/proCrustes.R
47c176941627fec48095a3f50f441608e5a1cf9e
[]
no_license
cran/mvdalab
d9ebb55f5ab5cd6bb9ebce9bade38f9fd1cf79a9
21e9983ecc4b15df922058de38bf3d7748cae2cb
refs/heads/master
2022-11-05T10:04:27.426346
2022-10-05T22:00:14
2022-10-05T22:00:14
55,814,072
0
0
null
null
null
null
UTF-8
R
false
false
1,503
r
proCrustes.R
proCrustes <- function(X, Y, scaling = TRUE, standardize = FALSE, scale.unit = F, ...) { Col.Diff <- (ncol(X) - ncol(Y)) if (ncol(X) > ncol(Y)) { Y <- data.frame(Y, Added = matrix(0, nrow = nrow(X), ncol = Col.Diff)) } else { X <- X Y <- Y } X. <- scale(X, scale = scale.unit) Y. <- scal...
43462d0ef2d42df70832f3c2ba2df2a4a3319b10
b088413a7481706cd82cd57adfc0692b3e50d68c
/tests/testthat/test-morgancpp.R
a7d5e7ed1b0b1552562403b9109e2c5f9ed95099
[ "MIT" ]
permissive
ArtemSokolov/morgancpp
9dc540cc3a5705b5708d89721da5b6d09f1e985e
9f481385fefa3cf8fae224be429aeb0a03b85d0d
refs/heads/master
2020-09-29T03:42:50.613481
2019-12-09T18:35:16
2019-12-09T18:35:16
226,941,895
0
0
MIT
2019-12-09T18:41:15
2019-12-09T18:41:14
null
UTF-8
R
false
false
2,575
r
test-morgancpp.R
context( "MorganFPS functionality" ) load_example1 <- function(n) scan( "../../inst/examples/example1.txt.gz", n=n, what=character(), quiet=TRUE ) test_that("Self-similarity is always 1", { ## Test the first 100 strings from the example v <- load_example1(1000) res <- sapply( v, function(hx) ...
3142c6d9977b9e24b9a5eaa6308bd5674bd25bcd
b564df9556614ef2c8256d578236ca776b85c0a7
/README.Rd
c4a30520a2925d4d4e489d80afbcc6a800c12fcd
[]
no_license
wesleyburr/FinancialAnalyticsIntl
9b825470c248bd4f25a35f12bace21548bd20319
751e5deda3762c3f4867d950e2e6de3dbcc461e3
refs/heads/main
2023-04-19T00:51:54.120242
2021-05-07T13:11:32
2021-05-07T13:11:32
365,234,949
0
0
null
null
null
null
UTF-8
R
false
false
291
rd
README.Rd
# Trent International - Financial Analytics Mini-Lecture Short (20-minute) talk given to potential international students interested in the Financial Analytics / Financial Science major at Trent University. Topic is reproducibility (specifically: computational reproducibility) in science.
8b52132d1c00784bb7cac2cf5148d3c32b341cdf
6dbc7d2df79a031c0d7877cd7d43652a6585a1b5
/plot.R
3188f589939077258684d4a8a278bc1cfbe9c57f
[]
no_license
RamrajSekar/Rfundamentals
bacaa236c19d75afaa00bddad291c40598fb0724
b966ab9a1b11f38e175a19148f8d61074161d942
refs/heads/master
2021-01-21T10:25:27.096869
2017-05-19T07:36:58
2017-05-19T07:36:58
91,687,611
1
0
null
null
null
null
UTF-8
R
false
false
2,084
r
plot.R
x=5:7 y = 8:10 plot(x,y) # data is a time series, lynx here is a line plot plot(lynx) # title, color, title color, title magnification plot(lynx, main="Lynx Trappings", col="red",col.main=52, cex.main=1.5) # label names plot(lynx, ylab="Lynx Trappings", xlab="") # label orientation plot(lynx, ylab="Lynx Trappings...
6579a3fd294189ef4124b568727feb6a5dddd3da
2ebd7c57f02e7be7285213701e6d2d33cd164f44
/code/get_me_pheno_associations.R
d2c9da50ad0e9313fedfb89c333580fc7812fd66
[]
no_license
SimonCouv/integrative-omics-public
780e6bc679827ed6eae81df6f83d21a3eff97619
2ff3ba45fce2f6b02bd2fae9163fe1598fa3a49c
refs/heads/master
2020-04-30T12:58:41.688568
2019-03-26T12:33:31
2019-03-26T12:33:31
176,841,222
0
0
null
null
null
null
UTF-8
R
false
false
7,188
r
get_me_pheno_associations.R
get_me_pheno_associations <- function(eigengenes, y){ # phenotype association models me_wilcox_cvd <- function(df) wilcox.test(formula=value~CVD0010, data=df, conf.int=TRUE) me_wilcox_sex <- function(df) wilcox.test(formula=value~SEX, data=df, conf.int=TRUE) me_wilcox_hrcvd <- function(df) wilcox.test(formul...
28ea8f1f6247521140106d31fe688151038dba0c
61d29d3ef402b7d47e527d054372e1d50e6a2e12
/R/KNN.R
fa516588b50f13c37cb5a0240f86d06e8aa3ba87
[]
no_license
DavisLaboratory/msImpute
2cab3e32be84656b9120db00fb32083547665e63
538873e2d8f512bfdfba4f764457d194d961f26a
refs/heads/master
2023-08-10T03:45:05.054105
2023-07-31T08:25:53
2023-07-31T08:25:53
239,129,382
9
0
null
2022-10-13T11:02:07
2020-02-08T12:32:33
R
UTF-8
R
false
false
1,157
r
KNN.R
#' k-nearest neighbour (KNN) #' #' The fraction of k-nearest neighbours in the original data that are preserved as k-nearest neighbours in imputed data. #' KNN quantifies preservation of the local, or microscopic structure. #' Requires complete datasets - for developers/use in benchmark studies only. #' #' @param xorig...
241d35acee766590a5f8bdc5d532f1f393feeaac
27f67f76a45865519d6f98acc6d650a4df494e1a
/netcompLib/man/compute_cellwise_loglik.Rd
68985f3fcefb649912851ccc356f4dfc72e3c09c
[]
no_license
minghao2016/netcompLib
3154409009ad9e49b8d886300dc722f09ea80464
aa5c15d374959a27ced7e4b14b25629c8c5f6186
refs/heads/master
2021-01-20T13:16:57.664085
2016-05-11T13:34:00
2016-05-11T13:34:00
null
0
0
null
null
null
null
UTF-8
R
false
false
583
rd
compute_cellwise_loglik.Rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{compute_cellwise_loglik} \alias{compute_cellwise_loglik} \title{Compute the loglikelihood from probabilities and counts} \usage{ compute_cellwise_loglik(x, n, p) } \arguments{ \item{x}{[matrix/array-int] :: observed counts in each cell} \item{n}{[int] :: Numbe...
6a24f9f0534e29dd5dfe9e3498193f443498ac4c
b4cc2e543a3822cd9e03a660348b3da6c47a8a14
/man/plotShifts.Rd
222db550122ead476bbdf186f8b96a61c243455c
[]
no_license
hferg/BTprocessR
09e078ed5f97c6f63db877794f74c39003ed4fd5
ce8ecd4cc422605438c98787ad326b0a077a1eb7
refs/heads/master
2021-05-11T06:25:43.805695
2020-03-04T16:36:11
2020-03-04T16:36:11
117,988,586
3
0
null
null
null
null
UTF-8
R
false
true
7,010
rd
plotShifts.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotShifts.R \name{plotShifts} \alias{plotShifts} \title{plotShifts} \usage{ plotShifts(PP, plot.options = list(), ...) } \arguments{ \item{PP}{The output of the rjpp function.} \item{plot.options}{A list of control options. See details.} \...
805b6f4dfb715294c1a21b7f9e9d7465b80b4ce5
55f8768526a5aba107fc8ef55749a3c5b80cfe2e
/man/qrmix.Rd
7d116ba8647502e4e5e4831ce55f548095f1c130
[]
no_license
cran/qrmix
7bcbf5dff46b0ecb0b323adbf62104eafda38955
6f6b990cef132275fb7aae7f43a061416699a65d
refs/heads/master
2021-01-20T08:53:49.978588
2017-05-03T20:49:24
2017-05-03T20:49:24
90,196,443
1
0
null
null
null
null
UTF-8
R
false
false
2,956
rd
qrmix.Rd
\name{qrmix} \alias{qrmix} \title{Quantile Regression Classification } \description{\code{qrmix} estimates the components of a finite mixture model by using quantile regression to select a group of quantiles that satisfy an optimality criteria chosen by the user. } \usage{ qrmix(formula, data, k, Ntau=50, alpha=0.0...
379a1bce8307a1fea71c5725a22f17bdef92ab3d
2921c9c994f3c67c3ba2edac682fe91f1d1797cf
/attendance/server.R
e2ab7d1186fb71e62ebf34b4c139f3ad9146659b
[]
no_license
leighseverson/attendance_app
5c66b47f70035eec528c40b7e171661b123d33bc
8ab4b49011ca47b175ed394465903886ac36a7de
refs/heads/master
2023-09-01T14:05:47.673356
2023-08-27T17:21:10
2023-08-27T17:21:10
68,144,545
0
0
null
null
null
null
UTF-8
R
false
false
2,021
r
server.R
library(shiny) library(shinyjs) library(dplyr) library(tibble) library(zoo) library(DT) student_list <- c('Anna', 'Cahill', 'Danni', 'Eileen', 'Elizabeth', 'Jane', 'Juan', 'Jyoti', ...
8ab8f6094586719d0ea95ef4846d6c760a496a72
841a858385500c1465b6673a2e78ba261bf687e3
/tests/testthat/test-CART.R
e4091f3fa27e13bdf9b459d7dc8c9678633f66c5
[]
no_license
jefshe/flipTrees
ae3398be905652b861e2e22bd52d1c66c415e348
f382bc97cd620ea3d4a3c93d806262582c096252
refs/heads/master
2020-03-16T14:21:52.097183
2018-05-09T06:48:32
2018-05-09T06:54:20
132,714,460
0
0
null
2018-05-09T06:53:16
2018-05-09T06:53:15
null
UTF-8
R
false
false
6,528
r
test-CART.R
context("CART") data("spam7", package = "DAAG") spam.sample <- spam7[sample(seq(1,4601), 500, replace=FALSE), ] data(cola, package = "flipExampleData") colas <- cola data(bank, package = "flipExampleData") bank$fOverall <- factor(bank$Overall) levels(bank$fOverall) <- c(levels(bank$fOverall), "8") # add an empty fa...
c1e192f03b6ff0f043f40fdcefca2beaf9210d3e
38088096f84050aece0bc1d73b33b7d845286bba
/man/wrapChiSqTestImpl.Rd
141cc6092c12993ba3ee5528cd424805869e50d9
[]
no_license
Sandy4321/sigr
2ea94d62e82cd89eaeed3bf570546a07d03b27cf
2129bede56acf7673710893eaf400d4a6dc891ec
refs/heads/master
2021-01-14T02:35:47.657148
2017-02-10T01:21:54
2017-02-10T01:21:54
null
0
0
null
null
null
null
UTF-8
R
false
true
759
rd
wrapChiSqTestImpl.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ChiSqTest.R \name{wrapChiSqTestImpl} \alias{wrapChiSqTestImpl} \title{Format quality of a logistic regression roughly in "APA Style" ( American Psychological Association ).} \usage{ wrapChiSqTestImpl(df.null, df.residual, null.deviance, devi...
2878092ba633fde8f48c215dd44f85bca0b87639
ce3bc493274116150497e73aa7539fef1c07442a
/man/replacefactor.Rd
0d82318a943406f6cc4b6295690924ff70fa2cc9
[]
no_license
laresbernardo/lares
6c67ff84a60efd53be98d05784a697357bd66626
8883d6ef3c3f41d092599ffbdd4c9c352a9becef
refs/heads/main
2023-08-10T06:26:45.114342
2023-07-27T23:47:30
2023-07-27T23:48:57
141,465,288
235
61
null
2023-07-27T15:58:31
2018-07-18T17:04:39
R
UTF-8
R
false
true
1,491
rd
replacefactor.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wrangling.R \name{replacefactor} \alias{replacefactor} \title{Replace Factor Values} \usage{ replacefactor(x, original, change) } \arguments{ \item{x}{Factor (or Character) Vector} \item{original}{String or Vector. Original text you wish to ...
f5f7747c9a8aac9e73fcb554b300ebdbd2b7c064
032bfd7f855a5bf615bbcaea68efdd3c081d3cdb
/plot2.R
2cb887460b6e14a2f32a9cd910533c929ec39c0f
[]
no_license
czhang81/ExData_Plotting1
9be0949881c372309e2e35a022f4f1f33682a8bc
c63de05336709378cc3c2f5a526803d5627fb756
refs/heads/master
2021-01-12T18:59:00.016534
2014-12-08T17:30:16
2014-12-08T17:30:16
null
0
0
null
null
null
null
UTF-8
R
false
false
503
r
plot2.R
mydata<-read.table("~/R2/household_power_consumption.txt",header=T,sep=";",na.strings="?") mydata$Date<-as.Date(mydata$Date, format="%d/%m/%Y") datatrue<-subset(mydata,Date>="2007-02-01"& Date <= "2007-02-02") rm(mydata) datetime <- paste(as.Date(datatrue$Date), datatrue$Time) datatrue$Datetime <- as.POSIXct(datetime) ...
8c091864e13691c28a24ed7626795871bae94acd
c7840acfb3c7bba9ac956bb0872de40052dc18b5
/PCA.r
4513c67fee3656e6cfb976d37197923df72c72af
[]
no_license
HaihuaWang-hub/Data-Graphics
4b24b1c0a650bc0e6b41e000075ff89e39e2d9bb
bf4e3fbfa2980eb64c4b02d7af289d61aa1096cd
refs/heads/master
2023-03-02T15:29:33.162245
2021-01-20T01:17:54
2021-01-20T01:17:54
null
0
0
null
null
null
null
UTF-8
R
false
false
803
r
PCA.r
library(maptools) library(ggplot2) library(ggrepel) # Import files setwd("~/R/Analysis/1_Test") METADATA <- read.csv(file="metadata.csv",header=T) # Make dataset pilots.pca <- prcomp(na.omit(METADATA),scale=TRUE, center = TRUE) #standardized biplot(pilots.pca) # Check the result loading <- sweep(pilots.pc...
0f9477ca9afa73f64c0c9ea720fa45339c640134
b6785fb75ce1a9ba7e37a91eee1f1c55af8b17b7
/man/readin.Rd
1cbc6b00ecc83c6f94c0fc55dc56d6d9adc24780
[ "MIT" ]
permissive
kbario/NMRalter8r
19d642fc3d852d74478d9bf0f007066d1162ecbc
8c90da677d317d7e8df1ac459d38099dd89b3f75
refs/heads/main
2023-04-16T16:11:09.117793
2021-09-09T07:17:00
2021-09-09T07:17:00
404,548,734
2
0
null
null
null
null
UTF-8
R
false
true
1,502
rd
readin.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readin.R \name{readin} \alias{readin} \title{Import 1D NMR spectra} \usage{ readin(path) } \arguments{ \item{path}{Given as a string, the path to the overarching files containing the NMR spectrum.} } \value{ The function exports the following...
c06b29231a6ceae0c296f58eb0025a6ebac02a6c
71d504e4af359cd6b2aa5fef69d456389e23f4db
/Premier League Analysis/R/modelling_goals.R
6ec09fb5f06313d56d803cbd6dfddcdd1ed9a9bc
[]
no_license
mfaisalshahid/Premier-League-Analysis
121e630502dd7f9ef639b4bccabd75f270fbfdbf
4d7917cb77294d70bc808e227a4592fe802ce8ab
refs/heads/master
2022-12-11T16:13:02.024192
2020-08-31T02:20:38
2020-08-31T02:20:38
291,592,882
0
0
null
null
null
null
UTF-8
R
false
false
3,789
r
modelling_goals.R
############################################################################################ ########### GOALS_FOR VS XG ################################################################ ########### NO TRANSFORMATIONS ############################################################# df <- select(season_all, pts, goals_for, ...
8f8f8b451f04e195355cd4ddaa2a6909dd3abda5
6157f5e76faaae00866a71e4911dc0dc0d5c8f04
/inst/doc/metadata-and-data-units.R
287b4c80949c2d45e7e96f8d80c08befcb1facb5
[]
no_license
cran/sapfluxnetr
78ba9f3a550723d0db7188afec669ba6cb3105ee
6eff89be6271507f642449f5b2c40beae831eda5
refs/heads/master
2023-02-04T22:13:44.103316
2023-01-25T14:30:02
2023-01-25T14:30:02
184,409,486
0
0
null
null
null
null
UTF-8
R
false
false
3,490
r
metadata-and-data-units.R
## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----describe_md_variable----------------------------------------------------- library(sapfluxnetr) describe_md_variable('si_elev') describe_md_variable('st_age') ## ----md_v...
efe6fd2a890f407c61938d01b09abc87d9a4ce56
df0e9f804c7708481b021f20b3a9d372fc752254
/R/print.bal.tab.R
efb3038a164c3a5edf8960d468c265eb3e60c32f
[]
no_license
Zchristian955/cobalt
3a132bca1d6a7fe3286e9d0f7154e072766a2f79
92596ad30186a06f263db8b32c005989c720f345
refs/heads/master
2023-03-14T20:50:03.661026
2021-03-30T08:50:18
2021-03-30T08:50:18
436,739,071
1
0
null
null
null
null
UTF-8
R
false
false
58,339
r
print.bal.tab.R
print.bal.tab <- function(x, imbalanced.only, un, disp.bal.tab, disp.call, stats, disp.thresholds, disp, which.subclass, subclass.summary, which.imp, imp.summary, imp.fun, which.treat, multi.summary, ...
9e30498815217a8115a9b6140a72843e24ad6745
611963c993f211782d67628d20da92118672c176
/logic/obselete/randomForestImpl.R
9660ad0a8382c12def9265865e478928392630c6
[]
no_license
CalvinHuynh/DataAnalysis
310a3af7285f61ceb224bde42ffb4229d1c0e86d
1b234200628413bcbac93810a201bbf5b6cd2522
refs/heads/master
2021-09-05T11:10:45.242255
2018-01-26T20:19:10
2018-01-26T20:19:10
112,754,264
0
0
null
null
null
null
UTF-8
R
false
false
2,448
r
randomForestImpl.R
Sys.setenv(lang = "en") library(tm) library(SnowballC) library(caTools) library(rpart) library(rpart.plot) library(randomForest) source("logic/reader.R") trainIMDBData <- readFirstDataset() combinedTrainData2 <- readSecondDataset(trainIMDBData) trainIMDBData$review <- convertToUtf8Enc(trainIMDBData$review) # trainIM...
22f16dac51fbc4e89da985da7ed785c8dad9918e
a8f30efa30a78176b94a343d5c5bdbc705e84cc4
/Project2-R-file.R
6955fef3576eb00a0e675e6e1f4539f7aafb06b9
[]
no_license
psoland/Predictive-analytics-with-R
5480f369f3332491f0dc2afc6260929cdb9aaf8f
925a12ffac6db5dbfb8517b02c8bc99d0b047e3c
refs/heads/master
2020-06-05T16:37:52.901086
2019-06-18T20:04:53
2019-06-18T20:04:53
192,485,500
0
0
null
null
null
null
UTF-8
R
false
false
11,203
r
Project2-R-file.R
library(tidyverse) library(caret) library(MASS) library(parallel) library(doParallel) library(pROC) library(rpart) library(grid) #--------------------------------------- Descriptive statistics --------------------------------------- marketing.full <- ElemStatLearn::marketing marketing.full$High <- ifelse(marketing.fu...
b491ad8da4e50d09aa3371a758808e404494a4bd
6db72f96fe027cf7596b1a8e715b87233466d81b
/tests/testthat/test-uniformG_selection.R
cb2346ef54b3dec8d7ff436a6add160f7bb95a0f
[]
no_license
cran/biosurvey
42d8036c319cbf925d53428778b002350e2b32c7
5c428c9b7e4f57b62f015576ca5ac98a4e6eb169
refs/heads/master
2023-08-11T08:01:51.192879
2021-09-15T20:10:07
2021-09-15T20:10:07
406,425,246
0
0
null
null
null
null
UTF-8
R
false
false
1,795
r
test-uniformG_selection.R
context("Uniform selection of sites in G") test_that("Correct G master_selection", { selection <- uniformG_selection(m_matrix_pre, expected_points = 20, max_n_samplings = 1, replicates = 1) cnam <- names(selection) nsel <- nrow(selection$selected_sites_G[[1]]) cls <- cl...
c01a6e174dab689d5aa549cfb20de031886e2b13
259fe6446e0f059be228f95745db1aa54ad5ce31
/man/constraint_all_zeros.Rd
590b793bbacfc958e229676c3d049186875610da
[]
no_license
tpq/caress
9fd1c306e8f6bb23f88203f6e6329a72d4689aaa
04386b3ab61ef9036e91ab1bbd6e42a1265b5ea9
refs/heads/master
2021-06-24T08:16:31.155396
2021-03-03T03:34:27
2021-03-03T03:34:27
202,971,472
1
0
null
null
null
null
UTF-8
R
false
true
341
rd
constraint_all_zeros.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/3-constraint.R \name{constraint_all_zeros} \alias{constraint_all_zeros} \title{Constrain All Weights to Zero} \usage{ constraint_all_zeros(w) } \arguments{ \item{w}{A weights matrix.} } \description{ This weights constraint function forces al...
d19a6b94039d3fcf648ef08d9db4bba571d11db3
a91c8d6928115e7ba12c76db197bc61fff3eab85
/Models/Counts_Corr.R
d74f506552b1f59f174c7e592891f538f6c38ab0
[]
no_license
no33mis/MSc-Dissertation
f308799cdbce8f780bcbee4dbb7ee7145b286f6e
f7d5676872d2d7388a556a79a79e3a8aa62e480f
refs/heads/master
2022-11-30T19:35:02.659772
2020-08-12T04:02:48
2020-08-12T04:02:48
null
0
0
null
null
null
null
UTF-8
R
false
false
823
r
Counts_Corr.R
######################################## Correlation Matrix ################################################### ### Correlation Matrix of the features ############################################################################################################## ##CLEAR R MEMORY rm(list = ls()) library(corrplot) ##se...
0b2252fd46c7ffd1dd86b53dcc5eef9b0a56391d
16d6f9a925fb8ae78938baf67173afc7b4e3f94b
/R/ranges-reduce.R
f59909de33b5b77f4a2d85d64fdc6c0386bde7d9
[]
no_license
liupfskygre/plyranges
809851435ac1d9a60df8400b8c7c409862966418
c82b7eb8ec31478e0f8439207d20897f0c102a6f
refs/heads/master
2023-06-04T10:52:44.864177
2021-06-28T01:15:43
2021-06-28T01:15:43
null
0
0
null
null
null
null
UTF-8
R
false
false
4,668
r
ranges-reduce.R
# ranges-reduce group_by_revmap <- function(.data, indexes, groups) { group_vars <- syms(c(group_vars(.data), "revmap")) .data <- ungroup(.data) .data <- .data[unlist(indexes)] mcols(.data)[["revmap"]] <- groups return(group_by(.data, !!!group_vars)) } make_key_rle <- function(x) { Rle(as.integer(S4Vector...
6dd030586169393f258efd4f9812700c28aff9c6
38e63376593fe5028ed86606833da87ee10a1c83
/Los Angeles/EDA_Los_Angeles.R
423d7d22df47c2c1c01747c7b48bb6cb07d22c8e
[ "MIT" ]
permissive
Abhinav-Git19/Airbnb-Hosuing-Recommendation
659164b73c0823ca5409fa55e9dc57930289a2cd
a57bccedc34762473504e12a864d510d985cfff3
refs/heads/master
2021-06-26T14:25:18.334521
2021-01-14T15:30:33
2021-01-14T15:30:33
196,685,318
0
0
null
null
null
null
UTF-8
R
false
false
798
r
EDA_Los_Angeles.R
library(tidyverse) library(readr) library(corrplot) listings2<-listings listings2 %>% ggplot(mapping = aes(x=minimum_nights,y=price))+geom_point()+ggtitle("Price Vs Min_Nights") ggplot(listings2,mapping = aes(x=availability_365,y=price))+geom_point() sub<-select(listings2,price:number_of_reviews,reviews_per_month:a...
b103c384c65314b3204bd235d4f77e33767993a9
15b17e0f1ece59719e4d6a7bd9b8f1bf28f4af8c
/FF/FFTeam.R
285e0119fa6ee1e1cfa7adaca9958fdd7752bb3b
[]
no_license
paulelong/TestProj1
687a10793863e4e628645eb12cb256ef342b311d
92c786222e702fec29d9ccb64bd72deecb114359
refs/heads/master
2021-04-26T16:53:12.645703
2017-10-27T13:06:33
2017-10-27T13:06:33
106,869,941
0
0
null
null
null
null
UTF-8
R
false
false
2,156
r
FFTeam.R
source(file="FFLib.R") source(file="FFData.R") InitEnv(7) InitYahooEnv() InitLeague() aop <- GetAllOwnedPlayers() aop YahooAllPlayerStatsAtPosition("TE", 3) GetTeamRoster(7) Teams() Roster() ps <- YahooPlayerStats("371.p.25812", 3) si <- YahooLeagueStatInfo() lset <- LeagueSettings() GetPlayerKey(332) cpl <- ...
7dd44e5606771937e7bb1f086a3e4b529c11fa77
62c4005400f184f99d7409fad00d3f3400d728a3
/2-create_physical_map/5-Translate_maps-2-split_scaffolds.R
236758be7792ca2c7587660cc9e0328fad1946f5
[ "MIT" ]
permissive
parkingvarsson/Recombination_rate_variation
800b7f7622b72e3c51c87be58d5a035f2c42892c
e0b046851c001d3368e564ebd5f38766df75bf12
refs/heads/master
2020-06-01T07:53:37.442299
2020-05-26T13:07:57
2020-05-26T13:07:57
190,707,515
1
0
null
null
null
null
UTF-8
R
false
false
1,909
r
5-Translate_maps-2-split_scaffolds.R
read.csv("Female_with_bins.csv",head=T)->Female_orig read.csv("Male_with_bins.csv",head=T)->Male_orig read.table("v1.1_Potra01-genome.fa.masked.agp",head=F)->scaffold_translate Female_translated_map<-as.data.frame(matrix(NA,nrow = dim(Female_orig)[1],ncol=dim(Female_orig)[2])) names(Female_translated_map)<-c("Scaffold...
cfc40526a60ec4b6766a6392c9da464eb7c2c6ba
9a808268700a7ddf02c3b11b3820eed269acd9b9
/run_shiny_app.R
dfb40569c04cc7e01600e11f5d5a3201688f5e67
[]
no_license
wmattbrown/dndhelper
92c532b9e2fbbe5d4351df401ea8e18ca9a67de0
1ab4b25d83dc90939c9bbb9dc2bd03f6e5a2900c
refs/heads/master
2022-05-29T12:41:48.356959
2020-05-02T20:36:36
2020-05-02T20:36:36
259,116,249
0
0
null
null
null
null
UTF-8
R
false
false
31
r
run_shiny_app.R
# run shiny app shiny::runApp()
0166e6eaa362592a17acdd127d9cb8abcc17c375
9a446d74975a2dd0eae8e728ebf3af0dbdee68b7
/man/sparse_eye.Rd
13c48b9855913ef6fab9ff486c8412fc25c9993c
[]
no_license
ifrit98/R2deepR
fcef56ee72ce3f604584f8455934a6b8e8e8694e
d5d0ddfb08fc54c5ce8f48c9decbbbefc71e1b1a
refs/heads/master
2022-10-18T11:05:48.346916
2020-06-17T17:29:42
2020-06-17T17:29:42
265,967,957
0
0
null
null
null
null
UTF-8
R
false
true
255
rd
sparse_eye.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{sparse_eye} \alias{sparse_eye} \title{Creates a sparse eye_matrix tensor} \usage{ sparse_eye(size, axis = 1L) } \description{ Creates a sparse eye_matrix tensor }
0dfffe9c022b46fcd00d70f9a1e8733acc0add26
8dc3f2a21244c018fbd646e12220626d7834aebc
/R/summaryBvsA.R
a6b5fa62af67395bec26ba37d9b9d751c1190052
[ "MIT" ]
permissive
bakuhatsu/measuRoots
07146866c0ee5bab8aa4d337273e19cc9d9f4379
ca44a282ae5ee5057bded095e6220c4049c2d95f
refs/heads/master
2021-01-19T09:26:46.273025
2018-07-18T16:53:56
2018-07-18T16:53:56
82,109,259
0
0
null
null
null
null
UTF-8
R
false
false
4,728
r
summaryBvsA.R
################################# # 4/25/2016 # # Sven Nelson # # function: summaryBvsA # ################################# # Write a function to create a summary between WW and WS # summaryWWvsWS (A = WW, B = WS) pkg.env <- new.env(parent = emptyenv()) #' #' @export #' ...
b4ccd57a0c604ccf2b5597d51683fa8a8dd8e239
ee503bac3ea764666106b3eff49406903f066d7d
/R/plot_longterm_daily_stats.R
cade9e984116cfeed2b731494699820773ffede6
[ "Apache-2.0" ]
permissive
bcgov/fasstr
a90a88702543084c7d36c7f7386745d4c24672b7
10da0bb28e2f55d0b9c2b71de8b028f5a4071c21
refs/heads/main
2023-04-02T17:38:35.947960
2023-03-22T20:25:08
2023-03-22T20:25:08
108,884,386
61
14
Apache-2.0
2023-03-22T20:26:18
2017-10-30T17:23:30
R
UTF-8
R
false
false
16,344
r
plot_longterm_daily_stats.R
# Copyright 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
40e2b7b9a0f67f33f7969ebe69ffe16232d9403d
8f9d971f28ef816be82dc4904fefd34bfd77bfb8
/warfkit/bin/merge.R
f4a73a6421494430f913e49c3ba9ebf95ba73399
[]
no_license
MarcusWalz/RogueClinicalAvatars
d44f17ae9bd7b6d91e13ddd65c27f198a8e27d22
b37bc9bbb4100aaf830ad227dbb63028dd374616
refs/heads/master
2016-09-10T16:20:54.386403
2015-12-11T18:22:34
2015-12-11T18:22:34
31,743,949
0
2
null
2015-04-08T14:43:51
2015-03-06T00:16:00
R
UTF-8
R
false
false
140
r
merge.R
#!/usr/bin/env Rscript args = commandArgs(T) output = args[1] inputs = args[-1] saveRDS(Reduce(append, Map(readRDS,inputs)), file=output)
c3dacf21a051cd8939e2398930e1ee26ff75a0a5
aeffdf7c301a7180f7a92a837fca2cb61076bdec
/R/kmh2knots.r
45b0fe8b4a6d84896ee43a31fdab708b3ece77e5
[ "MIT" ]
permissive
alfcrisci/biometeoR
5d5e874b0b02c79d41f2737107f880d31de318b8
e9ee73da6ecc515ecd471cb9ae059a4370a51493
refs/heads/master
2021-01-10T14:26:38.483831
2016-11-30T18:05:40
2016-11-30T18:05:40
75,196,823
1
0
null
null
null
null
UTF-8
R
false
false
355
r
kmh2knots.r
#' kmh2knots #' #' Conversion from kilometer per hour to knot per second. #' #' @param numeric kmh Speed in kilometer per hour. #' @return #' #' #' @author Istituto di Biometeorologia Firenze Italy Alfonso Crisci \email{a.crisci@@ibimet.cnr.it} #' @keywords kmh2knots #' #' @export #' #' #' #' kmh2knots<-functio...
80352559f47633db65eecfa5b7c6a44887f58347
a2968913dcfecff3fe9d190cdaf6306b6e8ea67a
/Problem_1/Vicky_problem_1.R
0d76e4fb24d5ee395b5e7776385fc0c7ec425823
[]
no_license
RobinL/dash_lunch_n_code
d013c1628fadbe3cc4837d33b7d0cf163bdc0033
f92a06162b2cdacef6a1356b6d656b9ed2da223f
refs/heads/master
2021-04-30T17:25:00.175609
2017-03-06T15:23:36
2017-03-06T15:23:36
80,207,383
0
0
null
2017-03-06T15:23:37
2017-01-27T12:56:35
Python
UTF-8
R
false
false
298
r
Vicky_problem_1.R
# EXERCISE 1 threes <- seq(3, 999, by=3) print(threes) fives <- seq(5, 999, by=5) print(fives) all <- c(threes, fives) uniques <- unique(all) answer <- sum(uniques) # Make it into a function exercise1 = function(n) sum(unique(c( seq(3, n-1, by = 3), seq(5, n-1, by = 5)))) exercise1(1000)
48f134272e95b205747fff087159f9d73b20d382
0daef96b634ea50138677a7df05c68e97a931df3
/analysis/old_files/final_analysis.r
74e0a6409076f55d248bc3e446a7174574767100
[]
no_license
sbmkvp/footfall_from_wifi_sensors
f4f35798f4beb59d6e923cda8932e4e89f4620e6
3ae21cd176c468b9f5e989c1d3bf7d3910662e60
refs/heads/master
2021-03-19T15:09:22.272394
2019-03-12T20:31:20
2019-03-12T20:31:20
null
0
0
null
null
null
null
UTF-8
R
false
false
354
r
final_analysis.r
rm(list=ls()) library(tidyverse) library(magrittr) # we need to read data first. sensor <- "../data/oxst_sensor.csv" %>% read.csv(stringsAsFactors = FALSE) %>% as_tibble() %>% mutate(X=NULL, sig=cut(signal, classIntervals(signal, 2, "kmeans")$brks, c("low","high"))) %>% print() # Reclassifying...
00353247f42d16c0ee3f5264a253b332c92dc101
0ccdd0abbf3d39f1c5e971e26a60f53719ba6fb4
/ml/scripts/ml_examples/randomForest1.R
7f937e9425bfe16dc0572fa6fc15116595d4476a
[]
no_license
pickle-donut/RScripts
9a87bd616ea3cd89a94c98e8438c3bc80432392b
2a60daf6cfbeaa194f696daf699b387544f8f163
refs/heads/master
2022-11-09T00:01:57.999428
2020-06-15T23:27:00
2020-06-15T23:27:00
270,508,904
0
0
null
2020-06-15T23:27:01
2020-06-08T03:06:02
R
UTF-8
R
false
false
399
r
randomForest1.R
library(randomForest) features = data.frame(inFeatures) myData = data.frame(IDs, target, features) myData = na.omit(myData) myData = myData[-c(1,2)] rdf = randomForest(x = myData, y = actual, nodesize = nodesize, importance = TRUE, keep.forest = TRUE, ntree = ntree) predictedRDF = predict(rdf, myData) columns = colna...
878726d56976149ac54f7a0e9bde9f576d479f33
76fd0fea6f657e2d926fff82561aceff8dd84b5c
/Raster Data.R
2ddbf46ab01e4138dc500da2a623a2498b44c71e
[]
no_license
carterpowell/Bryphy2
2ec2a7217ebd5acf1817c9fd85ccc515878ee4e2
afdc26c5229ad47d4748a5854c967c8e9c8c471f
refs/heads/master
2021-01-25T09:45:19.269191
2018-04-15T20:05:25
2018-04-15T20:05:25
123,317,871
0
0
null
null
null
null
UTF-8
R
false
false
2,876
r
Raster Data.R
# Libraries --------------------------------------------------------------- require(raster) require(rgdal) library(maps) library(mapdata) library(dismo) library(rJava) library(maptools) library(jsonlite) require(grDevices) require(ggplot2) library(devtools) install_github("ggbiplot", "vqv") library(ggbiplot) library...
9331fc29890da71030336415925b99eebbc5da25
6bbd67ced962b50b1bb1d84ba0dc1dccd1f8cc61
/R/bacteria_new.R
6b68ff8117f0ebc121116afb3c11bc171344350d
[]
no_license
chrislopez28/bacteria
1d1c3e1199f0c2df197bd0c92fdf6fb02a12ba88
3b5a42d7f95e4113af888cf279e9700cf7a5cafd
refs/heads/master
2020-04-08T16:40:53.887193
2019-11-14T19:41:54
2019-11-14T19:41:54
159,529,752
1
0
null
null
null
null
UTF-8
R
false
false
6,403
r
bacteria_new.R
grab_limits_geo_new <- function(BU, water_type){ # TODO: warnings # TODO: SHELL limits if (water_type == "marine"){ if(BU == "REC-1"){ limits <- c(NA, NA, NA, 30) } } if (water_type == "fresh"){ if (BU == "REC-1"){ limits <- c(100, NA, NA, NA) } else if (BU == "LREC-1"){ ...
87665107c898d9b51ed8d1067f392b9a9bfcbd32
1a700256e18c81352fb68dff337547d3c11d0542
/scripts/dataframe_to_coverage.R
79eb20fa4a78e22816b68098071c0e8965fd635e
[]
no_license
endrebak/pyranges-paper
bc4fbc0d8e05667bf04f7216f143b5be34f1a44e
b006ebd18d487354ce6e115df7172f3de38f52f0
refs/heads/master
2020-03-13T13:07:25.258777
2019-04-04T13:10:28
2019-04-04T13:10:28
131,132,556
0
0
null
null
null
null
UTF-8
R
false
false
457
r
dataframe_to_coverage.R
source("scripts/helpers.R") library(GenomicRanges) library(data.table) ## chip = import() f = snakemake@input[[1]] gr = file_to_grange(f) print("Starting to create Rles") start.time <- Sys.time() chip_list = coverage(gr) end.time <- Sys.time() time.taken <- end.time - start.time time.taken <- as.numeric(time.ta...
4583dada50658c65b963280be24502f9d1a11f3b
3231a73caedc0e36bf9a3d65555a31c9602ede16
/plot2.R
56377dc78f5aa5ed24bc377e7fb5271689a134ed
[]
no_license
ezracode/ExData_Plotting1
38ec12531839719dc292430b7fd3410c2fda4aa9
fd9e9d97fa950dfcd7be6a5c045fd6849da020c4
refs/heads/master
2020-03-18T07:35:45.922526
2018-05-29T18:25:14
2018-05-29T18:25:14
134,462,415
0
0
null
2018-05-22T19:00:23
2018-05-22T19:00:22
null
UTF-8
R
false
false
888
r
plot2.R
#setwd("C:/Users/esalazar/Documents/Proyectos R/Programming R/ExData_Plotting1") library(dplyr) rm(list = ls()) MyData <- read.csv(file="../household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?") MyData2 <- filter(MyData, (as.Date(MyData$Date, "%d/%m/%Y") == as.Date("1/2/2007", "%d/%m/%Y") | as...
bdd0a3d23af6fc9a2f6ffcd62bfb96d8d5cd280b
e57899108b795f2f2f9411150d564128e945f391
/Code for Ethnicity vs. Perceived Age.R
6f03e20e2da7379fb8fb011e0340631ddec710b8
[]
no_license
NayilRArana/Ethnicity-vs-PerceivedAge
dcb85ac852e67970955a37ab69b149a3517fcecd
b046d28dd071eff96eb7e83d5fe2f259a5266e0e
refs/heads/master
2020-09-08T21:36:44.965371
2020-05-11T15:19:57
2020-05-11T15:19:57
221,249,003
0
0
null
null
null
null
UTF-8
R
false
false
2,411
r
Code for Ethnicity vs. Perceived Age.R
install.packages("ggplot2") library("ggplot2") theme_update(plot.title = element_text(hjust = 0.5)) guesses = read.csv("2019_project_data.csv", head=T) head(guesses) summary(guesses[,-c(1,4)]) hist(guesses$error, xlab = "Error", ylab = "Frequency", main = "Histogram of Errors") hist(guesses$abs_error, xlab = "Absolute ...
fd54c78b39fddc516be5e47c0ec87091affa0be3
95f70abdaa291233dfce40f26b8f4e908b776ed7
/Estatistica/Prova/Prova 1 parte 1.R
82e949e76e6609cb1095faf627448fcb921332f3
[]
no_license
leonardomaruyama/Mestrado
bf6be463eafdf9b6d22f9624bf9e07bfa6f9a0c0
7e4925c9c429750db9f7e9f5d9f56d2a47a163aa
refs/heads/master
2020-03-28T02:46:35.878475
2018-09-15T18:42:17
2018-09-15T18:42:17
147,595,639
0
0
null
null
null
null
ISO-8859-1
R
false
false
907
r
Prova 1 parte 1.R
#Prova #item 1 dados=read.table("exer1.txt",header=T,sep=";",dec=".") attach(dados) dados names(dados) summary(dados) sort(Direito)) sd(Direito) sd(Política) sd(Estatística) moda<-function(d) { if ((is.vector(d) || is.matrix(d) || is.factor(d)==TRUE) && (is.list(d)==FALSE)) { dd<-table(d) valores<-which(...
b70f818c890048ac3280cb774348ac43e3fa547e
33a057798ba05fd94edd8332fc7c0a8b29af068e
/newIndexColumn.r
17cdd272159cc678271dc72ff709473ace420d2b
[ "MIT" ]
permissive
jluzuria2001/codeSnippets
810d333eedeb9543cea1091bc9c93787fd8c70ae
71b3ebb3e10236bdd907023208530558544b53ae
refs/heads/master
2021-06-23T09:49:07.070873
2021-06-17T16:08:35
2021-06-17T16:08:35
21,698,099
0
0
null
null
null
null
UTF-8
R
false
false
649
r
newIndexColumn.r
# CREATE A NEW COLUMN OF INDEX # FROM 0 TO THE SIZE OF THE MATRIX MINUS 1 error1$index<-seq.int(0, nrow(error1)-1, 1) #COMPARE THE COLUMNS #AND CREATE A NEW COLUMN #PUTTING A 0 IF ARE EQUAL #PUTTING A 1 IF ARE DIFFERENT error1$order <- ifelse(error1$V6 == error1$index,0,1) #COUNT THE NUMBER OF ZERO IN A MATRIX...
c52260c8fb6224cc4b5597a527b86ee8725bed49
529197dd346db560797340e771a9ef373d960d4d
/man/si_physical_constants.Rd
d17e655a5563247ac6f3108dc3f7f2d0f1eb2093
[]
no_license
khaors/rphysunits
1fc375ab6dfd6ccd154a924054a2b7d9e88232b5
657bd09185213361c0f24bf3f4e38763f245bdcc
refs/heads/master
2020-06-20T02:52:20.184551
2016-12-13T13:28:59
2016-12-13T13:28:59
74,886,235
0
0
null
null
null
null
UTF-8
R
false
true
1,413
rd
si_physical_constants.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rphysunits.R \docType{data} \name{si_physical_constants} \alias{c_avogadro} \alias{c_bohr_magneton} \alias{c_boltzmann} \alias{c_e} \alias{c_electric} \alias{c_electron_charge} \alias{c_electron_rest_mass} \alias{c_elementary_charge} \alias{c...
2fb3c5d3a35c6461544ec249df91e36519b965d1
11e9a640ad60972f0a1ff2fb8509ec998059ccb0
/R/LoadActivitiesLong.R
bf14a163b3aa2209e4f23a0834b8536bcdc67e1a
[ "MIT" ]
permissive
jakeyeung/TissueCiradianAnalysis
f53f6a65e1e5489e6ee9c465a612c1cce108d256
6c29a33820c8c0ab6dabbd992cc2412b199fc7af
refs/heads/master
2020-09-21T05:58:35.578267
2020-08-07T16:35:13
2020-08-07T16:35:13
224,702,276
1
0
null
null
null
null
UTF-8
R
false
false
5,576
r
LoadActivitiesLong.R
LoadActivitiesLong <- function(indir, act.file="activities.all", se.file="standarderrors.all", shorten.motif.name=FALSE, make.cnames = TRUE){ source("~/projects/tissue-specificity/scripts/functions/ActivitiesMergedFunctions.R") source("~/projects/tissue-specificity/scripts/functions/GetTissueTimes.R") source("~/p...
e2ba9f35916a19d323844a48a9587b85e3c1d7ee
1a02d9cc7cc28ae04bcca89cd3607e29419ab707
/R/CxF.R
0b258daa701e7e5f5052af97d4f523e3aedea439
[]
no_license
franciscoxaxo/sankeydiagram
3b78068dc10ec0ab5031f4f4b26fc34837997576
e0fe4a67a6600d9f91fb35865a267d0ac9f86a63
refs/heads/main
2023-08-02T12:13:22.716039
2021-10-08T01:15:07
2021-10-08T01:15:07
408,893,868
0
0
null
null
null
null
UTF-8
R
false
false
1,047
r
CxF.R
#' Title CxF Columnas a Filas #' Sort a dataframe that contains "responses in multiple columns" in a single column #' @param data dataframe #' #' @return a CSV file #' @export #' @import utils #' @examples CxF <- function(data){ i..ActiveScreener.Id <- 1; Time.of.Screening <- 1 ; Title <- 1 ; Authors <- 1 ...
5c0593ca23c54f1dcabf0c74be1dbc67cf831ecb
90bb1dabe91ac66076eefee72e59f8bc75d3315d
/man/generate_sub_Gaussian_fn.Rd
fb34406027ba80c3fc4f904c717904ae29890027
[ "MIT" ]
permissive
shinjaehyeok/SGLRT_paper
31b1dfaac5fdae07c8a106ed86802559b4ac3808
cbca2c5d9cfc6a2a5fbc8af6a3183fa133b9c377
refs/heads/master
2022-12-30T23:09:42.248401
2020-10-24T07:21:30
2020-10-24T07:21:30
299,136,203
0
0
null
null
null
null
UTF-8
R
false
true
750
rd
generate_sub_Gaussian_fn.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/breg_fn_class.R \name{generate_sub_Gaussian_fn} \alias{generate_sub_Gaussian_fn} \title{Pre-defined psi^* and Bregman divergence functions for sub-Gaussian family.} \usage{ generate_sub_Gaussian_fn(sig = 1, is_add = TRUE) } \arguments{ \item{...
d9b7f379456ec1b1f03cedef9238d76a4dd3b06a
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/brt/examples/tpvaltreat.Rd.R
b2529142b5d10086b0a9b850a5c497f67a9795ad
[]
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
521
r
tpvaltreat.Rd.R
library(brt) ### Name: tpvaltreat ### Title: Hypothesis testing using the Student t Distribution with H0: ### abs(mu) <= delta ### Aliases: tpvaltreat ### Keywords: htest ### ** Examples x=seq(from=-30, to=30, length.out=100) data=do.call( rbind , lapply( seq_len(10) , function(delta) rbind( ...
0855f3ba70536866bac364e3ddf9afe5f98f7e1b
9864c9557984a3b58fcb686176620771e2545f00
/scrape_alexa.R
8665e89bbe056b68ecdad33c898599bdc555c145
[]
no_license
Toniiiio/ToLearn
31ff9b9dca990d0d30b0962e5e14c5194f9238a5
51c4348fef0ac8220bac4e17ca1d3be5ad92e4d0
refs/heads/main
2023-02-27T00:05:41.370765
2021-02-05T21:31:09
2021-02-05T21:31:09
325,248,399
0
0
null
null
null
null
UTF-8
R
false
false
992
r
scrape_alexa.R
url <- "https://www.google.de/async/reviewSort?vet=12ahUKEwjhoKa-ytPuAhW1mFwKHa34DTAQxyx6BAgBEC0..i&ved=2ahUKEwjhoKa-ytPuAhW1mFwKHa34DTAQjit6BQgBEI0B&yv=3&async=feature_id:0x47a84e2206708be7%3A0xd1ea1b76ebd1b17,review_source:All%20reviews,sort_by:qualityScore,start_index:20,is_owner:false,filter_text:,associated_topic...
08d682da56974eb4510467306af6ba628f7241be
6b231e2bfd52f7d4e7736f1794a773eea985165f
/ira-tweets-2018/Animation.R
65a8a697706d3fb3daf7d365c20bb28b531a3941
[ "Apache-2.0" ]
permissive
profibadan/social-media-analyses
75fa9d9a46955a91605b08862dcd3d753aab8420
b979a8a924862aef2bb9b310498475c16d8d7314
refs/heads/master
2021-09-20T20:02:29.832859
2018-08-15T05:04:36
2018-08-15T05:04:36
null
0
0
null
null
null
null
UTF-8
R
false
false
4,292
r
Animation.R
# Script to produce an animated visualization of tweets vs followers and change over time library(tidyverse) library(lubridate) library(scales) library(ggthemes) library(gganimate) # Clone 538 GH repo to this location and read in the files iraTweets <- map_dfr(list.files('~/git-repos/fivethirtyeight/russian-troll-twe...
925720e59d8efef54d2476b9210f6e14cc99e65e
60bcd2f1649970ca07f7f076a25959f9ff3cd1e7
/R basics _2.r
15a33df3b27e3a3f54a8a7661a06bae151b9ebf0
[]
no_license
tarunlahrod/R-basics
55a1a5760fdf18d80a2633d75ea7329308daba72
02dacda8f8831ff8df4004bcac49fc3a0abb6f44
refs/heads/master
2020-05-04T21:43:18.550380
2019-04-05T13:25:00
2019-04-05T13:25:00
179,486,079
0
0
null
null
null
null
UTF-8
R
false
false
3,685
r
R basics _2.r
# R_day2 # R lecture 2 m <- matrix(c(3:14), nrow = 4) # assigns data values column-wise print(m) m <- matrix(c(3:14), nrow = 4, byrow = TRUE) # assigns data values row-wise print(m) r = c("row1", "row2", "row3", "row4") # row vector c = c("col1", "col2", "col3") # column vector m <- matrix(c(3:14), nrow = 4, byrow =...
3efdb56f2bea82f4d79f0ca2dd643d432ff8bd40
034f0428c5fbc4c346c1158d320cc87daaee6030
/plot1.R
73c1891d4ac46870e6b7c1b4a06aff8ee2295bf3
[]
no_license
enrique1790/Exploratory-Data-Analysis-Course-Project-2
ba3f90a7b162688a9494295b5c6cffd31e4de2ff
559ae9aea4406905c2ca11bd50325d308a9538e0
refs/heads/master
2020-03-13T18:28:44.959352
2018-04-28T18:39:24
2018-04-28T18:39:24
131,236,252
0
0
null
null
null
null
UTF-8
R
false
false
1,384
r
plot1.R
############################ #Unzipping and Loading Files ############################ library("data.table") path <- getwd() download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" , destfile = paste(path, "dataFiles.zip", sep = "/")) unzip(zipfile = "dataFiles.zip") if ...
4cfd3221689ac6c58fcf5114be9655c1fd459b06
a7f4e760b3d3464b4886fbe1a04d734ea64755da
/example/R/fcn_documentation.R
eff1829ddd88399fd605de95e7b04c2d8eacdf1e
[]
no_license
ChrisZasa/MTXQC_documentation
88d96b52ceb1e9ecc595b32d3b9b30060b1ae803
699d59aa6c510910519e54cd10034c4b9ea4c476
refs/heads/master
2020-04-21T12:27:09.870629
2019-07-21T20:47:26
2019-07-21T20:47:26
154,499,085
0
4
null
2018-10-24T13:54:23
2018-10-24T12:41:13
TeX
UTF-8
R
false
false
691
r
fcn_documentation.R
library(kableExtra) library(dplyr) #' Import csv-files for appendix #' #' #' appendix_print <- function(path_def, top_n = NULL, ...) { temp1 = read.csv(path_def, header = TRUE) if (ncol(temp1) == 1) { temp1 = read.csv(path_def, header = TRUE, sep = ";") } if (!is.null(top_n)) { temp_retu...
8fd84e8b128ec57a8952c16a72bed43a047aa77b
9dcc1b98baf0d4df40ef9470330993660d725bca
/man/printed_taxonomy.Rd
393763692217c4ae53b21311213f44bbe1cf0638
[ "MIT" ]
permissive
ropensci/taxa
b1aa00a0d8256916cdccf5b6a8f39e96e6d5ea9c
ed9b38ca95b6dd78ef6e855a1bb8f4a25c14b8fd
refs/heads/master
2022-04-30T23:28:44.735975
2022-04-12T05:10:10
2022-04-12T05:10:10
53,763,679
40
9
NOASSERTION
2021-07-08T18:11:32
2016-03-13T02:27:40
HTML
UTF-8
R
false
true
368
rd
printed_taxonomy.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/taxonomy.R \name{printed_taxonomy} \alias{printed_taxonomy} \title{Prepare taxonomy for printing} \usage{ printed_taxonomy(x, color = FALSE) } \arguments{ \item{color}{Use color?} } \value{ character } \description{ Prepare taxonomy for print...
fd67e774bc1a3684079e90143a377a176eb5777e
b7dbc8fa280edb6215a6260e1401e0f83b9954b0
/OpenDataGroup/Macro/man/item_dat.Rd
2c4e095730caccc4207efd979d9dbd9d5bd1ae50
[]
no_license
cwcomiskey/Misc
071c290dad38e2c2e6a5523d366ea9602c4c4e44
1fad457c3a93a5429a96dede88ee8b70ea916132
refs/heads/master
2021-05-14T18:10:35.612035
2020-02-17T15:09:51
2020-02-17T15:09:51
116,065,072
0
1
null
null
null
null
UTF-8
R
false
true
487
rd
item_dat.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{item_dat} \alias{item_dat} \title{Item Data} \format{A data frame with 399 rows and three columns: \describe{ \item{item_code}{BLS code for the item} \item{item_name} \item{display_level}{Level in categorical hiera...
fc123679bbd95aa475a7d858c43d3bed5b821db3
39004319c6604b419fb4402bd022213529ca93be
/run_analysis.R
51628a36e3b972fa6b4045b54690731ff70e3295
[]
no_license
thornvol/GettingCleaningData
6b13a22cf35553e0a52e94864295cf23f0930d51
9207ec29be55c012281cc0f7302e82e448685d8a
refs/heads/master
2020-05-18T03:44:13.626799
2015-02-23T03:18:45
2015-02-23T03:18:45
31,186,122
0
0
null
null
null
null
UTF-8
R
false
false
4,367
r
run_analysis.R
require(data.table) require(reshape2) ####################################################################################################################### # Step 1: Merge training and test sets to create one data set # Load Test Data # Before running statments below: set working directory to download samsung data d...
c6b8fdfc79bab2a0f121d2950bd818dfa14bc609
be84451505b6c2a19d7975577acb4e15e91c647a
/activity.R
afe9c07e188f3af33bdcd30852a3bb86237141e5
[]
no_license
Iryna-Garbuz/RepData_PeerAssessment1
3bcdf408ef1ae6c043e9daec69b6169e9b9bcbfa
b5bac78795f230b74045a8bcc464c04c27165909
refs/heads/master
2020-12-01T01:05:50.056819
2014-07-16T04:51:06
2014-07-16T04:51:06
null
0
0
null
null
null
null
UTF-8
R
false
false
3,878
r
activity.R
library (ggplot2) ## Loading and preprocessing the data getwd() sourcedata <- read.csv(file="activity.csv", sep=",", header=TRUE) sourcedata$steps <- as.numeric(sourcedata$steps) sourcedata$date <- as.Date(sourcedata$date) ## What is mean total number of steps taken per day? ## 1. Make a histogram of the total numbe...
b12cff79ef4d9d1c248d8be6cdc0e4968ff7b87a
827a5a4aafec6facb3b785f55ceece0400cccf73
/R/gru.R
0fe11934beeab374ed6a54512934e1962cd2e242
[]
no_license
systats/tidykeras
fbbb17f0ac48fb51ab183883f6d165378d3b20fd
5526c9869891cfdc58c1d2db2b67ff022e648dcc
refs/heads/master
2020-03-28T21:31:41.270296
2019-03-04T13:23:16
2019-03-04T13:23:16
149,163,341
9
0
null
null
null
null
UTF-8
R
false
false
1,982
r
gru.R
#' k_gru #' #' get Keras GRU model #' #' @param in_dim Number of total vocabluary/words used #' @param in_length Length of the input sequences #' @param embed_dim Number of word vectors #' @param sp_drop Spatial Dropout after Embedding #' @param gru_dim Number of GRU neurons #' @param out_dim Number of neurons of the o...
8e3df637397afba05ca64f49a9a4b8646fdb8ae8
52a1144fde8cbee79b910820f44d69dbe8e9e8f3
/Introducción a R/5 Mineria de texto/5_2 Wordcloud.R
e84e7d2944454b14d7e764501b713375955c5c11
[ "MIT" ]
permissive
jcms2665/FLACSO-R-2021
d19b9466a9834a654f49cdfb1deb81f855b8d132
34d298f847ccfdc34add1a92dc69c1951731635d
refs/heads/main
2023-04-09T11:16:00.367564
2021-09-03T04:16:26
2021-09-03T04:16:26
396,588,644
1
0
null
null
null
null
ISO-8859-1
R
false
false
2,675
r
5_2 Wordcloud.R
#-------------------------------------------------------------------------------- # Tema: Minería de texto # Autor: Julio Cesar <jcms2665@gmail.com> # Fecha: 10-08-2021 # Datos: Texto # Github: https://github.com/jcms2665/Tools-for-Demography/tree/main/R # Notas: # Contenido ...
722544c7fc4cc7653be39d3afcfb82d4bd130fda
73924eb1f5f2ff686fa82bddb614cd112bc80325
/Sample_dates.R
8b1f722df79b503bac40bdd5b09792ef428153cc
[]
no_license
davhernandez/Thesis-Project
3e240b17d2d8d75a298f4f6a32064d1053663dbf
bb528979e34b85fa14d11e19354a480f1fa5fa61
refs/heads/master
2020-03-23T11:06:51.818446
2018-12-19T23:47:58
2018-12-19T23:47:58
141,483,791
0
0
null
null
null
null
UTF-8
R
false
false
3,827
r
Sample_dates.R
# setup --------------------------- rm(list = ls()) library(dplyr) library(ggplot2) library(lubridate) # CCCFRP dates -------------------------------------- #importing CCFRP data sample_date <- read.csv("~/Desktop/Thesis/Raw Data/CCFRP/Hernandez_BlueRF.csv") #selecting date for CCFRP sample_date$Month <- match(sampl...
32211a662bfd37ad67fbed24c19f1b5b19a50743
af553e8eab166e8647eab9aba61a39c4ee5a66cf
/man/boa.pardesc.Rd
0fa5b926305b3aed31ff5eba30640a9c9afdc6fc
[]
no_license
cran/boa
89cd73809b363eb4e28e1ce393f711b34fe4d134
58cfd77ca08a13652ace0da4a173c3928c168528
refs/heads/master
2021-01-17T13:21:21.985274
2016-06-23T01:29:05
2016-06-23T01:29:05
17,671,633
0
0
null
null
null
null
UTF-8
R
false
false
645
rd
boa.pardesc.Rd
\name{boa.pardesc} \alias{boa.pardesc} \title{Global Parameters Descriptions} \description{ Returns descriptive information on the global parameters. } \usage{ boa.pardesc() } \value{ A character matrix whose rows and columns ("group", "method", "desc", "par", "note") contain the global parameters and...
4566a97fdf32dc45eb4ba48a56a2fe07a542a3e1
023f137d5b1465be216f5bc1d253cdb991446601
/analyses (missing - llm)/missing.R
404f1324a1751abd847053e506747df0949d4651
[]
no_license
j-5chneider/casebased
93eca49c529c7582b9f64e0ea52a630b51582669
ac36eb6582812a9d0ebe65c9c03bbd612b924363
refs/heads/master
2020-12-27T06:41:06.789520
2020-02-10T22:05:53
2020-02-10T22:05:53
237,797,129
0
0
null
null
null
null
UTF-8
R
false
false
3,442
r
missing.R
library(tidyverse) obs_miss <- diss_prepost_w_kovar_analy %>% select(theorie.r.43.1, theorie.r.43.2, theorie.r.43.7, theorie.r.43.3, theorie.r.43.4, theorie.r.43.5, alter:anwesend_z, -seminartyp) naniar::vis_miss(obs_miss) gg_miss_upset(obs_miss, nsets = 10) ## checking MAR assumption library(VIM) margi...
b204af1b429148b7b66a938189a1968ed629a2bc
49b8ff57b4184c137dde8ed358b3372f3020d9b0
/RStudioProjects/mbDiscoveryR/mbMMLCPT/findCMB.R
227eaab87ea3c375e126e94077f3313d15586eeb
[]
no_license
kelvinyangli/PhDProjects
c70bad5df7e4fd2b1803ceb80547dc9750162af8
db617e0dbb87e7d5ab7c5bfba2aec54ffa43208f
refs/heads/master
2022-06-30T23:36:29.251628
2019-09-08T07:14:42
2019-09-08T07:14:42
59,722,411
0
0
null
null
null
null
UTF-8
R
false
false
494
r
findCMB.R
# this function finds the pc(T) and pc(x), for all x \in pc(T) findCMB = function(data, node, dataInfo, base = 2, debug = FALSE) { # cmb = c() cmb = mmlPC(data, node, dataInfo, debug = debug) if (length(cmb) > 0) { for (j in 1:length(cmb)) { cmb = c(cmb, mmlPC(data, cmb[j], dataInf...
148d2996add17baa440ed3c1d06b31a3d1d12c1d
0986b0e01c2b07b18ed039705c897908e266bdd5
/units/2_geographic_range/2b_CA_coastal/CA coastal code and csv/CAfishes.r
e10fcdb4ab6ef02c458f3f21fb9cbce95b02bad0
[]
no_license
mtaylor-semo/438
8b74e6c092c7c0338dd28b5cefe35f6a55147433
aab07b32495297a59108d9c13cd29ff9ec3824d3
refs/heads/main
2023-07-06T14:55:25.774861
2023-06-21T21:36:04
2023-06-21T21:36:04
92,411,601
0
0
null
null
null
null
UTF-8
R
false
false
1,605
r
CAfishes.r
setwd('biogeo') ### Part 1: Histograms cafish <- read.csv('california_marine_fishes.csv', header=TRUE, row.names=1) #cafish <- read.csv('http://mtaylor4.semo.edu/~goby/biogeo/california_marine_fishes.csv', header=TRUE, row.names=1) rangeSize <- rowSums(cafish) numSpecies <- colSums(cafish) highSp <- cei...
a46698a205dc34b004dcf97127606d458dc7060d
25aa88fe128497f742ab3e3d85a0fa98a97938a3
/man/phyloFcluster.Rd
4194b2e119a4e0d5f1498c078ab3141ad69e0eb7
[]
no_license
mortonjt/phylofactor
396f489a8a6eeb8bf4fb7d98df8b501f4fa2eb89
148925bede1648eeffb2ce52b186d8b54f71f7ff
refs/heads/master
2021-01-25T06:57:04.488647
2017-02-03T01:29:07
2017-02-03T01:29:07
80,677,860
0
0
null
2017-02-02T00:08:37
2017-02-02T00:08:37
null
UTF-8
R
false
true
1,052
rd
phyloFcluster.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/phyloFcluster.R \name{phyloFcluster} \alias{phyloFcluster} \title{Produces cluster object with ncores and all necessary functions to perform phylofactorization} \usage{ phyloFcluster(ncores = 2, ...) } \arguments{ \item{ncores}{number of core...
70661a08ba86c125ef6f22d263ca57ba0f388952
ca26b58313dc16a137f31f45e39aefe0a1a8f1ba
/inference-final/inference_7.R
7da3d0d8442849c8b80c5b7b39f06a8bc114f368
[]
no_license
ChuckChekuri/datasciencecoursera
06c4a95ef37c4fde39ab55dc98de615be98f56cf
8e81a42c3a1a43372390aa44fdb35bafa21c08fd
refs/heads/master
2020-05-23T10:06:24.413977
2017-04-08T14:18:33
2017-04-08T14:19:12
80,387,047
0
0
null
null
null
null
UTF-8
R
false
false
5,468
r
inference_7.R
n <- 10000; means <- cumsum(rexp(n)) / (1 : n); library(ggplot2) ge <- ggplot(data.frame(x = 1 : n, y = means), aes(x = x, y = y)) ge <- ge + geom_hline(yintercept = 0) + geom_line(size = 2) ge <- ge + labs(x = "Number of obs", y = "Cumulative mean") n <- 10000; means <- cumsum(rnorm(n)) / (1 : n); gr <- ggplot(d...
ceef273b0f2391d0aae8312af1e4cdb5a37adce8
17ca53a3827be35bbe7b0b1e88decbeed2f9eded
/R/utils.R
30989a4fbbc830e2d1323e655e71d02011639b44
[ "MIT" ]
permissive
mchevalier2/crestr
190afcd9d563f92afe51394b0dad752496ce3e5b
e1978059c243f61475055c1f2ff08d5d8b601079
refs/heads/master
2023-08-30T03:59:50.319316
2023-08-25T16:00:36
2023-08-25T16:00:36
269,097,345
9
0
null
null
null
null
UTF-8
R
false
false
14,944
r
utils.R
#' Convert abundance data into percentage data. #' #' Convert abundance data into percentage data. #' #' @param df The dataframe containing the data to convert. #' @param col2convert A vector of the columns to convert. Default is all the #' columns but the first, which contains an age, a depth or a sampleID. #' @ret...
afbabe2cad679bf5cabc2a184743409f59756b8a
61fb32fdc2e1355b5c81b216f51edbffdb3fcd1b
/R/bayDem_calcWaveletLogLik.R
828ebb91a8aae89b6e7d91074f8868e18a6d8c26
[]
no_license
SlothOfDoom/yada
b036ce71bf2350b933ece0acbb54701df82863c5
2d4276622ff2071ce8bf70a305cbae8646c61962
refs/heads/master
2021-09-13T03:42:30.658278
2018-04-24T15:26:17
2018-04-24T15:26:17
120,033,013
0
0
null
null
null
null
UTF-8
R
false
false
797
r
bayDem_calcWaveletLogLik.R
# Description # Calculate the log-likelihood for a given set of radiocarbon measurements # given the parametrized wavelet specified by the augData, the augmented # data. # # Example calls(s) # # # Input(s) # Name Type Description # M Matrix [Nmeas x Ngrid] The measureme...
0db61af27e5f7b98061e922b420868f4e6814386
a5b8244731689344004c67af107b1a531f7e9e2f
/src/08_writeup/03_best_and_worst_metrics.R
7c9eb51945d41b833b6d22fad1ef598eb7bbe6a3
[]
no_license
jvenzor23/DefensiveCoverageNet
4efcb0f36d6806c71a1750fa9b58ba63c55e3929
85eef09aeede123aa32cb8ad3a8075cd7b7f3e43
refs/heads/master
2023-02-13T22:14:23.396421
2021-01-07T22:52:32
2021-01-07T22:52:32
317,361,746
4
0
null
null
null
null
UTF-8
R
false
false
108,104
r
03_best_and_worst_metrics.R
# This code animates a given play in the player tracking data, while # also displaying the epa values for all receivers (targeted receiver # shown in red) # Clean workspace rm(list=ls()) # Setting Working Directory setwd("~/Desktop/NFL_BIG_DATA_BOWL_2021/inputs/") # Calling Necessary Libraries library(tidyverse) lib...
4877d42d308c09dd38ae19db9b7c5099a0a750e2
71688ca1121015a31165525a6c1d9db9daa2cd56
/CHQBATCH.RD
2830832c626722b0d7f0e24ec4cc654f00e09888
[]
no_license
pingleware/apac-accounting-code
d340edf13b1b4dd327218a25ad535e2ac3875474
bee104c735e49b4c20fa86c299a993859e6ba884
refs/heads/master
2022-08-02T01:48:59.722370
2020-05-20T12:28:26
2020-05-20T12:28:26
265,557,663
0
0
null
null
null
null
UTF-8
R
false
false
2,903
rd
CHQBATCH.RD
* * *** * * *** **** *** * * ***** *** * ***** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ***** * * **** * ***** *** * * *** * * * * * * * * * * * * * * * * ...
ac40a4e745d54d092a3cc6ff8035397adceac838
4e42c724f1602d319b8bd1f36196fd7c22ff8ec9
/corr.R
1a50c4b6f7771d25d12f21f286b54847b05242e2
[]
no_license
lastactionhero/R-Programming
4376320301425a28a40b58eedab2121c39017fa7
34481e0ff1c7489402aa61075a179932b1f00792
refs/heads/master
2021-01-21T11:46:40.080532
2015-07-26T21:05:57
2015-07-26T21:05:57
39,589,466
0
0
null
null
null
null
UTF-8
R
false
false
871
r
corr.R
corr = function(directory, threshold = 0) { files <- list.files(path= paste("../",directory, sep=""), pattern="*.csv") calculateComplete <- function(x) { data <- read.csv(x, stringsAsFactors = FALSE) data[complete.cases(data),] } idObservations <- complete(directory) sel...
7e6182cded85c9ff824b2988ae58923cea7ebd58
2584a626ee1564516b64c1424f384d1265e70b40
/code/weatherParser.R
7f3ec971337f5ce9da27b7ebbbf2352d12bb3670
[]
no_license
DineshGauda/ADM_Wildfile_Prediction
fa551bffcd4b4cea2c78003cfc02617258589a03
8bc507ec23290d6ecfecf2f2fa14af3cf82db27c
refs/heads/master
2020-07-25T04:25:53.851122
2019-09-13T00:33:27
2019-09-13T00:33:27
null
0
0
null
null
null
null
UTF-8
R
false
false
2,062
r
weatherParser.R
setwd("/home/pratham/Documents/admProject/") #files = list.files(pattern="*.csv") wildfireData=read.csv("/home/pratham/Documents/admProject/wildfire_data.csv") #myfiles = do.call(rbind, lapply(files, function(x) read.csv(x,header = F, stringsAsFactors = T))) weatherData<-read.csv(file = "2010.csv",header = ...
9bbf85793c48ba8c06dcda14051d5091d11a5f60
3877ee02e7deec476c64901c474a24ad56dcd431
/R/getMetaGenomeAnnotations.R
5efae15cfb1ecdd6f13d67c024814947a8780f5d
[]
no_license
ropensci/biomartr
282d15b64b1d984e3ff8d7d0e4c32b981349f8ca
e82db6541f4132d28de11add75c61624644f6aa1
refs/heads/master
2023-09-04T09:40:15.481115
2023-08-28T15:56:25
2023-08-28T15:56:25
22,648,899
171
34
null
2023-09-14T12:28:02
2014-08-05T15:34:55
R
UTF-8
R
false
false
4,620
r
getMetaGenomeAnnotations.R
#' @title Retrieve annotation *.gff files for metagenomes from NCBI Genbank #' @description Retrieve available annotation *.gff files for metagenomes #' from NCBI Genbank. NCBI Genbank allows users #' to download entire metagenomes and their annotations of several metagenome #' projects. This function downloads avail...
b8ebc5a640af28607f105f86aac9c57491fc122f
db20134b2dce8bf3db9c5db43148f096a39f8bc8
/plot2.R
1f0430de663ef6046586956e764e9c00792e10e1
[]
no_license
tedconway/ExData_Plotting1
7ef49557d1c9bdeaaf568e863e7add269a97cfc3
2f467c1ab1e0c5f7e467976b031958a075f88d2a
refs/heads/master
2021-01-17T22:14:39.456873
2014-06-08T21:18:25
2014-06-08T21:18:25
null
0
0
null
null
null
null
UTF-8
R
false
false
505
r
plot2.R
hpc <- read.csv("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=F) hpc2 <- subset(hpc, hpc$Date %in% c("1/2/2007", "2/2/2007")) hpc3 <- subset(hpc2, hpc2$Global_active_power != "?") x <- paste(as.Date(hpc3$Date,"%d/%m/%Y"), hpc3$Time) hpc3$DtTm <- strptime(x, "%Y-%m-%d %H:%M:%S") png("plot2.pn...
164d983f76a95aeee16a64d608fb8ed6b3ce9539
62c14804025c9b0a56b3dc43937cd365ec1481b3
/output/sorted/GM12891/GM12891.R
182c50b15c2656d6aeae60056695a61ecf9bef38
[ "MIT" ]
permissive
Bohdan-Khomtchouk/ENCODE_TF_geneXtendeR_analysis
98ad9dd688d78af0a412d7c3defde223c6d1ff50
4d055110f2015aa8d65bcd31eea3b0da8e19298f
refs/heads/master
2021-05-04T06:55:12.446062
2019-04-19T00:46:01
2019-04-19T00:46:01
70,523,421
1
1
null
null
null
null
UTF-8
R
false
false
776
r
GM12891.R
peaksInput("CTCF.GM12891.bed") png("CTCF.GM12891.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("NFKB1.GM12891.bed") png("NFKB1.GM12891.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("PAX5.GM12891.bed") png("PAX5.GM12891.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("POLR2A.GM12891.bed...
337c1873a2943ab906c4ea1c765cd9ac1f122e63
e872b2f134259ed11af64f37a03d5f66e7cd8a1e
/6.6 Overfitting.R
852c931b1ef4045d626ec68846cb90c6aeefcab7
[]
no_license
jefftwebb/IS-6489
07789d202969dd429550e2de67052ecde2d6c9c4
eca366b7ff2a569a7b6c383d2ee2a88c68640055
refs/heads/master
2020-03-17T23:47:52.893600
2019-03-19T16:55:15
2019-03-19T16:55:15
134,061,382
1
0
null
null
null
null
UTF-8
R
false
false
2,857
r
6.6 Overfitting.R
### Statistics and Predictive Analytics # Tutorial topic: Overfitting library(tidyverse) library(MASS) library(arm) library(caret) rmse <- function(actual, predicted) sqrt(mean((actual - predicted)^2)) bv <- data.frame(species = c("afarensis", "africanus", "habilis", "boisei", "r...
8527f080491364f7dfff3f6b2cf6b5d34b8ea5b8
2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0
/fuzzedpackages/bpgmm/man/getZmat.Rd
09f03f6030f3a2fcc23bc1bb76cf4c011851d5e1
[]
no_license
akhikolla/testpackages
62ccaeed866e2194652b65e7360987b3b20df7e7
01259c3543febc89955ea5b79f3a08d3afe57e95
refs/heads/master
2023-02-18T03:50:28.288006
2021-01-18T13:23:32
2021-01-18T13:23:32
329,981,898
7
1
null
null
null
null
UTF-8
R
false
true
469
rd
getZmat.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{getZmat} \alias{getZmat} \title{Tool for vector to matrix} \usage{ getZmat(ZOneDim, m, n) } \arguments{ \item{ZOneDim}{a vector.} \item{m}{the number of cluster.} \item{n}{sample size.} } \value{ adjacency matrix } \descriptio...
c97914bfbc75e314b4e27473f41a2de75f7f59ea
96ca1d8e761542e25c7d061b0b9ea021c7c1dbc9
/output_files/QR.R
1aab6bf726282688cef1ba54c205d170a51d5feb
[]
no_license
SilasX/QuineRelayFiles
3811179c45fd4d967ba5b41dc9dc4e4f8cda931d
363d3f0100a9fec9a0a2fad9ebd08ad8cecfe0d9
refs/heads/master
2020-05-31T21:56:50.156657
2013-07-16T09:38:44
2013-07-16T09:38:44
11,435,446
4
4
null
null
null
null
UTF-8
R
false
false
7,209
r
QR.R
cat("say \"eval$s=%q(eval(%w(B=92.chr;N=10.chr;n=0;e=->(s){s.gsub(/[#{B+B+N}\"\"]/){B+(N==$&??n:$&)}};E=->(s){'(\"\"'+e[s]+'\"\")'}\"\nsay \";d=->(s,t=?\"\"){s.gsub(t){t+t}};D=->(s,t=?@){s.gsub(B){t}};Q=->(s,t=?$){s.gsub(t){B+$&}};puts(eval(%q(\"\"objectXQRX\"\nsay \"extendsXApp{Hln#{E[%((displayX\"\"#{e[%(HfX% sX\"\"#...
24eaa811ea0f08f9339ae8caaddbb9118cc05bbb
2f203859f753102e9d422e8edefa2f943a21c456
/PraceDomowe/PD10/gr1/WichrowskaAleksandra/przezycia.R
58b6cd6acd3ee055ba64ed0b74b17f5645faea32
[]
no_license
Levinaanna/TechnikiWizualizacjiDanych2018
e2a33db7e4cdc5c0eec2bea632fcee40bd0687dd
f7640cbed60b505baeab760b68920e3ca08de6dd
refs/heads/master
2021-10-16T08:15:04.839938
2019-02-09T11:33:35
2019-02-09T11:33:35
null
0
0
null
null
null
null
UTF-8
R
false
false
951
r
przezycia.R
library(data.table) library(r2d3) przezycia <- archivist::aread("pbiecek/Przewodnik/arepo/609491e5ec491f240cbeafe377743e21") przezycia <- data.table(przezycia) przezycia <- przezycia[Year==2009] przezycia2009$Age <- as.numeric(as.character(przezycia2009$Age)) przezycia2009 <- na.omit(przezycia2009) przezyci...
f529aaea24270320f24b1dc80b9ebffe42d9eeda
f6150b8fe6f9dc44be22cd470969afacb44efe51
/exploratory/testbetaMMremote.r
0fe06400ee10f568cf2f6e288193b57990b5943a
[]
no_license
qdread/nasabio
83e83a4d0e64fc427efa7452033eb434add9b6ee
7c94ce512ae6349d84cb3573c15be2f815c5758d
refs/heads/master
2021-01-20T02:02:53.514053
2019-12-28T15:22:53
2019-12-28T15:22:53
82,062,690
7
1
null
null
null
null
UTF-8
R
false
false
7,637
r
testbetaMMremote.r
# Script to run on cluster BBS beta-diversity model fits with additive partition beta, to compare to non-additive. NC <- 3 NI <- 5000 NW <- 3000 delta <- 0.8 prednames <- c('elevation_5k_tri_50_mean', 'bio1_5k_50_mean', 'geological_age_5k_50_diversity', 'soil_type_5k_50_diversity', 'bio12_5k_50_mean', 'dhi_gpp_5k_tr...
37fcc854c8d92f013abe274dc147fb4a3bb3a13e
ebe9df460d5c69f214bdbd5f4e409d52b27f8aa0
/SDM_Range_code.R
abfda0a651daaaaae1a7e61cec7b02c968d38478
[]
no_license
pabmedrano/Ecological_Niche_Modeling
0766ffa444b7e61bee6d68fa9e7c34292cf34adc
e8edcb62bdf81a156fe514b01b4abb0621537ad5
refs/heads/master
2021-01-03T22:08:56.175339
2018-07-05T00:25:40
2018-07-05T00:25:40
null
0
0
null
null
null
null
UTF-8
R
false
false
991
r
SDM_Range_code.R
######Range Code####### library(raster) library(fields) setwd('W:/2015_Fall/Closed/Week13_Nov24/example_model') #set your working directory respXY=read.csv('respXY.csv',row.names=1) #this needs to be the respXY csv for the speices you are working with projCurrent=raster('proj_current_model.output.grd')#change thi...
8173b5fda84ef0b6b88b4a28a1d1b39925acab53
62efff0b61cd4f7738e223d3b74cfbf69d52a18e
/R/old/onset_to_death_data_table.r
17b6b0b6ac5aaf0f64cd35b78dd2c2543960b1b0
[]
no_license
jhellewell14/uk_inf_curve
9d3725ea2fb337ebe4c14dd9d1c894e50d2f2dc9
be062cf84b02518e932a7a42b8fff1ba014c0dce
refs/heads/master
2023-01-05T02:30:02.728311
2020-10-30T11:27:57
2020-10-30T11:27:57
288,191,589
1
1
null
2020-10-29T10:13:06
2020-08-17T13:45:16
R
UTF-8
R
false
false
14,114
r
onset_to_death_data_table.r
library(data.table) library(magrittr) # Set number of threads for data.table setDTthreads(parallel::detectCores()) # Read in data data <- data.table::fread("~/Downloads/CCPUKSARI_DATA_2020-08-04_0947.csv", na.strings = "") # Select columns + fix read in issue where entries are "" instead of NA df <- data[,.(cestdat, ...
08323a70ed210a21576e0f11316626f2d6cbd46a
f85aead45df8a331aa40da52b4846a107125a258
/tests/testthat/test-geom-ribbon.R
c2b2d896886af992246eff5307c07bd04bbcb1c1
[]
no_license
zeehio/ggpipe
30269fbd676e6b7a3701cfef5ad061b81206230c
3598b70b0da3078e93f238c3d4bec73ecbc2c6d0
refs/heads/master
2021-05-07T09:32:28.364564
2017-11-08T12:09:49
2017-11-08T12:09:49
109,627,615
63
2
null
null
null
null
UTF-8
R
false
false
338
r
test-geom-ribbon.R
context("geom_ribbon") test_that("geom_ribbon same results", { df <- data.frame(x = 1:5, y = c(1, 1, NA, 1, 1)) p1 <- ggplot2::ggplot(df, ggplot2::aes(x)) + ggplot2::geom_ribbon(ggplot2::aes(ymin = y - 1, ymax = y + 1)) p2 <- ggplot(df, aes(x)) %>% geom_ribbon(aes(ymin = y - 1, ymax = y + 1)) expect...
583a490a9126b1976567e8de815389f80a446f33
44598c891266cd295188326f2bb8d7755481e66b
/DbtTools/classifiers/R/KNNclassifierDistance.R
398ce65abc23ccd92a512ac052b7f343809e6a7a
[]
no_license
markus-flicke/KD_Projekt_1
09a66f5e2ef06447d4b0408f54487b146d21f1e9
1958c81a92711fb9cd4ccb0ea16ffc6b02a50fe4
refs/heads/master
2020-03-13T23:12:31.501130
2018-05-21T22:25:37
2018-05-21T22:25:37
131,330,787
0
0
null
null
null
null
UTF-8
R
false
false
7,074
r
KNNclassifierDistance.R
KNNclassifierDistance = function(K=1,TrainData,TrainCls,TestData=NULL,ShowObs=F, method = "euclidean",p = 2){ # [KNNTestCls,NearestInd ] = KNNclassifier(k,TrainData,TrainCls,TestData,Verbose); # k-nearest neighbor clssifier # INPUT # K the number of neighbor to use # TrainData ...
ed4b3131e53382d1a20b83688cf7f26f23ab13fc
0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb
/cran/paws.security.identity/man/account_list_regions.Rd
d47777581123e06a51264bcc0220ce7eb4ba088b
[ "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
3,338
rd
account_list_regions.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/account_operations.R \name{account_list_regions} \alias{account_list_regions} \title{Lists all the Regions for a given account and their respective opt-in statuses} \usage{ account_list_regions( AccountId = NULL, MaxResults = NULL, Next...
d70fe152aa29c1b55e2ea92837efeac5b473047d
15defa8cb13e2e1babe80f08f2bfcdb7aef97671
/analyses/independent-samples/01-generate-independent-specimens.R
3455c6e05cc8320c0ac6d076b4a28c773e8ab749
[ "CC-BY-4.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
arpoe/OpenPBTA-analysis
24dd66efc4b226d9a9856f0aca81de3807af6290
3f9cdc713051a30165d31c30cf4d24240dbe58c1
refs/heads/master
2021-05-17T16:51:44.667557
2020-05-19T19:14:14
2020-05-19T19:14:14
250,880,017
3
0
NOASSERTION
2020-03-28T19:47:33
2020-03-28T19:47:32
null
UTF-8
R
false
false
3,871
r
01-generate-independent-specimens.R
# 01-generate-independent-specimens.R # # Josh Shapiro for CCDL 2019 # # Purpose: Generate tables of independent specimens where no two specimens are # chosen from the same individual. # # Option descriptions # -f, --histology_file : File path to where you would like the annotation_rds file to be # st...
24e1fe628546e7a893e8719d8ab8227ebd953b7b
8c0969a8aba7988ece1c4b9c20ba1d1fd2f3a0d2
/R/fix_data_EKF_1d_interp_joint.r
67f439fe195bf43626014b5f12b816e7e0906167
[]
no_license
cran/animalEKF
300e36ebc91fa8143100dfe3179b76f71f5c0fbb
acf5cdd8c0d92e1000d03987afb66acc0c8925fb
refs/heads/master
2022-12-27T07:30:47.740285
2020-10-05T10:50:06
2020-10-05T10:50:06
301,801,402
1
0
null
null
null
null
UTF-8
R
false
false
6,862
r
fix_data_EKF_1d_interp_joint.r
fix_data_EKF_1d_interp_joint <- function(env_obj) { # confidence plot env_obj$loc_pred_plot_conf <- min(max(env_obj$loc_pred_plot_conf, 0.05), 0.95) # normal env_obj$loc_pred_plot_conf_constant <- qnorm(p=0.5 + env_obj$loc_pred_plot_conf/2) env_obj$d <- env_obj$d[ order(env_obj$d$date_as_sec),] env_obj$first_...
5573ec5fef50018b08e596828920d03c9244bfe8
7d8f1fcd9adda95ab1a29cb65e255a5e7379ec8f
/R Code/Repeated CV/Summary_1.R
3b7e141416ba674662df220861c08037f52830a7
[]
no_license
kstatju/DMC-2019
54d7961da8677dbbec7e3015b08c3d0f0da84f6d
55d718c11230a27b321679ef552c5f83fdaeec15
refs/heads/main
2023-02-01T02:53:57.629804
2020-12-15T03:27:04
2020-12-15T03:27:04
321,537,099
0
0
null
null
null
null
UTF-8
R
false
false
7,384
r
Summary_1.R
0.9885 df1 = scale(df[,!(names(df) %in% c("fraud"))]) df = data.frame(df1, fraud = df[,"fraud"]) df_train = upSample(x=df[,!(names(df) %in% c("fraud"))] , y=as.factor(df$fraud) , yname = "fraud") nm = names(df_train) xnm = nm[!(nm%in%c('fraud'))] cv.lasso <- cv.gl...
5af28157f6e4e30de350a489ee0f8541d5120f05
f5cf80f12817abe08167fb0c5aa2bb115dfcc8b0
/man/textgRid.Rd
b9b220db09716988227ddb7b62bdf182dbdba8f3
[]
no_license
M-Lancien/textgRid
7d14294a845cca5f50137e0d02fdf1482d8040f9
3112881b042f0c0b661f380a52d922663fad21db
refs/heads/master
2021-09-18T08:07:54.060449
2018-07-11T21:35:41
2018-07-11T21:35:41
null
0
0
null
null
null
null
UTF-8
R
false
true
1,127
rd
textgRid.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/textgRid.R \docType{package} \name{textgRid} \alias{textgRid} \alias{textgRid-package} \title{textgRid: Praat TextGrid Objects in R} \description{ The software application Praat can be used to annotate waveform data (e.g., to mark intervals o...
6ebcb6c11a8cfd06ce67ef580d5e903bb37ce252
b0ca8e870c2cd419de4cb68d000cd44bbfaf6d84
/Plot1.R
f6afc9947ec5a10a690668be2b17e7dc7b6ad6b8
[]
no_license
aperelson/EDA-Course-Project-2
7f55a46d9fbcb8a3778bd7b98eac271adeea4051
42ce028dfccf3f4b473a044f31ca72e77dab607c
refs/heads/master
2020-06-09T13:30:32.441700
2016-12-10T15:10:45
2016-12-10T15:10:45
76,035,690
0
0
null
null
null
null
UTF-8
R
false
false
682
r
Plot1.R
plot1 <- function() { ## Read EPA data: dfPM25 <- readRDS("summarySCC_PM25.rds") ## Convert to data.table for easier manipulation: library(data.table) dtPM25 <- data.table(dfPM25) sumPM25 <- dtPM25[,list(sum=sum(Emissions)),by=year] ## Set option to display Y axis better: opt...
93f87cd202fa536208ba692c0e2bc88d8339f951
b4d3faf682c97c7f96c5cf013a7f8f927207e7d3
/analysis01.R
5d431f45ebadfd68b6e7cf5a9ebfbc1a7a3c6edf
[ "MIT" ]
permissive
uhkniazi/HPRU_AK_Rna_Seq
38982236cb5d6cca39ad4b305ecfdc45aeae856d
960be46b0c318ce7fb766a4d2b6c1c2deab0104e
refs/heads/master
2021-01-12T14:54:21.419733
2016-03-10T11:32:31
2016-03-10T11:32:31
47,402,604
0
0
null
null
null
null
UTF-8
R
false
false
18,123
r
analysis01.R
# Name: analysis01.R # Auth: u.niazi@imperial.ac.uk # Date: 12/01/2016 # Desc: DE analysis for count matrix data using RNA-Seq library(DESeq2) ## data loading and setting dfDat = read.csv('Data_external/Counts/toc_raw.txt', header=T, sep=' ') # rownames(dfDat) = dfDat$emtrez_id # dfDat = dfDat[,-1] cn = colnames(d...
df163d10aa9f4014a798cfc1cc3fb13a4cc3717e
246481254574ea04bf8d61d2001592bf433f2c04
/R/ancillary.R
a59e3022dd471a0f05d15c3261ec748f1854ae39
[]
no_license
gvdr/EHA
898bdd5b3fe3b70db528e3f7f64a71404bda2f76
fefa353b946553fd9459b68e1a600d27a2a81b7c
refs/heads/master
2021-01-09T20:39:37.875796
2016-07-25T16:01:45
2016-07-25T16:01:45
64,148,563
0
0
null
null
null
null
UTF-8
R
false
false
979
r
ancillary.R
#' This files provide basic functions to load multiple #' libraries, source all the files in directory, ... #' `sourceDir()` sources all the `.R` files in a directory sourceDir <- function(path, trace = TRUE, ...) { for (nm in list.files(path, pattern = "\\.[Rr]$")) { if(trace) cat(nm,":") source...
610f24830389588191c55dd49e0f5a36ad65eef4
3ffe61be1846789242fba8c3bb71663b2053d074
/practice_chap12(단계구분지도)/ex01.R
1d4e062e2b7a0f38bcc69d2fde2114492653e95c
[]
no_license
harrycjy1/R-bootcamp
244cefae2b1785ce3b31acf57753447febf2f871
2db273a53188dd1fd825b35f8a3bdb3ba308fb0e
refs/heads/master
2020-04-02T21:07:22.552300
2018-10-26T06:48:57
2018-10-26T06:48:57
154,788,516
0
0
null
null
null
null
UTF-8
R
false
false
2,326
r
ex01.R
# 지역별로 통계치를 나타낼 때, 색깔의 차이로 표현한 지도를 단계구분도라고 한다. #단계구분도를 보면 인구나 소득 같은 특성이 지역별로 얼마나 다른지 한눈에 알 수 가 있다. #미국 주별 강력 범죄율 데이터를 이용해서 단계 구분도를 만들어보자. # 패키지 준비하기 install.packages("ggiraphExtra") #단계구분도를 그리기 위해서 패키지를 설치 library(ggiraphExtra) #미국 주별 범죄 데이터 준비하기 # R에 내장된 데이터셋인 USArrests는 1973년 미국 주 (state)별 강력 범죄율 정보를 담고 있다. ...
4f175e5db073a025d6ddad50a25fcbfaff9239a6
5acd5558e4a5297af6d038ba6eeaa19cf3c7d3e4
/prep/prep_testis_common.R
09efb5627f5eba2c61fccd647473f2fbb22aca51
[ "BSD-3-Clause" ]
permissive
tkonopka/correcting-ml
2b9eaf5830b59326eb431e9c678a59d6d24fe5f3
634f649d744cbff9e02b83c26047da7754194135
refs/heads/main
2023-06-28T19:45:04.803493
2021-07-29T09:09:59
2021-07-29T09:09:59
389,623,137
0
0
null
null
null
null
UTF-8
R
false
false
234
r
prep_testis_common.R
# some helper functions for used in testis scripts # file paths and file path templates testis_path <- function(x) { file.path("..", "results", paste0("testis_", x)) } testis_data_template <- testis_path("data_{VARIANT}.tsv.gz")
e29be65ead152003ff471e84de75ed216637c2df
0af8332ed8cb059282d6b870a9eb843c1e6680bc
/Rpkg/R/mbl_aesthetics.R
a56d97db2c30b6aed78dc2dd1948ddfc1c4bb7de
[]
no_license
tomsing1/mbl2018
44383313845897323be29fc9263e309276d38418
6c69e0693abf75955ad22b3e502b33a3c3c0e5d5
refs/heads/master
2020-03-19T02:22:25.456235
2018-06-20T17:12:27
2018-06-20T17:12:27
135,623,059
0
0
null
null
null
null
UTF-8
R
false
false
4,852
r
mbl_aesthetics.R
# Helper functions to create categorical maps for shapes and colors #' Maps colors to categorical values #' #' Map can be a RColorBrewer name, or a vector of colors. Colors will be #' recycled if `length(map) <` #' If `vals`, map can be is categoricasl #' #' @export #' @param vals a vector of values to create a colorm...
b2df9c6b42a7483cf6c0d371a75184b44926e097
eb08ab7f3a97936b26ebacfe098e77e9a1754c8d
/R/utils.R
687323f05a82ab177c9f2503ca07e8755a9de69f
[]
no_license
marcalva/diem
2bc0cd6ba3059984ad1ef17ca42d3399a7acef63
a9a4d9d5f4d2a72a553e8b41afe10785c19504e8
refs/heads/master
2022-12-23T19:42:53.503040
2022-12-20T04:35:28
2022-12-20T04:35:28
184,798,028
9
6
null
null
null
null
UTF-8
R
false
false
504
r
utils.R
#' fraction of logs #' #' @param x numeric vector #' @export fraction_log <- function(x){ xinf <- is.infinite(x) if (any(xinf)){ frac <- rep(0, length(x)) frac[which(xinf)] <- 1 } else { x_c = x - max(x) x_c = exp(x_c) frac = x_c / sum(x_c); } return(frac); ...
4a2216968dcc155d47f27a1f79107075465c62a2
5e1ef84be4c398fc28b79d162e10a888c10a043b
/euk_heuristic_fulldataset.r
495f7c8d6a8fc2d5a8979e6515f24224bbf0f8e8
[ "CC0-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-us-govt-public-domain" ]
permissive
Joel-Barratt/Eukaryotyping
6bae5302b4f4dbf1065f8f338e35e17dd62d503a
ce9b695c6b525ec4862cdf49bc9a71585873f2da
refs/heads/master
2023-02-20T06:19:11.039445
2023-02-04T19:53:06
2023-02-04T19:53:06
194,131,154
2
1
null
2021-01-19T15:06:01
2019-06-27T16:43:04
R
UTF-8
R
false
false
8,939
r
euk_heuristic_fulldataset.r
#### Calculate matrix using Barratt's Unsupervised Heuristic Mixture Model alleles = list() frequencies = list() for (j in 1:nloci) { locicolumns = grepl(paste(locinames[j],"",sep=""),colnames(data)) raw_alleles = c(as.matrix(data[,locicolumns])) raw_alleles[raw_alleles == "NA"] = NA raw_alleles[raw_al...