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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fce621ec05200bccd7efa73c31085614c86f2b9 | 26648108b95b0b50e5cc6170ef103c8bfc463078 | /inst/design-based-spatial-autocorrelation-test.R | 0e276d622d64d62ef0194c0cbf1a38262ac2e519 | [] | no_license | pbs-assess/gfsynopsis | 773a49e69735432a451adaabd87f39927c7f60b2 | 0ac1a42e96791a77b0a7f77c8914c83b3e814451 | refs/heads/master | 2023-08-17T08:21:02.676898 | 2023-07-27T22:30:04 | 2023-07-27T22:30:04 | 122,661,487 | 11 | 2 | null | 2023-07-17T21:49:45 | 2018-02-23T19:04:12 | TeX | UTF-8 | R | false | false | 3,539 | r | design-based-spatial-autocorrelation-test.R | # Are design-based bootstrapped survey calculations affected by
# spatial autocorrelation?
#
# Short answer: I think not. Obvious in retrospect.
library(dplyr)
library(ggplot2)
x <- seq(0, 1, 0.1)
y <- seq(0, 1, 0.1)
N <- 10
survey_sample <- seq(1, N)
grid1 <- expand.grid(x = x, y = y) %>% as_tibble()
plot(grid1)
gr... |
9e359a333f936a945f9a559df4195d34e6ae1fde | db8eeb68541dba916fa0ab9567fe9199d95bdb6a | /man/chargeHydropathyPlot.Rd | 095b5c1f8d18ffbb478f13b8f42a2c1cbdc98a3b | [] | no_license | alptaciroglu/idpr | f26544ffe869854a0fd636fcf7a2fa85a41efeed | e5f7838d27fb9ada1b10d6a3f0261a5fa8588908 | refs/heads/master | 2023-01-27T20:40:33.186127 | 2020-12-05T21:57:55 | 2020-12-05T21:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,865 | rd | chargeHydropathyPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chargeHydropathyPlot.R
\name{chargeHydropathyPlot}
\alias{chargeHydropathyPlot}
\title{Charge-Hydropathy Plot}
\usage{
chargeHydropathyPlot(
sequence,
displayInsolubility = TRUE,
insolubleValue = 0.7,
proteinName = NA,
customPlotTit... |
d47dfbd5ff6d7ece464e01f0d3daa4c11f9bd514 | 629d8c6ef6c86d475ac3730623dd943e872e2b90 | /MammalAbundance/Code/Analysis_All_Years.R | 4bd592e80195a45ca6ca5de38f31a40774e7d094 | [
"MIT"
] | permissive | djhocking/Small_Mammal_Synchrony | 773b895b98ded209ca67156b53aa330739063d33 | e999a31d01ff924489397d72afe094a08349d195 | refs/heads/master | 2021-01-13T00:15:58.384006 | 2016-02-15T15:10:51 | 2016-02-15T15:10:51 | 51,762,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,164 | r | Analysis_All_Years.R | ######################################################
# Small Mammal Abundance
# White Mountain National Forest
# Daniel J. Hocking
# with Ryan Stephens, Becca Rowe, Mariko Yamasaki
# 2013
######################################################
source('Code/Poisson_100.R')
dm100p.NAIN <- dm100p(NAIN, n.burn = 50000, ... |
3cc503dc206a8ae36075d745ca0cc1c1e8685c2a | c5d59c940c47ec7219df2e3bf24d1463fcf9a42e | /ROSE2_callSuper.R | 54032d4bb5b1dcd3350683ff74714814366c2ebf | [
"MIT"
] | permissive | linlabcode/pipeline | 5dd8ecd5f0f499e6fd1b45c6f2875a2e9a2270c7 | 396ff17a67c9323024b9448665529142b6aa18be | refs/heads/master | 2023-07-19T18:11:14.456745 | 2022-04-26T17:57:43 | 2022-04-26T17:57:43 | 60,634,937 | 4 | 10 | NOASSERTION | 2018-12-17T10:14:39 | 2016-06-07T18:01:22 | Python | UTF-8 | R | false | false | 19,969 | r | ROSE2_callSuper.R | #============================================================================
#==============SUPER-ENHANCER CALLING AND PLOTTING FUNCTIONS=================
#============================================================================
#This function calculates the cutoff by sliding a diagonal line and finding where it... |
30c7f2f84f7e872b9cd87c5376fa08e684a27402 | 91022a1967b40e85ae44a728da2d996def736a61 | /R/streamClient.R | d646fcdcc5159a6e50690c8ffed29e0b22f467f8 | [] | no_license | arbuzovv/tcsinvest | 0e4d7a7aad2e98d8ace8a5ae8840cbb12cb24fe5 | 6df27cea5dd53595ef4e87da6ccfabcb671b9ae6 | refs/heads/master | 2023-07-14T03:19:56.310556 | 2021-08-18T21:28:02 | 2021-08-18T21:28:02 | 392,618,079 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,131 | r | streamClient.R | #' @title Create stream client
#'
#' @description this function creates client for streaming
#'
#' @param token token from Tinkoff account
#' @details As described by the official Tinkoff Investments documentation. If you want live trading, use sandbox=FALSE with live token
#' @note Not for the faint of heart. All pro... |
01d28fd8845501c6f1c9948549e145e4c00bc311 | 73ddf6aee285774a76a365f5144dafc3afae8ba8 | /R/SILOMorton.R | ed7376593960c89e3e133f9bef74a10c1f18e300 | [] | no_license | matt-s-gibbs/swtools | d702fa44255c14b646d99b29bbe2296f6786ea2f | 356e8df9e86e7c17e2d4e219352a2b6ea11adbde | refs/heads/master | 2023-05-27T23:01:20.044583 | 2023-05-24T07:50:54 | 2023-05-24T07:50:54 | 125,963,455 | 4 | 1 | null | 2018-04-05T04:26:33 | 2018-03-20T05:06:29 | R | UTF-8 | R | false | false | 3,567 | r | SILOMorton.R | #' Plot the quality codes of the input data for Morton's Evap calculations
#'
#' Produces a tile plot displaying the quality codes for variables that are input to the
#' calculation of Morton's evaporation equations, being maximum and minimum temperature, solar radiation and vapor pressure (derived from wet bulb te... |
26f99129b746cd6e71845431798e6308f51700b7 | 28c0bb9cf47bc8a8f629b389ba62c1808fd34691 | /man/verhulst.update.Rd | deecca7fc3f7548bd8e9bb228977499f5d59dae7 | [] | no_license | gcostaneto/ZeBook | 836e3dc8ab80de9ecce782e809606f4d647f30c0 | b892a7e80a233b1c468526307eb5f7b49d95514d | refs/heads/master | 2020-05-14T08:41:25.584061 | 2018-11-09T16:40:03 | 2018-11-09T16:40:03 | 181,727,649 | 1 | 0 | null | 2019-04-16T16:33:07 | 2019-04-16T16:33:07 | null | UTF-8 | R | false | true | 581 | rd | verhulst.update.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/verhulst.model.r
\name{verhulst.update}
\alias{verhulst.update}
\title{The Verhulst (logistic) model - calculate change for one day}
\usage{
verhulst.update(Y, a, k)
}
\arguments{
\item{Y}{: state variable Y(t=day)}
\item{a}{: gro... |
da2bf8cff6bb29ceab80f2bfbf6cc8a028819803 | c166067186df88673a62d111dd8187267ba6b7fa | /R/gts.r | ec27e7b71b73e32498bf9c3d1356845b9401fce1 | [] | no_license | psmits/preserve | 886552cbe93e2d16ff7157c622505b15780e4a39 | 15ee35bf0d56778ddfa9dd3b67071cfc36c91ac3 | refs/heads/master | 2020-04-15T11:53:31.574495 | 2019-01-17T21:04:17 | 2019-01-17T21:04:17 | 30,316,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,553 | r | gts.r | # stage order from young to old
cenozoic <- c('Calabrian', 'Gelasian', 'Piacenzian', 'Zanclean', 'Messinian',
'Tortonian', 'Serravallian', 'Langhian', 'Burdigalian',
'Aquitanian', 'Chattian', 'Rupelian', 'Priabonian', 'Bartonian',
'Lutetian', 'Ypresian', 'Thanetian', 'Selandia... |
e25d35481d32531bc21af10ff814e5a202181913 | 82a166776f39db4ca236f5e22040f39b2f9dad8f | /R/JKalman.R | 242a87da693715e5db804ee1f63e48376931c8f7 | [] | no_license | cran/ctsem | 10397ed03d5f9d430dd096e991ec7762e08ddb20 | af8a5eb855940a014d8f64720f01493d8ba292f5 | refs/heads/master | 2023-04-06T17:35:50.263992 | 2023-03-26T16:10:02 | 2023-03-26T16:10:02 | 40,494,050 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,364 | r | JKalman.R | if(1==99){
checkm<-ctModel(
type='stanct',
n.latent=2,n.TDpred=1,n.TIpred=1,n.manifest=2,
MANIFESTVAR=matrix(c('merror',0,0,'merror'),2,2),
MANIFESTMEANS=0,
DRIFT=c('dr1','dr12','dr21||||TI1','dr22'),
DIFFUSION=c('diff11',0,'diff21','diff22||||TI1'),
CINT=matrix(c('cint1||||TI1... |
65f4d701a902bebe448cbf30accd9f9cf950c759 | 432a02b2af0afa93557ee16176e905ca00b653e5 | /LBNL/Cepheid/extract_sample_patient_data.R | e373ea48f55a52044d7b27588211c4e807f04059 | [] | no_license | obigriffith/analysis-projects-R | 403d47d61c26f180e3b5073ac4827c70aeb9aa6b | 12452f9fc12c6823823702cd4ec4b1ca0b979672 | refs/heads/master | 2016-09-10T19:03:53.720129 | 2015-01-31T19:45:05 | 2015-01-31T19:45:05 | 25,434,074 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,303 | r | extract_sample_patient_data.R | #Set working directory and filenames for Input/output
setwd("C:/Users/Obi/Documents/My Dropbox/Projects/Cepheid/intellectual_property/RFRS/")
datafile="C:/Users/Obi/Documents/My Dropbox/Projects/Cepheid/processing/processed_final2/test_survival/combined/ALL_gcrma.txt" #combined (standardCDF + customCDF)
#Read in... |
46ee565ff850bc23242233cd23f1fa4f0671fdf5 | 9434187932d623555696d14e7c9431e41e4f4f42 | /install_R_dependencies.R | 89a6eae3b84df118eef716e8753e912efe361444 | [
"MIT"
] | permissive | Oshlack/MINTIE | 0852c4aaa2f5d845746e18d191c88a4572c9ac17 | 4072e6d8dd4e39e57c93cf91cdeca28c9fe468fa | refs/heads/master | 2022-12-11T20:29:30.955043 | 2022-10-20T04:22:37 | 2022-10-20T04:22:37 | 200,984,645 | 26 | 7 | MIT | 2022-10-20T04:22:38 | 2019-08-07T06:14:27 | Python | UTF-8 | R | false | false | 924 | r | install_R_dependencies.R | repos="http://cran.r-project.org"
if (!require("dplyr")) {
install.packages("dplyr", repos=repos)
}
if (!require("data.table")) {
install.packages("data.table", repos=repos)
}
if (!require("readr")) {
install.packages("readr", repos=repos)
}
if (!require("jsonlite")) {
install.packages("jsonlite", repos... |
0f74e18644ca15dc77ac9d0ef04f09368efa32aa | 51f54ad3c888a3d89e482a3ad2f0b9ee48caabac | /pratica/17-shinydashboard-elementos.R | dd9a10284bd6ca157bef7470cbc00b6acc3af05b | [] | no_license | gabrielDjusto/202109-dashboards | 2af3e64786640f26a0cd5c33fc80b334fa06c8ac | 836e38aac2204c225cdbc5a08f8dabf2dae5e63b | refs/heads/master | 2023-08-23T21:03:50.051632 | 2021-10-26T01:18:23 | 2021-10-26T01:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,818 | r | 17-shinydashboard-elementos.R | library(shiny)
library(shinydashboard)
library(dplyr)
library(ggplot2)
# remotes::install_github("curso-r/basesCursoR")
# imdb <- basesCursoR::pegar_base("imdb")
separar <- function(tab, coluna) {
tab |>
pull({{coluna}}) |>
stringr::str_split(", ") |>
purrr::flatten_chr() |>
unique()
}
separar_... |
e3e00fc71f57f1b74447922202be944ea7b0ea6d | 9abed51f8f76a64b961dd8f4d9be0f0e42c50453 | /exploratory_data_analysis/wk3/proj2/src/plot5.R | 4d038fa1704c14a279c995dab9bdaa7b76f7581b | [] | no_license | ddexter/datasciencecoursera | 1546e6a087bf2e351ae4210779f3879eb23d0fd5 | a23811f23a787fbe441ba9f4e06942b34a72fe3e | refs/heads/master | 2021-01-02T09:26:37.010181 | 2014-10-26T14:29:00 | 2014-10-26T14:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 738 | r | plot5.R | library('ggplot2')
nei <- readRDS('../data/summarySCC_PM25.rds')
scc <- readRDS('../data/Source_Classification_Code.rds')
# Select all sectors pertaining to 'mobile' since "motor vehicle" is an ambiguous term
scc_mobile <- subset(scc, grepl('mobile', EI.Sector, ignore.case=TRUE))
nei_mobile <- subset(nei, SCC %in% un... |
6da80b59d312a163b7107bc06274cc457c4cf16c | b9486008ccf0d1bce671131c2111b3928334b83b | /tests/regtest-inference.R | d871b6b08dbff7372ca05990b0e13043a266e62b | [] | no_license | strategist922/mboost | 11405a7e168130619cd6134576ca528d564ca53f | 5d06f360b66620ffc9fe5b800e7c97247f27e0b8 | refs/heads/master | 2021-01-17T21:14:42.747037 | 2017-03-03T07:20:06 | 2017-03-03T07:20:06 | 84,169,384 | 1 | 0 | null | 2017-03-07T07:37:34 | 2017-03-07T07:37:33 | null | UTF-8 | R | false | false | 1,139 | r | regtest-inference.R | require("mboost")
set.seed(1907)
### check confidence intervals
data("bodyfat", package = "TH.data")
bodyfat$ID <- factor(sample(1:5, size = nrow(bodyfat), replace = TRUE))
glm <- glmboost(DEXfat ~ ., data = bodyfat)
gam <- gamboost(DEXfat ~ ., data = bodyfat)
refit <- glm$update(weights = model.weights(glm), risk =... |
b710f97f1006a5bf0efe2d62d45e62870d79946e | 680f44adcd020315efe719852ab4b112ad89bc83 | /apps/124-async-download/tests/shinytest.R | 351e5f9078ebbf2d9d7221badfaecd5d811a6021 | [
"MIT"
] | permissive | rstudio/shinycoreci-apps | 73e23b74412437982275d60ded5ac848fc900cbe | add53dde46fc9c31f2063f362ea30ca4da3b2426 | refs/heads/main | 2023-04-15T09:10:38.668013 | 2022-06-15T17:53:03 | 2022-06-15T17:57:59 | 228,669,687 | 39 | 5 | NOASSERTION | 2023-03-30T06:07:28 | 2019-12-17T17:38:59 | JavaScript | UTF-8 | R | false | false | 132 | r | shinytest.R | # This application has a random issue about a url not being valid. Better to manually test
if (FALSE) {
shinytest2::test_app()
}
|
fdce52fc42ccdd906d0a21f9d10a3c2f06238216 | fb560d821418a1cecb0c9d5705514b54c9f2d244 | /bootcamp-aditi.R | 66ac012a126e3f0f49a1e5360e5eae117aa18355 | [] | no_license | SurajMalpani/BootcampR2018 | 49619906f4e393d360f418012b3db590b862d43a | fd4d0e688978da08f4a2c45bd4ab026b08ddf9b2 | refs/heads/master | 2021-04-26T23:41:46.908640 | 2018-03-04T20:20:43 | 2018-03-04T20:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,484 | r | bootcamp-aditi.R | #Assignment operator
x <- 1
#Explicit Print
print(x)
#Auto Print
x
#What is the [1] for?
# ->Depicts a vector but not part of it
#Sequence
x<- 1:20
x
#Infinite
1/Inf
#NAN
0/0
#Vector
x <- c(1.5,2.3) #numeric
x <- c(TRUE,FALSE)
x <- c("a","b","c")
x <- vector()
class(x)
length(x)
... |
53146c8a527e667d0ba6a2df539c8d07eed45a65 | 0977efb8fd05e0a7a6802fc7465389dc5613e437 | /#2_code/packages.R | 655c5ef9706fe493fe4b6d617482a8dbcdfb2024 | [] | no_license | dataiscoming/titanic_R | 1d83a95db33cff34498395e182763ceb8e15ffd9 | 86e5ff5d7c2e4922ee88ea29027f319da6100086 | refs/heads/master | 2023-03-21T21:45:44.589180 | 2021-03-17T12:19:16 | 2021-03-17T12:19:16 | 347,649,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 669 | r | packages.R | # Packages
# Do not forget to install Rtools before !
# list of the R package to install
packages_cran <- c("rlang","dplyr", "stringr", "naniar", "VIM", "ggplot2", "reticulate", "mice", "corrplot", "Hmisc", "aod",
"lmtest","pscl","ResourceSelection","tibble","broom","ggimage","rsvg","ggnewscale", "pROC"... |
1ebec85b96ce1c24c8a96ef1d1374d736211b591 | 038ab87e58aaa8fe73cdfabb36fd6189955b324b | /R/authorMatrix/make_data_for_model.R | 7303265a499c76a99efac58760e938a08281a614 | [] | no_license | Oleg-295/InfluencingCogSci | b83ed09b2db58b152249f213bc32b45c6c5fd075 | f955090f4863584dc3ec5750af5fbc1bebcc1edf | refs/heads/master | 2022-09-22T01:39:58.795033 | 2020-05-30T21:43:20 | 2020-05-30T21:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,026 | r | make_data_for_model.R |
library(tidyverse)
library(lme4)
library(futile.matrix)
i=1
coauthor_mats = list()
topicSims = list()
for(year in 1981:2019){
load(paste0("authorMatrix/fullcogsci_binary/author_mat_year_fullcogsci_", year,".RData"))
coauthor_mats[[i]] <- author_mat_year
names(coauthor_mats[[i]]) <-NULL
topicSims[... |
8dafae24671e922dfe04a1ae8346c1bf2ddef19d | 960835d9f4da6a28fcef02d3a290d2cec893472e | /server.R | 774ccaef00725ff58495c42b570d15664345ec56 | [] | no_license | DataDan01/DDP-Course-Project | 088e4fffb644a1aee0777a06617d236d0b561eeb | 6d90dc39b7c7da6c1b7559f34806adf811dbcd96 | refs/heads/master | 2021-01-10T18:01:53.098340 | 2015-12-22T17:21:47 | 2015-12-22T17:21:47 | 48,408,962 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,898 | r | server.R | ##Large list of English words to be used in the function below.
dictionary<-readLines("./dictionary.txt")
##Top "filler" words used in the English language.
filler.words<-read.table("./fillerwords.txt")
##Function to get a dataframe of word counts.
clean.word.count<-function(url){
##Changing https to http
if(s... |
d88b576a49cce8a96162a5a41487cd361aea8aeb | cb39b112d37440dadfad339ad7a9f8a769352a35 | /Survival_analysis/rcode/gbmci.R | 773a403852a42ced99f4e8301a98b377d58c14d6 | [] | no_license | Humboldt-WI/InformationSystemsWS1718 | c6974ac87cc3cdac69fe2d042f2651c0a477cdbf | 7eda9af502a9ba19c9cf6f885dfb7bfa7158aa31 | refs/heads/master | 2023-01-01T18:03:06.957460 | 2018-03-16T09:28:47 | 2018-03-16T09:28:47 | 108,554,909 | 0 | 1 | null | 2020-10-20T15:21:24 | 2017-10-27T14:16:48 | Jupyter Notebook | UTF-8 | R | false | false | 1,705 | r | gbmci.R | memory.limit(30000)
if("package:gbm" %in% search()) detach("package:gbm", unload=TRUE)
install.packages("C:/Users/B_JD/Desktop/GBMCI-master", repos = NULL, type = "source")
library("gbm")
if(!require("KMsurv")) install.packages("KMsurv"); library("KMsurv")
if(!require("survAUC")) install.packages("survAUC"); library("... |
cf3724eb63b52d537c6bdf4993b7363bd67b5bdb | 1426ecc326a9ffb44582def40f464a6f911d917f | /programs/adam/advs.R | ce6810c954792044914c1a57b7c64737b090d86c | [] | no_license | openpharma/rinpharma_workshop_2021 | 2c902ac7a24453cbb069c3aa8cd3ee9e18ccfb0f | b4d22d56e69cfb2e332d0255cc9c788a5183b42b | refs/heads/main | 2023-08-19T20:02:19.930151 | 2021-10-25T16:01:44 | 2021-10-25T16:01:44 | 418,849,315 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,227 | r | advs.R | library(admiral)
library(dplyr)
library(lubridate)
vs <- readRDS("data_demo/VS.rds")
adsl <- readRDS("data_demo/ADSL.rds")
param_lookup <- tibble::tribble(
~VSTESTCD, ~PARAMCD, ~PARAM,
"SYSBP", "SYSBP", "Systolic Blood Pressure (mmHg)",
"DIABP", "DIABP", "Diastolic Blood Pressure (mmHg)",
"PUL", "PU... |
63ed1507196371b37f8f809805a6e4cc490493a7 | cf3efcb13e447aca3e70d6b84af637d995956f70 | /R/add_year_column.R | bf07da9c56e2ec240898b22d68e5cbbb36b19b8e | [] | no_license | davan690/brotools | 02fef9b9fde7acbd1c4d9a919efbb942a2936801 | 7e6f0b1a3f03bf50dc6a9583ef67590f488af8bc | refs/heads/master | 2022-04-17T22:30:08.934999 | 2020-04-12T20:31:34 | 2020-04-12T20:31:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,353 | r | add_year_column.R | #' Adds the year column
#' @param list_of_datasets A list containing named datasets
#' @return A list of datasets with the year column
#' @description This function works by extracting the year string contained in
#' the data set name and appending a new column to the data set with the numeric
#' value of the year. Thi... |
ae71a09b7ad2e2cd0c0081a7ab946b29471e8af7 | 8705b9a9733add3083b646a1a5bb7fd784c40a10 | /tests/testthat/test-BibEntry.R | 09dec92dc4180ed6577889fa07160c6f5cb9ac40 | [] | no_license | zeehio/RefManageR | 5e8dd44652d4660d1921cf7eddbfd957f14fbcd3 | 5498e23421cac14526f24dc2976f7ff2719c717b | refs/heads/master | 2021-01-25T09:32:11.080002 | 2017-06-02T15:22:39 | 2017-06-02T15:22:39 | 93,852,266 | 1 | 0 | null | 2017-06-09T11:28:43 | 2017-06-09T11:28:43 | null | UTF-8 | R | false | false | 1,117 | r | test-BibEntry.R | context("BibEntry")
## unloadNamespace("RefManageR")
## library(RefManageR)
test_that("BibEntry function parses LaTeX-style name fields", {
bib <- BibEntry(bibtype = "Article", key = "mclean2014",
title = "An Article Title",
editora = "Smith, Bob",
author = "McL... |
ac1537cbec502be77c779b67af6d87de6ad293e6 | a78ce9fb08d3fead97f82219056b571eb40b7d6b | /R/sample_count_2022.R | 53b4490930bced1a058bec3f9e75bac233a2596c | [
"LicenseRef-scancode-public-domain"
] | permissive | davemcg/eyeIntegration_app | c8f03a105c7c5e731169b2dfcabf6cef3a53425b | 4f23191cb0cfa07902cab80cdff7483d6fed67ad | refs/heads/master | 2023-09-03T05:02:08.757529 | 2023-08-31T19:07:47 | 2023-08-31T19:07:47 | 164,459,029 | 5 | 3 | NOASSERTION | 2023-09-04T01:28:31 | 2019-01-07T16:20:43 | HTML | UTF-8 | R | false | false | 7,725 | r | sample_count_2022.R | #' Build bar plot graphic
#'
#' Builds bar plot on main page
#'
#' @examples
#' \dontrun{source('R/sample_count_2017_2019_2022.R')}
#'
library(tidyverse)
library(pool)
library(RSQLite)
library(colorspace)
library(svglite)
sample_count_2022 <- function(){
app_location <- '/Users/mcgaugheyd//git/eyeIntegration_app... |
19bbd8eddec9a84d74b983b5e9a182aa7aad7300 | 2e731f06724220b65c2357d6ce825cf8648fdd30 | /lowpassFilter/inst/testfiles/convolve/AFL_convolve/convolve_valgrind_files/1616007454-test.R | 2041f8021e8251bc89276e6cf744d5a250a69f3c | [] | no_license | akhikolla/updatedatatype-list1 | 6bdca217d940327d3ad42144b964d0aa7b7f5d25 | 3c69a987b90f1adb52899c37b23e43ae82f9856a | refs/heads/master | 2023-03-19T11:41:13.361220 | 2021-03-20T15:40:18 | 2021-03-20T15:40:18 | 349,763,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 819 | r | 1616007454-test.R | testlist <- list(kern = numeric(0), val = c(1.02088994287928e-202, -4.72266776296739e-300, 562949953435769, -1.30618378624483e+45, 1.46283277563346e-316, -3.96901482569735e-46, 8.90721517183782e+217, -5.21188868203025e+304, 7.90783548032518e-55, 2.61835429782163e+122, -2.28998945498263e+226, -2.2899894549927e+226, ... |
f60ae628443f3b5a4cc763846c002a2e336af843 | 93731d4f81021e230fcac34c91c470768f7a6af4 | /plot1.R | 8920ef33ce2026da309a62e236e65085773adf17 | [] | no_license | isaac-yauri/Exploratory_Data_Analysis | 34380ce3e537144a0704714c19e7f16653f1eb84 | 23762aee5d4aa188e436417bac2f8fa16d5e5e9a | refs/heads/master | 2021-01-10T10:21:50.929287 | 2015-06-07T10:53:15 | 2015-06-07T10:53:15 | 37,006,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 784 | r | plot1.R | # Download ZIP File from UC Irvine Machine Learning Repository
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household.zip")
unzip("household.zip")
house <- read.csv("household_power_consumption.txt", sep=";", stringsAsFactors=FALSE)
# Changing Date format
hous... |
33a35214d5b1e2c82cc5f42ecc5848ea7a75cc20 | 86772a78af6ca3567ed333c9a4cd68c5af73848d | /examples/Exaplanets (mass and Kepler's laws recovery)/tests/postproc.R | ad9bbcea49f97b5b908caeec5982a5a229bcf97d | [] | no_license | aliaksah/EMJMCMC2016 | 077170db8ca4a21fbf158d182f551b3814c6c702 | 3954d55fc45296297ee561e0f97f85eb5048c39e | refs/heads/master | 2023-07-19T16:52:43.772170 | 2023-07-15T16:05:37 | 2023-07-15T16:05:37 | 53,848,643 | 17 | 5 | null | 2021-11-25T14:53:35 | 2016-03-14T10:51:06 | R | UTF-8 | R | false | false | 5,654 | r | postproc.R | library(hash)
library(stringi)
setwd("/mn/sarpanitu/ansatte-u2/aliaksah/abeldata/simulations/simulations/simulations")
cosi<-function(x)cos(x/180*pi)
sini<-function(x)sin(x/180*pi)
m<-function(x,y)(x*y)
expi<-function(x)
{
r<-exp(x)
if(r==Inf)
return(10000000)
else
return(r)
}
InvX<-function(x)
{
if(... |
185471f295bfd90eea54261fe855ef7d072cfba3 | 043757e6d32a45e147a574b81e77a375e3f67ea8 | /dashboard/server.r | c843523d46039b71dac1ad17e9b25ed8b126d762 | [] | no_license | MISMCapstone2015PBS/PBSProject | d0c9c789d3641b26b76a97e4acab0d566b39b802 | 6818fd4556d9b9fe396365c1a4ff5314c55f2ce9 | refs/heads/master | 2021-01-10T16:58:16.076061 | 2015-12-18T21:07:15 | 2015-12-18T21:07:15 | 44,457,220 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,627 | r | server.r | ##########################################################################
#
# File: server.R
# Author: Carnegie Mellon Heinz Capstone Team for PBS
# Purpose: This file is responsible for the backend server of the
# Shiny Dashboard. It receives each and every action performed
# in the ui a... |
82d3ebc80ca370098e35064e32a4a8af7fe3946a | 6841e590501a49bea4a099de1391cc8b66e7d5a8 | /man/taxon_distribution.Rd | 1235e83c87681784b17c1d49c46d7e355cdf6249 | [] | no_license | JonasGeschke/rcites | ec874dec5942141de41dd55ef3df567f28047515 | f8e2bc3f6173a75553ef0c917a5cf7e72fa6039b | refs/heads/master | 2020-03-27T01:30:58.700685 | 2018-08-22T09:26:53 | 2018-08-22T09:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,556 | rd | taxon_distribution.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxon_distribution.R
\name{taxon_distribution}
\alias{taxon_distribution}
\title{Get distributions data available for a given taxon concept.}
\usage{
taxon_distribution(tax_id, collapse_tags = NULL, simplify = FALSE,
token = NULL)
}
\argume... |
a908647dfb870d448db7db93d6eaf3bdee8e0ca0 | b1204862b0b25eb22e912f9cc681ff8525e836e8 | /code/functions_MAR.R | 3999ca7366ddd0c6e082c7278429993a4e61ef8d | [] | no_license | stjordanis/marginal-two-part | f568da986d4620e1ec8874fafe15b2fc62d03eca | ebf2fdd00038d27c3a425fd43c3129f2b9e22962 | refs/heads/master | 2022-04-24T11:56:01.033219 | 2020-04-20T06:20:16 | 2020-04-20T06:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,243 | r | functions_MAR.R | ######################################################
# Functions to create the MAR missing data mechanism #
######################################################
#' Calculate the probability of dropping out
#'
#' @param y numeric; the outcome variable
#' @param treatment numeric; 0 (control) or 1 (treatment)
#'
#'... |
a0e3e348a2e66107238923b9d92369ae9e3933fe | c1a46872dd1b8b0ddc80f02efef9e3f963de082f | /download.R | 4a1d1f5699924fa3b7708530e191ab1813369020 | [] | no_license | JohnAmadeo/browndatathon2019 | 560ac38be89130f93d6ba716a38be34d235153bf | 3d4881f0eca7365c82f9cb2d4fcb238769d1f542 | refs/heads/master | 2020-04-24T20:39:40.817699 | 2019-02-24T15:11:29 | 2019-02-24T15:11:29 | 172,250,972 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,834 | r | download.R | #check for libraries that are needed, install those that aren't present, and load all libraries
libraries <- c('foreign', 'tidyverse')
presentLibs <- libraries %in% rownames(installed.packages())
invisible(if(any(!presentLibs)) install.packages(libraries[!presentLibs]))
invisible(lapply(libraries, require, character.on... |
408a644ada826b792adf4dcc7d8123c9a7ccaf2a | 9f008867907d33f886270a31ca05bf1b3468603a | /man/cpg.Rd | 3c4fcd8dc7279c96e9a0376a7960154f2770168a | [] | no_license | cran/CpGassoc | 7fe11f56897f5e6eb1edadae34c1380dd22ec967 | a00f76379370cd5e15ed45ad5d930baab9d0231e | refs/heads/master | 2021-01-22T08:48:12.022364 | 2017-05-30T21:23:09 | 2017-05-30T21:23:09 | 17,678,558 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,961 | rd | cpg.Rd | \name{cpg}
\alias{plot.cpg}
\alias{summary.cpg}
\alias{print.cpg}
\alias{sort.cpg}
\title{Methods for object of class \code{"cpg"}}
\usage{
\method{plot}{cpg}(x, save.plot = NULL, file.type = "pdf", popup.pdf = FALSE,
tplot = FALSE, classic = TRUE,main.title = NULL, eps.size = ... |
22b059e00061fc34fc3e90e92441c9861a49bf43 | a76aa3dbd5df3e357c3a6b88d4c25ad4f8992d1c | /src/plot/plotCasesPreSeason.R | 2ea2fe8939d5680510b2ab252a094acf1aa8bbbd | [] | no_license | hy39/dengue-forecast-hk | dcf81ae11d43afb7711c063a448e728b4e5762f1 | 62c70b19ddff0b2819d3cceb58110a652644ee6a | refs/heads/master | 2022-07-25T10:20:08.110328 | 2019-09-11T03:02:15 | 2019-09-11T03:02:15 | 207,704,792 | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 1,673 | r | plotCasesPreSeason.R | # plot temperature against rainfall in pre-season months (Jan - Jun)
rm(list=ls(all=TRUE))
# install if ggplot2 is not found
if (!require(ggplot2)) install.packages(ggplot2)
source("../lib/retrieveData.R")
# plot using MIN temperature or AVERAGE temperature
temperatureType <- "mean"
temperatureLabel <- paste("Average... |
7e03baf07c8ec1fab2a1d3a0a01fd96134ec698b | 29585dff702209dd446c0ab52ceea046c58e384e | /NHEMOtree/R/NoDupKey.R | 5e238568b0add59ebb516d2249ea08cf92557c95 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 67 | r | NoDupKey.R | NoDupKey <-
function(Vektor){
return(unique(sort(Vektor)))
}
|
880e64032f250850ca431b0a22a2a385b13e2d1a | ff16e169ef05776d80b329d9c3db48312fd23e6d | /LinearRegression.R | 4819fcad2cdaa3c1667126b372fab272e0e95807 | [] | no_license | panupind/AdvStats | 70f953ee66415fa161fe4a7db4243213414282ed | 7b985a6b1b39704fcd83d09042ea7d64a5124935 | refs/heads/master | 2020-07-02T17:34:12.494400 | 2020-04-04T18:29:15 | 2020-04-04T18:29:15 | 201,607,340 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 119 | r | LinearRegression.R | Consumer
attach(Consumer)
linearModel <- lm( AmountCharged ~ (Income + HouseholdSize), data = Consumer)
linearModel
|
db0dc4e0d68cb0bdc036d699fbac5f06fbdd697e | 40ef9a8d519d7f50595f1abc64a87ba4c9abc41f | /tests/selenium.R | e62360a96660931a6a92c34f0b0b948982cca2e6 | [] | no_license | skranz/SeminarMatching | 38ad2ebc1ade1750ba92ac94948fc5e67e830332 | 26f84c9e1619695f5fee8372cf68c18e737e3a5f | refs/heads/master | 2021-01-19T01:47:31.971185 | 2020-06-09T05:26:08 | 2020-06-09T05:26:08 | 48,612,952 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,230 | r | selenium.R | library(RSelenium)
library(testthat)
patientFindElement = function(css, wait=0.1, max=4) {
restore.point("patientFindElement")
cat("\nTry to find ", css)
start = as.numeric(Sys.time())
end = start + max
while(TRUE) {
els = remDr$findElements(using="css",css)
if (length(els)>0) return(els[[1]])
if... |
1117bef3a4d4a4c65fc1b4e7380e7105458820bc | e7e0ccce84c80113d7aba41458007dd42127a94c | /R/read_predict.R | ff7025a4923d14e76a1f77ef8ccf6880febd2ecb | [] | no_license | halasadi/ancient-damage | ea10ea94325b66b129c1d4e9e5bf4827e5377ad2 | 51387d59d3436d796a2621d3dd72afbec48f981a | refs/heads/master | 2020-04-12T06:42:24.364980 | 2018-07-28T22:45:30 | 2018-07-28T22:45:30 | 62,754,123 | 2 | 0 | null | 2016-09-22T01:13:50 | 2016-07-06T21:20:43 | HTML | UTF-8 | R | false | false | 666 | r | read_predict.R |
topic_clus <- get(load("../utilities/moderns_Pinhasi/clus_2/model.rda"))
omega <- topic_clus$omega
theta <- topic_clus$theta
new_count <- matrix(0, ncol = dim(theta)[1], nrow = 5)
new_count[1, c(1, 100)] <- 1
new_count[2, c(1001)] <- 1
new_count[3, c(5000, 9000)] <- 1
new_count[4, c(1933)] <- 1
rownames(new_count) ... |
b23b93ae8e0b4d3ab251aeb545f1054a81178b32 | 16e417ac3011ae8b9f7e2ee01c02fad806e320ac | /Plot6.R | 7ba697a0aa3fff2058c0454087ae6f19a01fc0b9 | [] | no_license | arlopezs2015/Peer-Exploratory-Data-Analysis-2 | 11057b54f74aa8e5e43b9c8d1c226787301f310e | 72e673abc6200ed255103c28f9465399d09b4734 | refs/heads/master | 2016-09-05T09:50:45.303060 | 2015-04-24T19:06:41 | 2015-04-24T19:06:41 | 34,530,045 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,204 | r | Plot6.R | ##PLOT_6
##Required data
setwd("./data")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
##To call libraries
library(plyr)
library(ggplot2)
library(data.table)
##To filter the data
##emision<-aggregate(NEI_Veh$Emissions, list(NEI_Veh$year,NEI_Veh$fips), sum,na.rm=TRUE)
NEI_Veh1 ... |
a5dc3f81265c432711d039e7769a0d12be5522c1 | 29585dff702209dd446c0ab52ceea046c58e384e | /tiger/R/k_hyd.R | 69e2cf243956d3e5d5e7966f47204c6280776e6e | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 114 | r | k_hyd.R | `k_hyd` <-
function(x){
d<-diff(x)
res<--c(d,NA)/x
res[d>=0]<-NA
res[x==0]<-NA
return(res)
}
|
0c83556be35b8225683f39edef0d85ff4e824efb | 2d32305806855dc8793ab0348acef458b139f1be | /tests/testthat/test-extendOM.R | bc22a6518ccce0c6bb8fd76be9940225728dbd38 | [
"MIT"
] | permissive | nmfs-fish-tools/SSMSE | 07a9ed4defb370833864183b7f4a775425c53b3c | 47445d973a537eaf9a7361f842d3f7a404bca247 | refs/heads/main | 2023-08-16T21:18:17.253400 | 2023-08-09T21:40:26 | 2023-08-10T12:20:30 | 197,069,801 | 16 | 5 | MIT | 2023-09-08T16:03:34 | 2019-07-15T20:44:06 | R | UTF-8 | R | false | false | 8,409 | r | test-extendOM.R | context("Test functions in extendOM.R script")
# create a temporary location to avoid adding files to the repo.
temp_path <- file.path(tempdir(), "test-extendOM")
dir.create(temp_path, showWarnings = FALSE)
wd <- getwd()
setwd(temp_path)
on.exit(setwd(wd), add = TRUE)
on.exit(unlink(temp_path, recursive = TRUE), add =... |
0a8287de3c747b908d8aa90a683d92a6c2f7cd66 | fda540791ba58168598b8320571356a565f9faf1 | /explore/prob_laudo.R | f74327df55da6bafa736c2df0a14e24813e6d29a | [] | no_license | monzalo14/conciliacion | 5c3e1272090d3575552ab9b58b5b514ab9cfe58f | 5e4670ec32026a85f5bedd0f01decee1cec01394 | refs/heads/master | 2021-01-12T08:58:27.217523 | 2017-05-04T07:16:47 | 2017-05-04T07:16:47 | 76,738,998 | 1 | 3 | null | 2017-02-15T18:40:55 | 2016-12-17T18:05:28 | R | UTF-8 | R | false | false | 3,078 | r | prob_laudo.R | prob_laudo <- function(df){
load('probabilidad_laudo.RData')
prediccion_RF <- predict(RF_best, df, 'prob')
prediccion_RF[, '0']
}
prob_laudo_vars <- function(array){
load('probabilidad_laudo.RData')
names(array) <- c('reclutamiento', 'gen',
'antig', 'reinst', 'hextra',
... |
ddca2f5795bc2a3ed72bdcfa6f3aae3e33e7a79f | 97e7aa649b53bb279c452e3e7a7a875e68883627 | /Time Series Analysis, Text Analysis/Lab7-Visualization.R | ca4ab9c232323a77e1906f9ad6a6aedcf392065c | [] | no_license | nancy9taya/DataDataAnlytics | bd6acee9bd3ea49c7f540c0dcebc010777e388ec | 8a4304fcdad5e8fb919322e810fdca14cdde4a34 | refs/heads/main | 2023-05-06T02:41:48.015714 | 2021-06-02T10:36:15 | 2021-06-02T10:36:15 | 372,842,076 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,476 | r | Lab7-Visualization.R | rm(list=ls())
setwd("D:/Rehab/Studies/Senior 2/Spring 2021/Big Data/Labs/Lab 7 - Time Series Analysis, Text Analysis and Visualization/Visualization in R") #Replace this working directory with the directory containing the R file.
install.packages("ggplot2")
library("ggplot2")
#Question 1
data <- read.csv("dat... |
fe81ead3e7a196c3ab21a5d4ad062788aa73c87d | 8587cbe2e309f29a1e539e31509ccf75daacc764 | /3/bernoulli distribution.R | 1bad72408cd0df371f4831945c9a3509f55e9df4 | [] | no_license | alidarvishi14/applied-stochastic-process | 6d39ff6f7db0b7f60527b9c36cde61c3d2ab9941 | b528f5aec7dc6ac64001ef5e16a38fb731ad6807 | refs/heads/main | 2023-02-22T11:49:19.103362 | 2021-01-25T12:33:27 | 2021-01-25T12:33:27 | 332,736,616 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 150 | r | bernoulli distribution.R | p=0.4
n=100
bernoulli=runif(n)<p
n=10^1
p=0.5
u=runif(1)
x=rep(0,n)
for (i in 1:n){
x[i]=u<p
if(x[i]){
u=u/p
}else{
u=(u-p)/(1-p)
}
} |
47355fb02ce00eb25e306e70ac2276bdda9d1790 | c4f1eebce3840414014000d5c926b7db6d7b0650 | /Janousek_et_al_2015_modelling_Springer/Part_2/Code/Exercises/exe_8.2_sazava_fc_mjr.r | a263f7cbfdb27831f48c0022aaeed61c5aea44ce | [] | no_license | nghia1991ad/GCDkit_book_R | 0148bf06dda0837a32f2e8b2110e1a148bc0c7a1 | f215dfeabd19d2521e10ad076bbdfb4c55f77c5b | refs/heads/master | 2022-10-09T00:57:55.521638 | 2020-06-08T09:50:51 | 2020-06-08T09:50:51 | 269,319,776 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 630 | r | exe_8.2_sazava_fc_mjr.r | x <- read.table("sazava_fc.data",sep="\t")
x <- as.matrix(x) # dataframe needs to be transformed to
# a matrix for matrix multiplication
c0 <- x[,1] # composition of parental magma
mins <- x[,-1] # composition of fractionating phases
m <- c(0.5,0.3,0.2) # mine... |
2ed7e9a6db6e804b2a1f97ef8fc164de3b22e05c | 433a06997823e22efd9d351698a108fdbbc68ea9 | /cachematrix.R | ef5aeef23631fe9ab1bebf377d9ba4f1c8d80da4 | [] | no_license | scify65/ProgrammingAssignment2 | a4e0e61094b5496caabaa3cdfb98690441352219 | 97b3c180e9d25a31f40962faeba88f9ef7733848 | refs/heads/master | 2021-01-17T13:21:57.543723 | 2015-06-07T02:54:08 | 2015-06-07T02:54:08 | 31,139,832 | 0 | 0 | null | 2015-02-21T20:30:28 | 2015-02-21T20:30:28 | null | UTF-8 | R | false | false | 730 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Creates a matrix and its inverse.
makeCacheMatrix <- function(x = matrix(),...) {
m<-NULL
set <- function(y) {
x<<-y
m<<-NULL
}
get <- function() x
setinverse <-function(solve) m <<- solve
get... |
c1756a8c60f3b1be6f3578cc5d69b8ffe61ecd6e | 9b41f42dea23be6cd0ade93716efa051858a6f0b | /Scripts/FFPE_trio_summary_plots.R | 3a7777f943f8cc3c499bfb6cc4c2fec5426420b4 | [] | no_license | martimij/FFPE_trio_analysis_mirrored | b31be16f3eed5c9c84fc2d5509f92ab0445c8eae | dc6c7f70877450def4275150caac544fef52c2f1 | refs/heads/master | 2020-03-14T16:45:59.300916 | 2018-05-01T11:35:30 | 2018-05-01T11:35:30 | 131,704,437 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,087 | r | FFPE_trio_summary_plots.R | # FFPE trio analysis
# Martina Mijuskovic
# May 2017
######### Load libraries #########
# NOTE: Installing R packages on HPC: use lib = "~/R/x86_64-pc-linux-gnu-library/3.X"
library(dplyr)
library(reshape)
library(ggplot2)
library(scales)
library(R.utils)
library(jsonlite)
######### Helper objects for plotting ##... |
a17848d18836cd829e023ebc43e9c436985c8b25 | cfaf2e9ea3ca0b733117cb9e745c0444cb8ae20f | /man/remove.spaces.Rd | e88cc82ad7e411657e04b492e2c24213a70dfd7b | [] | no_license | cran/fsthet | b538842911099c942740fec913b7bb1cd71f0f5f | de47813bfe7b7f218e56fd7e8ff798f266414959 | refs/heads/master | 2021-05-07T07:46:25.074811 | 2018-03-20T17:27:53 | 2018-03-20T17:27:53 | 109,258,201 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 590 | rd | remove.spaces.Rd | \name{remove.spaces}
\alias{remove.spaces}
\title{This removes spaces from a character vector}
\description{
This removes spaces from a before and after words in a character vector.
It was adapted from a similar function in adegenet.
}
\usage{
remove.spaces(charvec)
}
\arguments{
\item{charvec}{is a v... |
9b37733ec14691082413beb52d00bc7f0f24d84c | 7c53acd05c2a5fde82fce04b4214b077df773fdc | /R/cfb_conferences.R | 0e9004a4e08f7960ebd74b57d1e5e7e257885315 | [
"MIT"
] | permissive | sabinanalytics/cfbscrapR | 953a10bf17bba5ae58e112f4980ebd831f399a10 | 4fdf232ab410d39d67cf2297d2ead77c12ef2241 | refs/heads/master | 2022-12-02T06:34:54.975718 | 2020-08-11T13:58:34 | 2020-08-11T13:58:34 | 286,620,414 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,119 | r | cfb_conferences.R | #' CFB Conference Information
#'
#' Pulls all college football conferences and returns as
#' data.frame the following fields:
#' @format A data frame with 11 rows and 4 variables:
#' \describe{
#' \item{id}{Referencing conference id}
#' \item{name}{Conference name}
#' \item{long_name}{Long name for Conference}
#'... |
b8c3384758aea83b676749980bd36c40b6c62b83 | 7c5caeca7735d7909c29ee3ed6074ad008320cf0 | /misc/example-data/soiltexture/first-draft-LUT.R | fe199a2f544dd92748949d3b950c4901936b9237 | [] | no_license | ncss-tech/aqp | 8063e800ed55458cfa7e74bc7e2ef60ac3b1e6f5 | c80591ee6fe6f4f08b9ea1a5cd011fc6d02b5c4a | refs/heads/master | 2023-09-02T07:45:34.769566 | 2023-08-31T00:14:22 | 2023-08-31T00:27:14 | 54,595,349 | 47 | 12 | null | 2023-08-17T15:33:59 | 2016-03-23T21:48:50 | R | UTF-8 | R | false | false | 1,312 | r | first-draft-LUT.R | # # this creates a lookup from ssc to texcl using the soiltexture package function TT.points.in.classes, which is not really inituitive
# soiltexture <- expand.grid(clay = 0:100, sand = 0:100, silt = 0:100)
# soiltexture <- subset(soiltexture, (clay + silt + sand) == 100)
# soiltexture$texcl <- apply(soiltexture, 1, FU... |
739246cafda18d25ee411df0dd955936e687c6fa | 76dbce75d2127a9304e2bce5f929898e11bedf54 | /code/plan/98_palettes.R | 7b1b7acdaf134e53fad5c083b8e436f71f495ec9 | [] | no_license | milescsmith/rnaseq_drake | dcabc8f702e9d9faf1095412c49f22178a253e71 | 982591fa14979dee72b22aa24304a30c8b25f8df | refs/heads/main | 2023-04-02T10:08:49.527920 | 2021-03-26T15:00:16 | 2021-03-26T15:00:16 | 344,952,270 | 0 | 0 | null | 2021-03-26T14:50:56 | 2021-03-05T22:40:53 | R | UTF-8 | R | false | false | 2,099 | r | 98_palettes.R | # we manually setup the palettes for pheatmap because letting it automatically pick the colors results in terrible choices
type_pal =
paletteer_d(
"ggsci::category20_d3",
n = length(levels(annotated_modules$type))
) %>%
as.character() %>%
set_names(levels(annotated_modules$type)) %>%
inset2("Undetermi... |
7897db414f18779ca71ef2e670824bc15516c563 | c5faa9a2e350978662624f73725eb7ee02c55cb0 | /R/SMA.R | 2819f1636dbdcca54cb05eb81d4e1ac1a46ccf3e | [] | no_license | HenrikBengtsson/aroma | 341cc51ddd8f9c111347207535bfe2a85ea7622a | c0314ea003fb1d99d0db7f314e86059502d175c6 | refs/heads/master | 2016-09-05T18:24:56.275671 | 2014-06-19T04:13:11 | 2014-06-19T04:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,172 | r | SMA.R | #########################################################################/**
# @RdocClass SMA
#
# @title "The SMA class"
#
# \description{
# @classhierarchy
#
# The SMA class is a static class that provided methods to convert
# data object in aroma into sma structures. This could be
# useful if you would like to... |
272b27a57fe9f9a99c3cdc686953d87f801adf8a | b67bef2e6295b68a6ba404e78505258a1ac2f95f | /R/accessors.MGLMsparsereg.R | f89d2c423769195eaac9217544b378269e4d56f8 | [] | no_license | cran/MGLM | beda91fe76a43884434647620d2bf4aebedc1a59 | e0b8d5d6dec9b3b0dcc74514b0b68438276513d4 | refs/heads/master | 2022-05-01T07:22:15.450258 | 2022-04-13T22:32:32 | 2022-04-13T22:32:32 | 17,680,602 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,267 | r | accessors.MGLMsparsereg.R | # extract maxlambda from MGLMsparsereg class
##============================================================##
#' @name maxlambda
#' @title Extract maximum lambda
#' @description \code{maxlambda} extracts the maximum tuning parameter that ensures
#' the estimated regression coefficients are not all zero for the obj... |
bd2da96eab33f8c21dbbc6b7fd354da39e8678e9 | 8ad53152d40a63bf0716a9a2f8efae7d9941b42f | /src/05-endemicity.R | 97ce08f9818055fcd1b5d6456c1239ffbeacdf35 | [] | no_license | csmiguel/smallmammals_Kinabalu | 9039dbd119affa54b4ae0383b22fb60a44df43f7 | 5d92e6ae91f5acb1f2e4c6a474abba4ae45a44c9 | refs/heads/master | 2021-06-20T11:54:36.327229 | 2021-02-19T18:38:56 | 2021-02-19T18:38:56 | 185,110,009 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,338 | r | 05-endemicity.R | ###.............................................................................
# (c) Miguel Camacho Sánchez
# miguelcamachosanchez@gmail.com // miguelcamachosanchez.weebly.com
# https://scholar.google.co.uk/citations?user=1M02-S4AAAAJ&hl=en
# May 2019
###.................................................................. |
a30976d035d4f383739e2b4eba4ca7b5ad0ef0f0 | 8d949d4b6131ad47e60c152594bdd487c7cb405a | /logistical modelling.R | 495c9acdeccda97a970ca870614fd3033a7a3da7 | [] | no_license | krishhhhh007/iit_guwahati | 5da9ab6632fcd87bb3a5cd74f8a7cb4b372ed50e | ac55a7c3cae08542a5badf0f054f47c055af0329 | refs/heads/master | 2020-03-09T12:01:11.656278 | 2018-04-13T13:35:34 | 2018-04-13T13:35:34 | 128,775,287 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,264 | r | logistical modelling.R | # import the data
dataset= read.csv("./data/logr2.csv")
str(dataset)
summary(dataset)
install.packages("caTools")
library(caTools)
set.seed(2000) # regenerate the same set of data
split = sample.split(dataset$purchased, SplitRatio = 0.75)
training_set = subset(dataset, split== TRUE)
test_set = subset(dataset, split ... |
c15a7e60174bbc23387e9870b610da66392b487d | 4ee1fdae7773dfe77d94030f30acaf240a3ba828 | /tests/testthat/test-summarise_count_if.R | ebbcedb5f8bf2bf1303df872f56e5bd70bc6d2e3 | [
"MIT"
] | permissive | ryentes/dplyrr | 4fb193f4dd8ab6e2fa90d894d098590577c2680a | 316de0ea01a677b11bc55154ae34f906f22a6844 | refs/heads/master | 2021-01-12T13:12:09.128158 | 2016-10-03T06:29:29 | 2016-10-03T06:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,079 | r | test-summarise_count_if.R | context("summarise_count_if")
srcs <- temp_srcs("sqlite", "postgres")
df <- data.frame(class = c("A", "A", "A", "B", "B", "B"), x = 1:6)
tbls <- dplyr:::temp_load(srcs, list(df=df))
temp_tbl <- tbls$sqlite$df
test_that("using count_if in summarise for SQLite", {
q <- temp_tbl %>%
summarise(y = count_if(x %% 2 ... |
6307c2216ecfd80da407d4151c9a375991d75274 | d78eae7ac9af144c10941285e59804b7cb979a9d | /man/lincs.Rd | 1ff3f471692fe2cac2e9e78c9a353ed3d5f8d2b9 | [] | no_license | tgirke/signatureSearchData | 0d29646ac0d79e4b241f006da7127b0bc12b1f89 | dea5184e84ec36ef91fc3e00b9a09f111f3db30a | refs/heads/master | 2020-05-15T19:55:02.973706 | 2019-04-17T00:46:59 | 2019-04-17T00:46:59 | 182,468,863 | 0 | 0 | null | 2019-04-21T00:51:58 | 2019-04-21T00:51:57 | null | UTF-8 | R | false | false | 749 | rd | lincs.Rd | \name{lincs}
\alias{lincs}
\title{lincs signature database}
\description{
The \code{lincs} database represents moderated z-scores from DE analysis of
12,328 genes from 8,140 compound treatments in 30 cells
(45,956 signatures in total).
}
\details{
The original LINCS Level 5 moderated z-score database was downloaded... |
4468153764f588977730572ffc17400166ce869c | 7a3fab09998dfeb3c726a6cb8e98e50b780d3bff | /TDI.ResultsAnalysis/R/identify.tarDEGlist.givendriverNtumorset.R | 92048ef2cbca634913a2b41d4195bd25e048c54d | [] | no_license | minnownino/TDIResultAnalysis | b18aa13953dba0e7d39f74864b16928fd3bc2aa4 | cc21dca0165ffc1de0f4e30ad26db7aa2f0d3a33 | refs/heads/master | 2020-12-02T17:57:30.561680 | 2018-02-12T22:49:47 | 2018-02-12T22:49:47 | 96,453,033 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,440 | r | identify.tarDEGlist.givendriverNtumorset.R | #' @title Identify Target DEGs Associated with Each Significant Driver
#'
#' @description If a DEG is a target of a driver, the causal links between the driver and the DEG has to present in at least 20% (by default) of the tumors where the driver is present.
#'
#' @param driver identify the target DEGs for the given li... |
4abf04ccfda27e720b9211b147053860952e104b | 17ea2c72b3a83c16387df89bba76455b59150cee | /02_01.R | 9c9a87a5ab804e1272b911b8e963141c06b63a11 | [] | no_license | JakubKraus/statistika | 4472a4572957b289122e023ca3c2ff29258a9ce2 | 1c081ce58d7e789981a344927652c0c0a9c75023 | refs/heads/master | 2021-01-14T19:23:32.601046 | 2020-03-09T12:12:38 | 2020-03-09T12:12:38 | 242,728,827 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,955 | r | 02_01.R | # nacteme knihovnu "prob"
library (prob)
# Priklad 1
# s ciselnymi hodnotami
n <- 4
mince <- tosscoin (n)
# vytvoril se tzv. data.frame = datova tabulka (matice) s pojmenovanymi sloupci
mince
# rozmery
dim (mince)
nrow (mince)
ncol (mince)
# nazvy sloupcu (promennych)
names (mince)
# nazvy lze menit, napr.
names ... |
b7ffa559ca7a79b604e88d2c33df9f769494dd2e | 78e5fc01cafb39bf2e93023ef76664f42192a468 | /man/loadSampleRegions.Rd | df1214d7ae311ebf5fbc2588e1cb5bd65965e92e | [] | no_license | cran/VSE | a9d772fe2e305057abff7d06fc5211e5d885ce02 | b47d0be054ecc7589a57a31399a876b50f645e73 | refs/heads/master | 2020-12-22T23:07:31.043759 | 2016-03-21T23:10:53 | 2016-03-21T23:10:53 | 236,958,069 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 800 | rd | loadSampleRegions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loadSampleRegions.R
\name{loadSampleRegions}
\alias{loadSampleRegions}
\title{loadSampleRegions}
\usage{
loadSampleRegions()
}
\value{
A directory names VSE_samples that will contain 6 bed files and 1 sampleSheet.csv
}
\description{
The sampl... |
232311e2b4bc0cc0ef9563a9847b48f93eb0364b | 7382ae78fe19bfe9ac782b271e7e79568ed4763a | /scripts/final/maps/timespent_hexbinning&map_hexgrid.R | 3f3bc47d3738fd8fb7483e86e38bb3c73e76d896 | [] | no_license | MartinBeal/political_connectivity | 38ed005c64a49adfbe1a360961b5762ff416a65b | 55e74ec1fa63f827e0d541f8fef05c02f8d2c68a | refs/heads/master | 2023-03-16T01:19:36.424153 | 2021-02-02T16:45:55 | 2021-02-02T16:45:55 | 205,902,098 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 18,152 | r | timespent_hexbinning&map_hexgrid.R | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Create maps of tracking data binned into hex.grid, and re-centering geodata to pacific perspective #
# Time spent #
#*** projection transformations in this script only work with R<4.0 and lwgeom versions <2.0
#~... |
058fe0c78c64619b1ad6d28af63e70b6b30f2a12 | 410c9a8e0131ffff6938492d577d1e0bed999f80 | /repository/Cohort_GetQC.R | 6f9a20d4bf805183d9ed8f1430ddea778b0a038e | [
"MIT"
] | permissive | roland-rad-lab/MoCaSeq | 02bd677f938a4d3561a9ae64087014a06074fcdc | a2a2c2a53ff8a53fd69b2b782577ec126bc7e53b | refs/heads/master | 2023-08-31T23:50:56.868148 | 2023-06-03T17:21:27 | 2023-06-03T17:21:27 | 162,331,694 | 15 | 14 | NOASSERTION | 2023-08-18T11:49:19 | 2018-12-18T18:45:48 | R | UTF-8 | R | false | false | 5,826 | r | Cohort_GetQC.R | # CALL THIS ONCE
library(data.table)
library(tidyr)
library(matrixStats)
library(doParallel)
registerDoParallel(cores=5)
getQC <- function(mousefolder){
mouseid <- gsub("/", "", mousefolder)
QCfolder <- paste0(mousefolder, "results/QC/", mouseid, "_data/")
file1 <- paste0(QCfolder, "multiqc_general_stats.tx... |
ac6ce3c46f1e54c4beac16b604a886f863008cdb | 63e843f5e9d83949e7110efb028304c610224695 | /man/rankReads.Rd | c060dd592f3684dd5a9d39e5efc7322ebe98ac70 | [] | no_license | cran/fcros | 6b7f6549de38ea8b89918fb98d9aa8cc83ed577e | 80a62f508adde2f33168ba4bb9d86c1f7e168dcb | refs/heads/master | 2020-04-15T22:48:09.671668 | 2019-05-31T11:40:07 | 2019-05-31T11:40:07 | 17,695,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,282 | rd | rankReads.Rd | \name{rankReads}
\alias{rankReads}
\title{This function computes a score to assess the significance of sequencing values}
\description{Implementation of two methods based (1) on the coefficient of variation
or (2) on the fold change rank ordering statistics for detecting genes
with si... |
1e40e8574b6f1c7720fcf6b551409b1f29f24783 | ec68ef4a9502f4556f710fcfc5666ab3e2a0076e | /Classification-Algorithms_R-master/Classification-Algorithms_R-master/TAN/Calculate_mi.R | 64fd91f3577a405eca4c51edee51d6b342083724 | [] | no_license | taigi0315/ML_Implementation | d9221bf35e33f2a52053df2cfe76897561d7b6fb | f2f190c674cfb3d58dfd24277943beb4d7df40b4 | refs/heads/master | 2020-03-25T00:09:03.146332 | 2018-08-01T15:02:52 | 2018-08-01T15:02:52 | 143,171,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 810 | r | Calculate_mi.R | Calculate_mi <- function(dat){
n_feat <- (ncol(dat)-1)
n_row <- nrow(dat)
M.I_matrix <- matrix(0, nrow=n_feat, ncol=n_feat)
for(i in 1:(n_feat-1)){ #i,j are index for X_i, X_j
for(j in (i+1):n_feat){
number.of.x = length(unique(dat[,i])) #get unique value in X_i, X_j
number.of.y = length(uniq... |
1054649906436a87f025ad2509bba17a661309a4 | eb5dc9801ce9e56fac76b5bcb97eb518db24846d | /sp/R/merge.R | ee7e15c0a9b72fe649044f3dd19e13955af2cdad | [] | no_license | radfordneal/R-package-mods | 3948895d007a61a817ea382486c492543bd1978b | 57ab5792b8e86581ba72ea3f093700fcd13d336d | refs/heads/master | 2020-03-27T19:55:43.393031 | 2018-11-11T20:19:53 | 2018-11-11T20:19:53 | 147,021,819 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,809 | r | merge.R | # Author: Robert J. Hijmans
# Date : November 2011
# Version 1.0
# Licence GPL v3
if (!isGeneric("merge")) {
setGeneric("merge", function(x, y, ...)
standardGeneric("merge"))
}
setMethod('merge', signature(x='Spatial', y='data.frame'),
function(x, y, by=intersect(names(x), names(y)), by.x=by,
by.y=b... |
0d5706d60f89a6d6bc023e592371a09bdaea89dd | f2d28a0f3a0ff55496f8f65826779ec79a24040e | /man/CompareLocusNames.Rd | 7a167aeb8b97eb19bf9f5368434c89ff04693dde | [] | no_license | eriqande/swfsc.mega.tools | 5c0a32b251187a682fa8a29cfae2ef54736b3cc1 | cb26c58855aa341a52f92f66003919e7b20d66fd | refs/heads/master | 2020-05-17T17:57:39.720027 | 2014-03-07T23:41:30 | 2014-03-07T23:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,123 | rd | CompareLocusNames.Rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{CompareLocusNames}
\alias{CompareLocusNames}
\title{find closely matching locus names between two files}
\usage{
CompareLocusNames(First, Second, maxD = 7)
}
\arguments{
\item{First}{Either a vector of locus names, or a data
frame in which the loci start in... |
2a8d0dfe564d7fdce0575f801c83749112ecaf39 | 3f1aa8be40d971b34f417f5b8c420f9725a8772f | /man/param1.Rd | 6657ca2dfce825f0ac6e27a1320ca481c37fdab5 | [] | no_license | cran/MetaLandSim | 16f3a78b7478ef2eedf4fca307caa8d0858ba384 | 7903126e4e905cff603ecc97695a927bc8483064 | refs/heads/master | 2023-04-04T13:29:32.818818 | 2023-01-12T21:30:02 | 2023-01-12T21:30:02 | 26,391,540 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 924 | rd | param1.Rd | \name{param1}
\alias{param1}
\docType{data}
\title{
Sample parameter data frame number 1
}
\description{
Sample data frame, as produced by \code{\link{parameter.estimate}}. These parameters are to be passed to \code{\link{spom}}. These are made up parameters, not related to any species.
}
\usage{data(param1)}
\format{
... |
3fe6541a106ed79edb7de569226b4e7f42dae05b | 759adc33cff9b8ae3ae8d9e88ba817fc564a6614 | /final_validation/analyze_model_by_province.R | 3e952054a06f81b29bab51bf6330b5649ef8bf92 | [] | no_license | cllorca1/mtoEstimation | cba89fc63364501400a8ec1bf51629dad4e06246 | edfb77f0255620766beed91ef25ba19e014cb383 | refs/heads/master | 2021-01-25T08:12:47.534334 | 2020-02-24T12:09:46 | 2020-02-24T12:09:46 | 93,727,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,296 | r | analyze_model_by_province.R | pacman::p_load(data.table, dplyr, ggplot2)
#read model data
folder_model = "C:/models/treso-ldpm/output/"
trips = fread(paste(folder_model, "ldpm_trips.csv", sep = "")) %>% filter(!international)
trips = trips %>%
mutate(weight = if_else(tripState == "away", 0, if_else(tripState == "daytrip" , 1, 0.5)))
#read leve... |
7a7e425ac19429010bc770b078a93ee86f642526 | 7d1218aa7a1bfaa51d940838ceb7cc6bc639b400 | /UsingMpmTools.R | a5367e990143049cfd1b7ea655443e4b025f5c72 | [] | no_license | robjohnnoble/MatPopModels | aa3b297665567231c9bcd53e12b757194be77622 | ad507103b7fd337267d7adb05a3a886d6db5a372 | refs/heads/main | 2023-03-05T15:17:35.787767 | 2021-02-17T10:02:41 | 2021-02-17T10:02:41 | 333,397,337 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 966 | r | UsingMpmTools.R | install.packages("devtools") # install a package that enables you to install mpmtools from the github website
library(devtools) # load that package
devtools::install_github("BruceKendall/mpmtools") # install the mpmtools package
library(mpmtools) # load the mpmtools package
########
Caswell_Ex_2.1 # an example matri... |
d0145d56fe21bfd5a856265d002e775bcca26327 | f90ec5dd7c8e2abd38681a86bdbebccbf4111d2a | /man/stk1.Rd | 0568fab19d012a38793f3a87c7747107edd20f7f | [] | no_license | marchtaylor/FLIBM | b5f680db8fe863702cbe13394472bfd0712a1987 | ca26982c48f52db0dcd227c5d4abbf73ea36c933 | refs/heads/master | 2023-04-03T16:13:38.723948 | 2023-03-29T13:31:50 | 2023-03-29T13:31:50 | 187,761,005 | 7 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,727 | rd | stk1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stk1.R
\docType{data}
\name{stk1}
\alias{stk1}
\title{stk1 dataset}
\format{
FLIBM class object
}
\usage{
data(stk1)
}
\description{
The \code{stk1} data generated with the with FLIBM.
The stock has a seasonal recruitment pattern, with intera... |
d5187175daa37bdefd30a8f2c77ea99afd49c015 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /DPWeibull/R/plot.R | 4f2f791876bba6d3f7e6640bc824883468d6f5fd | [] | 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 | false | 17,023 | r | plot.R |
plot.dpm<-function(x,simultaneous=FALSE,...){
if((x$simultaneous==FALSE)&(simultaneous==FALSE)){
plot(c(0,x$predtime),c(1,x$Spred),type="l",lwd=3,main="Survival",ylab="",xlab="Time",ylim=c(min(x$Spredl,na.rm=TRUE),1))
}else{
x$Sbandl<-confband(x$alpha,x$S)[1,]
x$Sbandu<-confband(x$alpha,x$S)[2,]
p... |
9bf949e738683ea0609cd13f8ad8a8ae5d4afc5b | 4eb5cda5f02f054d64745ce91923dd1fa4ea9095 | /Vuln_Index/eck1.vulnDataImport.R | d9bbbc12e41f1af4d58a6be143f4c64379d3f902 | [] | no_license | mczapanskiy-usgs/WERC-SC | e2e7cb68616ef0492144c0ef97629abb280103ae | caec92b844c9af737dcfc8d6dbb736de79c3e71c | refs/heads/master | 2021-12-02T16:42:16.529960 | 2021-12-01T16:58:20 | 2021-12-01T16:58:20 | 36,815,737 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,614 | r | eck1.vulnDataImport.R | ## this script loads the metric and final senstivity score data for analysis
## and performs cluster and correlation analyses on the metrics to determine which ones the most like eachother
classes = c("character", "character", "character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", ... |
eb0fd28ef459158140dd73bd766813d012029569 | ee7524bebc54a414d5b64addd77a78600b4b38ba | /cachematrix.R | 7943b0758a719f6676a13da0aa588b660b150651 | [] | no_license | ek106/ProgrammingAssignment2 | 37aa62935cae5c7b10f15f9ea7b94d0a26f4e55e | dc32293d2e5a1ceb8aecc69859270a5a716ece4f | refs/heads/master | 2021-01-13T04:55:12.093016 | 2017-02-07T18:08:00 | 2017-02-07T18:08:00 | 81,139,017 | 0 | 0 | null | 2017-02-06T22:11:39 | 2017-02-06T22:11:39 | null | UTF-8 | R | false | false | 2,026 | r | cachematrix.R | ## Use lexical scoping to assign the inverse of a matrix, taking advantage
## of caching
## makeCacheMatrix creates a list that:
## sets the value of the matrix (using set)
## gets the value of the matrix (using get)
## sets the value of the inverse of the matrix (using setinverse)
## gets the value of the inverse of ... |
559408896ba248d1546f8e93d36c8dd2f90bc85f | b98454c4905d0d9f600baa4db64e3ff6480823c2 | /2-install-site-packages.R | 4490390ab4bcd1daaca7529d1ef968924204416c | [] | no_license | southwick-associates/R-setup | 48f2f45ab63ac45e27188539f3bfcd9e0c54c3b6 | 1c8284c9638c3d45225d11b5fbf4d9d8247d4b64 | refs/heads/master | 2020-09-24T02:49:47.251989 | 2020-02-17T20:25:50 | 2020-02-17T20:25:50 | 225,644,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 185 | r | 2-install-site-packages.R | # A number of packages will be downloaded and installed
# select OK (or yes) if prompted to install additional packages
source("code/02-install-site-library.R") # southwick R settings
|
2552505672491271a611ddf2df6580f2d24cdeeb | fd570307c637f9101ab25a223356ec32dacbff0a | /src-local/specpr/src.specpr/init/wdgsb5.r | d401343ccdbcdf8785a4c5da7ee6b67491471d5e | [] | no_license | ns-bak/tetracorder-tutorial | 3ab4dd14950eff0d63429291c648820fb14bb4cb | fd07c008100f6021c293ce3c1f69584cc35de98a | refs/heads/master | 2022-07-30T06:04:07.138507 | 2021-01-03T22:19:09 | 2021-01-03T22:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,602 | r | wdgsb5.r | subroutine wdgsb5
implicit integer*4 (i-n)
#ccc version date: 06/01/83
#ccc author(s): Roger Clark & Jeff Hoover
#ccc language: Fortran
#ccc
#ccc short description:
#ccc This subroutine displays various commands
#ccc algorithm description: none
#ccc system requirements: none
#ccc subrouti... |
6612ac8e90b3c1ad25a2956c1ae21f322269f4ec | 93c1bea1358fc663906a33b3260b59a3225f169f | /semTools/R/miPowerFit.R | 146eb78a8840ab291be17c7501505cc8ef7f0b3b | [] | no_license | simsem/semTools | 8130c9dd00a545536635c72f428804757cc82e09 | 36b8a032cabe77e0df7da32f403168fccc74699a | refs/heads/master | 2023-08-18T01:04:37.833956 | 2023-08-10T14:54:11 | 2023-08-10T14:54:11 | 4,353,483 | 60 | 43 | null | 2023-08-18T15:12:21 | 2012-05-17T00:47:07 | R | UTF-8 | R | false | false | 15,963 | r | miPowerFit.R | ### Sunthud Pornprasertmanit and Terrence D. Jorgensen (added ... argument)
### Last updated: 2 September 2021
##' Modification indices and their power approach for model fit evaluation
##'
##' The model fit evaluation approach using modification indices and expected
##' parameter changes.
##'
##' To decide whether a... |
d8bc43e09d94f00a3a7104c26dc942446df72593 | 9818edb917a1244192e03076b920114518715e8a | /systematic-investor/Introduction-to-Backtesting-library.R | 25a5ba96cddad839d867bc65d4e433a7928bc3e3 | [
"MIT"
] | permissive | rivu-basu/R_for_Quantitative_Finance | 927d06495a1668e32ec0671b7b88ba72e6bdf183 | f4c78c547c28408cc0f859630ebe57f2fb61b6c8 | refs/heads/master | 2020-05-21T17:07:27.580327 | 2014-08-29T03:25:52 | 2014-08-29T03:25:52 | 186,116,962 | 1 | 0 | MIT | 2019-05-11T10:07:26 | 2019-05-11T10:07:25 | null | UTF-8 | R | false | false | 2,917 | r | Introduction-to-Backtesting-library.R |
# evaluate and analyze Trading Strategies
con = gzcon(file('sit.gz', 'rb')) #from same folder
source(con)
close(con)
load.packages('quantmod')
# data is a time series of price
# signal is a indicator vector for buy and sell
bt.simple <- function(data, signal)
{
# lag serial
signal <- lag(signal,1)
# back fil... |
2f8662c4b5a367f8a07cffc2b0f964d34ea26ee8 | b9df7a5a1751767c00b6b73e1734d428411be3de | /man/acs.fetch.Rd | d6192a236a9f42c882cd35499920864af5256f56 | [] | no_license | pssguy/acs-1 | bedfde0752f59975c6b4610e59a7dfd96fad9376 | d3fcfdff719d328356ab1f2a3b4af1133385cea7 | refs/heads/master | 2021-01-15T08:04:08.213900 | 2014-01-20T00:00:00 | 2014-01-20T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,837 | rd | acs.fetch.Rd | \name{acs.fetch}
\alias{acs.fetch}
\alias{api.url.maker}
\title{ Downloads ACS data via the Census API and converts to a proper
acs object with estimates, standard errors, and associated metadata.}
\description{ When passed a valid geo.set object and either lookup terms
(table.number, table.name, keyword) or a vali... |
7c06bd1f0030b7f23eab84fd531e34fca5d24dce | c9e0c41b6e838d5d91c81cd1800e513ec53cd5ab | /man/gtkTextMarkGetName.Rd | 50fac92cdd5d6112bbede194b4ebd26ad22cb837 | [] | no_license | cran/RGtk2.10 | 3eb71086e637163c34e372c7c742922b079209e3 | 75aacd92d4b2db7d0942a3a6bc62105163b35c5e | refs/heads/master | 2021-01-22T23:26:26.975959 | 2007-05-05T00:00:00 | 2007-05-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 379 | rd | gtkTextMarkGetName.Rd | \alias{gtkTextMarkGetName}
\name{gtkTextMarkGetName}
\title{gtkTextMarkGetName}
\description{Returns the mark name; returns NULL for anonymous marks.}
\usage{gtkTextMarkGetName(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkTextMark}}] a \code{\link{GtkTextMark}}}}
\value{[character] mark name}
\author{Deri... |
714a66d282a571db27ced623cd20b7efa70bd0fd | f24287d774fa1ed5911c99d2d8402a913dbadae8 | /Model_v03.R | fe5bb24052f1ac7c6ac9582084199a83b8be15fb | [] | no_license | jsamaitis/Price-and-Volatility-Forecast-with-SLR | 9e5e2ae98318311aa31d71acbbdd8064fe719a20 | 92d633af2043d96b3801cf3df060c4d842b1c974 | refs/heads/master | 2021-09-18T12:56:02.970339 | 2018-07-14T07:42:16 | 2018-07-14T07:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,606 | r | Model_v03.R | library(tidyverse)
library(lubridate)
library(forecast)
library(gridExtra)
library(quantmod)
#Load and filter data
load_ticker <- function(ticker, start, end) {
#Conver start and end dates to date format
start <- ymd(start)
end <- ymd(end)
#Load data
ticker_data <- as.tibble(getSymbols(ticker, src = "y... |
558bc07d9fb7e27bba353dbc526e4056c2a6c4a1 | af628cd55f7b80b9cc6ec6f98b9f225300f04d3c | /R_files/epiallele.R | 8068eb6f91aefb8cc7eac1d2dbab7db089db2ef5 | [
"MIT"
] | permissive | mferrodo/bed-beta | 1aa648f29505388fb40a3fe02dc9c2bcb53d5414 | 41fac1c9fb0aa6b80f8f5bdf4839d8b600864010 | refs/heads/main | 2023-04-28T03:05:43.995176 | 2021-03-12T10:55:22 | 2021-03-12T10:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,282 | r | epiallele.R | Bayesian epiallele detection
Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... |
c3a209d88deab03e5241f72ab301969315597383 | f4e6801e5959d14512e0597d346afb857a58ac76 | /readCufflinksRes.R | a091aba575898f874f8ca387b42f694cbe04d3c3 | [] | no_license | npinel/metaomics | 9f5739a6b42c68b18c0e38c5df870db2fe9bbff9 | b1bdfd273372c74895a862ebff9ff1bfdcd57b34 | refs/heads/master | 2016-09-06T03:01:47.133811 | 2014-12-26T02:15:20 | 2014-12-26T02:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,848 | r | readCufflinksRes.R | #!/bin/R
##########################################################################################
# Author(s): #
# 1. Shaman Narayanasamy (shaman.narayanasamy@uni.lu) #
# Affiliation(s): ... |
b21f05d1534afaaadea9214a6a6dc1849fe2ca96 | 70e55527de16dfa752805ad30dea5f8783f431ca | /man/beach_get_data.Rd | 2c31bb36f3fb1d1df9df305206579c7226702d3c | [] | no_license | mikkelkrogsholm/badevand | 040d91b3f14dbf31c17b6a704517227d52d6f5b0 | d193d03abad0edf02ffdcdc57d9e0d534098a7cf | refs/heads/master | 2020-03-20T18:06:50.766481 | 2018-06-16T10:42:06 | 2018-06-16T10:42:06 | 137,571,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 353 | rd | beach_get_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/the_functions.R
\name{beach_get_data}
\alias{beach_get_data}
\title{Retrieve data for danish beaches}
\usage{
beach_get_data()
}
\value{
a list of tibbles with the data
}
\description{
Retrieve data for danish beaches
}
\examples{
beach_data ... |
cbae561a6890e308354bb0a12c88cd57670bce02 | 91b06d684a3c638d6053241f5599be3f0abcd1e4 | /Part2_실전분석/Stage5_GoogleChart/s5_2_Script.R | 4a3dbbbdcab5bdde3d18688243be147d97d92b16 | [] | no_license | limwonki0619/R_Data_Analysis | 2680b07e68e5f44afd5c167a7338487c4205da62 | 8efd42061be81996b0f3eb4ee6e2e1bd3ff3d8b0 | refs/heads/master | 2020-05-29T13:19:54.578617 | 2019-08-26T11:33:42 | 2019-08-26T11:33:42 | 189,156,993 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,654 | r | s5_2_Script.R | # 예제 5-21. 타임라인 그래프 그리기
library(googleVis)
dat <- data.frame(Term=c("1","2","3"),
President=c("Whasington", "Adams", "Jefferson"),
start=as.Date(x=c("1789-03-29", "1797-02-03", "1801-02-03")),
end=as.Date(x=c("1797-02-03", "1801-02-03", "1809-02-03")))
tl <- gvisTi... |
8a8edf2b3e0fc2638630de85c86b7fd3962a4cd7 | 6a0e07739a890d35f66077c57be86d8603e47b6b | /tests/testthat/test-getmatchinfo.R | 736e2b84c88d91d27f4c3a89385d7fc0ec78dc35 | [] | no_license | jcrodriguez1989/Rtinder | 57c651cfa7cfc1458e90a8a01d2cd03cde0fc534 | 6369a23dab8981a7ed5173e49e1a798733656cd7 | refs/heads/master | 2021-06-28T20:28:14.103631 | 2019-06-03T23:18:45 | 2019-06-03T23:18:45 | 126,035,088 | 18 | 2 | null | null | null | null | UTF-8 | R | false | false | 460 | r | test-getmatchinfo.R | context("test-getmatchinfo")
test_that("can get match info", {
skip_if_offline()
skip_if(!login())
updates <- getUpdates()
skip_if(length(updates$matches) == 0)
one_match <- updates$matches[[1]]
match_info <- getMatchInfo(one_match$id)
expect_true(length(match_info) > 0)
expect_true("i... |
6b103e1b979cc5624a1dfcd6827038822de29d27 | 40eaa9583862c6c73388b9f34628bf85429208e4 | /scripts/aula_02.R | 2e3b06c1fadc7b742d4ea686c6f0a74ecce8f1a7 | [] | no_license | maykongpedro/2021-02-25_R-Ciencia-de-Dados-1-CursoR | dcd46e80852ff9241b6ff30b60358b0a616921e2 | d3f9a9494913fe3d17e208cdcd1dc1ad3fd66906 | refs/heads/master | 2023-03-25T18:16:59.637616 | 2021-03-16T01:28:38 | 2021-03-16T01:28:38 | 342,425,622 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 939 | r | aula_02.R |
# CTRL + SHIFT + R = Criar divisórias
# Importação --------------------------------------------------------------
# Carregar pacotes
library(readr)
# Carregando um ano
imbd <- readr::read_rds("dados/por_ano/imdb_2016.rds")
# Listando arquivos na pasta
arquivos <-
list.files("dados/por_ano/",
full.na... |
23ebd37b66f8d412658f6518e8630df8f02b2da3 | c7fe6a88582766a710325d3a9fc6b7328c1cfd7a | /tests/testthat.R | 3d3da41c8d7bf4f8416f822368fc76ea6f1e8118 | [] | no_license | fergustaylor/openprescribingR | 023c1b9cb30d269e3da1fc8329ec4f9b0e8d004b | 124f6d0ed4ce41b2fc8f2ccca5b1ac98f19964ac | refs/heads/master | 2021-01-16T00:10:06.271612 | 2018-04-24T18:08:39 | 2018-04-24T18:08:39 | 99,961,777 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 76 | r | testthat.R | library(testthat)
library(openprescribingR)
test_check("openprescribingR")
|
b39e6da133628a553dc8518140ed05a91c3a2477 | 265850f90cab17e9ec70eac49ba1103d0c103cca | /ch04/src/verification/temp/04_mortality_smoking.R | 626c3c942bcc4691aa07d91efa246382314533c2 | [
"AFL-3.0"
] | permissive | sdaza/dissertation | 9a7bc287c9d963a6d833f841508c01382af7a38b | deae3b114ef2aeb03995f99825ad81457285322a | refs/heads/master | 2023-02-27T21:32:14.283448 | 2021-02-08T15:51:58 | 2021-02-08T15:51:58 | 111,732,738 | 1 | 0 | AFL-3.0 | 2020-07-22T14:28:11 | 2017-11-22T21:11:15 | Jupyter Notebook | UTF-8 | R | false | false | 3,575 | r | 04_mortality_smoking.R | ##############################
# generative model income mobility and mortality
# mortality and smoking differentials by income
# author: sebastian daza
##############################
library(data.table)
library(ggplot2)
source("src/utils.R")
# adjustment of baseline income smoking coefficients
# when rank rank slo... |
1fa27eea9700857244895c60b1f6bffcf969f9f9 | 142b34cde65a0cd726f63abec2aa93fc0bd8c057 | /2_lab_class.R | 8bfbf42baa64f08f61620e4f11969133f4e89a38 | [] | no_license | papenfuss/BINF90004 | a92fc8bb4fbb42f13db1cbb09b830fbf30119a5d | a7bdd032de9e9a2afe83b522708d18cd110687e3 | refs/heads/master | 2021-09-08T23:18:48.230036 | 2021-08-30T00:55:27 | 2021-08-30T00:55:27 | 146,819,832 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,717 | r | 2_lab_class.R | #' Cancer Evolution and heterogeneity lab class
#' ============================================
#'
#' Author: Tony Papenfuss
#' ----------------------
#' Date: Monday 30th August 2021
#' -----------------------------
#'
#' The data you will be looking at was collected from a patient who died
#' from advanced melanom... |
a7fc0bcf5aff622a7d2c38e8d04e2db84af9dad0 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/emulator/examples/betahat.fun.Rd.R | 12140f19969cda82a42646f1a541b2f0e2a52944 | [] | 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,922 | r | betahat.fun.Rd.R | library(emulator)
### Name: betahat.fun
### Title: Calculates MLE coefficients of linear fit
### Aliases: betahat.fun betahat.fun.A
### Keywords: models
### ** Examples
data(toy)
val <- toy
H <- regressor.multi(val)
d <- apply(H,1,function(x){sum((0:6)*x)})
fish <- rep(2,6)
A <- corr.matrix(val,scales=fish)
Ainv ... |
3f4cb70ff24142d77382eddf4bb0d1f5ec53ddbf | e40d274ff6b9bd7e7f20998379f483543582c81f | /leaflet-ex/apps/snapmapapp/global.R | c1a26a51d8bf665b085563f82f491dbba28852e7 | [] | no_license | ua-snap/snap-r-tools | 5be2dcc5171cf7289504f20e98ad3ec603e4ed57 | c3f573c2abf11633b5262c4d98cfbde39854dbf4 | refs/heads/master | 2020-03-22T05:57:29.239067 | 2019-01-08T03:11:17 | 2019-01-08T03:11:17 | 139,602,296 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 56 | r | global.R | library(shiny)
library(leaflet)
library(leaflet.extras)
|
e4d09d8bb670917c485efbafe89389320250bdb4 | 113ac2556bd26bd0906f964cd775d91efc609784 | /devtools_history.R | fed2cfa962716e409b54d3a5e2903dd3da038081 | [
"MIT"
] | permissive | ColinFay/sweary | 088804140c4fe0a2d832ac5cf4e257542b720223 | acceec190aeb9f92a1ad2d48681e440aefca146d | refs/heads/master | 2020-03-30T08:47:01.763455 | 2018-10-02T19:35:48 | 2018-10-02T19:35:48 | 151,039,141 | 0 | 0 | null | 2018-10-01T05:08:11 | 2018-10-01T05:08:11 | null | UTF-8 | R | false | false | 309 | r | devtools_history.R | usethis::use_build_ignore("devtools_history.R")
# Add package
usethis::use_package("attempt")
usethis::use_package("glue")
usethis::use_package("tokenizers")
# Clean DESC
usethis::use_tidy_description()
# Test
usethis::use_test("utils")
usethis::use_test("detect")
usethis::use_test("tokenize_words")
|
71aeee7023a3b9735c0156f32e578545783fcccc | aa815d377234c0ff51f6d24c551ec3fbc9fd2dfb | /R/Assignment3/rankhospital.R | 3de59aefe2656d0bf4ebd06420c714749aae3f69 | [] | no_license | nbanguiano/stat101 | c936ad91812e6d7b21b28ab04b41febd3f9a9f21 | 43ef824c7c822d11466217404d01e1a7ca3b7d8c | refs/heads/master | 2021-01-10T19:33:39.012554 | 2014-05-15T09:32:39 | 2014-05-15T09:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,496 | r | rankhospital.R | rankhospital <- function(s, o, n = "best") {
## Define the dataset
dset <- read.csv("outcome-of-care-measures.csv",
colClasses = "character")
## Check if the state passed exists in the datase
## if not, throw an error and stop
st <- dset$State
if (sum(grepl(s, s... |
0ae50ce6937142ee8610d3318635ee882a16029d | ddf87d7410f5f63747758b8beaf0a4fe7c297796 | /man/run_ed.Rd | bd76e258e03600638b1acaef0c7e77d77d8cbb08 | [
"MIT"
] | permissive | ashiklom/fortebaseline | 3142ff38f305906489cf6e012a8f55fa3efaa51e | 513ea9353c133b47f67b3023a78e56abb6384847 | refs/heads/master | 2021-07-23T16:30:12.074804 | 2020-04-30T17:15:43 | 2020-04-30T17:15:43 | 157,924,482 | 3 | 3 | NOASSERTION | 2023-01-22T10:39:45 | 2018-11-16T21:42:24 | R | UTF-8 | R | false | true | 1,516 | rd | run_ed.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run-ed.R
\name{run_ed}
\alias{run_ed}
\title{Start an ED2 model run using `processx`}
\usage{
run_ed(
casename,
trait_values = list(),
start_date = "1902-06-01",
end_date = "1920-01-01",
trait_plasticity = FALSE,
multiple_scatter ... |
fdf0129d6f5e88348401db78287044d5467f8045 | 941a94c0941e284f9ef3e7f01d08a8f00ccc4e78 | /R/compress.R | cd34de16dbf7854835a5d3a9b197eb8ea41f6c54 | [] | no_license | cran/GHap | d871c803ab5034b195147cf7be5bd7ecca1bdd44 | 05d12b36bc8c6d858a2229120edebd74b71cdb18 | refs/heads/master | 2022-07-05T10:30:08.113872 | 2022-07-01T20:50:05 | 2022-07-01T20:50:05 | 57,885,792 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,434 | r | compress.R | #Function: ghap.compress
#License: GPLv3 or later
#Modification date: 13 May 2021
#Written by: Yuri Tani Utsunomiya & Marco Milanesi
#Contact: ytutsunomiya@gmail.com, marco.milanesi.mm@gmail.com
#Description: Compress phased data into GHap binary
ghap.compress <- function(
input.file=NULL,
out.file,
sa... |
bb2a54a44bbd156ab3085fcfbe9127382238e423 | 9643f8349f55e9a05e9d2f7193b660e48b3fb6a8 | /data-raw/make_data.R | 0bd0614ca77973e7725bae7bdf7e782d53225414 | [
"MIT"
] | permissive | neuroconductor-releases/ggseg | 01bf15d71c0e46343a22b2c19873e2d5dc171bb1 | 9babfd67acff27434c8ff7b4e70d3be0cd4368f2 | refs/heads/master | 2021-07-17T11:11:17.150228 | 2020-10-29T15:34:51 | 2020-10-29T15:34:54 | 224,288,083 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,600 | r | make_data.R | # dk ----
devtools::load_all("../ggsegExtra/")
someData <- data.frame(
region = c("transverse temporal", "insula",
"precentral","superior parietal",
"transverse temporal", "insula",
"precentral","superior parietal"),
p = sample(seq(0,.5,.001), 8),
Group = c(rep("G1",4), rep... |
75f0c6da6a45f01c8b6a4677ad2f87845bcadaef | 662451aa61f4d9d5e0c4e5734f3b309fa166ecc9 | /tests/testthat.R | 5f9800862850dd9bc4d930542a21189f9472f610 | [
"MIT"
] | permissive | r-spatialecology/belg | 1d251c97bc70537f6204d0e42e7ea460b84020c2 | cf1bb63cf07e575aa78489991cee1e9e0c6470af | refs/heads/master | 2022-12-21T14:07:03.572496 | 2022-12-15T15:09:31 | 2022-12-15T15:09:31 | 122,247,898 | 10 | 3 | NOASSERTION | 2020-04-29T11:50:27 | 2018-02-20T19:50:56 | R | UTF-8 | R | false | false | 52 | r | testthat.R | library(testthat)
library(belg)
test_check("belg")
|
843be6e4a6f6dc16ebc2e1e1fb96d8fc7847a116 | 576b07d2c2370aae0fd6abd083265a5ac4c55bfc | /plot1.R | 6601fe4da2e3a0545a9ca58e33abe63c5cb8d94e | [] | no_license | cdiako16/ExData_Plotting1 | d7aa7c6dae91c52b19ce1152454e4c3b7e139cdd | 96002c4b324016322b0869804016c9acbb41aed0 | refs/heads/master | 2021-01-22T21:27:48.536143 | 2016-08-29T06:48:46 | 2016-08-29T06:48:46 | 66,723,051 | 0 | 0 | null | 2016-08-27T16:03:53 | 2016-08-27T16:03:53 | null | UTF-8 | R | false | false | 1,223 | r | plot1.R | #EXPLORATORY DATA ANALYSIS PROJECT 1
#Code for Plot 1
if(!file.exists("data")) {
dir.create("data")
}
fileUrl<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, destfile = "./data/powerconsumption.zip")
unzip(zipfile="./data/powerconsumption.zip",e... |
0a9feb703d494eae7192dc9095f8e7dc1420875d | 246d965e4e8fb5e2a6c49598d1a1c6e99b3a24a1 | /temp/app.R | e4049850165a6b6d101c842345e097e51d156b4e | [] | no_license | NIHRDECncl/R-tools | 75ebab87653dcdf1d3d27e8e7a8a1549d4811e21 | 03cb62221925f1387c66c131fa511c85a943900b | refs/heads/master | 2021-01-12T15:49:57.109329 | 2018-01-08T11:11:44 | 2018-01-08T11:11:44 | 71,878,066 | 0 | 0 | null | 2018-01-08T11:12:21 | 2016-10-25T08:53:59 | HTML | UTF-8 | R | false | false | 761 | r | app.R | #ui.R
library(shiny)
tagList(
navbarPage( "Title",
tabPanel("Navbar 1",
sidebarPanel(
),
mainPanel(
tabsetPanel(
tabPanel("Table",
h4("Iris"),
... |
73d24e2586a2053132e6dc4468e9d39679d6ca53 | 93204f1ff02f6e20f2a44d077ea8712ca914cecd | /R/05_countCumulativeEventsByDate.R | ea14145fb3459c80e656cf35685f6b88d8373904 | [] | no_license | cjcampbell/iNaturalist-Identifiers | b5ae5db1929a36fdeb8146e92e5ca3b7a21d3735 | 13adc0a9c48817453aeb9df5a4dc3a3771c40322 | refs/heads/main | 2023-04-15T14:46:08.151368 | 2023-02-27T13:54:39 | 2023-02-27T13:54:39 | 606,906,415 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,340 | r | 05_countCumulativeEventsByDate.R |
source('/srv/gspeedq32/mbelitz/iNatIDers/R/00_setup.R')
library(purrr)
print(paste0( "Beginning process query for script 5 at ", Sys.time()) )
iNat <- DBI::dbConnect(RSQLite::SQLite(), dbname = "iNat.db")
# Obs by date -------------------------------------------------------------
print("Counting observations by date... |
0b1795f18047f154463b85ed86875b6462901b23 | 93f8e647685105c9c07b78b3c881638a6101b0d8 | /man/rpart.rules.Rd | c0c101a9505748067b9605d18036d6cde30c97e2 | [] | no_license | timelyportfolio/rpart.utils | 5ed2a35f80025d0296fd80217b44caf8e2f76b8f | 5caae906e019b30f0f90afcb9f946726aa9633aa | refs/heads/master | 2021-01-22T12:45:33.923072 | 2014-12-17T22:48:01 | 2014-12-17T22:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 419 | rd | rpart.rules.Rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{rpart.rules}
\alias{rpart.rules}
\title{Returns a list of strings summarizing the branch path to each node.}
\usage{
rpart.rules(object)
}
\arguments{
\item{object}{an rpart object}
}
\description{
Returns a list of strings summarizing the branch path to each n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.