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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f3615f123fe149b8fed8ef4f1ec63a165df5d4e | 34228cca7152d4e9b586d447ad744db7195a6e2f | /plot3.R | 57ac13244c04db83fde045522198932298e24512 | [] | no_license | dborisog/ExData_Plotting1 | 2401f7ea2685487b525ed0fc069164bd0807439d | 30e375441207cd9e0cd2ec3a2e2efee4d6a01f77 | refs/heads/master | 2020-04-05T18:55:51.866294 | 2014-05-11T20:08:27 | 2014-05-11T20:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 747 | r | plot3.R | setwd("C:/Users/user/gitrep/ExData_Plotting1")
source("preprocessedData.R")
##################
# make plot
##################
##### input ######
# NA
##################
##### output #####
# NA
makePlot3 <- function() {
dataSet <- importData()
png(filename = "plot3.png", width = 480, height = 480, units = "p... |
5313c58527a16ffd0626ef2e41beb424dd26662a | b9b74b11bd45b2a81566406576ebd9bfae9dc755 | /R/plots/f_F_plots.R | 0e448d5623996fd97679d4cae4bbd4d72068c027 | [
"MIT"
] | permissive | zejiang-unsw/nowcasting | de79f9fa90fef1affed01ca0830f1d4756854cfc | fd783618d35b0026f81f3fc7e04c6593d03d7ed0 | refs/heads/master | 2022-11-23T03:56:16.834661 | 2020-05-19T16:02:57 | 2020-05-19T16:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,044 | r | f_F_plots.R | ####################################################################
### Load Libraries
####################################################################
library(fields)
library(ncdf4)
library(RNetCDF)
library(xtable)
library(forecast)
library(plot3D)
library(ggplot2)
library(MASS)
library(mvtnorm)
################... |
7314afb225b9d474d851b52087debe7f91a85706 | 3da2b08ad47a140738bbb484a1429b523caa54b6 | /Sim2ClusterPS.R | 73487549419de6606011246728dad139326dbb92 | [] | no_license | knickodem/AggCovsForPS | f83d4156562dcbcb89eea53b67ef5e220a4b1178 | 7e97520b95532fedc6af893e529fdf423672352f | refs/heads/master | 2022-10-16T07:56:44.001412 | 2020-06-08T18:21:54 | 2020-06-08T18:21:54 | 245,267,187 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 23,314 | r | Sim2ClusterPS.R | ##################################################################################
# #
# Simulation 2 - Cluster-Level Treatment Exposure and Subject-Level Outcome #
# ... |
4ef3a25c4270b6d0ef49b9ff79f8b0618a48ad4f | b48ea7f06b12d71fe597adefa5da35e81d08caf8 | /inst/examples/20-api/server.R | 16cc51dee182452bb5852c247e33d130b10b7cab | [
"MIT"
] | permissive | shinyTree/shinyTree | c840dd94af787e15cce6b7c0d4b73b2537123b8a | 110b49970d117d0638746d47b074e955287abed0 | refs/heads/master | 2023-08-30T22:50:33.875203 | 2023-08-07T15:53:07 | 2023-08-07T15:53:07 | 22,565,116 | 75 | 42 | NOASSERTION | 2023-02-08T10:37:30 | 2014-08-03T02:44:13 | JavaScript | UTF-8 | R | false | false | 543 | r | server.R | library(shiny)
library(shinyjs)
library(shinyTree)
#' Define custom JS functions to implement jsTree core functionality
#' @author McClelland Legge \email{McClelland.Legge@@gmail.com}
shinyServer(function(input, output, session) {
observeEvent(input$reset, {
js$resetTree("tree")
})
output$tree <- rend... |
8d19eb8ca5e94c0fed3d7f9f156b663c3a3f2d2f | e8fdbae58c34c896736babebcf93048a0969d619 | /src/R/experiments/bootstrapping.R | b6865bf64c5bed036d1db196b0cc37549d0e8960 | [] | no_license | emilysturdivant/biomass-espanola | cb8c71433bab50f4a9f447005e5654e680e9add1 | 3cc020614b2bdaf53eddaf3f4eef92ac12e03436 | refs/heads/master | 2021-12-23T23:34:29.977417 | 2021-11-25T19:56:37 | 2021-11-25T19:56:37 | 225,423,106 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,605 | r | bootstrapping.R | # Script where I experiment with cross-validation and bootstrapping to measure the regression fit
library(readr)
library(BIOMASS)
library(tidyverse)
require(boot)
require(MASS)
# Load data
g0.agb <- readRDS("results/R_out/plots_g0agb_dfslim.rds")
# Pairs Bootstrap ---- ###############################################... |
ee6080c4155c4f9d624c1548f84b5d453aecb4c0 | bcbef153e26ebb86bd78ffbcacdb2e31046e168f | /man/subset-dendrogram.Rd | 7290479329e91ec938f6b2dd34eff85bad0529d3 | [] | no_license | npcooley/SynExtend | 5f40f841a4cf609c47127850f5c583a6819b6f06 | bd899be4365463884096d74d27411a26b0ac6d7a | refs/heads/master | 2023-08-04T04:31:20.644818 | 2023-07-25T13:21:18 | 2023-07-25T13:21:18 | 240,341,045 | 2 | 0 | null | 2023-07-24T15:38:33 | 2020-02-13T19:14:36 | R | UTF-8 | R | false | false | 1,429 | rd | subset-dendrogram.Rd | \name{subset.dendrogram}
\alias{subset.dendrogram}
\title{
Subsetting dendrogram objects
}
\description{
Subsets dendrogram objects based on leaf labels. Subsetting can either be by leaves to keep, or leaves to remove.
NOTE: This man page is specifically for \code{subset.dendogram}, see \code{?base::subset} for the g... |
d356440f5a68eaf8d2c86070aba1665f8bb54e0c | 8284b1b45303414dc77a233ea644488b91d9f649 | /man/dbListFields-JDBCQueryResult-missing-method.Rd | 99121ca4a8b9ef9e3d8f56b9e2636c8058f79541 | [] | no_license | hoesler/dbj | b243eaa14bd18e493ba06e154f02034296969c47 | c5a4c81624f5212a3e188bd6102ef61d6057af0b | refs/heads/master | 2020-04-06T06:59:06.471743 | 2016-07-14T10:16:04 | 2016-07-14T10:16:04 | 40,183,942 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 597 | rd | dbListFields-JDBCQueryResult-missing-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/JDBCQueryResult.R
\docType{methods}
\name{dbListFields,JDBCQueryResult,missing-method}
\alias{dbListFields,JDBCQueryResult,missing-method}
\title{List fields in specified table.}
\usage{
\S4method{dbListFields}{JDBCQueryResult,missing}(conn, ... |
881a0cffca9335c5bcb95075860dbdf7a31db9de | 33200c34185918b4490a9fb28b0c2ae9c4d47808 | /R/fonctions.R | b6a910ff6f5ea78a11a18492ca1be6f749214322 | [] | no_license | timmimohamed/carteMaroc | 7c4e3ff45f4fdaf2518988fc6a5a2982e2037cf4 | 361de1ca6af45ee8952b8cadfd1868fa3fdfa5a2 | refs/heads/master | 2020-03-28T18:55:50.828041 | 2018-09-22T06:44:42 | 2018-09-22T06:44:42 | 148,927,924 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,809 | r | fonctions.R | #' uploadSHP
#'
#' Cette fonction permet de charger les fichiers shapefile, ou « fichier de formes » est un format de fichier pour les systèmes d'informations géographiques (SIG) pour les régions du Maroc
#' @param sans parametres
#' @examples
#' uploadSHP()
#' @export
uploadSHP <- function() {
print("Char... |
6088ee267e611d865506f6afaf9ac6b0bbf56d61 | da9b15a6d555b3c9540705e69f0c4d7baa39a1b3 | /scripts/alt_run_2_parse_pdfs_ABBYY_outputs/run_6_fix_spelling.R | 704451a4531a09a054a807f540fc27b25d0fba1f | [] | no_license | RohanAlexander/hansard | 0be2c6b43b053a048896d3d8d98fc633dde323fa | 300fac35e8714871dcf0a6225db3e4a1f33754d2 | refs/heads/master | 2022-03-11T00:08:03.183499 | 2019-11-25T10:53:18 | 2019-11-25T10:53:18 | 138,767,582 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,047 | r | run_6_fix_spelling.R | # !diagnostics off
#### Preamble ####
# Purpose: This file takes Australian Hansard CSV files that are all in one column and one row and applies a brutal, replacement-based, custom-dictionary, spell-checker.
# Author: Rohan Alexander
# Email: rohan.alexander@anu.edu.au
# Last updated: 11 October 2018
# Prerequisites: Y... |
c3ef4c400cef880ee18959db4cd6b06126f43318 | f6721eb9594039cc2743b83a0737ffdf6e726970 | /res_tol_ad_manual_setup.R | 242222e651c9a1d18f7e6cf42cfdb5e0dbeeb1cf | [] | no_license | morgankain/Stochastic_Virulence_Evolution | a8ff25a7cce60ad56f74b29ba1072c7cb950c57c | 397dc3358e0296b576769b6f2f08261fd7e86611 | refs/heads/master | 2020-05-30T23:45:30.666215 | 2020-03-16T23:21:34 | 2020-03-16T23:21:34 | 190,020,966 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,900 | r | res_tol_ad_manual_setup.R | #########################################################################
## Setup AD runs with similar parameter values to the stochastic model ##
#########################################################################
nt <- 5e5
num_points <- 1500
rptfreq <- max(nt / num_points, 1)
nrpt ... |
7dba8d5b7c05b4f6c38128f221ac6ab25e6b29f3 | cf91ca9b31f1a5e6601a4d763175536d425ac66f | /misc/FigS2.R | c7fad0f61f5b6b02a6f7cdd20bbbc82d1e8305e9 | [] | no_license | ViolaYing/correlationAnalyzeR | 1c0fbbe43d70654e9058a01acc2b01feb352d6e2 | a405e878c48d84b8691069c05b142e3435ce3b8d | refs/heads/master | 2023-04-08T07:31:44.890040 | 2021-04-02T19:08:54 | 2021-04-02T19:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,102 | r | FigS2.R | library(tidyverse)
library(ggpubr)
library(correlationAnalyzeR)
res <- correlationAnalyzeR::analyzeGenePairs(
genesOfInterest = c("BRCA1", "BRCA2"),
Sample_Type = "all",
runGSEA = FALSE
)
g1 <- res$compared$VST_corrPlot$corrPlot_disease +
labs(title = "All samples")
resNorm <- correlationAnalyzeR::analyzeGeneP... |
3aaf4c0b32723797bdf4cd5c30f0d1c54f28cb7a | d164a5c189a89d1b61f03693d70898e6f359fff4 | /src/53_discriptive_3.R | 79e2e94038dc19ecb90e2e7e7b4fe8bbe827fb75 | [] | no_license | nishinoh/jahead_secondary2019 | fed33966620372b5cf000a4be119de58584be91a | f61e5393b443d840edcb6309d6000ed03aa18254 | refs/heads/master | 2020-07-04T12:19:55.135616 | 2020-04-07T09:59:49 | 2020-04-07T09:59:49 | 202,285,264 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,381 | r | 53_discriptive_3.R | library(tidyverse)
load("~/Data/JAHEAD/Process_Files/data_after_41_data_frame.rda")
load("~/Data/JAHEAD/Process_Files/data_after_14.rda")
theme_set(theme_bw(base_size = 18, base_family = "HiraKakuProN-W3") +
theme(axis.text=element_text(colour="black")))
# 1. 基本的な情報の作成 ================================... |
a0c69aa6b9af22a19e8d1e1c0d25fbd9987c031b | f91c8c94d9c374b5d368802a882e8fd9fd9b5932 | /R_come_from_sxjns/R语言小作业/e1.R | f0d0aabaa0c12d8e41da38bb7e0c94da0d2e36dd | [] | no_license | chenw265/R_picking | 7cd6273d5dc6a1838a4759148a7e3b73f9492af5 | bcadbc0b35de5c86176a4bacc277817583a74a07 | refs/heads/master | 2020-05-23T13:56:07.563751 | 2019-05-15T09:22:17 | 2019-05-15T09:22:17 | 186,789,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 392 | r | e1.R | rm(list = ls())
options(stringsAsFactors = F)
a=read.table('e1.txt')
head(a)
library(org.Hs.eg.db)
ls("package:org.Hs.eg.db")
g2s=toTable(org.Hs.egSYMBOL);head(g2s)
g2e=toTable(org.Hs.egENSEMBL);head(g2e)
head(g2e)
library(stringr)
a$ensembl_id=unlist(lapply(a$V1,function(x){
strsplit(as.character(x),'[.]')[[1]][1]
... |
cbe0b963f9604bd7af4b71ca4523701a232d6871 | b0c5f1ab6c4e098219b4732f9b050b2aa7871f56 | /OptumOncologyEHR/R/OptumOncologyTestFramework.r | e37bf71a4a1a3e11c86ff0b97f97b9786bdfad4f | [] | no_license | chrisknoll/CDMTests | ae89f0ec70c829b33a45205d254430b04775f42e | 758fa82381e8c9a5d791890b806f16241df3f2d7 | refs/heads/master | 2021-04-09T10:20:32.349463 | 2016-06-09T13:43:50 | 2016-06-09T14:04:29 | 60,777,314 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 461,040 | r | OptumOncologyTestFramework.r | frameworkContext <- new.env(parent = emptyenv());
initFramework <- function() {
insertSql <- c()
insertSql <- c(insertSql, "TRUNCATE TABLE provider;")
insertSql <- c(insertSql, "TRUNCATE TABLE care_area;")
insertSql <- c(insertSql, "TRUNCATE TABLE patient;")
insertSql <- c(insertSql, "TRUNCATE TABLE encounter... |
77063e2dfec2a65c4ed7ee1dddd57f971cd91744 | 63083d152778be7c5e30d0ebc3e073d8a645e7eb | /tests/testthat/test-nearest_stations_ogimet.R | 328c15063f8cee7ddcc61e9fe6b6882f685185cf | [] | no_license | cran/climate | 0cf4e64785a87081773626b76e303cb295158b9f | ef0ccd4da3a94488674bd1be34ab1b402086b721 | refs/heads/master | 2022-08-19T10:18:59.929179 | 2022-08-09T15:00:11 | 2022-08-09T15:00:11 | 236,571,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 814 | r | test-nearest_stations_ogimet.R | context("meteo_imgw")
test_that("nearest_stations_ogimet works!", {
x <- nearest_stations_ogimet(country = "United+Kingdom", point = c(10, 50), add_map = FALSE, no_of_stations = 10)
x <- nearest_stations_ogimet(country = "United+Kingdom", point = c(10, 50), add_map = TRUE, no_of_stations = 10)
x <- nearest_s... |
dd067c6f34bee0dae9f0e98edc8b49e5ced44525 | 6e1e34b7a10ceff84608053a4aaea1eed1ca98ea | /inst/app-visualize/ui/ui_bar_plot_1.R | e85375e72cd869e3709143dbeb36c7ca5968fc2d | [] | no_license | cran/xplorerr | c88cfe0f6ab1162fbc1b51aad949407dcd8352a7 | b3f6db79da83568ad1ae89e657f3ccff94de43de | refs/heads/master | 2021-06-08T06:09:44.106519 | 2021-05-21T03:50:02 | 2021-05-21T03:50:02 | 164,905,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,530 | r | ui_bar_plot_1.R | tabPanel('Bar Plot', value = 'tab_bar_plot_1',
fluidPage(
fluidRow(
column(12, align = 'left',
h4('Bar Plot - I')
)
),
hr(),
fluidRow(
column(12,
tabsetPanel(type = 'tabs',
tabPanel('plotly',
fluidRow(
column(2,
selectInput('barly1_select_... |
158a5dae0f4092d6a95a81327486bf0f82c4a741 | 1d5d7db989e58b33420349b25831a1ed842f72d7 | /12_barplots_pvalues.R | dff6c70250c3f2748a52cecfa2e0f83a3f8e5901 | [
"MIT"
] | permissive | piquelab/murine_scRNA | b5aeae17800e1a2abb3f0467fe2fe664cc280c9e | fd293c575e6a261d7d33aa31be9cfab09ac98ec0 | refs/heads/main | 2023-04-17T19:08:03.768414 | 2022-11-18T17:07:33 | 2022-11-18T17:07:33 | 477,785,328 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,469 | r | 12_barplots_pvalues.R | library(Seurat)
library(Matrix)
library(tidyverse)
library(future)
library(harmony)
#######################################################################
#cell count / DEGs comparison between E.coli and control
#######################################################################
outFolder="12_comparison_DEGs_... |
f945b97b4b48d1a686241460f0973cc6c3b0b7ff | eedafd67512fc0146ee0d9d2910764978f541802 | /man/count_map.Rd | d149b927d25bc56ccb06cb5d7c6f4aa2fa592a47 | [
"MIT"
] | permissive | MSKCC-Epi-Bio/bstfun | e1e3925278d3f18ab62501bdc5930b4d2b768dd4 | 532465ec4a7097d8cf2e4aea50f0add44f361320 | refs/heads/main | 2023-06-27T13:02:47.872731 | 2023-06-26T18:04:43 | 2023-06-26T18:04:43 | 237,299,694 | 7 | 3 | NOASSERTION | 2023-06-26T18:04:45 | 2020-01-30T20:30:30 | R | UTF-8 | R | false | true | 539 | rd | count_map.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_map.R
\name{count_map}
\alias{count_map}
\title{Check variable derivations}
\usage{
count_map(data, ...)
}
\arguments{
\item{data}{data frame}
\item{...}{sets of variables to check. variables that are checked together
are included in t... |
5eb4c2520ca1488fd39727e02e01de3252b7b710 | 967fedcd8b7636103273d344e9df41e48a1cc58d | /day16.R | d78a46f828767f5373c300c3f10ee1c7590eae4e | [] | no_license | HHoofs/AoC2020 | 8ee3205e0075c1284d7a36bead0b7520d084a92a | 369591c8604693380b4eb28a85751d0e911d964c | refs/heads/main | 2023-02-11T19:49:46.399255 | 2021-01-07T15:26:36 | 2021-01-07T15:26:36 | 319,048,608 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,222 | r | day16.R | ### Input --------------------------
inp = readLines('inp/day16_inp.txt')
# Determine where the new entries start
cuts = which(inp == '')
# Retrieve entries
rules = inp[1:(cuts[1]-1)]
ticket = inp[(cuts[1]+2):(cuts[2]-1)]
ticket = as.numeric(strsplit(ticket, ",")[[1]])
nearby_tickets = inp[(cuts[2]+2):(length(inp))]
... |
a44d67202abc88176d4870069466a61f3f59b4e6 | a7045f6708f8bd65a54a946a544682325a4ae004 | /R/varRename.R | 1ddffb0ffc81a1a9aa72b314c6fe3f540f4b47b6 | [] | no_license | jjcurtin/lmSupport | a621e2a38211e4aacd4e41597d92df6ac303f97c | 1ba8feed959abd9c01c7041f8457d775cb59bb24 | refs/heads/main | 2023-04-06T01:36:59.490682 | 2021-05-06T02:12:53 | 2021-05-06T02:12:53 | 364,758,953 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 499 | r | varRename.R | varRename <- function(Data, From, To)
#2010-10-11: released, JJC
{
if (length(From) != length(To)) stop("Length of 'From' and 'To' vectors must match")
for (i in 1:length(From) ) {
if(is.element(From[i], names(Data))){
if (!is.element(To[i],names(Data))) names(Data)[names(Data)==From[i]] = ... |
bf6d7f9148f03f6d8ca2eeed9c4729c6c0da1398 | dfa07b04688eb0edf2869b26807c1c00e1d71949 | /cursomultivarinble/primera_practica_R.R | c4de1e246a129089b44e0732ec3a62b97caf29c1 | [] | no_license | gitaprendiendoaprogramar/diferentes_trabajos_R_PY | 0964cecc406c368255032d537543d2539a567723 | a0c89eb3f9164092558b0fec9f84987c0ed2bd6d | refs/heads/master | 2023-01-21T11:23:14.289333 | 2020-12-01T14:26:03 | 2020-12-01T14:26:03 | 317,566,051 | 0 | 0 | null | null | null | null | ISO-8859-2 | R | false | false | 5,908 | r | primera_practica_R.R | iris <- data.frame(iris)
write.csv(iris,"iris.csv")
####################
iris <- iris[,2:6]
dim(iris)
ncol_iris <- dim(iris)[2]
nrow_iris <- dim(iris)[1]
####################
######### BOXPLOTS
par(mfrow=c(1,1))
## hace divisiones del lienzo, por filas y columnas, el primero aon filas y el segundo columnas
boxpl... |
726c6e848254e2ca0ae883feaa185fe3bb50f02e | ac727c693ba0899b59859a399f8dc3b6b3a5e01d | /man/Qaux.beta.Rd | cf4163cfb0b2fb02c547834996ac8a9562554039 | [
"MIT"
] | permissive | htso/Hext | 2fb2d3cb74e88fe032a0d6f82b6a1bb5a7f0a42e | 8f4d99d20019a0bdd4522873ee20d758e2cb8187 | refs/heads/master | 2021-01-17T07:30:58.919595 | 2020-01-30T22:08:20 | 2020-01-30T22:08:20 | 83,738,303 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 437 | rd | Qaux.beta.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auxQ_func.R
\name{Qaux.beta}
\alias{Qaux.beta}
\title{Compute EM Auxiliary Q function for beta distribution}
\usage{
Qaux.beta(theta, x, wt)
}
\arguments{
\item{theta}{the shape parameters of beta distribution}
\item{x}{numeric vector to eva... |
ff61f93638c047129984c46587179c2f84578901 | b58c7bc0a6a611622634e883b17ddf188967695b | /ui.R | ee29f3f1afd9302a60c11f4254937df2d746b8eb | [] | no_license | jjames2/asthmacdc500citiesshinyapp | 4cd5e7322a34c0caafedc8f4a0f696b052b6f2f1 | b7440ba195c566308afc016d0a12ad92070a0637 | refs/heads/master | 2020-04-13T16:37:52.719343 | 2019-02-27T17:48:31 | 2019-02-27T17:48:31 | 163,326,176 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,407 | r | ui.R | library(leaflet)
choices <- c("Current Asthma", "Current Smoking", "Obesity")
levels <- c("City", "Census Tract")
tabPanel("Interactive map",
div(class="outer",
tags$head(
# Include our custom CSS
includeCSS("styles.css")
),
... |
7a231f56ce29b26673950d3cac190a20f6c8e619 | 259421358681edd4ec4f9b8db2051a579a0380cf | /R/ocd_divisions.R | 7f0c0d162901b00da095dc63addc1bc424c7c322 | [
"MIT"
] | permissive | willdebras/googlecivic | df5493528dfe0865fc63ba4b2c0836a969c501b9 | 58bbbef3d5545c2f32dd7f2562a30e5aa5acebab | refs/heads/master | 2021-08-16T14:13:00.459536 | 2021-02-10T20:32:55 | 2021-02-10T20:32:55 | 243,639,743 | 3 | 4 | NOASSERTION | 2020-04-19T18:32:24 | 2020-02-27T23:45:09 | R | UTF-8 | R | false | false | 713 | r | ocd_divisions.R | #' Open Civic Data Division Identifiers
#'
#' A data frame of Open Civic Data division identifiers. The IDs are suitable
#' passing to Google Civic Information API's `representativeInfoByDivision`
#' endpoint. Searching for relevant strings in `name` can help locate relevant
#' IDs.
#'
#' @format A data frame with 193,... |
a7024e2bc8fbc83c948ecb7ffb8b50e88be4d548 | 4124f2d134ae5dd7c907ae1214b709798db22d20 | /program/pizzaNewton_update.R | 1abf2be22131e3b39257568f482aa96dfe9cf641 | [] | no_license | hsssgddtc/pizzaPred | 2bfb55afc6929e74333c6f79071dac6943feae40 | 579bbdf2a76885d9954dd3989497db05a4bb5f9c | refs/heads/master | 2016-09-06T03:47:21.616516 | 2014-06-26T14:54:26 | 2014-06-26T14:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,867 | r | pizzaNewton_update.R | setwd("G:\\Project\\R\\Workspace")
rm(list=ls())
library(matlab)
load_data <- function(){
X_train <<- read.table("data/X.dat",header=F,sep="");
y_train <<- read.table("data/y.dat",header=F,sep="");
}
repmat <- function(X,m,n){
##R equivalent of repmat (matlab)
mx = dim(X)[1]
nx = dim(X)[2]
ma... |
8ea1ac8fc6c6f8ad7912ef23dd7adbde016f7f0b | d0bde1b4c9396b13252c0f1f7fbceb49887ff155 | /R/saveOutReports.R | 2128c8d31dcc948779df52e073f42e672dfcbc4c | [] | no_license | bpb824/orcycler | eec3335cc07bea7f3e2f1620145fcdb6d6fe5f73 | 22f571100905c322a291283e33d404509f97d077 | refs/heads/master | 2021-01-01T05:48:22.208599 | 2015-10-18T21:16:05 | 2015-10-18T21:16:05 | 42,019,202 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,173 | r | saveOutReports.R | #' Save Report Summary to Excel
#'
#' @param crashSummary Crash report summary table
#' @param issueSummary Issue report summary table
#' @param notes Note table from SQL database
#' @param saveFolder Relative or Absolute path to output folder
#'
#' @return None
#' @export
saveReportsToExcel=function(crashSummary,issue... |
7224add7651523fb48a3060a3f9224cf7791c927 | bb8f4d4f7c52259fb58b99a0a956ec3e57e14410 | /Ltac_shiny/app.R | b00e46fa83b098b2b2ff976a24a08970826d9ba8 | [] | no_license | mirjamlaager/Ltac_simulations | ef4d65c75e33e3311cb68d9f3029f1c3a2b9be20 | 6413de6c96eb28ca89e0ce2bc0f22914c78e523f | refs/heads/master | 2021-10-16T15:07:22.950538 | 2019-02-11T19:16:07 | 2019-02-11T19:16:07 | 168,308,713 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,235 | r | app.R | library(shiny)
library(shinythemes)
source("run_simulations_shiny.R")
library(ggplot2)
library(gtable)
ui <- fluidPage(theme = shinytheme("journal"),
title = "Long Time Acute Care Simulations",
titlePanel("Long Time Acute Care Simulations"),
fluidRow(
... |
c512530a5544c54d3c88b02a21b5cd6c84fbd3cb | 8865b563ebd8d1d9d045e04c9686ce46970ab3a1 | /notes/reese_code.R | 2141396aa25d2be22eb43dc1088dbcfc25e9447b | [] | no_license | zachmwhite/research | 6ffa3c877b670199aad547dff5ba410a19322375 | e1efc6be8ebdbc89d44a4b417577aac02245b825 | refs/heads/master | 2020-07-19T06:00:58.806225 | 2018-03-11T01:37:39 | 2018-03-11T01:37:39 | 94,335,281 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,143 | r | reese_code.R | # Basic GP code. Stolen shamelessly form Dr. Reese at BYU. https://madison.byu.edu/bayes/OurGP.R
library(MASS)
####################
nreal<-50
np<-1000
phi10<-0.5
xx<-seq(0,1,length=np)
dd<-dist(xx,upper=T,diag=T)^2
Sig<-exp(-phi10*as.matrix(dd))
gpreal<-mvrnorm(nreal,rep(0,np),Sig)
matplot(t(gpreal),type="l",main=exp... |
977e757b493abf8e4322f4609113f3d8031d0ecf | 302489278ac5ba1ce25c60a23f22043044dc08e0 | /R/calculate_csi.R | 38be693101367a64687b5f36490d205f5a0ef2c9 | [] | no_license | crsky1023/scFunctions | 8bab4a8643dcaab45ed067d64f9ff6ae8a2658f3 | 07c34da4db10d63d8123b21685d8974f98740948 | refs/heads/master | 2023-05-06T16:38:03.623814 | 2021-05-28T14:42:16 | 2021-05-28T14:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,519 | r | calculate_csi.R | #' Calculates CSI values for all regulon pairs
#'
#' @param regulonAUC The AUC values for all regulons as calculated by SCENIC (content of file:3.4_regulonAUC.Rds).
#' @keywords SCENIC, regulons, binary activity, kmeans, thresholds
#' @import SCENIC
#' @import tidyverse
#' @import svMisc
#' @export
#' @examples
#' \don... |
a8d5639adbe04487024cce1b44eb7645a8a14082 | 216b7cbdcd61f0cdfc5a8f74e8a24d68b56c3057 | /R_scripts/which_grid_cell_function.R | 4da5e3193986c82a185c623deb4e80f90a17e04e | [] | no_license | Preetis17/CapstoneProject | 7e0ebb9e02958ea100cc8153e625b4fe27644997 | c026bc5369b77d9d46ffffb2f5f7c629d62ea4ad | refs/heads/master | 2020-03-23T01:08:46.791202 | 2018-12-13T01:26:08 | 2018-12-13T01:26:08 | 140,902,835 | 0 | 2 | null | 2018-12-12T04:50:34 | 2018-07-14T00:07:43 | Jupyter Notebook | UTF-8 | R | false | false | 2,311 | r | which_grid_cell_function.R |
# ... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# ... file : which_grid_cell_function.R
# ...
# ... find closest grid point (cell centroid) to data value location
# ...
# ... ref : https://stackoverflow.com/questions/21977720/
# ... r-finding-closest-neighboring-point-a... |
0323fb28fde07c23a37472c2fee26c0ae6c591fb | fe0ee8318230706a087eb33e98b32e2c7e9e3af1 | /plot4.R | 44e2db97eb4bd813e1f702b91193cecb010aa3da | [] | no_license | maxmoro/ExData_Plotting1 | 181965fd26aeaba71be2770db93e6dbed1783327 | e0906916f1c0feae67d4c9cdbddb9f2ad7eea427 | refs/heads/master | 2021-01-18T03:10:15.945974 | 2014-11-08T16:09:12 | 2014-11-08T16:09:12 | 26,354,655 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,304 | r | plot4.R | #Read full file exdata-data-household_power_consumption.zip saved in the workdir
file=unz("exdata-data-household_power_consumption.zip","household_power_consumption.txt")
DTOri=read.csv(file,sep=";",na.string="?")
#subset file and create full_date
DT=subset(DTOri,Date %in% c("1/2/2007","2/2/2007"))
DT$Full_Date=strptim... |
0f00d21b65fc7414b65fe4326b9ae2af4870f573 | 5bd4b82811be11bcf9dd855e871ce8a77af7442f | /kinship/inst/tests/test/chtest.R | 0cbe5c76484dd29d9a8b5491050cc5dd07f6f924 | [] | no_license | jinghuazhao/R | a1de5df9edd46e53b9dc90090dec0bd06ee10c52 | 8269532031fd57097674a9539493d418a342907c | refs/heads/master | 2023-08-27T07:14:59.397913 | 2023-08-21T16:35:51 | 2023-08-21T16:35:51 | 61,349,892 | 10 | 8 | null | 2022-11-24T11:25:51 | 2016-06-17T06:11:36 | R | UTF-8 | R | false | false | 1,097 | r | chtest.R | #
# Test out the Cholesky
#
aeq <- function(x,y) all.equal(as.vector(x), as.vector(y))
tmat <- bdsmatrix(c(3,2,2,4),
c(22,1,2,21,3,20,19,4,18,17,5,16,15,6,7, 8,14,9,10,13,11,12),
matrix(c(1,0,1,1,0,0,1,1,0,1,0,10,0,
0,1,1,0,1,1,0,1,1,0,1,0,10), ncol=2))
dimnames(tmat) <- list(NUL... |
22f3ab5f437e7f5435a0cbef57d262a29cb2d0d9 | 8fda7334773928c884f4813efbbde9921ef13b53 | /poissonModel4.R | fb956662fad48dacf0cbd82b7ad2b43b4ca03ef6 | [] | no_license | jazose/flows | 606afb322e1312f69420f1f568e5d684b3657584 | 4feb02feabb0cb44385252acbb58776602e301ac | refs/heads/master | 2021-01-19T00:46:14.399732 | 2013-09-04T22:23:43 | 2013-09-04T22:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,105 | r | poissonModel4.R | #Run a simulated Poisson hierarchical model.
#Model 4 takes log(lambda) to be a linear combination of log(previous flow + 1), log(pop. at origin), and log(pop. at destination)
library(rjags);library(coda);
###############
#Read in data.#
###############
setup=function(){
if(file.exists("C:/Users/jonazose")){
... |
b938fbce4e1808cdb6c88a2004b0cfe885eec6be | acf095499a8283654b2cacf546124b04febb350e | /classify/man/gpcm.bug.Rd | 6327830c038963d7cb36e7d1653d95ebf5eb1433 | [] | no_license | cbwheadon/classify | 6831fbd214cb69127b219d58385d7bb6e2701fa4 | 72c4c1b0e744e6b15353135e9c5315f30156b6d0 | refs/heads/master | 2016-09-08T05:09:13.811832 | 2014-08-17T09:42:38 | 2014-08-17T09:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 769 | rd | gpcm.bug.Rd | \name{gpcm.bug}
\alias{gpcm.bug}
\title{
Extract IRT Model Parameters from Bugs Models
}
\description{
Internal function which draws heavily on Curtis, S.M.(2010).
}
\usage{
gpcm.bug(v, cats, mdl, gibbs=c("bugs","jags"))
}
\arguments{
\item{v}{Bugs sims matrix}
\item{cats}{Numeric vector of item categories}
\item... |
e6c4b20a16d204b489b4d216bf9c1905cff560d1 | 6dbb5242837e7210e9e1abb8497706e29c252098 | /plot2.R | 148d4bbb0a22a5be82603e9ac374a60c0dfe002a | [] | no_license | jasminchia/ExData_Plotting1 | 54feb064c54d2bdea395ed6ebf84eef04bb105fe | 4443cdc52a7846759bf916a435d3cf80d4054e2e | refs/heads/master | 2021-01-16T22:28:31.566652 | 2014-11-09T16:52:35 | 2014-11-09T16:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 813 | r | plot2.R | #read all data from file
full_data <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.string="?", nrows=2075259,
check.names=F, stringsAsFactors=F, comment.char="")
#reformat the date into standard format
full_data$Date <- as.Date(full_data$Date, format="%d/%m/%Y")
#subset d... |
6f033bf57cb958c74135c58e23f2d5c1754f441f | bd5f1f295766b7a22a51273650855c592a1a037e | /R/deprecated/compare_miseq_clones.R | a4c3355517a670ace376076296b4935b618cc197 | [] | no_license | tebbej/ArGa_MHC_DQB_R | bbdc1598f1dfeadf1c3c1b2a8653e41b3f5ea983 | 191feb360e4364edeb224743dc217c9ea77c3726 | refs/heads/main | 2023-04-11T10:32:17.169374 | 2022-10-06T12:55:10 | 2022-10-06T12:55:10 | 474,030,764 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,305 | r | compare_miseq_clones.R | ## NGS AND CLONING DATA COMPARISON (HEATMAP?) ##
miseq_data <- readDNAStringSet("data/ArGa-DQB-NGS_Artemis_20210301.fas")
miseq_data <- miseq_data[-length(miseq_data)]
miseq_info <- read.table(file = "data/ngs/Acacia_data_artemis.txt", header = T)[1:21,]
clone_genotypes <- readDNAStringSet("data/ArGa-DQB_clone-alleles_... |
225877e2ddaa0f868f9de9af0bcf9277b7241ad6 | dc3642ea21337063e725441e3a6a719aa9906484 | /DevInit/R/experiments/logins.R | 0485d7eed8af09916f546a35e7417507151905f8 | [] | 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 | 103 | r | logins.R | wd <- "C:/Users/alexm/Documents"
setwd(wd)
#Read
dat <- read.csv("logins.txt",header=FALSE,as.is=TRUE) |
32d14e89856d957d02b2e8ffe6be0110914c4da0 | 7c6deaad20a9507e809a70c694975bb31da5d5f0 | /Breast_cancer.R | 6c579ab5ac75b22923ce559b747ea24d3f55e090 | [] | no_license | Zeev17/Median-knn_imputation | 771ae10fbb6b6afccb7732512acbef9ece58c86e | 0a3e55838682946095774a97a022a898819498db | refs/heads/master | 2020-03-29T22:03:39.977914 | 2018-09-26T09:24:39 | 2018-09-26T09:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,117 | r | Breast_cancer.R | #setwd("C:/Users/Install/Desktop/CASE_R_september")
load("BreastCancer.RData")
#This dataset is interesting because many of the predictors contain missing values
#and most rows of the dataset have at least one missing value
library(caret)
library(RANN)
myControl<- trainControl(method = "cv", number = 1... |
348600ea63ed50a2d3b41793fcd8f0fa1ac6d612 | d1452f430d7f5b28380ca6d5a68bf2d3b51e7443 | /hhold_cons.R | 11967fb073dcea7e080379d9e7d867a2b2b73203 | [] | no_license | julianflowers/ex-data | c8a6909e911d9e174bf88e7c636739ae39e2d630 | f20c7b124113c4b950eff06cdbf426f26ab34b72 | refs/heads/master | 2021-01-20T13:49:02.756602 | 2015-09-20T07:54:58 | 2015-09-20T07:54:58 | 42,403,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 814 | r | hhold_cons.R | library(lubridate)
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, destfile = "hh.zip")
unzip("hh.zip")
hh <- read.csv("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) ## turns out that file is ; separated
hh$datet... |
b651342a0ad348df57d178e11a915a19063977bc | 9594d219126402ec4f5a58d32c8a57c82cab1e25 | /man/BandLevelFlatSpectrum.Rd | 0624e39eb14a9e7fbbc9901b04b4433c39d6a624 | [] | no_license | ctdClub/sonar | 037ade64e0c4efab690a1bc3c0ec1bd598be25b0 | c054c140714acb507a7e9d9d481149c9b3c38143 | refs/heads/master | 2022-02-01T17:43:37.739473 | 2016-09-15T15:46:37 | 2016-09-15T15:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 592 | rd | BandLevelFlatSpectrum.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/sonar.R
\name{BandLevelFlatSpectrum}
\alias{BandLevelFlatSpectrum}
\title{band level (BL) for flat spectrum}
\usage{
BandLevelFlatSpectrum(SpL, deltaf)
}
\arguments{
\item{SpL}{spectrum level}
\item{deltaf}{band frequency}
}
\value{
... |
4d8ffae32749941f0006a2abbec7808aacd7950e | 5434a6fc0d011064b575b321e93a3519db5e786a | /man/checkRunningRemote.Rd | c8e7c91c694ae889c640b74ac501d3ef5a5644e6 | [
"MIT"
] | permissive | cytoscape/RCy3 | 4813de06aacbaa9a3f0269c0ab8824a6e276bad9 | 18d5fac035e1f0701e870150c55231c75309bdb7 | refs/heads/devel | 2023-09-01T18:23:28.246389 | 2023-08-23T07:57:19 | 2023-08-23T07:57:19 | 118,533,442 | 47 | 22 | MIT | 2023-04-03T17:52:34 | 2018-01-23T00:21:43 | R | UTF-8 | R | false | true | 769 | rd | checkRunningRemote.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RCy3-notebook.R
\name{checkRunningRemote}
\alias{checkRunningRemote}
\title{checkRunningRemote}
\usage{
checkRunningRemote()
}
\value{
None
}
\description{
Determine whether we're running locally or on a remote server. If locally (either via ... |
9a0a5ddfbf955edf0a9948079de4c4bc17c3988c | 10c62818f4b83b7338e29799869aa3dc051fd6b4 | /src/svm/dual_svm.R | 2daa23c46adbb59ac17d273a9357330967d0cfc5 | [
"Apache-2.0"
] | permissive | chianwei/MachineLearning-memo | e27426d3121dfe3f81e80928af301fa5071e76cd | 29284ca24041969eeb59851a43ab6c28c685fae5 | refs/heads/master | 2020-03-16T19:27:01.105127 | 2017-01-18T07:50:09 | 2017-01-18T07:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,029 | r | dual_svm.R | #############
# dual SVM
n <- 5
Y <- c(-1,-1,-1,1,1)
data <- matrix(c(-2, 1, 0, 0, 2, 2, 2, 0, 3, 0),2,n)
#Dmat <- Y %o% Y * t(data) %*% data
m <- matrix(0, n, n)
for(i in 1:n){
for(j in 1:n){
m[i,j] <- Y[i]*Y[j]*t(data[, i]) %*% data[, j]
}
}
Dmat <- m
dvec <- rep(-1, n)
bvec <- ... |
ebc4504d1e1e95ee080b623fc4364ad9ed7722b3 | f26fd7932132c77d1f0ced4339f5eac3c974ebae | /R/plot-cpue.R | f69946e1973c331c29fb70e602d3196c8a15202a | [] | no_license | szuwalski/gmr | 687f86e8e125b5dca96b6ff677eedf3212b24cc4 | 92abdaffccbd6d39ea7466529af9e6ea79b891c4 | refs/heads/main | 2023-01-09T13:07:24.481235 | 2020-11-05T20:00:14 | 2020-11-05T20:00:14 | 306,703,007 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,346 | r | plot-cpue.R | #' Get cpue or other indices
#'
#' @param M List object created by read_admb function
#' @return dataframe of observed and predicted indices and residuals
#' @author SJD Martell, D'Arcy N. Webber
#' @export
#'
.get_cpue_df <- function(M)
{
n <- length(M)
mdf <- NULL
for (i in 1:n)
{
A ... |
a773b21d214c22c1f7c454c8cd308479c07cf3bd | 3ae7ca784edd942e246357a7a8a55c07dbfe3f38 | /src/clean.R | 3dcd00f21e0e280d3c0adc052d749621fdafde48 | [
"MIT"
] | permissive | HFAnalyticsLab/HES_pipeline | a4acbdf6dce34ba7cf18af74ae627828509791e8 | cab20a88e584d42a0c3c3d89898bfef89e102344 | refs/heads/master | 2023-04-16T10:20:56.933701 | 2023-03-22T09:48:09 | 2023-03-22T09:48:09 | 206,582,339 | 31 | 6 | MIT | 2021-01-25T09:51:19 | 2019-09-05T14:21:15 | R | UTF-8 | R | false | false | 7,280 | r | clean.R |
# If a column is present in dataframe apply provided function.
# Warnings generated by 'one_of' when col not found are supressed.
# Requires a dataframe, a column name as a string and a function to
# recursively apply to the column if present.
# Returns dataframe with modifed column.
mutate_if_present <- function(data... |
824eb3f66e1e371dc0960b997ba2cc243687a946 | 8dc93e785685daea5eee3bc467b5ccadc0b7db69 | /mkt_share_est.R | 84e7c0bd2648ef3d54e43bd71ddfdb6a24434dfe | [] | no_license | probmetrics/BLP_R_demo | 1ae7edd58f27fac16d74771aa905ce9c914f4a23 | ebea55986f633145bcd7548310c19137d63bf7c4 | refs/heads/master | 2020-06-01T02:46:11.857110 | 2019-06-06T15:26:24 | 2019-06-06T15:26:24 | 190,603,119 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,848 | r | mkt_share_est.R | ##
## Functions for estimating market share in BLP model
##
## Shu Xu, <May, 2019>
##
share_per_mkt <- function(delta, alpha, sigma, p, X, y, vshk) {
#
# ** Estimating market share in a single market **
#
# Inputs:
# delta, -- J vector
# X, -- J x K matrix
# y, -- S... |
420d61cf313570a39a95209f276dc23d986e9c92 | d62d96ab238bbd3fde1554b9b3a933333a8ff068 | /script.R | 6138f9f468a224eba3ae2dbd8e903b150f10902d | [] | no_license | rfael0cm/AchimTalk | 9748855e4a57dcd14a6b1bf67ce9f62716c5d052 | 5eec71c955784901f531f83ac14c9423297245ca | refs/heads/master | 2020-03-15T13:56:25.840120 | 2018-05-04T19:06:17 | 2018-05-04T19:06:17 | 132,178,823 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,221 | r | script.R | ## requires: gplots, MASS, Gviz
## work with vignette es
### Course in bdHMM
## 1. load a bdHMM object and see its characteristics
## 2. Generate 10^4 time points from the model
## 3. Fit a standar HMM model to the generated Data
## 4. See some characteristics
## 5. Fit a bdHMM
## 6. Compare it with the HMM and bdHMM
... |
5bc2519aa9ef2cd799cce6da18bfeda20270103a | 035229c811d57d91a11e3d43bc4b71dc58222f3b | /analysis/revision/tcell_klk3_exp.R | 73be02070e64f82b22507218214970fb5713983c | [] | no_license | Limour-dev/scRNA | d40580541e7ceef1a4ff875628a1a619e2912db7 | 834ec5c0c4323b521c96ca86db973b170831f2da | refs/heads/master | 2023-06-15T13:40:41.843619 | 2021-07-17T14:44:22 | 2021-07-17T14:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,678 | r | tcell_klk3_exp.R | library(BoutrosLab.plotting.general);
library(Seurat);
library(reshape);
library(plyr);
setwd('/cluster/projects/hansengroup/sujunc/scRNA/primary/scran/revision/tcell');
seurat.all <- readRDS('/cluster/projects/hansengroup/sujunc/scRNA/primary/scran/normalize_data/objects/2019-07-25_seurat_manual_all.rds');
name <- 'al... |
e5c34f14716186523bc2effda07f395659f1eda5 | 7afbb148ec11b3105aaead6bdd900f847e49eb18 | /tests/testthat/test-hyperbolic.R | 86c0dbb9a0ca2f72efe6bbe8ca438f35a2e1b3d2 | [
"MIT"
] | permissive | tidymodels/recipes | 88135cc131b4ff538a670d956cf6622fa8440639 | eb12d1818397ad8780fdfd13ea14d0839fbb44bd | refs/heads/main | 2023-08-15T18:12:46.038289 | 2023-08-11T12:32:05 | 2023-08-11T12:32:05 | 76,614,863 | 383 | 123 | NOASSERTION | 2023-08-26T13:43:51 | 2016-12-16T02:40:24 | R | UTF-8 | R | false | false | 3,055 | r | test-hyperbolic.R | library(testthat)
library(recipes)
n <- 20
set.seed(1)
ex_dat <- data.frame(
x1 = runif(n, min = -1, max = 1),
x2 = runif(n, min = -1, max = 1)
)
set.seed(2)
ex_dat1 <- data.frame(
x1 = runif(n, min = 1, max = 5),
x2 = runif(n, min = 1, max = 5)
)
get_exp <- function(x, f) {
as_tibble(lapply(x, f))
}
tes... |
f551506676629711ac1e0057678e73fa10cb60e7 | 0711ce0882fcbeb16113f4bdda073372c94ea4f6 | /projects/Alpha101/R/alpha101_12.R | 2a29a1db6d348197458c00eb62188b08707f1316 | [] | no_license | maxclchen/myStrat.bk | 4bc960a04d40fdecbfa7cb0b34c5901a47810c8e | 78a8fe055c40d4b9e462ebcb2f8bc7caadfc6d3a | refs/heads/master | 2023-03-16T01:53:54.995233 | 2017-10-17T07:53:02 | 2017-10-17T07:53:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,682 | r | alpha101_12.R | # ==============================================================================
# Ref: "Alpha 101"
# Alpha#12:
# sign[ delta(volume,1) ] * {-1 * [ delta(close,1) ]}
# |------ 1 ----| |------ 1 ----|
# |--------- 2 ---------| |---------- 2 ---------|
# 算法
# 1.分别计算 Volume 和 close 的价差
# 2.
#
# 含义
#... |
155c4183b8e4b3b47fac14b463e98189f762bd97 | 7ace7c36aed23ab7f8b42e890d76fab81fb4787f | /shiny-app/ui.R | 06ac010d4d526d3ef519175a60715875819fdc35 | [
"MIT"
] | permissive | kngan/us-baby-names | 5f284485b29e9287f3de29938f47f8433883ed3e | 7ae55b51d933992d18678da50d75276ff0b431a4 | refs/heads/master | 2021-01-10T08:32:46.436233 | 2016-02-01T02:17:14 | 2016-02-01T02:17:14 | 50,361,628 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 510 | r | ui.R | library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Prevalence of Baby Names"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
sliderInput("picked_year",
"Year:",
... |
10ad40fa702fc0b53a68901eb8b82f91b39cfe31 | 92e40da6cc8f28c6af06b13c633b5eb43784ec26 | /amto/matrix/htmlpdfr/fs_mat_generate.R | 4ad76faba0ad698e1f3f7e32a37917c67c92de10 | [
"MIT"
] | permissive | JesusRQP96/R4Econ | 4845e4aa94d833cc829a4507606e418d4c873fa9 | 7275585a7fb3436af9b0fd6727f847c9ca39da42 | refs/heads/master | 2023-05-22T15:02:04.090757 | 2021-06-14T01:49:15 | 2021-06-14T01:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,050 | r | fs_mat_generate.R | ## ----global_options, include = FALSE----------------------------------------------------------------------------------
try(source("../../.Rprofile"))
## ----fixed matrix-----------------------------------------------------------------------------------------------------
ar_row_one <- c(-1,+1)
ar_row_two <- c(-3,-2)... |
df90d083301aa18fd7f9ebe1251d7894d86e489f | 3686f5b321e9e0c550ae56c3a005b6d81a30d34c | /R/vis.R | 159acc6bcb94ea2e4b075964e30260f416ef24f0 | [
"MIT"
] | permissive | jenslaufer/artventure-site | fd9848f5c035f5a092b01470230c9a2228c3c133 | 20f2eb80d7b08d172ce70ea295c68a44784f629c | refs/heads/master | 2023-03-28T14:09:44.716264 | 2021-03-23T13:14:36 | 2021-03-23T13:14:36 | 339,119,905 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,324 | r | vis.R | library(tidyverse)
library(glue)
library(bbplot)
library(ggthemes)
library(aws.s3)
library(knitr)
library(scales)
library(gridExtra)
library(emojifont)
valueBoxes <- function(data) {
data %>%
ggplot(aes(x,
y,
height = h,
width = w)) +
bbc_style() +
geom_tile(... |
8f0395c29af5bd20ed85923ef68f2840ecd1865e | 7bbc2f83e7ca8aca63d0610a876780649b3fce95 | /Assignment 1.R | 5fa178834e0fbf4fd483b49392a28be12ab55a47 | [] | no_license | jeunbeen/Introduction-to-Statistics | 0c514546e8c81a5bde628d1e635c7faef60b3db6 | 8d1411a3cd78b3d0ab30eaac80c135bc4e9b74a3 | refs/heads/main | 2023-07-15T02:08:34.389880 | 2021-08-29T17:52:11 | 2021-08-29T17:52:11 | 401,099,501 | 0 | 0 | null | 2021-08-29T17:37:23 | 2021-08-29T17:17:36 | null | UTF-8 | R | false | false | 110 | r | Assignment 1.R | a=c(1:150)
b=c(11:160)
c=a+b
a+b
a*b
a/b
a-b
stem(c)
hist(c)
boxplot(c)
?stem
?hist
?boxplot |
9a171f91b67d54e584b4c88b907540783996ac5e | 03c99906a94c70e9a13e7714aad996f461f339c1 | /R/FPdivparam.R | 7d355a8973a117580cabac4bfda2b2f8686e3aa6 | [] | no_license | cran/adiv | 6a111f6a1ef39fe302a2f882b9a9d04e7d652c04 | d65d6e0301e4611a94a91933299bff1fdc06d96b | refs/heads/master | 2022-10-28T08:07:33.352817 | 2022-10-06T12:40:04 | 2022-10-06T12:40:04 | 97,764,074 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,439 | r | FPdivparam.R | FPdivparam <- function (comm, disORtree, method = c("KY", "KstarI"), palpha = 2, equivalent = FALSE, option = c("asymmetric", "symmetric"), dmax = NULL, tol = 1e-8)
{
option <- option[1]
method <- method[1]
if (!method %in% c("KY", "KstarI"))
stop("unconvenient method")
if (!inherits(c... |
094d7fcfdc1ee25443f4492328e55e8f3acbca30 | fa6bf9f5bee1627b6158a5e693c8c15969c019ee | /Simulation & Risk/HW 2/Ellie_SR_HW2.R | d1b52ff469d9ae6157ab406d23e3689bbaff8c7d | [] | no_license | gclark422/spring1-orange5 | 59eb61880226000b9f9a6244a1e653319f0d3e3a | 13586f04939ac66f5edf0db4cf34e66be2a81634 | refs/heads/master | 2020-12-06T23:02:53.183034 | 2020-02-22T03:27:17 | 2020-02-22T03:27:17 | 232,574,947 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,916 | r | Ellie_SR_HW2.R | ###############################
# #
# Simulation and Risk: #
# Homework 2 #
# #
# Ellie Caldwell #
# #
###############################
#Objective: Simulate 1) cost of a single dry well 2)NPV of sing... |
3d813b00cabc592f067ec0eb555fd5d022e14a97 | 7a173aaf44b4c01ba9c9dd907862a5fe65e079b3 | /R/txt.to.words.R | 79cf9e01fe6f5dccf1bd8b35864928d71befe734 | [] | no_license | Quares/stylo | 221904d14aa516f97b4fe6402d394fc568c084fa | eb42d0de8a3f5cbbcac70c10a33ede40fee8f670 | refs/heads/master | 2020-04-05T23:23:57.101344 | 2015-08-23T16:17:59 | 2015-08-23T16:17:59 | 41,256,678 | 0 | 0 | null | 2015-08-23T16:18:00 | 2015-08-23T16:10:34 | R | UTF-8 | R | false | false | 2,556 | r | txt.to.words.R |
# #################################################
# The generic function for splitting a given input text into
# single words (chains of characters delimited with
# spaces or punctuation marks). Alternatively,
# you can replace it with another rule.
# Required argument: name of the text (string) to be split.
# ATTE... |
a8cdc4efdd0eb7fa7f3c9b021225c3c8e773df6c | edd10cb0ebe95cee716b04778d454ff64039ebe3 | /Older Scripts /gradient.R | e28ee86d1904ae0ba0f7baf3a8c0792e75731eaa | [] | no_license | sidAvad/ZIBB-model | 7c9d009b50b7b0265c643bcfcb775619cd13ce5c | f244260d34326940778530d7432ac1d8cfdc7cc7 | refs/heads/master | 2023-02-07T15:18:44.266459 | 2016-08-30T01:01:59 | 2016-08-30T01:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,091 | r | gradient.R | ds$grad.log.density <- function(theta,y){
## Evaluates the gradient of the likelihood function of ZIBB
## given theta and the data (y)
y <-r
lastcol <- ncol(y)
y1 <- y[,lastcol]
X <- y[,1:ncol(y)-1]
ones <- rep(1,nrow(y))
X <- cbind(one... |
10d263818c6348b283da45721496bd4e165e2c21 | bbd9ca286fd2289c9576aaea736b5519dab035f4 | /Tester3.R | 0819c96af394ab36ac34452e9dfdd00e311caafa | [] | no_license | KevLeeKL/Tester3-import-local-pj | 791c94803f91959e6dbd7cd2f5bdce8e754905ef | d0d3a716bf19507dd553b6af12a6cb02f93567fe | refs/heads/master | 2022-08-05T19:13:42.393428 | 2020-05-25T19:16:21 | 2020-05-25T19:16:21 | 266,860,539 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 237 | r | Tester3.R | mean(mtcars$mpg)
library(help='base')
head(iris)
summary(iris$Species)
install.packages('devtools')
library(devtools)
help(package = 'ggplot2')
help(package = 'devtools')
sessionInfo()
install.packages('KernSmooth')
library(KernSmooth)
|
e33f688d6393fa10ad4ad5c60396151408d44759 | 696e530b91e3c64a7ffae95f227b31b16c43e9a2 | /R/copykat_no_heatmap.R | 13ef57f9cea8bcb8002a1d3078749c5e7557b477 | [
"MIT"
] | permissive | abelson-lab/scATOMIC | c56520ce594000737ddb242d473a81129c5c8110 | bc7adc8486d70b980af149283e85c84e5f7c9abd | refs/heads/main | 2023-08-03T08:10:04.592709 | 2023-07-19T13:18:50 | 2023-07-19T13:18:50 | 418,635,282 | 31 | 3 | null | null | null | null | UTF-8 | R | false | false | 13,410 | r | copykat_no_heatmap.R | #' copy_kat_no_heatmap
#'
#' @param rawmat matrix of counts
#' @param id.type set S if gene names
#' @param cell.line set to no for tissues
#' @param ngene.chr minimum nchrm, for my tool i use 0 as i want every cell included
#' @param LOW.DR minimal population fractions of genes for smoothing.
#' @param UP.DR minimal p... |
f41573b7731bce5e3292d4d23c0e5760e86f7e7f | e89658aa8eae0c384c0b9ae0c47045cdad5d7341 | /grizz def reb rate.R | 350086dc8ed601c3aaa9c026f3dc048e593986bd | [] | no_license | ramirobentes/NBA-in-R | 0d036a4cfe49c5ccf5eadec6c642b3c295321351 | 3aa845788ac447f4ccf8127e595adebf5e6ad4e1 | refs/heads/master | 2023-08-30T13:48:25.595147 | 2023-08-17T18:26:29 | 2023-08-17T18:26:29 | 230,468,326 | 31 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,060 | r | grizz def reb rate.R | library(tidyverse)
library(nbastatR)
final_poss_pack <- read_csv("https://github.com/ramirobentes/NBA-in-R/releases/download/final-poss-pack-42862e5/data.csv",
col_types = c(timeQuarter = "c",
start_poss = "c")) %>%
mutate(across(starts_with... |
0ab35ddfa07e1cdb51cd70283523f416124d6ad0 | 64257a0e57cf928b0ae7676a108a3688001181bd | /R/data.R | bb7971de8b45e2cabdb2a9552db7a7c532270ce4 | [
"BSD-3-Clause"
] | permissive | marcpaterno/artsupport | 9842a678c8070468dd93a258810b84067fe22f32 | 803310561741c4aa54bdd44e393da9ae8551bfa0 | refs/heads/master | 2020-06-30T06:49:04.780687 | 2020-04-20T23:14:48 | 2020-04-20T23:14:48 | 74,387,093 | 0 | 1 | NOASSERTION | 2019-02-07T07:11:33 | 2016-11-21T17:15:33 | R | UTF-8 | R | false | false | 1,309 | r | data.R | #' art event timing data for 240 events.
#'
#' Several datasets containing the data recorded by the *art* framework's Timing service.
#'
#' The event-by-event timing data written into the `TimeEvent` table, which contains one record per event.
#' @format A tibble with 240 observatoins of 5 variables:
#' \describe{
#' ... |
3e4d29718e940554cd27816c40e056a7f6a4934c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/colorpatch/examples/DistColorFun.Rd.R | 5075a3db7d6a822773bc199072eba4f9550de615 | [] | 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 | 264 | r | DistColorFun.Rd.R | library(colorpatch)
### Name: DistColorFun
### Title: Creates a color distance function
### Aliases: DistColorFun
### ** Examples
library(colorspace)
library(colorpatch)
fn <- DistColorFun("LUV")
a <- sRGB(1,0,0)
b <- sRGB(0.8,0.1,0)
my.distance <- fn(a,b)
|
5b06821d5b3578f4b4296defe623614bcb460bec | fc36112ec2687ee3a56086fc121a8e8101c5d62c | /man/validate_table_quote_character.Rd | ae658c27fd65e31dfce0c497f74ff269fc1ed7bf | [
"MIT"
] | permissive | EDIorg/EMLassemblyline | ade696d59147699ffd6c151770943a697056e7c2 | 994f7efdcaacd641bbf626f70f0d7a52477c12ed | refs/heads/main | 2023-05-24T01:52:01.251503 | 2022-11-01T01:20:31 | 2022-11-01T01:20:31 | 84,467,795 | 36 | 17 | MIT | 2023-01-10T01:20:56 | 2017-03-09T17:04:28 | R | UTF-8 | R | false | true | 528 | rd | validate_table_quote_character.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate_arguments.R
\name{validate_table_quote_character}
\alias{validate_table_quote_character}
\title{Validate data table quote characters}
\usage{
validate_table_quote_character(fun.args)
}
\arguments{
\item{fun.args}{(named list) Functio... |
5ab619cdad7b676531f913346b8b9c4b43ccc7bb | 26c2b1e98c34d865b51202188551239de8f1b500 | /man/l.small.Rd | 71701897de3be86836a562b3e3a407ecfcc53930 | [] | no_license | cran/LogicOpt | a88799844bd3b3c60e73dad2dae2e9acd0381beb | cad5a27882670bf7c4c3680a0e0e3550359ad33a | refs/heads/master | 2020-12-22T00:57:09.661699 | 2016-05-07T01:27:50 | 2016-05-07T01:27:50 | 236,621,369 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 555 | rd | l.small.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/l.small-data.R
\docType{data}
\name{l.small}
\alias{l.small}
\title{Espresso truth table with 4 inputs and 3 outputs}
\format{R data frame table}
\usage{
data(l.small)
}
\description{
Espresso compatible truth table generated
from espresso f... |
1f327402f03d4c659433c5c84f0b38693edece7b | a4c6dcffc21de8138403a3d0348bf4efe8736f1e | /MyFirstShinyApplication/server.R | 05b49b13b34a673c3035990fa4f3e940406dddf2 | [] | no_license | ricardorac/ddp_final | c576258b9b015bb7fd7109e6fe428766cb9082ba | 9fbc5984b2b49b12b6e43d3c4880408ee5a89708 | refs/heads/master | 2022-09-20T05:32:38.773047 | 2020-06-05T12:29:09 | 2020-06-05T12:29:09 | 265,584,403 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,779 | r | server.R | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(lgrdata)
library(ggplot2)
library(RColorBrewer)
library(caret)
data(anthropometry... |
62a8e5b0ac0a92c89b121cc2df577a0a21a206e1 | 7538c1f30b9c46d3901cae4c47e20f9a6e57f80e | /L01B2.isimip_nobias_global_processing.R | 70a402ecb720201d3f8138b7c78a55a82b19248c | [] | no_license | JGCRI/frontEnd_grandExp | 2e804320fc98d1f39a4389abf035652ff08cbbb8 | bc09667e9aff9f7fe6aa6d12d145b3b4523f6b81 | refs/heads/master | 2020-03-28T21:32:13.983743 | 2018-10-12T17:05:44 | 2018-10-12T17:05:44 | 149,162,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,548 | r | L01B2.isimip_nobias_global_processing.R |
# Purpose: Because the bias corrected ISIMIP netcdfs only includes values over land and fldgen
# requires a global mean average this script processes the no bias corrected monthly
# output to a annual global average.
# Users should check that all the directories defined in section 0 exists and should check
# out ... |
cab9d981d771361f602857a1d10e3ba6908e185e | c4547314bb5e40b6386968ef995b1a4149c1de8c | /R/colorSpec.read.R | f8ad8dd268af678575681fb8eec590f1441a6d8e | [] | no_license | cran/colorSpec | a23ea51692949e43fce61e7ead9ba10b39668c58 | 7b6120a30cad781b413e6145a7d5b73c10991a64 | refs/heads/master | 2022-05-10T19:23:30.384707 | 2022-05-04T01:40:02 | 2022-05-04T01:40:02 | 58,973,975 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 30,611 | r | colorSpec.read.R |
# pathvec a vector of paths to files
# ... optional arguments to pass to resample.colorSpec
#
# value:
# a single colorSpec object, or NULL in case of error
#
readSpectra <- function( pathvec, ... )
{
if( is.null(pathvec) || length(pathvec)==0 ) return(NULL)
i... |
c724f33d11b30ba23402f16640c97b836291c861 | 92c22064740e2ebfc09bcbcad308b0420dbda343 | /man/estat_index.Rd | ed355fe654ca60c334f10707cf5b8537120bdd1a | [] | no_license | Tungurahua/reurostat | 9643b6486ed324d3091da660130e78c0ed365bf1 | 982944f0e19659c0a6685ed974aec045ebcfe715 | refs/heads/master | 2020-05-17T18:00:22.922657 | 2014-07-17T21:56:10 | 2014-07-17T21:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 665 | rd | estat_index.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{estat_index}
\alias{estat_index}
\title{Loads the index of available datasets from Eurostat.}
\usage{
estat_index(lang = c("en", "de", "fr"),
url = "http://ec.europa.eu/eurostat/SDMX/diss-web/rest/dataflow/ESTAT/all/latest")
}
\arguments{
\item{lang}{language... |
a8c59ba802d4323666d92ff984decc8d10f3be45 | 24c6064c55846266c96dc3ddbbd944e156c90e03 | /man/betafunction.Rd | ffe57559e96c576510f18fa803029845493ee3e1 | [] | no_license | liujin07/StartComp18065 | 78f04ffec16b20b3a99f9bff138d93cd999246e5 | 6d5cd6eea6b9c8298396676962a1d16130e954b0 | refs/heads/master | 2020-04-16T03:19:34.634420 | 2019-01-11T14:42:50 | 2019-01-11T14:42:50 | 164,424,037 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 690 | rd | betafunction.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acc_reBeta.R
\name{betafunction}
\alias{betafunction}
\title{The function that generates random Numbers with the accept-rejection method}
\usage{
betafunction(n, a, b)
}
\arguments{
\item{n}{The number of random Numbers generated}
\item{a}{P... |
b91e4f42cd4a5d90eb6901b0c5a204a498f50977 | fd76bfc240e097bf6040819061fe9c36d79a36de | /R/cross_validation.R | 0f7b4726c909313c1bd9a25254b808529ad778e1 | [] | no_license | lierscn789/interflex | b2409521f325e3b2bf83a3c1d2d353e46dcc9951 | 9abec7d1acae7c3f0cd904996726442bcef6b6ad | refs/heads/master | 2022-12-23T12:20:43.573283 | 2020-09-28T04:56:25 | 2020-09-28T04:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,569 | r | cross_validation.R | crossvalidate.new <- function(data, Y, D, X, CV.method='simple', FE=NULL, treat.type, Z = NULL, weights = NULL, cl = NULL, base=NULL,
X.eval, grid, kfold = 10, parallel = TRUE, seed=NULL, bw.adaptive = FALSE,
metric = "MSPE"){
bw <- NULL
if(i... |
e31e81ca02a167ce0a9d6b38883e2cd3b319400c | 856fc05ab99ef6c205d61be0468cac347184269a | /RSWMM_Autocalibration_Nasrin Alamdari.R | 5acae0fcd853c9f7692bc93606a1473da747cfcc | [] | no_license | nasrinalam/RSWMM-CostAutomation | 3101f5e17eeaf4ec7dafb04d49d503eaca7851dd | 6a3f6b92919ce2d456002ce10b155ccda9fc7000 | refs/heads/master | 2020-03-18T19:57:41.793200 | 2018-05-28T17:00:01 | 2018-05-28T17:00:01 | 135,187,942 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,235 | r | RSWMM_Autocalibration_Nasrin Alamdari.R | SWMMExe <-function(swmm,Input,Report,Output,iType,vIndex){
swmm=paste('"',swmm,'"',sep="")
Input=paste('"', Input,'"',sep="")
Report=paste('"', Report,'"',sep="")
Output=paste('"', Output,'"',sep="")
# Running executable file
system(paste(swmm,Input,Report,Output,sep=" "),show.output.on.consol... |
828c6c974c7e6f508e4890b199cd8f6acb454ca5 | 32ca0dd0dafbe713e2b7473dc036be1af9ed8b54 | /run_analysis.R | e650a8ec2d3c28c0a25bd8447f306da7e2457cfc | [] | no_license | pyiapa/get-data004-project | f89f0f11e69ae40937f10edcc734a09a7b8e9800 | 9b4fdeae7a5811a2bbfd65c7d167b406d28b6c16 | refs/heads/master | 2021-01-13T01:55:39.299580 | 2014-06-22T23:20:59 | 2014-06-22T23:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,470 | r | run_analysis.R | # Load the test and train data sets
test_data = read.table("UCI HAR Dataset/test/X_test.txt")
train_data = read.table("UCI HAR Dataset/train/X_train.txt")
# Load the activity labels into a data frame
activity_labels = read.table("UCI HAR Dataset/activity_labels.txt")
colnames(activity_labels) <- c("id", "activity")
#... |
194d63d12e101df09088495a198f0af378f3a915 | 0e1cd4250b7661a885b49ba3bbfd88c775d3869f | /searching_cited_books.R | 2e8f81ed422aa8ce3f17e18471c7fe9044dd0918 | [] | no_license | silviaegt/wiki-cite-colmex | c7439d89baf11c3442252add420a250074518960 | 848594fda469192ef23122fa14b947721fb8047b | refs/heads/master | 2021-07-16T06:52:47.280466 | 2020-05-22T18:58:33 | 2020-05-22T18:58:33 | 149,190,161 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,504 | r | searching_cited_books.R | getwd()
#install.packages("XML")
require(XML)
library("methods")
library("dplyr")
library("tidyr")
# set working directory
# here you add were your data is (remember to change \ from Windows paths)
setwd("yourpath")
#1. Read your tsv with all citations with identifiers extracted from the most recent version of your ... |
d91611d89f68cb769bf6c07a65c2cf5809d221a6 | 93356416c6941126c3627edccabb08696d10dd05 | /phospho_network/regression/generate/regression_multi_kinase_match_sub_BI.R | bcdb54817ca1b49a794965ad9b4f5833f67e9dc5 | [] | no_license | ding-lab/phosphoproteomics | 22c9a69127e7397c54dddba044d4588b495f21c5 | 00538a56143be08c0fffae8df6dd54f2bfdd4734 | refs/heads/master | 2021-03-19T06:18:15.490109 | 2019-04-25T21:36:45 | 2019-04-25T21:36:45 | 90,892,479 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,127 | r | regression_multi_kinase_match_sub_BI.R | # Yige Wu @ WashU 2017 Feb
# adopted by Kuan Huang @ Washu 2017 Apr
# look at correlations of kinase and downstream substrates phosphorylation status
# pho_sub~pro_sub+pho_kin(callapsed,multiple)
# choose kinase/phosphotase, significance level, outlier threshold and least sample number-------------------------
least_s... |
8fe00d4350d195ba4f971ae1e326b7125916a683 | bcb5995a65f0d1764d1eb56816016f1aab9195ef | /workspace.r | ea5cb7e458b167eb373f3bd14de077f12de3b221 | [] | no_license | pamgene/combatapp_nosync | c99c476edae5618c16c1e05722da7b62cbb78e56 | 77fcd3476cc1c979a6f25a598c4c6b0cfdd5d32b | refs/heads/master | 2023-04-25T04:35:58.209522 | 2020-07-23T07:53:58 | 2020-07-23T07:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 556 | r | workspace.r | library(bnutil)
library(shiny)
library(reshape2)
library(pgBatch)
library(combatapp)
library(ggplot2)
library(dplyr)
getdata = function() {
aData = AnnotatedData$new(data = combat_testdf, metadata =combat_testmetadf)
}
setResult = function(annotatedResult){
print(annotatedResult)
result = annotatedResult$data
}... |
1a63ac51ff1cc1bb7367afa4becf32bd4d4b2bcb | 67d49ab26430e7bfb5ca8889d2250309d1e97b9a | /xgboost_cv.R | 27c64d3121e2690f191320f96e4df94670594ea2 | [] | no_license | arpang87/XGBOOST_CROSSVALIDATION_IN_R | ff192ad391619d20bb682fbc8a9a2b67f2134a72 | 7cddc72bb3394571c45fb1962eb91cc4a54909d7 | refs/heads/master | 2022-12-23T14:03:08.760919 | 2020-09-30T12:07:34 | 2020-09-30T12:07:34 | 299,905,455 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,988 | r | xgboost_cv.R | #title: "xgboost with crossvalidation in R"
#author: "Arpan"
#date: "January 4, 2017"
#output: pdf_document
Setting the seed so that we get the same results each time we run the model
set.seed(123)
Importing the library mlbench for sonar dataset
library(mlbench)
library(caret)
Storing the data set named "Sonar" ... |
c81af4afb98574503fdeae7396a71beddb32ceaf | d1e8ac310e5ab7ad7e7e8641951cc0217efd10fa | /man/setDreamerr_dev.mode.Rd | a0bb6ee89b0ff06466f89668addb38a102c9367a | [] | no_license | cran/dreamerr | ed38bbc4838c2e86ed6567564eadd236c174a8e4 | 57b2abc755ed9663f95f770bb865dd53d75bd6b9 | refs/heads/master | 2023-08-31T02:45:12.600138 | 2023-08-23T21:30:02 | 2023-08-23T22:30:49 | 255,887,390 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,884 | rd | setDreamerr_dev.mode.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_funs.R
\name{setDreamerr_dev.mode}
\alias{setDreamerr_dev.mode}
\title{Sets the developer mode to help form check_arg calls}
\usage{
setDreamerr_dev.mode(dev.mode = FALSE)
}
\arguments{
\item{dev.mode}{A logical, default is \cod... |
8670b12256578f07d708cf7e08ef0f953743314f | 9e96145ecbea0530c967c14d17c35f1635f3c6f6 | /FC_script.R | ebde99a8da5b2262aad9a2618e710cb8d1b147df | [] | no_license | colina83/Case_Study_Data_Science_for_Business | ceda63f67d9997c9163edd959ba44e3ad48a997a | 7e72f02db17946b0686347342c9007032b88240a | refs/heads/main | 2023-03-14T04:41:24.529452 | 2021-03-02T18:45:04 | 2021-03-02T18:45:04 | 341,239,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,244 | r | FC_script.R | ###############################################
## Tasks to do Prior Starting the project
#Import Libraries
library(Hmisc)
library(Rmisc)
library(jtools)
library(UsingR)
library(tidyverse)
library(lmtest)
library(sandwich)
library(mctest)
library(ggplot2)
library(expss)
#Uploading Data to R
d <- ThyssenKrupp_PPL_Dat... |
84fdbbf49c862a0e7d0c36fabb3c8f3f42a10858 | 536dca63b85c687da2d179b16d062519f6af4e9d | /PilotRetention.R | 69ec68fe005406c428e9c51bb076a9b02509556e | [] | no_license | madikas/R-Client_Retention | 567be9aee64707f3783b8c62b0c02900a8cc8e12 | ff740348bbdd4ce2a3ac232f8ed498f8bdf6fb58 | refs/heads/main | 2023-01-30T04:20:15.756558 | 2020-12-10T18:53:38 | 2020-12-10T18:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,700 | r | PilotRetention.R | library(tidyverse)
library(caret)
library(rpart)
library(rpart.plot)
library(ranger)
# Data import
Pilot_data <- read.csv("~/Documents/HEC/Statistical_Learning/Client Retention/train_student.csv")
Realdata <-read.csv("~/Documents/HEC/Statistical_Learning/Client Retention/score_student_withID.csv")
str(Pilot_data)
Pi... |
e9a74b8178dadb26b535ef912343a89be4875939 | c9e938b2098f8d2b4a7a1f524247523acd3327f2 | /cachematrix.R | 4d1dd8210d5e4d02339750b696d8d33174e8de6f | [] | no_license | cherish2019/ProgrammingAssignment2 | 23affb7ff7728801c049fff270278aa991c45441 | 6985abed3fe7b390917cec722223b1c77a38bace | refs/heads/master | 2020-04-20T18:25:33.128702 | 2019-02-04T03:15:53 | 2019-02-04T03:15:53 | 169,021,078 | 0 | 0 | null | 2019-02-04T03:04:32 | 2019-02-04T03:04:31 | null | UTF-8 | R | false | false | 803 | r | cachematrix.R | ## This function creates the invserse mayrix of the original one
## The inverse of a matrix can be extracted by function cacheSolve
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- i... |
475dbab196d47bb4e8756a677d566de0a7c81d64 | 11b126a360963aee9042c4b94a95854b9f6e0348 | /Microarray/Filtering_absent_genes_in_microarray.R | 48f0eba2296699f4fca1ac0131780d01bac08911 | [] | no_license | Cosmoboss/CRC-biomarkers | 82ebe9fa39767a41ae1c3e2a48f99c09114a6fe7 | a607c0a9144098315bb0a9d35dd50fdd8040e7dd | refs/heads/main | 2023-05-24T10:38:59.429686 | 2021-06-09T17:02:10 | 2021-06-09T17:02:10 | 368,797,688 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,142 | r | Filtering_absent_genes_in_microarray.R | #Load the libraries that will be used.
library(matrixStats)
#Read in the merged microarray datasets
hgu133plus2 <- read.table("HGU133Plus2_after_ComBat_df.xls", sep="\t", header=T)
hgu133a <- read.table("HGU133A_after_ComBat_df.xls", sep="\t", header=T)
#Read in the RNA-Seq studies
gse74369 <- read.table("gse... |
1ae919c984adac4cccd24587a9ee9bbe5752357c | 1b605394809312ea6c0a1a6d69a1a24f9cdd8982 | /inst/examples/server.R | 30e0f2c276012c50cfb0502ea90e8f3dfe61d3b5 | [] | no_license | AparicioJohan/GS | 7994604c10904927ceefe29289fbeeaec0d32ba2 | d81b725ff79726f182e148732e92d997348de6c4 | refs/heads/master | 2021-03-30T05:58:42.203100 | 2020-10-07T13:54:53 | 2020-10-07T13:54:53 | 248,023,382 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,810 | r | server.R | library(shiny)
library(ggplot2)
library(plotly)
library(SpATS)
library(ggsci)
library(ggpubr)
library(shinyjs)
library(shinytoastr)
library(GS)
library(sommer)
# source("https://raw.githubusercontent.com/AparicioJohan/GPrediction/master/crossGP.R")
options(shiny.maxRequestSize = 70*1024^2)
shinyServer... |
c600bea64280bcbe8eabc2ef721ffc0774a25aeb | 07cbeb7cffaa00d21734c486c793e4ed4fe698db | /plot1.R | 078e0038dd7fda725b8f75a8b52d88d2c289fd51 | [] | no_license | ssuresh8/ExData_Plotting1 | 0897bd40a96cb1769c270a640e196496fa28f558 | 376b0d95156015f90de680d346d831aac8a8233a | refs/heads/master | 2020-05-29T11:45:56.200047 | 2015-12-13T22:19:51 | 2015-12-13T22:19:51 | 47,864,087 | 0 | 0 | null | 2015-12-12T04:25:19 | 2015-12-12T04:25:19 | null | UTF-8 | R | false | false | 893 | r | plot1.R | ## read in the text file
## since it is a semicolon delimited file use sep as semi colon and headings are in first row
dat <- read.table("household_power_consumption.txt", header = T, sep= ";")
#convert the date and time columns in to the date and time classes in R
dat$Date <-as.Date(dat$Date, format = "%d/%m/%Y")
##... |
912bf5673e5d3c7f162f0ab57a5c7bf080e84c44 | c3ab6a0f29d068ff5f25dae32cbcefea14645fef | /man/JustATestPlot.Rd | 6e552c12fb05dda8893291d3276abcebd23aeef7 | [] | no_license | 1587causalai/gong-pkg | acac9de28c0e81bce531dc79591a03a8a108616d | fe53d136b828170ee0d4d6cb0c8dbb4da5bcfae8 | refs/heads/master | 2023-02-06T20:01:21.233805 | 2017-10-06T01:13:03 | 2017-10-06T01:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 240 | rd | JustATestPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{JustATestPlot}
\alias{JustATestPlot}
\title{A function for plot a picture with ggplot2}
\usage{
JustATestPlot()
}
\description{
This function ...
}
|
d4df0c02fe5c70be41a473769041135260cfb3c2 | 2bce49ab57997fe6121efcfba8544e8ede5f6376 | /tests/testthat.R | afcde10bc7bf8d5b6654f8246735af8035ef102c | [] | no_license | hfjn/nmmso_benchmark | 7e0309244529226f1ab2b0bd7091772392ceba38 | bf13085ce7ce6d597c45095d30d2e0909467eb56 | refs/heads/master | 2021-05-30T02:31:26.276871 | 2016-01-09T16:24:01 | 2016-01-09T16:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 72 | r | testthat.R | library(testthat)
library(nmmsoBenchmark)
test_check("nmmsoBenchmark")
|
542666acf64a00a63a4e8c505be066d56c4730af | 8d2fab7f71a20ebbc5d9de832cf16a62ba6ca0b4 | /src/SEER_Summary.R | b8cacdd2eda7603a12c0b6199bf6be2305c7b14f | [
"MIT"
] | permissive | phildwalker/local_cancer_prev_MrP | e89986afa4059f71d449b705cc706e41b6bf4d10 | a269935cc001fdeda71e5f71821b7af574ee17c4 | refs/heads/main | 2023-03-09T05:59:51.330416 | 2021-02-18T16:20:27 | 2021-02-18T16:20:27 | 338,878,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,235 | r | SEER_Summary.R | # https://seer.cancer.gov/explorer/application.html?site=55&data_type=1&graph_type=3&compareBy=race&chk_race_1=1&chk_race_5=5&chk_race_4=4&chk_race_3=3&chk_race_6=6&chk_race_8=8&chk_race_2=2&sex=3&rate_type=2&advopt_precision=1&advopt_display=2
SEER <-
readxl::read_excel(here::here("data-raw", "Summary_Cancer_A... |
81c291d37aed3f7dafc2323d609051c042f5461d | b5555aca84eba3fdad763c8922e5b856718ff1d9 | /Image Restoration.R | 2640c9c5db3f3accbc0753edd7b8ee60ae06dbb9 | [] | no_license | resobyte/ImageRestorationR | 242edbac317133e1846fa1f5cf0acef320811335 | 31d89048e368431dc2ca10352457c7b6c1682c65 | refs/heads/master | 2020-03-18T14:36:29.973462 | 2018-05-25T13:29:45 | 2018-05-25T13:29:45 | 134,856,833 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,716 | r | Image Restoration.R | temp <- (matrix(1,nrow=3,ncol=3) %x% matrix(c(2,1,1,2),2))[1:5,1:5]
M1 <- temp %x% matrix(1,nrow=10,ncol=10)
M2 <- matrix(2,nrow=50, ncol=50)
M2[21:30,1:10] <- M2[21:30,41:50] <- 1
M2[11:40,11:20] <- M2[11:40,31:40] <- 1
M2[1:50,21:30] <- 1
M3 <- matrix(2,nrow=50, ncol=50)
M3[11:20,] <- M3[31:40,] <- 1
M3[1:10,21:30] <... |
ea927be4e0ecff9bd5bd1dadb6562a72e82238d8 | 655f8fe46c2c6143cf3889df5d3191f07ce09563 | /man/hngm.Rd | 26aac35299c4a8086378ddb7da638b1a7770241b | [] | no_license | jongguri80/NGM | 374b9909e9094ad84f14fcc9e407a1414fa9a418 | 192b4543d641ef0d58158d52b06cfe9e9441aa97 | refs/heads/master | 2020-06-24T23:13:12.783303 | 2017-07-12T00:59:03 | 2017-07-12T00:59:03 | 96,938,916 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,445 | rd | hngm.Rd | \name{SSVM_OU}
\alias{SSVM_OU}
\docType{package}
\title{
Bayesian Semi-parametric Stochastic Model with Ornstein-Uhlenbeck process prior (B-SSVM-OU)
}
\description{
To fit B-SSVM-OU with longitudial data to examine the association between growth acceleration and an exposure.
}
\usage{
SSVM_OU(Y_list, X_logrho, X_nu_bar... |
ba1fd6f304090a80d20a52e49abbd805cf0d2d7d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/circlize/examples/circos.yaxis.rd.R | e7066f961af84f02c08ebf3e671d1103fbb1ec3d | [] | 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 | 561 | r | circos.yaxis.rd.R | library(circlize)
### Name: circos.yaxis
### Title: Draw y-axis
### Aliases: circos.yaxis
### ** Examples
op = par(no.readonly = TRUE)
factors = letters[1:8]
circos.par(points.overflow.warning = FALSE)
circos.par(gap.degree = 8)
circos.initialize(factors = factors, xlim = c(0, 10))
circos.trackPlotRegion(factors =... |
450765baf45213b58f8bdfed371bdf28bfd52500 | ce2bed3a57df5f6c25141b017bac624f3915ac7e | /week 2/week 2 programming assessment.R | 3809f4cf405e07d61061470027686f73fc24d5de | [] | no_license | Doublefacez/datasciencecoursera | e0b72d40dc0d0e245d4f85e2b411b29716d4f64f | e9d1b9ecf28fabbe1e5ed5c76ba3439fea9ad4d9 | refs/heads/master | 2022-11-12T10:43:22.984794 | 2020-06-23T16:53:35 | 2020-06-23T16:53:35 | 271,297,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,233 | r | week 2 programming assessment.R | ####################### Week 2 Programming Assignmane #####################
## Part 1 Write a function "pollutantmean" to calculate the mean
pollutantmean <- function(directory, pollutant, id = 1:332){
locate_files <- list.files(directory, full.names = TRUE) #Locating the files in the directoroy
data <- d... |
020b61b8d8ba5e56260d430c5007354289c5362d | 55d7f8bf639aa3f5b00597acb4017021d7f9ed1e | /tests/testthat.R | e8427cba2a0bfa7511ba2c09c7b66fbf8607a0e1 | [
"MIT"
] | permissive | nemochina2008/mgcvtools | b6b131fb6fba0c1ea5535930a6e2730c4d068747 | 3bc04bda15065ea6d4d6a6c632bb88cbdd998b34 | refs/heads/master | 2021-06-14T07:24:45.465596 | 2016-12-22T09:40:26 | 2016-12-22T09:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 62 | r | testthat.R | library(testthat)
library(mgcvtools)
test_check("mgcvtools")
|
8126ef880101c365f43b53e0cfc2da75075972de | b2f46956d55e81c4abe581d90b059675678b611a | /Clustering.r | 1f0ec08662b8dfa8633bd63c981931085281588e | [] | no_license | cosmoschen94/BigHero | 568a4063633d7f52edf50953532f59dc60fa1034 | db54ffe1b7771ae89f07435dba6cf77f384b7729 | refs/heads/master | 2021-01-10T13:18:23.218299 | 2016-12-08T17:32:57 | 2016-12-08T17:32:57 | 46,522,924 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,791 | r | Clustering.r | library("rjson")
library(fpc)
library(cluster)
library("party")
json_file <- "data.json"
json_data <- fromJSON(file=json_file)
nrow <- length(json_data)
ncol <- length(json_data[[1]])
data_attribute <- names(json_data[[1]])
data_mat <- matrix(data = unlist(json_data), nrow = nrow, ncol = ncol, byrow = TRUE)
colnames(d... |
885536b9415e8053828e2c2db859a763d842e487 | 57d9c9c9603f66cfadbaf99c62366d0bf02cadc5 | /man/runCubeShiny.Rd | 79a977e8ac456a25433f56913f5a16e31e5dcd2c | [] | no_license | jlwaddell/soloDrafting | ad5393afd14d3089aa9f1b8fd80f983da141f3fc | 472316034854ec691a1d1234d789801aab49ae46 | refs/heads/main | 2023-04-05T15:59:02.920252 | 2021-04-18T13:20:19 | 2021-04-18T13:20:19 | 346,645,939 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 527 | rd | runCubeShiny.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runCubeShiny.R
\name{runCubeShiny}
\alias{runCubeShiny}
\title{Run the shiny application}
\usage{
runCubeShiny(installDependencies = FALSE, ...)
}
\arguments{
\item{installDependencies}{boolean, whether to first install packages listed
in the... |
241e47ad1c6e1040ec004c18e7749d6755419993 | f0ba683353c4e3faf242e56c84defda4972686e1 | /man/pmid2doi.Rd | 90d9db92512d92191215d82c71504b44d3126d38 | [
"MIT"
] | permissive | epongpipat/eepR | bf567c666eef0417b0dece4088ec95697f02cdba | 970c4699db1e005cabd282e903706239033c7b02 | refs/heads/main | 2023-04-01T22:44:23.247733 | 2023-03-28T17:42:07 | 2023-03-28T17:42:07 | 205,262,495 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 258 | rd | pmid2doi.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pmid2funcs.R
\name{pmid2doi}
\alias{pmid2doi}
\title{pmid2doi}
\usage{
pmid2doi(pmid)
}
\arguments{
\item{pmid}{}
}
\value{
}
\description{
pmid2doi
}
\concept{references_pubmed}
|
fafada14acf96875e037a1216d1fb8899e405265 | d7beab3a9f1aeaa2db5978582f7ae4c3d3f265d7 | /STORING_USER_EDUCATION.R | 5605ef2db25ae7c3b1334b4351dc439c1ea76cbb | [] | no_license | raunaqrameshporwal/Facebook-Influencer-Identification | 6f22e0ca2e0592888338bda539dc981d7f09d2c9 | 44e3f8d188cfb77ce6a4c5700bd88303dc025291 | refs/heads/master | 2022-11-09T04:40:54.483055 | 2020-07-02T23:40:34 | 2020-07-02T23:40:34 | 276,765,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,438 | r | STORING_USER_EDUCATION.R | library(RMySQL)
library(magrittr)
library(httr)
library(jsonlite)
library(RCurl)
library(Rfacebook)
load("my_db_connection")
load("FB_ID_FILE")
load("fb_oauth_auto")
load("fb_oauth_manual")
options(stringsAsFactors = FALSE)
#EDUCATION TABLE IS CREATED WITH THE NAME -> education_details
#IN CASE OF " ' EXTRACT CODE FRO... |
1e609c2063e3dd3b03401668ce7de759a601dd7a | 1fd484b29193d33a9ecffb964540b9fe2dbcb134 | /server.R | 5393c8de1ecff9565da4f164bc236aae9ad11aba | [] | no_license | alanct/shiny | 5d976d67574ea02ba4f04bd156a7c01e8eecfd39 | cd8ec6d167d0b51302e8c77cd6761b5e24bad687 | refs/heads/master | 2020-05-10T00:20:17.379141 | 2014-09-20T02:21:03 | 2014-09-20T02:21:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,246 | r | server.R | library(shiny)
library(kernlab); data(spam)
library(MASS)
mydata <- spam
attach(mydata)
type <- factor(type, labels = c("spam", "not spam"))
shinyServer(function(input, output) {
formulaText <- reactive({
paste(input$variable, "~ type")
})
formulaTextPoint <- reactive({
paste("type ~", "as.integer... |
6005104be7799dc343f5514ec161f73b25f133ac | e2b1baef26e62a7de8ff2b916fe2afd737f1b378 | /scripts/machine_learning_algorithms/knn.R | 3312ed166015abe88a943c7f6b7f89388101f41a | [] | no_license | MuhammadYasirAliKhan786/SDMGISR | 9ecb7ae1996c7714d27295fbbc172b871168a6db | 03087bee61a7da470895a89eb8181cc9f2c8af11 | refs/heads/master | 2022-01-15T14:26:28.400240 | 2019-07-14T22:10:45 | 2019-07-14T22:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,310 | r | knn.R | #######################################################################
############### kNN
head(pa)
set.seed(1) #pseudo-repeatability
trainIndex = createDataPartition(pa$pb, p = .75,
list = FALSE,
times = 1) #y as basis of splitting
training = pa[ ... |
4245a3a4e2b55c9c0222b9e91d66d1f3016bd4e5 | 05407980f99cf6f828ce411e728c3a140093b970 | /beaver(july19).R | e76e6839c0459dd69cfe36ec4d29edf04781b3a7 | [] | no_license | BeliveINkevin/R-project-July-19- | 4edcb47e16f54093218942d7d9ba73f460251e62 | b4cbdf6c8050651fd92f5c6b0da234e5261e9eb6 | refs/heads/master | 2020-03-23T13:59:43.323407 | 2018-07-20T01:45:00 | 2018-07-20T01:45:00 | 141,649,456 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,175 | r | beaver(july19).R | library(readr)
beaver <- read_csv("C:/Documents/My Excel/beaver.csv")
View(beaver)
install.packages("dplyr")
install.packages("ggplot2")
library(dplyr)
library(ggplot2)
head(beaver)
tail(beaver)
nrow(beaver)
#Note that 307 corresponds to day 1 while 308 corresponds to day 2
day1<-dplyr::filter(beaver,day=='3... |
775af18cd5b85c67ad601b2f4ced17bb037bb8c1 | 468d9f58ec5449bb5db4decdb757c406a295a081 | /MyWork/plot4.R | 73b62a99703e7d49388cb7826d36cdef05298b6c | [] | no_license | JamesZDonline/ExData_Plotting1 | f07b0325404199b874218043daa13be604fec6b1 | 08b0d8e1061d8f18d3acf73cb022f7cabe3ea6bf | refs/heads/master | 2021-01-14T11:25:11.698262 | 2015-01-11T00:52:54 | 2015-01-11T00:52:54 | 29,076,238 | 0 | 0 | null | 2015-01-11T00:26:02 | 2015-01-11T00:26:01 | null | UTF-8 | R | false | false | 1,918 | r | plot4.R | #Exploratory Data Analysis First Project Plot 4 R Script
#Download Data and unzip file
URLname<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(URLname,"PowerConsumptionData.zip",method="curl")
unzip("PowerConsumptionData.zip")
#Read Data in
filename="household_po... |
5a669fbbf53702e09377f10133c405bd85514689 | 449714efa83eb3071200b90bd5d584e0e3e5103f | /cachematrix.R | cbc9599621ba4c6cac8d10690cab433f9c5ed0d8 | [] | no_license | LindaS321/ProgrammingAssignment2 | 237977455fb188e5b3d898ad05660dd0a55b2a1f | f56590f71d9ea8ab82e1a90b10e2a8c340ab1b6a | refs/heads/master | 2021-01-15T21:07:56.739556 | 2015-03-20T23:15:19 | 2015-03-20T23:15:19 | 32,351,537 | 0 | 0 | null | 2015-03-16T20:37:25 | 2015-03-16T20:37:23 | null | UTF-8 | R | false | false | 1,783 | r | cachematrix.R | ## A pair of functions that cache the inverse of a matrix
##
## creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
inv = NULL
## Set the value of the matrix to value passed as y
setMatrix = function(y) {
## use `<<-` to assign a value to an object in an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.