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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a942ef4f6e8a94b457ec2587ffb426b92d4efe4f | 1bba1180c422e9789de3c142b8ac13149d5ffd3b | /shendure/process_all.R | 59812a1443fb69ba5db4572555fb1636c8e52c7c | [] | no_license | haleykgrant/Shendure_Data | f80c0bc54b408582deeecfdf34e9ba7660caa43e | 72b98be40205ec53ce35fcdc955ce99017e1cc8e | refs/heads/master | 2022-04-23T03:27:41.888631 | 2020-04-23T03:51:49 | 2020-04-23T03:51:49 | 256,798,860 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 698 | r | process_all.R | library(pacman)
p_load(data.table, tidyverse, plyr)
memory.limit(size=50000)
# path to cleaned output files from bowtie alignment
d="/data/nfs1/home/hgrant3/cancer_seek/shendure/sam_files/positions/"
samples=list.files(d)[which(endsWith(list.files(d),"all_cleaned.txt"))]
# run in parallel- one per sample
i = as.in... |
176fb10f88c9cf6942558480300de723cc8c5eaf | 0bb873ad8d55d946a90a49a5b8ae0d9a3bb8990f | /EdgeR_analysis/0_de_edgeR.R | 11548f9f53434abfde89d0f53704414ee12501fa | [] | no_license | ComplexityBiosystems/Regeneration | 5056e3c588f49eeab80d2819530b0fdedd424565 | 49f246e93e5912fcb9d3a0e62f80bb198b9d7168 | refs/heads/master | 2021-08-23T14:59:22.775955 | 2017-12-05T09:37:50 | 2017-12-05T09:37:50 | 112,357,293 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,081 | r | 0_de_edgeR.R | ##################
### EdgeR differential expression anlysis
### use first
### source("https://bioconductor.org/biocLite.R")
### biocLite("edgeR")
###
##################
### This program is an example of edgeR when a single data for each time point is available
### control allows to use te different time po... |
5448baf63b21c08d2d6e318de3511be5935e963e | 4fe3500210c86139245cb897e32f5dceeceb3ed9 | /kovaleski_john/app.R | fc7d1325cb93f04f6cbedb0ce0ba232d9f188f99 | [] | no_license | jakekova/datascience_final_assignment | 3f7b1bc87a9643d2e28ec72f547451d5a7320715 | ad8dca051ac4c6d55c3a9d8712805a1c8a24785b | refs/heads/master | 2022-07-10T13:34:37.827438 | 2020-05-12T20:13:57 | 2020-05-12T20:13:57 | 259,980,606 | 0 | 0 | null | 2020-04-29T16:29:49 | 2020-04-29T16:29:49 | null | UTF-8 | R | false | false | 8,834 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# Load all libraries ------------------------------------------------------------------------
library(shiny)
libr... |
1f5ff733191958d7d341d4f519bea8ee5fb4aa11 | 381308baf0c24b971c1b1fef3aaf490615beaabd | /sess7r/R/sess7r.R | 8ba3beafa008adf0b5d6b57d4b5e86328b491d66 | [] | no_license | merralja/SchoolProbit | d03b27ed24ff00108c330b2e956a42efc42ace73 | 6d9bc2c1a06c3642eb0b954bea2add9da1bf8e66 | refs/heads/master | 2020-08-01T20:28:34.885665 | 2019-12-20T14:59:54 | 2019-12-20T14:59:54 | 211,106,349 | 1 | 0 | null | 2019-11-13T16:02:52 | 2019-09-26T14:15:54 | HTML | UTF-8 | R | false | false | 498 | r | sess7r.R | #' sess7r: A package with a minimum example of package creation.
#'
#' This package is an exercise in package creation using
#' R studio. The package will hopefully include a sample
#' function and a sample dataset with their respective
#' documentation, though the last time I tried this it
#' screwed up miserably.
#'
... |
515fe75d90c56154ca99d6d9da60b3bf78560444 | 0c1c0e8c68835ca908806372236af6f539490042 | /lecture/2016.05.31/politico.R | da7da9c6988f9c0aca1446ed3180e9b0b1ec7ef8 | [] | no_license | AylNels/notes | 2343f78064d1bb07dc71d23dc2b70c69b45e52c3 | e331c4ff2d736cb65f2313659ab42be469d80209 | refs/heads/master | 2021-01-15T20:47:57.257314 | 2016-06-05T20:29:02 | 2016-06-05T20:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,385 | r | politico.R | # Description:
#
# This file is written as an a self-contained R script so that it can be
# modified easily. The goal here is to scrape the results of primary elections
# from Politico.
#
# The general workflow for R code is to modify the script, save the changes,
# and then reload the functions in R with the command
#... |
dd5f311216d10c29e7f63817ac584b700b339c11 | ba2605fbf416b7f7e4cbdc79711eb614ff3eef02 | /man/plr_xbx_utc_model.Rd | a6a69c33e0b3e0d8814cd60f9d6e043f51ed3520 | [] | no_license | romainfrancois/PVplr | e2422c3b7359df03137d559a806b9ac8ad26cb7e | 862a626fb9ab2b932b0aebf13e10e80971a217e4 | refs/heads/master | 2022-12-27T01:05:37.820493 | 2020-10-07T11:00:20 | 2020-10-07T11:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,735 | rd | plr_xbx_utc_model.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_corrections.R
\name{plr_xbx_utc_model}
\alias{plr_xbx_utc_model}
\title{UTC Method for PLR Determination}
\usage{
plr_xbx_utc_model(
df,
var_list,
by = "month",
data_cutoff = 30,
predict_data = NULL,
ref_irrad = ... |
c52f311b1580e8143bf9781f37e91d3e1a689920 | a7ac30628edb64e8735b7cb6c01174ffba34e777 | /man/select_dataset.Rd | 88377ed3d3267e32bad471169b3fa3eb19123457 | [
"MIT"
] | permissive | kant/esriOpenData | 142b53354bcc5d60715be310758cf504ea446c9e | fd0df4de257b78b3ca2a1289777f688e4a7a1b34 | refs/heads/master | 2021-01-01T21:14:57.186572 | 2019-05-09T19:38:46 | 2019-05-09T19:38:46 | 239,342,472 | 0 | 0 | MIT | 2020-02-09T17:15:31 | 2020-02-09T17:15:31 | null | UTF-8 | R | false | true | 713 | rd | select_dataset.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/select_dataset.R
\name{select_dataset}
\alias{select_dataset}
\title{Select a dataset}
\usage{
select_dataset(dataset_df, id)
}
\arguments{
\item{dataset_df}{Dataframe, output of search_datasets().}
\item{id}{row id of desired dataset, e.g. ... |
ca3e7da7542b9baccb0a192b5fcc465450dfae04 | c85a7198653461c25d031f7e93d78368b1eb6833 | /man/modelDeterministic.Rd | 2bdd0d3e36a14ec8c58b46e5992dd114a2992a3f | [] | no_license | rBatt/timeScales | 70a6159fde3c5062d6abe37e58811d251dcf384e | c25bb8bbc486147a5529bed75ea6b150575ed18e | refs/heads/master | 2021-08-30T16:57:41.955274 | 2021-08-10T23:35:16 | 2021-08-10T23:35:16 | 100,967,320 | 0 | 4 | null | null | null | null | UTF-8 | R | false | true | 1,714 | rd | modelDeterministic.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simLakeP.R
\name{modelDeterministic}
\alias{modelDeterministic}
\title{Eutrophication Bifurcation
Model of lake eutrophication via elevated phosphorus loading. When as phosphorus loading increases, a fold bifurcation is reached, and the syste... |
eb90ef09ea5e6033377ba3376a385370e54a0e54 | 83546f128c57f01828b5d50f12a880cfc13b0dd3 | /Fall_2019/Intro_to_R_LemayLab_120419.R | 157592fa48ade9cb8aee353ede166ea7b78f192a | [] | no_license | ebeth-chin/Intro_to_R | 06a008859fdd9a71e37b6cafe12823ae14ba04d1 | f337a498e6ff564d484c5306d334ea63ed9174b7 | refs/heads/master | 2022-12-12T03:07:58.397765 | 2020-08-28T23:55:09 | 2020-08-28T23:55:09 | 291,166,329 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,012 | r | Intro_to_R_LemayLab_120419.R | #####################
# Intro to R #
# Elizabeth Chin #
# 09/27/2019 #
#####################
# Purpose: This session aims to get you:
#* up and running with the R language and R Studio
#* using good practices for reproducible computations and analyses
#* reading, understanding, and manipulatin... |
1a2b0c2580084e4125f13c9f8da9bc8d38d1c415 | e2beb66552e58cbf67556177b9117f2d0cf59b94 | /code/R/going_deep_legacy_code/going_deep_package_scripts/model-preds.R | 9aeb4c36a6695f5e52f600ddbcd2952e7f1ae1f9 | [] | no_license | mcemerden/bdb-pass-defense | 8ba712986ce07fd5767000d2c7810c4c02bb4954 | fcdebcc3614c0457139d67b7ca1f32b22efc7b58 | refs/heads/main | 2023-02-12T02:33:16.835505 | 2021-01-08T18:09:53 | 2021-01-08T18:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,309 | r | model-preds.R | # Francesca Matano
# Purpose: Produce prediction for lstm model
#' Computing lstm model prediction
#' This function takes a scaled matrix in input and an it computes the lstm prediction
#'
#' @param X scaled matrix of predictors
#' @param model lstm model: you can load model with load_model_hdf5(model_path)
#' @param ... |
c9fd73b73f4c26cf50034dd46d229e06801725a7 | 2aaa784b1244715bb4cd0dccec20c5014701a292 | /slider_map.R | 868db4be60df0c8fd6adf142bb4f98b0e301baf3 | [] | no_license | MarcellGranat/fertilityEU | 80720ac0baaefaf425309fb1de83ec2084376a52 | a2fc2a489c7d7f99d52f3493707cc831e571c198 | refs/heads/main | 2023-04-06T07:13:12.443749 | 2021-04-21T18:38:12 | 2021-04-21T18:38:12 | 337,162,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,218 | r | slider_map.R | library(tidyverse)
dat <- rbind(read_csv("C:/school/szem_8/TDK-fertility/fertilityEU/eurostat_datasets/demo_r_frate2_1_Data.csv", locale = readr::locale(encoding = "UTF-8"))%>%
transmute(time = TIME, geo = GEO, variable = "Fertility", value = Value),
read_csv("C:/school/szem_8/TDK-fertilit... |
570e060ebb9c49d69960a0e74cdd747778f4e454 | 302f09f730d4a0b71f97203e244afe341e8a7c08 | /R/rScatterView.R | 1104db3cd1c67f11fdf9c1e4dbcb88f4aae98812 | [] | no_license | BioAmelie/MHCI_TRAF3 | 79425a8cc8ab39a02de41c999bfecae8dfef2a6b | 1606d33f61670be7120998cca169594d469bbce1 | refs/heads/master | 2023-06-16T04:53:52.624145 | 2021-07-08T21:50:10 | 2021-07-08T21:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,967 | r | rScatterView.R | #' @export
rScatterView <- function(genescore, ylimit = c(0, NA),
cutoff = 1, top = 5, genelist=c(),
color_pal = c("red", "gray70"),
labelsize = 4, title = NULL){
gg = data.frame(Label = names(genescore), Score = genescore,
R... |
7d15dea50ec21bba22454a852ff9653935179deb | c123ffc8e23813033f1a8c90c23f6ee28d13ed13 | /Rejection based ABC MCMC ASR final.R | 8812f0625124c03855243ac03c596636ef0044ad | [] | no_license | noahmthomas-nmt/ABC_Chapter | 6aba6de5dc07bb7b9a1976eac867e3511847c02f | 73eda7d3fc9535806599063315f674562d6d1bef | refs/heads/main | 2023-09-05T16:26:57.443473 | 2021-11-02T17:42:01 | 2021-11-02T17:42:01 | 423,571,684 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,648 | r | Rejection based ABC MCMC ASR final.R | # Rejection base ABC MCMC ASR.R
rm(list = ls()) # Clear environment
# ------------------------------------------------------------- Set up
set.seed(43210) # set seed for reproducibility
library("tidyverse") # import tidy function
source("rasr.R") # simulate ASR
source("rconflict_asr.R") # Runs conflict mode... |
355dc68552de7d8141c8d9416f3aeffe6acfe5bc | aea74183d6fbd791fe5fb89dea80d32f0b4a822d | /man/runStagePopExample.Rd | e7b9004a910940e5bbe315a2d86b1e4e93f0642e | [] | no_license | cran/stagePop | c3fec31a41abc70871ae7eed192e260a817294cf | d830266935ddb2d1654d82004927bdfc4ba77e1c | refs/heads/master | 2022-05-23T20:47:55.979477 | 2022-05-10T12:50:02 | 2022-05-10T12:50:02 | 30,255,908 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 489 | rd | runStagePopExample.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runStagePopExample.R
\name{runStagePopExample}
\alias{runStagePopExample}
\title{runStagePopExample}
\usage{
runStagePopExample(name = NULL)
}
\arguments{
\item{name}{Name of the example to run. If Name is NULL the list of examples will be pr... |
8c267a6eb515a8160c8feb043ffa02d3f37c5d78 | 5d13d41a6d0c8215c1ce157c80fb689cc23dc22a | /04 - Exploratory Data Analysis/Project 2/plot1.R | a086d4b55c4430930828b1bcd88e40dcbf663f18 | [] | no_license | eablamb/datasciencecoursera | 6435793f054158e5784d72598fa6afdbffcef020 | bfc4b3a7a615339c875f4dd6361f1225cf98de88 | refs/heads/master | 2020-06-05T05:27:48.624304 | 2015-12-04T23:06:23 | 2015-12-04T23:06:23 | 24,222,281 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,387 | r | plot1.R | getPMData <- function(plotFunc) {
# Downloads and extracts fine particulate matter data from
# the National Emmissions Invetory (NEI) Data Set
# availabe at the EPA National Emissions Invetory web site.
# The extracted data is a subset from 1999, 2002, 2005, and 2008
require(utils)
... |
47777cd854c1a2783852db997eb2617c6298a3c7 | 10d13c1d476562d40603aaba095d6342ab232b44 | /R/plot.sim.R | 885c504857e6431bc21578f44c89c84eef9b3899 | [] | no_license | cran/WRSS | 5fe1633c0fabca858ab10d3d792005d557a1cd49 | 45d362ea30f9c86885ad54b26a3de9c445cb4728 | refs/heads/master | 2022-06-29T20:52:05.083546 | 2022-05-29T17:10:02 | 2022-05-29T17:10:02 | 110,153,129 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,400 | r | plot.sim.R | plot.sim <-
function(x,...)
{
nRes<-length(x$operation$operation$reservoirs)
nRiv<-length(x$operation$operation$rivers)
nAuq<-length(x$operation$operation$aquifers)
nJun<-length(x$operation$operation$junctions)
nDiv<-length(x$operation$operation$diversions)
nDem<-length(x$operation$operation$d... |
ab9e7477770bb30e58bb49119e14265d3cb96198 | dc79a2186fcacfeb2aef0c1f096da8a835bd5a69 | /sentiment.R | 915efb8c785e0b8e32a7a793c54a9e573e7dc5e9 | [] | no_license | gaka444/BIG5 | 56b676e1fdb5c627d234f59650b53337402eb122 | 23b1d6acaa0ccf973f41a8c4a64dc49dc4ab8866 | refs/heads/master | 2021-01-25T00:03:55.971622 | 2018-04-11T17:50:49 | 2018-04-11T17:50:49 | 123,288,564 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,008 | r | sentiment.R | score.sentiment = function(sentences, extra.words, agree.words,open.words,cons.words,neuro.words, .progress='none')
{
require(plyr) # extra agree open cons neuro
require(stringr)
list=lapply(sentences, function(sentence, agree.words, extra.words, cons.words, open.words, neuro.words)
... |
b6938c058537d65f52a8e458753eedfeff805427 | a4b603fad7a4655815daa2215fe719188b83dac2 | /pca.R | 224b87d09b7c3b7c661fd521de31ea32e7655f33 | [] | no_license | elurisoto/movierec | fc638cec25e0bc5fa10423eb132439107816946d | a0a490b39796dbdf16a8fe9aa033830e6a0be73f | refs/heads/master | 2016-09-06T21:21:09.324079 | 2015-08-05T16:16:22 | 2015-08-05T16:16:22 | 34,989,142 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,806 | r | pca.R | require(robCompositions)
require(mice)
data <- read.csv("data/outputAlexPreprocessed.csv", header = TRUE, na.strings = c("N/A","None","NA"), stringsAsFactors=FALSE)
types <- lapply(data,class)
numerics <- data[types=="integer" | types =="numeric"][-17]
target <- data$user_rating
# Missing value imputation
imputed <- ... |
ef07caaf6910176c5b5681a41f7956d9b3195ba3 | fafcd06a2167b9b9af44ce8061876d56ab0f2cd6 | /R/stl-seasonal.R | 3b28c9affcbc99b6e2baa5b4a0897912365ecbd3 | [] | no_license | cran/ggseas | 1ab51220956f045c3e17fcf5f61abf6becd79829 | 6b099f9f756708b54e8c3b091fb9c168070b66bd | refs/heads/master | 2021-01-10T13:18:57.074349 | 2018-06-12T12:33:33 | 2018-06-12T12:33:33 | 51,983,068 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,091 | r | stl-seasonal.R | StatSTL <- ggproto("StatSTL", Stat,
required_aes = c("x", "y"),
compute_group = function(data, scales, frequency, s.window,
index.ref, index.basis, ...) {
data <- data[order(... |
462432bfd36212bdc87bcee727539603af8d5735 | be8d70e60dd86be6f9f3b2e33d71226763053f6f | /Rpackage/man/get_top_user_posts.Rd | ec68360dbeed7a31b32b651f4ee660109119526c | [
"MIT"
] | permissive | yoni/insta-sound | 0101c9d6352eea853b7655dc1a8d3a2fcd9a9b73 | c9ee4c6be98b065052a566ee9852e8fc0f463ae6 | refs/heads/master | 2021-01-18T07:15:01.917677 | 2014-01-27T00:00:34 | 2014-01-27T00:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 207 | rd | get_top_user_posts.Rd | \name{get_top_user_posts}
\alias{get_top_user_posts}
\title{Reduces posts to only thos of top users.}
\usage{
get_top_user_posts(posts, limit = 9)
}
\description{
Reduces posts to only thos of top users.
}
|
147004da856babcbfae081824ce26fc8c3e92eff | 6b03397dfa9526499297b460c80a84c514652449 | /man/identity.matrix.Rd | f6dc17528a7592caac52a7932b96bcac9659f5f2 | [] | no_license | tomateba/tRanslatome | 726887b6b6edcbf78950263989d5437da8b5f336 | 1f9595cd994e27027eee93f387c6d4c1361be67f | refs/heads/master | 2021-01-16T19:54:07.390987 | 2015-09-07T09:44:42 | 2015-09-07T09:44:42 | 42,043,270 | 2 | 1 | null | 2015-09-07T09:15:30 | 2015-09-07T09:15:30 | null | UTF-8 | R | false | false | 668 | rd | identity.matrix.Rd | \name{identity.matrix}
\alias{identity.matrix}
\title{labelLevelsGOSetsHelpfile}
\description{
This function displays an object of class \code{character} specifying the names of the two levels compared in the experiment. It takes as input an object of class \code{\linkS4class{GOsims}}.
}
\usage{identity.matrix(... |
0a9c8cbfe62675b6a237fd0a3b4ed3aa6ca5a197 | 8f88f02674446584914185eb4e2c33e388ae39e5 | /man/rcbr.fit.GK.Rd | 3985099e35c49061fae083e7767a570f4b5aa69f | [] | no_license | cran/RCBR | 4d041ba7a0621ac381387567940f009390fb5d3d | eb916095e2bf41a4ff50ef3acf816aec3f8eb6e6 | refs/heads/master | 2023-01-19T03:22:53.835631 | 2020-11-16T09:10:05 | 2020-11-16T09:10:05 | 315,991,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,328 | rd | rcbr.fit.GK.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcbr.fit.GK.R
\name{rcbr.fit.GK}
\alias{rcbr.fit.GK}
\title{Gautier and Kitamura (2013) bivariate random coefficient binary response}
\usage{
rcbr.fit.GK(X, y, control)
}
\arguments{
\item{X}{the design matrix expected to have an intercept co... |
919e391d99bea5cf1e9cf6dac65a723f4d862241 | 517fce31bb1501401fa19b80c563c29b7b9a8804 | /functions.R | 614630dc988b6ba331a9349c2a703b4dac076464 | [] | no_license | reich-group/Integrative-statistical-methods-for-exposure-mixtures-and-health | ba3a19373a2ca4548b384a56b223d4f2f530785c | 7e095e4c98728049dbc85a96e6f24669dbefb9f4 | refs/heads/master | 2022-11-05T18:07:10.958232 | 2020-06-24T13:34:06 | 2020-06-24T13:34:06 | 274,676,293 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,729 | r | functions.R | expit <- function(x){ifelse(x>10,1/(1+exp(-10)),1/(1+exp(-x)))}
link <- function(x){ifelse(x<10,exp(x),exp(10))}
log_like<-function(Y,r,eta,N=1){
sum(dnbinom(Y,r,mu=N*link(eta),log=TRUE))
}
log_like<-function(Y,r,eta,N=1){
sum(dpois(Y,N*link(eta),log=TRUE))
}
log_like_nosum<-function(Y,r,eta,N=1){
... |
54ac0ab2e0142ecc836a681ef7457acd0323b017 | 7a08cd1d405ddec1545b548860b18a68b19fa1ac | /man/generate_kernel.Rd | 5b59ecd8cc5b28477f7ae53f620400a399875705 | [] | no_license | wxwx1993/GPSmatching | b27d419ce33c0b516b10713a4bd428f639a1caf1 | d6661dca3a027e00cdea0cc30ada0ed42649bc7b | refs/heads/develop | 2023-08-24T03:11:08.438445 | 2023-02-17T21:53:27 | 2023-02-17T21:53:27 | 233,946,225 | 21 | 8 | null | 2023-02-17T21:52:44 | 2020-01-14T22:12:28 | R | UTF-8 | R | false | true | 356 | rd | generate_kernel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/causalgps_smooth.R
\name{generate_kernel}
\alias{generate_kernel}
\title{Generate kernel function}
\usage{
generate_kernel(t)
}
\arguments{
\item{t}{standardized vector (z-score)}
}
\value{
probability distribution
}
\description{
Generates k... |
c019b0026f1f3ba9e014ed02c9a9c2213c5f5cda | 9ee0ab61b9d870fa5237a2869b60e9e8877f8403 | /man/setAttribute.Rd | 547c4b2e635e3778604897097bfebf16ebbdc53b | [] | no_license | AustralianAntarcticDivision/EPOC | 79390dc3456a9cbacfb64884f10cdcf5fedad393 | 778be35f146197c571bb1ebfb76eb2a629eaad70 | refs/heads/master | 2020-09-09T22:12:49.843987 | 2019-11-14T01:55:36 | 2019-11-14T01:55:36 | 221,583,790 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 987 | rd | setAttribute.Rd | \name{setAttribute}
\alias{setAttribute}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
EPOCObject methods
}
\description{
Set an element attribute in its list with value.
}
\usage{
setAttribute(.Object, item = c("character", "missing"), value=c("ANY", "list"))
}
\arguments{
\item{.Object}{
EP... |
030ad52ed21d6ee994b30b4d786b5a7653ca288c | 30334ffb2670b112715e811b4ac3d3cfd37a3a57 | /Lesson2-Data_Cleanliness.R | 9273336db044d26963cd70f19fa07ba4a7b905d3 | [
"CC0-1.0"
] | permissive | mdcu-spark/R-Manual-for-Sapiens | 2e5c930ab6a14d86b25ebe136c19d056e6b9b2ea | 0f13eb53ce34d2469abd16f6ce637562ee8de1f6 | refs/heads/master | 2022-11-24T00:47:44.045435 | 2020-08-02T13:38:18 | 2020-08-02T13:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,911 | r | Lesson2-Data_Cleanliness.R | ########################################################
# #
# PSYC201 R Lab #
# Lesson 2 - Data Storage & Cleanliness #
# #
###################################... |
88a4bbf9231a2e82945ef20571dcf627fff72346 | 532017b5ba10c5a56df994331914aed1de3c6180 | /Lake_NoiseMgt_Spectra_2015-06-07.R | 8ad54ae31ca957561473e6bdcf72fc1757ed2249 | [] | no_license | CFL-UWMadison/SOSvariance | 25ab291bcc9f325bcf69be59f3cb2164624ff5e7 | 68c16c6cd6a672545c96b5cd63285bf7521e0d9e | refs/heads/master | 2020-03-29T16:04:52.698902 | 2015-06-16T20:59:18 | 2015-06-16T20:59:18 | 37,533,145 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,109 | r | Lake_NoiseMgt_Spectra_2015-06-07.R | # Program to plot spectra for 2-D lake model
# SRC 2015-05-24
rm(list = ls())
graphics.off()
library(multitaper)
# FUNCTIONS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# 2D rate funtion for simulation
dWM.noh = function(M,W) {
rate = c(0,0)
Rden=mq + W^q
# deterministic part of dW/dt w/o load co... |
9048bf50cbfca8ee484d55f08ba8ff10e94bc07d | 3952a65a31e97dfb0d23dfc3e5bbc3fd0d270708 | /03_func.r | 2bcac5cd3dfb80c297460530403deb39ed9c9598 | [] | no_license | jdunic/Dunic-Baum-2017JAE | a9fb1d91b232c2530b6d1e6be413c65169ad1c15 | cb9e7f3673f7d5b082fabcbf94e09315dcb54fa9 | refs/heads/master | 2021-01-12T05:49:10.970449 | 2016-12-23T07:22:14 | 2016-12-23T07:22:14 | 77,206,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,197 | r | 03_func.r | # Change active plot window (quartz())
A <- function(PlotWindow) {
dev.set(which=PlotWindow)
}
# ggplot default colour list for n colours
gg_colour_hue <- function(n) {
hues = seq(15, 375, length=n+1)
hcl(h=hues, l=65, c=100)[1:n]
}
###############################################################################... |
dca5f029a0cbbf1307ecf129ed3f3604b077ca25 | 9b63723928a99c949772da580e3b48fd415de554 | /man/addContrast.Rd | 3bbfb14dea434b41283041e3ae31106a767aa12b | [] | no_license | auberginekenobi/qsea | 1441eaaefbeb8f8a33d5050c2a499595dfc80d4e | 8e38a3aaaf294fef996c4ebf9f2d6280c54dae86 | refs/heads/master | 2020-05-26T20:27:58.553027 | 2019-05-24T06:31:47 | 2019-05-24T06:31:47 | 188,364,113 | 0 | 0 | null | 2019-05-24T06:21:20 | 2019-05-24T06:21:20 | null | UTF-8 | R | false | false | 1,596 | rd | addContrast.Rd | \name{addContrast}
\alias{addContrast}
\title{fit GLMs to reduced model and test for significance}
\description{This function fits negative binomial GLMs to reduced models
defined either by the "contrast" parameter, or by one or several model
coefficients (specified by "coef" parameter) set to zero.
Subsequently, a ... |
9d870849dae9515a212924dff7dc0d9660d5931a | fbce12a04f4981b70f110b556bf2087e2ce86f7b | /man/ITRLearn-package.Rd | 65ae257fb556ebfd6e2c7729b40d6dfe586c55ed | [] | no_license | cran/ITRLearn | 70485fc727ecd4096a21c4290df131636ab3cf59 | b1c68737eafbd0c5b7e159440460f07c44a86110 | refs/heads/master | 2020-04-03T17:16:59.263725 | 2018-11-15T04:10:03 | 2018-11-15T04:10:03 | 155,438,685 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,242 | rd | ITRLearn-package.Rd | \name{ITRLearn-package}
\alias{ITRLearn-package}
\alias{ITRLearn}
\docType{package}
\title{
Statistical Learing for Individualized Treatment Regime
}
\description{
Maximin-projection learning (MPL, Shi, et al., 2018) is implemented for
recommending a meaningful and reliable individualized treatment regime ... |
d507d042b191d30f859038388abf3921334b83db | 3a2a402f434403db37d4f1ad5456185cc5c4f7d7 | /R/generics.R | 9cab8068e4883ea6de06f2e2c5e04091997745a4 | [] | no_license | zdk123/pulsar | 445090f2814f02a6dfc461fc46737583c29b5996 | 9b78ec8dc01f9bf49497e4ecda9335a40d462e18 | refs/heads/master | 2023-02-18T14:26:15.152281 | 2023-01-26T02:25:45 | 2023-01-26T02:25:45 | 40,200,366 | 11 | 8 | null | 2023-02-07T17:19:28 | 2015-08-04T17:59:52 | R | UTF-8 | R | false | false | 8,821 | r | generics.R | #' Print a \code{pulsar.refit} S3 object
#'
#' Print information about the model, path length, graph dimension, criterion and optimal indices and graph sparsity.
#'
#' @param x a \code{pulsar.refit}. output from \code{refit}
#' @param ... ignored
#' @importFrom utils capture.output
#' @export
print.pulsar.refit <- func... |
f9d8efb86dad84207e90b94780a0ec063748fecf | e4f72da406bf3cb54ebb17072c75f131afdb1c08 | /src/simulation/cross_group_comparison/roc.R | f90af8ee64f2889cfc6fcf263f361d846f1df4ab | [] | no_license | ZhuoqunWang0120/LTN_analysis-JASA_1st_submission | 4943114be9b165f0780062e50235c24bc65a8db6 | 22cc297d0fade96cff5ad61bd038602c051f4ee0 | refs/heads/main | 2023-07-15T02:20:14.264335 | 2021-08-17T15:42:41 | 2021-08-17T15:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 987 | r | roc.R | #!/usr/bin/env Rscript
library(ROCR)
argv=commandArgs(TRUE)
WORK_DIR=argv[1]
lambda=argv[2]
for (s in c('single_otu','multi_otu')){
system(paste0('mkdir -p ',WORK_DIR,'/results/cross_group_comparison/',s))
for (m in c('sparse','diagonal')){
cachedir=paste0(WORK_DIR,"/cache/cross_group_comparison/",s,"/LTN/pjap... |
770d5819c44bf5c157563328e13554b0a548f185 | e40a4bb26b368842360bd98a076587bb4bd5a6fc | /Clinical variables/Data correction for plots/Data correction for plots.R | dce13923dd60306600f6bda33b4b11cf1a5e0d82 | [] | no_license | SarithaKodikara/Gene_environment_gut_interactions_in_Huntington-s_disease | 1e6135c2e1801893c58ce15e3ea2509d34a45aed | 1cfe61d4bb0832360e81bd61dba0f7afd43078a4 | refs/heads/main | 2023-04-12T12:32:00.658947 | 2022-09-09T04:19:52 | 2022-09-09T04:19:52 | 416,519,533 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,278 | r | Data correction for plots.R | library(dplyr)
library(readxl)
library(magrittr)
library(ggplot2)
library(ggpubr)
library(car)
library(nlme)
library(stargazer)
library(dotwhisker)
library(sjPlot)
require(xtable)
library(TSA)
library(jtools)
library(emmeans)
library(graphics)
library(tidyr)
library(ordinal)
library(viridis)
library(lmerTest)
library(x... |
c2ec36985a1317217cceffb60a2d357a16ab954f | ceb6862b7e7e67b16a9c0358ae3da58a094e6d73 | /gpr.R | 8bd3427a2578311bc0ccd5b83b9041dddaf72d4d | [] | no_license | andreaskapou/GP | 94fb205506dcc5f6109cb5f3ac1764715989b049 | a9bdce0d10818ebbee332e16b41e423e0bb6deeb | refs/heads/master | 2021-01-20T10:35:40.659056 | 2015-05-05T20:01:48 | 2015-05-05T20:01:48 | 31,949,314 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,025 | r | gpr.R | GP.fit <- function(theta=list(lambda=1,sf2=1,sn2=0.05),covFunc,f,Xs,method="cholesky"){
##=================================================================
# Gaussian process regression implementation. A valid covariance #
# function can be given as a parameter. Two modes are possible: #
# 1) training: if n... |
441b987b4b780a08587b746bb2254579888bfa0e | 44dea5e6256ca234a34271defd2dfabd20f31e49 | /corpusr/man/corpusr.Rd | 69dfdfaac269427c178a2c6d38c01e0b4ebb01c4 | [
"LicenseRef-scancode-public-domain"
] | permissive | charlie-gallagher/text_analysis | 36af8c8ce3c11965951228f6fd3d0a9e72e057ea | 5826c0ac47ab71e9c0c45705f8b56534e8041cd3 | refs/heads/master | 2023-01-18T21:22:01.255021 | 2020-11-26T17:48:39 | 2020-11-26T17:48:39 | 286,875,989 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,369 | rd | corpusr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corpusr.R
\docType{package}
\name{corpusr}
\alias{corpusr}
\title{Corpusr: A Package for Using \code{gutenbergr} as a Corpus}
\description{
Functions for helping you use the \code{gutenbergr} package as a corpus
in the style of the Oxford Eng... |
c31367f6bf9b2338d133abd4b008682eab5953c1 | 5f684a2c4d0360faf50fe055c1147af80527c6cb | /2022/2022-week_36/rebrickable.R | 0060c462e65398cebc5b84dbde27c7d8e7af2fef | [
"MIT"
] | permissive | gkaramanis/tidytuesday | 5e553f895e0a038e4ab4d484ee4ea0505eebd6d5 | dbdada3c6cf022243f2c3058363e0ef3394bd618 | refs/heads/master | 2023-08-03T12:16:30.875503 | 2023-08-02T18:18:21 | 2023-08-02T18:18:21 | 174,157,655 | 630 | 117 | MIT | 2020-12-27T21:41:00 | 2019-03-06T14:11:15 | R | UTF-8 | R | false | false | 3,605 | r | rebrickable.R | library(tidyverse)
library(camcorder)
library(geomtextpath)
library(ggtext)
gg_record(dir = "tidytuesday-temp", device = "png", width = 10, height = 6, units = "in", dpi = 320)
elements <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-09-06/elements.csv.gz')
col... |
fb95f6e8cc6c3a8f3d99364913e133aecaaff38a | fbab6775e9e31ad0ff57cb232bc71a5a3710eef5 | /R/mInfluence.R | fdcf03dbc07aba0aeb569811bb87101adfe8269f | [] | no_license | cran/mosaicManip | a3fbaa9391b75a0386af6be6f2eaca61cf709a70 | b517dba71cc73c38c1cfa12b0bd14bbe7e58363a | refs/heads/master | 2021-01-01T06:00:17.652251 | 2011-12-29T00:00:00 | 2011-12-29T00:00:00 | 17,719,040 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,084 | r | mInfluence.R |
mInfluence <- function(expr, data,
groups=NULL,
col.fitted = 'gray30',
col.influence='red', ...){
if( !require(manipulate) )
stop("Must use a manipulate-compatible version of R, e.g. RStudio")
dots <- list(...)
groups <- eval(substitute(groups), data, environment(expr))
if (!requir... |
cad546dd1173fbc032336ec929b222b0c17a89ed | b45fb01431b05e020bcf12848cc4022cbfc187ab | /simulations/simulated_data_buffalo.R | 201c6867733036e2b4e02f14e5b0b30fe766cb1f | [
"MIT"
] | permissive | Florencehinder/safepaths-datascience | 5510556edf89fcc0a8f75624a3ec82470da0e34b | 0c1d8750d9c627512bcb655925f24bcc31092224 | refs/heads/master | 2022-11-30T14:06:37.041848 | 2020-05-21T03:35:17 | 2020-05-21T03:35:17 | 288,901,370 | 0 | 0 | null | 2020-08-20T03:56:06 | 2020-08-20T03:56:06 | null | UTF-8 | R | false | false | 777 | r | simulated_data_buffalo.R | ## Script for creating city-scale simulated data for testng
# This script takes the simulated datasets at https://zenodo.org/record/2865830#.XoZqadMzaSM and converts them into a format that mimic the data being used by Privte Kit Safe Paths for purposes of testing.
library(tidyverse)
# reading data downloaded from Z... |
00d5c940b1ea6247a72f4bd40abc8fd54d5cdbac | fe63c74a184ab926479de627b178698e9ed16e7c | /CPAD2_Cell_Profiles_And_Demographs_V3.R | cf9dbd8d760224a002b5059cd065efdd0e49683b | [] | no_license | GiacomoGiacomelli/Cell-Profiles-and-Demographs | 5e388909a1b6751997bd8225342510f77acd5c1f | d36b41d292d4e8b12c01f328404817157afb90be | refs/heads/main | 2023-06-24T02:29:06.381577 | 2021-07-27T14:34:17 | 2021-07-27T14:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,743 | r | CPAD2_Cell_Profiles_And_Demographs_V3.R | ############################################################################################################################################################################
#Activate necessary packages
####################################################################################################################... |
415dd3b6e4c0beb017dbdaf56a3f9537ade90a49 | e2bd186fbacd40a0f1c60725f1ea19ce948f2721 | /basic_use.R | 15e3f89db7755821172a52350044800727ffadd4 | [] | no_license | watermelonll/R | 2591cfec1cc0316d7caaeda11d6c53e424c53caf | 2b67425f8929b4fc7565a45232ede559da25dd6e | refs/heads/master | 2020-08-27T18:07:29.224097 | 2019-11-26T04:52:10 | 2019-11-26T04:52:10 | 217,454,875 | 0 | 0 | null | 2019-10-25T05:16:35 | 2019-10-25T05:04:24 | null | UTF-8 | R | false | false | 2,371 | r | basic_use.R | # import class dataset
# \ means special char, need \\ in a location
class <- read.table("E:\\R\\class.csv", header = TRUE, sep = ",")
class
# create new num variable
class <- transform(class, bmi = Weight/2/(Height/100)**2)
class
# sort;
newcls <- class[order(class$Height),]
newcls <- class[order(class$Height, -clas... |
61f2b52eac129a7f3989ecd6a6a8f0f1ba96913e | 6096c4ed54cc123e8e1a98284b608d675ccaaafd | /app/R/plot_results.R | c2daff39c68c1ebf8b88666ba8f94ad236f86830 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thibautjombart/covid19_bed_occupancy | dbeed370cb80f8e79fbaf2ff6feb49648191525c | d7d8ee5df12b1dbaa6b5f7f23575b928fc0541a8 | refs/heads/master | 2021-04-17T11:22:59.797456 | 2020-05-29T15:00:55 | 2020-05-29T15:00:55 | 249,441,528 | 12 | 7 | NOASSERTION | 2020-05-29T15:00:57 | 2020-03-23T13:41:01 | R | UTF-8 | R | false | false | 3,966 | r | plot_results.R | #' Function to plot outputs of predict_beds
#'
#' This function provides custom plots for the output of `predict_beds`.
#'
#' It exists only to wrap `plot_beds` and `plot_admissions`
#'
#' @param x the output of `predict_beds`
#'
#'
#' @author Sam Clifford
#'
#' @examples
plot_results <- function(results,
... |
1f467af481b9a7b59c1575cdde9ed4f7c6773488 | 9e228340172992fbeb1940b4bc24f9041156171e | /cachematrix.R | f5f2048c54f341538983d69327a26375e4f4fffb | [] | no_license | burkhara/ProgrammingAssignment2 | 41ad984e2de3b6b4aacd22ba4184102768bed4db | 2fc4006bbc4b84489a90cc6593b9c8be06e6d42d | refs/heads/master | 2020-12-26T02:59:34.040176 | 2015-06-18T04:25:08 | 2015-06-18T04:25:08 | 37,379,207 | 0 | 0 | null | 2015-06-13T16:38:01 | 2015-06-13T16:38:00 | null | UTF-8 | R | false | false | 1,474 | r | cachematrix.R |
#makeCacheMatrix: This function creates a special "vector" object
#that can cache its inverse. This "vector" is a list of functions to do the following:
#1. set the value of the matrix
#2. get the value of the matrix
#3. set the value of the inverted matrix
#4. get the value of the inverted matrix
makeCacheMa... |
4be380069ec7111640ee2a9d2e042e96893d14b3 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /mortality_code/mortality_estimation/45q15/space_time.r | 3341d5fbd1b2ab0630103822bb9414823c27cde4 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,830 | r | space_time.r | ################################################################################
## Description: Defines the space-time model (2nd stage prediction model)
################################################################################
logit <- function(x) log(x/(1-x))
inv.logit <- function(x) exp(x)/(1+exp(x))
logi... |
19043f40ee82432f2172045b34423cf5da52f38d | 903da089f3ac659f7295a2b1d351981394e8bcdc | /inst/unitTests/runit.mcPaBaLarge.R | afbde627ead8750cba42803a4751831cf2cd6b44 | [] | no_license | cran/mcr | 1f27b59cda2a87be199a8f6534bec6882154b042 | 069b879be631491ed07a54a0f348b1adbebf7867 | refs/heads/master | 2023-02-06T22:38:44.942104 | 2023-01-26T21:00:19 | 2023-01-26T21:00:19 | 17,697,375 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,254 | r | runit.mcPaBaLarge.R | # TODO: Generates 34 testfunctions, one for each testcase taken from the Roche Diagnostics method comparison
# intranet module testcase collection. Results obtained from the approximative Passing-Bablok implementation
# (PaBaLarge) are compared to results of the exact implementation (PaBa).
#
# Author:... |
ba8d98e0df3b8e14ce7efcabb710667108ed5d48 | dee6c5bed839c814c08cad5306d44485352ebfc9 | /R/ipsi.R | ac0fbf6337cbdb1626627d3b3b2cda0fa84b2237 | [] | no_license | ehkennedy/npcausal | 108bc3ce94e2454163ca946335ded2d6ee8cc286 | 56a5ac117a29258b67b94874be662a171b5131f7 | refs/heads/master | 2022-02-27T03:12:28.468368 | 2021-02-25T01:59:18 | 2021-02-25T01:59:18 | 91,638,398 | 73 | 24 | null | 2022-01-31T22:01:11 | 2017-05-18T02:08:13 | R | UTF-8 | R | false | false | 9,277 | r | ipsi.R | #' @title Estimating effects of incremental propensity score interventions
#'
#' @description \code{ipsi} is used to estimate effects of incremental
#' propensity score interventions, i.e., estimates of mean outcomes if the odds
#' of receiving treatment were multiplied by a factor delta.
#'
#' @usage ipsi(y, a, x.tr... |
94c9167ff1c979be7ec707ab01d1bf1bd1375a60 | eea8d9d765e9129d5daca1c56aae1a555daf7677 | /SweepingParameters.R | 06b28f551fc58ff2466a5c02d7a16a551f07326e | [
"MIT"
] | permissive | isaacracine/Bio381Scripting | 8e5e97be38d3d4740da84a0a23ada9e5209828c7 | c79048416b04540fd4f2ad8e20a255820809a9ce | refs/heads/main | 2023-04-16T21:32:49.354471 | 2021-04-28T01:27:03 | 2021-04-28T01:27:03 | 335,397,286 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,553 | r | SweepingParameters.R | # Isaac Racine
# Parameter Sweeping
# 18 Mar 2021
#------------------------------------------------
# writing functions for equations and sweeping over parameters
library(ggplot2)
# S = cA^z describes species area relationship
# the number of species that can be found in relation to the area
#------------... |
e64a4f4a548cc4f8aa0464a909862321eb6068c1 | 5f10af9b2b74606c75f4f7d2181a68f13c09d31e | /visualization_app/shinyApp/ui.R | e7ff5d0fee0b440285738a4e842940509badbcb8 | [] | no_license | latuji/fusion_capstone_project | 13b5291147a92d495bcc3d7805accb5bff9434f2 | 3579767e7a2e66ba39b9f3fc52965aa5eebd3062 | refs/heads/master | 2021-05-30T02:07:24.289109 | 2015-09-09T03:14:13 | 2015-09-09T03:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,768 | r | ui.R | library(shiny)
library(networkD3)
library(dplyr)
library(DT)
data_path <- "../server_get/twitterdata/"
# merge multiple results by desc indexing on retweets amount
tweets <- dir(paste(data_path, "tweets/", sep = "/"))
top20 <- read.csv(paste(data_path, "influencers(20 posts).csv", sep = "/"))
top100 <- read.csv(paste... |
96bf5ab8a6b53e1366b5a082a35643355d297e41 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/gtkEditableGetChars.Rd | 9abce743ec0d30a46b1f8639f0e12bf768b1c453 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 807 | rd | gtkEditableGetChars.Rd | \alias{gtkEditableGetChars}
\name{gtkEditableGetChars}
\title{gtkEditableGetChars}
\description{Retrieves a sequence of characters. The characters that are retrieved
are those characters at positions from \code{start.pos} up to, but not
including \code{end.pos}. If \code{end.pos} is negative, then the the characters ... |
5022c497f89f91b83dc89ad0eb755c1d5ecba1f2 | 18b7a97254bf4f70adc6e4a7f1924e1e032f0878 | /FOR6934/HW62a.R | 7b12b9a4b895af3ec9b2c56ee9a8bb7fe36b2a05 | [] | no_license | hyshenmeng/Phil_Project | 11ab66fc4d39a00448b38573887d3bc62dea0b42 | 0516d470ac48265c145488c526f7ee3d98ac7ea2 | refs/heads/master | 2021-03-22T02:16:45.644126 | 2017-09-25T02:36:05 | 2017-09-25T02:36:05 | 89,524,781 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,866 | r | HW62a.R | set.seed(1111)
library(rjags)
#load data
hw6<-read.table(file="F:/HW6.txt",header=TRUE)
x=hw6$x
dataList=list('x'=x)
#specify model
modelString_f="
model{
for (i in 1:3){
x[i]~dnorm(mu_f,prec)
}
for (i in 4:15){
x[i]~dnorm(mu_m,prec)
}
mu_f~dnorm(0,0.01)
mu_m~dnorm(0,0.01)
prec~dgamma(1,1)
}
"
writeLines(modelString_... |
82e3111d0942d7243a1d39da51c33c6cb8b61fdc | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/distr/examples/distrMASK.Rd.R | 2bd00b570157cf223c31590fba3ec60acafdfcea | [] | 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 | 214 | r | distrMASK.Rd.R | library(distr)
### Name: distrMASK
### Title: Masking of/by other functions in package "distr"
### Aliases: distrMASK MASKING
### Keywords: programming distribution documentation
### ** Examples
distrMASK()
|
2fe510f2a8d1e1f91c7ff6afa5b680300776f3a6 | 2d4c54ce02f33aa32d45e50f5eae21f3b7646db3 | /man/transectHeading.Rd | f26044eb92c0995691a55f00aace9936f813cbb1 | [] | no_license | bemeneses/rivSurveyR | 6100490cbd2934891eeb9eaee3175d1856cc4801 | 097ae8487e6553de2618314915a793bf20e0a8af | refs/heads/master | 2020-03-14T13:23:15.241829 | 2018-04-15T21:24:28 | 2018-04-15T21:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,175 | rd | transectHeading.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transectHeading.R
\name{transectHeading}
\alias{transectHeading}
\title{transectHeading}
\usage{
transectHeading(x, y, velE, velN, depth, flowHeading)
}
\arguments{
\item{x}{A vector of x coordinates.}
\item{y}{A vector of y coordinates. Mus... |
7bd23aaf02ae3d4c9a553468e2273472a0678a0a | 551b9335dcc91791535095126beb86b4bd132a06 | /Analysis/colorfunction.R | 666a71480213afe67f3f88b5fe74217e5e8ee8b5 | [
"MIT"
] | permissive | dungates/ImagePlotting | 214a8d4488327f8e0e6e16c85fd119277c641cf8 | b8bf80a4a086e6938fa0c159147a9822a13d489c | refs/heads/master | 2023-07-15T15:50:44.380292 | 2021-08-11T17:52:30 | 2021-08-11T17:52:30 | 325,050,470 | 1 | 2 | NOASSERTION | 2021-06-25T20:32:55 | 2020-12-28T15:41:32 | R | UTF-8 | R | false | false | 1,901 | r | colorfunction.R | # color distance
library(colordistance)
colors <- function(X, Y) {
loader <- loadImage(images$local_path, sample.size = 5000)
plot <- loader$filtered.rgb.2d
plot2 <- data.frame(plot)
mean_red <- mean(plot2$r * 255)
deviation_red <- sd(plot2$r * 255)
mean_blue <- mean(plot2$b * 255)
deviation_blue <- sd(pl... |
c830b32eefc6afe816bce7993f708c0d1b9dd594 | 93a78245d48f93e652ae3d1717613966e40f21b4 | /man/knitr_colours.Rd | 9f82e499947513badeb4069bfd7d09cc57118331 | [] | no_license | theoroe3/jrNotes | 9e08737a594909d69ee82c7716711c4df77c4540 | 213bd237edbc6eb0b5caa8f018839279bb200760 | refs/heads/master | 2021-08-07T03:06:18.494378 | 2017-11-07T11:27:46 | 2017-11-07T11:27:46 | 108,836,307 | 0 | 0 | null | 2017-10-30T10:36:07 | 2017-10-30T10:36:07 | null | UTF-8 | R | false | true | 431 | rd | knitr_colours.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitr_code_hooks.R
\name{knitr_colours}
\alias{knitr_colours}
\alias{knitr_formatting}
\title{knitr code hooks}
\usage{
knitr_colours()
knitr_formatting()
}
\description{
These functions were hacked by Jamie. No-one really know what they do,... |
4004d564164b479da3cc592a6db985e5ce1ce399 | df1c4feee3da7e39f233fa45ec4dc34338d1a300 | /man/plot.pafm.Rd | 9f6317c8ab48954dc6f80457756480da25ff74a9 | [] | no_license | AvinashAcharya/factorAnalytics | 1abf7e436417f63f938504733feb791186805e91 | dd3572c5454e4f1691bbf76009144931383983a6 | refs/heads/master | 2020-04-05T15:17:00.784572 | 2018-10-01T22:14:56 | 2018-10-01T22:14:56 | 59,917,661 | 25 | 20 | null | 2016-05-28T22:55:24 | 2016-05-28T22:55:24 | null | UTF-8 | R | false | true | 1,763 | rd | plot.pafm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.pafm.r
\name{plot.pafm}
\alias{plot.pafm}
\title{plot \code{"pafm"} object}
\usage{
\method{plot}{pafm}(x, which.plot = c("none", "1L", "2L", "3L"),
max.show = 6, date = NULL, plot.single = FALSE, fundName,
which.plot.single = c("non... |
6396e6e9d8a3a7738ed850fe6f3cfb898ecfe11f | 77c813398c5374f0f07598cd3a39af3be8747f2f | /Machine Learning with R/Lecture/lecture1_1.R | 62b1fcb03b4b92c5ba124511840bc665adea054f | [] | no_license | Kaicheng1995/CS_Intro | 5fa2808939f43a27a5fbe1da9308472181dff06e | f8efaf57b91029ddc30aaf2bd21fac52de576f24 | refs/heads/master | 2023-01-31T02:48:52.735772 | 2020-12-14T19:18:09 | 2020-12-14T19:18:09 | 240,658,242 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 443 | r | lecture1_1.R | # Scrape movie list
install.packages('rvest')
install.packages('stringr')
install.packages('dplyr')
library('rvest')
library('stringr')
library('dplyr')
# download page info
imdb = read_html('https://www.imdb.com/title/tt4154756/')
director = imdb %>%
html_nodes(".summary_text+ .credit_summary_item a") %>%
html_... |
0d5428ebb595a643aa752dbc393e398969726a4f | aec871d843c4bdb8297980ed4b7662834413b891 | /homeworks/taller.R | 21e31768e732ba627b5802b6c0ef7f732bcacbe0 | [] | no_license | JoseCortezz25/R-Codes | 28b7c0f262e15b8b56bd6bfed7ecb839fb803bc7 | 082935263bdb09a75c357c0ee4b3d1ac145e1729 | refs/heads/master | 2023-03-20T10:51:11.190228 | 2021-03-11T19:40:02 | 2021-03-11T19:40:02 | 345,161,189 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,105 | r | taller.R | #revisando estructura
class(est_pacientes)
#conversion del tipo
pac <- as.matrix.data.frame(est_pacientes2)
pac2 <- as.matrix.data.frame(est_pacientes2)
pac
pac2
#otra manera
if(pac[,1] == "low"){
pac[1,1]
}
#otra manera (optima pero mas o menos)
ifelse(pac[,1] == "low", "bajo", pac[,1])
#case when (debo importa... |
1140be37eaf7f7e6ac224bb27942a50adb2c6923 | ff6cd64471c3dd38fb4b8ed3d5b5f816e9450063 | /rangesurvey/man/reorder_table_columns.Rd | 2274a629ac7ddf0d837108c181a2e9cd56382a39 | [
"MIT"
] | permissive | JamieCranston/RangeShift_survey | c9dcc97e9a433079138633f23f97b59c39b777e0 | 71f9318f650bc9e02389c227c77b16cfda2305cb | refs/heads/main | 2023-04-14T02:46:13.075353 | 2022-03-20T12:08:55 | 2022-03-20T12:08:55 | 471,427,098 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 373 | rd | reorder_table_columns.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reorder_table_columns.R
\name{reorder_table_columns}
\alias{reorder_table_columns}
\title{reorder_table_columns}
\usage{
reorder_table_columns(data)
}
\arguments{
\item{data}{respondent_table_clean}
}
\value{
respondent_table_clean with reord... |
fe83248aace30a26969d5409c12cc7dd58fc91d5 | 56e22dd051b4ecc6bf96a7fa93d6dcecc74eebcb | /R/utils.R | b55e31b7a23d43ea7312c1f2c1c0da601718802f | [
"MIT"
] | permissive | yjunechoe/hrbragg | 44337b14d1a23b3d3757ac5dae3c2899913ff01b | 8f8b1f098d02329632fff26a89083237fa8cc75f | refs/heads/master | 2023-06-14T13:32:21.889462 | 2021-07-10T12:36:19 | 2021-07-10T12:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 329 | r | utils.R | is_windows <- function() .Platform$OS.type == "windows"
is_mac <- function() Sys.info()[["sysname"]] == "Darwin"
is_linux <- function() Sys.info()[["sysname"]] == "Linux"
platform <- function() {
if (is_windows()) return("win")
if (is_mac()) return("mac")
if (is_linux()) return("linux")
stop("unknown pla... |
2c433dafb0e31e5da072353f7b4158cc8aeb105d | 549f43e85a073d6c7b992897c526039da6bcb1b1 | /code.R | 7bdd191a24575a19b1caaec79f28ef47ea88b4f2 | [] | no_license | snekkje/RepData_PeerAssessment2 | 3ddd3baa608fed8932635712d73431a0a8b4a2ee | bbb8d1d9becc6887634ce1ee8374b83b42074d03 | refs/heads/master | 2021-01-10T03:33:28.404461 | 2016-03-02T09:27:05 | 2016-03-02T09:27:05 | 52,649,465 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,457 | r | code.R | library(dplyr)
library(ggplot2)
#temp <- tempfile()
#download.file("https://d396qusza40orc.cloudfront.net/repdata%2Fdata%2FStormData.csv.bz2",
#temp, mode = "wb")
#StormData <- read.csv("here.csv.bz2")
#unlink(temp)
StormDataHarm <- select(StormData, EVTYPE, FATALITIES, INJURIES)
StormData... |
e68547bb4e6df770db94f16b07abef97f21d4f0c | 1cce4f16e7319b6bc7371158af74662a61c7cb88 | /ui.R | 156ba7c5f94f1737720b35920d7f672363369eb1 | [] | no_license | cralphb/Gears | d755655c60c70867ae5927394b4034c0f58d85e2 | 75e4ad3f043dc802136d9aabd9841b1f112b7a62 | refs/heads/master | 2020-04-18T08:50:37.958741 | 2016-09-11T12:16:10 | 2016-09-11T12:16:10 | 67,912,202 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,016 | r | ui.R | #
# This is the user-interface definition of a Shiny web application
# that return miles per gallon based on parameters entered.
#
# If viewing this file in RStudio, you can run the application by
# clicking the 'Run App' button above.
#
# You can find out more about building applications with Shiny at
# the followin... |
8468ebf22aa544f8837cbefd79e2a890bbf26cd2 | 7270949bfee2dc82a7bd8dbc6de44c56d77fb514 | /R/sem.factorcor.R | b627aa97918e171db923623a18cca1be6aca8a1a | [] | no_license | nemochina2008/semoutput | 06b654c3474e0884a9d0ff8b804ad9a7463ebed0 | ac4d03acb80e8b0fd8f07c011f30abe10fb073b6 | refs/heads/master | 2020-03-27T19:23:00.649185 | 2018-08-31T20:58:26 | 2018-08-31T20:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,248 | r | sem.factorcor.R | #' An SEM Output Function
#'
#' This function will display a table of Latent factor correlations
#' @param x results from a cfa() or sem() lavaan model
#' @param standardized logical whether to include standardized loadings (default = TRUE)
#' @param factors list c() of factors included in the model
#' @param print Cre... |
0d65d26cf0a3be4892063405953aa2432af284ea | f435725fac5d146472905c0a05a5d76cf1e88077 | /corr.R | 223cdd88c0371eaf1af15194e02e0974c9d6f33c | [] | no_license | sunilharris/reflections | 0717f312458a6a41fbb33d49e41f3ac56547d3e8 | 74b0217fdf8387bb1917e27964dfe41e413ea519 | refs/heads/master | 2021-01-10T03:10:44.370576 | 2015-10-10T13:42:10 | 2015-10-10T13:42:10 | 44,011,906 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,552 | r | corr.R | corr <- function(directory, threshold = 0)
{
# checking if the current directory is the same as the current
# if so, we dont have to set the working directory
# setting same directory results in error
# assuming that if the current workspace ends with the directory entered
# it ... |
158cf5f825d0dc02edb1e74323cb941bcd962889 | fb8661959f04f1255789b29a37de80c1bc1aad6a | /iSumo.R | 4796cd8490542701dcea87008844b8f2c0edabf3 | [] | no_license | xtYao/iSumo | b45cd1bf326eb02f1a46a1b387264146f77ac340 | 36f97ade4bf171aa5baddb3ee515bcf108663abe | refs/heads/master | 2020-09-17T10:36:25.746339 | 2017-01-04T04:36:15 | 2017-01-04T04:36:15 | 66,251,681 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 33,479 | r | iSumo.R | ## TODO: in the final release, remove these two lines
setwd("~/gitLcl/iSumo/")
load(".RData")
## loading library
print("Loading required R packages...")
tryCatch({
library(data.table)
library(reshape2)
library(RMySQL)
library(ROCR)
library(ggplot2)
library(UniProt.ws) ## bioc
library(gProfil... |
a46f3efedaabc829e248bf073f960feb467767a4 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /gear/R/ganiso_d.R | b61d09fc38b7dbeec310d6fb9fdf02a8b6365fed | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,499 | r | ganiso_d.R | #' Anisotropic distance-related characteristics
#'
#' Computes necessary distance-related characteristics when
#' there is geometric anisotropy. This is essentially an
#' internal function to \code{\link{evaluate}} a
#' \code{cmodStd} object produced by \code{\link{cmod_std}}
#' when the anisotropy ratio differs ... |
7f04acbccbc1b09649664e80fbdfb0df00342624 | 3fe7b25ac1e9f824a531fbf7c43bad84e9ac7d9b | /WESyS/epa-biogas-rin-HTL-TEA/studies/FY18/sensitivity/src/ee/scratch/ee.test.R | 6ac4179801c781d10115587991c66a12429b6a3d | [] | no_license | irinatsiryapkina/work | 5f3b67d36ffc18cb1588f8a3e519a76cdfc52e81 | 1aaecb300d4d0082df36fd79748145b22d1d7acb | refs/heads/master | 2021-01-16T10:25:55.539383 | 2020-02-25T18:58:31 | 2020-02-25T18:58:31 | 243,076,845 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,916 | r | ee.test.R | rm(list=ls())
R_LIBS= ("/home/R/library")
options(scipen=999) #turn scientific notation off
options(stringsAsFactors = FALSE)
setwd ("~/GitHub/epa-biogas-rin/studies/FY18/sensitivity/src/ee/")
# Load libraries
library (dplyr)
library (data.table)
# Elementary Effects Function 1: ee
# **** DESCRIPTION HERE *****
ee... |
53113d9a002cc5282a0de6cdfa5faffd6efc0f8d | 0696fb5fab8c614cf887fbbaaa61d4908f7d3ab7 | /doc/nlraa.R | 23dc88ed375a2661ffbba8b4998c69641e36edfa | [] | no_license | femiguez/nlraa | 6dbb4fef5b2f0d4a01a73b9d27524ab82b5db3db | aeb631e113be069ca5998de344b95bc240a5498d | refs/heads/master | 2023-06-21T23:39:29.731687 | 2023-06-13T15:59:29 | 2023-06-13T15:59:29 | 202,008,439 | 19 | 4 | null | 2021-08-11T18:18:10 | 2019-08-12T21:01:53 | R | UTF-8 | R | false | false | 2,819 | r | nlraa.R | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, fig.width = 7, fig.height = 6)
library(ggplot2)
library(nlraa)
## ----apropos------------------------------------------------------------------
apropos("^SS")
## ----sm----------------------------------... |
9576433f4a5c8cde29371285b50332dfce9892c9 | e807cb9f4c9d9f44726f8b70ad048a7c3fbfd566 | /ui.r | 2673f345860c343d89207176a338b52487dea6ca | [] | no_license | richardsun-voyager/ExponentialDistributionApp | 7c2f44acde7faa14eb488f66224d751bf901f3d0 | ceb459d0032da3f26ed0a32de462c79cc397c1bd | refs/heads/master | 2021-05-29T15:17:56.641559 | 2015-05-21T05:06:07 | 2015-05-21T05:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,108 | r | ui.r | shinyUI(navbarPage("Exponential Distribution Simulation Navbar!",
tabPanel("Plot",
sidebarLayout(
sidebarPanel(
h2('Exponential Distribution Simulation Settings'),
sliderInput('lambda', 'Numeric input, labeled lambda', 0.05, min = 0.05, max = 1, step = 0.05),
numericInput('popSize', "Popula... |
e1e315fe11eddc83b5e3a12ee88f111ee205dd7a | cf2cb09f424281adde2c9411a6a2cea8011b01e6 | /R/addCrispraiScores.R | d146e5bb202ebf957fb38f761a5b493350ea7aea | [
"MIT"
] | permissive | crisprVerse/crisprDesign | b58eb93beaf1699b1eb585875939d0249d0dce4c | 98724dbafe87863723bf829f9300cafa5852c130 | refs/heads/master | 2023-07-22T06:35:25.615889 | 2023-07-19T18:09:09 | 2023-07-19T18:09:09 | 523,800,050 | 11 | 3 | MIT | 2023-07-19T18:09:11 | 2022-08-11T16:48:52 | R | UTF-8 | R | false | false | 7,100 | r | addCrispraiScores.R | #' @title Add CRISPRa/CRISPRi on-target scores to
#' a \linkS4class{GuideSet} object.
#' @description Add CRISPRa/CRISPRi on-target scores to a
#' \linkS4class{GuideSet} object. Only available for SpCas9, and for
#' hg38 genome. Requires \pkg{crisprScore} package to be installed.
#'
#' @param object A \link... |
1fc4682fcb94c7052510f3f99f2388e8d3da093a | 983a7565e1aac16ac2d9a39ef053958df7a1f3f3 | /Shiny app/evalue/startup.R | 15a3324dced324d596e355fe898387b111d8d6a8 | [] | no_license | JBarsotti/evalue | f8edf364862b876450720345f8f9107d5b4bdca4 | 3d5e4de24fb2c7f554673f5b5232bc6d24e42409 | refs/heads/master | 2023-03-15T19:24:41.315026 | 2020-06-08T16:41:52 | 2020-06-08T16:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 184 | r | startup.R |
library(shiny)
library(EValue)
library(plotly)
# try to fix deployment problem
library(purrr)
library(plogr)
# keeps original error messages
options(shiny.sanitize.errors = FALSE)
|
092c2f03dab7e37e6c8805987372e88f80254f30 | 006c115229805aec6be748937f77ad8b5cb2588f | /man/createEvaluationCohort.Rd | 4ac037910fb1121330e0b5a27f6e6160ee7a452e | [
"Apache-2.0"
] | permissive | OHDSI/PheValuator | a833780b529406cf76d94ceaf43b75e053000fe0 | 5a04c84102495dd2b6679fd6bf02a12edd0fa2e2 | refs/heads/master | 2023-09-01T13:29:40.052357 | 2022-04-25T10:50:54 | 2022-04-25T10:50:54 | 160,824,960 | 18 | 10 | null | 2021-12-17T11:48:51 | 2018-12-07T13:06:25 | R | UTF-8 | R | false | true | 5,497 | rd | createEvaluationCohort.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CreateEvaluationCohort.R
\name{createEvaluationCohort}
\alias{createEvaluationCohort}
\title{Create the evaluation cohort}
\usage{
createEvaluationCohort(
connectionDetails,
oracleTempSchema = NULL,
xSpecCohortId,
xSensCohortId,
pre... |
fb5a622d34115618e0ac9e1fa1c82ff5214f0f9c | b245a9b3d3565994d884a4f0649aad4d8ee267da | /admixture analysis/genABEL.R | 9a258844d3a7d8073ef67713b8f53c0debc116e2 | [] | no_license | AnjaWestram/Littorina_hybrid_zone_1 | b14f9cd236edfffa966c646368f6443ad304ec43 | 19a1a94f660e72a5c4aca175703d00c37c10a7df | refs/heads/master | 2020-03-22T13:21:36.643611 | 2018-08-06T08:08:39 | 2018-08-06T08:08:39 | 140,101,937 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,713 | r | genABEL.R | args = commandArgs(trailingOnly=TRUE)
library(GenABEL)
#### load and explore data
dat <- load.gwaa.data(phenofile=args[1], genofile=args[2], force=TRUE, makemap=FALSE, sort=TRUE, id = "id")
#### QC
# QC -#no control for hardy weinberg here (option p.value=0), control for maf of given value, defaults for SNP an... |
b1aa06eda940f7760aff584452d04b625af8160b | da2aded3040e88b9b7e375a5c79bf1a4b90b0556 | /R/ctm_method.R | 21b67c1025bbfe2314ff9793c22a27e6be29d8eb | [] | no_license | PolMine/polmineR.misc | f1c3cca7651dbd91fd7fce92103d11a5e8270be1 | 03dfef42f3242ce3120a45f283a61b89ebb903d4 | refs/heads/master | 2023-06-09T01:20:29.818197 | 2022-11-17T13:27:23 | 2022-11-17T13:27:23 | 54,013,177 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 982 | r | ctm_method.R | # #' @examples
# #' \dontrun{
# #' sz2010 <- partition("ARENEN", list(text_date=".*2010"), method="grep", pAttribute=NULL)
# #' dates <- sAttributes(sz2010, "text_date")
# #' sz2010 <- partition_bundle("ARENEN", def=list(text_date=".*2010"), var=list(text_date=dates), pAttribute="word")
# #' sz2010tdm <- as.TermDocum... |
2596229e5ad5fafb1156dd00dbbb21b583375824 | c991bd9aa20b6fc005cb619b414f5b190eb2a073 | /Scripts/BackupHistory/VisualizingBackupHistory.R | faf4e22a058118aa256a4cdf94d95bddc3eb6b3f | [] | no_license | sqlshep/SQLShepBlog | f574080f5ea517c526308185046fdeeafb6d3274 | ac0fc616759b83a40b4a66f31f1caef9d87fd435 | refs/heads/master | 2022-10-15T01:38:57.416362 | 2022-09-30T16:05:36 | 2022-09-30T16:05:36 | 77,758,171 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,443 | r | VisualizingBackupHistory.R |
#install.packages("odbc")
#install.packages("ggplot2")
#install.packages("dolyr")
#install.packages("lubridate")
#install.packages("scales")
library(odbc)
library(ggplot2)
library(dplyr)
library(lubridate)
library(scales)
Sys.setenv(TZ='GMT')
MSDB <- dbConnect(odbc::odbc(),
Driver ... |
3e4a96399d54151cbd91e4bcf1fc709ceef83950 | 77b59cfb21a8a554e791f7c4d76bf6d0ca71ec30 | /arraycomfun.R | c65a3e75095ded722744c762009ec9ae7a2120a2 | [] | no_license | christinery/test_code | 5db7386d0ff75508b1aefedf15a67bcad23a95bc | c56c4b01262b28737643bb1425464b7a6b6b42a4 | refs/heads/master | 2020-03-28T11:28:10.797291 | 2018-10-23T00:02:49 | 2018-10-23T00:02:49 | 148,216,878 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,924 | r | arraycomfun.R | ################################################################################
## This file include some elementary computation for array mentioned in the ####
## file "mainQRnoweight" for paper "Copula-based M-estimate for FVCM" ##########
#############################################################################... |
d373dfbdc23ac5602c26df435ef2b2b611ea6015 | d5255e7691f99d2517892e6e690ec291646b850b | /football_Kmeans_t_1.R | 7302716f6d2d5e4fcaf34162e582296e67ba3705 | [] | no_license | kjshalemraj/Football-Player-Segmentation-using-Kmeans | eb94dfb91f7d22866cfdd040e1fa005d304b44d0 | aca3b853f10b1ed9dd88fa82740628d26566a329 | refs/heads/main | 2023-06-25T00:24:00.731031 | 2021-07-30T06:35:42 | 2021-07-30T06:35:42 | 390,958,188 | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 63,298 | r | football_Kmeans_t_1.R | #God is good all the times
#libraries
library(ggplot2)
install.packages("factoextra")
library(factoextra)
library(RColorBrewer)
library(dplyr)
library(tidyr)
#Loading the data
fb = read.csv("C:/Users/Dr Vinod/Desktop/football_ kmean/data.csv",
stringsAsFactors = TRUE)
fb$Name
dim(fb)... |
095406aaffff99052dfc7b4e03038fdc02332cf1 | 06aa50fc00e7c7ebbdec19450f531222a23aa0d7 | /man/get_pums_race.Rd | d9cec89e70a2f93b609a1de1c408e27a6c1e3db3 | [
"MIT"
] | permissive | djliden/youthhealthr | 5c4074d90956a1bf287c67c26124e71f3a9a427f | a1c2958a5d46d77b81fb1c01b81e53efa8941ee9 | refs/heads/master | 2023-03-17T06:05:39.024302 | 2021-03-16T22:15:38 | 2021-03-16T22:15:38 | 305,777,929 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 561 | rd | get_pums_race.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/youth_demo.R
\name{get_pums_race}
\alias{get_pums_race}
\title{}
\usage{
get_pums_race(
age_breaks = c(0, 14, 24, 99),
age_labels = c("0-13", "14-24", "25+")
)
}
\arguments{
\item{age_breaks}{min age, max age, and any breaks in between (n... |
410766b7e1d23bdc384585fd98d7a721aca8b9bf | 0ccdd0abbf3d39f1c5e971e26a60f53719ba6fb4 | /inferential_stats/inference/SamplingDist.R | 8d32b4385d80faf6c8f7037c34fffc66df73bed9 | [] | no_license | pickle-donut/RScripts | 9a87bd616ea3cd89a94c98e8438c3bc80432392b | 2a60daf6cfbeaa194f696daf699b387544f8f163 | refs/heads/master | 2022-11-09T00:01:57.999428 | 2020-06-15T23:27:00 | 2020-06-15T23:27:00 | 270,508,904 | 0 | 0 | null | 2020-06-15T23:27:01 | 2020-06-08T03:06:02 | R | UTF-8 | R | false | false | 5,110 | r | SamplingDist.R | # install.packages("moments")
# Samples and Sampling Distributions
#
library("moments")
#
# First sample
X1 <- c(rnorm(50, 10, 5))
#
print(paste("The sample mean is: ", round(mean(X1),4)))
print(paste("The sample standard deviation is: ", round(sd(X1),4)))
print(paste("The sample median is: ", round(median(X1),4)))
pri... |
d32c06223e450e45402cd738815ce1bbded7f9b9 | da240952753caf3a3b79e777b1bfe24140aaba86 | /mhl1_inv/summarise_pi_inv.R | 4757e00dde1adad26332f95bcb240b7c078f3a03 | [] | no_license | cooplab/hilo | ea5ea9d472ee7cf2cab17aa83e8f568c54fce34c | 64483aaf0abd40d25846969b8732e07abf9b7667 | refs/heads/master | 2023-08-18T13:03:07.458675 | 2021-09-20T20:12:10 | 2021-09-20T20:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,028 | r | summarise_pi_inv.R | #!/usr/bin/env Rscript
library(dplyr)
library(xtable)
# this script summarises pi within zea groups
# for the maize and mexicana allele clusters
# across the putative inversion
# load variables from Snakefile
colors_file = snakemake@params[["colors"]]
# colors_file = "colors.R"
PREFIX = snakemake@params[["PREFIX"]]
#... |
ab64967ce84fd798a6159f524139ebcd76da5cd8 | 3d3f11d6002a505483003a59e0a94264ddd86757 | /R/nnls.R | d744fa749b9740b3b90f35eae95ef1bc5c10e975 | [] | no_license | cran/lqa | 75a867677d54e2e1b84dbe90822628adf42e6238 | fb0b5a6a7e8ce9028ac5f48adee8ffa8b3434d0b | refs/heads/master | 2020-06-03T14:21:37.296678 | 2010-07-12T00:00:00 | 2010-07-12T00:00:00 | 17,697,200 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 96 | r | nnls.R | nnls <- function (cvec, nnls.y, nnls.x)
{
sum ((drop (nnls.y - nnls.x %*% cvec))^2)
}
|
93eb06c771cc14c5764afefcc180db0f2ffc8b67 | 237bcbdc6b09c57b251191471359eeefb8014410 | /Analyse_project_MERGE_AML_ANALYSIS_2015_F.r | 18e77f59f00e36ad95a97127e444e318ab871af8 | [] | no_license | achalneupane/rcodes | d2055b03ca70fcd687440e6262037507407ec7a5 | 98cbc1b65d85bbb6913eeffad62ad15ab9d2451a | refs/heads/master | 2022-10-02T20:35:18.444003 | 2022-09-09T20:53:03 | 2022-09-09T20:53:03 | 106,714,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 385,255 | r | Analyse_project_MERGE_AML_ANALYSIS_2015_F.r | ## /media/UQCCG/Sequencing/Data/Sequence_Genotypes/2015/2015-03-16_AllAMLandLung/Analysis/Vcf_Merge.GQ-20.Min.ALT-14_2015-03-16_AllAMLandLung.ARE_RELATED.Fri_Jul_03_2015.genetic_QC.txt
#### red in per patiant shared regions....exampls
data<-cbind(c("chr1","chr1","chr1"),c(10,50,50),c(30,70,100))
data2<-cbind(c("chr1","... |
72cbb04cd8616c44dc35b3d8af04bf670e7a9f23 | 9b19a0739e65e8307c13a25640a5f965966913e7 | /ui.R | 126414c5982af0c064a603a967b0631de6490bb6 | [] | no_license | Lrem32/Final_Project | 512a2fc503d9096b93983cbb5a9a75361f098c76 | 7ab68699e8af75341bd3bf4c2ed15189a32e6ca2 | refs/heads/master | 2020-11-24T04:27:56.034888 | 2019-12-14T04:50:13 | 2019-12-14T04:50:13 | 227,964,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,260 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinythemes)
# Define UI for application that draws a histogram
shin... |
67a8650173e18ca9d834ba34be3de6aa4bd7527c | fa6d897dd17890085b98ddd3a1f89f3cc144c4aa | /R/mod_plot.R | 1316c2c5363549d8097d94503c161538d17a0511 | [
"MIT"
] | permissive | ColinFay/puzzlemath | 6fa47ca5b71283a3cca6f61c83bebfc91a535bd2 | 53c4d90e3fb92cec84312feec69dc4b5b2a5a451 | refs/heads/main | 2023-01-24T01:47:53.479415 | 2020-11-26T21:37:35 | 2020-11-26T21:37:35 | 316,332,112 | 0 | 0 | NOASSERTION | 2020-11-26T20:37:23 | 2020-11-26T20:37:23 | null | UTF-8 | R | false | false | 2,286 | r | mod_plot.R | #' start UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList plotOutput
plotUI <- function(id){
ns <- shiny::NS(id)
shiny::tagList(
shiny::plotOutput(ns("plot"))
)
}
#' start Server Function
#... |
09ad315e71c9c0f9a4924c424fd77d168ac29325 | eef7754e99418c7c040e2bc18e95b3263d542426 | /man/reordercategories.Rd | 37f2a7213539363d373c7659d44e35e26872ff9e | [] | no_license | cran/cabootcrs | e63b5ce9d86b5f2b973c19b8a250095f81f81c55 | a5e3efc3f1e555b547a9b0ffb266052bee11a770 | refs/heads/master | 2022-03-06T06:23:19.926820 | 2022-03-02T22:00:02 | 2022-03-02T22:00:02 | 17,694,910 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,210 | rd | reordercategories.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defineclassesandfunctions.R
\name{reordercategories}
\alias{reordercategories}
\title{Reorder categories for chosen variable in MCA case only}
\usage{
reordercategories(x, varno, newcats)
}
\arguments{
\item{x}{An object of class \code{\linkS... |
055cdd1b78effe843e83db7d4a1bf82455a4d447 | 13d8fceceaa2f2a7b774490d61537e9f416a8d11 | /Tea_analysis_Prinn.R | 4462246c95c84a85e19dd0441ef5e412276ddd14 | [] | no_license | JoeRothwell/Polyphenols | 5e9be000a17692a32b00bbc7a49e28b15934faa0 | e31c6303b1247c7d867ecff1801bc9490620d129 | refs/heads/master | 2023-06-27T18:08:46.790634 | 2023-06-16T21:06:52 | 2023-06-16T21:06:52 | 180,323,803 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,008 | r | Tea_analysis_Prinn.R | # Tea analysis for Prinn
# Original dataset ----
# had one replicate per sample only
# tea <- read.csv("data/Tea_PCA_pp.csv", header=T)
# new set of data 19-feb 2015
teanew <- read.csv("data/Teanew.csv", header=T)
# discard altitude data and subset observation names separately
cmpds <- teanew[ , 5:71]
pc <- prcomp(cm... |
fd6b18bfbf04235186b686d1362b6ace8b59cb6a | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.database/man/memorydb_create_acl.Rd | ad6b82f9d5492bf9b27f6e6b2711ec6d5d5d06e3 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 893 | rd | memorydb_create_acl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/memorydb_operations.R
\name{memorydb_create_acl}
\alias{memorydb_create_acl}
\title{Creates an Access Control List}
\usage{
memorydb_create_acl(ACLName, UserNames = NULL, Tags = NULL)
}
\arguments{
\item{ACLName}{[required] The name of the Ac... |
ddd7278a114c5c349bffce30ff0ff2bea351b9c5 | 29585dff702209dd446c0ab52ceea046c58e384e | /eigenmodel/R/rmvnorm.R | afc9cedf1eb0e17a0b3f547bfd66658f310fc92d | [] | 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 | 168 | r | rmvnorm.R | "rmvnorm" <-
function(mu,Sig2){
## sample from multivariate normal distribution
R<-t(chol(Sig2))
t(R%*%(rnorm(length(mu),0,1)) +mu)
}
|
f868af15646f963fa811ec388cb75dd12576bbdc | 8577e9d70acc9b3383684b8aedd5bdc36b72751d | /data-raw/cat_documentation.R | 5b321743e14769ae3e03ddcaeb06d49f590aa16a | [
"Artistic-2.0"
] | permissive | Liuyangying/curatedMetagenomicData | f6a9bffb45e2e3b71d3429d798a8bcd2fe309aa2 | 9c5f2bfa7c15c839f30049a9ec41ca57c6393d3f | refs/heads/master | 2020-05-20T05:13:08.761177 | 2019-04-25T14:34:05 | 2019-04-25T14:34:05 | 185,399,986 | 1 | 0 | Artistic-2.0 | 2019-05-07T12:43:53 | 2019-05-07T12:43:52 | null | UTF-8 | R | false | false | 1,452 | r | cat_documentation.R | cat_documentation <- function(title_str, documentation_df) {
first_element <- match(title_str, documentation_df$title)
every_element <- grep(title_str, documentation_df$title)
documentation_str <- character(length = 11L)
documentation_str[01] <-
"## generated by make_data_documentation(): do not... |
346633d0448c982c7162525071751bc4d879592b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/oceanmap/examples/parameter_definitions.Rd.R | 5d1d34c1e988d9b247f3894698049d54d3c15d7c | [] | 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 | 375 | r | parameter_definitions.Rd.R | library(oceanmap)
### Name: parameter_definitions
### Title: parameter definitions dataframe
### Aliases: parameter_definitions
### Keywords: parameter_definitions
### ** Examples
## Example
data(parameter_definitions)
head(parameter_definitions)
# selecting sea surface temperature parameter definition
parameter_d... |
426ead1fe22211891d086eb1e32005db2224ca6b | 530ffa1be925736fc1ee238e07d77f96dbb1c17e | /R/make_bins.R | 048978353af07e89bdffd38bc838abf74e3fa0e2 | [] | no_license | qenvio/dryhic | b70acbb07847c64add1b026e378cc191d669bdc6 | 5b1fdaec3b635869e9c78ac0e1140eb497723fa6 | refs/heads/master | 2021-01-09T06:31:11.028762 | 2020-03-10T18:29:22 | 2020-03-10T18:29:22 | 81,000,207 | 3 | 3 | null | 2017-06-12T08:01:02 | 2017-02-05T15:03:56 | R | UTF-8 | R | false | false | 1,056 | r | make_bins.R | #' Bin the genome
#'
#' This function takes a HiC-BAM file and creates a data.frame with the genome binned at the desired resolution
#' @import magrittr
#' @importFrom dplyr mutate
#' @importFrom dplyr filter
#' @param inbam HiC-BAM file (only the header will be used)
#' @param resolution Desired resolution (bin size)
... |
8663bdec7ed5869be9ea460453a2cd8351b6414d | ba4b34a9f81f25dbe905433ed55d32282adebd70 | /Rcode/getWeights.R | 9b4bad87bc2ec577a202600ad103ecdcb301cea8 | [] | no_license | somegek/DataPreprocess | 10099b89e5d0aae2f151a63fbea0513b1ced5baf | 434fb92cad6ed4a87a4632ef03f985b801abb947 | refs/heads/master | 2020-03-31T13:39:51.338239 | 2019-03-15T09:49:52 | 2019-03-15T09:49:52 | 152,264,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,699 | r | getWeights.R | getWeights <- function(DT) {
# this function calculate the optimal weights
# input preprocessed data
# output data with optimal weights
# get the sub covariance matrix given name list
getSubCov <- function(Cov, colNameList) {
colInd <- which(colnames(Cov) %in% colNameList)
Cov[colInd, c... |
b70bc0bdba4540af3bb000943f9ef1ac950dabcf | 4e9a08420ce21f33b02d48b83c17deee36e97d77 | /low-birth-weight.R | 407f9ec053c9c11aeb2aefd2f58f276b0a5332ca | [] | no_license | nichaelmeilson-kul/low-birth-weight | d220edeb5b8c6628dc6eb2b4835f05a91f621ccf | 954ac675e866bd884c1af8d4417fde0e56fb420f | refs/heads/master | 2021-01-08T05:22:36.815215 | 2020-03-16T20:14:51 | 2020-03-16T20:14:51 | 241,924,849 | 0 | 1 | null | 2020-03-16T19:11:32 | 2020-02-20T15:52:56 | HTML | UTF-8 | R | false | false | 1,268 | r | low-birth-weight.R | # To run in R Studio:
# Drowpdown panel: Session > Set Working Directory > To Source File Location
birth.table <- read.table('lowbwt.dat')
###PART I (magda /// 26.02.2019)
#starting model with main effects and interactions terms we hypothesize might be relevant
summary(glm(LOW ~ AGE + LWT +FTV + RACE + LWT*FTV + AGE*... |
3eda942bb88df0a53192e8887f46c9a1ed40b0c7 | b32baa2b38043d0bbf497eade8f934c557f490cc | /R/similarProducts.R | 07830521be578c7ff9ed6205d0b303370b9bdda2 | [] | no_license | byapparov/recommender | 21a83204528c3cbb0696a805b840d743584fec36 | 9fb394be260e46683b13cb5434a711461fd689fe | refs/heads/master | 2020-07-27T08:38:52.952805 | 2018-06-09T08:17:26 | 2018-06-09T08:17:26 | 73,433,864 | 0 | 3 | null | 2018-06-09T08:17:27 | 2016-11-11T00:59:30 | R | UTF-8 | R | false | false | 3,126 | r | similarProducts.R | #' Recommends products similar to given products
#'
#' Based on the similarity matix and given product recommends top products
#' @export
#'
#' @importFrom utils head
#' @param sim.matrix similarity matrix based on implicit interractions
#' @param skus identifiers of the implicit interraction products (source should ma... |
600869e2ae509a4591ffa11949196a3e23367809 | 5ffb742e954dd8f7376d694000f2a6a0201bf359 | /Sociologia-Economica/sbs_sociologia_economica02.R | e963230def902088e2e7a1d42402dfdccc212ed9 | [] | no_license | neylsoncrepalde/Big-Data | 9427187b77f0f4d0b6e83445a884ace9d58e61f2 | 94f5ced2580b47c0e057b57f8e80704481c3c2aa | refs/heads/master | 2021-01-20T10:56:27.953269 | 2018-04-09T01:53:23 | 2018-04-09T01:53:23 | 64,178,077 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 451 | r | sbs_sociologia_economica02.R | # SBS
# vendo as keywords
setwd('~/Documentos/Neylson Crepalde/Doutorado/GIARS/SBS_sociologia_economica')
library(readr)
keys.df = read_csv('keywords_df.csv')
View(keys.df)
library(descr)
library(magrittr)
library(dplyr)
#keys = keys.df$keyword %>% unique
selecao = grep("(e|E)con(ô|o)m", keys.df$keyword)
soc.econ ... |
7ea92e0e3875effe3b3fe04358ff3e67f41139dc | cf09c35b67ddbb4f158accf0dc95228e68dde863 | /man/polya.Rd | 915e1485e8596d9c95f873f0f0c6fb05e270a461 | [] | no_license | FlorisRoelofs/polya | 4f220c5f113d88423f570e9247a920b18a0803c0 | d8a97b184b95defc41a2acfff18887fdf2745469 | refs/heads/master | 2020-03-18T23:49:39.750985 | 2018-06-22T10:26:07 | 2018-06-22T10:26:07 | 135,431,377 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 247 | rd | polya.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/polya.R
\name{polya}
\alias{polya}
\title{polya urn function, call with polya()}
\usage{
polya()
}
\value{
value
}
\description{
polya urn function, call with polya()
}
|
6a958f0f43d7a29e6255db6e68d2c84b1709c04d | 6c237020b6c5988fb7cd115905a13945d515cbd9 | /docker/R/install_packages.R | 6de20ba60d5173b140d9d44ff6c685a507e2a156 | [
"BSD-2-Clause"
] | permissive | sensecollective/OpenStudio-server | 772278e842b7cbba485e4988a542199c7e194cba | 50c99721c2c76cb84f86a3c867c1a0df2fd91f9b | refs/heads/master | 2021-01-18T21:08:54.149001 | 2017-06-26T04:31:22 | 2017-06-26T04:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,134 | r | install_packages.R | q# Install Packages
install.packages('lhs', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('e1071', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('triangle', repos=c('http://cloud.r-project.org','http://cran.r-project.org'))
install.packages('RU... |
30c24fb8b3a185b46421984b82d37145b566fdfb | 6579fa137eda608c0cdb22fa7236667972fb57de | /man/deparse_js.Rd | 19f914d7ed04b82166e42f22be1e4f4d204fd16b | [
"MIT"
] | permissive | nischalshrestha/sketch | 258a700bb0de38b5832861c7365605640c75cdbb | ab3258c3707aa768d31bfc7fe9c9d8916c8e1632 | refs/heads/master | 2022-11-24T16:54:46.185048 | 2019-12-09T07:57:32 | 2019-12-09T07:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 276 | rd | deparse_js.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deparse.R
\name{deparse_js}
\alias{deparse_js}
\title{Expression Deparsing for JS}
\usage{
deparse_js(ast)
}
\arguments{
\item{ast}{A language object.}
}
\description{
Expression Deparsing for JS
}
|
433c431806450a8ff74543fdb6416082385afffb | 97c2cfd517cdf2a348a3fcb73e9687003f472201 | /R/src/Java1/R/JQQueue.R | 5e8ebb15f11004fbebeb03c870719afd7edc274a | [] | no_license | rsheftel/ratel | b1179fcc1ca55255d7b511a870a2b0b05b04b1a0 | e1876f976c3e26012a5f39707275d52d77f329b8 | refs/heads/master | 2016-09-05T21:34:45.510667 | 2015-05-12T03:51:05 | 2015-05-12T03:51:05 | 32,461,975 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,433 | r | JQQueue.R | constructor("JQQueue", function(jobj = NULL) {
extend(JObject(), "JQQueue", .jobj = jobj)
})
method("by_Queue_String", "JQQueue", enforceRCC = TRUE, function(static, q = NULL, broker = NULL, ...) {
JQQueue(jNew("jms/QQueue", .jcast(q$.jobj, "javax.jms.Queue"), the(broker)))
})
method("by_String_String... |
0addddfeb5ed3d45673296041148d98f768614c4 | 014a09363ab8169a989848d12e1c84992bbfe38f | /man/rown_col.Rd | fa93e5fe61043442f702fad97ad7edf0b0b5c856 | [] | no_license | bassam-abulnoor/TestDimorph | 45b412e5ab0747b51fa6cb68ad3c9a5c19b4958a | f5d733b3bf2ee8d684d21fe5888afd5ceb2e60f4 | refs/heads/master | 2021-07-20T05:36:15.983925 | 2021-01-24T18:36:44 | 2021-01-24T18:36:44 | 234,365,880 | 1 | 0 | null | 2021-01-02T19:29:37 | 2020-01-16T16:46:23 | R | UTF-8 | R | false | true | 325 | rd | rown_col.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{rown_col}
\alias{rown_col}
\title{rown_col}
\usage{
rown_col(x, var)
}
\arguments{
\item{x}{dataframe with rownames}
\item{var}{new column name}
}
\description{
rown_col
}
\details{
convert rownames to column
}
\keyword{inter... |
7780d0741f0336d79884a1a3f06197ed3e32d1a0 | 5d0bc9fa9c48a468d115e9930f5eac66a0764789 | /inst/snippets/Exploration9.1.6.R | a143827d19240b80aeecec71e9e9f9e4a827b0a1 | [] | no_license | rpruim/ISIwithR | a48aac902c9a25b857d2fd9c81cb2fc0eb0e848e | 7703172a2d854516348267c87319ace046508eef | refs/heads/master | 2020-04-15T20:36:55.171770 | 2015-05-21T09:20:21 | 2015-05-21T09:20:21 | 21,158,247 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 50 | r | Exploration9.1.6.R | favstats(brain_change ~ treatment, data = Brain)
|
cc33f1fffb8af34ae4cdbc9691b70085e772031a | 03f4102ab9929f3c1e8e6c38172d85294eaa7fa5 | /Nearest Neighbor Code.R | 3faf9a539452d131993bababfa04cf3ccd2ba5d6 | [] | no_license | treypujats/Heuristics | 1d180b4149b1a77d6a65ceb31dc1a3ae38694367 | 4f94f5b15946bb024e261c1846f014d6d22facda | refs/heads/main | 2023-06-21T05:57:19.552504 | 2021-08-12T15:43:55 | 2021-08-12T15:43:55 | 395,366,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 668 | r | Nearest Neighbor Code.R | rm(list=ls())
library(readxl)
arcs <- read_excel("OPER 623 - Heuristics/Lab 1 Data.xlsx")
n<-nrow(arcs)
visited<-rep(0,n)
arcstoured=matrix(0,nrow = n,ncol = n)
num_visited=0
total_cost=0
nearest_cost=Inf
while (num_visited<2*n) {
for (i in n) {
for (j in n) {
if (i!=j && arcs(i,j)<n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.