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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9d615ff3cbcf61c65403b5958c2187ec6bdf43c | 6c1eb0bf1a989423411292676a78ebed3160b53d | /RshinyApp/ui.R | ca6123e867ec341a40f5f3e1feb320202a028518 | [] | no_license | frankjing11/developing_data_products_assignment | 7db7f6c8517acad20efba34ea3a140dde6d1659b | a7cbe5c0b5f17668b26bd5974ecb79dd0fcea636 | refs/heads/master | 2020-04-05T23:15:12.397206 | 2016-08-12T21:41:07 | 2016-08-12T21:41:07 | 65,585,005 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 403 | r | ui.R |
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Forecasting for Air Quality Measurements"),
sidebarPanel(
selectInput("vari", "Variable:",
c("Ozone","Solar.R","Wind","Temp")),
checkboxInput("Prediction", "With Prediction", FALSE)
),
mainPanel(
h3(textOutput(... |
0c65308008c1b046a02ca11d0493a47d8ef1a521 | 29585dff702209dd446c0ab52ceea046c58e384e | /SCGLR/R/print.r | d7f619958dd22db4f33812f8bb087d1af2d4fd76 | [] | 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 | 519 | r | print.r | #' @export
#' @title Print SCGLR object
#' @description Prints inertia per component and deviance for each Y.
#' @method print SCGLR
#' @param x object of class 'SCGLR', usually a result of running \code{\link{scglr}}.
#' @param \dots Not used.
print.SCGLR <- function(x, ...) {
cat("\nCall: ", paste(deparse(x$call),... |
5d5a37e8db39d177e2bf186ea0373c4f7856328b | 52243f1f5495f9a742d373a8168215126605c034 | /eastMaui/scripts/Water_in_basins.R | f551c802e814dd03f94347ecbee22cc9a2ce9d7a | [] | no_license | dwalke44/EastMauiClean | be5f54de705a58c7586bf720677d978f86b4edee | 0fdfe8e59e1b5aabd7b6f103bd0bcc125159748c | refs/heads/master | 2020-03-24T04:34:11.664399 | 2018-12-02T18:23:43 | 2018-12-02T18:23:43 | 142,457,573 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,239 | r | Water_in_basins.R | #' @export
# Function to calculate amount of water remaining in basins after diversion
# convert all nodeInputs[..., c(8:11)] to nodeInputs[..., 2]
basinWater.fun = function(nodesInput, waterInput){
diverted = list()
spsk = list()
diverted$E003 = waterInput[3, 3]
diverted$E004 = waterInput[4, 3]
diverted$... |
e58738f8b7c83e0508674fdbd93c856666936a35 | 51ef9fa1b2212c659152fac242bda47e7bf15d6a | /man/dot-tables_base_url.Rd | 39b9b3683da679056589c2e5df6f72b28910ec5d | [] | no_license | cran/rnbp | dc5771835c012e6872cc1a7128ad017234db0dad | 7ccc244007541379fc729d5ab869bd329ef06280 | refs/heads/master | 2021-06-25T03:25:57.463674 | 2021-06-07T06:30:02 | 2021-06-07T06:30:02 | 199,285,520 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 290 | rd | dot-tables_base_url.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/endpoint_tables.R
\name{.tables_base_url}
\alias{.tables_base_url}
\title{Returns the base url for the tables endpoint.}
\usage{
.tables_base_url()
}
\description{
Returns the base url for the tables endpoint.
}
|
f8c6eac09effdb7677960f95d3b0f44b5e3c6c59 | f769ea22071c2b7760e23e387f2418afcf5d3f3c | /testing_hierarchical_clusteringV5.R | ffac10cfd876a476d842eda57c7b2994dbc9a5ed | [] | no_license | MAValle/DATA_ClusterAgr_ISING | 7596b7f13b384c1f93ede2d2d554dda944d9ee7d | 2a15c50936d9a08786a95244a0aef129bdfac914 | refs/heads/master | 2020-06-01T05:06:02.790282 | 2020-02-06T03:18:00 | 2020-02-06T03:18:00 | 190,647,945 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,074 | r | testing_hierarchical_clusteringV5.R | # testing the algorithm for hierarchical agglomeration clustering using simple linkage.
# En esta version 5, probamos las funciones de functions_hclust.R para hacer
# HAC sobre la matriz de distancias del MST de los acoples para el paper y verificamos
# que el resultado del dendograma sea equivalente al del MST. Es de... |
da1ee04a916086e63f329c0188a6cdba2f907e3e | 36d289cc65986a3d110deb08894d024ac68b5332 | /final code files/talkingdata_stacking_2Level_Lev1_lgb_xgb_rf.R | ae448850804bd493ab65ce329723220f0134e73a | [] | no_license | abhinavnew/TalkingDataCodeFiles | c614c05d4efdf7276f58aba1a157aeab836c0b82 | f71ca8ddc430c0201d5e495d4b523f5394901f79 | refs/heads/master | 2020-04-16T12:32:58.142902 | 2019-04-30T13:16:31 | 2019-04-30T13:16:31 | 165,584,142 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,912 | r | talkingdata_stacking_2Level_Lev1_lgb_xgb_rf.R |
Overalltime=Sys.time()
library(caret)
library(tidyr)
library(plyr)
library(dplyr)
library(caTools)
library(reshape2)
library(gbm)
library(caTools)
library(randomForest)
library(ggplot2)
library(data.table)
library(xgboost)
library(randomForest)
library(Matrix)
library(mlbench)
library(Boruta)
library(MLmetrics)
libra... |
5fc4210bb3e130e9fd45df6cf744bcce9bee0d7f | 65dce4f93d5fbdbc81d20470d17f4ce2e440f29a | /exercises/topic2-regression.r | e5eadbd392081b393d14647ddb8c29595fdfbc66 | [] | no_license | tertiarycourses/FullRMachineLearning | 37a1ee1e5c8ce0c893ac3f3dfa0eae642a097658 | 6fea62db4b8367481bc28993473eae6f283774a6 | refs/heads/master | 2021-06-28T18:08:37.032920 | 2020-12-20T03:18:03 | 2020-12-20T03:18:03 | 190,512,174 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,162 | r | topic2-regression.r | # Topic 2 Regression
#install.packages("mlr")
#install.packages("glmnet")
#install.packages("ggplot2")
#install.packages("cowplot")
#install.packages("MASS")
#install.packages("dplyr")
library(mlr)
library(glmnet)
library(ggplot2)
library(cowplot)
library(MASS)
library(dplyr)
theme_set(theme_bw())
# Linear Regresson... |
4a1a43699d2b7f3e9faf4f7641d4aaa087e5809f | 1a4b653701ea2cbee79bf52e8e4b1bdb4b6d9d45 | /CVS case/old_0404/CVS_3_nonsmk_match_reg.r | 3e5913f409e1f1f1bc72b3fde475aa5069d2d4fb | [] | no_license | Superet/Tobacco | c5fbab709d2ea7be74be2f0cc7466d279ebcd551 | 7fe51f480cd3d0db812987c3cf73c7086978980b | refs/heads/master | 2021-05-04T10:29:17.916670 | 2017-07-15T19:13:54 | 2017-07-15T19:13:54 | 44,255,630 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,880 | r | CVS_3_nonsmk_match_reg.r | library(reshape2)
library(ggplot2)
library(data.table)
library(lubridate)
library(stargazer)
library(zipcode)
library(plm)
library(lme4)
library(xlsx)
library(MatchIt)
library(lmtest)
library(Matching)
# setwd("~/Documents/Research/Tobacco/processed_data")
# plot.wd <- "~/Desktop"
setwd("U:/Users/ccv103/Documents/Res... |
6290e44e2cad3914082041df9b6665f259bc568e | 9a5cb00b6e1a8ebedf4d8e0faf3dec1495ff7a70 | /tests/testthat/test-average_monthly_temperature.R | 8b0df9555b28d786fe3af50bd59603d2cebaf6c8 | [] | no_license | raefuhrman/262_Final_Package | 5c55ab5ef08acf2d68eb5f565d162e03b374f899 | 03c60436e8cf8db98645df18a8bd0a272c1e426e | refs/heads/master | 2020-05-31T19:53:01.401607 | 2019-06-14T05:04:01 | 2019-06-14T05:04:01 | 190,464,059 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 177 | r | test-average_monthly_temperature.R | context("test-average_monthly_temperature")
test_that("monthly average temperature is above freezing in Santa Barbara", {
expect_true(mean(!is.na(climate_data$TMAX))<=90)
})
|
bc7fae8076513e1f320769599746195eb427cd16 | e126070d4250c376d82f1cef232ed6a4e20f55af | /day04.R | 33322bd45b71a351c12c32dfc84d72e785c772ae | [
"MIT"
] | permissive | FloHu/advent_of_code_2018 | 8bdb54af080489d45a9addf4479e58e178311b6e | 71d43b52a982ae8b871ca94382e9b3081ede8837 | refs/heads/master | 2020-04-10T00:49:13.318944 | 2018-12-16T16:25:17 | 2018-12-16T16:25:17 | 160,697,493 | 0 | 0 | null | 2018-12-06T16:02:09 | 2018-12-06T15:54:03 | R | UTF-8 | R | false | false | 1,904 | r | day04.R | library(lubridate)
library(tidyverse)
day4 <- tibble(input = readLines("input_day04.txt"))
day4$unparsed <- str_extract(day4$input, "^\\[.+\\]")
day4$event <- str_extract(day4$input, "(begins shift)|(falls asleep)|(wakes up)")
day4$date_and_time <- ymd_hm(day4$unparsed)
day4 <- arrange(day4, date_and_time)
head(day4)
... |
a30c10a6100ac281d87a1137197b2334f5d4c46a | 1db3390483611dad623d984fc1d18c277af3ed4e | /man/hpcc.showFilesToDownload.Rd | 3411d54454247d7d7347c036570014786022b1a4 | [] | no_license | Saulus/rHpcc | 7105a535b4b62c736625c74175114ea61e7aa30c | 5fef5811fe0a63555a66e30c05bb4ffef46ad7ce | refs/heads/master | 2021-01-14T14:10:50.315049 | 2014-11-24T09:17:54 | 2014-11-24T09:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,334 | rd | hpcc.showFilesToDownload.Rd | \name{hpcc.showFilesToDownload}
\alias{hpcc.showFilesToDownload}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
title
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
hpcc.showFilesToDownload()
}
%- maybe also 'usage' for other objects documented h... |
081411e8e9b2ffc922b22c2f5576a1b07a0f26aa | 9a785ddd51dec475f1821ae864f43db08f791aa2 | /cachematrix.R | a1fd9479afa6101e3f1ae9b443d02c29da034a31 | [] | no_license | knockoutned/ProgrammingAssignment2 | 3b2249737c929ef2a4e7e96738d7a9d7a78228de | f70aa11d505a6785ffa54b3d167395b896fb6760 | refs/heads/master | 2021-01-22T14:28:46.040497 | 2015-09-27T16:36:51 | 2015-09-27T16:36:51 | 43,254,490 | 0 | 0 | null | 2015-09-27T16:33:11 | 2015-09-27T16:33:11 | null | UTF-8 | R | false | false | 1,721 | r | cachematrix.R | ## This function takes a matrix and stores the inverse for future computations.
## This saves time and processing power.
## makeCacheMatrix creates a list of four functions
## set the value of a matrix
## get returns the matrix
## setinverse computes the inverse
## getinverse returns the inverse
makeCacheMatrix <- fu... |
d71ec03083012008c16eb0be95882620e118f5f9 | 36ec01189d805df6508547bac447bee6b52e62f1 | /markdown_files/Transcriptomic/Pipeline_Scripts/2D_WGCNA/auto_WGCNA_networkCreator.R | f0d1baa95bf2cbbfb0957299f5327d270a4116ba | [] | no_license | epigeneticstoocean/2017OAExp_Oysters | 670b52b51e17fd3b8eda62f69dae28815417a4d5 | 2afedfd6613533708afe2fafe4f1ebad2c5f4f0e | refs/heads/master | 2021-07-06T16:37:38.137062 | 2020-07-30T21:33:59 | 2020-07-30T21:33:59 | 136,628,985 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,231 | r | auto_WGCNA_networkCreator.R |
setwd("/shared_lab/20180226_RNAseq_2017OAExp/RNA/WGCNA");
library(WGCNA)
library(tximport)
# The following setting is important, do not omit.
options(stringsAsFactors = FALSE);
# Allow multi-threading within WGCNA.
# Caution: skip this line if you run RStudio or other third-party R environments.
# See note above.
ena... |
13a0a77f67a4c408b48e65ec620dc9f517f20412 | 26806c9ca283fe47df1f13b17856f17717f65dae | /old/ProcessBFXTX_CalcDPine.R | e459b7d6b15504b954c47dfca2a0d529fbf756be | [] | no_license | DrK-Lo/src_PineSpruceFunctions | 7248058cd965c227ddd8a28ccc62ec72388b4794 | 77649fe0b31ad61e8882788d560913c840ac04ca | refs/heads/master | 2020-12-24T14:35:46.269943 | 2015-04-11T20:06:09 | 2015-04-11T20:06:09 | 27,262,152 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,270 | r | ProcessBFXTX_CalcDPine.R |
### Seqcap Pine: calculate multivariate BF for each of 6 groups
>screen
>R
source("ProcessBFXTX_CalcD.R")
runGroupPine(1, "Pine_SeqCap.XTX.BFMAF.v2")
>screen
>R
source("ProcessBFXTX_CalcD.R")
runGroupPine(2, "Pine_SeqCap.XTX.BFMAF.v2")
>screen
>R
source("ProcessBFXTX_CalcD.R")
runGroupPine(3, "Pine_SeqCap.XTX.... |
cb3efa50145f4a11e0f2c13f98c8f8e020edba5b | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query01_query45_1344n/query01_query45_1344n.R | 56f95361b0eda47b2cc67e46268ae20a280b8476 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 71 | r | query01_query45_1344n.R | 30aa25e084e2f0f3134bd4fef737a6bb query01_query45_1344n.qdimacs 415 1173 |
2971a1efc84f62b6c207f94e12c13dd92015619f | f5131867a76c8c8af6ec863120c1e72722ea98d9 | /R/data_processing/data_preparing/MakeFeaturesValTable.R | 79f39475cc2db3398aacd26c53c7d704dfd4340c | [] | no_license | k198581/src | c5b53b1f6eeae36116fb2063fdf993df303f1a57 | 17d2c54489adac2f428b6f449661712b1f7bf536 | refs/heads/master | 2022-11-22T09:01:34.948438 | 2020-07-12T09:57:50 | 2020-07-12T09:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,115 | r | MakeFeaturesValTable.R | # load the library.
library(openxlsx)
# load the function.
source("data_processing/MakeWordList.R")
MakeFeaturesValTable <- function(input.path = "../../Data/test_data.xlsm", output.path = "features/") {
# makes the table of the phoneme feature values which each phonetic symbol has.
#
# Args:
# input.path: T... |
166ad77bef06b6591a51ad2d20fbface95de8073 | e58809646fe42da96f82194d0771ab379dd9e18f | /man/sce_merge_stats.Rd | 49cfe90d4be23f1d69dea51098857ec1aa056bbd | [
"MIT"
] | permissive | JamesOpz/splitRtools | 5adcbd15ceaf57b5786a3cb2e315a3a80e052e2c | 3d3b5a2eed5a198d4edcd7d415d4d62609e1b5a0 | refs/heads/main | 2023-07-20T04:27:18.271502 | 2023-07-06T14:41:16 | 2023-07-06T14:41:16 | 459,172,100 | 5 | 0 | null | null | null | null | UTF-8 | R | false | true | 542 | rd | sce_merge_stats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sce_merge_utils.R
\name{sce_merge_stats}
\alias{sce_merge_stats}
\title{create sequencing run statistics for merged sublibraries}
\usage{
sce_merge_stats(sce_split, output_folder, exp_name)
}
\arguments{
\item{sce_split}{An input merged SCE e... |
b651d36befe36d7ae7a7bb6ea3395853a60463f5 | 5a4f7bb7eb437a0118beb13d39b65bfd6be11199 | /lineId/man/obs_data_filter.Rd | 4ef071fa650075f32c393c5e1cf466d105e52cab | [] | no_license | snarles/fmri | f4c35a560813b7e0f7fb669a2ce85d456cd554ca | 43c81b184745ca7ea462400ef2d576967cc5b86b | refs/heads/master | 2021-01-17T00:59:51.226279 | 2019-12-06T20:07:10 | 2019-12-06T20:07:10 | 35,619,927 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 395 | rd | obs_data_filter.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{obs_data_filter}
\alias{obs_data_filter}
\title{Extracts observed data from a list generated by gen_data}
\usage{
obs_data_filter(X, X_te, Y, y_star, ...)
}
\description{
Use with \code{do.call}
}
\examples{
pars <- gen_param... |
1f005c2d0d9259f63472503821b2d2386413c158 | 0e6aa31985a686fc47c2e563c561e4c69dc843bd | /man/getZh.Rd | d6dfc663faa1a4d937d4b17c14168565676733e8 | [] | no_license | cran/CompR | c6aeb96b1fddc5c3690a2d5a7f86c9bc17b49b23 | 1fc9e8c2bf779da034cba56bddf26ac1d9afe794 | refs/heads/master | 2021-01-10T20:55:35.251515 | 2015-07-01T00:00:00 | 2015-07-01T00:00:00 | 38,376,566 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 671 | rd | getZh.Rd | \name{getZh}
\alias{getZh}
\title{
Gets the result of the function \code{EstimBradley()}
}
\description{
Gets the posterior probabilities for each individual to belong to the different classes and the class with the higher probability.
}
\usage{
getZh(object)
}
\arguments{
\item{object}{
An object of cl... |
35ddc386a5d1d06c9e34cdfc8145010065a1c77d | 89d75a9e4b1c3e61d8e7620e4c2e8a7f08541aa6 | /scripts/Variants_distribution_4cultures.R | 571d64e1836829e1b55442c0a62b262b163af340 | [] | no_license | rmakaren/Genomics-quiescence-mutation-detection | 6a803b526a45b0e09d113d9075e62079670b39c7 | 856567f3308836ad3a6753379e5bf13167a309fd | refs/heads/master | 2023-02-16T17:08:10.792630 | 2021-01-17T19:44:38 | 2021-01-17T19:44:38 | 206,559,064 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,976 | r | Variants_distribution_4cultures.R | # This script analysis NGS data from targeted resequencing 1000 colonies after Day1, 2 months, 3 months of quiescence
# of PCR products of 9 genes that undergo positive selection during quiescence
#set working directory
#setwd("/Volumes/@Dyngen/Article_Rostyslav/Figures/Figures_4-6/4_cultures")
setwd("/home/rostyslav/... |
791cf718e8f4dae70523fb36f41bfaca7d3b5f4c | 892013c7ab86e6814d751d08bb12fbc29e50c819 | /examples/3.knapsack/knapsack.R | d6c650137529fcb095b2e7141e8c8aace3f0ee7f | [] | no_license | shuaiwang88/optimization_modeling_class_using_R_Pyomo | 00a436b5c1e8be49522baf0ea003878a019a9b21 | 5d893f6538b7faff332df4ce615a9415a4d37298 | refs/heads/master | 2023-04-29T18:08:42.040846 | 2023-04-18T00:04:18 | 2023-04-18T00:04:18 | 253,131,900 | 6 | 2 | null | null | null | null | UTF-8 | R | false | false | 806 | r | knapsack.R | library(dplyr)
library(ROI)
library(ROI.plugin.glpk)
library(ompr)
library(ompr.roi)
# Knapsack problem
max_capacity <- 400
n <- 5
# weights <- runif(n, max = max_capacity)
weights <- c(300, 1, 200, 100,10)
value <- c(4000,5000,5000,2000,1000)
MIPModel() %>%
add_variable(x[i], i = 1:n, type = "binary"... |
75768924579ade8c5a8f40a82a61d67ee551ee71 | 019309501ace2ab2de67bbb49d5bcbf2c1efe823 | /03_Datasize manipulation.R | 9fee333ae77222f357f475714b24568630c060fe | [] | no_license | petergajda/Data-Science-Capstone | cfafa1afb03eef74b2fd9eb77c7b271344a791a5 | 577324fb4c0a62f70afd287b8c0879ae219e6aa1 | refs/heads/master | 2021-01-14T00:26:21.645203 | 2020-02-23T16:03:50 | 2020-02-23T16:03:50 | 242,541,238 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,970 | r | 03_Datasize manipulation.R | ################################################
######## Code for datasize manipulation ########
################################################
# clear all
rm(list = ls())
# libraries
library(stringr)
library(tidyverse)
library(dplyr)
library(data.table)
library(stringdist)
# Import of rds files
uni_words <- rea... |
2acc11035419a940f646bfeee3ccc6a95401b97b | e77d4ec26cb8bbc6b81700dacac7545baa15bab7 | /data-code/9_plan_benefits-var_avaliability_combined.R | 4792739281efc6ec036d50369fff087f78f9e807 | [] | no_license | smonto2/Medicare-Advantage | 1b8d622d93e927a99da5a94283e5173f386a9634 | d8815c6a7d87681ffe7bf37038d69b2d70d9ebdf | refs/heads/master | 2023-09-05T10:10:48.456035 | 2023-01-11T13:54:52 | 2023-01-11T13:54:52 | 269,175,533 | 0 | 0 | null | 2020-06-03T19:24:44 | 2020-06-03T19:24:43 | null | UTF-8 | R | false | false | 1,524 | r | 9_plan_benefits-var_avaliability_combined.R | #' Combine availability of variables for all years and to show a whole picture
#'
#'
# Preliminaries -----------------------------------------------------------
if (!require("pacman")) install.packages("pacman")
pacman::p_load(readxl, tidyverse, data.table, readr)
## function
source("data-code/fn_plan_benefits_var_... |
dd7911d941d0653be2dd8a5135ca7a541c5dc58e | 037894abbeeb4b06a30458c368f5ff19d35fb75e | /r/process_cal_main.r | a20b71c8cbce0abab0550b68b310de1638fc67ea | [] | no_license | andydawson/stepps-prediction | fb296f7d5684d654f3e3f3213496f3a54b6bb671 | 2d3691ec5bd5c287346bb46c1d0ca06d0ffe4cac | refs/heads/master | 2020-12-29T02:40:10.001567 | 2018-11-22T02:09:06 | 2018-11-22T02:09:06 | 26,365,568 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,333 | r | process_cal_main.r | # for some reason this code works with R-3.1.2 and not 3.2.0; fix later
library(Rcpp)
library(inline)
library(ggplot2)
library(rstan)
library(reshape)
library(fields)
source('r/utils/pred_plot_funs.r')
source('r/utils/pred_helper_funs.r')
source('r/utils/build_mu_g.r')
source('r/read_stanbin.r')
source('r/mugp.r')
# ... |
cdb4d9bc3ae78103a56af9774e1f319f476451a9 | 68908b60d07ec5b643cb65db1635d09c428519f8 | /dev/01-data-for-benchmarks.R | 16f2904582356ae6153dfc21c97cdd2702eb5a3c | [
"Apache-2.0"
] | permissive | pachadotdev/eflm | ed73ddb0e693fba150274737636e12413c6d6d50 | 7595a29aa1397902eb65a1cd51ced751495978d9 | refs/heads/main | 2023-05-23T07:12:49.253997 | 2023-05-16T15:10:53 | 2023-05-16T15:10:53 | 326,508,783 | 10 | 2 | NOASSERTION | 2023-05-16T15:10:54 | 2021-01-03T22:00:25 | R | UTF-8 | R | false | false | 1,619 | r | 01-data-for-benchmarks.R | library(yotover)
library(dplyr)
ch1_application1_2 <- yotov_data("ch1_application1") %>%
filter(year %in% seq(1986, 2006, 4))
ch1_application1_2 <- ch1_application1_2 %>%
mutate(
log_trade = log(trade),
log_dist = log(dist)
)
ch1_application1_2 <- ch1_application1_2 %>%
# Create Yit
group_by(expor... |
ba70912aa29cf51c2b310dd3fe457b667d8da891 | 75e26d5f9af95657f0f573c27e5607f497e19e63 | /man/named_vec_to_df.Rd | 987948d6dc7ea773cf4e79698e0cfd43fd820515 | [
"MIT"
] | permissive | andrepvieira/ddpcr | f2dfccdedae47e5372dc1ec0d22456bd8e02ba5a | b28b9a4c1e1850f4e74aef990a9f76e488956d13 | refs/heads/master | 2020-03-19T22:34:29.788463 | 2018-05-26T21:35:56 | 2018-05-26T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,050 | rd | named_vec_to_df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{named_vec_to_df}
\alias{named_vec_to_df}
\title{Convert a named vector returned from vapply to a dataframe}
\usage{
named_vec_to_df(v, name, rowname = "well")
}
\arguments{
\item{v}{Named vector that is a result of a vapply}
\i... |
daaa80c7b3968c2d93872a5d0a9fc94772cf36de | 158fd5a65a3f427a737664ee763c9574f16f7d7a | /modeling_code/Linear-Models/anovas.R | 29fda05ee58a957d3531ce1819c3c89b13e3a9de | [] | no_license | rachelsterneck/lm_1b | 20d133604a64371de00042ec966403195f8647be | 709a5260a5141f211b0b9e7bb9ef2efd70a2e45c | refs/heads/master | 2022-03-28T04:38:20.122416 | 2020-01-03T19:14:49 | 2020-01-03T19:14:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,036 | r | anovas.R | anova(lm.interp.curr.1, lm.interp.plus.rnn.curr.1)
anova(lm.rnn.2, lm.interp.plus.rnn.curr.1)
anova(lm.interp.curr.1, lm.interp.plus.5gram.curr.1)
anova(lm.klm5gram.2, lm.interp.plus.5gram.curr.1)
anova(lm.interp.prev.1, lm.interp.plus.rnn.prev.1)
anova(lm.rnn.3, lm.interp.plus.rnn.prev.1)
anova(lm.interp.prev.1, lm.i... |
2a2863f7149f0c4cd4be7c823549406075aed874 | a02678f607a80458a78e571102a599eb791d1627 | /HSP/HSPkorelacje.R | 166821a6c6eb74477973863740b6cc8c9c55f0b6 | [] | no_license | geneticsMiNIng/HSP | 584f4cf9b8b9ea4ae58033bc25102b146b2e505b | 798799ec4c543c8a8ecd5ae7191b556f7cab5c35 | refs/heads/master | 2021-01-17T18:01:37.643154 | 2016-12-05T22:53:32 | 2016-12-05T22:53:32 | 59,332,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,103 | r | HSPkorelacje.R | library(shiny)
library(ggplot2)
library(survminer)
library(survival)
load("dfll.rda")
dfll$pat <- substr(dfll$pat, 1, 12)
load("clinical_expression_mut.rda")
clinical_expression_mut2 <- merge(clinical_expression_mut, dfll, by.x="X_PATIENT", by.y="pat")
#table(clinical_expression_mut2$X_cohort, clinical_expression_mut... |
416e8810349d27dea3af205f11763d1924643bd2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sitar/examples/xaxsd.Rd.R | 43b032e9151193a55239e15e3ba503d3c8ccb134 | [] | 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 | 469 | r | xaxsd.Rd.R | library(sitar)
### Name: xaxsd
### Title: Par args xaxs and yaxs option d
### Aliases: xaxsd yaxsd yaxsd
### ** Examples
## generate and plot 100 data points
x <- rnorm(100)
y <- rnorm(100)
plot(x, y, pch=19)
## generate and plot 10 more
## constraining axis scales to be as before
x <- rnorm(10)
y <- rnorm(10)
pl... |
2c7261fe93be2769c632355a631bcd86d9515b99 | 9034dfa4936f52dff9b31f2dee5515c848a3d9bb | /R/plot.longiPenal.R | 91236a54d3a13adb9f312141a69833b463bcd7ed | [] | no_license | cran/frailtypack | 41c6fa2c6a860c9b1e2feff84814e29d32b56091 | dfbdc53920a754f8529829f1f0fccc8718948cca | refs/heads/master | 2022-01-01T02:07:40.270666 | 2021-12-20T09:30:02 | 2021-12-20T09:30:02 | 17,696,141 | 9 | 4 | null | null | null | null | UTF-8 | R | false | false | 4,651 | r | plot.longiPenal.R | #' Plot Method for a joint model for longitudinal data and a terminal event.
#'
#' Plots estimated baseline survival and hazard functions for a terminal
#' outcome from an object of class 'longiPenal'. Confidence bands are allowed.
#'
#'
#' @aliases plot.longiPenal lines.longiPenal
#' @usage
#'
#' \method{... |
27ba62f5b3b9e371b7081a6bd329fbb7d299e6f6 | 956396a26bdc668c068d9d887d438bcde779f29c | /cachematrix.R | e059732d2578039999d49621fb70ec3dd3846159 | [] | no_license | karla-l/ProgrammingAssignment2 | 61e9966cb197ea5abd8c0cd12645ba615faa9f98 | f7d98b13a51c2c03abce8e1f49468390446c755b | refs/heads/master | 2021-01-18T09:15:49.972366 | 2015-02-22T12:45:55 | 2015-02-22T12:45:55 | 31,044,745 | 0 | 0 | null | 2015-02-20T00:36:05 | 2015-02-20T00:36:05 | null | UTF-8 | R | false | false | 1,634 | r | cachematrix.R | ## The following functions compute the inverse of a square matrix
## and cache the resultant using two functions:
##[1] makeCacheMatrix to create matrix object and store inverse
##[2] cacheSolve to compute matrix inverse and return cached inverse if already calculated
## The function makeCacheMAtrix creates a matrix ... |
b1945c94473a0cddb3518402f2410caab3b14764 | a18c2a7cf79b96fd50d45dab7493a482d37eddb0 | /data/cellrangerRkit/man/get_matrix_dir_path.Rd | 0a31faee7f4222f4820be446e9a8c4829ac5d99e | [
"MIT"
] | permissive | buenrostrolab/10x_scRNAseq | b6514c07873ae2a9c8959498234958fb833db568 | 8e65ceffd8a7186d0c81b159e6b316bc2bfdc6bf | refs/heads/master | 2021-01-11T01:53:54.856901 | 2016-11-21T03:41:37 | 2016-11-21T03:41:37 | 70,646,869 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 581 | rd | get_matrix_dir_path.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.r
\name{get_matrix_dir_path}
\alias{get_matrix_dir_path}
\title{Get path to matrices in Cell Ranger output}
\usage{
get_matrix_dir_path(pipestance_path, barcode_filtered)
}
\arguments{
\item{pipestance_path}{Path to the output directory ... |
c31ca54800ccf88dfbe84fc0db9c533879d751ed | 3163e89817ded391b753a1932421b96241756633 | /R/old_getORF.R | d35129e4776aacfed80aea8abd1d7fda5b900c77 | [
"Apache-2.0"
] | permissive | fursham-h/ponder | c1612c1e2dfc1dba64ddc75fb368be6e0538bfc2 | 5131a51c73fcf2a28fd43122f97b23932a59c4ca | refs/heads/master | 2022-03-27T11:16:34.321088 | 2019-12-08T23:31:26 | 2019-12-08T23:31:26 | 126,469,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,048 | r | old_getORF.R | #' _ workflow: Test transcript for NMD feature against a reference CDS
#'
#' @description
#' THIS FUNCTION IS PART OF THE _ PROGRAM WORKFLOW.
#' This function will compare the query transcript with a reference CDS and tests
#' if insertion of alternative segments into the CDS generates an NMD substrate
#'
#' @param k... |
13095263eca287347e0b606983c02d526aef21bb | 17e7a6ec5b4632d89eab288d214d04daddb03b68 | /R/pumpTokens.R | 854e62815266bcd4112b3b8e59a8db2959194d52 | [] | no_license | choisteph/cholera | 0d99ca082761558bee3d308fd95ba0e7f8e8f4ae | 57c2c3bcf1de7f7b606e41a00bb09ab769e4222d | refs/heads/master | 2022-11-23T06:05:05.734258 | 2020-07-30T15:36:10 | 2020-07-30T15:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,209 | r | pumpTokens.R | #' Add pump tokens to plot.
#'
#' @noRd
pumpTokens <- function(pump.select, vestry, case.set, snow.colors, type) {
if (vestry) {
dat <- cholera::pumps.vestry
} else {
dat <- cholera::pumps
}
if (case.set == "observed") {
if (is.null(pump.select)) {
points(dat[, c("x", "y")], pch = 24, lwd = ... |
6a41b556efff4c1a35fdb6d996be476c5dfda49b | f6c871a87f64a5ca6d8dcf6931e05e6dc0fb0c1f | /R-Package/man/ClusterCalc.Rd | 918315e0f1f257d180d5c2cd6454df523b565c2a | [] | no_license | CreanzaLab/SongEvolutionModel | 073342a07eaeca061f92b6798b2ab1ff40567b58 | 449087c85280e11b97924575d2e3c618169a0f8b | refs/heads/master | 2020-06-13T18:23:13.603932 | 2019-08-15T22:57:51 | 2019-08-15T22:57:51 | 194,747,721 | 0 | 1 | null | 2019-08-15T22:57:52 | 2019-07-01T21:52:31 | R | UTF-8 | R | false | true | 555 | rd | ClusterCalc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Source_StatsPlotsandTesting.R
\name{ClusterCalc}
\alias{ClusterCalc}
\title{Cluster Calculation}
\usage{
ClusterCalc(P, matrix)
}
\arguments{
\item{P}{a list of parameters}
\item{matrix}{a saved trait from the Basic sims (requires individual... |
f52a7205081b3ea936e70d270961e9a6d4f9a8a3 | 55e617b353f211fe206109c1b80a527e98f4cd76 | /man/predict.MTL.Rd | 53d9216f4b95bd0711e81e4dc230b9852d720c8e | [] | no_license | hank9cao/RMTL | fae8cf3f644f929248b81654c9749f691c7e7e7f | 50564c7bd26dc673fd1f2604206db7394b755afd | refs/heads/master | 2020-04-26T18:09:05.656661 | 2019-04-16T11:30:18 | 2019-04-16T11:30:18 | 131,158,971 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 891 | rd | predict.MTL.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MTL.R
\name{predict.MTL}
\alias{predict.MTL}
\title{Predict the outcomes of new individuals}
\usage{
\method{predict}{MTL}(object, newX = NULL, ...)
}
\arguments{
\item{object}{A trained MTL model}
\item{newX}{The feature matrices of new ind... |
ad11abae08c4fe90797c00f856debd25e7fec1b8 | dc3642ea21337063e725441e3a6a719aa9906484 | /DevInit/R/is_in_use.R | 87fec9bab26ae5329317e7db7199b5a681a04a12 | [] | no_license | akmiller01/alexm-util | 9bbcf613384fe9eefd49e26b0c841819b6c0e1a5 | 440198b9811dcc62c3eb531db95abef8dbd2cbc7 | refs/heads/master | 2021-01-18T01:51:53.120742 | 2020-09-03T15:55:13 | 2020-09-03T15:55:13 | 23,363,946 | 0 | 7 | null | null | null | null | UTF-8 | R | false | false | 1,564 | r | is_in_use.R | wd <- "C:/git/alexm-util/DevInit/R"
setwd(wd)
trunc <- function(str){
newStr <- substr(str,1,nchar(str)-4)
return (newStr)
}
concepts <- read.csv("C:/git/digital-platform/concepts.csv",na.strings="",as.is=TRUE)
concepts <- transform(
concepts
,hasMapTheme = !is.na(map.theme)
)
keep <- c("id","hasMapTheme")
... |
2c72bff1f855dc8255bc8697ea12234cb807d428 | ef4d07aed5c6976a2982c01e540f08bd8bab3c5d | /plot1.R | 2cc1d7732b2e11ee9226f73e89f7f8c7579478b9 | [] | no_license | Brufico/ExData_Plotting1 | 2c2d89b2199f023af54d9695819e799053be83a7 | 07bd74afd93341e431641aea927175631a8b802e | refs/heads/master | 2021-01-21T02:41:58.015753 | 2016-01-10T00:33:15 | 2016-01-10T00:33:15 | 49,151,738 | 0 | 0 | null | 2016-01-06T17:53:25 | 2016-01-06T17:53:25 | null | UTF-8 | R | false | false | 2,802 | r | plot1.R | # =======================================================
# Exploratory Data Analysis, Assignment 1
# ========================================================
# libraries
library(lubridate)
# Changing temporarily the "LC_TIME" locale
# save
curloctime <- Sys.getlocale("LC_TIME")
# set
Sys.setlocale("LC_TIME", "Engl... |
7d18c0a1bc207db20d655e8b130672900d2208a4 | ac1e775f1b359e9854a3e76770f4e1966a20d872 | /src/Filter_Me.R | 7f97e991b91f79283b8c4494d5a585bb7606671a | [] | no_license | matiasandina/USV-Interpolation-CleanUp | 27ef16aa1ff3d34cee89bad51ab84a519bc7964d | ca32b142443006337492e5084897f6a3adae54f0 | refs/heads/master | 2021-09-09T09:50:38.543114 | 2018-03-14T20:29:46 | 2018-03-14T20:29:46 | 109,130,185 | 0 | 0 | null | 2018-02-01T17:46:29 | 2017-11-01T12:43:06 | R | UTF-8 | R | false | false | 5,519 | r | Filter_Me.R | Filter_Me <- function(dataframe,
columns,
end.positions,
please.filter = FALSE,
na.threshold = 55){
## Fix Human error in duration #####
# General Impossible Values
# Duration cannont be less than 2 ms (or 0.002 s... |
cdb6cf414ee65571a8fef0bc9ed84b5ec9d5f3f0 | 77bc65a8c09300842fcdc0e0a70a1d6da9191fb7 | /f - barplot_perc_participants_by_occupation.R | 5936ac68025bebc87b333e714ea29788a4133e17 | [] | no_license | vynguyen92/nhanes_occupational_exposures | 07ad223cda8e6d323e26b535eb84188fc6bba5d6 | ecaec09b6172136c8b9b17e1dce06b7eaa86d88b | refs/heads/main | 2023-08-21T02:04:14.130352 | 2021-10-22T20:05:44 | 2021-10-22T20:05:44 | 420,227,537 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 14,582 | r | f - barplot_perc_participants_by_occupation.R | barplot_perc_participants_by_occupation <- function(dataset_merged
, include_sector_collar_dataset
, occupation_group
, name_of_folder
... |
2576a7068feca4953b32dc488681d05513d8439c | e336ef502f2406ed1a77ee12f16217848dc6c27a | /old_scripts/3.4_clustering_nearest_neighbour_empirical.R | dd3930b7b0b78d9229f6687efee2ce02b5d0f4ec | [] | no_license | ksamuk/genome_meta_scripts | 66ead7e467e262a7af4e43e8dc4ed88a3dab3b7b | 6a4d22eac0656f85a1ddefd941874e594c8f54d0 | refs/heads/master | 2021-01-15T23:02:17.648431 | 2015-11-29T19:49:03 | 2015-11-29T19:49:03 | 31,740,964 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,912 | r | 3.4_clustering_nearest_neighbour_empirical.R | # calculate nearest neighbour distances
library(data.table)
library(dplyr)
library(parallel)
library(ggplot2)
# read in snp file
snp.file <- "stats/snp_filtered/stats_master_variant_2015-06-11.filt.txt"
snp.file <- fread(snp.file)
# remove weird outliers
snp.file[!is.na(snp.file$fst) & snp.file$fst<0, ]$fst <- NA
#... |
8bcba8ff22ac0bb1c7733f93ca1c6b08b77eed57 | 27e2240acae4c110b4a853f67eaabfb317d8ec93 | /lab/tidyverse/lab02_zadania_ek.R | 3b88eab87b8e423e1ff9d2ae1800e67d149bf0bf | [] | no_license | pbiecek/AdvancedR2018 | 97dbf5fc71d650b8b3f3097f5d82ccb01adc3043 | 26bfd79c0c9fd8fd95185a9afe210e9f7a9d4627 | refs/heads/master | 2018-09-19T10:54:58.171788 | 2018-06-13T10:44:23 | 2018-06-13T10:44:23 | 125,171,416 | 9 | 28 | null | 2018-06-13T10:44:24 | 2018-03-14T07:17:46 | HTML | UTF-8 | R | false | false | 5,268 | r | lab02_zadania_ek.R | ########################################### ZADANIA ######################################################
library(PogromcyDanych)
library(dplyr)
library(tidyr)
head(auta2012)
# 1. Która Marka występuje najczęściej w zbiorze danych auta2012?
auta2012 %>% group_by(Marka) %>% summarise(n=n()) %>% filter(n==ma... |
9cf4974afaff4f6027b38c03c2a34a0238edd8b7 | 5d57f98cdaba0494a0a11b3b99a2adbfaeee59c8 | /PBMCs_PreProcessing.R | 9d891d663f1072206e9f724ddb551fcb0bae7a9b | [] | no_license | yingstat/scDatasets | 3674f8f262583870ff0d4e0f3e510f2ff0bc6d41 | b5970dec038d3097b12bd7cae0c281cff3dad33f | refs/heads/main | 2023-01-25T00:51:48.556846 | 2020-12-06T01:45:42 | 2020-12-06T01:45:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,832 | r | PBMCs_PreProcessing.R | # Estimated purity:
# monocytes: 98%
# B cells: 100%
# CD34+: 45%
# CD4+ Helper T cells: 99%
# CD4+CD25+ T-reg: 95%
# CD4+CD45RA+/CD25- Naive T cells: 98%
# CD4+/CD45RO+ Memory T cells: 98%
# CD56+ Natural Killer Cells: 92%
# CD8+ Cytotoxic T cells: 98%
# CD8+/CD45RA+ Naive Cytotoxic T cells: 99%
set.seed(134)
arg_l... |
95f73ed9d76e98f8287422f25783538c2fc3b27a | 1110578c35c464ef8cd91e59253b4e6ee3a9fa4f | /R/startup.R | c941e7a36f5b1903d9b286b24ad013c3316722ee | [
"MIT"
] | permissive | akram-mohammed/rplos | 1c39e3c2da55edb44eb0a781dbf613cf025e0ac8 | e7b7bdfddc100aabb6e60ca1cd13dedd623f7c64 | refs/heads/master | 2021-01-18T10:32:52.517548 | 2015-03-07T16:30:05 | 2015-03-07T16:30:05 | 32,147,318 | 1 | 0 | null | 2015-03-13T09:31:16 | 2015-03-13T09:31:14 | R | UTF-8 | R | false | false | 227 | r | startup.R | .onAttach <- function(...) {
packageStartupMessage("\n\n New to rplos? Tutorial at http://ropensci.org/tutorials/rplos_tutorial.html. Use suppressPackageStartupMessages() to suppress these startup messages in the future\n")
} |
e330246a93e704b48800f49bf55bf357bbf53995 | a0f098c57271c5e0f14003d1fa2558949696daad | /Assessment_1/4) b) Sequence_numbers.R | 0f9d1297deacc3e7e057dff4797743420e4f1723 | [] | no_license | Aswinraj-023/R_programming_CA_1 | c436896b3381484a89b24d431fb6ff2764299035 | 174a7549936b82dbc7fe2585e2015ad48605ed32 | refs/heads/main | 2023-08-30T14:14:46.104576 | 2021-11-08T18:50:09 | 2021-11-08T18:50:09 | 425,949,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 311 | r | 4) b) Sequence_numbers.R | # 4) b) Printing a sequence
# Unique ID : E7321008
sequence_num <- seq(1 : 6) #creating a sequence of numbers from 1 to 6
num <- 0 #value to be incremented
for (i in sequence_num){ # Accessing each position in sequence_num
num = num + i # incrementing 'num'
print(num) #printing values in 'num'
}
|
8c2523edfa445eb804136aea4117a7c51f89ef0a | 4b2398a4ea26a0797bcd3d57ed37ae4ac5777933 | /report/adapt_metadata.R | bba61211a5400f3b2d5af2b59512a35679403ad5 | [] | no_license | jamesdalg/Goldfeld_EPIC_methylation_array_analysis | a4bfe50c7faff60cef71b7e3bd3d3ac027f106a2 | 8baf8f607e9ab9e8a248ad6868b87872ba40c992 | refs/heads/master | 2021-09-26T17:35:12.772605 | 2018-10-31T21:03:56 | 2018-10-31T21:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,327 | r | adapt_metadata.R | #metadata<- rio::import(paste0(dataDirectory,"/SampleSheet.csv"))
metadata<-metadata %>% tidyr::separate(TargetID, c("Slide","Array","AVG","Beta"),remove = FALSE) %>%
dplyr::select(-c(AVG,Beta)) %>% dplyr::rowwise() %>%
dplyr::mutate(Basename=paste0(dataDirectory,"/",Slide,"/",Slide,"_",Array))
colnames(... |
7ff307c2c4fa1cc15af63c3358cde6aa1ffeb99c | 2da2406aff1f6318cba7453db555c7ed4d2ea0d3 | /inst/snippet/ice06.R | 47c4df926e8a6e8184caadb9f8616c81f89c2211 | [] | no_license | rpruim/fastR2 | 4efe9742f56fe7fcee0ede1c1ec1203abb312f34 | d0fe0464ea6a6258b2414e4fcd59166eaf3103f8 | refs/heads/main | 2022-05-05T23:24:55.024994 | 2022-03-15T23:06:08 | 2022-03-15T23:06:08 | 3,821,177 | 11 | 8 | null | null | null | null | UTF-8 | R | false | false | 80 | r | ice06.R | ice.trt <- lm(t1930 - b1930 ~ treatment * location, data = Ice)
anova(ice.trt)
|
ec7d3585d8e508613438c5a5f12830d8c32998ff | fa0c02b6efd408d29739f413481d9ee2eb75fbe0 | /imdb.R | 23cad19407e361942f20c6c08c4f6604e146ecfb | [] | no_license | Rohika379/Text-mining | e18ab8846abd7b5324341296560e06c622680f49 | cf276454679c0f7a71657f41d6ba0eab029b6183 | refs/heads/main | 2023-05-07T17:29:03.187412 | 2021-05-31T06:27:33 | 2021-05-31T06:27:33 | 372,403,891 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,726 | r | imdb.R |
######### IMDB ###########
library(rvest)
IMDB <- "https://www.imdb.com/title/tt1477834/reviews?ref_=tt_ov_rt"
TZP <- NULL
for (i in 1){
murl <- read_html(as.character(paste(IMDB,i,sep='=')))
rev <- murl %>% html_nodes(".show-more__control") %>% html_text()
TZP <- c(TZP,rev)
}
write.table(TZP,"... |
0c3fd05195340ade0707ff50716b878baa108428 | 765d69a8c6130aa7a6a6db2e150b09c92d2b054d | /R/SummaryData.R | eec2ee8498a3dbcaf01649c8afb5aa1731c06b01 | [] | no_license | atrigila/selectionr | 53fe0e06ea2e82b93ddee3c68dc45681f6643e12 | aae96ee5b9660a84e53a748a7e0c2945f511523e | refs/heads/master | 2022-12-06T00:02:46.790558 | 2020-08-29T04:27:55 | 2020-08-29T04:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,076 | r | SummaryData.R | #' Summary statistics and positively selected sites
#'
#' This function allows you to summarize several mlc files from PAML into a single table.
#'
#' @param gene.list character; Gene name (file name) of the MSA
#' @param Ho.directory character; Directory where PAML null hypothesis are located
#' @param Ha.directory ch... |
dba2f26dc097cea08bbe0b8e83bba7bad27f1394 | 2085ddb7f16dfd2486df9155e2d51fffb1bf6ffc | /R/predictionet.press.statistic.R | bd3735b5c6edd13bf0d9f81790892176609326f8 | [] | no_license | OpenSourceCancer/predictionet | 3483cd6618b1b2efd89db3b3a6cf1f62f125627c | be4c6c95f418aae172b6eceddddbc3c71061ff15 | refs/heads/master | 2021-01-18T15:01:42.308682 | 2012-02-01T17:08:41 | 2012-02-01T17:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,094 | r | predictionet.press.statistic.R | ### Function computing the press statistic for all target variables in topology
## topo: inferred topology
## data: matrix of continuous or categorical values (gene expressions for example); observations in rows, features in columns.
## perturbations: matrix of {0, 1} specifying whether a gene has been pertubed in some... |
17f34ea20a58b76985d6d0779cb78b973d955154 | 1ac2b643c00480a47af52b95f6fb1dc06cc38c3a | /run_analysis.R | 3e080b92709ac2232a5267dfcdc400f44067b3b8 | [] | no_license | matiroqueta/GettingAndCleaningData | 789b87326f1e814247c5362c6c5aa5267c198e26 | 0bbc3aa10fd5ebfa903806280cb4cd889a4f8f9e | refs/heads/master | 2022-04-29T22:58:08.132246 | 2020-04-26T21:07:24 | 2020-04-26T21:07:24 | 111,299,351 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,826 | r | run_analysis.R | # You should create one R script called run_analysis.R that does the following.
#
# Merges the training and the test sets to create one data set.
# Extracts only the measurements on the mean and standard deviation for each measurement.
# Uses descriptive activity names to name the activities in the data set
# Appropri... |
29e19f4c8622f748174c44d07bc025fe2943a84c | 08da078d80d848ba659a9b6b5a9de1131ac60aed | /Data/uge8tirsdag.R | 4330a7568bf8e48b9532ac89a23e3c7e054c3ff9 | [] | no_license | Path-to-Exile/SS-Answers-18-19 | 169346cefb2ca7dbe5cf74394c698b55dcab4ef2 | 2dc33c4574ae1a5757a1a2375ebce3d55ebfb937 | refs/heads/master | 2020-05-09T10:16:59.451786 | 2019-04-12T15:35:12 | 2019-04-12T15:35:12 | 181,035,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,432 | r | uge8tirsdag.R | #August 2015, opgave 4
#1
setwd("/Users/Svesketerning/Google Drev/SS, 18-19/ss-data")
norrebro = read.table("norrebro.txt", header = TRUE)
mean(norrebro$areal)
#Vi udregner gennemsnittet af areal, vi f??r 69,55. Svaret er C.
#2
model1 = lm(pris ~ areal, data = norrebro)
summary(model1)
#Vi laver modellen og f??r sva... |
a04f0974f1a05b980b5ab2087390318050230543 | 29585dff702209dd446c0ab52ceea046c58e384e | /mlt/tests/bugfixes.R | 695905b19b621b2614b197b440aa9f60684e5b2a | [] | 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 | 2,045 | r | bugfixes.R |
library("mlt")
library("sandwich")
set.seed(29)
### Nadja Klein
dat <- data.frame(matrix(rnorm(300),ncol=3))
names(dat) <- c("y","x1","x2")
### set-up conditional transformation model for conditional
y <- numeric_var("y", support = c(min(dat$y), max(dat$y)), bounds = c(-Inf, Inf))
x1 <- numeric_var("x1", support = c(... |
326e99a5f7e95b15ef89a8acc3e99294fc319955 | 723e2ac2013f5c48beb49f9a9cbb3b86c7692f9c | /plot2.R | c8df04a75a3ee50896607f8fa6147e65b2e7542a | [] | no_license | ghollmann/ExData_Plotting1 | fd9952bef1164126349c7a32cb60b5e14ff5e8e4 | 695a6ad5bea1c6f044f97154cea20ee7287bdbf1 | refs/heads/master | 2020-03-12T03:11:48.620985 | 2018-05-14T14:50:48 | 2018-05-14T14:50:48 | 130,419,595 | 0 | 0 | null | 2018-04-20T22:33:27 | 2018-04-20T22:33:26 | null | UTF-8 | R | false | false | 1,936 | r | plot2.R | #---------------------------------------------------------------------------
# This script will read in a Household Power Consumption data file from the
# UCI Machine Learning repository that contains:
# Measurements of electric power consumption in one household with a one-minute
# sampling rate over a period ... |
c0ce32467c5a3eb3c150de87acae917738870906 | df9c306238e105d36561c94aaed36dc6073492b7 | /scripts/Table_01.R | ad46362ff14e29d953437cd5218b2ceb5bf4862b | [] | no_license | cmcninch/bulliform_cell_gwas | 743b630556ef71f6305037f5963f243594a193d3 | 59c55411ded101dc4ea849bf965202dd43606736 | refs/heads/master | 2020-08-17T10:02:19.067425 | 2019-10-16T22:01:12 | 2019-10-16T22:01:12 | 215,649,656 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,769 | r | Table_01.R | ### Load libraries ###
##################################################
library(tidyverse)
library(data.table)
library(lubridate)
library(lme4)
library(lmerTest)
library(broom.mixed)
### Create functions ###
##################################################
heritability_func <- function(df, mean, trait){
model... |
76bf72a795821cce04cc25e3976161d34f382253 | 58ee698c784bbcc80316bf9a3fa3a220e5d76d59 | /man/ReportMatching.Rd | 286c0c8042d5d6f0d25519ce941be967639b7231 | [] | no_license | ms609/TreeDist | cd7755fece35e9996ca65733b90338aca4669da2 | c72382062be06babb795c3961a0b3e5c0be7bb20 | refs/heads/master | 2023-07-20T11:09:26.044909 | 2023-07-14T13:06:31 | 2023-07-14T13:06:31 | 196,188,301 | 23 | 4 | null | 2023-09-07T07:14:04 | 2019-07-10T10:55:31 | R | UTF-8 | R | false | true | 713 | rd | ReportMatching.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tree_distance_utilities.R
\name{ReportMatching}
\alias{ReportMatching}
\title{List clades as text}
\usage{
ReportMatching(splits1, splits2, realMatch = TRUE)
}
\arguments{
\item{splits, splits1, splits2}{Logical matrices with columns specifyi... |
15adfa0c0bd9fe287899fd6f34a45350f7709cff | 6570d3c4dd4ddab6b5d17839a270a645176479a4 | /man/kern.Rd | 8e0ff6048e96dce9dcb289a1cfe100f12e8250ee | [] | no_license | Srisai85/generalCorr | b1eb49ceed363ca7ea02a2553dcaba1681261058 | 1b453e5ec8322830f390804bc77a65c31fa88bf2 | refs/heads/master | 2021-01-27T08:13:52.513101 | 2019-10-30T19:50:02 | 2019-10-30T19:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,932 | rd | kern.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kern.R
\name{kern}
\alias{kern}
\title{Kernel regression with options for residuals and gradients.}
\usage{
kern(dep.y, reg.x, tol = 0.1, ftol = 0.1, gradients = FALSE,
residuals = FALSE)
}
\arguments{
\item{dep.y}{{Data on the de... |
d2fdf9ed11f758fb00a2107c8756bfc414952acb | e535d498001519774956adcc5b0106a5f4e555ac | /Machado_Dpse/R/sex_biased_genes.R | c9f6aa76d72c3852492d76d7d45e90af05c17226 | [] | no_license | kraigrs/thesis_work | f73c6f130a0cf33ed079acb35208bff9cb85d4d1 | bcc8e46b5c65f08c61d5beb8e29ac7e4df101cff | refs/heads/master | 2021-01-22T16:18:29.372793 | 2015-09-10T18:48:11 | 2015-09-10T18:48:11 | 34,088,947 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,944 | r | sex_biased_genes.R | ############################################################################################
# script to find male-biased genes
############################################################################################
FET_misexpression <- function(locus)
{
table <- matrix(c(locus[1],locus[3]-locus[1],locus[2],locu... |
96d22a317241ab81df7fb9dce6764f0a46abc1dc | 59c51287120be281e0e5a155e122e8931508bc4a | /man/firingRateMapAutosPlot.Rd | 3663fb26c5f7a4c3a713d8c35c13c0dfb0ab829f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | kevin-allen/relectro | 2a43159f3f2f08cf7c09168c69b90e1e3b51dc55 | b2fb35c49f8c46d1519f502e9cb01c6c9f2cb0a8 | refs/heads/master | 2020-04-12T08:05:01.663420 | 2019-03-18T21:22:11 | 2019-03-18T21:22:11 | 57,366,781 | 8 | 8 | null | 2018-08-02T14:16:57 | 2016-04-29T08:00:25 | R | UTF-8 | R | false | true | 584 | rd | firingRateMapAutosPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotsSpatial.R
\name{firingRateMapAutosPlot}
\alias{firingRateMapAutosPlot}
\title{Plot a several spatial autocorrelation maps on the same page}
\usage{
firingRateMapAutosPlot(maps, names, ncol = 5, nrow = 6)
}
\arguments{
\item{maps}{A 3d ar... |
65f44a44efb222a81eda3ba7de2700ee8f58d740 | 364c6bafaa9529fcf15851f859fdbc6cc45f7fc5 | /r_package/AlloHubMat/R/plot_sectors.R | 8ac158af4d0687e8875793c4861fe0e46823f249 | [] | no_license | jamieAmacpherson/allosteric_signal | 842a5b446924a5b84b2aff589bcb6f51beabc8a1 | 297ef7cd79748d864a2a8f12ff5924064ebd4ed2 | refs/heads/master | 2021-10-12T04:49:27.252794 | 2019-02-01T18:13:05 | 2019-02-01T18:13:05 | 95,106,128 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,821 | r | plot_sectors.R | #===============================================================================
# AlloHubMat
#' 2-dimensional plot of the covariance overlap between continguous mutual information matrices, defined in the input trajectory.
#'
#' This function generates a 2d plot of the diagonal of the smoothed covariance overlap matr... |
b8e32433dc5aa372c2fb5ba66484a44292a983d3 | 07383de953a20062dd8ae10ec505fb8a5a3c0467 | /models/safe_transformation.R | 06ca90d9a934fd1c56bd89a7223fd6741d12578e | [] | no_license | kozaka93/SAFE_use_case | 098b3b2c4b0d0377b087f1f10baaa37f1ca91117 | 0a4299a5adc2ae1fa600eaf354c51c28d4f9064c | refs/heads/master | 2022-11-18T19:11:12.628667 | 2020-07-15T20:11:28 | 2020-07-15T20:11:28 | 279,329,294 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 468 | r | safe_transformation.R | #### SAFE TRANSFORMATION ####
devtools::install_github("ModelOriented/rSAFE")
library(DALEX)
library(DALEXtra)
library(rSAFE)
explainer_gbm <- explain_mlr(mod_gbm,
data = train,
y = train$class == "bad")
safe_extractor_gbm <- safe_extraction(explainer_gbm,
... |
19e6b2ccaf323dbf1cc9e109fd0a189c681802fc | 796115a24cc8fcd0f0f8cb5c5982e6f55e48c16e | /shiny_app/ui.R | 56721c7d5e196290f3e0bada2c81542b97d1ad49 | [] | no_license | lsauchanka/Project-3 | 4c456617bfadbf75d8db573c9d0d699d33b09eee | d09bc87b0ddf6c3999cfe64855ed5b2c4d4f6741 | refs/heads/main | 2023-05-25T09:56:08.374426 | 2021-06-08T23:23:02 | 2021-06-08T23:23:02 | 375,131,096 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 309 | r | ui.R |
fluidPage(
titlePanel("Posts by Year"),
sidebarLayout(
sidebarPanel(
selectInput("year", "Year:",
choices=colnames(PostsbyMonth)),
hr(),
helpText("Data from gaming.stackexchange.com")
),
mainPanel(
plotOutput("plot")
)
)
) |
bb3a8920b5ec0ff5950f0d9650766bf33ebfcf40 | b821cea9ea90e31bfe72c8ed718a68a5e4e2dd6d | /Tree.R | 7d2717fa5bb9f863588d16bf8fc2d99122bbb890 | [] | no_license | christyChenYa/GoogleSearchQueries | 942db1d5ad47c377e33dd8456172f81db2f0c682 | c29ce211b0c2a51fdc2e5ad3536c9003947d7c2b | refs/heads/master | 2020-04-12T05:49:16.738076 | 2019-01-11T00:32:31 | 2019-01-11T00:32:31 | 162,332,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,345 | r | Tree.R | #treelab
getwd()
setwd("/Users/Christy/Desktop/Data Mining ")
training<-read.csv("training.csv")
test=read.csv("test.csv")
######################### convert to data.table ######################################
training<-data.table(training)
test<-data.table(test)
######################### check data ################... |
0ff42ff7b52ef7e0f636ec528529139017a02858 | 125dbf3c28b775d115e490d456b3c457346d4127 | /IPM_02/IPM_02.2-5.R | fd0fe87559a077fc95b96cf6797bf6898c1bef06 | [] | no_license | norberello/IPM_code | aa53648b011c1e9105bdd81322a7851b81a4e5f3 | fe6d85858e5c37f1ae9ad1d24525208c964b9e28 | refs/heads/main | 2023-08-31T14:36:08.102940 | 2021-10-12T07:48:58 | 2021-10-12T07:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,095 | r | IPM_02.2-5.R | # Schaub & Kéry (2022) Integrated Population Models
# Chapter 2 : Bayesian statistical modeling using JAGS
# ----------------------------------------------------
# Code from proofs.
library(IPMbook)
# 2.2 Parametric statistical modeling
# ===================================
# 2.2.2 Parametric statistical models for ... |
8e353672ec58716dbc4adc8b62f53d99ad6a5ba2 | e235bfe1d784b6046a9411d5e2c4df3d0b61f34f | /data-raw/save_gss.R | 5675f2a3c4e9066b362a037d134e8edfe18b4d78 | [
"MIT"
] | permissive | tidymodels/infer | 040264d3b295c6986a9141d3d6fffe8a51e73db0 | 6854b6e5f8b356d4b518c2ca198cc97e66cd4fcb | refs/heads/main | 2023-08-07T03:34:31.100601 | 2023-07-27T21:21:58 | 2023-07-27T21:21:58 | 93,430,707 | 517 | 74 | NOASSERTION | 2023-09-06T12:46:24 | 2017-06-05T17:41:42 | R | UTF-8 | R | false | false | 2,453 | r | save_gss.R | library(dplyr)
library(forcats)
library(srvyr)
library(ggplot2)
# pull gss data
temp <- tempfile()
download.file("https://gss.norc.org/documents/stata/GSS_stata.zip",temp)
# if this next line errors with "No such file or directory", try
# incrementing the number after "_R"
gss_orig <- haven::read_dta(unz(temp, filena... |
7159401a7de2c9ba303610e57b526b9fa7c046b7 | a8b4f18d326a8579cf038ecc13cc2e96b491571d | /Day_3_mapping_with_style.R | ed4722bcc991f5325bf000768a90be14ba80e319 | [] | no_license | gayiza/intro_r_uwc | f99a28a3be1674289da2e2b5d6fb2651481c4960 | dd0f4ebda09d80c34f4bf0caf46111e26c876721 | refs/heads/master | 2020-04-19T09:20:06.426141 | 2019-02-03T07:19:31 | 2019-02-03T07:19:31 | 168,107,217 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,467 | r | Day_3_mapping_with_style.R | #mapping with styke
#Day3
#Mihle Gayiza
#31st Jan 2019
# Load libraries
library(tidyverse)
library(scales)
library(ggsn)
#Default map (world map)
ggplot() +
borders() + # The global shape file
coord_equal() # Equal sizing for lon/lat
#Better view of SA
sa_1 <- ggplot() +
borders(fill = "grey70", colour = "blac... |
f46349613aeb51baeaa1abfc662273f79b228dec | f5ce7a71e7fb4053c99a37c1330a762ee929b51a | /code/cleaning_raw_data.R | 71c81aae098ce56a3c8178b8b519ada3b73bc642 | [] | no_license | seanhart21/farmR | 5bf189f3c4ae5d18974807a1ffebc39ef3f79ec6 | 7eb44dbdeb8194afe34a520a0cf16f0ebfb4b0a1 | refs/heads/master | 2023-04-03T12:38:00.375495 | 2021-04-12T17:00:58 | 2021-04-12T17:00:58 | 357,263,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 898 | r | cleaning_raw_data.R | ###import and clean data
library(tidyverse)
df <- readxl::read_xlsx("raw_data/Hart Farm Ag Log Excerpt.xlsx")
head(df)
## Get Dates from excel format.
df[,1]
tail(df[,1])
dates <- as.data.frame(df[,1])
dates <- as.numeric(dates[1:nrow(dates),])
library(lubridate)
as.Date('1899-12-30') + days(dates)
df$date <- as.D... |
98dbf959201928d2d7f2c49d5070822851e2f25e | a35dc9d7130913d23542d23ce11f549f7268b93b | /plot2.R | 015deffdb42a038699de056b937648efd447d046 | [] | no_license | pratta3/RepData_PeerAssessment1 | 557bace29d5cc37f410327b077ea236086711534 | 06cde98165e6c2181f630e9e30817e12ceaaf6d8 | refs/heads/master | 2020-12-30T09:59:02.714794 | 2017-08-04T04:12:19 | 2017-08-04T04:12:19 | 99,251,462 | 0 | 0 | null | 2017-08-03T16:07:29 | 2017-08-03T16:07:29 | null | UTF-8 | R | false | false | 802 | r | plot2.R |
# Plot2 is a time-series plot showing the average number of steps at different
# time intervals throughout the day.
source("script_activity.R")
library(ggplot2)
theme <- theme_bw() +
theme(plot.title = element_text(size = 24, hjust = .5,
face = "bold", margi... |
7e8caf3270c7f362f2e97c339d8b67947e9ead3f | d4104e2df5fe1d38f92ffad46b1496f0e95d91c3 | /plot4.R | dedaa49edf2ccbaba194049a40ffc76348120286 | [] | no_license | lduan18/ExData_Plotting1 | 4986c48934885ca59fe7944148c5e9c642bc5464 | b0b9ff85cf713f21462135aa2c318bb66165c233 | refs/heads/master | 2021-05-28T16:35:07.069999 | 2015-04-12T01:59:25 | 2015-04-12T01:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,041 | r | plot4.R | file <- read.table("./household_power_consumption.txt", stringsAsFactors=FALSE, header=FALSE, sep=";", nrow=1000000)
file2 <- read.table("./household_power_consumption.txt", stringsAsFactors=FALSE, header=FALSE, sep=";", skip=1000000)
file3 <- file[file$V1 %in% c("1/2/2007", "2/2/2007"),]
file3$V1V2 <- paste(file3$V1, ... |
29b4a2b1adb002ba0fbd8b4a66c2f8308cbca1cb | b1181c0b0b8f88f09e61b5153799aa0fb7137c69 | /run_analysis.R | dd07ebbcffb7f6a698d37162a4385f2108d02d11 | [] | no_license | briantxbai/Getting-and-cleaning-data-course-project | c6dc7fe10028ac8cbc45f588cd78c557afe86d2c | 138309954ed8ee922be5d39cfe5b79b07d9b42fc | refs/heads/master | 2021-01-01T05:15:59.022666 | 2016-05-07T08:41:45 | 2016-05-07T08:41:45 | 57,648,386 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,771 | r | run_analysis.R | ##This R script includes R codes for JHU Getting
##and cleaning data course project
library(dplyr)
##Download and load data
filename <- "getdata_dataset.zip"
if(!file.exists(filename)){
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl, filena... |
64d805742fd6e67b132d86d62f384bca775531b8 | e807c83cd7e9c8b22607a62f37bef004c93afe36 | /FitBitR_Getdata.R | 77acbb57385810b153b45ace1c1a6d372b725f8f | [] | no_license | Chmavo/Regression-with-FitBit | fd2adc7a40320c54bbcf44e48661e7ade9ba982d | e3ff59dbcabf82ffbd6421ff2c06896a0a75fd2f | refs/heads/master | 2021-05-01T07:38:05.905933 | 2018-02-11T19:53:15 | 2018-02-11T19:53:15 | 121,160,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 609 | r | FitBitR_Getdata.R | library(fitbitr)
library(plyr)
#get new API token
token <- get_fitbit_token()
#make call to fitbit API to download data and parse response to JSON
hr_resp <-
fitbit_GET("1/user/-/activities/heart/date/2016-01-01/today.json",
token = token)
hr_ret <- fitbit_parse(hr_resp)
hr_ret.i <-
lapply(hr_ret$`ac... |
ed1084bfe3044ef6f492ff077e365bd6c610c69e | 1e33994decb847455101d5ca3ebef647ee2d11b9 | /plot1.R | 8a1a8dc333b393ec455e17b7585aa32c95782351 | [] | no_license | byron-data/Exploratory-Data-Analysis-Assignment-1 | 13c6b8bcda80ccf3c2afa2e9a00abdd71e45ac29 | dd4c7447c40d540b20218bb1939d4e5da2acfeb6 | refs/heads/master | 2021-06-13T15:09:55.254016 | 2017-04-15T06:53:57 | 2017-04-15T06:53:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 921 | r | plot1.R | # Download the data
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="household_power_consumption.zip")
# Unpack the zip file
unzip(zipfile="household_power_consumption.zip")
library(sqldf)
# Read all household power consumption data only for 1... |
3a4cd486e73c786e0288b990383f974a87ea913b | 0a399ef04f0e06734640cd259f7d3d6d8cd4362f | /Riesgos competitivos/competing risks.R | 432566d2407742a23894020443397d82e9739804 | [] | no_license | mrainmontececinos/competing-risks | 8b4accf0ab47b09d2b2d4cf7ad6ba380f8383e58 | 15221e187fbdd1aa825dcc4ebd02ecb3a9625501 | refs/heads/main | 2023-01-13T01:14:20.939494 | 2020-11-15T03:49:42 | 2020-11-15T03:49:42 | 310,975,475 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,521 | r | competing risks.R | library(riskRegression)
library(ggfortify)
library(survminer)
library(plotly)
library(gridExtra)
data(Melanoma)
set.seed(234)
Melanoma$id=sample(1:205)
str(Melanoma)
table(Melanoma$event)
Melanoma$event=factor(Melanoma$event, levels = c("censored"
,"death.malignant.mel... |
8e7d3b86d3d3f51bb18eb03401af6007907db331 | 46e703f23b8e5db1281d92007592419554061331 | /plot3.R | cceeda49bacf931918d3fce99c08e4331729175e | [] | no_license | stradaconsulting/ExData_Plotting1 | 7f2117ee2438e8f79d423370f460db09e48464a1 | ca143522e6d2442a46f615cef73d36936e6417d4 | refs/heads/master | 2020-12-31T03:25:06.683266 | 2015-07-11T02:41:55 | 2015-07-11T02:41:55 | 38,903,537 | 0 | 0 | null | 2015-07-10T21:49:25 | 2015-07-10T21:49:25 | null | UTF-8 | R | false | false | 2,569 | r | plot3.R | ## R-Programming Coursera
## Assignment 1
## Plot3
## Prepared by: Santiago Oleas - soleas@gmail.com
## Set working directory to local github folder
setwd("/Users/santiago/git/coursera/Exploratory Data Analysis/Assignment 1/ExData_Plotting1")
##Get File
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%... |
7b5114a05aaf05e1aaacde7547d09c61def26163 | 7ba42ea09417547219343e5532a1f7954bdf10b2 | /man/nlp_xlm_roberta_sentence_embeddings_pretrained.Rd | e8b2245f3cb7ae4e9c7d0c036e06e1a32ceda54c | [
"Apache-2.0"
] | permissive | r-spark/sparknlp | 622822b53e2b5eb43508852e39a911a43efa443f | 4c2ad871cc7fec46f8574f9361c78b4bed39c924 | refs/heads/master | 2023-03-16T05:35:41.244593 | 2022-10-06T13:42:00 | 2022-10-06T13:42:00 | 212,847,046 | 32 | 7 | NOASSERTION | 2023-03-13T19:33:03 | 2019-10-04T15:27:28 | R | UTF-8 | R | false | true | 1,874 | rd | nlp_xlm_roberta_sentence_embeddings_pretrained.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xlm_roberta_sentence_embeddings.R
\name{nlp_xlm_roberta_sentence_embeddings_pretrained}
\alias{nlp_xlm_roberta_sentence_embeddings_pretrained}
\title{Load a pretrained Spark NLP XlmRoBertaSentenceEmbeddings model}
\usage{
nlp_xlm_roberta_sent... |
341cf71841db4280d62286cb968274f7f99b5297 | 0ebf8d4a144f4bc53b113992068c88fa78e726c0 | /man/gm.sd.Rd | b1e061b88c02ed05a9b1e1dc10bcd336bd4121a2 | [] | no_license | cran/evoper | de054e9df5b17afbb57df4fafb1d33347c8fdbb6 | c81202d787a6e06eab3416a563e3967602ae653a | refs/heads/master | 2021-01-20T19:14:08.061212 | 2018-08-30T22:20:06 | 2018-08-30T22:20:06 | 61,308,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 401 | rd | gm.sd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper-functions.R
\name{gm.sd}
\alias{gm.sd}
\title{gm.sd}
\usage{
gm.sd(x, mu = NULL)
}
\arguments{
\item{x}{data}
\item{mu}{The geometric mean. If not provided it is calculated.}
}
\value{
geometric standard deviation for da... |
400f9770d6410e09307aa514c33f97e48854727b | 2d9fb03feb8626c67ba5d3f1a0815710b621c5f6 | /R/processing_time_log.R | f43865ee677288a693ad3787627b4e4c7da3e453 | [] | no_license | bbrewington/edeaR | 4c8916bad4c54521764574770ae941983363dc0a | 02b31d133b5cec68caa6e0c5fa446a6a6275d462 | refs/heads/master | 2021-01-19T18:32:49.442081 | 2016-08-27T17:31:36 | 2016-08-27T17:31:36 | 66,726,375 | 0 | 0 | null | 2016-08-27T17:17:51 | 2016-08-27T17:17:51 | null | UTF-8 | R | false | false | 442 | r | processing_time_log.R |
processing_time_log <- function(eventlog,
units = "days") {
stop_eventlog(eventlog)
r <- processing_time_case(eventlog, units = units)
s <- summary(r$processing_time)
s <- c(s, St.Dev = sd(r$processing_time))
s <- c(s, IQR = s[5] - s[2])
s <- c(s, tot = sum(r$processing_time))
names(s) <- c("min","q1... |
8f86a3d7f2da114cc6d61294a7ffe3dee746efaf | c29c7b4b9e3d1e1e7b1ea8d888bbb38719ceec89 | /GSEA_TF_plotter.R | 9a95719dd2a3d18c44d038c4a77bbebb4117b1fe | [] | no_license | bweasels/SequencingUtilities | 1732c53b9a1b602fe50f387af44d4de8108822e5 | 45255e18b56b620e00803c725dd56d18bae1051b | refs/heads/master | 2021-07-06T16:55:05.734785 | 2020-10-15T17:43:36 | 2020-10-15T17:43:36 | 194,119,328 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,723 | r | GSEA_TF_plotter.R | #Plots the transcription factor binding sites and tells if they are significant or not
#requires
#library(TFEA.ChIP)
GSEA_TF_Plotter <- function(results, outputDir, timepoint){
#get the data and make the filename for outputs
fileName <- results@elementMetadata
fileName <- grep('Condition',fileName$description, ... |
8612997dae78b7b36639900aaae1c40b8447274e | cbb8f3ba14092d175a1903d8b6746d912f868379 | /src/inst/tests/not_ready/test.get_kappa.R | 9cbdbadfe02d5fce65115967bbbf4228c0cf32b4 | [] | no_license | howl-anderson/sdmutility | 6d02801e5dd156861e81b616e4efd63b8f26ee99 | bb93097677a63a8292336c52a8236fdf0e78afa0 | refs/heads/master | 2021-01-19T03:31:59.720547 | 2015-09-04T06:52:11 | 2015-09-04T06:52:11 | 41,901,949 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 398 | r | test.get_kappa.R | test_that("get kappa", {
library("raster")
current.layer <- raster(nrow=3, ncol=3, xmn=0, xmx=3, ymn=0, ymx=3, crs=NA)
current.layer[] <- c(1,1,0,1,1,0,1,0,0)
future.layer <- raster(nrow=3, ncol=3, xmn=0, xmx=3, ymn=0, ymx=3, crs=NA)
future.layer[] <- c(0,1,1,1,1,1,0,1,0)
cm <- co... |
d242883ac7eb715283a12d733b06dd686c054ab4 | 30bf67317024c30c60a6699e99e465537a3fed73 | /lp/lp0.R | 4342fa42a1e2bdf20c16eef7be0959de9545427a | [] | no_license | dupadhyaya/rorlp | 4b3c179894a77b27ce8113ed73a224cbd0620240 | eeaab3d2bb110fc342b1a8d29eef979c7d7a9490 | refs/heads/master | 2020-03-22T19:25:57.833405 | 2018-08-06T09:36:37 | 2018-08-06T09:36:37 | 140,527,136 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 514 | r | lp0.R | # Transport Problem in R
#
lp(direction = "min", objective.in, const.mat, const.dir, const.rhs,
transpose.constraints = TRUE, int.vec, presolve=0, compute.sens=0,
binary.vec, all.int=FALSE, all.bin=FALSE, scale = 196, dense.const,
num.bin.solns=1, use.rw=FALSE)
lp.assign (cost.mat, direction = "min", pres... |
add10c08341525f078c3f534bb02125c74ea98ee | dd5f8768d4ee1df9d161c35d2f8c09bcc5b71319 | /plot3.R | 941f0fcf50f01c70c04082d0db99bafa7f4b1cdc | [] | no_license | M16B/ExData_Plotting1 | 64dbc666824f02a88ed86e35087c165f4669ec3b | fc7417fa7dbf2ceb18f9abeeaed8d5f8f51b8058 | refs/heads/master | 2021-01-17T09:06:22.706120 | 2015-07-13T00:33:20 | 2015-07-13T00:33:20 | 38,981,551 | 0 | 0 | null | 2015-07-12T23:09:51 | 2015-07-12T23:09:51 | null | UTF-8 | R | false | false | 1,023 | r | plot3.R | #Read in Data
data <- read.table("./data/household_power_consumption.txt", header = T,
sep = ";", stringsAsFactors = F, dec = ".")
#Get subset of data
subData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#Get x axis values
time <- strptime(paste(subSetData$Date, subSetData$Time, sep = " "),
... |
f94e274a6f248a6d3660c292690a48563e90a2c4 | 9c89a2b82537f3d905579f2db5de51aa6748e3f8 | /Average_secretion.R | 83d13f5949865ab3dada56d1d483b0b386b1a87e | [] | no_license | kleppem/data_R | 0ccda4ea1510bfaf5ebf67f507ba52244ccf04f7 | 47b34c92ae571b84f413cb345d4b8e67f51f7c96 | refs/heads/master | 2020-05-30T10:15:25.542525 | 2014-10-25T00:53:39 | 2014-10-25T00:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 324 | r | Average_secretion.R | #read table
dp<-read.table("LINposGFPpos", check.names=TRUE, header=TRUE)
#convert into data frame
dfdp<-data.frame(dp)
#convert data frame into matrix
Mdp<-as.matrix(dfdp)
#Convert values =0 to NA
Mfl.transpose[which(Mfl.transpose<=0)] = NA
#Average of specific column excluding NA
colMeans(Mfl.transpose, na.rm = T... |
de3c08e68ec0f89e9f8a933d518049b86d5809d9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/santaR/examples/get_grouping.Rd.R | 93e1f879c17d96ec544cb049a3d7adf1139da78a | [] | 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 | 653 | r | get_grouping.Rd.R | library(santaR)
### Name: get_grouping
### Title: Generate a matrix of group membership for all individuals
### Aliases: get_grouping
### ** Examples
## 3 subjets in 2 groups
ind <- c('ind_1','ind_1','ind_1','ind_2','ind_2','ind_3')
group <- c('g1','g1','g1','g2','g2','g1')
get_grouping(ind, group)
# ind grou... |
524a2b278bde88b433f9e9ee723ab3477b37bd6b | a47ce30f5112b01d5ab3e790a1b51c910f3cf1c3 | /B_analysts_sources_github/jmzeng1314/where_is_my_Mr_Right/ui.R | cde22c903276542124c9d3cc98b71169ba79fc28 | [] | no_license | Irbis3/crantasticScrapper | 6b6d7596344115343cfd934d3902b85fbfdd7295 | 7ec91721565ae7c9e2d0e098598ed86e29375567 | refs/heads/master | 2020-03-09T04:03:51.955742 | 2018-04-16T09:41:39 | 2018-04-16T09:41:39 | 128,578,890 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,510 | r | ui.R | library(shiny)
library(shinydashboard)
characters=read.table('characters.txt',stringsAsFactors = F,encoding = 'UTF-8')
## TODO:
## statistics page :
header <- dashboardHeader(title="找来找去 随机匹配")
sider <- dashboardSidebar(
sidebarMenu(
menuItem("来玩呗", tabName="play", icon=icon("meetup")),
menuItem("看看呗", tabN... |
a1a0f2be9c8b56caad9f6025a8d4fd942a8e111c | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Fundamentals_Of_Mathematical_Statistics_by_S.c._Gupta,_V.k._Kapoor/CH5/EX5.3/EX5_3.R | 9db1f18db9abfb1d0cb1a156380ba110b1a1ffd6 | [] | permissive | FOSSEE/R_TBC_Uploads | 1ea929010b46babb1842b3efe0ed34be0deea3c0 | 8ab94daf80307aee399c246682cb79ccf6e9c282 | refs/heads/master | 2023-04-15T04:36:13.331525 | 2023-03-15T18:39:42 | 2023-03-15T18:39:42 | 212,745,783 | 0 | 3 | MIT | 2019-10-04T06:57:33 | 2019-10-04T05:57:19 | null | UTF-8 | R | false | false | 501 | r | EX5_3.R | #Page number--5.7
#Example number--5.3
#LOAD PACKAGE----->prob
s=rolldie(2)
s
X=c(1,2,3,4,5,6,7,8,9,10,11,12)
a=0
for(i in 1:12){
a[i]=nrow(subset(s,X1+X2==i))/nrow(s)
}
#Probability chart
plot(X,a,type="h",xlim=c(0,12),ylim=c(0,0.17),ylab="Prob.",xlab="Sum of two faces")
#Cummulative probability distr... |
fa5aaea64091c9e388ffca4c78b5cd779a7b01cb | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/treeplyr/examples/reorder.treedata.Rd.R | a5f3b32f8f72fb4caec463aa88193cf5579fe3b4 | [] | 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 | 224 | r | reorder.treedata.Rd.R | library(treeplyr)
### Name: reorder
### Title: Reorder a 'treedata' object
### Aliases: reorder reorder.treedata
### ** Examples
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
td <- reorder(td, "postorder")
|
b63d236b4c47b0cd188c95108ed8c1874a5cca3b | b59cc783d2da2f32737432c1b13cf72c5802f067 | /R/collect.results.R | 1fbfd0095ff00c47557bddda43962c48bc17b2b5 | [] | no_license | jdsimkin04/shinyinla | 9a16007b375975a3f96b6ca29a1284aa6cafb180 | e58da27a2a090557058b2a5ee63717b116216bf7 | refs/heads/master | 2023-06-05T08:34:34.423593 | 2021-06-24T00:27:04 | 2021-06-24T00:27:04 | 330,322,338 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 93,429 | r | collect.results.R | ## Export: inla.collect.results
## ! \name{inla.collect.results}
## ! \alias{inla.collect.results}
## ! \alias{collect.results}
## ! \title{Collect results from a inla-call}
## ! \description{\code{inla.collect.results} collect results from a inla-call}
## ! \usage{
## ! inla.collect.results(
## ! result... |
7add26d28ac249d4d1c400e56487ef6f4dd3f237 | 04b5f50c5ba46c41ccc49a4474aec6d17061c2e8 | /cluster final cut.R | 8c2b641537e543f84470a9e98d07c3c4c4fd6486 | [] | no_license | rahav08/House-sales-prediction-final | 182481828d1146c734305589ce868a9c8f27a9b3 | b330bac725e4a74a88c89f3a89acc0d1acff5eb8 | refs/heads/master | 2022-04-20T09:44:08.158249 | 2020-04-19T06:33:14 | 2020-04-19T06:33:14 | 256,930,858 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,221 | r | cluster final cut.R | House <- read.csv("Downloads/House_Price_data (1).csv",header=TRUE,sep=",")
Utilities <- House$Utilities
Heating <- House$Heating
HeatingQC <- House$HeatingQC
GrLivArea <- (House$GrLivArea)
Fullbath <- House$FullBath
Halfbath <- House$HalfBath
Bedroomabvgr <- House$BedroomAbvGr
Kitchenabvgr <- House$KitchenAbvGr
Kitche... |
07a5569cb548a265a97b06d634a0fb73e47c044a | 94036c48173e2eeff4dfecd6bb1b515026363bdf | /feeds.R | db2abacde6b30101a6f74f5e4fe36f1fc63aa289 | [] | no_license | wilsonfreitas/brbloggers-backend | c9b75d577d4e6da8e3f20c779e61a693b290cedb | 6d22293b92d9e3e23c2d63a0da605f3813dfed06 | refs/heads/master | 2021-04-12T12:07:48.826661 | 2017-06-16T13:26:48 | 2017-06-16T13:26:48 | 94,549,116 | 0 | 1 | null | 2017-06-16T13:58:14 | 2017-06-16T13:58:14 | null | UTF-8 | R | false | false | 769 | r | feeds.R | feeds <- list(
"curso-r" = list(
nome = "Curso-R",
url = "http://curso-r.com/blog/index.xml"
),
"paixao-por-dados" = list(
nome = "Paixão por Dados",
url = "https://sillasgonzaga.github.io/feed.xml"
),
"analise-real" = list(
nome = "Análise Real",
url = "https://analisereal.co... |
f175aed5fbbe3bdb0051db91b47eac1d5f070dec | 8b2b0f04ee5d217a23ca14772dc0a7600445b364 | /marked/man/crm.wrapper.Rd | da37b254ffa64060087236daa408c8cec909752f | [] | no_license | pconn/marked | 15031bf4830b4fa4769596fc96381bd08828e73a | 5e1c6ee88abbf75cb510ac7af797867d7ffceee5 | refs/heads/master | 2021-01-23T03:34:44.341589 | 2016-12-05T23:19:11 | 2016-12-05T23:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,830 | rd | crm.wrapper.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crm.wrapper.R
\name{crm.wrapper}
\alias{create.model.list}
\alias{crm.wrapper}
\alias{crmlist_fromfiles}
\alias{load.model}
\alias{model.table}
\alias{rerun_crm}
\title{Automation of model runs}
\usage{
crm.wrapper(model.list,data,... |
08c381d6f8204c5993d9ce4d336d1e980b77a0f5 | 160f6bc921ab575e0e4e541a36ec37e3aabad277 | /R/panel.2dsmoother.R | 7ec6768f60341a1ac9d509bd3ad2a87576f14e6b | [] | no_license | cran/latticeExtra | e7a575e32d22d36a3e068098b6073e47ea57e8d4 | 6f308186985f6bf43f4376cb54622f73adfeab35 | refs/heads/master | 2022-07-14T15:20:20.166713 | 2022-07-04T15:50:02 | 2022-07-04T15:50:02 | 17,696,992 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 1,568 | r | panel.2dsmoother.R |
panel.2dsmoother <-
function(x, y, z, subscripts = TRUE,
form = z ~ x * y, method = "loess", ...,
args = list(), n = 100)
{
if (length(subscripts) == 0)
return()
## allow 'form' to be passed as the first argument
missing.x <- missing(x)
if (!missing.x && inherits(x... |
e8a25d1a3aa96573a4196625209e67cfa4cc43ab | 3063a9e4333d2adba42c924094117cd53189a2c9 | /man/epidemic_age_dist.Rd | 72eb8dcfe85f57d0a6b9b9aface90c6cf6810f45 | [
"MIT"
] | permissive | sbfnk/epimixr | 33ce12f12ee477207c965c664e18a3469f826904 | f62f81d290b18724579686704d91adeb2de9a0a7 | refs/heads/main | 2023-08-04T09:10:28.505132 | 2023-07-26T14:11:26 | 2023-07-26T14:11:26 | 141,565,063 | 3 | 0 | MIT | 2023-07-26T14:11:27 | 2018-07-19T10:39:51 | R | UTF-8 | R | false | true | 1,251 | rd | epidemic_age_dist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/epidemic_age_dist.r
\name{epidemic_age_dist}
\alias{epidemic_age_dist}
\title{Calculates the age distribution of an epidemic}
\usage{
epidemic_age_dist(
mixing_matrix,
r_0,
immunity = 0,
final_size_start = 0.01,
tol = 1e-05
)
}
\arg... |
b0d0cbeb3fcf1cd8d82ca460466e99cd900b5844 | 393e89dc6404c237e40d0685ebeca2738d3c2331 | /scripts/radius_by_hadley.R | 996d8a15a7975938b34e0401de8cbadd821c3d38 | [
"MIT"
] | permissive | kornellabun/kornellabun.github.io | 40165d6bde2d6e10220649739ed49785260a4b35 | 3856e6f5f89151322646cb1f8bb3c88885fdcc42 | refs/heads/master | 2022-09-13T04:25:57.342011 | 2022-08-27T10:59:57 | 2022-08-27T10:59:57 | 174,212,668 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,113 | r | radius_by_hadley.R | library("ggplot2")
me <- data.frame(Time = c(0, 1, 2, 3, 4, 5, 6, 7),
Forcefull = c(2, 0, 1, 1, 2, 3, 4, 5),
Sneaky = c(3, 0, 1, 1, 2, 3, 4, 5),
Carefull = c(2, 0, 1, 1, 2, 3, 4, 5),
Flashy = c(1, 0, 1, 1, 2, 3, 4, 5),
Clever = c(0, 0... |
26db6a827834ba52238755a739a73b3603f3626f | 2ad30a3a362e0161dbc6f23cb8d5c46d0ec5496d | /docs/coronavirus_.R | 22b5363c9d21dbbad8e495fff773b865a07e065e | [] | no_license | DATAUNIRIO/worldmaps | a97bd2dfe2f463d11878255a93a644724e1621b8 | 349f55a3a0acdf2849f798a34a949dfdee911ca2 | refs/heads/master | 2023-01-29T09:59:53.056458 | 2020-05-04T21:51:58 | 2020-05-04T21:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,194 | r | coronavirus_.R | # 2019-nCov distribution
# web scraped data from the european centre for disease control
# up to date link ---------------------------------------------------------
# https://darwinanddavis.github.io/worldmaps/coronavirus.html
# packages ----------------------------------------------------------------
# install.pack... |
0bbd2baf1ea5fa58cd1a69516cde7d2c7dfe238d | 067dce4f009de9eeae2e07e43296deb70828d884 | /pcgrr/R/kataegis.R | 809d14e7efd7e90e13931e35a626aed97f527ff6 | [
"MIT"
] | permissive | sigven/pcgr | a239ecaae57c10d7431b111fa37bc9c6f66546d8 | 04419dafe1d85df3abe6583eff615e3c57868b1b | refs/heads/master | 2023-08-10T15:05:56.523770 | 2023-05-31T18:44:27 | 2023-05-31T18:44:27 | 85,620,836 | 239 | 55 | MIT | 2023-05-31T18:44:23 | 2017-03-20T20:06:04 | R | UTF-8 | R | false | false | 10,303 | r | kataegis.R | #' Function that detects kataegis events from a data frame
#' with genomic cooordinates of mutations
#'
#' @param data data frame with somatic mutations, as produced by kataegis_input
#' @param sample_id sample identifier
#' @param build genomoe assembly build
#' @param min.mut minimum number of mutations in localized ... |
b74a9d714d6744ad49b1e9344f32cb65ae49fb79 | 87c3c6dc1946c14b947c0437f42c520b6d038dd1 | /FINAL PROJECT.R | 2802465aac99a96724a184d2a2eea91e65c759a9 | [] | no_license | Luc-Ng/BUFN-758 | fb273e24fa125764c79dbe2d1a01d27cdb569e2d | e06dd50af97f3338729b201c2fc357e0eb22956c | refs/heads/master | 2021-07-08T09:11:52.350629 | 2017-10-05T19:23:18 | 2017-10-05T19:23:18 | 105,928,633 | 0 | 0 | null | 2017-10-05T18:59:34 | 2017-10-05T18:59:34 | null | UTF-8 | R | false | false | 1,788 | r | FINAL PROJECT.R | ###########################################################################
# Define the OLS function
# This function estimates the alpha and beta coefficients in univariate
# linear regressions. It also computes the respective standard errors.
#
# INPUTS: - y: vector of dependent variable (Tx1)
# - x: vecto... |
374b7cbeb78aeb52d7f55448274579d1f6a6e654 | 0ed56795aaaf488275bb7c63f32300d8467b4f61 | /app.R | 2fa045dbc5afcc0e6a6d35a02eaf49a26b477ec9 | [] | no_license | Anonytic/Hub | e01529c9b3592efebfe55e3c05d8f39bf15a27d0 | 409c9d8326582cfd0cd3a2a4b2262d0db393d4ef | refs/heads/master | 2022-05-26T03:47:16.448563 | 2020-05-01T18:04:49 | 2020-05-01T18:04:49 | 257,459,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,206 | r | app.R | library(shiny)
library(tools)
library(purrr)
library(openxlsx)
library(zip)
library(shinyalert)
datasetData <- c()
options(shiny.maxRequestSize = 20*1024^2)
displayTemplate <- function(input, output, session, vars)
{
template <- input$templateInputFile
if (!is.null(input$inputFile))
{
... |
e5db83866fcf6644d63d4fc27d7ec2e6a624d42c | 0dc5e7a4c698f67869d27a5139b84eaaffe4e6b7 | /R/time-in-hours.R | 6ba4fee86b3ac5788b3c89c6ec7969e7694124df | [] | no_license | kholsteen/geneRal | 63c73f5079271902035e27110dc2953273ab4c67 | 0b6882a4079f325b0605d01d25d8b890e600a73d | refs/heads/master | 2021-04-28T13:36:57.695078 | 2020-01-15T22:57:11 | 2020-01-15T22:57:11 | 122,109,049 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 297 | r | time-in-hours.R | #' Print elapsed time in hours
#' @export
time_in_hours <- function(toc_object) {
if (length(toc_object$msg) > 0) {
msg <- paste0(toc_object$msg, ":")
} else {
msg <- ""
}
cat(paste(msg,
sprintf("%.2f",(toc_object$toc - toc_object$tic)/3600),
"hours\n"))
}
|
ddce25e77e6a387af9ae61bf92f508104ebdd71c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RandomFields/examples/RMdeclare.Rd.R | feb842b959db968218831f8b9f70c8017cb80301 | [] | 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 | 2,045 | r | RMdeclare.Rd.R | library(RandomFields)
### Name: RMdeclare
### Title: Declaration of dummy variables for statistical inference
### Aliases: RMdeclare RM_DECLARE
### Keywords: spatial models
### ** Examples
## Don't show:
StartExample()
## End(Don't show)
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
## ... |
b2459f51a3246c7198eaf4196849f444561457f9 | 2d36db40dc11fa09e7fdf48a89b487e0f0175fb6 | /cmscu-model.R | 99a8484bb5feab55f555f0849c52176645b244ce | [] | no_license | behaeghe/capstone | 276c808050212a4307ea6a07fe001d652dd9758c | a885b8db62c338a23d1b9575c56476a09aa7ced1 | refs/heads/master | 2021-08-31T08:12:29.573176 | 2017-12-20T18:36:44 | 2017-12-20T18:36:44 | 103,161,066 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,581 | r | cmscu-model.R | require(cmscu)
##Create dictionaries
twitter_1g <- new(FrequencyDictionary,4,2^26)
twitter_2g <- new(FrequencyDictionary,4,2^26)
twitter_3g <- new(FrequencyDictionary,4,2^26)
#twitter_4g <- new(FrequencyDictionary,4,2^26)
# a text cleaning function
clean <- function(line) {
# upper-case everything
str <- tolower(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.