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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
191c2c300beab54091f522b1777e28e9ed6dabd4 | 0d54162fb6c64534561f1793b34d3446eb569723 | /Step 1 - reads BBS data and runs detectability model.R | 68156515055800e28cd80f22d11dfecb7b6e20ec | [] | no_license | samfranks/bbs | 536817f3c14ba60350202e56f79bafb6b0400d60 | 0015dc2242a41b7daf9a9b74a94729d85c209df7 | refs/heads/master | 2021-01-24T06:40:32.947971 | 2014-11-04T10:55:18 | 2014-11-04T10:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,828 | r | Step 1 - reads BBS data and runs detectability model.R | ########################################################################
# DISTANCE SAMPLING OF BBS LINE TRANSECT DATA TO #
# OBTAIN DENSITY AND ABUNDANCE ESTIMATES #
########################################################################
# The core program below wa... |
6a1f581174bd779fc89210f6d9c7e4ea560a61d7 | 5eb745b3373899c8531e180b1404e545cf3ba150 | /man/calc.ctmax.Rd | b665da89f9cd6c0be2d56ecee1eeec86d3e602d6 | [] | no_license | qPharmetra/qpNCA | 8a8e5a4bebf22ef9e3b005f7a3809102aacdb250 | bde363e64dba0ce5ddbc01fc4211dab471a1f3ee | refs/heads/master | 2022-01-16T18:05:24.976496 | 2022-01-11T16:38:36 | 2022-01-11T16:38:36 | 171,545,252 | 4 | 2 | null | 2021-10-17T18:16:50 | 2019-02-19T20:33:30 | R | UTF-8 | R | false | true | 1,159 | rd | calc.ctmax.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc.ctmax.r
\name{calc.ctmax}
\alias{calc.ctmax}
\title{Calculate Cmax and Tmax}
\usage{
calc.ctmax(x, by = NULL, timevar = "time", depvar = "dv")
}
\arguments{
\item{x}{data.frame}
\item{by}{character: column names in x indicating grouping... |
28d65786e8f814049c011dce4c044c6790703646 | a0aacfded5e9cc6b90ee9e4a5dcd41d80f6015e9 | /tests/testthat/test_loading.R | 9baeec71b0a5f7aec3b76fb0d4039add13cf9d4a | [
"MIT",
"CC-BY-4.0"
] | permissive | lbusett/antanym | f86746bcb777e699c75cd6354188540d8b9a337d | 2a6fee4e09dc039922832a04b6ec14ba3032e659 | refs/heads/master | 2020-03-11T05:15:28.618319 | 2018-04-22T21:13:56 | 2018-04-22T21:13:56 | 129,797,394 | 0 | 0 | MIT | 2018-04-16T19:50:51 | 2018-04-16T19:50:51 | null | UTF-8 | R | false | false | 600 | r | test_loading.R | context("fetching and caching data")
test_that("caching works", {
skip_on_cran()
cdir <- tempdir()
cfile <- file.path(cdir,"gaz_data.csv")
if (file.exists(cfile)) file.remove(cfile)
g <- an_read(cache_dir=cdir)
expect_true(file.exists(cfile))
finfo <- file.info(cfile)
## re-read using c... |
c81281f0483975d4a07edf712d68227e0f0f7ad1 | f3ed3d52b590f89643c66eb95c649c9e69d54387 | /MSDS6306_DoingDS/class_work/Unit10/livesession_code_EDA.r | 97885d577a11b6e818c9ede5fef032a0733978ba | [] | no_license | khthomas/SMU_MSDS | 39803cbac55d04bdae2fdc2c520fde2ac8b403cb | 25b76caa80ff7e1c5a88951b993bf464247142cc | refs/heads/master | 2021-09-06T15:27:09.069180 | 2018-02-08T02:23:12 | 2018-02-08T02:23:12 | 104,568,801 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,794 | r | livesession_code_EDA.r | library(ggplot2)
library(reshape2)
files = "http://stat.columbia.edu/~rachel/datasets/nyt"
listofsets = data.frame(col1="test")
#This will grab all of the data and put it into a list of dataframes... it is really slow.
for (x in 1:31) {
listDF = list()
link = paste(files, x, ".csv", sep="")
holding = read... |
ebef5c886a7f082ae4a1b921930847b1e278b3bd | 0a0a04adad2a286a74017b572e51dc82dc3ef786 | /inst/examplepkg/R/hypotenuse.R | 44cfd202889469dd16e99252a0d6216e1b099362 | [
"MIT"
] | permissive | armcn/covtracer | 7e408e67a8ac1376e397a19cff7dc9dfa23f1ac2 | 9ccfacd171a2698bca7935f6bc88241d04b78d11 | refs/heads/main | 2023-08-18T20:40:23.765988 | 2021-09-30T15:56:29 | 2021-09-30T15:56:29 | 411,432,330 | 0 | 0 | NOASSERTION | 2021-09-28T20:40:59 | 2021-09-28T20:40:58 | null | UTF-8 | R | false | false | 160 | r | hypotenuse.R | #' Calculate the hypotenuse provided two edge lengths
#'
#' @param a,b edge lengths
#'
#' @export
#'
hypotenuse <- function(a, b) {
return(sqrt(a^2 + b^2))
}
|
68634ca1d8319c0c39b4458b224f96b723399780 | 9fde3b252f2064d92ed109656802ff87b32d3084 | /enhancer.R | d255e5d52ab4af485499516ac2ab0b8de1797828 | [] | no_license | rachelGoldfeder/cfDNA | e87b6b8698e1b6b6925d566bbd1a3d220b4eef9c | a686bdcf8d27c3df9cabbd2818991918649e7d61 | refs/heads/master | 2021-07-24T18:37:05.908782 | 2019-01-08T21:04:34 | 2019-01-08T21:04:34 | 104,079,609 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,974 | r | enhancer.R | #! /usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
samphmc=args[1]
sampmc=args[2]
sampname=args[3]
library(data.table)
methcalls=getwd()
setwd(paste0(methcalls))
a=as.data.frame(fread(paste0(samphmc)))
b=as.data.frame(fread(paste0(sampmc)))
feat.mat=matrix(ncol=3,nrow=7)
ct=1
sum=0
for(i in c("enhancer",... |
e076561ef694415949afe4bcd79772aff55662bf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TreeBUGS/examples/getParam.Rd.R | 6cd16a4eabad0ce6edfc1d7e943ec734ea258d85 | [] | 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 | 387 | r | getParam.Rd.R | library(TreeBUGS)
### Name: getParam
### Title: Get Parameter Posterior Statistics
### Aliases: getParam
### ** Examples
## Not run:
##D # mean estimates per person:
##D getParam(fittedModel, parameter = "theta")
##D
##D # save summary of individual estimates:
##D getParam(fittedModel, parameter = "theta",
##D ... |
c2c483c710e28b67e5c0daf206f7c2d09fba76dc | 9c781801315fb834cf4a39db4fb12db7a585002e | /Genetics/finalSubmission/SupportingInformation/plotLikelihoodComparisons.R | 3d785d578d47ea1396f6bdf81718194bd57f11d3 | [] | no_license | alexpopinga/CoalSIR | 64a57ef6a79a73d61aafb3c548de522015e205ef | 1f32e1ead268468c269f2f7ab730dbead6b04977 | refs/heads/master | 2021-04-26T23:27:15.868645 | 2018-03-06T00:43:56 | 2018-03-06T00:43:56 | 123,997,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,807 | r | plotLikelihoodComparisons.R | source('likelihoodEstimator.R')
regenerate <- FALSE
###### MAIN ######
if (regenerate) {
gamma <- 0.3
beta <- 0.00075
S0 <- 999
origin <- 12.7808530307
tree <- read.tree('VolzSIRgamma_truth.tree')
gammaVec <- seq(.1,.7,by=.05)
# Estimate STOCHASTIC coalescent likelihoods for different ... |
51f590c56530d7a77a9bbec8b502626cdddf6a35 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gtx/examples/make.moments2.Rd.R | 2a91c952123841c6836998a7859f07e445bba9da | [] | 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 | 247 | r | make.moments2.Rd.R | library(gtx)
### Name: make.moments2
### Title: Build matrix of second moments from subject-specific data.
### Aliases: make.moments2
### ** Examples
data(mthfrex)
xtx <- make.moments2(mthfr.params, c("SBP", "DBP", "SexC", "Age"), mthfrex)
|
4e1fe3de4bfa4475a3ae9706a3b3d8e0e227daff | e79b09555dfc727b7e88a5942a155e1847630732 | /plot_strat_ox_budget_eval.R | 9120b1acb1b4dd0da62e8713924bf3b02e4b9397 | [] | no_license | paultgriffiths/R_pyle | 70b15e96c5dd7b2eef04aca69e5d11a8673c229c | 0bc83cb1f3c2fa3c04c4cca36861c936163a9eb4 | refs/heads/master | 2021-09-10T21:22:11.776270 | 2018-04-02T12:09:10 | 2018-04-02T12:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,950 | r | plot_strat_ox_budget_eval.R | # R script to plot and calculate the contribution of
# different ozone loss reactions to the total loss
# Alex Archibald, July 2012
# loop vars
i <- NULL; j <- NULL
nav <- 6.02214179E23
conv.factor <- 60*60*24*30*48*(1e-12)
# extract/define variables
lon <- get.var.ncdf(nc1, "longitude")
lat <- get.var.... |
bf3270b27582914aea9ce0f04c8bb992c1fe4b30 | e039685fc9bdac3a7ffbeedb5aa22e4275f5c6a0 | /classification/Naive Bayes Classifier.R | 48e620e24da2d36010ef49ad069cd8e1fc70268f | [] | no_license | cajogos/r-machine-learning | fb227124d2a393a612b22c065421a96b16c0cbe8 | 261ebe2c5def39a6db4f31395a9d92fe26a81eda | refs/heads/master | 2020-08-21T05:27:38.660252 | 2019-12-25T19:02:35 | 2019-12-25T19:02:35 | 216,102,102 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 898 | r | Naive Bayes Classifier.R | # Classifying data with the Naïve Bayes classifier
rm(list = ls(all = TRUE)) # Clean-up environment
dev.off() # Clean-up any plots
# --- The prepared churn dataset --- #
library(C50)
data(churn)
churnTrain <- churnTrain[, ! names(churnTrain) %in% c("state", "area_code", "account_length")]
set.seed(2)
ind <-... |
a00921785b8b863533ff68d7d62e0f4d63058579 | 118bc327b85a3ac1b40649dd4559d5f75b913a43 | /man/removeCols.Rd | 71625c667951126a0eb17bf7ccf3c2963c968135 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | bobverity/bobFunctions | 2c613da2db8a3c2eaaffab0a8a5df170240891d4 | 3bce3fd92e4c30710413b02ea338ad1d987e5782 | refs/heads/master | 2021-01-17T12:36:57.566104 | 2018-10-05T10:57:10 | 2018-10-05T10:57:10 | 59,672,304 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 229 | rd | removeCols.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\name{removeCols}
\alias{removeCols}
\title{removeCols}
\usage{
removeCols(df, nameVec)
}
\description{
Remove named columns from data frame.
}
|
9a5b0ba82171140ac0c39ff6f1cf2fa2d155c3bc | 0dd3258d8c04a59d937529b49c8c64f054a23a60 | /ruvseq/src/volplot.R | f43b4039471488158089763692c943687ab49de7 | [] | no_license | knguyen4221/ruvseq-ag | 5f63b1c18073884c8d3770434377eada3857d5ec | 4c1b0e9fee27db6b357507169f89997fe7a2ae05 | refs/heads/master | 2021-09-04T06:53:01.085101 | 2018-01-11T20:36:17 | 2018-01-11T20:36:17 | 114,688,331 | 0 | 0 | null | 2018-01-11T20:36:18 | 2017-12-18T21:14:19 | R | UTF-8 | R | false | false | 294 | r | volplot.R | library(manhattanly)
d <- read.table("S:\\Development\\fastq\\analyses\\graphs\\AST\\counts_differentialExpressionAnalysisWithDESeq2_spikeInNorm.csv",
header=TRUE, sep = ",", na.rm)
colnames(d) <- c( "X", "baseMean", "EFFECTSIZE", "lfcSE", "stat", "pvalue", "P")
volcanoly(d)
|
0a002daa5738039ed36ec3887909e968a30bc90d | 9c077831aaa80a56cff9e78303e3b923ff9c66d3 | /R/fct_helpers.R | 9e8f45c2c7ca666b80870d0b71d5d968715742fe | [
"MIT"
] | permissive | MaryleneH/Exo_activity | ae5df7c3ef80d4a211a8491c4cad3169d8e1707b | 18a132862e3ed8fd57c9f3e3eb8154042eee8bb2 | refs/heads/main | 2023-03-08T10:53:56.720355 | 2021-02-24T14:36:15 | 2021-02-24T14:36:15 | 340,514,066 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,396 | r | fct_helpers.R | # Fonction pour échantillonner une table
my_sample <- function(dataset,number){
dataset %>%
sample_n(number)
}
# Fonction pour filtrer selon le type d'activité
filtrer_activites <- function(dataset,type_activity){
dataset %>%
filter(`Activity Type` == type_activity)
}
# Fonction pour créer un nuage de p... |
6ca6add3ec3d06291c8c7a4c09b8f9df2ef0a416 | a4f6b121c2f5a5fa124b464530b783852154ab61 | /12. 회귀식(R).R | cb4af3874ec311a1c99c05ccbbfff06a1af0a2ae | [] | no_license | mjkim9001/R_basic | cc1b00a52175643e25be5163b187e33d6c254963 | 82e3d141de678cc72e72718d14ad5dca7f8d1e58 | refs/heads/master | 2022-11-20T19:52:52.206895 | 2020-07-15T07:02:01 | 2020-07-15T07:02:01 | 276,788,126 | 0 | 0 | null | null | null | null | UHC | R | false | false | 1,714 | r | 12. 회귀식(R).R | setwd('c:/Rdata')
library(rvest)
library(stringr)
library(dplyr)
View(attitude)
cov(attitude)
cor(attitude)
with(attitude, cor.test(rating, complaints))
cor.test(attitude)
plot(attitude)
fasu = data.frame(fa, su)
fasu
lm(su~fa, data = fasu)
data = read.csv("cars.csv")
data
out = lm(dist~speed, data = data) #설명변수를... |
16a090fa493819e389065d8ebc0b144789d4633d | 2f6860bf6c18c42b67b563e22a46ea3f6af8207f | /cachematrix.R | 5a5d2b24c83a7e38b640bb99c5c0c2e61fabded3 | [] | no_license | PooriaM/ProgrammingAssignment2 | 70aa8bc80f4d1008e4781991bd42f7805f62e1a1 | 1f20efd140c7641518b5f790ace9d464dd74b9fe | refs/heads/master | 2020-07-14T15:47:21.679249 | 2016-08-03T23:01:35 | 2016-08-03T23:01:35 | 64,812,896 | 0 | 0 | null | 2016-08-03T03:43:33 | 2016-08-03T03:43:31 | null | UTF-8 | R | false | false | 2,124 | r | cachematrix.R | ## Maxtrix inversion is usually costly, especially when running inside a loop.
## The following functions can compute and cache the inverse of a matrix so
## that they can be looked up later instead of recomputing the inverse.
## Written by:PooriaM
## "makeCacheMatrix"function creates a special "matrix" object that... |
d4b5984bffbdf3fcfd5c19a93bfab9682e3700e2 | 95cfd39bbc815ddaf2b790dade4c933a2f5cdc7a | /man/fars_read.Rd | 85bb311cc70d9732fe626a318ee04345a331650d | [] | no_license | B0Ib0ivrb63B/farsRPackageProj- | 81888d906384624d5d451869f12feffff71a1116 | 6019ab34bae149f00e619f8e2585c8933ccf13d4 | refs/heads/master | 2020-03-14T08:19:58.317395 | 2018-04-29T22:47:13 | 2018-04-29T22:47:13 | 131,522,740 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 713 | rd | fars_read.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read}
\alias{fars_read}
\title{fars_read}
\usage{
fars_read(filename)
}
\arguments{
\item{filename}{filename of data file}
}
\value{
A tibble: <number of rows> x 50 cols
}
\description{
Function to read a semicolon... |
2a920cbefc0dc9d982fe05fb9a30f5b43b823e61 | b7c166227a8ca6773e600bee3f82ed6e4ca61143 | /man/BootPI.Rd | 4deb183a5d50883d1fbf8af2e53e34c55d261dc5 | [] | no_license | cran/BootPR | 972b9db21662ec2f1555f8179dd1181d348e1d03 | 1c4d85c84317defd33826c4a4fe1d1e49e736cb5 | refs/heads/master | 2022-07-16T01:28:29.178653 | 2022-06-29T15:10:16 | 2022-06-29T15:10:16 | 17,717,260 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,174 | rd | BootPI.Rd | \name{BootPI}
\alias{BootPI}
\title{ Bootstrap prediction intevals and point forecasts with no bias-correction}
\description{This function returns bootstrap forecasts and prediction intervals with no bias-correction
}
\usage{
BootPI(x, p, h, nboot, prob, type)
}
%- maybe also 'usage' for other objects documente... |
e9a7482904cc5c2bca991d6faf5a9e12451e8ae6 | a026f85dbdd045ea2dc5b74df474afd02c3eb9af | /man/last_n_years.Rd | 41c1b5c2c20108445a83e3f842843314376a61aa | [] | no_license | selesnow/timeperiodsR | 93df215538e9091fd9a9f0f0cb8e95db7735dc9d | 3612001767f0dce942cea54f17de22b1d97863af | refs/heads/master | 2023-04-27T15:52:19.511667 | 2023-04-20T10:15:49 | 2023-04-20T10:15:49 | 208,013,525 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,769 | rd | last_n_years.Rd | \name{last_n_years}
\alias{last_n_years}
\title{
Start and end of last n years
}
\description{
Defines first and last date in previous period
}
\usage{
last_n_years(x = Sys.Date(),
n = 1,
part = getOption("timeperiodsR.parts"),
include_current = F)
}
\arguments{
\it... |
67380e1228dfe3286fb77ed8341e6d8191e5d166 | ab76845b0cd8b17b74525042b0c83fbb93cc49d1 | /R/redshift_add_column.R | c49a831efebdc8518f9f7879d5a18c1e3dbd5394 | [
"MIT"
] | permissive | zapier/redshiftTools | 88a9ca49a55b6665b76ae3facc5d01b1dbbcd74d | a2258ab6aa0b3f3250190da436ac020da3d972bb | refs/heads/develop | 2021-07-24T19:38:02.674339 | 2021-04-21T17:03:46 | 2021-04-21T17:03:46 | 59,214,680 | 2 | 5 | MIT | 2021-07-14T10:18:40 | 2016-05-19T14:35:05 | R | UTF-8 | R | false | false | 857 | r | redshift_add_column.R | #' Add a column to a redshift table
#'
#' Add a typed column to a redshift database
#'
#' @param dbcon Database connection object of type RPostgreSQL
#' @param table_name the name of the target table (character)
#' @param column_name (character)
#' @param redshift_type (character) for the redshift type to assign for th... |
6aa3a1be75b6c329cff4190302dd7d3e0526bd41 | 4b23658a53d0f7502e2c9a6d67eff57a9f3791dd | /cachematrix.R | 3c021c5e2ebaf4423512e99f18aa9842e7cac5c0 | [] | no_license | LonePine/ProgrammingAssignment2 | 8d6ad0ee650aa3c22ee6bb7e12d849c8ab18fe24 | f2a371b11ab946e4a070f66d0dd856272359080a | refs/heads/master | 2020-05-02T09:52:56.772191 | 2015-07-22T23:47:37 | 2015-07-22T23:47:37 | 39,369,287 | 0 | 0 | null | 2015-07-20T07:23:14 | 2015-07-20T07:23:14 | null | UTF-8 | R | false | false | 1,651 | r | cachematrix.R | ## Since calculating inverse of a matrix is time consuming in a repeated operation the two
## functions below help with that. makeCacheMatrix creates a special "matrix" that can cache its inverse.
## function cacheSolve computes the inverse of the matrix returned by makeCacheMatrix.
## function makeCacheMatrix cache... |
4da3a053c29e295cfaaf4fb32d4314d2154aeaf2 | cc11ab7cf4531b687e1ec0b0cdaef97183fd949d | /tests/testthat/test_minimal.R | 54ed9d1806a116b107e57bbd922ed9a790f3e365 | [] | no_license | mablab/rpostgisLT | 7234b0d4f15bf10adea6a6fdb085055dc39e6cdb | af566be34182c8bd8bdac0a30b6ff39e5c4f9a04 | refs/heads/master | 2020-05-21T19:18:31.490234 | 2018-03-13T17:28:54 | 2018-03-13T17:28:54 | 61,544,009 | 9 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,451 | r | test_minimal.R | context("rpostgisLT: minimal")
# source_test_helpers(path = "tests/testthat", env = test_env())
test_that("minimal ltraj transfer is equal and identical", {
testthat::skip_on_cran()
ib_min <- dl(ld(ibexraw[1])[1:10,]) # note that step parameters are recomputed on purpose
expect_true(ltraj2pgtraj(conn_empt... |
75717bc62faa1efc54277eddaf9973cfa5b4fa71 | d859174ad3cb31ab87088437cd1f0411a9d7449b | /autonomics.import/man/replace_nas_with_zeros.Rd | 00ceca7cdc6125f9729b5525c3af7a4bf599fa48 | [] | no_license | bhagwataditya/autonomics0 | 97c73d0a809aea5b4c9ef2bf3f886614eceb7a3c | c7ca7b69161e5181409c6b1ebcbeede4afde9974 | refs/heads/master | 2023-02-24T21:33:02.717621 | 2021-01-29T16:30:54 | 2021-01-29T16:30:54 | 133,491,102 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 527 | rd | replace_nas_with_zeros.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutators.R
\name{replace_nas_with_zeros}
\alias{replace_nas_with_zeros}
\title{Replace NAs with zeros}
\usage{
replace_nas_with_zeros(object, verbose = TRUE)
}
\arguments{
\item{object}{SummarizedExperiment}
\item{verbose}{TRUE or FALSE}
}
\... |
6e27716861977e8337bed86b9fd15bc13eea37ab | df0579b5738f674c9673780a4bd50cab37e94615 | /ui.R | 320552216a3b9976e14c24ee06d9515b1fc683f6 | [] | no_license | poolupsoon/DataScienceCapstone | 0968c7a7256b4faee54dcc14f52cdb59d5b374e9 | c10f8e159312fa5972798d667702e7edee50f614 | refs/heads/master | 2021-01-25T01:21:17.360270 | 2017-06-19T07:28:52 | 2017-06-19T07:28:52 | 94,747,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,373 | r | ui.R | library(shiny)
library(tm)
library(wordnet)
set.seed(12345)
shinyUI(fluidPage(
splitLayout(cellWidths = c("20%", "60%", "20%"),
div(),
div(titlePanel("Data Science Capstone: Predictive Text Model")),
div()
),
splitLayout(cellWidths = c("20%", "60%", "20%... |
c177b4327e515dddf6e3d814669359b1520995b0 | 65cf48ec1a1c6cebdc2c9a1fedd0f40f0caf73a2 | /R/ppsale.R | d34ee1406ccb6cecacf6165a5499c4598dc41f8f | [] | no_license | Menglinucas/extd.comavm | e3c59f06202acbe87f5ea394af22deefa15d2431 | 409d6394e68c9d3232d36f1a8cd7a5d1a2e9e036 | refs/heads/master | 2021-09-08T09:06:30.390886 | 2018-03-09T01:19:47 | 2018-03-09T01:19:47 | 114,219,130 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,105 | r | ppsale.R | #' joining ha and price data
#'
#' This function can join price and ha info
#' @param tabln.vec basic data provided by \code{\link{loadData}}
#' @param proptype type code of properties.The defalut is 11 indiciting housing
#' @return data including ha info and ha price
ppsale<-function(tabln.vec=NULL,proptype='11',model... |
9e3e296439bab4d6c9983878e1b06de1bfaf81ce | 64ecf2a801522d5c105d921ffeb413af201a78f4 | /R/NorgastAnastomoselekkasje.R | f67226d49e6a9adc6ffb428235e455d3aa2d1a6d | [] | no_license | Rapporteket/norgast | c3a979915d4f6baca2d34130baf1684074037d89 | a30ea9b2fa32ff9f224d7771f5f08a8802ecb721 | refs/heads/rel | 2023-06-10T11:47:55.564563 | 2023-06-09T14:05:19 | 2023-06-09T14:05:19 | 49,719,854 | 0 | 0 | null | 2023-02-22T09:55:01 | 2016-01-15T13:18:24 | R | UTF-8 | R | false | false | 7,508 | r | NorgastAnastomoselekkasje.R | #' Lag tabell over anastomoselekkasjerate
#'
#' Denne funksjonen lager tre tabeller for bruk i samlerapport
#'
#' @inheritParams FigAndeler
#'
#' @return Tabell En list med tre tabeller over anastomoselekkasjerater
#'
#' @export
NorgastAnastomoselekkasje <- function(RegData=RegData, datoFra='2014-01-01', datoTil='205... |
1dc7edfdc605756506068f153ff8281033aaf683 | e869d56b65fdbaf8b2b5d273c8ca67dd4b3c25d2 | /capstone.R | 8a8128fb301a788f5c5aece3d849e7cdbae96796 | [] | no_license | jodeck80/591-Capstone | ff35354b0eec4582c769d7835316e1b026058f7e | 4c49627716f06ef0e7e8f5a6b0cfee8e6c05604e | refs/heads/master | 2021-01-01T19:30:23.125263 | 2015-05-10T13:14:22 | 2015-05-10T13:14:22 | 34,755,991 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,227 | r | capstone.R | library(streamR)
library(plyr)
library(ggplot2)
library(grid)
library(maps)
library(RStorm)
library(tm)
library(stringr)
library(ROAuth)
load("my_oauth.Rdata")
# Color blind friendly colors:
cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
#1 minute tweet duratio... |
ba14df1dcd84053ea2d7873f3a50ba03cfa4c27e | 2f5db3fb3d5841cca614df7d5c881dc7004b0054 | /tests/testthat/test-tree2mat.R | 182fd99a15eacdce0d0eb04fca2808a89db6a2d8 | [] | no_license | darcyj/specificity | d7e62e3cbe84ca20d3703aaf981ef2dc31f61db8 | f826719f153656ddce6c7347ac6bbcd08be12e3d | refs/heads/master | 2023-08-08T12:02:59.686467 | 2023-07-28T02:47:55 | 2023-07-28T02:47:55 | 205,035,039 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 934 | r | test-tree2mat.R | library(specificity)
library(testthat)
test_that("tree2mat matches ape::cophenetic.phylo", {
# use plant genera tree from specificity::endophyte
set.seed(12345)
a <- endophyte$supertree
atips <- sample(a$tip.label, 20)
cph_mat <- ape::cophenetic.phylo(ape::keep.tip(a, atips))
# re-order cph_mat to match atips
... |
b2689b7db0ee5accd63bea50db6745c28c4a9225 | 6e17a70abf17794d29f482336a805ae468096fb0 | /man/scale_color_dubois1.Rd | ac32cd1b04fd91c3fc0d91851f614f93bafef83a | [
"MIT"
] | permissive | brevinf1/themedubois | 544cd4e7a67c51d8a494304eb453fe89a76b5733 | a80e44571aed55d3d06ed53706e31e8742296be4 | refs/heads/master | 2023-03-09T20:22:15.501152 | 2021-02-22T18:06:34 | 2021-02-22T18:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 305 | rd | scale_color_dubois1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_color_dubois1.R
\name{scale_color_dubois1}
\alias{scale_color_dubois1}
\title{Long color palette (color)}
\usage{
scale_color_dubois1()
}
\value{
Color with long color palette
}
\description{
Long color palette (color)
}
|
04479578c0c1cae83ddede789cba7ba976f475bf | fb66254c9f6579e7b5a3bac623c16e63c9c3f987 | /updateWeight.ConvLayer.R | 5db628943f0d54e922436e6a185d0ca3e6deff29 | [] | no_license | LinHungShi/ConvolutionalNeuralNetwork | 049573d1f9b400d84da55d47c1d0053c0f109da4 | 02d4e6b2e5c480951c0474cff5c732d1a1cc4a39 | refs/heads/master | 2020-04-14T13:16:53.313601 | 2015-09-07T15:59:23 | 2015-09-07T15:59:23 | 40,487,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 324 | r | updateWeight.ConvLayer.R | updateWeight.ConvLayer <- function(layer, n_layer, alpha){
input <- layer$input
output <- layer$output
n_grad <- n_layer$grad
layer$grad <- updateGradient(layer, n_layer)
layer$w_grad <- updateWgradient(layer)
layer$weight <- updateWeight_(layer$weight, layer$w_grad, alpha)
return (laye... |
6a21051aa0f52b3cf0153fab0ed63c18b647bba8 | e61f27d49a8a975b37b7b93ea79d605e430c4c57 | /Module-2-Data-Warehousing/workspace/case 4/etl.r | a87e5fdba5cbea42fb81ddaa862f0cd966110db3 | [] | no_license | Cbanzaime23/up-nec-business-intelligence | 1c58fec21b5fbdf79f72c8fd9f7c0148aa7458b1 | 24c1d1d97b461e0e26a79cf6129f51b3cc545d2c | refs/heads/master | 2020-08-28T15:24:33.874816 | 2017-09-03T09:07:04 | 2017-09-03T09:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,173 | r | etl.r | # 3.1 Extraction of Data from Source and Insert to S
library(RSQLite)
#Connect to the Source System
db <- dbConnect(SQLite(), dbname="source.db")
#Extract Today's Shippers Data
shippers_extract = dbGetQuery( db,'SELECT * FROM shippers' )
#Close Source Connection
dbDisconnect(db)
#Connect to the DW Syste... |
1b0ee8b57ee0954be2c858bb770fb821e46596f0 | faec5b544d361a40e1955c776fd5483547d299b8 | /MovieLens-project.R | 3f0834fcd320fbd8daee6ecef716cf6e53b6e4ad | [] | no_license | kinube/edX-DataScience | 62ce88b8cbf510025a32d72fa433b85512b357fe | 24447dfc802269501cf7308dfd00d6bf24f65513 | refs/heads/master | 2020-04-05T16:45:50.507630 | 2020-01-06T01:50:06 | 2020-01-06T01:50:06 | 157,027,485 | 0 | 1 | null | null | null | null | WINDOWS-1252 | R | false | false | 13,180 | r | MovieLens-project.R | #### MovieLens project ####
# Author: Kiko Núñez
# Start Date: 09/08/2019
# End Date: 13/10/2019
## Load libraries needed:
library(stringr)
library(dplyr)
library(caret)
library(ggplot2)
library(grid)
library(scales)
################################
# Create edx set, validation set
###################... |
c8e4a7c03ac2284f3f865fb3075b94896dc87a6d | 31103bc586e6ea4959749543101d0d07679d53ec | /simulatePower.R | 72c75875c882d1119f3cd5637c8aa5b99294cb4a | [] | no_license | luboRprojects/TDTmethodology | 43e5b6d480ff78e1640f81475b7d92d86c60a30b | ad43770f1b064365b982935e7e8f872b1836ce21 | refs/heads/master | 2020-07-15T19:56:25.889499 | 2019-09-01T06:48:41 | 2019-09-01T06:48:41 | 205,638,413 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | simulatePower.R | # This file allows simulation of large number of
# theoretical results if the DGP (data-generating process) is
# know th the researcher. DGP is in the expressed in the:
# - type of data distribution: rnorm
# - parameters of such a distributions: mean, sd
# Create a variable to which we store results
pval <- c()
# Ru... |
ff4a2262206e7e40ba882311a255717b75633f9a | 121f6db541bfdaba545cd70742ef951b75c90e73 | /R/analysis/statistics.R | 93df4afcfc6f6c498b97cebcb16cb4e2089c1021 | [
"MIT"
] | permissive | bwhsleepamu/sleep.tools | 22444ae127f695b3ba4d5e35b67e07212e8c563d | b0d3e3801f60fd9c0daffe9d5c63e7eccfb3ef38 | refs/heads/master | 2021-09-25T02:04:53.439361 | 2018-10-16T18:52:45 | 2018-10-16T18:52:45 | 19,426,999 | 0 | 0 | MIT | 2018-10-16T18:52:46 | 2014-05-04T13:25:52 | HTML | UTF-8 | R | false | false | 10,601 | r | statistics.R | ## For periods:
### NEED:
#DONE #### Agreement stats by subject and or subject group FOR EACH METHOD
#### Number of periods per sleep episode for each period type by each method
#### Distribution of period lengths for each type by subject and or subject group for each method
#### OTHER COMPARISONS??
## For cycles:
#... |
f135f5c8274f155d46ea09996b5156dde1a529ea | 5dcb6a2aa0b0ded3f265140c7c213c369289aa7f | /R/gradient_factory.R | 42381502fe2e6696cc52eaf1dc89cefadaba669b | [
"MIT"
] | permissive | leeper/margins | f8086ca2abaf8e78d3d79244c6e7777ac1d1a2a1 | bd374239f5da0a92e8e27d093785850933fdfa9e | refs/heads/main | 2021-07-14T12:00:50.926131 | 2021-01-21T22:54:28 | 2021-01-21T22:54:28 | 25,176,098 | 269 | 56 | NOASSERTION | 2021-04-08T00:49:03 | 2014-10-13T20:21:42 | R | UTF-8 | R | false | false | 2,100 | r | gradient_factory.R | # a factory function that returns a function to give the gradient (as a vector)
## used as first argument to jacobian()
gradient_factory <- function(data, model, variables = NULL, type = "response", weights = NULL, eps = 1e-7, varslist = NULL, ...) {
UseMethod("gradient_factory", model)
}
gradient_factory.default ... |
9f661e226748424bc0cba22bf188af82d93ae12e | 33e51cf37c476e94808b9a96dbbeb72f76a208a7 | /downloadData.R | 2d8b8722258f166e0382622d0e3e51afb8d6f5a3 | [] | no_license | humberto-ortiz/PR2017replicaton | e81b9e3fabdb18d6cf10542e535680d694b6e099 | ab0e35e2fc91c7b375a5c15151281006db3e69b8 | refs/heads/master | 2021-01-23T02:41:10.050982 | 2017-03-24T02:17:37 | 2017-03-24T02:17:37 | 86,019,834 | 1 | 0 | null | 2017-03-24T02:43:11 | 2017-03-24T02:43:11 | null | UTF-8 | R | false | false | 3,026 | r | downloadData.R |
library(Biobase)
library(PharmacoGx)
GDSC <- downloadPSet("GDSC")
CCLE <- downloadPSet("CCLE")
common <- intersectPSet(
list( 'CCLE'=CCLE,
'GDSC'=GDSC ),
intersectOn=c("cell.lines", "drugs"),
strictIntersect=TRUE)
rawToDataFrame <- function( dataset ){
rawSensData <- common[[dataset]]@sensit... |
58a69558f014573b6e00df4a2c89e7f0b25b80b6 | 3542aa74a2aa1b8bb1f501f53dc05cf1ea7323ca | /plot3.R | 522e77945e829f47fed1b5f0be5d2e38ed546a17 | [] | no_license | rrnisha/ExData_Plotting1 | 723895e682c5739683565213fd3bd20d63cecf3c | df5b5f2f048db9e9ce820e11588069b505f1fcd3 | refs/heads/master | 2020-12-25T07:06:25.509570 | 2014-07-13T13:49:33 | 2014-07-13T13:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 527 | r | plot3.R | # Plot Sub_metering_1,2,3 for Feb 01, 02
source("prepData.R")
doPlot3 <- function() {
data <- prepData()
png(filename="plot3.png", width=480, height=480)
plot(data$DateTime, data$Sub_metering_1, type="l", xlab="", ylab="Energy sub metering")
lines(data$DateTime, data$Sub_metering_2, col="red")
lines(data$Da... |
2a23d9089de76fb259174355810fff52c76445ed | c459dd32d88158cb064c3af2bc2ea8c7ab77c667 | /clonality/calculate_ccf.20191031.v1.R | ef3e8e21e0d95338a20d82fce9ecf59fba213a50 | [] | no_license | ding-lab/ccRCC_snRNA_analysis | d06b8af60717779671debe3632cad744467a9668 | ac852b3209d2479a199aa96eed3096db0b5c66f4 | refs/heads/master | 2023-06-21T15:57:54.088257 | 2023-06-09T20:41:56 | 2023-06-09T20:41:56 | 203,657,413 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 7,126 | r | calculate_ccf.20191031.v1.R | # Yige Wu @WashU Oct 2019
## for calculating cancer cell fraction of CNAs and Mutations
# source ------------------------------------------------------------------
setwd(dir = "~/Box/")
source("./Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/ccRCC_snRNA_analysis/ccRCC_snRNA_shared.R")
# set run id ---------------------... |
a9cc8fbe50784db132049b88c711f84de7f75fd2 | f53d33f6a26d33d6f15632841bf805e5074cef99 | /R/check_empty_elements.R | 362d7c120f0635e957108028c5cd5213b97b4b4b | [] | no_license | levisc8/Fun_Phylo_Package | 6add7e6cd4e3cc0f1dfd21e669f0a55c143ee02a | 224521f794d35297c1f3a0f835a6cb20f5e9c6fb | refs/heads/master | 2021-06-10T04:56:43.768628 | 2020-06-01T12:07:58 | 2020-06-01T12:07:58 | 99,753,085 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 301 | r | check_empty_elements.R |
check_empty_elements <- function(...){
rmlist <- NULL
iniList <- list(...)
for(i in 1:length(iniList)){
if(is.null(iniList[[i]])){
rmlist <- c(rmlist, i)
}
}
if(!is.null(rmlist)){
outList <- iniList[-c(rmlist)]
} else {
outList <- iniList
}
return(outList)
}
|
ff64c2961cf7818d1aefbbd8c0ba1ea39879077d | fddcbf7ff2dad9d8d781da1dd9205a3dc22bf772 | /server.R | 1cb256bd3e621df760961264644b3bd425636a71 | [] | no_license | Khominets/lab_6 | 1733530972dcb4faf066ca1bf8e32e536de59ae0 | dc5129be28d4e668a66c9b273ef8d7f71b794aec | refs/heads/master | 2021-01-11T10:47:23.895505 | 2016-12-11T20:04:24 | 2016-12-11T20:04:24 | 76,195,721 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 549 | r | server.R | library(shiny)
shinyServer(
function(input, output) {
output$func<-renderText({
input$start
if (input$num1 >= 3) {
paste0('Функція: ', '(' ,input$num1, '/' , '4' , ')' , '*', input$num2, '^', '2','*','tan','(' ,'pi', '/', input$num1, ')' )
}
else if (input$num1 < 3 ) {
p... |
3ab1a59c25bbd903b59fa065bdfd3d59d973fa84 | cea51b60f43efac0959bb6e52749f608e1eddd13 | /nlsralt/R/nlxbs.R | c59edc8fa2417647c1bd33df20b58b1c0e4c8cb1 | [] | no_license | ArkaB-DS/GSOC21-improveNLS | 6bd711bca3ad1deac5aff3128cfc02e0237915a9 | f33839f8ceef78591ee296c6e515cd52339bb2b0 | refs/heads/master | 2023-07-16T21:07:33.900548 | 2021-08-22T05:41:26 | 2021-08-22T05:41:26 | 398,542,725 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,498 | r | nlxbs.R | nlxbs <- function(formula, start, trace = FALSE, data=NULL, subset=NULL, lower = -Inf,
upper = Inf, masked = NULL, weights=NULL, control=list()) {
# A simplified and hopefully robust alternative to finding
# the nonlinear least squares minimizer that causes
# 'formula' to give a minimal res... |
47512cf818fc46625ec542d6e9d4ad4c5ffa0a1b | cbc4f1708ef51093fcf0bebe5c2a3ee8403d0f9a | /human_motif_analysis/parsing_GOrilla.R | 488f2d65e5db56e6d9980249a7d0fa12e190725a | [] | no_license | AndyFeinberg/methyl_entropy | 540cf6d97d0dcaf3f3cc3799e7bacac5f27ef1b3 | 0da2e12cf2226cd51a09365981352805b49fdee6 | refs/heads/main | 2023-04-18T23:45:18.571277 | 2023-01-05T04:59:10 | 2023-01-05T04:59:10 | 584,472,340 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 941 | r | parsing_GOrilla.R | rm(list=ls())
library(xlsx)
GO_in=as.data.table(read.xlsx('../downstream/output/graphs_tables/regulatory_non_regulatory_GOrilla.xlsx',1))
for(i in 1:nrow(GO_in)){
if(!is.na(GO_in$Description[i])){GO_term=GO_in$Description[i]}
else{GO_in$Description[i]=GO_term}
}
GO_in=GO_in[,list(P.value=max(P.value,na.rm=T)... |
415f6d537d82bde63ba2ab2d874b43eff3ec828b | 0b5910a5e63a5d6e5fb49ea610014ef8688a0179 | /man/dGAselID.Rd | 960dfcf0c3ab6135b293b26a29daf7bca4ff201e | [] | no_license | cran/dGAselID | 2b8d7c5cda432dc5e24f08998035cc979ae5e03f | 3e7338b2c19a8f0a3af749a20716cd6bdc395d8b | refs/heads/master | 2020-07-02T18:59:35.171136 | 2017-07-10T04:02:55 | 2017-07-10T04:02:55 | 74,287,862 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,827 | rd | dGAselID.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dGAselID.R
\name{dGAselID}
\alias{dGAselID}
\title{dGAselID}
\usage{
dGAselID(x, response, method = knn.cvI(k = 3, l = 2), trainTest = "LOG",
startGenes, populationSize, iterations, noChr = 22, elitism = NA,
ID = "ID1", pMutationC... |
09f932618afac04328758c9dd235e3ab570ae1d6 | 695b88a36f548e410d8a4181ed7c6f433c7515a1 | /R/lstrends.R | b6f19dea19cca06928ec6c0401b7c358d8c51946 | [] | no_license | jonathon-love/lsmeans | 16054e0a830df482fd6aa41b5a461535afb8d4bb | c6e91712705647bbd9aa2fa37e65929907fecca9 | refs/heads/master | 2021-01-12T00:31:38.801483 | 2017-08-02T11:31:32 | 2017-08-02T11:31:32 | 78,736,500 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,556 | r | lstrends.R | ##############################################################################
# Copyright (c) 2012-2016 Russell V. Lenth #
# #
# This file is part of the lsmeans package for R (*lsmeans*) #
... |
881c0876f0635baadc452e8ddc6ab3d6721135ae | 4344aa4529953e5261e834af33fdf17d229cc844 | /input/gcamdata/man/module_energy_elec_bio_low_xml.Rd | dbc11e5364215292ade54df501d76114f5a015cd | [
"ECL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JGCRI/gcam-core | a20c01106fd40847ed0a803969633861795c00b7 | 912f1b00086be6c18224e2777f1b4bf1c8a1dc5d | refs/heads/master | 2023-08-07T18:28:19.251044 | 2023-06-05T20:22:04 | 2023-06-05T20:22:04 | 50,672,978 | 238 | 145 | NOASSERTION | 2023-07-31T16:39:21 | 2016-01-29T15:57:28 | R | UTF-8 | R | false | true | 749 | rd | module_energy_elec_bio_low_xml.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zenergy_xml_elec_bio_low.R
\name{module_energy_elec_bio_low_xml}
\alias{module_energy_elec_bio_low_xml}
\title{module_energy_elec_bio_low_xml}
\usage{
module_energy_elec_bio_low_xml(command, ...)
}
\arguments{
\item{command}{API command to ex... |
d90fc1db16cc666eb7abd019469c6a0abb3d6ef7 | f99fa98d3f573726bcc18c9d87e257f79814e697 | /basic_mapping_demo.R | 9d9c5de354595336387919a90f7aff5a7a6b779a | [] | no_license | cjbattey/Rseminar_GIS | c938d21bd643c4b1672330abd73a3b5ce6da568e | f919feff759a255f31becf225df3de1c539b1b1e | refs/heads/master | 2021-01-10T13:08:05.874891 | 2015-11-03T03:45:17 | 2015-11-03T03:45:17 | 45,404,659 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,863 | r | basic_mapping_demo.R | ###########################
#### FUN WITH MAPS!!!! ####
###########################
### what you'll need
getwd()
install.packages('ggplot2')
install.packages('ggmap')
install.packages('mapdata')
install.packages('maps')
library(ggplot2)
library(ggmap)
library(mapdata)
library(maps)
################################
#... |
1ee371af06457ee6ec3b2c79d8ee9351c9ea95a8 | 2da2406aff1f6318cba7453db555c7ed4d2ea0d3 | /inst/snippet/balldrop-nls07-fig.R | 2942ed5774ce72fd91830a3bc03ae63bce2a1069 | [] | no_license | rpruim/fastR2 | 4efe9742f56fe7fcee0ede1c1ec1203abb312f34 | d0fe0464ea6a6258b2414e4fcd59166eaf3103f8 | refs/heads/main | 2022-05-05T23:24:55.024994 | 2022-03-15T23:06:08 | 2022-03-15T23:06:08 | 3,821,177 | 11 | 8 | null | null | null | null | UTF-8 | R | false | false | 206 | r | balldrop-nls07-fig.R | plot(balldrop.nls)
plot(balldrop.lm, w = 1)
gf_qq( ~ resid(balldrop.nls))
gf_qq( ~ resid(balldrop.lm))
gf_point(resid(balldrop.nls) ~ f(BallDrop$height))
gf_point(resid(balldrop.lm) ~ g(BallDrop$height))
|
6a90027b2e6bbe46f28044a424cab0b5e3003c6e | da725622bc962b639e1eb6df535b433e4366bcc5 | /shinyCredentialsAndEducation/ui.r | 2d0484e38312cfb48b03e8520cfe13c199a48423 | [] | no_license | bekahdevore/rKW | 5649a24e803b88aa51a3e64020b232a23bd459fa | 970dcf8dc93d4ec0e5e6a79552e27ddc0f850b91 | refs/heads/master | 2020-04-15T12:41:49.567456 | 2017-07-25T16:29:31 | 2017-07-25T16:29:31 | 63,880,311 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,122 | r | ui.r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
library(dplyr)
library(googleVis)
credentialsData <- as.data.frame(read.csv("credentialsAndEducation.csv"))
occupationsLis... |
5f2a1875c84ef11de8d9d20c6a614cfbf329c586 | c2b9eb709f1e5bf19b83d0977b5f3ff2c89d255c | /R/utils-httr.R | d6a6fd95b0175dcd41071b950fbed8a5dd293c7f | [] | no_license | StevenMMortimer/rdynamicscrm | 0a2d0b60ebb26bea741d94351f844d6b7b4babef | 0077326f8f770eef582adaf12a4becb590ab426d | refs/heads/main | 2021-06-02T10:16:23.849693 | 2019-07-08T15:09:08 | 2019-07-08T15:09:08 | 144,392,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,656 | r | utils-httr.R | #' Function to catch and print HTTP errors
#'
#' @importFrom httr content http_error status_code POST add_headers
#' @importFrom xml2 xml_ns_strip xml_find_all xml_text
#' @note This function is meant to be used internally. Only use when debugging.
#' @keywords internal
#' @export
catch_errors <- function(x, retry=TRUE... |
72dd6caef8397e6c4e636e2b38561066a5e3294c | b287e9f0550018796dccf868de06aef5fadf0558 | /R/events_guildrolecreate.r | f7d0345826e1a118d3f9262540573e9df1401375 | [] | no_license | TheOnlyArtz/Pirate | ffedc098db2f847c2b1fb3329fd94b6393d5af99 | f68e1a0f16f872387b6a1d46d7a62ae6eb0c3ed1 | refs/heads/master | 2020-05-17T15:40:19.106630 | 2019-08-13T11:58:46 | 2019-08-13T11:58:46 | 183,796,627 | 1 | 0 | null | 2019-08-13T11:58:47 | 2019-04-27T16:29:31 | R | UTF-8 | R | false | false | 714 | r | events_guildrolecreate.r | #' Event, emitted whenever a role is being created
#' @param data The event fields
#' @param client The client object
#'\dontrun{
#' client$emitter$on("GUILD_ROLE_CREATE", function(guild, role) {
#' cat("A new role:", role$name, "has been created in:", guild$name, "!")
#' })
#'}
#' @section Disclaimer:
#' This event w... |
8ca99b520c5d0f98e57a60b14964f2cf3d5e51a4 | 777ac67d5ce4447560305313871ab8c4b0fc9c8d | /module01_data_and_files/materials/process_course_data.R | ffb2278313367989cba589518bef054e1ec8685f | [] | no_license | tavareshugo/slcu_r_course | c31ac0b4350e2597e72ad174f672ea91232364d4 | 4bb4b37e794d706d6bd69a6ede8eef2faa18608e | refs/heads/master | 2021-09-11T08:22:42.931505 | 2018-04-06T08:25:52 | 2018-04-06T08:25:52 | 103,411,299 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,080 | r | process_course_data.R | # Script can be run from the command line as
# Rscript process_course_data.R
library(tidyverse)
# Read data directly from repository
x <- read.table("https://datadryad.org/bitstream/handle/10255/dryad.104508/Experiment1.txt?sequence=2",
header = TRUE, stringsAsFactors = FALSE)
# Rename all variables... |
9ef3296689b1638bc09b7a0f70b401e8d9be3652 | ba7e5cd3bd2d27da96a784954cb4478676decbce | /r/mfa.R | a8cce7be245fe6177341dec62f1dc066757d79b0 | [] | no_license | nfagan/hwwa | 2179b7817b478208f150d6fab90a6ad85e3cc2fc | be173e4c0947589e380436a8f5bae5a3ebc339ae | refs/heads/master | 2021-06-12T07:32:28.064086 | 2021-02-22T20:45:54 | 2021-02-22T20:45:54 | 128,787,231 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,423 | r | mfa.R | library(R.matlab)
library(FactoMineR)
combine_data_labels <- function(data, labels) {
all_data <- data
for (name in names(labels)) {
all_data$name = labels$name
}
return(all_data)
}
raw_data_to_frame <- function(raw_data) {
mat_data <- data.frame(raw_data$data)
names(mat_data) <- unlist(raw_data... |
403c34948e19042ccb11a7d3327df8a30019a844 | b1c6daedae2a5cc1692a813249d91945765c1de5 | /server.R | b0ee9690239f64ba55d26f4d9172f9ca44b43e76 | [] | no_license | jyhsieh/boardgame-match | 23fe0b9894f47dfd3d8a3c7442cd4ab7704fc558 | 06443aa3bc4613c7e33a6457230df8effd42d94b | refs/heads/master | 2020-03-20T08:03:03.050398 | 2018-09-18T14:26:05 | 2018-09-18T14:26:05 | 137,297,549 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,628 | r | server.R | library(shiny)
library(tidyverse)
library(wordcloud2)
library(ggplot2)
#=========================================================================
# Expand Mechanic and Category Variable
#=========================================================================
All_mechanic = unlist(strsplit(boardgame$mechanic, ", "))
U... |
fc61ffa5b5c459273880ecfdf8436008e2b69cba | dbf4d16af283045abb830df0ec5445b0dbd4af6c | /covid/acces OurWorldinData cases/read_in_our_worldindata.R | bb1930a8145440ad6beb6e7289613ad9eaafb197 | [] | no_license | ammapanin/striking-statistics-tap | 1d7845e4b78fde053332141a64c8a5a82a5abb02 | 135ed9c902271ccfbf4803b466a3181995735817 | refs/heads/master | 2020-08-01T20:07:59.450793 | 2020-04-10T13:22:55 | 2020-04-10T13:22:55 | 211,101,091 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 8,507 | r | read_in_our_worldindata.R | library(tidyverse)
library(countrycode)
library(readxl)
library(magick)
### Setup paths
covid.path <- file.path(normalizePath("~"),
"Dropbox",
"Work Documents",
"World Bank",
"amma_striking_stats_local",
... |
d9aca7633db92bb9df6c0d0fd6e3d5f743685ca0 | 87f85a565768dbf5418516b1c742f45f2342f524 | /scripts/misc/RMSDcov.R | a9aebba18cef3bbaf2e714251151bb63750986d1 | [
"Apache-2.0"
] | permissive | genomicsengland/gel-coverage | 1ad6716efaa3059146c30812f1f7e21a0f4a9236 | 61a671a53ac52a0b62c8aea983ced65fd0bed6cc | refs/heads/master | 2022-07-07T00:04:27.718426 | 2021-05-06T16:55:58 | 2021-05-06T16:55:58 | 70,790,696 | 2 | 0 | Apache-2.0 | 2022-07-05T21:29:25 | 2016-10-13T09:27:20 | Python | UTF-8 | R | false | false | 215 | r | RMSDcov.R | args = commandArgs(trailingOnly = TRUE)
bwtool.file = args[1]
data <- read.delim(bwtool.file, as.is=T, sep = "\t", header = TRUE)
median <- median(sqrt(data$sum_of_squares/100000))
writeLines(paste(median,sep=" ")) |
09d718b4a74c51a5732be610e5f46ce64e55ede7 | 223756424b32600a66b505e886fbad9c9fe47e7b | /Plot1.R | 8c5190d683b7b628d25d77a58fa25784a78d370e | [] | no_license | ghostdatalearner/ExData_project2 | 12070e2091b54d0a6a1da7012e1fa849b4ab010b | 867d83df40d8fabe459c0a41838086520ccf04c0 | refs/heads/master | 2021-01-22T23:11:14.325383 | 2014-06-21T16:32:27 | 2014-06-21T16:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 849 | r | Plot1.R | # Coursera JHU Spec Data Science
#
# Exploratory Data Analysis
#
# Project 2
#
# Plot1.R
#
NEI <- readRDS("summarySCC_PM25.rds")
# Total emissions by year.
acc_emiss_year <- tapply(NEI$Emissions,NEI$year,sum)
# We open the graphic
png(file = "Plot1.png", width = 480, height = 480, bg = "transparent")
# As the accumul... |
0b7bed3adeedcd7ae881fcb17e285d75ee191f37 | 22dc322d68a8bfaecf3c57be5ec99a433f0a95a8 | /man/data_heckman.Rd | 98353ea9902ab2b578c673b7672ca40bdef01bff | [] | no_license | cran/micemd | 19a1acfeb69da9e62d1639265a518ecebeb1f3a5 | e5adbe076babd9f6c9aa3926eaabdd73d76dd69f | refs/heads/master | 2023-06-09T21:04:43.211056 | 2023-06-01T11:00:04 | 2023-06-01T11:00:04 | 91,136,501 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,325 | rd | data_heckman.Rd | \name{data_heckman}
\docType{data}
\alias{data_heckman}
\title{ A two-level incomplete dataset based on an online obesity survey}
\description{
The dataset used here was based on data collected from 2111 individuals in an online obesity survey in different locations. The data were simplified and grouped into fiv... |
b7bbd4945c8b51d422702c63e28d63d286f23104 | aedc3ee164734a8c42d5c535a02ee1acdf3443fb | /R/scRNA-seq/1.3_integrate_SCT-RPCA_fromMatrix.R | d50dea83cff643421f1a1b357a3b998cf13ecb63 | [] | no_license | zglu/Scripts_Bioinfo | 60fdd5fe70b4900d981cc06560595ecb4fb9690e | 8589ed613868f88ae12b8a629156c0a12b420bbc | refs/heads/master | 2023-01-27T11:13:18.140272 | 2023-01-23T13:19:09 | 2023-01-23T13:19:09 | 96,612,675 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,118 | r | 1.3_integrate_SCT-RPCA_fromMatrix.R | # Rscript 1.3_integrate_SCT-RPCA_fromMatrix.R
library(Seurat)
library(dplyr)
# each data
Data1<-Read10X("~/zl3/Inqueries/Cheng_Sj_scRNA/_newCellRangerMapping2021-12/CellRanger_mito-4genes/F16/filtered_feature_bc_matrix/", gene.column=1) # default is col2: gene names. col1 is gene ids
Data2<-Read10X("~/zl3/Inqueries/C... |
16eec0354085a15393087ebc20bb338c4803d488 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /SpaDES.tools/man/heading.Rd | 04bcfa72fdfe5cc90494b061fcb6005335d501f2 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,742 | rd | heading.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/heading.R
\name{heading}
\alias{heading}
\alias{heading,SpatialPoints,SpatialPoints-method}
\alias{heading,matrix,matrix-method}
\alias{heading,matrix,SpatialPoints-method}
\alias{heading,SpatialPoints,matrix-method}
\title{Heading between sp... |
6214b3b0a411afb2e64cdce7714de86546cad967 | d7d2382f23fe3296d1528d17220ba2d29dc915b0 | /SimpleInterpolationApp/TokenizeData_tm.R | 6cb49174430c234614ee3e66e579ef584e80eafc | [] | no_license | fredcaram/JohnHopkinsDataScienceCapstone | 7f86988ec567d83d075408115ff795d8e4a0bbea | f53c23e7d884e9a9e445ccf3696486a90a4bbb35 | refs/heads/master | 2021-01-15T16:53:06.677732 | 2017-08-11T12:57:55 | 2017-08-11T12:57:55 | 99,732,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,837 | r | TokenizeData_tm.R | library("RColorBrewer")
library("tm")
#library("ngramrr")
library("SnowballC")
library("wordcloud")
library(rJava)
.jinit(parameters="-Xmx128g")
library("RWeka")
#badWords <- VectorSource(readLines("./dirty/english.txt"))
tm.GetCorpus <- function(path){
corp <- VCorpus(DirSource(path))
corp <- tm.CleanCorpus(cor... |
eea5d85c4c6393fab6070eb393d4a08e88f4a537 | 547660ed83f72f861078c2e9ab32255e112b8ac8 | /inst/ignore/phylomedb.R | 2f9019217c7a07baccd26be0b1caacde9fb01c8c | [
"MIT"
] | permissive | ropensci/brranching | 6d84f64ae7b97d873191be03ed2c7580efa07a32 | efd089fd8218de75b1148d14db3e9926552fa705 | refs/heads/master | 2023-05-23T05:26:09.112878 | 2022-12-05T08:37:57 | 2022-12-05T08:37:57 | 30,196,325 | 18 | 10 | NOASSERTION | 2022-11-17T21:54:34 | 2015-02-02T16:31:55 | R | UTF-8 | R | false | false | 817 | r | phylomedb.R | #' @title PhylomeDB
#'
#' @description Fetch phylome trees from PhylomeDB
#'
#' @export
#' @param seqid An id
#' @param ... Curl options passed on to \code{\link[httr]{GET}}
#' @return Newick formatted tree or nexml text.
#' @examples \dontrun{
#' # Fetch by seqid
#' id <- "Phy004LGJW_CROPO"
#' tree <- phylomedb(seqid ... |
4abe7a5b8b60c0bfe4ea6ff9fa0a4aa9521e539b | 16e3ea1b885ea80b6b6e1c8a76d085c0bed97462 | /maineQTL.R | b1dad8914bc1ede819bd5a1b403bbb663e567b9f | [] | no_license | CreRecombinase/MatrixeQTLGLM | 5ba48a6877c38b57585ac56ce5627a424376acd1 | c78e7d848f9b668b5ed840d6d5ac7880ccf1b62f | refs/heads/master | 2020-12-24T14:53:48.802827 | 2013-04-23T18:29:11 | 2013-04-23T18:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,823 | r | maineQTL.R | #First revision of Andy's pseudocode for unimputed BRCA SNP and Expression Data
#2/6/13
#NWK
library(sqldf)
library(plyr)
library(BatchExperiments)
library(MatrixEQTL)
###USAGE maineQTL.R <out.files> <root.dir> <out-dir> <annofile> <snp.expfile> <samples> <fold-validation> <time> <queue> <memory> <CISTRA|CIS>
makeClu... |
213f47b39253b8a1df2885d2ad303b38d2c39cca | 39940b7cc4ce9470f5e8201e1f82b02b98984601 | /utils/Nonpareil/man/summary.Nonpareil.Curve.Rd | 8c4a4edefa927c09d59106b8c8f1fbf03d8ea876 | [
"Artistic-2.0"
] | permissive | lmrodriguezr/nonpareil | dcd7ac99330b9dc1737f0a46f0985095e58d6e65 | 162f1697ab1a21128e1857dd87fa93011e30c1ba | refs/heads/master | 2022-02-23T11:52:11.279418 | 2022-02-22T19:51:05 | 2022-02-22T19:51:05 | 5,099,209 | 36 | 15 | null | 2017-11-14T15:13:17 | 2012-07-18T17:02:52 | C++ | UTF-8 | R | false | true | 1,240 | rd | summary.Nonpareil.Curve.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Nonpareil.R
\name{summary.Nonpareil.Curve}
\alias{summary.Nonpareil.Curve}
\title{Returns a summary of the \code{Nonpareil.Curve} results.}
\usage{
\method{summary}{Nonpareil.Curve}(object, ...)
}
\arguments{
\item{object}{\code{Nonpareil.Cur... |
40fc0d38d99ac760d92574bf365a85c1fd44fe7c | bc2a485ffe10d8e42b0a5e100fbaeed83a6d57d4 | /3.r | 391e0957bbbb4bcb812a2bbb3a30d547bed2f462 | [] | no_license | Phanideep007/datascience | 4989a11fc11aa8eb3a32ffd0644a087ffba0c837 | eb1dfd08b57b397f97eb69605f156a531829c377 | refs/heads/master | 2020-03-16T03:28:10.537415 | 2018-05-18T16:11:28 | 2018-05-18T16:11:28 | 132,488,245 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 365 | r | 3.r | usedcar=read.csv(file.choose())
scale(usedcar$Price)
usedcar=usedcar[-1]
head(usedcar)
boxprice=BoxCoxTrans(usedcar$Price)
priceboxcox=predict(boxprice,usedcar$Price)
head(priceboxcox)
hist(priceboxcox)
plot(density(priceboxcox))
plot(density(usedcar$Price))
skewness(priceboxcox)
skewness(usedcar$Price)
... |
b36f893db7a6c1e1a570a48579e0fdaf0fd22bdb | 9d0c396fc511e651a1a58d6f6c62b3667695d60f | /R/KMCox_RacoonOlyLarvaeSurvival.R | 9fb298adca52a203752eb28782bc5631bf4a7224 | [] | no_license | lalma/RacoonOlyLarvalSurvival | fc902e502ca77c33317d057d1875ce4c9294943f | 521f8626d79476e9f891fca4a0397588ba0fd5cc | refs/heads/main | 2023-08-16T06:05:24.001055 | 2021-10-22T02:48:42 | 2021-10-22T02:48:42 | 393,133,714 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,719 | r | KMCox_RacoonOlyLarvaeSurvival.R | #kaplan meier survival
#load libraries
library(survival)
library(survminer)
library(ggplot2)
library(rms)
library(readxl)
library(survELtest)
#upload datasheet 38,400 lines. once for each larvae
OlyLarvaeKMforR <- read_excel("C:/Users/Lindsay/Dropbox/Raccoon/larvae/oyster/larvae survival stats/GitHub/RacoonOlyLarvalS... |
7fb74ab947e7d703e607a228207fb4b3711a49fc | 68654fffeaba279324df9493948c0b63c0b23cc6 | /odds_and_ends/former/08_paleo_monthly_gen_percentile_pred.R | f8532ca3383c4781c42d5a6a1c7bc1c58d426abd | [
"MIT"
] | permissive | jstagge/weber_paleo_clim | dcb0fee723c920f90fc3ca343a8386aba427de7a | 45d3f824265f37d8f9b916102240d8d145dcc2c2 | refs/heads/master | 2022-02-26T09:48:24.994255 | 2019-08-22T20:05:01 | 2019-08-22T20:05:01 | 133,690,915 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,011 | r | 08_paleo_monthly_gen_percentile_pred.R | # *------------------------------------------------------------------
# | PROGRAM NAME: Data Music
# | FILE NAME: paleo_monthly_gen_null.R
# | DATE:
# | CREATED BY: Jim Stagge
# *----------------------------------------------------------------
# | PURPOSE: This is a code wrapper to generate a midicsv file f... |
d8657ef4c06d2bb9f7a3cea86b2692a1dd8a4f55 | bad164cec8333f690f187f53643aaa9e9e70061c | /counts_forloop.R | 6d9b81fc55f28f3fd09329628ff388dd917f5b8c | [] | no_license | cocomushroom/meta_commu | 7151c5d48164d55832644a4323757f5e1cf6abe0 | 568c2edc5049fdc694fa77e0dc9137ca2fd00ac9 | refs/heads/master | 2021-01-10T13:05:06.661282 | 2017-03-02T19:42:48 | 2017-03-02T19:42:48 | 55,309,772 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,988 | r | counts_forloop.R | setwd("/Users/kc178/Downloads/all_GB+customized_silva_wLRORLR3_1208/cutfirst")
list_tab <- dir(pattern = "*IdxStats.tabular")
#make sure the files are read in the correct order
list_tab <- list_tab[c(3,2,1,6,5,4,9,8,7)]
ldf <- list()
present <- list()
for (k in 1:length(list_tab)) {
ldf[[k]] <- read.delim(list_tab[k... |
d037a95f33fc722ff803f420ab01e161ac2ac604 | 63d97198709f3368d1c6d36739442efa699fe61d | /advanced algorithm/round3/k-server-analysis-master/data/tests/case184.rd | 2d7b27ce86c03d418cbf45a45be8f3b2de6a842e | [] | no_license | tawlas/master_2_school_projects | f6138d5ade91e924454b93dd8f4902ca5db6fd3c | 03ce4847155432053d7883f3b5c2debe9fbe1f5f | refs/heads/master | 2023-04-16T15:25:09.640859 | 2021-04-21T03:11:04 | 2021-04-21T03:11:04 | 360,009,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,265 | rd | case184.rd | 36
1 [1, 22, 8] 14 14 14 18 18
2 [1, 23, 8] 1 2 16 2 20
3 [1, 22, 8] 1 2 18 2 22
4 [1, 23, 8] 1 2 20 2 24
5 [1, 22, 8] 1 2 22 2 26
6 [1, 23, 8] 1 2 24 2 28
7 [1, 22, 8] 1 2 26 2 30
8 [1, 23, 8] 1 2 28 2 32
9 [1, 22, 8] 1 2 30 2 34
10 [1, 23, 8] 1 2 32 2 36
11 [1, 22, 8] 1 2 34 2 38
12 [1, 23, 8] 1 2 36 2 40
13 [1, 22, ... |
2f26db8310aa3ef7627ac37330322f5d02813db0 | 1e8dd86a73b6a8d678f94933cf1cfc9e453cb2ae | /SurveyQs/ui.R | d61d52e71954657e1224c9be999dc7612627cbec | [] | no_license | aclheexn/myrepo | 4b3870ebd22481b7f0450b4b9a1acdf0c2afea34 | 5193994a56d9cbdffb0009472b6fcf46171f1060 | refs/heads/master | 2021-01-22T08:48:51.442258 | 2017-06-05T21:34:59 | 2017-06-05T21:34:59 | 92,636,372 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,968 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# input a class code
# Get classes or everybody's data
# Collecting, saving, Download
# Numb... |
d960ef09ffafd033eb404510a8fabde05afb6d7b | 002929791137054e4f3557cd1411a65ef7cad74b | /tests/testthat/test_getProbandPedigree.R | 9a273523d3e93d8fcf0f78091789c5daad94ae85 | [
"MIT"
] | permissive | jhagberg/nprcgenekeepr | 42b453e3d7b25607b5f39fe70cd2f47bda1e4b82 | 41a57f65f7084eccd8f73be75da431f094688c7b | refs/heads/master | 2023-03-04T07:57:40.896714 | 2023-02-27T09:43:07 | 2023-02-27T09:43:07 | 301,739,629 | 0 | 0 | NOASSERTION | 2023-02-27T09:43:08 | 2020-10-06T13:40:28 | null | UTF-8 | R | false | false | 926 | r | test_getProbandPedigree.R | #' Copyright(c) 2017-2020 R. Mark Sharp
#' This file is part of nprcgenekeepr
context("getProbandPedigree")
library(testthat)
library(stringi)
data("lacy1989Ped")
ped <- lacy1989Ped
test_that("getProbandPedigree returns the correct pedigree", {
expect_true(all(getProbandPedigree(probands = c("A", "B"), ped)$id %in%
... |
9f677b520e6b99620ebf278a9ae3b657585f9919 | 6f52523561fee8f1244d1cc2be3abf4124352e8a | /plot2.R | ff4234de200d9d1fa941391855a2267424cc3a4b | [] | no_license | ishaanagw/ExData_Plotting1 | 6584148e1e98088d14ef641c3ca216c1c3ef62af | 5eeea11ff0bdaf626192b555a96883caebcd49c9 | refs/heads/master | 2022-09-01T22:24:02.404093 | 2020-05-24T08:30:29 | 2020-05-24T08:30:29 | 266,476,688 | 0 | 0 | null | 2020-05-24T05:33:01 | 2020-05-24T05:33:00 | null | UTF-8 | R | false | false | 1,700 | r | plot2.R | ## This part of code is common to all the plots
#========================================================================
## Reading the data
## calculating memory required for the data
## memory for a data set = number of rows* number of columns* 8 bytes
memory_bytes <- 2075259*9*8
memor... |
9e8af75290ae33090656b62b448b9979ad1db5cb | 523090931e3508b00eb5d7b32986ae99a219c4a3 | /server.R | 3c7610c544c259057ae3eff687d8a43651bafbc2 | [] | no_license | PeiWeiChi/Shiny-Application-and-Reproducible-Pitch | a5f69da61bde2e47a10fc319448f2805ecbb98f3 | 45045a1f3d217711c8e8992734c351a2f13be718 | refs/heads/master | 2021-05-08T14:44:00.428075 | 2018-02-04T03:25:29 | 2018-02-04T03:25:29 | 120,096,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 746 | r | server.R |
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
output$dtext <- renderText({
n <- input$myMonth
y<-as.vector(window(AirPassengers,n,end = c(n,12)))
word <- paste0("Yearly total passengers:", sum(y))
print( ... |
89fa15b20686d76e3f7e87f23b220338fa0cf14f | 0bb0975ad2c2fd6c3afa41908a59ac7615082aa8 | /Rjunk.R | ec065663fa777f427a8ada714c2efc21b42cd669 | [] | no_license | CoppellMustang/6306_BLT9.5 | c852aa9aedfdef178050a7ee98d1ec2f3455a229 | d246c9e5da8db398c471fb72ca60667eb6ce70ab | refs/heads/master | 2021-01-20T19:59:45.456670 | 2016-07-20T17:19:50 | 2016-07-20T17:19:50 | 63,285,082 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 718 | r | Rjunk.R | install.packages("tseries")
library("tseries")
SNPdata <- get.hist.quote('^gspc',quote="Close")
length(SNPdata)
SNPret <- log(lag(SNPdata)) - log(SNPdata)
length(SNPret)
SNPvol <- sd(SNPret) * sqrt(250) *100
Vol <- function(d, logrets){
var = 0
lam = 0
varlist <- c()
for (r in log... |
0001876efb1b9e9f9ca30971ad7938e138b9c125 | ab8d2c2ecd193cfdf7e4bed46e7585d51e71ed6c | /man/trait.dictionary.Rd | 9a16ec1c48b969e3f91d78dfdd8a6d8ebb2daf78 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dlebauer/pecan-priors | 17cc74617485ce6c59e4e8e48e52773baabaf42a | 919eed91e77d7d445e052f3f50e235a23f16f966 | refs/heads/master | 2021-06-02T09:49:36.286969 | 2019-09-25T04:40:17 | 2019-09-25T04:40:17 | 7,034,392 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 598 | rd | trait.dictionary.Rd | \name{trait.dictionary}
\alias{trait.dictionary}
\title{Dictionary of terms used to identify traits in ed, filenames, and figures}
\usage{
trait.dictionary(traits = NULL)
}
\arguments{
\item{traits}{a vector of trait names, if traits = NULL,
all of the traits will be returned.}
}
\value{
a dataframe with id, th... |
ae4271dcf6c35db203e93249b7e71d0c7f5c167a | ddcfacca3170c9de0185ae08bc8ad3df3a4213c3 | /man/T2O.Rd | 9ea70a22f574d4af217191a38e58002572c4a619 | [] | no_license | cran/TVMM | 042db76fcbb90ee557149879b5ba9ae4d85aae4f | a1564c4589ae9500d679a1df0ffef5477561ae09 | refs/heads/master | 2021-04-05T11:33:27.126549 | 2020-12-14T18:50:02 | 2020-12-14T18:50:02 | 248,552,850 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 937 | rd | T2O.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/T2O.R
\name{T2O}
\alias{T2O}
\title{The traditional T2 test (T2).}
\usage{
T2O(X, mu0)
}
\arguments{
\item{X}{a matrix n x p containing n observations and p variables. It should not contain missing values (NA).}
\item{mu0}{a vector containin... |
08e1e72539e8b8446ab424b44649a4008dade1a1 | 57744ab6fedc2d4b8719fc51dce84e10189a0a7f | /rrdfqbcrnd0/R/GetDescrStatProcedure.R | 68cabd4f5e1abd820f6716a8347fd5c0b3c4ce23 | [] | no_license | rjsheperd/rrdfqbcrnd0 | 3e808ccd56ccf0b26c3c5f80bec9e4d1c83e4f84 | f7131281d5e4a415451dbd08859fac50d9b8a46d | refs/heads/master | 2023-04-03T01:00:46.279742 | 2020-05-04T19:10:43 | 2020-05-04T19:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,616 | r | GetDescrStatProcedure.R | ##' Get list of Descriptive statistics
##'
##' For q1 and q3 type=2 is used, as it gives same results as SAS. However,
##' the R help on quantile states type=3 gives same result as SAS.
##' TODO(MJA): investigate which definition is the preferable.
##' @return List providing function for each descriptive statistics
##'... |
f1434fcf3815bc4e61861fc8b9d9d1d72492c50e | b110ef8ad122bfbdcf65eac900680b0cb62ac851 | /R/classContainer.R | 493824651b429787dc093c388ca694e7a703ae8a | [] | no_license | adelabriere/proFIA | fcebc86845c908e0c5978b3d603e2f48af9e64e5 | 8eaf9aa3105ca7bd9b71bf3754007a867afa522f | refs/heads/master | 2020-03-13T09:11:17.646649 | 2019-07-10T13:31:11 | 2019-07-10T13:31:11 | 131,059,383 | 0 | 1 | null | 2019-04-07T11:17:12 | 2018-04-25T20:23:38 | R | UTF-8 | R | false | false | 3,925 | r | classContainer.R | #####Annotate FIA
#An object to contain all the information from an FIA acquisition.
#' An S4 class to represent an FIA experiments.
#'
#' The S4 class also includes all the informations about processing, and the detected signals
#' are stored.
#'
#' @include noiseEstimator.R
#' @param object A proFIAset ob... |
d398b576c9ae97b1322f64ec982a43ee939627cf | 73b297f2e53e18fc7a3d52de4658fede00a0319c | /man/arrayToDf.Rd | bbb020e66db60eeae1d5643e0a4f29bb4deb3e7a | [
"MIT"
] | permissive | bentyeh/r_bentyeh | 4f5d0f403dceffb450bd77d8ff87adcaa6c222da | 971c63f4ec1486366e0fe07fc705c0589ac7ea39 | refs/heads/master | 2023-02-06T19:10:18.055017 | 2020-07-21T18:18:48 | 2020-07-21T18:18:48 | 281,471,203 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,190 | rd | arrayToDf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{arrayToDf}
\alias{arrayToDf}
\title{Convert an array to a data frame.}
\usage{
arrayToDf(ar)
}
\arguments{
\item{ar}{An array.}
}
\value{
\code{data.frame. dim = c(prod(dim(ar)), length(dim(ar)) + 1)}.
\itemize{
\item Rows: On... |
0da5041389b93b17b08f7180217a4794edcfc26c | 9a79d2eb242a5aa1ea537b395726bbb1b615582c | /data/readdata_POS_CASH_balance.R | 4e38ed3d63d30c9ef57321e129b5752d1459c7d1 | [] | no_license | HeHuangDortmund/HomeCredit | 80d49e1d6c417e4434cab98649893bfee0d1f7cc | f7d809539d1e48bbf00db38489d5f7a695d1e86d | refs/heads/master | 2020-03-20T01:28:41.060990 | 2018-08-31T22:41:06 | 2018-08-31T22:41:06 | 137,077,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,235 | r | readdata_POS_CASH_balance.R | readData = function(version = 1){
library(rprojroot)
library(data.table)
root = find_root(is_git_root)
setwd(root)
POS_CASH_balance = fread("../data/POS_CASH_balance.csv", na.strings = "")
if (version == 2){ # 在汇总前先填一部分NA
POS_CASH_balance$CNT_INSTALMENT[is.na(POS_CASH_balance$CNT_INSTALMENT)] = mean(PO... |
8e1c1cbfb76a8f64c81ca99bdf004202fd9feaa3 | 3f85f047f5d22d44f50e420ea64b6592f5fa349d | /plot4.R | f404c052eaac3bb9dd4d514201abbebf1c74ed0b | [] | no_license | byronrdz/ExData_Plotting1 | fb657b39a00fa66979373d8b1d0c3f59b8e6180b | 63d5d52fca24f61947a5100becf427cc4b6502ac | refs/heads/master | 2020-12-01T03:08:22.325941 | 2015-03-08T23:29:47 | 2015-03-08T23:29:47 | 31,691,325 | 0 | 0 | null | 2015-03-05T02:23:01 | 2015-03-05T02:22:59 | null | UTF-8 | R | false | false | 1,172 | r | plot4.R | #PLOT4
#Settting working directory where the data file is located
setwd("C:/Users/Byron/Documents/Coursera Data Science Sp/Exploratory Data Analysis/ExData_Plotting1")
#Loading filtered data from the file. Just rows corresponding to 1/2/2007 and 2/2/2007
library(sqldf)
data <- read.csv.sql("household_power_consumption... |
14fb10fd8f8ba403a4e47c304870a1bf29d1297d | 3396a0f6202149a80a6170ab088bf407f5e30169 | /analysis/networks-statistics.R | 84db725eb504a1dddf1527c12d8577aea52db172 | [] | no_license | akastrin/medline-evolution | c997e51f155b2ffea73374fa0b9a48edeb2436cc | 294f7414d8d2d6b50e0ffa4806057519fc91a1b7 | refs/heads/master | 2021-08-24T06:50:04.338605 | 2017-12-08T13:42:56 | 2017-12-08T13:42:56 | 112,579,727 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,455 | r | networks-statistics.R | library(igraph)
library(data.table)
library(Rcpp)
library(R.matlab)
library(tidyverse)
library(Matrix)
# source("clustercoef_kaiser.R")
sourceCpp("./scripts/kaiser.cpp")
# Create network-statistics.csv file
files <- paste0("../data/matlab/adj-mats/adj-mat-", 1:49, ".mm")
n_nodes <- vector(mode = "integer", length = le... |
d19a55a2377991e72edc0e8135637e57010cadd2 | b82c3a70ecc18227493239f0a2037592a0e767d2 | /collection/mysql_config.R | 1f062927d9f7d9e0e81e3c415a0552718ff5637b | [] | no_license | hzontine/polarbear | 8fed9f3befe7c4e40547df5c0463bb14d15c454f | 893a322a566d05f00b47fbbd70d8987ffd5a11ce | refs/heads/master | 2020-05-21T15:04:26.039931 | 2017-09-30T21:43:25 | 2017-09-30T21:43:25 | 58,944,871 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 191 | r | mysql_config.R |
# MySQL configuration.
#mysql.db.name <- "polarbear"
mysql.db.name <- "polarbear"
mysql.user <- "stephen"
mysql.password <- "iloverae"
# git update-index --assume-unchanged mysql_config.R
|
4c41b1bc45f0ec7a40e460f7ddf820832f6132b1 | a0a9934e32e7c68e57af0eddf83b00d3189cca1d | /Animal_Matching.R | 0e3ed9f4da5b11a371029de4235489ff7f81a63c | [] | no_license | mathemagicalgames/mathe-magical-games | 708cc51c43a8cff94068e82b540508a88ad4ef9a | 164b497910575382ccf9fc4c5cb31c57ea280eff | refs/heads/master | 2020-08-01T08:09:51.128294 | 2019-09-25T19:54:45 | 2019-09-25T19:54:45 | 210,926,486 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,534 | r | Animal_Matching.R | # Copyright (c) 2017 - 2018
# Nicolai Meinshausen [meinshausen@stat.math.ethz.ch]
# Jonas Peters [jonas.peters@math.ku.dk]
# All rights reserved. See the file COPYING for license terms.
## dimension (will result in p^2+p+1 players and unique animals)
p <- 3
## check whether p is a small prime number
if(! p %in% ... |
55765445891239364a14c077a3b14fce07004e33 | d34170b0244866131fd5d959688f908f02ea5404 | /R/corrXY.r | 8e96b9006a494b57b7ea51acb7d32bd173c3ffad | [] | no_license | ClementCalenge/adehabitatLT | 7ac4182ce35abc6b8d85f8929017102e5a430bf3 | 1da9d94626de2ed4c069ba4fedef16cf9ddf5c8f | refs/heads/master | 2023-04-14T12:32:51.368684 | 2023-04-07T07:25:26 | 2023-04-07T07:25:26 | 81,651,833 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,783 | r | corrXY.r | .convtime <- function(step, units)
{
if (units=="min")
step <- step*60
if (units=="hour")
step <- step*60*60
if (units=="day")
step <- step*60*60*24
return(step)
}
.corrXY <- function(x, y, dab, daa)
{
x1 <- x[1]
y1 <- y[1]
if (daa[1]!=d... |
a751159ff1fad33e8cffa5a118274f07c4d19792 | 0fb33ca8eef07fcb5d3687f4cf2793ef187f79f4 | /R/ca-scoreFACT_EN.R | b64db6bda8b8ac8bdb482b7107c789c31d990e69 | [
"MIT"
] | permissive | raybaser/FACTscorer | e3c10b9a065cb5b6290b211519b72ed9171a1fc2 | 070a1cf479ee8c1f19bf6a295c2ed0d544ff6406 | refs/heads/master | 2022-03-16T20:20:29.198088 | 2022-03-12T09:42:36 | 2022-03-12T09:42:36 | 61,918,573 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,334 | r | ca-scoreFACT_EN.R | #' @title Score the FACT-En
#'
#' @description
#' Generates all of the scores of the Functional Assessment of Cancer Therapy -
#' Endometrial Cancer (FACT-En, v4) from item responses.
#'
#' @templateVar MEASURE FACT-En
#' @templateVar SCOREFUN scoreFACT_En
#' @template templateDetailsAC
#'
#'
#' @template templateP... |
f29143b43266c6f0b522c9f106c3dc96e452a151 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TPD/examples/Rao.Rd.R | efd378be1148c0012196665be1e97c77ac8514f7 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,054 | r | Rao.Rd.R | library(TPD)
### Name: Rao
### Title: Rao's Quadratic Entropy and its Partition
### Aliases: Rao
### ** Examples
# 1. Compute the TPDs of three different species.
traits_iris <- iris[, c("Sepal.Length", "Sepal.Width")]
sp_iris <- iris$Species
TPDs_iris <- TPDs(species = sp_iris, traits_iris)
#2. Compute the dissim... |
527f30ebbdde326a045271de5e635fb20782cdca | 089626fd5094bbf9478bd11c1b16331675082113 | /week1/plot_trips.R | 0b8cf4e57dab957faf50e6f6094733f3948a610e | [] | no_license | BasiraS/coursework | 6ed0aa3f35bcb1b0a73b4251bf3c13526911868e | 6bd93c96374fb5ec442d0992069be3084c488536 | refs/heads/master | 2022-11-05T18:44:37.686794 | 2020-06-19T19:53:01 | 2020-06-19T19:53:01 | 268,619,251 | 0 | 0 | null | 2020-06-01T19:58:03 | 2020-06-01T19:58:02 | null | UTF-8 | R | false | false | 12,211 | r | plot_trips.R | ########################################
# load libraries
########################################
# load some packages that we'll need
library(tidyverse)
library(scales)
# be picky about white backgrounds on our plots
theme_set(theme_bw())
# load RData file output by load_trips.R
load('trips.RData')
... |
35d9ae20034f29785a18298bf63af0b6d92d334a | 6a5a13aa76f394b99c3ba24580c63e492c72314f | /exploratory_data_analysis/week1/week1_course.R | 6c4e038704ea4d5d2c0b3fcd735c3da00c1ee899 | [] | no_license | sriharshams/datasciencecoursera | 6de4616997c687e14c62d816d19859bffc1f7f98 | e34263d3080e5b272d2d61fa323439c353effa61 | refs/heads/master | 2020-04-15T08:46:39.289593 | 2017-06-24T22:09:29 | 2017-06-24T22:09:29 | 52,250,701 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,349 | r | week1_course.R |
#Get data
getwd()
#Note: This directory needs to be changed based on the required directory for data location
setwd("C:/learning/coursera/coursera-data_science-data/exploratory_data_analysis/week1/data")
filename <- "avgpm25.csv"
## Download the dataset:
if (!file.exists(filename)){
fileURL <- "https://r... |
c7e201eb87579bd3ffb8fbbb57d49853fc939285 | 33b7262af06cab5cd28c4821ead49b3a0c24bb9d | /pkg/caret/tests/testthat/test_sampling_options.R | b5ae0ef8f56243b3997b70272e0c1b30b10110f2 | [] | no_license | topepo/caret | d54ea1125ad41396fd86808c609aee58cbcf287d | 5f4bd2069bf486ae92240979f9d65b5c138ca8d4 | refs/heads/master | 2023-06-01T09:12:56.022839 | 2023-03-21T18:00:51 | 2023-03-21T18:00:51 | 19,862,061 | 1,642 | 858 | null | 2023-03-30T20:55:19 | 2014-05-16T15:50:16 | R | UTF-8 | R | false | false | 2,493 | r | test_sampling_options.R | library(caret)
library(testthat)
context("sampling options")
load(system.file("models", "sampling.RData", package = "caret"))
test_that('check appropriate sampling calls by name', {
skip_on_cran()
arg_names <- c("up", "down", "rose", "smote")
arg_funcs <- sampling_methods
arg_first <- c(TRUE, FALSE)
## tes... |
b99835ac2fde0eae55f8b0d0cc3d6f20f57bedc1 | accc9bcaf489cbd6d9394a6b7971cb0f80b1d350 | /Lung_asthma/Celda_code.R | b2ffcbe66ae3636931f8cba283a41d4706b31731 | [] | no_license | zx1an95/JH | f7a6e1d6ca827e3ad81857c4b42d0970aacd731a | 5c6de3003f95eacd7b1208164a7d24e2635fdf51 | refs/heads/master | 2020-12-29T08:40:03.438489 | 2020-05-05T18:54:28 | 2020-05-05T18:54:28 | 238,539,667 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,873 | r | Celda_code.R | load("GSE130148_raw_counts.RData")
lung_resection <- CreateSeuratObject(counts = raw_counts, project = "lung_resection",
min.cells = 3, min.features = 250)
lung_resection[["percent.mt"]] <- PercentageFeatureSet(lung_resection, pattern = "^MT-")
lung_resection <- subset(lung_res... |
d08c3a08948203fc8d97b1a89cbdf6676248d67d | 7090f45f05d288c426d91515ea0a80371c402fcc | /tests/testthat/test-search.R | bdc29b349b76c4f2f460ec9507731b57705c6c97 | [
"MIT"
] | permissive | KTH-Library/dblp | 5969671b9d6a11c19646aac3a309ad6aaa1966ef | 8a5488b2a9c13c9506c497fdfaa75b4ec7384e50 | refs/heads/master | 2021-08-26T01:01:14.531024 | 2021-08-18T15:15:44 | 2021-08-18T15:15:44 | 246,881,922 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 400 | r | test-search.R | test_that("search works", {
t1 <- dblp_search("European", entity = "venues")$content
expect_gt(nrow(t1), 5)
})
test_that("search venues w zero hits works", {
t1 <- dblp_search("venues", entity = "venues")$content
expect_equal(nrow(t1), 0)
})
test_that("search authors w zero hits works", {
t1 <- dblp_search(... |
6307f3c80c9aea88ca07aba9504bbfb424262a6f | 1277466828a8aa3bfd8e3d3280b9f21a8b575cf4 | /app/global.R | 159186d51bcccc901e321d9ed697839cad0deb8b | [] | no_license | gabrielteotonio/pca-image-compression | c8e52acd855cc2aff842967c11b7aeeacf8e0f3d | 734282c32ab76da9a55b6a912c1ababfade6cb23 | refs/heads/master | 2020-05-15T10:38:52.418552 | 2019-04-20T23:45:23 | 2019-04-20T23:45:23 | 182,195,726 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,124 | r | global.R | # Packages ----
library(shiny)
library(EMD) # Lena's image
library(blockmatrix) # For creating block matrices
library(ggplot2) # Graphics
library(redR) # For MSE and PSNR measures
library(SPUTNIK) # For SSIM measure
# Loading data ----
data(lena) # Storage the image
# Functions ----
blockToObs <- function(block_matri... |
ad2106406837b11d40646fb906428e47a756a8f9 | 034af5f06904647579ab75acca51ca597611eca8 | /func-room.R | eb1ba58e2e1af5c674741df519ac14a10cfe7556 | [
"MIT"
] | permissive | rintukutum/DREAM-PretermBirth-SC2 | bc1218a0d70755655ce59ff8d2dfdcc6df803adf | f49a0ed96d36941a7ff14764594eb0fe73d4e024 | refs/heads/master | 2020-12-02T03:34:11.741355 | 2019-12-31T14:24:37 | 2019-12-31T14:24:37 | 230,874,237 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,804 | r | func-room.R | ctrl.sptd <- function(x){
x.ctrl <- x[idx.ctrl]
x.sptd <- x[idx.sptd]
df_ <- data.frame(
class = rep(
c('ctrl','sptd'),
c(length(x.ctrl),
length(x.sptd))),
value = c(
x.ctrl,
x.sptd
)
)
normal <- shapiro.test(df_$value)$p.value > 0.05
if(normal){
pval <- t.tes... |
34eb6636e8a3f8a1d17c6f1f6e76b73a35377358 | df5cfd2a2c753abae911f275b8842ae2905b0e98 | /tests/testthat/test-correlation.R | 13d8f0144c42cf0de5c91ecd6b11ad1ec9766887 | [] | no_license | cran/roahd | badc33125a145e40ad62ca4cb46dbb3686d1a004 | 678f7c77246bcbd290673ce405519eddb3a323f7 | refs/heads/master | 2021-11-23T08:04:45.984396 | 2021-11-03T23:10:02 | 2021-11-03T23:10:02 | 56,397,799 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,268 | r | test-correlation.R | # maxima() & minima() -----------------------------------------------------
test_that("maxima() works for functional data when `which = TRUE`", {
# Arrange
P <- 1e4
time_grid <- seq(0, 1, length.out = P)
h <- time_grid[2] - time_grid[1]
Data <- matrix(c(1 * time_grid,
2 * time_grid,
... |
c3c0c5281b141ecd384fe2a9fa73d679bdcdb6ab | 7eb63399fa00e3c547e5933ffa4f47de515fe2c6 | /man/serr.lgcpPredict.Rd | 71f11a4aa35097a21ca750e1c25fbd13e4b8d2b6 | [] | no_license | bentaylor1/lgcp | a5cda731f413fb30e1c40de1b3360be3a6a53f19 | 2343d88e5d25ecacd6dbe5d6fcc8ace9cae7b136 | refs/heads/master | 2021-01-10T14:11:38.067639 | 2015-11-19T13:22:19 | 2015-11-19T13:22:19 | 45,768,716 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 514 | rd | serr.lgcpPredict.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/lgcpMethods.R
\name{serr.lgcpPredict}
\alias{serr.lgcpPredict}
\title{serr.lgcpPredict function}
\usage{
\method{serr}{lgcpPredict}(obj, ...)
}
\arguments{
\item{obj}{an lgcpPredict object}
\item{...}{additional arguments}
}
\value{
... |
501faccfb23e26f090d46c5a4b5bc247d20813ca | 89f7311158c333e2e35f12fda6af01e00d9ca55d | /man/preprocess_experiment.Rd | b7cf0ff711c0b9e22a565280e120912ef1175def | [] | no_license | BrainVR/brainvr-gonogo | 282b3165f606203cc4c20c6baaeeea04b923996f | b7c133822d2c54311c229a89f106f9c2229e644e | refs/heads/main | 2023-09-01T14:59:20.664380 | 2021-10-30T20:44:14 | 2021-10-30T20:44:14 | 384,252,148 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 385 | rd | preprocess_experiment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gonogo-preprocessing.R
\name{preprocess_experiment}
\alias{preprocess_experiment}
\title{Prepares experimental data to cleaner stats}
\usage{
preprocess_experiment(df_experiment)
}
\arguments{
\item{df_experiment}{}
}
\value{
}
\description{... |
89d2353b8781f73823b73d2141d4d1b3582c03d9 | 5bae3c3cd5e47b3088e0fb6478a60ae74e8f7767 | /rawdata/rawcleandata.R | d2e0b157772f1cb3dabe98a640275598fa5d2eea | [] | no_license | gravatarsmiley/capstoneR | 04d4093e63815b3ec91102c1a0ec8f6b869e5838 | 28154a9e672b1a23d5a76233ef380eb193b08b85 | refs/heads/master | 2020-03-20T19:15:23.746641 | 2018-06-24T22:27:07 | 2018-06-24T22:27:07 | 137,628,993 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 365 | r | rawcleandata.R | # Load and clean up the NOAA data, and put .rdata into the data directory
# need devtools, dplyr, readr
library(devtools)
library(dplyr)
library(lubridate)
library(readr)
library(stringr)
# read in the raw data
raw_NOAA <- readr::read_delim('./rawdata/signif.txt',delim = '\t')
# now use data
clean_NOAA <- eq_clean_d... |
693251f3d29d788d5547590e0ef8d8195e886491 | 7f1fbfc87e553e2304f80c16b523ffd3dd57dedf | /plot4.R | b457820a5312cf684fda17136786fedaf8f3352b | [] | no_license | rupesh2017/ExData_Plotting1 | b8cb1821b1b9397b0b93274a32daa0589c1b1f52 | 652bea9363743d7aa972a05859fd7f0e7ad1136d | refs/heads/master | 2020-03-22T00:12:27.840224 | 2018-06-30T08:01:48 | 2018-06-30T08:01:48 | 138,697,007 | 0 | 0 | null | 2018-06-26T06:55:02 | 2018-06-26T06:55:00 | null | UTF-8 | R | false | false | 1,661 | r | plot4.R | #set working directory
#reading data
#find column class to read file faster
a <- read.table(file="household_power_consumption.txt",header=TRUE,sep=";",nrows = 5)
classes <- sapply(a,class)
#read the file
file <- read.table(file="household_power_consumption.txt",header=TRUE,sep=";",nrow=2075259,colClasses = cla... |
782ef9e894eb5c17c5994ebc040cc187d8770ca2 | cbb287e2060194451f8f4dc4b68dc9de5b20a8d9 | /cachematrix.R | b682eb00d48ce24653af49c05ffdb5405cadb710 | [] | no_license | DonResnik/ProgrammingAssignment2 | 7410c028818a2d8f6483c392e0de20cfa370e57a | fdff4bdba81e3ba9f533194eee1221838b9898f8 | refs/heads/master | 2021-01-15T13:52:35.622413 | 2016-03-25T01:08:05 | 2016-03-25T01:08:05 | 54,630,293 | 0 | 0 | null | 2016-03-24T09:27:26 | 2016-03-24T09:27:25 | null | UTF-8 | R | false | false | 1,200 | r | cachematrix.R | ## makeCacheMatrix - takes in a matrix, and sets up
## a cache to store a value related to the matrix
## that can be retrieved using internal getmatrix() method
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function()
setmatrix <... |
928ca4f8d6b749e6604c4cfbcebfe9a3d3a43a52 | 77ef73c072c75fc92d313d404fa1b6df50a53e40 | /man/cyto_details_save.Rd | c8824cc4e1ac40d215c710e6f12ed42eeb79d30d | [] | no_license | DillonHammill/CytoExploreR | 8eccabf1d761c29790c1d5c1921e1bd7089d9e09 | 0efb1cc19fc701ae03905cf1b8484c1dfeb387df | refs/heads/master | 2023-08-17T06:31:48.958379 | 2023-02-28T09:31:08 | 2023-02-28T09:31:08 | 214,059,913 | 60 | 17 | null | 2020-08-12T11:41:37 | 2019-10-10T01:35:16 | R | UTF-8 | R | false | true | 893 | rd | cyto_details_save.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cyto-helpers.R
\name{cyto_details_save}
\alias{cyto_details_save}
\title{Save experiment details to csv file}
\usage{
cyto_details_save(x, save_as = NULL)
}
\arguments{
\item{x}{object of class \code{flowSet} or \code{GatingSet} annotated wit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.