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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d14a5b84533c7a5daafcf3274dbb7c42dc6c612e | 05944c8290bb327657629ddf17c8756e14b7057b | /session3.R | 7d3e853e8c94ccc7ca4ef989364652645316f529 | [] | no_license | nateapathy/hsR | f2bd0a020b60803084db50afa6c90eaf7c944c2b | 4ee0cefb184c611c7302d78a7da1378b40040bbd | refs/heads/master | 2023-06-23T16:41:45.423148 | 2019-01-11T16:17:07 | 2019-01-11T16:17:07 | 388,572,626 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,379 | r | session3.R | ##################################################
############### Session 3 R Script ###############
################## hsR tutorials #################
################## Feb 15, 2018 ##################
################### Nate Apathy ##################
##################################################
## LOAD PACKA... |
e75ae6278e31eec08078bdb0f9d61f62546f99f1 | 78d7ca4e749d5fba192c2dc3c05035e0ef342b87 | /script.R | 36113eaad6a03e2aa8fdb83819dac17c4db92e4d | [] | no_license | rougerbaptiste/RPCE.last | a6b4f993ff39ddebed8b8f30af83ff7cc5aa3e3a | 3d889d00f57f670cc222ea417ec9284d16133330 | refs/heads/master | 2016-09-13T04:17:59.532556 | 2016-04-18T13:44:20 | 2016-04-18T13:44:20 | 56,410,000 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,989 | r | script.R | rm(list=ls())
library(ggplot2)
dpi8 <- read.table("8dpi.csv", header = TRUE, sep = ";", stringsAsFactors = FALSE)
dpi8$KNO3 <- as.factor(dpi8$KNO3)
dpi8$NaCl <- as.factor(dpi8$NaCl)
dpi8$souches <- as.factor(dpi8$souches)
data <- data.frame()
for (S in levels(dpi8$souches)) {
for (K in levels(dpi8$KNO3)) {
... |
e68a97e94958c208e70ed3037fb3aa795ad4da44 | 5fe207e5b903cae727b8b006b9063599d70bc9cd | /man/cClass.Rd | d4e185b768aca81591a31d268c1bf3752e3990f8 | [] | no_license | cran/BIOdry | dc36fa1158684e5fc79c19ec83f82252ad5690b5 | a8c849bb7b577debcabe177afde5d9ed9232f8a4 | refs/heads/master | 2022-05-11T09:58:57.665427 | 2022-05-02T18:52:02 | 2022-05-02T18:52:02 | 48,850,280 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,062 | rd | cClass.Rd | \name{cClass}
\alias{cClass}
\title{Column-class extraction.}
\description{Column names of multilevel data sets are extracted according to
three classes: \code{numeric} values, \code{integer} sequences,
and \code{factor} levels.}
\usage{cClass(rd, cl = "all")}
\arguments{
\item{rd}{\code{data.frame}. Multilev... |
bc495b7f73e28ff699cf5f6f27b42a65fbea3859 | c8d24378e70933c30a99f4cb0097d9eeccca2b30 | /code/archive/katjaReplication/table6.R | cf6f9b86ebe43b71d57e7bc6dc55adc3165ee0f5 | [] | no_license | emallickhossain/OnlineShoppingSalesTax | 83fe86d18b8b3755261f8fac3cf0dcf75b3896c0 | d7f26f0dc1dd0760c3d1cb42717808fecf8bc953 | refs/heads/master | 2021-01-14T01:14:21.098275 | 2020-07-09T19:10:30 | 2020-07-09T19:10:30 | 242,553,500 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,252 | r | table6.R | # Loading data
library(data.table)
library(readxl)
library(Quandl)
load('/home/mallick/Desktop/comScore/Transactions.rda')
# Restricting to Amazon categories and transactions between 2006-2014
amazon_categories <- c(1:40, 54:56)
start_count <- nrow(transactions)
transactions <- transactions[year >= 2006 & year <= 2014... |
f3bfe98f1f06866dfcc3c3392a51d8209f990938 | 0476f2bd245afe4b630aeab628499df2d91517db | /R/GetIsotopeDistribution.R | ed69538ef28caff383bde49efc3b8c23b33c5039 | [] | no_license | cran/InterpretMSSpectrum | d07f32034e3f68ab719c6827a4b1529f8d7fb503 | ecf9604cfde5dd22a057b17ad2272cde7351157d | refs/heads/master | 2023-07-24T03:18:25.154905 | 2023-07-07T14:00:02 | 2023-07-07T14:00:02 | 67,487,289 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,339 | r | GetIsotopeDistribution.R | #' @title GetIsotopeDistribution.
#'
#' @description \code{GetIsotopeDistribution} will generate an isotopic distribution for a given formula.
#'
#' @details not exported
#'
#' @param fml sum formula.
#' @param res MS resolution. Yet experimental, may fail.
#' @param n Number of isotopes to calculate.
#' @para... |
f85c53e341a12674f6f11e814c8c40cae70ea341 | 4d0000760bdcb420f51b23f8f571751db7f265fa | /man/theme_set_update_ffsched.Rd | 0280319527a90bcfe6f4b262027f6196fc19502c | [
"MIT"
] | permissive | tanho63/ffsched | 430a9f03ab04c0c13e8f693b25d95c19bb49bc70 | dbefa7be279ea08efaa562ebb5648962bb197900 | refs/heads/master | 2023-06-05T05:32:26.482019 | 2021-06-27T17:03:04 | 2021-06-27T17:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 333 | rd | theme_set_update_ffsched.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.R
\name{theme_set_update_ffsched}
\alias{theme_set_update_ffsched}
\title{Theme for ggplots}
\usage{
theme_set_update_ffsched(...)
}
\arguments{
\item{...}{Extra arguments to pass to \code{ggplot2::theme_update}}
}
\description{
Theme f... |
0ca71f71cfba224c6297bc4267c964522a368efe | b54f3f525c94e1deadd8175d5ce0a43230ba4aa0 | /R codes/predict_class.R | 70222f2daa3551db7c50bf0c800c14d46c199502 | [
"Apache-2.0"
] | permissive | AjitR/Kym-credit-score-master | 75a6967d667a8a9b97c429d6489d17a8ac3b7e60 | c8118700c71e54846a174b6cbf6efb2db3a07314 | refs/heads/master | 2020-07-17T08:52:17.990251 | 2019-09-03T04:26:55 | 2019-09-03T04:26:55 | 205,988,433 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,807 | r | predict_class.R | library(mongolite)
library("nnet")
users <- mongo(collection = "users", db = "r_db", url = "mongodb://localhost", verbose = TRUE)
user_info <- mongo(collection = "user_info", db = "r_db", url = "mongodb://localhost", verbose = TRUE)
currentDate<-Sys.Date()
month<-format(currentDate,"%m")
year<-format(currentD... |
a026c2a60957139e71de9ccf3efd99c096bd290b | a2d1e6c040cf70f9f4b6c224bf767538efc15c61 | /czesc1/man/htmls_movie.Rd | 8c0083ecd6f43fab072d6796dc8009539844c4d5 | [] | no_license | jjankowiak/Filmy | 3f054542d23abb7fc5c47539d530a9b7689d70a3 | 801683a300df9d4abb5d0893b184be13c2191454 | refs/heads/master | 2021-06-02T21:37:32.279871 | 2016-04-02T15:40:34 | 2016-04-02T15:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 542 | rd | htmls_movie.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/htmls_movie.R
\name{htmls_movie}
\alias{htmls_movie}
\alias{subtitle}
\title{Parse many of HTML pages for actorS AND director}
\usage{
htmls_movie(www, selector)
}
\arguments{
\item{www}{A link - see full cast from imdb.}
... |
53c942697a4384d8729fbf4c9f8d4cf7fc4825f2 | f67f623d4ce2f082b89bfad9edaae6e139df141e | /3- Getting and cleaning data/week2/week2 Quiz code.R | 060d530a918d503df323019bde0186c78fc19e7d | [] | no_license | pauldublanche/Coursera-Data-Science-Specialization | 249d17fd5b881dd9d60a2367be8c786ce17fc148 | 4d7db99f4196dee6117cc7531cd737ad97e559fe | refs/heads/main | 2023-04-02T08:06:34.007256 | 2021-04-14T21:31:34 | 2021-04-14T21:31:34 | 350,350,362 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,479 | r | week2 Quiz code.R | ### Question 1
library(httr)
oauth_endpoints("github")
myapp <- oauth_app("github",
key = "My Cliend ID","
secret = "My Client Secret",
)
library(httpuv)
github_token <- oauth2.0_token(oauth_endpoints("github"), myapp)
gtoken <- config(token = gith... |
d6dc62ed75d3bfef8e7bdb391f8955b4061ec86a | d0f7612a8fefc15f5645e99769b590c60f402058 | /Spring2016_PS2.R | 56d9f9a9f4475fa81f6f8fb2145cd2fe16825c55 | [] | no_license | jngod2011/nyu-econometrics | fd1b1c75d35bab0932e9a4ce47528c30883ad400 | ed9f4cd501f89257dc8a181a98fdde258b592bfa | refs/heads/master | 2021-01-11T22:59:20.849238 | 2016-11-03T16:44:59 | 2016-11-03T16:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,513 | r | Spring2016_PS2.R | ### PS2 - ASE - Richard Godfrey Due 03 March
crime_edit <- read.delim("crime_edit.csv", header=T, sep=",")
# ### Use the data in crime.txt for the years 1972 and 1978 for a two-year panel
# data analysis. The model is a simple distributed lag model: log(crimerateit) =
# θ0 + θ1d78t + β1clrprci,t−1 + β2clrprci,t−2... |
a73b4b73752dc6e347e0c27f0e1fd9110547e609 | 83773b7e19d021b6e0edfe12f11334dfeb5f2875 | /LSE_inference.R | f31600bbdc80e4ed2b820e0d75059cac0d7603d0 | [] | no_license | shizelong1985/MSAR_code | 6f1ed79fa499711b5df98221b0d922f248c1337e | fcbef6674e457335da7c61666eb3fa131a3792a0 | refs/heads/master | 2023-03-20T19:04:18.220442 | 2021-03-13T08:17:58 | 2021-03-13T08:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,524 | r | LSE_inference.R | MSAR.Lse.Sig1<-function(vecY, W, ww, N, p, q, D, Sige, Omee,
S, tS, S1, m, OmeeS, tSe, SYX, IX, IXbeta)
{
### define frequently used matrices
In = Diagonal(N, x = 1)
Inp = Diagonal(N*p, x = 1)
### by eigenvalue decomposition, we have \Sigma_e = Q Lambda t(Q)
### here Q = ee$vec... |
e3dbe691802542d22d493ec082d0154d01cc3886 | bc3a58c0f3abd24f4f64f641152c09b79efefe38 | /man/geno_pca_pooled_addPC2GenoDS.Rd | a63e9d50c834024b718e8259088cd4607e6ec0ac | [
"MIT"
] | permissive | isglobal-brge/dsOmics | 96aa2594cbe009f2899d99fdc5be43a96f50d6bf | 78fee19320cdf360db7ec1aed2fb07ee4c533951 | refs/heads/master | 2023-04-07T09:23:17.202083 | 2023-03-15T09:31:40 | 2023-03-15T09:31:40 | 158,839,360 | 1 | 12 | MIT | 2021-02-02T10:21:06 | 2018-11-23T13:55:17 | R | UTF-8 | R | false | true | 484 | rd | geno_pca_pooled_addPC2GenoDS.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PCADS.R
\name{geno_pca_pooled_addPC2GenoDS}
\alias{geno_pca_pooled_addPC2GenoDS}
\title{Add PCA results to the phenotype slot}
\usage{
geno_pca_pooled_addPC2GenoDS(geno, pca)
}
\arguments{
\item{geno}{\code{GenotypeData} object}
\item{pca}{\... |
b3823e3b73d0db2cbd6b37db1920980c5ad94076 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/intrinsicDimension/examples/ide.Rd.R | 7bfaee91ca73f96c67b9a1261cf4b2ec67948911 | [] | 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 | 462 | r | ide.Rd.R | library(intrinsicDimension)
### Name: ide
### Title: Intrinsic Dimension Estimation
### Aliases: localIntrinsicDimension globalIntrinsicDimension
### pointwiseIntrinsicDimension
### ** Examples
data <- hyperBall(100, 4, 15, .05)
localIntrinsicDimension(data, .method='essLocalDimEst', ver = 'a', d = 1)
globalIntri... |
17cb3fc87f4db29bb54a50e3caa87bff480a2ce9 | 118e7bdbe4353670ee1b39a71ec6824177f1260d | /beta_comparison_using_r/beta_comparison_over_time.R | 2efb6ca18cdfe8a374cd429406dc777ee09deb8d | [
"MIT"
] | permissive | GabrielReisR/econometrics | 547a2d23682bd34dab5845ba51715173f768a16f | 4a0f01c5ca360d9ef055e55f08c49638be2a45c2 | refs/heads/main | 2023-04-01T23:48:43.135204 | 2021-04-02T15:14:31 | 2021-04-02T15:14:31 | 353,723,060 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,922 | r | beta_comparison_over_time.R | # Initializing ====
#' This code is based upon the great work of Henrique Martins
#' https://www.linkedin.com/in/henriquecastror/
#' Post that this was based on:
#' https://henriquemartins.net/post/2020-08-18-betas/
#'
#' The originality here refers to the creation of a gif showing the betas over
#' time, with annotat... |
7b0e7a2752a69e6212935f00983b151324d43c3e | c459dd32d88158cb064c3af2bc2ea8c7ab77c667 | /recluster/recluster_cell_groups_in_integrated_data/findallmarkers_roc.R | f9ca0f6b62a7f4111018fab6fcc225fb6886b843 | [] | 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 | 3,056 | r | findallmarkers_roc.R | #!/usr/bin/env Rscript
## library
packages = c(
"ggplot2",
"Seurat",
"dplyr",
"plyr",
"data.table"
)
for (pkg_name_tmp in packages) {
if (!(pkg_name_tmp %in% installed.packages()[,1])) {
print(paste0("No ", pkg_name_tmp, " Installed!"))
} else {
print(paste0("", pkg_name_tmp, " Installed!"))
}... |
f8a0088d5a38f3d71236f14b1448b995ed5fe5f7 | d03fa242790f0fae15250021be21c5594ce0529d | /man/totlos.fs.Rd | 46a3a1af025745f12bd780e97657cd649f5b24af | [] | no_license | Rumenick/flexsurv-dev | 31efb020780f97787650070c2da5f52536648f66 | 7d4ed2f8c59b52626ae35ec347c4e58e91dddfb5 | refs/heads/master | 2021-01-16T21:13:04.435349 | 2015-02-13T16:33:13 | 2015-02-13T16:33:13 | 30,904,969 | 1 | 0 | null | 2015-02-17T06:09:20 | 2015-02-17T06:09:20 | null | UTF-8 | R | false | false | 5,621 | rd | totlos.fs.Rd | \name{totlos.fs}
\alias{totlos.fs}
\title{Total length of stay in particular states for a fully-parametric,
time-inhomogeneous Markov multi-state model}
\description{
The matrix whose \eqn{r,s} entry is the expected amount of time
spent in state \eqn{s} for a time-inhomogeneous, continuous-time Markov
multi-sta... |
2cdd287fa683bc8bbf8d9e6fdebfd640c577efb1 | ab6b305b5b85bf7a97adf4f96a2c005d2d55a16f | /Bachelor thesis/Podstawowe_statystyki_opisowe_korelacja.R | c24ad813eb3cdd992e683e122c12609c8b004e93 | [] | no_license | Smialku/Statistical-Research | 7b368fe7b2dd5ee4650683f1d61b4f536c359dfe | 62b571db792c23e0893f217818330f9914afcdd9 | refs/heads/master | 2022-12-24T12:42:47.295131 | 2020-10-06T10:05:33 | 2020-10-06T10:05:33 | 300,281,972 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,335 | r | Podstawowe_statystyki_opisowe_korelacja.R | install.packages("klaR")
install.packages("devtools")
install.packages("mda")
install.packages("corrplot")
install.packages('car')
install.packages("Hmisc")
library(tidyverse)
library("Hmisc")
library(MASS)
library(klaR)
library(psych)
library(caret)
library(car)
library(corrplot)
theme_set(theme_classic(... |
0b77801256a6c4a0a8c309063358b5cf2d6cb47b | 80dcfe7d11a2c4825584fb9470c43aafd28d44ca | /man/getdir-methods.Rd | 99b6a006c943c5d73dc27b325e90062bfef0cf92 | [] | no_license | kieranrcampbell/SpatialPRo | 53880ef9925dceb48b3092d0fe6e25c2299ead73 | 248b90ca1e743e3fd7e9520a49af9a61489a0353 | refs/heads/master | 2020-04-14T12:41:35.080843 | 2014-09-05T09:04:15 | 2014-09-05T09:04:15 | 20,485,528 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 382 | rd | getdir-methods.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{methods}
\name{getDir}
\alias{getDir}
\alias{getDir,SPExp-method}
\alias{getDir,SPExp-methods}
\title{Experiment directory}
\usage{
getDir(object)
\S4method{getDir}{SPExp}(object)
}
\arguments{
\item{object}{The instance of SPExp to use}
}
\description{
Ret... |
dce61a42344b83f5bbd15787a76a7606408fc86c | 296ce960a1effec3f575461a86ccaa97f99c6cef | /Scripts/02_DDC_HFR_Validations.R | cce0e692f5dd4e17d23e37177e15aa1621c0eb7f | [
"MIT"
] | permissive | baboyma/hfr-wrangler | cd4bad523c869c80a98de60b2ffcfd3fa257c2c9 | 84653f52a9db5def57fac714ab613d5e9d486ef8 | refs/heads/master | 2023-03-01T02:33:28.350261 | 2021-01-27T19:27:31 | 2021-01-27T19:27:31 | 298,098,196 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,663 | r | 02_DDC_HFR_Validations.R | ## PROJECT: DDC/HFR Data Processing
## AUTHOR: B.Kagniniwa | USAID
## LICENSE: MIT
## PURPOSE: Validate Trifacta Outputs
## Date: 2020-01-06
# LIBRARIES ------
library(tidyverse)
library(glamr)
library(janitor)
library(lubridate)
library(aws.s3)
library(glitr)
library(extrafont)
# QUERIES ----
# DSE Tab... |
c208fed8675e21c384b9cfd62c3282def1028a7e | dbc2af76893a0b669f2d9a032980c2111bfbc4d5 | /tests/testthat/test-add-up.R | 260306d19c8478aaac800df2cc3f732e502fa851 | [
"MIT"
] | permissive | thomasblanchet/gpinter | e974de36c0efd4c8070fb9b8cc0311bb10c356df | 0ce91dd088f2e066c7021b297f0ec3cecade2072 | refs/heads/master | 2022-11-28T11:18:10.537146 | 2022-11-22T16:22:40 | 2022-11-22T16:22:40 | 72,655,645 | 19 | 5 | null | 2017-04-19T08:25:44 | 2016-11-02T15:51:21 | R | UTF-8 | R | false | false | 1,995 | r | test-add-up.R | test_that("Adding up is consistent with Monte-Carlo", {
set.seed(19920902)
n <- 1e6
# Parameters of the tabulation
p <- seq(0, 0.9, 0.1)
k <- length(p)
# Parameters of the first Pareto distribution
alpha1 <- runif(1, min=1, max=3)
mu1 <- 5*rexp(1)
# Parameters of the second Pareto... |
9f7b4a3be72e8cf977b9f48492e6da9d96e303e7 | 40789ceef1acaddd0d52c325edf867ccda56fcc6 | /cachematrix.R | 9fcc3646246fed307bfaf284d97b49d5486045fa | [] | no_license | SSD97/Rprogramming | 7c8943d613bbc4d45f1076de545749fcdb152bb7 | 0cb8de223e872a4261c4dadfc8791cfaeb0453b9 | refs/heads/master | 2022-10-01T22:58:00.914112 | 2020-06-06T19:44:07 | 2020-06-06T19:44:07 | 270,079,806 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,213 | r | cachematrix.R | ## Creates a matrix object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
#Empty inverse matrix
a <- NULL
set <- function(y)
{
#sets matrix value in parent env
x <<- y
#sets empty inverse matrix in parent env
a <<- NULL
}
#To get the value of matrix
get <- ... |
5ea1667ef4455a5e13abdcf81fbbac0105a7e9d0 | 527a5c6166dce36e26c26ce3a331dc0826f75062 | /MAHENDRA_NANDI_R.R | 528700075b23457916b18e53c48c9a4ffa310da0 | [] | no_license | dal3006/books-review | ac8d1ff6b21afd61782148ac7c3282b5c3f73ac2 | b208343140fbae7c335f10c290f34c07df9d1b00 | refs/heads/master | 2023-06-29T01:16:09.120753 | 2021-08-10T19:36:54 | 2021-08-10T19:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,395 | r | MAHENDRA_NANDI_R.R | # VISUALIZATION PROJECT ON " GOOD_READ_BOOKS "
# UNDER THE GUIDENCE OF : PROF. SUDEEP MALLICK
#Visualizing different factors for having a good review of books
#
#________________________________________________________________________###
#..
library(ggplot2)
library(dplyr)
#R... |
24f64ac115a4f431f4a721af938678f991346cfc | 98fd03ebd9de52038f06cd89200a460432f9cc5c | /man/is_url_subpath_of.Rd | e59f69b2360e7e69a92cb49ae65c4bb1e5feb001 | [
"MIT"
] | permissive | pharmaR/riskmetric | 51d3b067da6db6ad1252f3ba706db1d922b5df64 | 3d1501880edc07cff5cd72129c0df0899db83029 | refs/heads/master | 2023-07-26T07:33:56.471690 | 2023-05-31T14:58:21 | 2023-05-31T14:58:21 | 173,354,970 | 148 | 32 | NOASSERTION | 2023-09-12T20:41:31 | 2019-03-01T19:11:16 | R | UTF-8 | R | false | true | 520 | rd | is_url_subpath_of.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{is_url_subpath_of}
\alias{is_url_subpath_of}
\title{check if a url originates from a list of repo urls}
\usage{
is_url_subpath_of(url, urls)
}
\arguments{
\item{url}{a url which may stem from one of the provided base urls}
\ite... |
0f71991cc5524e89677c4df7207cc848eed965c5 | 17cc1e57a778ad66aaebde9c5da53304f396888a | /R/tbls.r | 4892578ae94a0ed944d863759e0614892fe73245 | [
"MIT"
] | permissive | romainfrancois/valr | f50735394380d9d3b80142c6160b56083aeaebae | 0ea8fe97390157e138798800423bb4858a21cd49 | refs/heads/master | 2022-06-17T12:45:19.518621 | 2020-04-23T18:22:12 | 2020-04-23T18:22:12 | 261,138,333 | 0 | 0 | NOASSERTION | 2020-05-04T10:02:07 | 2020-05-04T10:02:07 | null | UTF-8 | R | false | false | 5,501 | r | tbls.r | #' Tibble for intervals.
#'
#' Required column names are `chrom`, `start` and `end`.
#'
#' @param x A `data_frame`
#' @param ... params for [tibble::tibble()]
#' @param .validate check valid column names
#'
#' @rdname tbl_interval
#'
#' @examples
#' x <- tibble::tribble(
#' ~chrom, ~start, ~end,
#' 'chr1', 1, ... |
e4e0bfee631fab616117a8094b37fef5207fc006 | 0d315ff6485911c05b531ebb60a6262b8b87c1ba | /ticket or warning.R | 4ed316027a816c1f12fdb25d9149f9fc5592aef1 | [] | no_license | AJTorgesen/Random-Forest | 3d5cc57ae758dc1b46747c389771dc04e8f6cc9f | 4edc697f608f925d5d3ecf39e295ada4eed20176 | refs/heads/master | 2020-03-18T04:55:37.911948 | 2018-05-21T19:17:22 | 2018-05-21T19:17:22 | 134,314,100 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,091 | r | ticket or warning.R | # Tree-based Classification
#Analysis Ticket or Warning?
#Montgomery County Traffic Stops Data
source('https://grimshawville.byu.edu/TrafficStops2017a.R')
#EDA
#Table of Categorical Response Variable
table(ticket.last$Ticket)
prop.table(table(ticket.last$Ticket))
#Create a dataset with half goods (wa... |
56d10da2e399779183cafa36eb7066e223bb4955 | c3ad72409aa613e85ab48ff71444fd6731f0dd90 | /R/my_ggarrange.R | d8ec56dc7a0febe59bac447361d4a77ad517c08b | [] | no_license | Nmoiroux/MalTransMod | 69e0a46061d88938be555712386d3b0c55cb847a | 6f3244aa09791a29d516857cdbd9e9886e1f093e | refs/heads/master | 2022-06-09T14:50:02.634739 | 2020-05-07T08:18:38 | 2020-05-07T08:18:38 | 169,445,777 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,766 | r | my_ggarrange.R | ggarrange <- function (..., plotlist = NULL, ncol = NULL, nrow = NULL, labels = NULL,
label.x = 0, label.y = 1, hjust = -0.5, vjust = 1.5, font.label = list(size = 14,
color = "black", face = "bold", family = NULL), align = c("none", "h", "v", "hv"),
widths = 1, heights = 1, legend = NULL, common.lege... |
79defd0f3703df3f7dbcf97477e5b889079c9411 | c8d9fdea31b02611539f3cd121be88991f085fa7 | /Tests/Paper/substanceP_masses.R | f331e39eeff836a1efae13d3ab2a9d6e43982226 | [] | no_license | MatteoLacki/MassTodonPy | 1f593da71540f6a855ebd950ab1db6e6b050e976 | eaed6678fa6a442c9c346674d40404dc781a2f52 | refs/heads/master | 2021-01-19T18:30:59.082013 | 2019-01-18T19:22:07 | 2019-01-18T19:22:07 | 88,361,578 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 620 | r | substanceP_masses.R | library(IsoSpecR)
library(tidyverse)
ENVELOPE = IsoSpecify(molecule = c(C=63, H=97, N=17, O=14, S=1), .99, showCounts = T)
ENVELOPE = ENVELOPE %>%
tbl_df() %>%
mutate(prob = exp(logProb))
monoisotopic = ENVELOPE %>% filter(prob == max(prob))
m_mono = monoisotopic$mass
sprintf("%.10f", m_mono)... |
5579be31125cd165d395ee14f2a13b340e9c0490 | 117bdbc2b2380aeacec87cf6c8b24b18ab8c5bee | /man/permutation.wrapper.cat.inter.Y.and.X.Rd | 204b95f390f60291182f5c5c7fa49e9854cb5192 | [] | no_license | cran/PIGE | 1cc3f6aa9bfd47408be850188b1e3b7dfad90557 | 682c43bd19a050c6b5eb055f7184e5849e60cf94 | refs/heads/master | 2021-06-11T21:06:21.948691 | 2017-08-30T07:23:09 | 2017-08-30T07:23:09 | 17,681,352 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 396 | rd | permutation.wrapper.cat.inter.Y.and.X.Rd | \name{permutation.wrapper.cat.inter.Y.and.X}
\alias{permutation.wrapper.cat.inter.Y.and.X}
\title{Internal function used for the parallel computation on the permutation sample}
\usage{
permutation.wrapper.cat.inter.Y.and.X(x, mat, data,
model, var.inter, Outcome.model)
}
\description{
Internal function used for... |
87d182e746aab17da04825cd006886a996de6bfe | ce4bf7d18053aee8a5b9a85bbfe91ade7b895e6a | /Diabetes Risk Stratification/APFE1781393_main.R | 333750ddc8db688b5db5402020aab128cf501fb1 | [] | no_license | manohajx/Data-Analysis | 215547a82383e573cebf0f70c58842acb5f92f42 | cfaafda0a419e0198753ce666287e61ce20bd18f | refs/heads/master | 2020-04-14T14:39:34.689749 | 2019-01-05T04:08:38 | 2019-01-05T04:08:38 | 163,903,040 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,122 | r | APFE1781393_main.R | ##################################################################################################################################
#A care management organisation called WeCare wants to identify among its diabetic patients, the ones that are at high risk #
#of getting re-admitted to the hospital. They wish to inte... |
1acb557e6c430f8ce72ebad3303e3bab79f3c06d | 015bf4c3a06f14cc1355b9c64bc73609c12cfafc | /labels.R | 0df426b0e8c997ab43fb5eb48b9e856e141a7f64 | [] | no_license | PurityNyakundi/testDummy | 86ca93d858e362aca824c5895477246a44f99634 | 32906583fc9a74272bd4833921e4ef6b07f70028 | refs/heads/master | 2020-09-09T10:57:58.825891 | 2019-11-17T20:39:11 | 2019-11-17T20:39:11 | 221,428,814 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 103 | r | labels.R | ggplot(data = mpg, mapping = aes(x = class, y = hwy)) +
labs(caption = "(based on data from...)")
|
2797f6e030e784e3ec1f588a16495290fd13f656 | 0515fd8336ff2e95434aec3266b34edfe22068fa | /inst/shiny/v1.3/marker_genes/select_content.R | 4ff223147dae047f8046f3c788632a431816801f | [
"MIT"
] | permissive | romanhaa/cerebroApp | d4480945c0d80c49f94d9befe0cd5a8b7c0a624d | 0de48b67746bf5d5ad8d64f63ead3b599322fb26 | refs/heads/master | 2021-11-24T00:53:19.851143 | 2021-11-20T11:48:16 | 2021-11-21T17:09:50 | 178,224,933 | 35 | 17 | NOASSERTION | 2021-03-03T21:33:20 | 2019-03-28T14:52:29 | HTML | UTF-8 | R | false | false | 2,772 | r | select_content.R | ##----------------------------------------------------------------------------##
## Select method and table (group).
##----------------------------------------------------------------------------##
##----------------------------------------------------------------------------##
## UI element to set layout for selectio... |
4efb6e70f26461be2cb0cd2ce687aed2b210f7e2 | 420cac816c739b8f6a3581c1628d706f7d398beb | /R/E2vect.R | 3b234d46386c24c365f7c37c9d0a0d80b39b20ba | [] | no_license | cran/RobustAFT | d80a89efb8ffcc80b604d5959893210aab0ae31b | 357b7400ae0a4d0be157b6a46970eb04d8b9ea51 | refs/heads/master | 2023-08-31T10:42:53.415730 | 2023-08-21T16:40:02 | 2023-08-21T17:30:23 | 17,693,388 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 193 | r | E2vect.R | "E2vect" <-
function(xbar,kl,ku,l,u) {
i1 <- integrate(s2psiphi.w, lower=kl,upper=ku)$value
i2 <- integrate(s2chiphi.w, lower=l,upper=u)$value
E2 <- matrix(c(i1*xbar,i2),ncol=1)
E2}
|
81db3a6d7497393ab59fb3056334b51aa3f26eb1 | 9f59174bd4fe4f6912953446c4e675b30d040688 | /plot4.R | f4393d12a33ea0a3105d0a56d7080adde2a25749 | [] | no_license | kmajeed/ExData_Plotting1 | 61ac093fa14d35ff0abb2643687038e102c9ed44 | 41c5c4ef49eb6b06fc4e1e76c7e1d64b301c19a6 | refs/heads/master | 2020-12-27T08:57:02.901858 | 2014-09-06T15:22:16 | 2014-09-06T15:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,086 | r | plot4.R | plot4 = function(){
#Author: Khurram Majeed
#Date : 09/14
#------------------------------------------------------------------------
# Source the helper functions
source('setup.R')
source('get.feb.data.R')
#------------------------------------------------------------------------
setup();
get.feb.dat... |
7421aae86650281ab8a93ca6b0ad226c944d502e | 0d31d8a8b63ff605ab762dee441d3f45260f44bb | /ExPanDaR_examples.R | e5ef4cf924b107191dceb03b7bf5c2182ee12aa7 | [] | no_license | mdelcorvo/ExPanDaR | 891df423da6d41a85544d4331886fb0c171e21ea | b0f3e545046b1bae2e50d2be29e26bf6374ee259 | refs/heads/master | 2022-10-15T12:49:29.891071 | 2020-06-13T13:48:53 | 2020-06-13T13:48:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,913 | r | ExPanDaR_examples.R | # --- Header -------------------------------------------------------------------
# (C) Joachim Gassen 2020, gassen@wiwi.hu-berlin.de, see LICENSE for license
#
# This file contains some simple use cases for the ExPanDaR package.
# It is not a part of the package itself.
# -----------------------------------------------... |
9e849be578229daaff74a50f2059af9bbc966636 | 02659617733feef0c99257d9db5e8d550cd3036b | /data-geocoding-preprocessing/combine_locations.R | 1ad4a222527118d43bded0a384fc6617c3989b26 | [] | no_license | anqichen9856/carpark-availability | 1d69a51912a16a0680a20c61fdc34fa29af7d11c | 359bc8de1b6608d00a1ea896a0654ec66a936129 | refs/heads/master | 2023-06-22T23:55:57.614506 | 2021-07-22T06:14:43 | 2021-07-22T06:14:43 | 313,694,141 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,502 | r | combine_locations.R | library(dplyr)
attractions <- read.csv("data/data-processed/attractions.csv") %>% mutate(category="Tourist Attractions")
condominiums <- read.csv("data/data-processed/condominiums.csv") %>% mutate(category="Condominiums")
hawker_centers <- read.csv("data/data-processed/hawker_centers.csv") %>% mutate(category="Hawker ... |
ca91b68272726b595178e072c070cb73133a1284 | b76d6e98a247b75733f91398705c87680b884928 | /pipeline/scripts/plotting/hmm_rlefit.R | f7d9c9802bf9e8c6c73add116c51cab4f11f0c23 | [] | no_license | BenjaminPeter/admixfrog | f62042abab950db57b01fdc2db5d73831ef9e1b5 | c05bc5354d32848e14063c89cb4b4025d7f7e3d5 | refs/heads/master | 2023-03-15T16:22:27.679771 | 2023-03-03T17:47:02 | 2023-03-03T17:47:02 | 178,419,114 | 7 | 3 | null | 2022-12-06T12:46:05 | 2019-03-29T14:20:02 | Python | UTF-8 | R | false | false | 1,792 | r | hmm_rlefit.R | source("scripts/plotting/lib.R")
library(corrplot)
library(viridis)
bin_size = as.integer(snakemake@wildcards$bin_size)
panel = snakemake@wildcards$panel
infile = snakemake@input$bin
snpfile = snakemake@input$snp
names = snakemake@config$panels[[panel]]
cutoff = as.numeric(snakemake@wildcards$cutoff)
l_cutoffs = snake... |
b2d72e321576a2c8b2499c827d8b5d2c1d41a159 | 713597d4904ba5916f3d41f95bdeb42958eec54f | /Dscore_EPIC.R | 3474472baecca94570393b2b58d441c863504ab6 | [] | no_license | changwn/DCONVscore | 12f7c6d793b0f7b44c903cd0ea399fea15927f65 | 4f40bd21773165a0fcd235133054d8f8a2d34d76 | refs/heads/master | 2020-03-27T16:32:11.107061 | 2018-10-10T03:08:12 | 2018-10-10T03:08:12 | 146,790,039 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,264 | r | Dscore_EPIC.R | #
#
#
library(EPIC)
setwd("C:/Users/wnchang/Documents/F/PhD_Research/2018_08_23_deconvolution_score")
#---------------------------------------------------------------------------
# load data, which is ttt
load("C:/Users/wnchang/Documents/F/PhD_Research/2018_05_07_try_TIMER/data/RNAseq/coadRNAseq.RData")
# remove same... |
7a88e34d4cba21f25100ec790af6b082a0a06f4a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/inventorize/examples/MPN_singleperiod.Rd.R | 365fc1bc0b36a010bfbba827a03f9ee5bfefe5f2 | [] | 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 | 215 | r | MPN_singleperiod.Rd.R | library(inventorize)
### Name: MPN_singleperiod
### Title: MPN_singleperiod
### Aliases: MPN_singleperiod
### ** Examples
MPN_singleperiod(mean= 32000,standerddeviation= 11000,p=24,c=10.9,g=7,b=0,na.rm=TRUE)
|
bc53d4a323147b8d45ae70f281ece68e3c3db178 | d10994a78f1c1f458eea0e02449ac3640bacc48a | /Regression/GeneralizedLinearRegression.R | 76c92cc22f16ff8f9f9215d642395df763c4bc2a | [] | no_license | awe153/RDataMinningStudy | f2b3dd7bce39909f862d998e1e8abe6e0175d36b | 07652057745cfdfecc284ea4cf8b2a99106582b7 | refs/heads/master | 2023-05-26T09:28:52.926670 | 2014-11-11T12:20:09 | 2014-11-11T12:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,006 | r | GeneralizedLinearRegression.R | #GLM(广义线性模型)
#广义线性模型通过一个链接函数将响应变量与线性模型建立关联来概括线性回归,
#并允许每个测量的方差的大小是预测值的一个函数。它统一了其他统计模型,包括
#线性回归,logistic回归和泊松回归
#函数glm用于拟合广义线性模型,通过为线性预测通过一个象征性描述和误差分布的描述
#下面基于bodyfat数据集构建广义线性模型
data("bodyfat",package="mboost")
myFormula<-DEXfat ~ age+waistcirc+hipcirc+elbowbreadth+kneebreadth
bodyfat.glm<-glm(myFormula,family=gaus... |
79a869ec927b8f1aacb8d150ee0ef49d8884129c | 15617bea19680089ec4b425b507f6b0b328eb86c | /sport-or-not!/scripts/sport_or_not.R | 3e01d314e150bf718e3c257ae964f8e51167a748 | [] | no_license | GWarrenn/this-and-that | d8e11094dcf04c682362a1b4fe0b7d9143b79b0a | 18b1c1b7f023bcd938e9ae2ebcc8e7c5160448a7 | refs/heads/master | 2021-10-11T09:16:53.348763 | 2021-09-30T21:29:10 | 2021-09-30T21:29:10 | 214,073,327 | 0 | 0 | null | 2020-04-26T23:56:13 | 2019-10-10T02:58:28 | R | UTF-8 | R | false | false | 28,019 | r | sport_or_not.R | ## Author: August Warren
## Description: Analysis of Fringe Sports Survey
## Date: 1/13/2020
## Status: Draft
## Specs: R version 3.4.4 (2018-03-15)
library(tidyverse)
library(googledrive)
library(reshape2)
library(scales)
library(viridis)
library(tidytext)
library(tm)
library(ggnewscale)
library(stringr)
###########... |
6411628897dc672cd070b5283395273568aff895 | bc264aa3581a22a7da47caeb57d2ae073323b9e1 | /man/rast.grad.Rd | 1eadbab28dd2b5e4b7af911d0a85c890051f4a56 | [] | no_license | cran/ctmcmove | 41d6a5b48ebc2fd9498190de327e4ecc727d19c4 | 5cbe337b24700cc377687e1aa0d96f0fd25ca326 | refs/heads/master | 2020-05-21T04:22:14.594036 | 2018-04-20T12:58:33 | 2018-04-20T12:58:33 | 48,078,653 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,349 | rd | rast.grad.Rd | \name{rast.grad}
\alias{rast.grad}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Creates gradient rasters from a raster object.%% ~~function to do ... ~~
}
\description{
This function takes a raster stack or raster object and creates two
matrices for each raster layer, one which contains t... |
0ad3c5f09acaf52ec527060cc85b93d16bb78ca3 | c434a9125bace27cfb126ee77457623a518db685 | /man/RGBM.train.Rd | 408f3393cdbbbb604d5f02b4b5dee6ef95e64f3b | [] | no_license | cran/RGBM | 9d61162f6efa0e365e2ff0a84916c8a2d2e0a775 | 80c5df56a560c2f044dc968bc733d39a306fea8c | refs/heads/master | 2023-04-29T00:23:42.897347 | 2023-04-14T07:50:14 | 2023-04-14T07:50:14 | 82,651,760 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,680 | rd | RGBM.train.Rd | \name{RGBM.train}
\alias{RGBM.train}
\title{
Train RGBM predictor
}
\description{
This function trains a regression model for a given \code{X.train} feature matrix, \code{Y.train} response vector, and working parameters. A model returned by this function can be used to predict response for unseen data with \code{\link{... |
083588de59da6304de70845989a7c39dc69a2a88 | 5174953c11e87f54b9804c4b6a87d97088ea9f23 | /analysis_scripts/cell_cycle_annotation.R | 69924f595c4f4b0af51cf20961b6bc6021e744c9 | [] | no_license | bigfacebig/singlecellcd8ibd | bbf483c945043a4744d28444e33955b6fe638bb0 | b536c81d3d075ec999771a4d3a5dfdd2d6141ea2 | refs/heads/master | 2022-11-24T23:38:33.729495 | 2020-08-02T20:54:23 | 2020-08-02T20:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,099 | r | cell_cycle_annotation.R | library(scran)
library(stringr)
#read in seurat object
cd8.seurat <- readRDS("cd8.seurat.RDS")
##read in cell cycle marker pairs
cc.pairs <- readRDS(system.file("exdata", "human_cycle_markers.rds", package="scran"))
##read in 10x cellranger features table to convert to ensembl identifiers
genes <- read.table("... |
e3ddaa4f48c2a26c1d66d5086a4fa904dd29e4d9 | dbfe5ce272e204a8e1663ced35c9d48ef4870496 | /man/count.Rd | 234489fe7b50bac3b88f34802a1c831e838dace8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hmito/hmRLib | fac91a4e2ddfcd899283ec0b63c87c31965fb17f | f2cfd54ea491ee79d64f7dd976a94086092b8ef5 | refs/heads/master | 2023-08-31T07:21:31.825394 | 2023-08-28T10:02:07 | 2023-08-28T10:02:07 | 41,907,654 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 511 | rd | count.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/algorithm.R
\name{count}
\alias{count}
\title{Return counted number which is matched to the argument}
\usage{
count(what, from, condition = `==`)
}
\arguments{
\item{what}{value of sequence for finding}
\item{from}{index of this argument is ... |
d9e22c2508da28719dd3e873ef742ea643c700c1 | f474da4a51e7b398e12feb53116eae6776780cb6 | /backups/OneVsPAIRSbroken.R | d80e8bf41fa2c6f4b3aa25a4b111e3550d0bb3e7 | [] | no_license | HyperionRiaz/Matie | 79c4670015b4ad9134da9d9baaa461fc2ee858ab | 469bfa28ced1dcbbd46e9086c8fe44ecbae2e01b | refs/heads/master | 2016-09-06T06:50:00.318176 | 2013-06-21T22:09:08 | 2013-06-21T22:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,900 | r | OneVsPAIRSbroken.R | #THIS POS DOES ONE AGAINST ALL PAIRS. NOT BLOODY HELPFUL!
library("maatie")
args <- commandArgs(trailingOnly = TRUE)
#importedDat <- read.csv(paste("SelectedHealthWHO.csv", sep = ""), header = TRUE)
importedDat <- read.csv(paste("/var/www/files/",args[1],"/upload.csv", sep = ""), header = TRUE)
dims = dim(importedDa... |
4a718b6a1a73dcdc6fae6a193e2c762aa3a36216 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gofastr/examples/remove_stopwords.Rd.R | c9b33cffac7e12653690756bbc187e9df9cce61a | [] | 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 | 506 | r | remove_stopwords.Rd.R | library(gofastr)
### Name: remove_stopwords
### Title: Remove Stopwords from a TermDocumentMatrix/DocumentTermMatrix
### Aliases: remove_stopwords prep_stopwords
### Keywords: stopwords
### ** Examples
(x <-with(presidential_debates_2012, q_dtm(dialogue, paste(time, tot, sep = "_"))))
remove_stopwords(x)
(y <- with... |
6fd7314388a09130af781270bd168ca97d350778 | e3383aab16738b18137e6cfdc31291ab5a2b0a2c | /R/utils.R | e2a628e435d4c05f272d57740db4c9b90caab470 | [
"MIT"
] | permissive | TobCap/demagrittr | 0d1e89ccf4e413eddc8901851e68c9be26df91ec | 2f5c7b7a453cdab1f7dedcd8d3156c94800182fb | refs/heads/master | 2020-04-06T12:37:45.088084 | 2017-08-20T04:14:19 | 2017-08-20T04:14:19 | 36,976,974 | 35 | 2 | null | 2017-08-20T04:14:20 | 2015-06-06T11:02:57 | R | UTF-8 | R | false | false | 9,117 | r | utils.R | # ops <- c("%>%", "%T>%", "%$%", "%<>%")
# regexp_meta <- c(".", "\\", "|", "(", ")", "[", "]", "{", "}",
# "^", "$", "*", "+", "?")
# varname_prefix <- "#"
# devtools::use_data(ops, regexp_meta, varname_prefix,
# internal=TRUE, overwrite = TRUE)
utils::globalVariables(c("expr_", "i... |
5b7fce482ff19bf46c59b9b7c6e0e0ce54c87314 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/unfoldr/examples/simPoissonSystem.Rd.R | 4a876605d25910b0e19eb3e325bcbfd0129f6677 | [] | 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 | 639 | r | simPoissonSystem.Rd.R | library(unfoldr)
### Name: simPoissonSystem
### Title: Poisson germ-grain process
### Aliases: simPoissonSystem
### ** Examples
# intensity parameter
lam <- 100
# simulation bounding box
box <- list("xrange"=c(0,5),"yrange"=c(0,5),"zrange"=c(0,5))
# log normal size distribution with a constant shape factor a... |
434f22b5b97b049c490badbc3d46ea99f7a50a8c | e68e99f52f3869c60d6488f0492905af4165aa64 | /man/nn_bce_with_logits_loss.Rd | e4a44d859f7103fe24653d15b95ff3ddaf1c2f2f | [
"MIT"
] | permissive | mlverse/torch | a6a47e1defe44b9c041bc66504125ad6ee9c6db3 | f957d601c0295d31df96f8be7732b95917371acd | refs/heads/main | 2023-09-01T00:06:13.550381 | 2023-08-30T17:44:46 | 2023-08-30T17:44:46 | 232,347,878 | 448 | 86 | NOASSERTION | 2023-09-11T15:22:22 | 2020-01-07T14:56:32 | C++ | UTF-8 | R | false | true | 3,650 | rd | nn_bce_with_logits_loss.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-loss.R
\name{nn_bce_with_logits_loss}
\alias{nn_bce_with_logits_loss}
\title{BCE with logits loss}
\usage{
nn_bce_with_logits_loss(weight = NULL, reduction = "mean", pos_weight = NULL)
}
\arguments{
\item{weight}{(Tensor, optional): a manu... |
2065edc5f65ed091903dbf65c15b5d7ed5909999 | fde3e9217c41d1f3c43add920a5486a90a675a5d | /R/labResults.R | 4bc666b226a775ce86b57daab0bb0005261b398c | [
"MIT"
] | permissive | hzi-braunschweig/epla-muspad-interactive-report | 81fa544935059ad5c71af0cc194672f81d101787 | 064d0b01b8396cd2273f9f645ec2805a172ff783 | refs/heads/master | 2023-05-28T11:45:17.780830 | 2021-05-27T09:47:21 | 2021-05-27T09:47:21 | 363,172,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,068 | r | labResults.R | read_lab_results <- function(labresults_path){
# Reads results of lab analyses of blood samples
## Alle Datein
datein <- list.files(labresults_path, pattern = "^cov\\_202.*\\_hzi.*\\.csv$",
full.names = TRUE, recursive = TRUE)
# Add further CSV files manually
datein <- c(
datein,
... |
69955275f3878db0862ded18531ba1bce2367008 | 5812dff35a85efb65e3de3ff4f5cf28220dfe4a5 | /Course 2 - R programming/Week 4/SimulatingRandomSampling.R | e6e2c2ce762ec904516affb3fe5fc5af34a7c077 | [] | no_license | migduroli/datasciencecoursera | 4cbebd56ffdbd4412a552bbc5ccc2d61255b89d5 | 0c426f1a3baa87fb3f1d5ec23c30d5ec75628eb0 | refs/heads/master | 2021-01-17T11:24:45.237928 | 2017-02-09T23:34:25 | 2017-02-09T23:34:25 | 61,479,061 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 160 | r | SimulatingRandomSampling.R | set.seed(1)
# sample (List, howmany)
sample(1:10, 4)
sample(letters, 5)
sample(1:10) # This is a permutation
sample(1:10, replace = TRUE) # with replacement
|
980f1f7dc531e746d03091f05aa5d9bbfca25acf | a863b4265df643045e38df741f948e4c72773332 | /run_analysis.R | 42ae004ef57e8de4c3f26b02c42e887de9f61d5d | [] | no_license | bcdp5/getdataProject | dcf9b305bf94a106eafe16d198ca0b3f9cb26a90 | f9c4b4762e80410c5548bed0ebf3b3d65ff1a4bb | refs/heads/master | 2016-09-05T09:12:49.636868 | 2014-10-22T13:11:22 | 2014-10-22T13:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,533 | r | run_analysis.R | ################
## GETTING & CLEANING DATA: COURSE PROJECT
## Made by: bcdp5
###############
# Load library
library(data.table)
# 1.MERGE DATASET (train+test) -----------------------------------------------
#1.1 Handle common features, i.e. variables
variables <- read.table(file=".//UCI HAR Dataset//features.... |
d5a664214a3484021757b94a9e521c48fcfb7250 | 040db01c15e4e029f426bccdc76aa7c21f94bb35 | /tests/testthat/testtaskdatauncertain3.R | 8699721d2dbe753a6853d888db4dd0d83588df32 | [] | no_license | david-hammond/projmanr | 6bc4a974f39544ea06ec66294262f8dd0f367a49 | e4b0e1e301468293b533f5b3910067091a2e0a9d | refs/heads/master | 2023-06-25T09:33:12.024674 | 2023-06-15T05:28:50 | 2023-06-15T05:28:50 | 172,191,640 | 0 | 0 | null | 2019-02-23T08:41:40 | 2019-02-23T08:41:40 | null | UTF-8 | R | false | false | 3,398 | r | testtaskdatauncertain3.R | context("Critican Path on taskdatauncertain3")
library(projmanr)
library(igraph)
library(reshape2)
library(R6)
library(ggplot2)
test_that("Check approximate value of duration mean", {
res <- simulation(projmanr::taskdatauncertain3, 1000)
expect_equal(mean(res$durations) > 38 && mean(res$durations) < 42, TRUE)
})
... |
bf8dfc8623be667c6246f0803b5b005804b5c924 | 03cf1d7d1632d7846e1fb9e3634ad99cdd8bdb31 | /FinalGrade.R | 4d1be58ce0e3fb7bad075c7d7ef1982943272438 | [] | no_license | rahilshaik/SDMDataAnalyticsProject | b4ae356548f8352f728cce737b36c6c12e8e2b90 | 736bad0ff51dce9b2e4c3f81d34a713c24cbd2ef | refs/heads/master | 2020-04-16T08:22:59.520258 | 2019-01-12T18:43:53 | 2019-01-12T18:43:53 | 165,423,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,812 | r | FinalGrade.R | ##Reading .csv file into a variable
setwd("E:/USF/ISM6137-SDM/Project/student/Final/Final1");
schoolData=read.csv("SchoolDataFinal.csv")
rm(list = ls())
schoolDataPortu=schoolData[schoolData$Language == 'Portugese',]
nrow(schoolDataPortu)
hist(log(schoolDataPortu$number.of.school.absences))
boxplot(schoolDataPor... |
0a8a3a1bdb6b62bc536c0fe681df8c35140b4448 | 359c010d8b57231385e80e5f863c915504a4dbeb | /lab12.r | 3637cc277135b7d5b738cfcf3570944903dc9f47 | [] | no_license | paulinak2107/R-study | bd38cb3727f7d0b9c5e8fc587aa3bcbc2aa78c9a | f1385ee6e20716765412510046b047a5b0f113c8 | refs/heads/main | 2023-04-11T19:41:55.382851 | 2021-05-06T14:43:47 | 2021-05-06T14:43:47 | 364,942,095 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,153 | r | lab12.r | library(survival)
library(survminer)
rak <- ovarian
rak.surv <- Surv(time = ovarian$futime, event = ovarian$fustat)
rak.surv
#ggsurvplot(rak.fit, data=rak, pval = TRUE)
rak.hist <- hist(rak$age)
rak$age <- ifelse(rak$age >= 55, 1, 0) #granica podziału ===> 55 lat
# AGE
rak.fit.age <- survfit(rak.surv ~ age, data... |
7bdbf7ef9b962ad27691334a797314778093a7f5 | f2da63de512183804290bfcabfa60eaca3649e05 | /exercises/statistics/bayesian/albert/chap03/exercises/exercise-3-9-6/code/albert-exercise-3-9-6.R | 19f28698687fbf30f35d987f0a623474b1c0db55 | [] | no_license | paradisepilot/statistics | a94bb57ebe453d49c06815c523e8f633423cb68e | 50daf644baca1f40253edf91083ed42d4c5f9342 | refs/heads/master | 2022-07-25T16:19:07.751886 | 2022-06-26T21:18:38 | 2022-06-26T21:18:38 | 5,012,656 | 0 | 2 | null | 2019-04-22T06:52:55 | 2012-07-13T01:11:42 | HTML | UTF-8 | R | false | false | 911 | r | albert-exercise-3-9-6.R |
command.arguments <- commandArgs(trailingOnly = TRUE);
output.directory <- command.arguments[1];
####################################################################################################
setwd(output.directory);
library(LearnBayes);
library(ggplot2);
######################################################... |
c0554ae30bebcf3655bf431e468d84aa2706e108 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/revdbayes/examples/quantile_to_gev.Rd.R | 911fc4a23af924a8043cd1efda275ba12f04f80b | [] | 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 | 316 | r | quantile_to_gev.Rd.R | library(revdbayes)
### Name: quantile_to_gev
### Title: Converts quantiles to GEV parameters
### Aliases: quantile_to_gev
### ** Examples
my_q <- c(15, 20, 22.5)
my_p <- 1-c(0.5, 0.9, 0.5^0.01)
x <- quantile_to_gev(quant = my_q, prob = my_p)
# Check
qgev(p = 1 - my_p, loc = x[1], scale = x[2], shape = x[3])
|
2c0e3e964e313406aa061cd2462933eca8e8d7fd | f445fe1c05a8a343d32787d2e6815bd80546cbfa | /R/Statistics_210/midterm2.R | 997f76fba41dac5018cff0057a9104135e9b8e9d | [] | no_license | dillon4287/CodeProjects | f6d99986c811c7df7bb27b0fab6196861741bac7 | b7a9fa9f30cad84c5bdc58c757f051ebcfd4db73 | refs/heads/master | 2023-07-20T23:44:39.088933 | 2023-07-18T19:40:46 | 2023-07-18T19:40:46 | 77,807,396 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 241 | r | midterm2.R | #midterm2
library(leaps)
library(MASS)
library(permute)
library(corrplot)
wine <- read.csv("/Users/dillonflannery-valadez/Coding/R/Stat210/winequality-red.csv",
sep=";")
corMat <- cor(wine[, 2:12])
corrplot(corMat, method="number")
|
261c799b31e4f4349ea2f61c2f6411a59006a887 | 871d09fd5e25f649636e28148bb4280a4c489e8a | /Smile_Lines.R | aead70967d26b2d89a90cc91e25027aa0a79aeca | [
"MIT"
] | permissive | lynda-nguyen/Research-FALL18 | 06ea33eb7507cb0470833de16966f787c057042d | 8fd0da8d137c698fb2f4d36172979dfd3279b5c0 | refs/heads/master | 2020-03-28T11:16:34.387151 | 2018-10-26T16:40:06 | 2018-10-26T16:40:06 | 148,196,085 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,589 | r | Smile_Lines.R | # R
# 09/18/2018
# data source: https://arxiv.org/pdf/1702.07234.pdf
## Parameters used throughout the paper
# ball minimum circumference = 29.5 in (74.9 cm)
# ball minimum weight = 20 oz (567 g)
# d = distance from free throw line to basket = 4.6m
# H = basket rim to floor height = 3.05 m
# R = radius of basket rim ... |
a38aa4084ae15406db041ed9115d78e131f70c53 | c639cbad1939137ae9845d7a3d4d33d60bcaa038 | /man/databasesAvailables-function.Rd | 9402c3fd537aa1118132b92dcc20bbec65b0062a | [
"Artistic-2.0"
] | permissive | lamdv/rRice | 0fbff968d5798802726078264fb78e44655b2353 | d0261f358825fb8c5fe2399d64c2ee5de3c740fe | refs/heads/master | 2021-09-14T18:40:17.762372 | 2018-05-03T16:57:47 | 2018-05-03T16:57:47 | 107,843,725 | 0 | 3 | null | 2017-12-31T17:17:31 | 2017-10-22T06:48:22 | R | UTF-8 | R | false | true | 411 | rd | databasesAvailables-function.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbInformations-functions.R
\name{databasesAvailables}
\alias{databasesAvailables}
\title{Function to know the number of databases availables}
\usage{
databasesAvailables()
}
\value{
return the number of databases availables
}
\description{
th... |
13b3b6dd262d78d92ae22d6c6d80154fa23f0d4c | 2ec32b655522e967c9eac24fd949619aa93d5ab7 | /R/site-stats.R | 3c07d9669f9ead0c2057a620c9963050e357c35c | [
"MIT"
] | permissive | hrbrmstr/pressur | d387457e5ca126aa201b853e95cc9204a3c5601f | cacf682a85cdc37c2357df30fc241a1f1b73e5fb | refs/heads/master | 2022-11-08T17:08:07.810511 | 2020-06-28T11:57:44 | 2020-06-28T11:57:44 | 115,561,791 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,021 | r | site-stats.R | #' Get a site's stats
#'
#' @references <https://developer.wordpress.com/docs/api/1.1/get/sites/$site/stats/>
#' @param site site id or domain; if not specified, the primary site of the
#' authenticated user will be used.
#' @return list with a great deal of stats metadata. You are probably most
#' inter... |
fbcf9c59d71a09f966ab9a6666af2ee98744242c | 97c2cfd517cdf2a348a3fcb73e9687003f472201 | /R/src/GSFCore/tests/testSQLConnection.r | a0485ceba879f0479c75e853d5000407e91e99f1 | [] | no_license | rsheftel/ratel | b1179fcc1ca55255d7b511a870a2b0b05b04b1a0 | e1876f976c3e26012a5f39707275d52d77f329b8 | refs/heads/master | 2016-09-05T21:34:45.510667 | 2015-05-12T03:51:05 | 2015-05-12T03:51:05 | 32,461,975 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,837 | r | testSQLConnection.r | cat("\n\nTest cases for SQLConnection object\n\n")
library("GSFCore")
testInit <- function() {
conn <- SQLConnection()
checkTrue( is(conn, "SQLConnection") )
checkTrue(!conn$isConnected())
conn$init( )
checkTrue(conn$isConnected())
}
testSelect <- function() {
conn <- initSQL... |
7abc25d4a53c6acca37591d3bee60eb34670782c | d8d5dc6044a25cc6635a65ebd660f072033de5c3 | /inst/examples/shiny/tests/shinytest/mytest.R | 914315b8551f673bfd860d8609d65b0a24388f4d | [] | no_license | jtnedoctor/nomnoml | 968c89a49e8c251d1cb307fadddb617fe9c41d83 | de922462523c266bc4738ddb428291ec76b323a3 | refs/heads/master | 2023-02-02T02:31:30.451631 | 2020-12-17T08:30:27 | 2020-12-17T08:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 176 | r | mytest.R | app <- ShinyDriver$new("../../")
app$snapshotInit("mytest")
app$snapshot()
app$setInputs(textbox = "foo bar baz")
app$snapshot()
app$setInputs(textbox = "foo")
app$snapshot()
|
ff529a39ca949546dbccda19b9f6b3a56ab17039 | 2a97b1ca4ba91a59b8a6457bfb54a99806864213 | /man/pnadc_example.Rd | 4f134fa0bdb5cf99348b05c43c82cfa9238f5e06 | [] | no_license | BragaD/PNADcIBGE | a07020460f26ce34c3e9b7fa800253f0965b70fe | a573e9c9fa6675f5012438d717cd9cf554dc6c79 | refs/heads/master | 2021-06-26T10:17:13.830930 | 2018-08-23T14:31:56 | 2018-08-23T14:46:11 | 128,931,294 | 1 | 1 | null | 2020-10-15T02:09:10 | 2018-04-10T12:45:48 | R | UTF-8 | R | false | true | 402 | rd | pnadc_example.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example.R
\name{pnadc_example}
\alias{pnadc_example}
\title{Path for example data}
\usage{
pnadc_example(path = NULL)
}
\arguments{
\item{path}{Name of file. If `NULL`, the example files will be listed.}
}
\description{
Path for e... |
5692d30b87ce6ee13def64520f2ae50096c1b5c0 | af286c8e4688c1ca310605d33d74ac6bc6f0cf5e | /R/server-df.R | 23a029e0c09e2895e19b0f72d8e0a9493857f4ce | [
"MIT"
] | permissive | glin/reactable | 999d3385bad36c4273f9766d8a8663b42a88cef4 | 86bd27670eac8fb330a50413f462cf1fe0ff8e88 | refs/heads/main | 2023-08-29T11:15:04.340315 | 2023-07-14T20:33:39 | 2023-07-14T20:33:39 | 178,748,690 | 594 | 84 | NOASSERTION | 2023-01-08T17:30:20 | 2019-03-31T22:22:16 | JavaScript | UTF-8 | R | false | false | 6,600 | r | server-df.R | serverDf <- function() {
structure(list(), class = "reactable_serverDf")
}
reactableServerData.reactable_serverDf <- function(
x,
data = NULL,
columns = NULL,
pageIndex = 0,
pageSize = 0,
sortBy = NULL,
filters = NULL,
searchValue = NULL,
groupBy = NULL,
pagination = NULL,
paginateSubRows = NUL... |
5a53e61f34802a4db5c0009333685c80260e7e77 | f696d5a4aeccc4e4a9c25824c511bd80c481ba42 | /Training system (induce models)/03_creating_dataset_for_classification.R | 10dcceaf2f76cdfff1c91ab69fefb821f3116288 | [] | no_license | ursusdm/predictingHourlySolarRadiation | fd1a13a93418f58f1f752ec34f9e466c909a5cc5 | 5978d460f70703544ee4ff8492c81666b51c24b6 | refs/heads/master | 2022-12-17T21:10:26.551012 | 2020-09-17T16:47:32 | 2020-09-17T16:47:32 | 296,289,858 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,626 | r | 03_creating_dataset_for_classification.R | library(tidyverse)
examples <- read.csv("examples_meteo+radiation+cluster.csv")
# BUILDING NEW DATASET FOR CLASSIFICATION
# CREATING DATASET TO USE REGRESSION MODEL TO PREDICT kd
# previous extraterrial gd was used in the definition of the system,
# but it is not available in the original dataset. It must be calcula... |
da22d6640953b4e3b265d3f1c3d625b7c09a04da | fa30d5877052bb8771b5747192aed40a27b0b145 | /clients_clustering.R | 246f42ddde9b31c7434fef6eeec45de5b1836761 | [] | no_license | Dinicharia/clients_clustering | 6dbdbd50ca62839d09a45641689bbf35930140ea | b0d3c91aae0c37a930ed61123b891955d7904146 | refs/heads/main | 2023-06-14T09:27:13.350654 | 2021-07-09T08:09:00 | 2021-07-09T08:09:00 | 383,718,903 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,048 | r | clients_clustering.R | #importing essential packages
if(!require(caret)) install.packages("caret", repos = "http://cran.us.r-project.org")
if(!require(plotrix)) install.packages("plotrix", repos = "http://cran.us.r-project.org")
if(!require(ggplot2)) install.packages("ggplot2", repos = "http://cran.us.r-project.org")
if(!require(purrr)) inst... |
1eaa4781d3dab062825b2dde1e52488c2c64af79 | 53d7e351e21cc70ae0f2b746dbfbd8e2eec22566 | /man/us_skinfold_data.Rd | c6d33526c9d22e80a4dbc4ff93a91ad8bd359aae | [] | no_license | tbates/umx | eaa122285241fc00444846581225756be319299d | 12b1d8a43c84cc810b24244fda1a681f7a3eb813 | refs/heads/master | 2023-08-31T14:58:18.941189 | 2023-08-31T09:52:02 | 2023-08-31T09:52:02 | 5,418,108 | 38 | 25 | null | 2023-09-12T21:09:45 | 2012-08-14T20:18:01 | R | UTF-8 | R | false | true | 2,443 | rd | us_skinfold_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{us_skinfold_data}
\alias{us_skinfold_data}
\title{Anthropometric data on twins}
\format{
A data frame with 53940 twin families (1 per row) each twin measured on 10 variables.
}
\usage{
data(us_skinfold_data)
}
... |
27ebed6007df7b4deab600a26262754cd19a7ef9 | 0575784d79da7d193f187e90b39fb7c87ee77821 | /man/FixCNVPosition.Rd | 2dacb646e67c1377b54afb81d17187c93410babc | [] | no_license | ej/iPsychCNV | 6213b816ec7e38d98fda678f95a7f9c0917cedf8 | b19c2576d1de010c8c71571f05c9c19c6c7d0b83 | refs/heads/master | 2021-01-17T22:56:26.865372 | 2015-08-11T09:17:58 | 2015-08-11T09:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 533 | rd | FixCNVPosition.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/FixCNVPosition_V3.R
\name{FixCNVPosition}
\alias{FixCNVPosition}
\title{FixCNVPosition}
\usage{
FixCNVPosition(Df, subCNV, MinNumSNPs, ID)
}
\value{
Data frame with CNV information.
}
\description{
FixCNVPosition: Trim the CNV positio... |
4b7a488f2cbb1ffd063d053cd727f28a9f171af6 | 23c0e647fe0ca4ac3407182dfea14ec1bd7c75d1 | /ggplotGuia.R | 033ee8ed27c439b4f7f245d66088b7fb0f4b3ee2 | [] | no_license | betomartinezg/ggplot2 | 8c6f6d613cbc54b0593954e185ae603c31d2b9f3 | 361414b13859bdd5a6e5398aee00d693d9594022 | refs/heads/master | 2020-08-28T18:16:29.788527 | 2019-10-26T23:31:46 | 2019-10-26T23:31:46 | 217,781,675 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,480 | r | ggplotGuia.R | ## Guía Ggplot
#Ggplot consiste en adición de capas. Sus componentes principales son data (dataframe), Aesthetics (Se usa para definir X y Y. También permite definir color, size o shape de puntos, height de barras, etc...) y Geometry (Corresponde al tipo de grafico; histogram, box plot, line plot, density plot, etc..... |
45541649e232de29089b94ab2976ed435d2e2a06 | ee97a9d589a29d71735e60b96821cf1437f7796e | /server.R | c30e8211188ca656c7486f6e713291f9042138e4 | [] | no_license | Morriseylab/NGSViewer | 093092ed156d1ff192a27463e6df46fdf3024832 | ce71e4b81fb2b8b1ce899711d5ecafdc07f0eb3e | refs/heads/master | 2021-12-07T08:00:41.197472 | 2021-11-17T17:17:33 | 2021-11-17T17:17:33 | 157,431,160 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 71,928 | r | server.R | library(shiny)
library(shinyBS)
library("AnnotationDbi")
library("org.Mm.eg.db")
library(gage)
library(gageData)
library(RColorBrewer)
library(NMF)
library(Biobase)
library(reshape2)
library(ggplot2)
library(biomaRt)
library(KEGGREST)
library(png)
library(GO.db)
library(d3heatmap)
library(dplyr)
library(tidyr)
library(... |
2b9b5d35ae9c81684806f1b83edbc155b6d3a167 | b5491a5d0c85ab57b44931bfd50e5b7dd500a089 | /2term/05_06_correlation_lm/class/05_correlation.R | 3cd7bdb573d3991a30c2e61e6089f8446957bf28 | [] | no_license | rutaolta/R | fc88f2c8f2e73782950c559f10c5d26e14c46588 | 3020d1341cbe4de27438ca0f04018b7d0ffe28b4 | refs/heads/master | 2023-06-02T02:30:09.578374 | 2021-06-24T07:58:29 | 2021-06-24T07:58:29 | 364,297,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 155 | r | 05_correlation.R | df <- iris
x <- iris$Petal.Length
y <- iris$Petal.Width
plot(x, y)
cor(x, y)
cor(x, y, method = "spearman")
cor.test(x,y)
datasets::anscombe
|
b5d524dee9a265abbad2e9d5002fb56e9a0f1fbd | 9a1b4d0627facd3d52ee4e20a6d638f71a482936 | /man/c2BroadSets.Rd | e8348d994ecb320b1c860e4a3a34c46db374ef14 | [] | no_license | THERMOSTATS/RVA | 3c52d2b4a647c6b9d99eed98ec5fc86d6a510bcb | dbdf9b4f3e2b10f613b2d08ef9f7b04d3261f135 | refs/heads/master | 2023-08-18T22:22:32.044742 | 2021-10-29T16:02:06 | 2021-10-29T16:02:06 | 288,225,122 | 7 | 2 | null | 2020-12-07T14:58:10 | 2020-08-17T16:04:04 | R | UTF-8 | R | false | true | 389 | rd | c2BroadSets.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{c2BroadSets}
\alias{c2BroadSets}
\title{This is data to be included in package}
\format{
GeneSetCollection
\describe{
\item{Genesetcollection}{GeneSetCollection from BroadCollection}
}
}
\usage{
c2BroadSets
}
\desc... |
bfc3df3be205662617f9186520e852f1ece7418e | 36f9fb876beda5e60fffe851e0530707a8505315 | /3_Getting_And_Cleaning_Data/Final Project/run_analysis.R | 6676101a1933f487b36f728f6010692c581723bd | [] | no_license | jlucassen/datasciencecoursera | 285686ccad3c66e3e4b0f3f9b4913831da116200 | 60e28e203b9fe5ec6e723b6a88634572359feed2 | refs/heads/master | 2022-12-09T00:25:38.791263 | 2020-08-20T01:40:31 | 2020-08-20T01:40:31 | 258,053,718 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,449 | r | run_analysis.R | #pull in data, bind test and train data
xTest <- read.table("UCI HAR Dataset/test/X_test.txt")
yTest <- read.table("UCI HAR Dataset/test/y_test.txt")
xTrain <- read.table("UCI HAR Dataset/train/X_train.txt")
yTrain <- read.table("UCI HAR Dataset/train/y_train.txt")
x <- rbind(xTest, xTrain)
y <- rbind(yTest, yTrain)
#... |
840465b157e95915e4a00ff534f2a6f24b07e8f5 | 1858e5b278188097332bcddba934f970c614e185 | /prep_datav03.R | b1d5ee7a0767a222a1ec41d95c4d4dd95d1cb96a | [] | no_license | ChristopherSP/Generalized_Model_Fitter_R | 6a32275a910fc60a85e7857ad2ac85327c9dffb8 | 88a7ff140d9c7d3a8db300a1b6756c76c3d97746 | refs/heads/master | 2022-12-19T17:31:29.292244 | 2020-10-12T02:40:10 | 2020-10-12T02:40:10 | 299,157,696 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,851 | r | prep_datav03.R | #################################################################################################
# Preparing Data
#################################################################################################
prep_data = function(df){
dt = copy(df)
names(dt) = stri_replace_a... |
89a493d04fc4352de0550cb39d09b232d6d70e64 | 6a6ca838a0b0ac552cfe7745af6946623a648c9e | /entropy_binomial.R | 3568710ad84c26e833ddc57b890842bd3974481a | [] | no_license | myforkz/probability | dc7d6277263c68519a9837235b4bd6356c82db1e | c1e28df825076a7416dcbe3911f546bb0523331e | refs/heads/master | 2022-03-02T12:34:44.874788 | 2019-06-28T14:46:48 | 2019-06-28T14:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,634 | r | entropy_binomial.R | library(tidyverse)
library(RColorBrewer)
library(cowplot)
sim_p <- function(exp_val) {
all_but <- runif(3)
sub <- function(x, exp_val) {
out <- sum(x) * exp_val
for (i in 2:length(x)) {
out <- out - all_but[i]
}
return(out)
}
out <- sub(x = all_but, exp_val = exp_val)
last <- (out... |
2f7b5e202933eac7c861206d0c9d91ca10c2c198 | 7a9a8fb85481a80124bb1004eb3f4cfb46cdbede | /program1.R | 7b6f6c8e32e2f896c5340947f9c7ac67b33dfc23 | [] | no_license | xinyizhao123/Predicting-Future-Ambient-Ozone | 6459a9eef144bbf68416522f1987cf60f87af6bd | 1b682e4fcc16f443b4d3d8c9216cb5f823ac2986 | refs/heads/master | 2020-05-25T14:58:23.133324 | 2016-10-06T00:52:51 | 2016-10-06T00:52:51 | 69,671,822 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,433 | r | program1.R | ##########################################################################################
# This program is to check, clean and subset data of each parameter by year (2000-2011)
# Programmer: Xinyi Zhao
# Date: 09/21/2015
##########################################################################################
... |
cff64e34d5d4aac0b1782b988bb2c5c7ff0388ed | 387262d2c0dea8a553bf04e3ff263e14683ea404 | /R&S_app_v1/appModules_Testing/buildSulfateModule.R | 2114ba8d89d75e56fe63275dccc8832cec59959f | [] | no_license | EmmaVJones/Rivers-StreamsAssessment | 3432c33d7b53714d3288e1e3fee335dd6fb2af1c | 580cfaa7edbd7077a2627a128a02c3c6ee195f4d | refs/heads/master | 2020-04-24T09:40:03.613469 | 2019-10-18T13:44:07 | 2019-10-18T13:44:07 | 171,486,365 | 0 | 0 | null | 2019-02-19T20:18:56 | 2019-02-19T14:17:14 | R | UTF-8 | R | false | false | 6,046 | r | buildSulfateModule.R | source('testingDataset.R')
monStationTemplate <- read_excel('data/tbl_ir_mon_stations_template.xlsx') # from X:\2018_Assessment\StationsDatabase\VRO
conventionals_HUC<- filter(conventionals, Huc6_Vahu6 %in% 'JU52') %>%
left_join(dplyr::select(stationTable, FDT_STA_ID, SEC, CLASS, SPSTDS, ID305B_1, ID305B_2, ID305B_... |
c4ef15319b240321607718bb31ef64d5270a8f0c | dcf40ba9b2bd9101d9deaa5b1e6cf23a0bea30ae | /Scripts/GLM_Prediction_Model.R | 7a0c3748d43a834d7bd484a211efdf33cf8ab90a | [] | no_license | GeorgetownMcCourt/Predicting-Recidivism | e060cfea2d91bb2147fd03aca6985233f1b532e3 | 51ea2bfc91863fc9791ebb2f56aecada68df5062 | refs/heads/master | 2021-01-19T11:29:02.265142 | 2017-05-09T21:04:31 | 2017-05-09T21:04:31 | 87,969,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,832 | r | GLM_Prediction_Model.R | #Install.packages("mfx")
library(mfx) #Package to calculate marginal effects of logit model
#Creating dataframe of just potential model varaibles and then dropping NAs
model.var <- c("CH_CRIMHIST_COLLAPSED", "OFFENSE_VIOLENT", "OFFENSE_DRUG","OFFENSE_PROPERTY","SES_PHYSABUSED_EVER","CS_SENTENCEMTH",
... |
275a1732623b555f918dfef1b620e80367484091 | 6a3a70fedc47ba6c4dccd6b05370b4e9aaded250 | /man/threestep.Rd | c7bb6b23ded7ce52b532ce16faada39e013ed414 | [] | no_license | bmbolstad/affyPLM | 59abc1d7762ec5de96e2e698a5665de4fddd5452 | c6baedfc045824d9cdfe26cd82daaf55f9f1f3b4 | refs/heads/master | 2023-01-22T13:55:51.132254 | 2023-01-19T23:55:17 | 2023-01-19T23:55:17 | 23,523,777 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,250 | rd | threestep.Rd | \name{threestep}
\alias{threestep}
\title{Three Step expression measures}
\description{
This function converts an
\code{\link[affy:AffyBatch-class]{AffyBatch}} into an
\code{\link[Biobase:class.ExpressionSet]{ExpressionSet}} using a three
step expression measure.
}
\usage{
threestep(object, subset=NULL, norma... |
2c5d62ddc3036a0951bf341a84caea42bcc4576b | b6be947528044ce70dcbe383833236fb8061df2e | /phospho_network/regression/tables/write_phosphosites_for_protein_paint.R | 36bbd288b99b9f02fe67bda7498f9d649ba47cb5 | [] | no_license | ding-lab/phospho-signaling | f93ddbb7589a566747c94d93e3e9dceb083cfe09 | 2b5dfe09a62bcb56c2d34e12013c1ef48eff9836 | refs/heads/master | 2023-08-11T02:59:51.635972 | 2021-09-15T23:07:39 | 2021-09-15T23:07:39 | 155,909,908 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,630 | r | write_phosphosites_for_protein_paint.R | # Yige Wu @ March 2019 WashU
# show the number of associated substrate phosphosites per kinase with functional annotation, especially those that haven't been reported before
# source ------------------------------------------------------------------
baseD = "/Users/yigewu/Box\ Sync/"
setwd(baseD)
source('./cptac2p_an... |
061c4e47ccdb3d823231feabcc2b59fc1703803f | 84fe142bf6c0d612c2382418533f715796ab9292 | /man/ordering.Rd | 729bbd0291cc60d337cb2322e3de24eeee3d3fd0 | [] | no_license | jtourig/TSRexploreR | 7d9176c0b01cdba8cd2da5cc84a741f55ba7154d | a6e8c51886b0e667c2d289ba782a1195e45337d3 | refs/heads/main | 2023-02-22T06:53:58.823269 | 2021-01-20T17:40:09 | 2021-01-20T17:40:09 | 331,359,638 | 0 | 0 | null | 2021-01-20T16:08:21 | 2021-01-20T16:08:20 | null | UTF-8 | R | false | true | 516 | rd | ordering.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_conditionals.R
\name{ordering}
\alias{ordering}
\title{Ordering}
\usage{
ordering(..., .samples = NULL, .aggr_fun = mean)
}
\arguments{
\item{...}{Variables to order by.
Wrap varaible name in desc() for descending order (like in dplyr::a... |
8223d38c0f919e496588e8e4d7848f92faad18cc | 396fb5e5e39e4490347cfa6927e60c601d86b735 | /R/count.R | 0ebcfaa9bbe31c77534c44ca8d28b92cfb9f0ff7 | [] | no_license | Xiuying/ggstat | 1d58cb6ed8019abbf78df395d1ef2e6dbad8abc9 | 662b5d14a9e7ec2772d0759073d4f5477f2ff781 | refs/heads/master | 2021-05-31T06:46:08.859611 | 2016-05-09T22:29:17 | 2016-05-09T22:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,343 | r | count.R | #' Count unique observations (vector).
#'
#' This function is very similar to table except that: it counts missing values
#' if present, can use weights, only does 1d, returns a 2 column data frame
#' instead of a named vector, and is much much faster.
#'
#' @param x A logical vector, a factor, a double or integer vect... |
babc88fd274b4dde7d68b22987b3470a6ce8cbd6 | 7aec5ac37b2fb5bc3bc4c86036360a49123e53ef | /man/scale_colour_sugarpill.Rd | e63484c79c70fd679559b627101c23766bbdc66b | [
"MIT"
] | permissive | fredryce/ggcute | 118e84e2c761e7ff5cb47cb2977b107337c99995 | dc357b5b0dec881aeccaaa6ed396d36e2126d9c7 | refs/heads/master | 2022-07-06T05:55:58.810464 | 2020-03-30T23:15:55 | 2020-03-30T23:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 730 | rd | scale_colour_sugarpill.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sugarpill.R
\name{scale_colour_sugarpill}
\alias{scale_colour_sugarpill}
\alias{scale_color_sugarpill}
\title{Sugarpill color scale}
\usage{
scale_colour_sugarpill(discrete = TRUE, reverse = FALSE, ...)
scale_color_sugarpill(discrete = TRUE,... |
cf5a7a037fcf78d732389028ebe1381a845a5688 | 06221e13a73d03377669f968022676b22e434e9e | /analyses/from_james/global_GDP_research.R | 5c4bc7fd352e21bed8125b13da6c54c75988c41a | [] | no_license | baumlab/gya-research | c37c18f9406cbecb1cc6c079d5d4c4ea79c92ec2 | 4538afb6916b28e9e7b80ce641178bcaf8bf50ad | refs/heads/master | 2022-08-26T16:22:54.926375 | 2022-08-23T23:13:27 | 2022-08-23T23:13:27 | 62,905,557 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,201 | r | global_GDP_research.R |
### creating plots for Megan Dodd + Julia Baum for global young academy document
## Aim: plot changes to 1) Basic research (%GDP) and
# 2) GDE on R&D (%GDP) over time for
# Canada, Australia, Netherlands, Israel, Poland, Spain, US.
setwd("/Users/jpwrobinson/Dropbox/R_PROJECTS_DATA/VISUALISATION... |
be8a1c97a2026c5403de368904dcd23e0090ea4e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/KRIS/examples/cal.pc.projection.Rd.R | ab641d634532dd90582ca774fbf58c99297e913e | [] | 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 | 846 | r | cal.pc.projection.Rd.R | library(KRIS)
### Name: cal.pc.projection
### Title: Calculate linear principal component analysis (PCA) with
### projection method for Single-nucleotide polymorphism (SNP) dataset.
### Aliases: cal.pc.projection
### ** Examples
## No test:
data(example_SNP)
#Create a random list of disease status, 1 = Control... |
5e7f644c3bb2d1734e27f199707748e616faf54e | af2743ea7d61bbaa13593e4ea2a920b75d6b45c6 | /t3.R | ab47b4b7c5e21ce2a799732ca6544c2f4babd4ba | [] | no_license | ruomengcui/DSP | d2d4a465c483aa73d23260f893a6f0aafbbf71d8 | f71a59cb7e62e4343b6a3042e43e6b89549ccc44 | refs/heads/master | 2020-05-17T17:51:41.301127 | 2012-06-05T20:07:15 | 2012-06-05T20:07:15 | 4,564,943 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 72 | r | t3.R | x<-function(){
s=d[d$samp==2&d$cid==2,]
if(rnorm(1)<.5) return()
s
} |
bbe16784686e5f0a156ab9ae46d17e6d7fb6ad1a | 190aa0875e57ba772abfad3815386e1ba5aae489 | /R/method/makeDesign2.R | 7f5c1f9597a0978d7d634927b25be0ad228ecc73 | [] | no_license | bitmask/B-NEM | 2a52802d25fe1b32a15ab41367f65245c3c7a5c1 | 3d19bcd6d7862a2518a152827a73f24773d4f140 | refs/heads/master | 2020-04-07T17:24:26.373091 | 2018-11-21T15:57:21 | 2018-11-21T15:57:21 | 158,568,448 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | makeDesign2.R | makeDesign2 <- function(x, stimuli, inhibitors, batches = NULL, runs = NULL) {
design <- numeric()
designNames <- character()
design2 <- numeric()
designNames2 <- character()
for (i in c(stimuli, inhibitors, batches, runs)) {
tmp <- numeric(ncol(x))
tmp2 <- numeric(ncol(x))
tmp[grep(paste("^", i, ... |
4b9cc56b40832678cab18538fd7959732d250a88 | 228abd3ebb962857a4aa9687899070e251e05ef6 | /man/bootstrap_iRAM_2node.Rd | 994343f894d3f0570e73ad841f3edea4cfb78d8f | [] | no_license | xinyindeed/pompom | e1e964c7a15718fc61001c08f85ff2c9882bea3d | 587a4bc5fb67423fb3f37e968d099720e07068c4 | refs/heads/master | 2021-09-18T09:20:16.519821 | 2018-07-12T15:33:42 | 2018-07-12T15:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,538 | rd | bootstrap_iRAM_2node.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-bootstrapped_iRAM_2node.R
\docType{data}
\name{bootstrap_iRAM_2node}
\alias{bootstrap_iRAM_2node}
\title{Bootstrapped iRAM (including replications of iRAM and corresponding time profiles) for the bivariate time-series (simts2node)}
\form... |
f966769a5765bc03005db9e0a191f34a70af967a | c5de5d072f5099e7f13b94bf2c81975582788459 | /R Extension/RMG/Utilities/Environment/R.Release.Notes/moveto_R_2.6.0_.R | a0bb06e033fc3644212c8a15ff704988b8e46a04 | [] | no_license | uhasan1/QLExtension-backup | e125ad6e3f20451dfa593284507c493a6fd66bb8 | 2bea9262841b07c2fb3c3495395e66e66a092035 | refs/heads/master | 2020-05-31T06:08:40.523979 | 2015-03-16T03:09:28 | 2015-03-16T03:09:28 | 190,136,053 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 320 | r | moveto_R_2.6.0_.R | # Document breaks in our code from 2.5.0 to 2.6.0
#
#
#
#
# memory.limit() in 2.6.0 returns size in MB, in 2.5.0 it was in Bytes.
# Code that calculates size of packets will break.
# See H:\user\R\RMG\Models\Price\ForwardCurve\Network/utils.R
# function: get.no.packets
# There is at least another one in VaR/Base/
|
83aa42356c2463ceac58d103f347473ca0bc684f | 29f139ac8350bd0e65f75d09014acd6b49a8341b | /R/modelFit.R | 49454d1b3ab456fb81a29651bac589a0f703fa69 | [] | no_license | cran/DrBats | 4bf007e2360a0e097cc83b932f352f29f3bebf96 | 3a09e1e0e1ec581a00bb59cd3a0891be499d030e | refs/heads/master | 2022-02-22T11:51:33.964413 | 2022-02-13T18:00:12 | 2022-02-13T18:00:12 | 59,128,319 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,109 | r | modelFit.R | # Aim: Fit a Bayesian Latent Factor Model
# Persons : Gabrielle Weinrott [cre, aut]
##' Fit a Bayesian Latent Factor to a data set
##' using STAN
##'
##' @param model a string indicating the type of model ("PLT", or sparse", default = "PLT")
##' @param var.prior the family of priors to use for the variance para... |
2748964e1ed689f74877e251f3449052fd4e6d86 | 91f40a7659881ba7d43d684efc327f9501c8ed1f | /server.R | 4e620c16446629623356d2dc473b8b16ded46a3b | [] | no_license | matsar/VelibRShiny | 1e23e0ca7ed5b1adb4325d61fc04e1b356665d0e | c910cb74f92b3f2fea79c5355793c8bce3ef5f46 | refs/heads/master | 2021-01-10T07:15:28.943112 | 2016-04-22T20:21:23 | 2016-04-22T20:21:23 | 53,279,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,919 | r | server.R | # encoding: utf-8
###############################################################################.
#
# Titre : server.R
#
# Theme : Data Science - projet VelibR
#
# Creation : 27 février 2016
# MAJ : 22/04/2016
#
# Auteur : CEPE gpe 1
###############################################################################.
re... |
61b19df0f2d62d9268632d41d29112e65dc35c55 | 2592602560a9568c00f28159cace664fc1ba3ad3 | /c-gsl/n_e-facet.plot.R | 2bcf9e11cc2d5ef01ffe7520dc0a7e4caca6716d | [] | no_license | diogro/evomod | cd0bc39abac6727bbb1a88f72418a3f8d1f7863f | 934c57147528f75d97ef56e03b6994170af72e84 | refs/heads/master | 2020-04-15T03:01:19.578176 | 2015-08-14T19:06:58 | 2015-08-14T19:06:58 | 10,078,557 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,056 | r | n_e-facet.plot.R | library(reshape2)
library(ggplot2)
library(EvomodR)
AVGWrap = function(p.cor, n.e, generations = 1:length(p.cor)){
burn.in.avg = AVGRatio(p.cor, 40/10000, F, num.cores = 4, generations = generations)
burn.in.avg['Probability'] = NULL
burn.in.avg['Selection_Strength'] = NULL
m.avg = melt(burn.in.avg[,-c(2,5)], ... |
0bf6c2e08787a191c4e2b9a917043d1dd14f6d56 | 10416e68809b5641ed1eda9b5cf8ee2ae36d7d98 | /R/addins.R | 60e1b816af1d23e588d9cde2c6b1eae7a4ec0f68 | [
"MIT"
] | permissive | BioDataScience-Course/BioDataScience2 | 01856501c0c7e0c4613fbc3f8a1af471dadde50b | cf470d0de8a0dd98167f56bb08bc9b555ad868a8 | refs/heads/master | 2023-08-22T14:41:10.369340 | 2023-08-14T14:22:07 | 2023-08-14T14:22:07 | 205,365,146 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,120 | r | addins.R | # RStudio addins
run_addin <- function() {
#library(shiny)
#library(miniUI)
selectItem <- function() {
package <- "BioDataScience2"
items <- character(0)
tutorials <- dir(system.file("tutorials", package = package))
is_active <- function(dir, subdir, pattern)
length(dir(system.file(dir, s... |
175a6b2897f1c998f172fee2b47db055c76aa606 | 046d89616fd295db30c62fc5cede60246a026c8d | /cachematrix.R | b658ff3d9aafda4be57260804265cf75245384b7 | [] | no_license | raulfloresp/ProgrammingAssignment2 | 9e3495d6157048261a675f463dd6fade03a9bb8e | 6dfdf8867ea9a3d839fc9454ded440d3fe4e9d6d | refs/heads/master | 2021-01-24T22:20:56.781910 | 2016-03-12T19:31:33 | 2016-03-12T19:31:33 | 53,748,613 | 0 | 0 | null | 2016-03-12T19:07:07 | 2016-03-12T19:07:06 | null | UTF-8 | R | false | false | 1,487 | r | cachematrix.R | ## Matrix inversion is usually a costly computation and there
## may be some benefit to caching the inverse of a matrix rather
## than compute it repeatedly (there are also alternatives to
## matrix inversion that we will not discuss here).
## This assignment is to write a pair of functions that cache
## the inver... |
1539994a391ed71adb639d4bd1279387ae26408e | fee595a469087dca8451f834b0ad311ae1f60f2c | /exercise2.R | 5136fe84492990c64fda79e2a3ec295901178c99 | [] | no_license | lucyliu666/test2 | 19a2bf4d72c391628536b4b087f586a725373671 | bce025f208631582cdbb38ec9cb67edc12c30ee6 | refs/heads/master | 2021-09-11T19:12:28.450475 | 2018-04-11T08:26:44 | 2018-04-11T08:26:44 | 123,310,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,084 | r | exercise2.R | x <- 1:3
y <- x
y[[3]] <- 4
x
mat <- matrix(1:4,2)
f1 <- function(mat){
mat[1,1] <- 3
mat[1,1] + 2
}
f1(mat)
mat
mat <- matrix(1:4,2)
mat
f1 <- function(mat){
mat[1,1] <- 3
}
f1(mat)
n <- 1e3
max <- 1:1000
system.time({
mat <- NULL
for (m in max) {
mat <- cbind(mat, runif(n, max = m))
}
})
a... |
b59ad0f5c0502e4448ab61a27c3b14c93146fac9 | 73744a740941b13641c0175c8e583b20cfd023a1 | /analysis/books/00_get_contractions.R | 03d470b165652f13acdb4ee0287814a9324eaea0 | [] | no_license | mllewis/WCBC_GENDER | 8afe092a60852283fd2aa7aea52b613f7b909203 | ed2d96361f7ad09ba70b564281a733da187573ca | refs/heads/master | 2021-12-25T22:41:21.914309 | 2021-12-22T19:08:36 | 2021-12-22T19:08:36 | 248,584,454 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 453 | r | 00_get_contractions.R | # get list of contractions to replace (for some reason the default lists are missing a few)
library(lexicon)
library(tidyverse)
library(here)
CONTRACTION_OUTFILE <- here("data/processed/words/contractions_complete.csv")
contractions <- key_contractions %>%
add_row(contraction = "haven't", expanded = "have not") %... |
317693aa6a409ce12b2d7ccf74be337683718f9a | ce98e0fe1bc89232754a51943aa17530a16af0cb | /analysis/01_count_SS_uncertain_dates.R | c9d422afffb2e5c87104cddf3f481180668218d4 | [] | no_license | kzaret/RQ2_Dendro_v2_PIUVestab | bad3f144f36520ce984e3df382dfdf432754a4dd | 854c2bea5307aca3aec66e816269b6b7835ca082 | refs/heads/main | 2023-08-24T17:00:48.467138 | 2021-10-26T20:00:11 | 2021-10-26T20:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,739 | r | 01_count_SS_uncertain_dates.R | #---------------------------------------------------------------------------------
# SIMULATION TESTING FOR POISSON STATE-SPACE MODELS
#
# Simulate data from the basic univariate Poisson SS model and
# fit the pseudo-data with the same model, the equivalent
# Poisson-multinomial model (Poisson for total count, multino... |
8c810b82ce0dcfbedbb7f9e4c170f717396f2f3d | fa18ee2bcec08ba7dd950843cd3547e05eafcb16 | /man/bh_defineTissue.Rd | 18953f8a538ffb208a48d6de81afc29f6029a4ad | [] | no_license | luigidolcetti/barbieHistologist | 6da4174defd6228e67ab22c2e226d5bee96cb018 | 4f4bbcd939257d05bac8ec785a99e30d2ca1db93 | refs/heads/master | 2023-07-19T01:09:14.843315 | 2021-06-14T16:50:08 | 2021-06-14T16:50:08 | 347,299,283 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 535 | rd | bh_defineTissue.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tissue.R
\name{bh_defineTissue}
\alias{bh_defineTissue}
\title{Define a new tissue}
\usage{
bh_defineTissue(coords = NULL, resolution = NULL, bg = NULL, markers = NULL)
}
\arguments{
\item{coords}{numeric, x and y limits.}
\item{resolution}{... |
519614d4758def87764df8cccc91a1c1ffc94c6b | cbcfee5e7c8512bce52125355bb84141adb9b6a9 | /LMjw/man/myLasso.Rd | a97f13c819f1a5afc4e2d5a37306aae7141bc669 | [] | no_license | Alice86/StatsProgramming | f0252cbb8a6447de20f58a1c6a022f1b7b814b58 | ca965f266c7d81d3e079f08964ff8622b08f59b1 | refs/heads/master | 2021-09-20T05:21:06.539465 | 2018-08-03T19:11:25 | 2018-08-03T19:11:25 | 109,034,894 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 895 | rd | myLasso.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myLasso.R
\name{myLasso}
\alias{myLasso}
\title{Lasso regression}
\usage{
myLasso(X, Y, lambda_all)
}
\arguments{
\item{X}{design matrix}
\item{Y}{response vector}
\item{lambda_all}{vector of regularization parameters}
}
\description{
This ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.