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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c78338a9234309b29b0a92cc1f2a8a23208f68b2 | 66e1c7f5c84ebf79a883ff00e026e238d70cea29 | /R/3-writeFactors.R | 07fa4cb5cc5af5f884741be63dcf669e824eef59 | [] | no_license | datad/CLIGEN | 8534bfc9ea347be61babd067ee568b950b14b5be | 0cbae5e96a11436e1d4449f59bababc5d547aa96 | refs/heads/master | 2021-06-11T05:24:41.396289 | 2020-05-25T20:59:03 | 2020-05-25T20:59:03 | 128,544,596 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 613 | r | 3-writeFactors.R | #read rubik output
rRange = c(3:90)
load("data/patients.RData")
for(r in rRange)
{
patientsFactors <- read.table(file=paste0("MATLAB-RUBIK/rubikOutput/R_",
r,"/u2.csv"),
sep = ",", quote = "'",
header = FALS... |
96e1e5391a6abe274943e0e931a4646f35c84950 | 4b3de47e87774d4e4cc72cbbe9ab3ce0a85d635e | /R/scat.R | c6203d868743871e2bdc4507f2f95457238ca1b6 | [
"MIT"
] | permissive | tidymodels/modeldata | 2a697daa91594c78bfeec05a0052a83693505c9a | d44d367dda2ceb58282c4bc844aa9453d33ad064 | refs/heads/main | 2023-08-11T07:58:18.615400 | 2023-08-09T19:22:49 | 2023-08-09T19:22:49 | 224,252,166 | 23 | 4 | NOASSERTION | 2023-08-09T19:21:51 | 2019-11-26T17:46:11 | R | UTF-8 | R | false | false | 617 | r | scat.R | #' Morphometric data on scat
#'
#' Reid (2015) collected data on animal feses in coastal California. The data
#' consist of DNA verified species designations as well as fields related to
#' the time and place of the collection and the scat itself. The data are on
#' the three main species.
#'
#'
#' @name scat
#' @alias... |
640bd71fcb1e5eb22a308cfbe159a17ca0e10694 | f1c7e1c6b0907a6d3184e99b033dbfb183105f94 | /ch14by밍.R | eb7a372dfd641585a495556d9f1424c3c08e91b0 | [] | no_license | Ming-JU/STATISTICS | 3e723a855d1eac1c42097d5cd518d094e6beeb79 | ab58809c4765da2a6fd6f1bc5e43662070beb7aa | refs/heads/main | 2023-02-12T18:56:43.964967 | 2021-01-02T19:38:16 | 2021-01-02T19:38:16 | 326,256,749 | 0 | 0 | null | null | null | null | UHC | R | false | false | 7,969 | r | ch14by밍.R |
# 예제 ----------------------------------------------------------------------
# 예제1 ---------------------------------------------------------------------
y1 = c(10, 15, 8, 12,15)
y2 = c(14, 18, 21, 15)
y3 = c(17, 16, 14, 15, 17, 15, 18)
y4 = c(12, 15, 17, 15, 16, 15)
k = 4
ni = c(length(y1), length(y2), length(y3)... |
b77e1787f5ffed31bbeed01d681f7e0dbf940c98 | 797b15e5b58f536fd87e59894c3fd6a5203031f3 | /ClassFiles/week4/Queue/queues.R | 9165e7dd2861f95dda1d0b80aa3625b77e2d7581 | [] | no_license | JINJINT/documents | c62422b0b3d8f657d9c8f3cf21b535542df8e556 | 9d58f85478f98326b6f21e3f41f6531f623a37a3 | refs/heads/master | 2020-04-04T15:44:54.402560 | 2018-11-01T14:50:33 | 2018-11-01T14:50:33 | 156,050,759 | 0 | 1 | null | 2018-11-04T04:59:51 | 2018-11-04T04:59:51 | null | UTF-8 | R | false | false | 6,453 | r | queues.R | #!/usr/bin/env Rscript
empty_queue_error <- function(msg, call=sys.call(-1), ...) {
structure(
class=c("empty_queue", "error", "condition"),
list(message=msg, call=call),
...
)
}
## Some examples:
## foo <- Queue()
## foo$enqueue(4)
## foo$dequeue() #=> 4
## foo$is_empty() #=> TRUE
Q... |
366acaecd3643738ba9c5169ff1146f73da72996 | e0f3a5b5a154ea4e9d8df85c2535a38a23b940c5 | /Supervised_Learning/Random_Forest/Housing_prices_estimation/solucion.R | 95b4c9819617d78aff1461082b359bb2ceb2f0f5 | [] | no_license | OscarMongeVillora/Master-self-practice | dba6ece91f72df3db9af6809659d196bdc845846 | c8c22cef20f18fa50d462f47c536c024350abc5e | refs/heads/master | 2022-12-11T06:54:16.910967 | 2020-09-13T19:47:45 | 2020-09-13T19:47:45 | 295,223,727 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,598 | r | solucion.R | #Borramos los datos
rm(list=ls())
#-------------- Pregunta 1: Lectura de datos ----------#
library(MASS)
#data(package="MASS")
boston<-Boston
boston
dim(boston)
names(boston)
#-------------- Pregunta 2: datos de train ----------#
set.seed(101)
train = sample(1:nrow(boston), 300) #seleccionamos 300 va... |
d71e9e7f14455af3e665b59e06150209f9096ef5 | 05d368d0f4003e02332d0705531737152aaff344 | /SCRIPTS/script_de_analisis.R | 75ac253a5f890681acee036034d7cb32be83a867 | [] | no_license | bigdataciat/Taller_Honduras_DMAEPS_2018 | 5f6362a5bdafc5b4a55bef0ba897d4202d01657d | 6c10cdb595d5f71a4e760ad230447539eaaf4367 | refs/heads/master | 2020-03-22T09:31:54.370060 | 2018-07-26T13:58:05 | 2018-07-26T13:58:05 | 139,843,386 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,240 | r | script_de_analisis.R | # file data-analysis-AEPS-BigData.R
#
# This file contains a script to develop regressions with machine learning methodologies
#
#
# author: Hugo Andres Dorado 02-16-2015
#
#This script is free: you can redistribute it and/or modify
#
#This program is distributed in the hope that it will be useful,
#but WI... |
77832b532874e09d52d4ff3c9dd2095e624e20d5 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/risk_factors_code/wash_sanitation/append_all_locs.R | a65181cf627b4e980b467d5164ac1ab4c6735386 | [] | 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 | 816 | r | append_all_locs.R | # Author: NAME
# Date: 2/22/2019
# Purpose: Combine draws for all locations into one file to prep for post-ST-GPR processing [WaSH]
rm(list=ls())
library(data.table)
arg <- commandArgs(trailingOnly = T)
print(arg)
me_name <- as.character(arg[1])
run_id <- as.numeric(arg[2])
me_parent <- as.character(arg[3])
run <- ... |
d42c4b22ed6ac3156050cf6eb7f0030e107e7a3c | 5297cd2bf0c2f7e3a4b76e4d692b042e164fb44b | /proj/submitFiles/final/code/graphScripts/levels.R | a94feb831959be2e12e12c0fa1ce18b69d1fa50a | [] | no_license | ibush/MarioAI | df410153c074c29122cd9e70e58e0ccf464e865e | 0ea84c61b9ccd0948f8dea95214417564dd326b5 | refs/heads/master | 2021-01-10T09:42:08.163691 | 2015-12-12T02:17:29 | 2015-12-12T02:17:29 | 44,492,430 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,681 | r | levels.R | library(ggplot2)
library(dplyr)
# Directory Structure
wd <- '~/Documents/Stanford/CS221/mario/marioai/'
proj_dir <- paste0(wd,'proj/')
data_dir <- paste0(proj_dir, 'data/allLevels/')
out_dir <- paste0(proj_dir, 'writeup/imgs/')
src_dir <- paste0(proj_dir, 'writeup/graphScripts/')
source(paste0(src_dir, 'formats.R')... |
437b6d6fa507abb38f0e47ec5607b4cc85e42a66 | b44d584ff7816393593552622956f66d149dbf51 | /src/analysis/position_profile_clustering.R | c2b9fabfb5bd85b84a5d622e15045b57c6378856 | [
"Apache-2.0"
] | permissive | allydunham/dms_mutations | b51536c611611d74754135b8bc22223eb8d13840 | e4954eaa28dab72e8259559a4d3c2a0f77124ca4 | refs/heads/master | 2023-08-15T03:11:55.406243 | 2021-10-04T17:07:40 | 2021-10-04T17:07:40 | 180,122,942 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,228 | r | position_profile_clustering.R | #!/usr/bin/env Rscript
# Functions to perform clustering analysis on per position mutational profiles from deep mutagenesis studies
data("BLOSUM62")
#### PCA ####
# Generate PCA of mutational profiles
# TODO move to new tibble_pca func in misc_utils.R
positional_profile_PCA <- function(variant_matrix){
pca <- prco... |
65671c280b0ccf5857e85d67c55f2aec657ced11 | eabafd5e9945bc079b8146b8a850b9d269d773cb | /R/0_imports.R | 984ecb3ceb7981d3fd7052712545d18c56d06533 | [
"MIT"
] | permissive | camilodlt/embed | cfc3c8f0ed57f2aa712c2cf910b332c8ed5207d5 | 754ec3b4a8e6895202da9257ecfc39132701ca75 | refs/heads/master | 2023-06-03T05:16:22.683394 | 2021-06-10T21:53:26 | 2021-06-10T21:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,508 | r | 0_imports.R | #' @import recipes
#' @import rlang
#' @importFrom utils globalVariables capture.output packageVersion stack compareVersion
#' @importFrom uwot umap_transform umap
#' @importFrom keras keras_model_sequential layer_embedding layer_flatten
#' @importFrom keras layer_dense compile fit get_layer backend keras_model
#' @im... |
75c190440f54f7559de0de725aee46ed6a4836e9 | f7a923eba16f91594419d48f6f747d7cbc6230f5 | /man/AlleleProfileR.parseleadseq.Rd | ddf25ff8d8f86a97d18e09b0a7dd81e62973d4c8 | [] | no_license | abruyneel/AlleleProfileR | 8682982914a11f845adf3af2d491b654d03ae67e | 168737311a453f6e5f3aff4010beea88d53319e4 | refs/heads/master | 2021-03-24T10:14:16.715133 | 2020-06-09T14:13:43 | 2020-06-09T14:13:43 | 110,288,019 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 882 | rd | AlleleProfileR.parseleadseq.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_main.R
\name{AlleleProfileR.parseleadseq}
\alias{AlleleProfileR.parseleadseq}
\title{Parse the lead sequence in a chimeric pair}
\usage{
AlleleProfileR.parseleadseq(obj, gene, cutoff.large, index, cutrangelist)
}
\arguments{
\item{o... |
89aa1375be333c5eb98865104b0be2519d3418dc | 61f2bb25c84e0e1008333f592f83d217604905a8 | /AHM1_ch07/AHM1_07.07.R | 3d9cea5918cf65da1dea8b00b0e457c49bfd6db8 | [] | no_license | mikemeredith/AHM_code | 9120fae8cfe7b3b79f0319038a3c6c5a80afab1a | 7f01bba14d24560a7335071a8ec6cbaf91ce30a6 | refs/heads/main | 2022-11-24T10:04:29.217824 | 2022-11-09T10:20:24 | 2022-11-09T10:20:24 | 200,148,296 | 34 | 15 | null | null | null | null | WINDOWS-1250 | R | false | false | 1,155 | r | AHM1_07.07.R | # Applied hierarchical modeling in ecology
# Modeling distribution, abundance and species richness using R and BUGS
# Volume 1: Prelude and Static models
# Marc Kéry & J. Andy Royle
#
# Chapter 7. Modeling abundance using multinomial N-mixture models
# ===========================================================... |
6f4eeac19f534986721e0dd28a949333b1475d10 | 0f77b2f6d67cf63c4fbac1c823e8167f9d1b6207 | /R/polygons.R | 951e10400e1d4ba96f69c741cda579589be6bb71 | [] | no_license | cran/TargomoR | 1b658d99c08fb636767d9265ef2891ca495b20fb | 94ca6def7488844f9c5e9f6e3990b89afdae6fe4 | refs/heads/master | 2020-12-22T19:19:58.043815 | 2019-12-06T22:40:08 | 2019-12-06T22:40:08 | 236,904,706 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,928 | r | polygons.R | #' Add Targomo Polygons to a Leaflet Map
#'
#' Functions for retrieving isochrone polygons from the Targomo API and adding
#' drawing them on a \code{leaflet} map.
#'
#' @param map A leaflet map.
#' @param source_data The data object from which source ppoints are derived.
#' @param source_lng,source_lat Vectors/... |
04f6ba771de574adc874e9a6df57c9d84bceed44 | af77cc9ccadb9cf4d451831fdd07abe13503a879 | /yelp/wekafiles/packages/RPlugin/mlr/mlr/man/predict.Rd | 29d893ab1382e61e0560c765781a4255e7c862fa | [] | no_license | tummykung/yelp-dataset-challenge | 7eed6a4d38b6c9c90011fd09317c5fa40f9bc75c | 84f12682cba75fa4f10b5b3484ce9f6b6c8dad4a | refs/heads/master | 2021-01-18T14:10:55.722349 | 2013-05-21T09:30:37 | 2013-05-21T09:30:37 | 9,527,545 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,531 | rd | predict.Rd | \name{predict}
\alias{predict,wrapped.model-method}
\alias{predict}
\title{Predict new data.}
\description{Predict the target variable of new data using a fitted model. If the type is set to "prob" or "decision"
probabilities or decision values will be stored in the resulting object. The resulting class labels are
the... |
4d40cfb97296e18b9459b1f1cc2042e54ea985ad | fcbcc2b78b14310692e068b9c8b2b3b983036015 | /R Code/01_RBTV_YTComment_Analysis.R | bf9685782cacfbb03b601703939349e1c8744c24 | [] | no_license | Llanek/R_YouTube_Sentiment_Analysis | cdb78564d9cb608962730de30d8eacb8ce38de76 | faaf1d280279081bfb80e9897eecd7f95e7bda5a | refs/heads/main | 2023-02-04T02:33:16.349268 | 2020-12-24T02:48:18 | 2020-12-24T02:48:18 | 322,159,083 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,654 | r | 01_RBTV_YTComment_Analysis.R | # Filename: RBTV_YTComment_Analysis
# Author: YBU
# Date: 23.12.2020
# Runtime: --
# Call the needed libraries
require(vosonSML) # necessary to get the Authenticate, Collect, ... functions
require(jsonlite) # necessary to get the fromJSON function
require(config) # necessary to read out the config .y... |
992768be10c09edd66291df3b3f98b940ec2cb90 | 20acf11f5893b0edd6221c1aa427276c38c3b41a | /tests/regtest-stabsel.R | e4e09996b29d41fbfc7b03c42d233843f6f13229 | [] | no_license | cran/gamboostLSS | 6051c3cc662986a7cad47d0debebc0b6d93d1155 | b92d7ea2416068ae6475f2e0f8fe25f8cbff448b | refs/heads/master | 2023-03-19T10:51:39.078635 | 2023-03-09T19:20:02 | 2023-03-09T19:20:02 | 17,696,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,814 | r | regtest-stabsel.R | require("gamboostLSS")
### Data generating process:
set.seed(1907)
x1 <- rnorm(500)
x2 <- rnorm(500)
x3 <- rnorm(500)
x4 <- rnorm(500)
x5 <- rnorm(500)
x6 <- rnorm(500)
mu <- exp(1.5 +1 * x1 +0.5 * x2 -0.5 * x3 -1 * x4)
sigma <- exp(-0.4 * x3 -0.2 * x4 +0.2 * x5 +0.4 * x6)
y <- numeric(500)
for( i in 1:5... |
f445e12d840320ca232fda2bcaf64c9965cf8fd9 | 3db305c9b6f9f791d2668f88e9f42c0cbfbaf4cf | /argosTrack/man/plotMap-Animal-method.Rd | b360ab31a189e23803ec533429a59b06f09841a2 | [] | no_license | calbertsen/argosTrack | 4789f170f0b53cf2afa83195c55d57c25d3bd591 | d09d54082bcf03c555f3553ff444bb5dc2246b34 | refs/heads/master | 2022-09-02T05:37:29.760935 | 2020-11-25T12:59:55 | 2020-11-25T12:59:55 | 24,145,844 | 10 | 7 | null | null | null | null | UTF-8 | R | false | true | 1,047 | rd | plotMap-Animal-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotMap.R
\docType{methods}
\name{plotMap,Animal-method}
\alias{plotMap,Animal-method}
\title{Map plot for an Animal reference class object}
\usage{
\S4method{plotMap}{Animal}(object, plotArgs = list(), args = list(lwd =
3, col = "red"), ad... |
3c53a162d0442a0168f532816368a1fe494ee873 | e54ab4168c48575acb6a577c5f523aa250779266 | /plot4.r | 987485095f394862c4d9def35d4ab8364542ae63 | [] | no_license | gimanhh/ExData_Plotting1 | 9d4001b6b719ca3e0f6f4cd3def1297b1d2f5190 | 75a90b50ae204ea8b0e0b0d8bcf985077b1b97c8 | refs/heads/master | 2020-12-25T22:57:25.955937 | 2015-05-10T23:53:10 | 2015-05-10T23:53:10 | 35,391,770 | 0 | 0 | null | 2015-05-10T23:13:48 | 2015-05-10T23:13:48 | null | UTF-8 | R | false | false | 1,169 | r | plot4.r | data<-read.table("household_power_consumption.txt",sep=";",header=T,stringsAsFactors=F)
data$Date<-strptime(paste(data$Date,data$Time,sep=" "),"%d/%m/%Y %H:%M:%S")
data$Global_active_power<-as.numeric(data$Global_active_power)
data$Global_reactive_power<-as.numeric(data$Global_reactive_power)
data$Voltage<-as.numeric(... |
37957231359ff527bba0800402fb285116506065 | 4b29ea37d3fc6bdd1b762a4b8b339907e1d37c23 | /STAT534/HW 3 Q1_maahs.R | 1a4108876f4e2bed222f520ccdfb93b971eadb6f | [] | no_license | ReadingRailroad/BMB-COC | db89674d8213bd407ba3ea5e19124a3ef16d6e27 | c44b5c6168094b2dc9295cc08a82e8f8142e3875 | refs/heads/master | 2022-04-26T03:36:40.475750 | 2020-04-24T12:24:21 | 2020-04-24T12:24:21 | 151,457,143 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,498 | r | HW 3 Q1_maahs.R | setwd("~/Stat 534/Homework 3")
library(RMark)
cormorant <- import.chdata("cormorantLD.txt", header = T, field.types=c('n'))
#1B
#process data and specify model
cormorant_proc <- process.data(cormorant, model='Recovery')
#create design matrix
cormorant_ddl <- make.design.data(cormorant_proc)
cormorant_ddl$S
cormorant_... |
d1e3fe9929d5be65b429080a9148dd20afcd2a16 | 08246e3776b02900f7aa2543c1b43544b13e84c8 | /scr/create_regression_table.R | dcf1b73dab95eb72ba8516effb3ca4e73da98398 | [] | no_license | klsea/boundSkew1 | 4da5d41d114eb62089cb168c9a3587d17a37b6aa | 660ae5483fa135c42226762f1658ddb9d14e46ba | refs/heads/master | 2022-08-30T06:39:17.504130 | 2020-05-15T22:32:49 | 2020-05-15T22:32:49 | 192,785,765 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,321 | r | create_regression_table.R | # run models on skew data
# 7.15.19 KLS updated 10.17.19
# load required packages
library(here)
library(sjPlot)
# read in model fits
b <- readRDS(here('output', 'baseline.RDS'))
m1 <- readRDS(here('output', 'm1.RDS'))
m2 <- readRDS(here('output', 'm2.RDS'))
m3 <- readRDS(here('output', 'm3.RDS'))
m4 <- readRDS(here(... |
809f80a45af0d93ff1bc8408591ce9a72ffe6349 | c19fd9986434986eafba283f678336837d755101 | /main.R | f580e66624f2944c0b514808d6534b206239411b | [] | no_license | HughPham/agriculture | 4108a817f59238d6b4cf61a39b74254b0f3dca29 | 639e30e1d5fb77b0b90e8f1bd8bdbdc9d9ea5705 | refs/heads/master | 2020-03-21T04:39:38.428495 | 2018-06-21T04:56:14 | 2018-06-21T04:56:14 | 138,121,041 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,607 | r | main.R | library(readr)
library(tidyverse)
# data from 2001-2004
county_data_2001 <-
read_csv("original-data-agriculture/county_data_2001.csv")
county_data_2001$var84 <- as.numeric(county_data_2001$var84)
county_data_2002 <-
read_csv("original-data-agriculture/county_data_2002.csv") %>% select(-countyname_2002)
county_data_... |
021c81e725cde4a63d75548bbd65eb37aa5c03ca | a3c78700a65f10714471a0d307ab984e8a71644d | /modules/emulator/man/PEcAn.emulator-package.Rd | ba35157964ce065c9b0f9b0ba6ab0d73ec4356e1 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PecanProject/pecan | e42a8a6a0fc9c0bb624e0743ab891f6cf131ed3f | ce327b92bf14498fa32fcf4ef500a7a5db5c9c6c | refs/heads/develop | 2023-08-31T23:30:32.388665 | 2023-08-28T13:53:32 | 2023-08-28T13:53:32 | 6,857,384 | 187 | 217 | NOASSERTION | 2023-09-14T01:40:24 | 2012-11-25T23:48:26 | R | UTF-8 | R | false | true | 770 | rd | PEcAn.emulator-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PEcAn.emulator-package.R
\docType{package}
\name{PEcAn.emulator-package}
\alias{PEcAn.emulator}
\alias{PEcAn.emulator-package}
\title{Implementation of a Gaussian Process model for `PEcAn`
Supports both likelihood and bayesian approaches for ... |
e235b827bb1ec3c726440e955a0e37846b54c629 | 887ca9c3979a933ec88bf5a6a9caaac80b8428dc | /server.R | 525af5712f41018d1f8fd0fef1528b355b69e03c | [] | no_license | jerrymcummings/coursera-developing-data-products | 04e70b1bdf1526830ba581ad8ee9e2852bb31aea | 7cc1f7a55dc7aad0c37b1d30dece68b7a0dffebb | refs/heads/master | 2021-01-01T18:18:22.820254 | 2014-06-17T00:19:52 | 2014-06-17T00:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,005 | r | server.R |
# This is the server logic for a Shiny web application that
# uses the mtcars data set ("mt" as in "Motor Trend") from
# a standard R distribution.
#
# The weight of the car and the number of cyclinders in the
# cars engine are used to predict gas mileage.
#
library(shiny)
library(ggplot2)
shinyServer(function(inpu... |
14c25dfbdd184ff7dde908d1fc372c0bbf1de31e | 8a79ffea403d4daa70cb3868a67d8a0e5ffe0535 | /Exerc_04.R | 09a482d54bced5e3519161389ef995284c2fd28c | [] | no_license | MAR0NY/Marony | df02c68633d0d9c43d4d86c2d79bdce6d49a0e70 | 80644a5c051acf58f1cd593d1d10529f3d12715d | refs/heads/master | 2020-03-19T00:14:30.705590 | 2018-10-18T14:51:24 | 2018-10-18T14:51:24 | 135,465,979 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,974 | r | Exerc_04.R | # Exercícios aula 04
lista.de.pacotes = c("tidyverse","lubridate","janitor","readxl","stringr","repmis") # escreva a lista de pacotes
novos.pacotes <- lista.de.pacotes[!(lista.de.pacotes %in%
installed.packages()[,"Package"])]
if(length(novos.pacotes) > 0) {install.packages(novos.p... |
564c9252d9e1f33eb445a5bcf6fbed0a29f3694f | c4f40e3e960035cf877c7ae34e7a8e13009d7a98 | /constitution_amendments.R | e2721e12cf8a256b5b5fa0349ebdfafffbf2139b | [] | no_license | ContraDatos/constituciones | 11d7db8d9e9254726ed1c9022802dc619a62c3c1 | 59031271c1ac5779a0427000a52421c8288d750f | refs/heads/master | 2021-08-08T19:01:46.472131 | 2017-11-10T23:00:13 | 2017-11-10T23:00:13 | 110,159,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 23,291 | r | constitution_amendments.R | ##################################### LOAD LIBRARIES ##################################################
library(data.table);
library(foreach);
library(doParallel);
library(readstata13)
##################################### GLOBAL PATHS ##################################################
root_path<-"/home/jesus/Desktop/... |
6581223a2618a613b502c9a893bcf5ac6e6323db | a3f23e8d7ac043c02d5de504215d29d3ac25c932 | /man/get_transverse_spin.Rd | 3d8e598a454c5cfdcbab53aa8fcfdc991761ecde | [] | no_license | pmelgren/RStatcastUtils | b8b3e8c44fc745e432a35a6edc9aefe4019c46cc | a32619f26acdbb091c1f4fdc548caa774c3d1343 | refs/heads/master | 2020-04-16T20:00:41.993220 | 2020-03-24T17:40:56 | 2020-03-24T17:40:56 | 165,883,054 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,910 | rd | get_transverse_spin.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Trackman_functions.R
\name{get_transverse_spin}
\alias{get_transverse_spin}
\title{Get Transverse Spin}
\usage{
get_transverse_spin(extension, tot_spin, vx0, vy0, vz0, ax, ay, az,
direction = "TRANSVERSE")
}
\arguments{
\item{extension}{Rel... |
e81543b1a471ec779477d55343d666ddb7410b58 | 23fde635322bd2786b7bcccf0166bc7a27c59f6f | /R/nModule.R | f6e3f02b4c8d584620f316afd3f01e2b8d3fe859 | [] | no_license | bioinfoxh/TERM | f0697dd184cb713a714da48f3eb30c0d96b4d603 | 51ccc79fa1ee532e31231ed88e0f1cd98edb4834 | refs/heads/master | 2020-04-11T18:46:18.106350 | 2018-12-16T14:51:57 | 2018-12-16T14:51:57 | 120,759,029 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,775 | r | nModule.R |
# select candidates for seeds with various constrains:
# cur_node: the current nodes of the n-module
# threshold: the values the candidate must satisfying
# the strategy: 1. get the submatrix; 2. select only gene only one time based on the submatrix;
# networks=multi_netwk
# cur_node=ori_module[[i]]$members
# thr... |
29304e640c274832d868d2e46d386822968b443f | 17384cd2a9964facca580812216e95b85c446100 | /inst/shinyLDA/server.R | 6b578a19d76e16f49459a02fa9f5304db967c384 | [] | no_license | JavierDeLaHoz/LDAShiny | c7a1b3b0ad458caa8a8bfe60619f2db8835f08c0 | 204cfe108f5107762ff143c7881f037f97114df7 | refs/heads/main | 2023-04-02T17:39:27.204791 | 2021-03-30T21:32:53 | 2021-03-30T21:32:53 | 332,085,726 | 3 | 2 | null | 2021-03-05T10:50:57 | 2021-01-22T23:22:41 | HTML | UTF-8 | R | false | false | 34,947 | r | server.R | require("textmineR")
require("magrittr")
require("highcharter")
require("dplyr")
require("parallel")
require("ldatuning")
require("purrr")
require("topicmodels")
require("stringr")
require("broom")
require("DT")
shinyServer(function(input,output,session) {
options(shiny.maxRequestSize=50000000*1024^2)
output$selec... |
120ff7e019816474a2e014966243405c5b4fb4b1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RProtoBuf/examples/type.Rd.R | a9e8bb11d8dc6a86292ebed438cd3d0e512be5ba | [] | 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 | 928 | r | type.Rd.R | library(RProtoBuf)
### Name: type-methods
### Title: Gets the type or the C++ type of a field
### Aliases: type type-methods cpp_type cpp_type-methods TYPE_DOUBLE
### TYPE_FLOAT TYPE_INT64 TYPE_UINT64 TYPE_INT32 TYPE_FIXED64
### TYPE_FIXED32 TYPE_BOOL TYPE_STRING TYPE_GROUP TYPE_MESSAGE TYPE_BYTES
### TYPE_UINT... |
c601461fd247d3d00f9ed0a14c814d4688dbbc91 | 5a52d122a5f5867d3a5a5353bf46abbcb81ba2bc | /R/indicators.r | 0128e9c6d20e81f2f89ec97161092114be572976 | [] | no_license | olafmersmann/emoa | af57392db2efae54dce9aab2918628007247b561 | 7bc90c4b4a622b826683c9610b07ee8800ae285e | refs/heads/master | 2016-09-09T23:13:22.751552 | 2014-12-21T15:23:59 | 2014-12-21T15:23:59 | 28,303,541 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,959 | r | indicators.r | ##
## pareto_utilities.r - Operators relating to pareto optimality
##
## Author:
## Olaf Mersmann (OME) <olafm@statistik.tu-dortmund.de>
##
##' Scale point cloud
##'
##' Rescale all points to lie in the box bounded by \code{minval}
##' and \code{maxval}.
##'
##' @param points Matrix containing points, one per column.... |
3dbe198c95e57ca66b4e93e48e90d5e8448fbdfa | da580939f12f4a51ce420ab0e82565375933c614 | /man/make_scale.Rd | c05cb8adabbf984b29454afcfd87785b872bdf3e | [] | no_license | LukasWallrich/rNuggets | c2c0c3f9d638add7240b6d3d83a8f9450c75f858 | 0a15ae9c9fc163687eb9f0ad25f899ee370eb4d6 | refs/heads/master | 2022-09-01T16:42:30.854303 | 2022-08-19T21:53:59 | 2022-08-19T21:53:59 | 247,954,955 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,020 | rd | make_scale.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make_scales.R
\name{make_scale}
\alias{make_scale}
\title{Creates a scale by calculating item mean and returns descriptives}
\usage{
make_scale(
df,
scale_items,
scale_name,
reverse = c("auto", "none", "spec"),
reverse_items = NULL,... |
1b3dc1e11ea3e8344979f7d231bc5aff57619027 | 4e8820873e4c66cd063998c8f12a7d33e6c7c1ec | /chinese_officials.R | f2a748113bd07248430ed2370326f64554d68fac | [
"MIT"
] | permissive | vfulco/ChinaVitae-Scraper | 7328a5f6d6f3d00e41bd33abb07f7269fee4d2c7 | 1730761f1861a8ca59ac63dc65e48a27d2ea1c30 | refs/heads/master | 2020-03-22T11:56:03.662288 | 2015-11-09T01:34:18 | 2015-11-09T01:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,392 | r | chinese_officials.R | library(XML)
library(stringr)
getBio <- function(url)
{
# This function takes the URL for an official's page and returns the appropriate table.
#
# Args:
# url: The URL for an official. Example: "http://www.chinavitae.com/biography/Shen_Weichen/career"
#
# Returns:
# A dataframe of the official's pro... |
e08eaebec483e74336ccec114585018fa6f83a71 | 66028645bc7824ff6ab202c39f94d900e56deca3 | /R/estimateGLMTagwiseDisp.R | ec677cddaa277ba55f546b764d76e1196ad79bdd | [] | no_license | genome-vendor/r-bioc-edger | 731345805714d2c0f722f8815e9ac8e24012e781 | 978f5b818249e52f2be9f54af71e2acd54abf443 | refs/heads/master | 2021-05-11T08:26:38.615419 | 2013-12-02T19:26:29 | 2013-12-02T19:26:29 | 118,052,434 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,169 | r | estimateGLMTagwiseDisp.R | # Created March 2011. Last modified 13 March 2013.
estimateGLMTagwiseDisp <- function(y, ...)
UseMethod("estimateGLMTagwiseDisp")
estimateGLMTagwiseDisp.DGEList <- function(y, design=NULL, offset=NULL, dispersion=NULL, prior.df=10, trend=!is.null(y$trended.dispersion), span=NULL, AveLogCPM=NULL, ...)
{
# If provided... |
339fe6f15293b06f1f62023a45e85c414de4cd1b | 5732bc1e5004cf4cb69e87e96a821dee881952da | /script_project.R | 6d0e48a2f183f29c87619dfc09dbd92d52404fd9 | [] | no_license | akourm910e/shinyproject-1 | 52925dc6b094ec4aae6111285e523b6936b454bf | 1266df89d098f7c61d576fefa7cb91f163892dc3 | refs/heads/master | 2021-07-13T17:52:47.071281 | 2017-10-19T14:11:59 | 2017-10-19T14:11:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,208 | r | script_project.R | setwd("~/Bureau/m2/s3/stat/project")
######################################
# Imporation des données : paramètres mesurés selon mois et selon année
######################################
mois<-read.csv("bdd_mois_somlit.csv", header = T, dec = ".")
annee<-read.csv("bdd_annee_somlit.csv", header = T, dec = ".")
#####... |
d60bc7129bbd2cfcc0b10a27b765b32640f49e9e | 5f621b6457095f50b61ec088172bfeafb027942e | /Chapter 13/Chapter 13 Exercises 4.R | 98fa7f33b0d2df5bdee16da97c1ccc7e8357760a | [] | no_license | jpfonseca84/BookR | d1cabc122afdbac74cfe843e58cba65cae9a51a6 | 18cb73cb1008e65642099db837269075998e6102 | refs/heads/master | 2022-05-02T11:01:37.269747 | 2017-06-05T01:04:36 | 2017-06-05T01:04:36 | 82,219,136 | 16 | 16 | null | 2022-04-22T19:27:04 | 2017-02-16T19:42:55 | R | UTF-8 | R | false | false | 1,704 | r | Chapter 13 Exercises 4.R | #a ----
weight<-c(55,85,75,42,93,63,58,75,89,67)
height<-c(161,185,174,154,188,178,170,167,181,178)
Sex<-c("f","m","m","f","m","m","f","m","m","f")
cor(weight,height)
#b ----
mtcars[1:5,]
#i
?mtcars
#ii
thecor<-cor(mtcars[,4],mtcars[,7])
plot(mtcars[,4],mtcars[,7],xlab="Horsepower",ylab="1/4 mile time... |
e538c4f3449ffd7f82a29abb37e8f4c7c2a5b9fa | d7bf726ad2e6f242437252a355af2df03bec248b | /Common_species_list.R | cba2fc60704d585f4f6c2129b5430d94ae4b90dc | [] | no_license | Ramalh/Comparing-identification-methods | e706e381080dfc89be29409e31d7160875e4c65c | 389ceafd0d516cbb03e04a9708bf7207fb1db6e8 | refs/heads/main | 2023-05-13T10:31:00.106436 | 2021-06-09T18:08:58 | 2021-06-09T18:08:58 | 373,818,619 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,197 | r | Common_species_list.R | library(readr)
library(ape)
names <- read_delim("../names.dmp", "|\t", escape_double = FALSE,
trim_ws = TRUE, col_names = c("taxid", "txt", "X3", "X4", "X5"),
col_types = cols_only("taxid" = "c", "txt" = "c"))
names$txt <- gsub(" ", "_", names$txt)
asmbl <- read_deli... |
bfadc2c7cdab5a983d3d4d2523aa22969d7ba111 | bb1f0125cce89c1049857181e94a8efce2f39f98 | /data_access/GBIF.R | fb6b283eec10ffcf998770442233ac902faae9fc | [
"MIT"
] | permissive | helixcn/spatial_bioinformatics | d2f74a78be1faabe3511ec941a5352a647815046 | 2c4ad5094c4d014761c4011a18d57e2cc1e8a3ee | refs/heads/master | 2022-01-10T11:07:18.806929 | 2018-09-10T17:51:09 | 2018-09-10T17:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,618 | r | GBIF.R | ### Downloading occurrence data from GBIF and plotting on a map ###
install.packages('dismo')
install.packages('rgdal')
install.packages('GISTools')
library(dismo)
library(rgdal)
library(maps)
## Go to www.naturalearthdata.com > Get the Data > Medium Scale Data; Cultural > Download countries.
# then load the shapefile... |
ad3afdffa44dd89fb4cdf65c70ed28cfc609f5b7 | aec81c8d4ec899d48791fb2f52607842a3a7bca0 | /tests/testthat/test-rcmd.R | 8de39f0da1ebdad23ceed5b894e36ef6cea8c85a | [
"MIT"
] | permissive | silvavelosa/callr | e59b79d4db1fa0279268ee62b672865cbdda9483 | 998c862249311e31870ca6cbe2420586360b687a | refs/heads/master | 2021-01-20T15:54:46.299837 | 2017-05-09T23:52:28 | 2017-05-09T23:52:28 | 90,802,047 | 0 | 0 | null | 2017-05-09T23:52:18 | 2017-05-09T23:52:18 | null | UTF-8 | R | false | false | 1,286 | r | test-rcmd.R |
context("rcmd")
test_that("rcmd works", {
expect_equal(rcmd("config", "CC")$status, 0)
expect_match(rcmd("config", "CC")$stdout, ".")
})
test_that("rcmd show works", {
expect_output(rcmd("config", "CC", show = TRUE), ".")
})
test_that("rcmd echo works", {
expect_output(rcmd("config", "CC", echo = TRUE), "co... |
a7ee09ee2b6b5d5903f061f4685b6d11569ca10a | d1d622b0495b46693edce231af5d09e047f2df54 | /r-para-sqlite.R | 433e021432e75523e4f788adb88ace98df58d255 | [
"MIT"
] | permissive | jfaganUK/RParallelSQLite | 0390dcdcd06a9b31c0c784edc88ec09bfee95f92 | 2346a01eda56a560206d27616ab7fcbf0edefda6 | refs/heads/master | 2020-05-30T13:07:18.738742 | 2014-10-13T13:35:35 | 2014-10-13T13:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 951 | r | r-para-sqlite.R | ###############################################################################
### Using R and SQLite to process data using multiple cores from a database and
### save it back into a different database
### Jesse Fagan
### October 12, 2014
### Clear the workspace
rm(list=ls())
gc()
### Libraries
library(data.table)
... |
1611d49bc8d1724d55c6de955f5098118bdd0cef | 40509fc494148bc2e7ddfe89884146199b308e53 | /R/wideGLRIData.R | 788347e949e36f022988345861c5110a144706c6 | [
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | srcorsi-USGS/GLRItcl | f85889cff82c98d5597f78c65cc0eeca17859405 | c4250bb93f680346fa90f00abd37a36c9ca78a1c | refs/heads/master | 2020-02-26T13:46:53.490898 | 2013-12-03T04:31:18 | 2013-12-03T04:31:18 | 14,752,688 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,358 | r | wideGLRIData.R | #' Convert long GLRI dataframe to wide
#'
#' Filter the filtered data into a wide format.
#'
#' @param filteredData data.frame
#' @keywords filter
#' @return DF dataframe
#' @export
#' @examples
#' genericCensoringValue <- function(qualifier,value, detectionLimit){
#' valueToUse <- ifelse("<" == qualifier, detecti... |
cc1bcbe344a908976981341ec722cfb372a064fd | ecfc9de04a77da8d3812307f1c07185936dacd64 | /code_boxes/Box 5.4.R | 3c209bc1562d2b4544706b5c42761cb8e3269629 | [] | no_license | finleya/GFS | c48661e4029101de5ef316e8c2c47c93b441ada0 | 5329a4e71309f98c50178a709e3a861b0a73d6e6 | refs/heads/master | 2023-01-22T03:37:24.868432 | 2020-12-05T19:20:16 | 2020-12-05T19:20:16 | 269,411,442 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,665 | r | Box 5.4.R | rm(list=ls())
#
# WAIC and LOO for exponential and Weibul models using
# fire scar data
# Be sure to set working directory!!
#
setwd(" ")
#
# The package loo is used to compute LOO and WAIC
#
library("loo")
# fire scar data
y<-c(
2, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8,
8, 9, 9, 9, 9, 9, 9, 9, 10... |
a1fc117f5fbb11532da56a536993b8661d677096 | 29585dff702209dd446c0ab52ceea046c58e384e | /mixPHM/R/Eclass.R | 8862ec6463f6657ebd86325117b0016109379179 | [] | 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 | 6,727 | r | Eclass.R | `Eclass` <-
function(x, old, K, method, Sdist,p, cutpoint)
{
shape <- matrix(NA, K, p) # K x p Matrix with Shape-Parameter
scale <- matrix(NA, K, p) # K x p Matrix with Scale-Parameter
#-------------sanity checks during EM-iteration-----------------
if (any(as.vector(table(old))==1)) { #if a f... |
3219988c4942aab333c1bb43b30fca8b5e00a729 | b07a4bad19e0e9ccf6d5d1d2e3c7355b91eb86b0 | /CS450-Machine_Learning/week11abalone.R | 4abd165a9994b3bfcdce7ce2f044125155b4116d | [] | no_license | CalebSpear/Projects | 11b3e38de9158939ddb70880cc7883142ab1b974 | ba8540e5e9dcc5a464b9a653a889cb00f66399dd | refs/heads/master | 2022-10-28T02:02:05.689051 | 2020-06-14T02:15:41 | 2020-06-14T02:15:41 | 265,416,461 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,500 | r | week11abalone.R | library(ucimlr)
library(mlr)
library(mlrMBO)
library(tidyverse)
abalone <- read_ucimlr("abalone")
for (i in 1:4177) {
print(abalone[i,9])
if (abalone[i,9] < 6) {
abalone[i,9] = ">7.5"
} else if (abalone[i,9] > 13) {
abalone[i,9] = ">14.5"
} else {
abalone[i,9] = "<=14.5"
}
}
summarizeColumns(ab... |
fb59313bc87e106cb1dd13382ba7ef3bb67a3784 | 404380ca0cabe3e8c50379284fc8144c3ac0bf96 | /statsguys_lesson2.R | 2caae010619d61c6575aa910962f07291a2d7d7a | [] | no_license | bheavner/titanic | e8b6a67a05abb539e3f84bf1536d2766c7824cf7 | d8057e702374bc3c2bdbab15e06e36d7573c5e81 | refs/heads/master | 2020-05-20T02:57:48.402508 | 2014-04-18T21:58:44 | 2014-04-18T21:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,362 | r | statsguys_lesson2.R | # Following the logistic regression model approach from
# statsguys.wordpress.com/2014/01/11/data-analytics-for-beginners-pt-2/
# load the data
trainData <- read.csv("data/train.csv", header = TRUE, stringsAsFactors = FALSE)
testData <- read.csv("data/test.csv", header = TRUE, stringsAsFactors = FALSE)
## cleaning th... |
5d79255786a43a0ed60eb3a069dbef6794bd70a6 | db94ee12e92ec141460dd6a5b3c073c24455fc9d | /reshape2.R | b76191a2bd3005d62fbce395f562e4192b7d8040 | [] | no_license | goal1234/practice | 43a95131ad78d7831068a0a5bd6a78907686a337 | 7c383b2eaa0adba6f1afe7486be803082c2e7b82 | refs/heads/master | 2021-09-05T18:45:26.879828 | 2018-01-30T10:36:24 | 2018-01-30T10:36:24 | 100,257,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,560 | r | reshape2.R | ##---add_margins Add margins to a data frame.---##
add_margins(df, vars, margins = TRUE)add_margins(df, vars, margins = TRUE)
dcast(data, formula, fun.aggregate = NULL, ..., margins = NULL,
subset = NULL, fill = NULL, drop = TRUE,
value.var = guess_value(data))
acast(data, formula, fun.aggregate = NULL, ...... |
516e5579b4cc08ed880ce32fb4064d6ae1a9fbe5 | 80891a4179c70c221df5bdcf15a91b0088b02e53 | /app.R | 17df35f89d38f714921d780bc8c73cc3115a1ae0 | [
"MIT"
] | permissive | UBC-MDS/DSCI_532_Group_113_Overdose_R | 82bbf19440c8407b402f43b5f3be661259630e7a | 31a03f9da2cc33f8e7c59abf8f8aa87920e89f67 | refs/heads/master | 2022-07-28T06:28:52.789802 | 2019-12-14T04:02:50 | 2019-12-14T04:02:50 | 226,436,242 | 0 | 4 | MIT | 2022-06-21T23:45:47 | 2019-12-07T01:05:27 | R | UTF-8 | R | false | false | 14,051 | r | app.R | library(tidyverse)
library(viridis)
library(plotly)
# dash
library(dashCoreComponents)
library(dashHtmlComponents)
library(dashTable)
library(dash)
library(readxl)
app <- Dash$new(external_stylesheets = "https://codepen.io/chriddyp/pen/bWLwgP.css")
# load dataset
url <- "https://github.com/UBC-MDS/DSCI_532_Group_113_... |
d8dbf834941ad6a38954e78fa8942faa4a715c8a | d810cb5656f7374e865abfdc8b1cde0c81c48129 | /C5.R | 6e7806982da626ec9d36b424836af4784660cbcc | [
"MIT"
] | permissive | jcorrean/IdeologicalConsumerism | 121a650e28c64d696c5567d6093cfe4fc451d660 | dc1451c1b647c389a651f7f84cc78d1f9fe8a986 | refs/heads/master | 2022-12-07T22:31:36.374854 | 2020-08-18T00:05:16 | 2020-08-18T00:05:16 | 287,078,289 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 414 | r | C5.R | # Linguistic Similarity for Candidate #5
C5c <- dfm(corpus_subset(tweets, Candidate == "RAMIRO NULL BARRAGAN"), remove_numbers = TRUE, remove = stopwords("spanish"), stem = TRUE, remove_punct = TRUE)
c5c <- textstat_simil(C5c, margin = "documents", method = "jaccard")
SC5 <- data.frame(jaccard = c5c[lower.tri(c5c, diag... |
e01089be1c509d76b24c367b932155313f7b2f51 | 0290c8cb8b9eff9349dd07644c6d1a1fc4cec142 | /R code/kaggle/hour_functions.R | 3a9e64985171a3906a2c247282bd1e2658b35064 | [] | no_license | ivanliu1989/Helping-Santas-Helpers | c03799023952651be0e950fe77c4a31cd4303215 | 4287946489d2faa7d44297f6169d312b9a548f01 | refs/heads/master | 2021-01-02T09:33:26.783676 | 2015-01-03T23:41:37 | 2015-01-03T23:41:37 | 27,221,218 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,825 | r | hour_functions.R | hours_per_day <- 10
day_start <- 9 * 60
day_end <- (9 + hours_per_day) * 60
reference_time <- as.POSIXct('2014 1 1 0 0', '%Y %m %d %H %M', tz = 'UTC')
minutes_in_24h <- 24 * 60
convert_to_minute <- function(arrival) {
arrive_time <- as.POSIXct(arrival, '%Y %m %d %H %M', tz = 'UTC')
age <- as.integer(difftime(arriv... |
e62149c2e2b50523d3074fd36c5a4b97d0efe2e8 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612803349-test.R | d631be922e9b5d810a1de1d53963ae72277f4ebd | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 148 | r | 1612803349-test.R | testlist <- list(bytes1 = c(NA, NA, 1819552040L), pmutation = 6.99512702068968e-308)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) |
f245a8bb9e68dd1345da9fda17db82340d70bad1 | 644030724693faaa7e83b14a2bb6b68a1bb0e77c | /R/modComLik.R | fad7ddf5511b923e1d53c71c292881a0d8c2f8fd | [] | no_license | Rene-Gutierrez/BayTenGraMod | eb07ece068a09a027f5262fc8be4b5cd1fbaceb8 | e2a6972d3f3fbd44accf2c49db246aa55401870e | refs/heads/master | 2021-03-22T17:08:21.614191 | 2020-12-10T05:48:20 | 2020-12-10T05:48:20 | 247,385,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 985 | r | modComLik.R | #' Computes the log-likelihood of the Tesor Normal for each model estimate.
#'
#' Computes the log-likelihood of the Tesor Normal for each model estimate
#' given a sample of tensors.
#'
#' @param modelList A list of lists. The outer list is indexed by model. The
#' inner list is indexed by Matrix.
#' @param tensors ... |
ee74307be48a7b47ffb46f542f15781ddf64d811 | 716099bf019e764568a930a227a28beea650e681 | /R/Berechnung_IBCH.R | c75e37c6c823f715d20f4d968fe5b9215567ccb9 | [] | no_license | TobiasRoth/ibchR | 4d6366df7f4bdd3773591ec99596f08af0bf3dab | 9dc30d63250811e316419a7478d4f27de8496f6a | refs/heads/master | 2022-10-24T19:56:55.585552 | 2020-06-17T09:33:39 | 2020-06-17T09:33:39 | 272,900,084 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,671 | r | Berechnung_IBCH.R | rm(list=ls(all=TRUE))
#------------------------------------------------------------------------------------------------------------
# Einstellungen
#------------------------------------------------------------------------------------------------------------
# R-Packete
library(tidyverse)
#----------------------------... |
a89498541fde61012d6c0863734a92e03a476c74 | 99b4cbb15706f5cb9ab59ae8ede634060d905899 | /ui.R | 322630ba331132b21b6e897d66c3bbed77983a55 | [] | no_license | leeed1998/Developing-Data-Products | 54e77ed18be0b25e573cb0d3ab59e75d57c319fb | 543ae48a503717d29c21e4a8d1d581b8ea5145a5 | refs/heads/master | 2021-01-25T10:14:53.390973 | 2015-09-27T03:20:10 | 2015-09-27T03:20:10 | 34,539,648 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 957 | r | ui.R |
# Install the shiny package if not already installed
# install.packages("shiny")
#library(shiny) # load the shiny package
# Define UI for application
shinyUI(fluidPage(
# Header or title Panel
titlePanel(h4('A Histogram with of KPI for WJ', align = "center")),
# Sidebar panel
sidebarPanel(
se... |
0b1c06881411cbe0c11e2e8b5f3383e40305b904 | b04cc9ec33f2d70aac365fd3a839950e2f20be90 | /cachematrix.R | a130fb471f0e88bd4b506af22263ca8683c65ffa | [] | no_license | jhbrewster/ProgrammingAssignment2 | 9ce2ae13da52ab7bec8f46355c54fdb3e38c5082 | ed9541ca0127578940d9a81ef354821bc48a3e56 | refs/heads/master | 2021-01-21T08:32:50.750335 | 2014-09-14T10:34:54 | 2014-09-14T10:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,553 | r | cachematrix.R | ## Thses functions create a CacheMatrix - a custom datatype (which is based
## on a list), which allows the matrix inverse to be stored in a cache to
## avoid recalculation. If the matrix data is changed, the cache is cleared
## to prevent an inverse being stored which is based on old data
## This function takes a m... |
40b7f11d538935d0e316e4bbcb130b1e8decfdb1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TSDT/examples/unpack_args.Rd.R | 5c14d3c52be38cb6b3797d9ef63904ca9e83e4c3 | [] | 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 | 422 | r | unpack_args.Rd.R | library(TSDT)
### Name: unpack_args
### Title: unpack_args
### Aliases: unpack_args
### ** Examples
## Create a list of named elements
arglist <- list( one = 1, two = 2, color = "blue" )
## The variables one, two, and color do not exist in the current environment
ls()
## Unpack the elements in arglist
unpack_args... |
11e5e131a7bf2c5c08310c144a6811804e15d8b2 | b53a8de0aa574d0bff6b0fea9699efa73fa0c763 | /test.r | f81a43dae74771e0417c789faff93456943a4003 | [] | no_license | mwschultz/RApp | a320cc946802128732b652f9f54b77795bfd0766 | db98a651dc194537ad2b41624b83f66241051b9f | refs/heads/master | 2021-01-15T11:40:00.457272 | 2017-08-08T22:02:28 | 2017-08-08T22:02:28 | 99,633,352 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,122 | r | test.r | require(tidyverse)
require(haven)
require(dplyr)
require(Lahman)
require(magrittr)
Batting %>% select(X2B:HR)
c<-Batting %>% transmute(ExtraBaseHits = X2B + X3B + HR)
#mutate -- add newly created column to data frame
#transmute -- create new variable
Batting %>% summarise(AvgX2B = mean(X2B, na.rm=TRUE))
#NA is m... |
da1afb8ecfe4444c74882f7ae840d209515393f0 | 6ccbeb28582657306ee2a5500ec4396bafad06e4 | /Generation25/NovelPopulationMaleFitnessAssay/DeltaNovelPopMaleFitnessAssayG25.R | 3adcf1893942c4d68c2adb078db89a1e08d6fcfc | [] | no_license | KKLund-Hansen/SexChromCoAdapt | ac890836f047e1363459db2d4bd0b2b2071721b1 | 34712cefaa8b257b2c279969a377b4bbf7174d21 | refs/heads/master | 2021-07-20T10:26:06.996833 | 2021-02-06T19:47:25 | 2021-02-06T19:47:25 | 242,177,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,270 | r | DeltaNovelPopMaleFitnessAssayG25.R | ################################################################################################
###################### ΔNOVEL POPULATION MALE FITNESS ASSAY GENERATION 25 ######################
################################################################################################
#Set up environment
library(... |
e9057317284b134a8ed1d5332acbc814cb32de9b | 6dde5e79e31f29db901c81e4286fea4fa6adbc48 | /man/plotscores.Rd | e8c8d397f1d8d90d4f82a21abafcd49990deb31f | [] | no_license | cran/fda | 21b10e67f4edd97731a37848d103ccc0ef015f5a | 68dfa29e2575fb45f84eb34497bb0e2bb795540f | refs/heads/master | 2023-06-08T07:08:07.321404 | 2023-05-23T22:32:07 | 2023-05-23T22:32:07 | 17,696,014 | 23 | 19 | null | 2022-03-13T17:58:28 | 2014-03-13T04:40:29 | R | UTF-8 | R | false | false | 1,062 | rd | plotscores.Rd | \name{plotscores}
\alias{plotscores}
\title{
Plot Principal Component Scores
}
\description{
The coefficients multiplying the harmonics or principal component functions
are plotted as points.
}
\usage{
plotscores(pcafd, scores=c(1, 2), xlab=NULL, ylab=NULL,
loc=1, matplt2=FALSE, ...)
}
\arguments{
\item{pc... |
d6117cbe013ed49cb9c51ff7f8a5ea60e1858773 | a2ea354ac7e7bc199b68a3e5a6f8238db479a1b2 | /R/staticdocs.R | 7da02cef651f4a31cad5f734570582b2c43f6b80 | [
"MIT"
] | permissive | robertzk/rocco | 84c641f490f7d296bf39affef248a36d1e68c761 | d6c6969567c023536358b3ebb044abae7ef15a0e | refs/heads/master | 2020-06-03T07:04:58.543644 | 2018-08-04T17:59:17 | 2018-08-04T17:59:17 | 33,039,832 | 2 | 2 | null | 2017-05-19T18:15:53 | 2015-03-28T16:05:48 | CSS | UTF-8 | R | false | false | 4,362 | r | staticdocs.R | #' Writes pkgdown if they don't already exist.
#' @param package_dir character. The directory of the package to write pkgdown for.
write_pkgdown <- function(package_dir) {
check_for_pkgdown_package()
devtools::document(package_dir)
if (!inst_exists(package_dir)) { create_inst(package_dir) }
if (!pkgdown_index_e... |
581d5982750c0c4c6fc70a1b8dd656757dcec641 | fd76aba67a052198f7ee53b3c17d5838ed316a60 | /Week 2/Programming Assignment 2/complete.R | 80258afc199340a44caf5796bc3259f98741312c | [] | no_license | romilhc/Coursera-R-Programming | 08dd9f149317400e7b7739578e63ff80ad6c1eb4 | e27386989edbc5b00d0a8aad6b524e781da29753 | refs/heads/master | 2021-04-28T22:23:54.426343 | 2017-01-13T06:04:48 | 2017-01-13T06:04:48 | 77,752,125 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 758 | r | complete.R | complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs
## 1 117
## 2 1041
## ...
## ... |
ebbc5f204d8927707e8f023ce406a05adeb1a69e | 1db0e3ae5165dbcd040320a3ba058528139ffbdc | /man/r2julia_sort.Rd | f0064fd52a996cc02785f40f12bb1b50dc747efa | [] | no_license | hemberg-lab/sctransfermap | f04e683872472602557837e3047ec466ddd680aa | 8d182123127b827ca7f0072aea5ac3eade0cbd16 | refs/heads/master | 2020-08-30T05:17:55.289158 | 2019-11-08T09:37:52 | 2019-11-08T09:37:52 | 218,274,620 | 0 | 3 | null | 2019-11-08T09:37:54 | 2019-10-29T11:48:30 | R | UTF-8 | R | false | true | 619 | rd | r2julia_sort.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CoreMethods.R
\name{r2julia_sort}
\alias{r2julia_sort}
\title{r2julia_sort}
\usage{
r2julia_sort(r_list, julia_list, Index = TRUE)
}
\arguments{
\item{r_list}{list that want to change}
\item{julia_list}{target list}
\item{Index}{TRUE if the... |
f2c88f27486e650899d42b42997a09e40a1a2ee1 | 8c6d6fb800aea7364355a1047bfecbb06877bcde | /01-read_galp.R | 95aa1b0a31ecf6b4e9b06edcc33bb9fd827ef8ac | [] | no_license | TerminatorJ/delfi_scripts | 2bdd07e04b4b120b5ffe2fcb9974f34a13f99a99 | 51b7ce1c85f6e68363370ee08e713ab0553f7f82 | refs/heads/master | 2022-11-26T17:03:39.559535 | 2020-08-06T02:32:39 | 2020-08-06T02:32:39 | 281,132,281 | 1 | 0 | null | 2020-07-20T14:01:28 | 2020-07-20T14:01:27 | null | UTF-8 | R | false | false | 2,233 | r | 01-read_galp.R | library(GenomicAlignments)
library(GenomicRanges)
library(getopt)
### Used for getting information from shell script
args <- commandArgs(trailingOnly = TRUE)##仅仅返回--之后的字符串:[1] "--a" "file1" "--b" "file2" "--c" "file3"
hh <- paste(unlist(args), collapse = " ")#将参数全部使用空格隔开形成一个大字符串:[1] "--a file1 --b file2 --c file... |
e4b729f58240395e913a1844e090d3068aa91fb0 | 1a86508e2ea2c316d0fc77f9afd882627409e1f0 | /man/as_workflow_set.Rd | ae9189790b8a30cce97c156c940d639117056a27 | [
"MIT"
] | permissive | jonthegeek/workflowsets | d44faa0f53391d5c6f550044b2b21163e49a90ca | f910891f0f508cf654248d44403df47f981b41d2 | refs/heads/main | 2023-05-28T22:29:26.001283 | 2021-04-21T14:05:40 | 2021-04-21T14:05:40 | 359,985,659 | 0 | 0 | NOASSERTION | 2021-04-21T00:21:26 | 2021-04-21T00:21:25 | null | UTF-8 | R | false | true | 933 | rd | as_workflow_set.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_workflow_set.R
\name{as_workflow_set}
\alias{as_workflow_set}
\title{Save results from tuning or resampling functions as a workflow set}
\usage{
as_workflow_set(...)
}
\arguments{
\item{...}{One or more named objects. Names should be uniqu... |
4a9cecc1371832837b9d7b7b04bb59c2668fa2f0 | e81dd06f9bc38ce2016de3c11312b5366b89cd53 | /R/load.R | a285aa7ccb9ef824f9d7bf13a172f609b43ec2b2 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zergmk2/tutoring2 | 8d4991f2dfcb73e29decdbbd8b3834ae5ac44e14 | b47adf99942cfed27e0203095a593a02c64c2a11 | refs/heads/master | 2023-02-21T18:41:43.165221 | 2021-01-27T07:16:05 | 2021-01-27T07:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 349 | r | load.R | library(tidyverse)
library(gcookbook)
library(latex2exp)
library(add2ggplot)
library(scales)
library(add2ggplot)
library(data.table)
library(glue)
library(data.table)
library(tidyverse)
library(glue)
library(fs)
library(patchwork)
library(wrapr)
library(tidyverse)
library(ggforce)
library(rgdal)
library(readxl)
library... |
a7c62abb0bd949421c51d0bd1fb71eca1ee90890 | 46ca4e8ed44c2ec2c478e6522c38a7ff5f749ce5 | /bearing_snippets/training_set.R | ba21feb0208316273d5b280f8bc92e9b42f2c312 | [
"MIT"
] | permissive | robertfjones/data-science | 5904fe089db41b865474e33a06e837f88e6cbfa8 | afe136a7d2798b953a01d677fe1b30333438c72a | refs/heads/master | 2020-04-06T05:17:36.643266 | 2014-01-26T16:44:51 | 2014-01-26T16:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 720 | r | training_set.R | # Read in the relabelled best features
basedir <- "/Users/vic/Projects/bearings/bearing_IMS/1st_test/"
data <- read.table(file=paste0(basedir, "../all_bearings_relabelled.csv"), sep=",", header=TRUE)
# Split into train and test sets, preserving percentage across states
train.pc <- 0.7
train <- vector()
for (state in u... |
380230b0a4a1d1e6fae43f0635b98ab05bba109b | ff9eb712be2af2fa24b28ecc75341b741d5e0b01 | /R/summaryStats.data.frame.R | e1af82c379a6811d35d445a715d116464beca319 | [] | no_license | alexkowa/EnvStats | 715c35c196832480ee304af1034ce286e40e46c2 | 166e5445d252aa77e50b2b0316f79dee6d070d14 | refs/heads/master | 2023-06-26T19:27:24.446592 | 2023-06-14T05:48:07 | 2023-06-14T05:48:07 | 140,378,542 | 21 | 6 | null | 2023-05-10T10:27:08 | 2018-07-10T04:49:22 | R | UTF-8 | R | false | false | 1,819 | r | summaryStats.data.frame.R | summaryStats.data.frame <-
function (object, ...)
{
if (all(sapply(object, is.numeric))) {
names.object <- names(object)
nc <- ncol(object)
if (nc == 1) {
arg.list <- list(object = as.vector(unlist(object)))
match.vec <- pmatch(names(list(...)), "data.name")
... |
ac6ad454b8370b5159c6e0a735228df4ad7af294 | d158e0cd917560ff4b940b0a7b63416a1e532e49 | /plot2.R | ae602386634b0cc9f479367119634648becd923d | [] | no_license | tusharbhalla/ExData_Plotting2 | fb8d59c8243cd17d03be8229113aa80144c08abe | 711702e4e8a6eb8d669f7405b8c6c36f09ce3c0d | refs/heads/master | 2021-01-25T09:53:59.984296 | 2014-06-22T23:42:46 | 2014-06-22T23:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 509 | r | plot2.R | ## Get Data
require(data.table)
summarySCC <- readRDS("./exdata-data-NEI_data/summarySCC_PM25.rds")
summarySCC_dt <- data.table(summarySCC)
rm(summarySCC)
## Subset Data
sub <- subset(summarySCC_dt, fips == "24510")
subSummary <- sub[,sum(Emissions), by = year]
## Create Plot
png(filename = "plot2.png", width = 480... |
af2fb46a490d3af8cf34f5688baa6006903e9e2e | 1a0675e958bd7c1bd51211f64834c6784b358efa | /P7/P7_A.r | 0d263a15974e5af39e5bc0d6048fb224c3804ce1 | [] | no_license | dagoquevedo/parallelr | f4504c0bd6ec521354b63b0cdf1d77c02ccd3059 | 0addc443b1ca62772708bfe6209b49b9a05bda89 | refs/heads/master | 2021-01-01T04:14:31.294072 | 2017-10-17T19:21:43 | 2017-10-17T19:21:43 | 97,148,352 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,085 | r | P7_A.r | #Project : Local search
#Author : Dago Quevedo
#Date : Sep 2017
suppressMessages(library(doParallel))
library(ggplot2)
library(lattice)
unlink("img/P7_A*.png")
unlink("img/P7_A*.gif")
g <- function(x, y) {
return((((x + 0.5)^4 - 30 * x^2 - 20 * x) +
((y + 0.5)^4 - 30 * y^2 - 20 * y))/100)
}
low <- -... |
aaf31c4552fbfee1cc35d2ef007dfe528e93e7af | 3e1f696029222b31796a5adef0afc272f6cc4c11 | /NSRGYMerged8_NormClose_OLD_20190820.R | 6782699dd535faeab9575772c3b508cb7b4f844a | [] | no_license | dehrlich014/DoriansStockDataCode | 82c890070bf66075b331cb80c056e24122a80ec5 | b64f6ee2d369d7c269efd266701065d15b3c5347 | refs/heads/master | 2023-02-03T13:52:58.288342 | 2020-12-22T20:08:55 | 2020-12-22T20:08:55 | 275,254,152 | 0 | 0 | null | 2020-07-16T22:55:35 | 2020-06-26T21:51:11 | R | UTF-8 | R | false | false | 6,483 | r | NSRGYMerged8_NormClose_OLD_20190820.R | ####This file is OLD and has been REVISED on 6/27/2020
####This file is OLD and has been REVISED on 6/27/2020
####This file is OLD and has been REVISED on 6/27/2020
source("GSPC_DeltaOnly_20190820.R")
source("DJI_DeltaOnly_20190820.R")
source("NSRGY_DeltaOnly_20190820.R")
source("PFF_DeltaOnly_20190820.R")
source("IAU... |
cb2efcd6cb5d27a6b1c0aa68e26af8eaf62050d0 | 2a068e32d4a495d83d77aad0495a74cf7bc230f2 | /scripts/bio/stat/gsea | 40b05e83a5e5cb54a3a22cc71c7bc662bb40f364 | [] | no_license | xmao/kit | 06da86cefb549793e49d84708b213a7e4956f5d6 | e4eafccf216dfa6ad62809d6bd602927bd423d05 | refs/heads/master | 2021-07-07T08:11:46.733155 | 2021-05-24T15:01:31 | 2021-05-24T15:01:31 | 193,253 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,552 | gsea | #!/usr/bin/env Rscript
## GSER.R FILE METHOD OFFSET FDR
methods <- list(
binom = function(x) {
t <- chisq.test(matrix(c(x[1], x[2]-x[1], x[3], x[4]-x[3]), nc=2))
t$p.value
},
chisq = function(x) {
t <- binom.test((c(x[1], x[2]-x[1])), p=x[3]/x[4])
t$p.value
},
fisher = function(x) {
t... | |
e17263d7f3900d66b925c98a22d8d9d55d6c5ff7 | f8072e49a8d128ff5e6eabeb0c28f1e6f5fe6d18 | /04-Script_bootstrap_FSpecialist.R | 963ede4213b61dd2fb0da7d5735f34628cc2af0e | [] | no_license | OACColombia/FaunalRecoveryCode | a43ad9a8817b48c26fb869da73747e0ca428d75d | 95554a35bc26124b28eab4c34566d9fb80f9aef2 | refs/heads/master | 2020-06-22T07:16:48.782962 | 2017-09-12T20:13:43 | 2017-09-12T20:13:43 | 74,600,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,365 | r | 04-Script_bootstrap_FSpecialist.R | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#Bootstrapping of the Response ratio in Species richness
#Clear memory
rm(list=ls())
#Working in the office
setwd("//Users/orlando/Dropbox/Vertebrate Recovery - Nature/data")
#Call the file MainData.csv
mydata <- read.csv("//Users/orl... |
7fc306a6e1834d7d712d2bef2d87ad35f45699c2 | 512dd6a8d64429a6095d8d10e4bc3620b52283e0 | /opal.R | d0687f0f18b99bdd4722b92dedfc14e347073d33 | [] | no_license | michaeledwardmarks/opal-data-analysis | 4d79688528542afeaf84d318ab17c6f6895e0b67 | 7999628c4cf8f66f2e45d2df2fef459b25a22de2 | refs/heads/master | 2021-01-17T22:40:39.997160 | 2016-03-01T16:34:10 | 2016-03-01T16:34:10 | 42,506,105 | 0 | 0 | null | 2015-09-18T14:44:37 | 2015-09-15T08:47:06 | Stata | UTF-8 | R | false | false | 3,528 | r | opal.R | require(ggplot2)
require(plyr)
#
# Plot an age distribution for this extract
#
age_distribution <- function(extract_dir){
episodes <- read.csv(sprintf("%s%s", extract_dir, "episodes.csv"))
episodes$year.of.birth <- substr(episodes$date.of.birth, 0, 4)
age <- function(x) 2015 - as.integer(x)
episodes$age <- ... |
4428b93a1dc0f1f67c18221d06a7755054c68c82 | 69b1549ca33aadf683ed04fdc3bf65c165f94b61 | /Datasets/R Code/Bootstrapping/Individual Dataset/predImports85.R | 9cb0e47a72900ddff22138b20341144da5031139 | [] | no_license | pcalhoun1/AR-Code | 4798d13279d8d51996e4f3192a5a003948592a8e | dd472ca92547daf920d8c0fa7239fe73e1879dea | refs/heads/master | 2020-05-28T08:21:37.960791 | 2019-05-29T01:19:55 | 2019-05-29T01:19:55 | 188,935,776 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,554 | r | predImports85.R | #rm(list=ls(all=TRUE))
library(parallel)
getwd()
dir()
source('../../../../R Functions/RF functions 20JAN19.R')
load(file="../../../Data/contData.RData")
### Imports85 ###
nsim=50
ntrees=100
# imports85 #
imports85<-contData$imports85
form<-as.formula("Response ~ symboling + make + fuelType + aspiration + numOfD... |
00bcc59a7bd13b993c8d023095c0042508db88ca | 00856666243ffde6e1cc5451d9605abf98e1909d | /02 Rt.R | 0b9acf8f2f0eaa72d94bf9ab7fc07da406c55e09 | [] | no_license | holab-biostat/2020-COVID19-IJE | 6145b67c82fd37216ad29a02dac540f405fc884c | 922cd85579da41a0bd6cb07344219ac1f0ae09f7 | refs/heads/master | 2022-12-04T10:19:11.502346 | 2020-07-29T07:06:47 | 2020-07-29T07:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 630 | r | 02 Rt.R | ##### 2. Rt #####
rt_ind<-date_all>=as.Date("2020-02-18")
date2_all<-unique(data$date2)
datert<-date_all[date_all>=as.Date("2020-02-18")]
#Observed Daily new cases
pdf_real<-confirmed_all-Lag(confirmed_all,1)
data_res_real<-data.frame(dates=datert,I=pdf_real[rt_ind])
### Rt calculation (Example code only) ##... |
91a53911e8be2f0c7176ccb8f29b25a886e31b55 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/SeleMix/examples/pred.y.Rd.R | a79d787f4aae11bbde74641047538373e8286608 | [] | 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 | 640 | r | pred.y.Rd.R | library(SeleMix)
### Name: pred.y
### Title: Prediction of y variables
### Aliases: pred.y
### ** Examples
# Parameter estimation with one contaminated variable and one covariate
data(ex1.data)
# Parameters estimated applying ml.est to \code{ex1.data}
B1 <- as.matrix(c(-0.152, 1.215))
sigma1 <- as.matrix(1.... |
8ab29e3d21db86094dc82852dafe5bf1de1653fe | 7e29640eb74f442bb82f3687cdeb362ad4155173 | /Plot1.R | 758d539cf8d2ce98a62de813cd9b274be18a431e | [] | no_license | old21nick21/ExData_Plotting1 | e68e15a64702af1a191ba5503743b8b49af0aa60 | 53049e1fdff93f1d1d36c0472aaf2aa3b4d8e3bf | refs/heads/master | 2021-01-18T14:45:22.552775 | 2015-02-08T23:16:21 | 2015-02-08T23:16:21 | 30,496,336 | 0 | 0 | null | 2015-02-08T16:01:59 | 2015-02-08T16:01:59 | null | UTF-8 | R | false | false | 960 | r | Plot1.R | ## Read all records from the source file
electricity <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
## convert Date column into date datatype
electricity$Date <- as.Date(electricity$Date, format="%d/%m/%Y")
## create a ... |
45910ece0ae53a1542bf5e4c40eb61cdcd3ca725 | 910e5240c834a0434143a14d2fbc019af8eb474b | /R/exactRLRT.R | 828962c75463fa529a8ffcb772c751541a264cc4 | [] | no_license | fabian-s/RLRsim | dd0c6f5f6883c5cb5112f7511ea4b91d158edc5b | 89e0fa4094dd1a1b043714a02b2efb651d05339c | refs/heads/master | 2022-05-06T04:45:32.469261 | 2022-03-15T16:23:33 | 2022-03-15T16:23:33 | 22,876,600 | 11 | 5 | null | 2020-03-23T18:22:25 | 2014-08-12T12:33:23 | R | UTF-8 | R | false | false | 9,115 | r | exactRLRT.R | #' Restricted Likelihood Ratio Tests for additive and linear mixed models
#'
#' This function provides an (exact) restricted likelihood ratio test based on
#' simulated values from the finite sample distribution for testing whether the
#' variance of a random effect is 0 in a linear mixed model with known
#' correlati... |
44b661eea4d2903144ee3efe0096e1d9c1b7108d | 270140bfcca7573f21b2ba60f9125cb40d65a9ff | /man/viz_hist.Rd | dcce007fee334d224fa9c0dd05d719ea32d7213c | [
"MIT"
] | permissive | ideas42/tools42 | 83d508fadb18db8bd9e60e723aa1f91d1baa8ae2 | 89d44aab98c2a64aad2935561a006ec30cf8a97f | refs/heads/master | 2023-02-23T10:38:43.909183 | 2021-01-28T11:16:21 | 2021-01-28T11:16:21 | 332,281,881 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 485 | rd | viz_hist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/viz_hist.R
\name{viz_hist}
\alias{viz_hist}
\title{Generate a histogram with i42 styling}
\usage{
viz_hist(data, xvar)
}
\arguments{
\item{data}{data.frame}
\item{xvar}{variable}
}
\value{
}
\description{
Explore the distribution of your da... |
ec285007106961f45c6969c90107978990b6b4fa | f9288f22d5e1c33427d1f29705691ae1858cfcd0 | /man/assessPower.Rd | c6ef4a4f2a9a7bdc25aafe18ec958e270e2800f9 | [] | no_license | bmtglobal/epower | ccd4aa7095071b772d8beca00c4a1d42ecef6dc5 | 6ad5a9a22a1281739e0745cd79ef410daa122e29 | refs/heads/master | 2022-11-23T21:52:18.157181 | 2022-11-10T00:33:35 | 2022-11-10T00:33:35 | 201,881,464 | 5 | 5 | null | 2022-11-10T00:30:24 | 2019-08-12T07:38:08 | R | UTF-8 | R | false | true | 3,198 | rd | assessPower.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Toolbox_run.r
\name{assessPower}
\alias{assessPower}
\title{Assess Power}
\usage{
assessPower()
}
\arguments{
\item{NA}{the function takes no arguments, but instead uses the objects contained
in the global environment generated by the functio... |
a0d82ed4303e9d3cd281cec5f2bc9fb5fa21dd73 | 3ee366ed0dc1cc8cf768cae3f509874a0e370a43 | /man/geobuffer_pts.Rd | d8ef532a1eae3d6d2e508e229070e0f01c1579d9 | [
"MIT"
] | permissive | valentinitnelav/geobuffer | b475c9cd01408ed14403ce3fed85f48eb535a6dd | b4b0c9d853d6b7d612a9a713c4c0505245dca2c9 | refs/heads/master | 2022-10-28T10:39:25.168883 | 2022-10-07T06:35:28 | 2022-10-07T06:35:28 | 170,037,220 | 16 | 1 | null | null | null | null | UTF-8 | R | false | true | 3,667 | rd | geobuffer_pts.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geobuffer_pts.R
\name{geobuffer_pts}
\alias{geobuffer_pts}
\title{Geodesic buffer around points (long, lat) using metric radius}
\usage{
geobuffer_pts(xy, dist_m, step_dg = 10,
crs = "+proj=longlat +ellps=WGS84 +datum=WGS84", output = "sp",... |
de8766624451554ca56fb799083d1c904efcb125 | aa615d35770dee4fc97b119bf1e6dbfe61b4486c | /R/access_level.R | 73ad37b6358d4484bb5e28a17f7ff913fd0d02e3 | [] | no_license | oalbishri/rtweet | aad173a3b5f9b28f96b7589e871d7c74f9dc2ba2 | fa8987ffc34beb6fc8355f68f47af9bd5635ff46 | refs/heads/master | 2023-03-23T20:47:23.839722 | 2021-03-14T17:21:32 | 2021-03-14T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 238 | r | access_level.R | api_access_level <- function(token = NULL) {
r <- TWIT_get(token, "/1.1/account/settings", parse = FALSE)
if ("headers" %in% names(r) && "x-access-level" %in% names(r$headers)) {
r$headers$`x-access-level`
} else {
r
}
}
|
9410ae633397130cc2123ca18753fed445c13661 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Luminescence/examples/CW2pPMi.Rd.R | 7afa023eeff0446214cb5bae7c4438f10d2755d9 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,355 | r | CW2pPMi.Rd.R | library(Luminescence)
### Name: CW2pPMi
### Title: Transform a CW-OSL curve into a pPM-OSL curve via interpolation
### under parabolic modulation conditions
### Aliases: CW2pPMi
### Keywords: manip
### ** Examples
##(1)
##load CW-OSL curve data
data(ExampleData.CW_OSL_Curve, envir = environment())
##transform ... |
20119c979325eb9e4e669586456cb0e977c103ad | 965901a2e6a68c4ee9757ba58b1ec2a82172c9a6 | /RforDataScience_ggplot2.R | 28d0cdef5c38e65b3c32f37c5ccbf2afdd39b9ce | [] | no_license | sivaram10/Stat-545-Parctice | 3c9a9592cbc6b97395f22a55e5b392390543c98e | 78cdc05afe1ba999e91c84ea31be4c16bccea6e1 | refs/heads/master | 2021-01-19T20:27:00.340259 | 2017-05-15T03:04:24 | 2017-05-15T03:04:24 | 88,505,214 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,075 | r | RforDataScience_ggplot2.R | library(tidyverse)
ggplot(mpg, aes(displ, hwy)) +
geom_point(aes(color = class)) +
geom_smooth(se = FALSE) +
labs(title = "Fuel efficiency generally decreases with increase in engine size",
subtitle = "Two seater (sports cars) are an expection to this trend",
caption = "Data from fueleconomy.gov")
... |
e7593d4c2f6e4d973b60119c4d4f5404757f9f4a | f25f0ce112516575e7129ae0d370ce4a3031cdf9 | /man/type_one_smooth.Rd | 043bac18081fda38841b410cd8e5d05d5d973845 | [] | no_license | MatheMax/OptReSample | 83fb7dfc57afafbfa3f4d4939caca7d9c35ce87f | 8a3856ddb31d01b9f5daae64f58ccd12c3811416 | refs/heads/master | 2021-08-06T05:24:51.263279 | 2018-07-18T20:16:54 | 2018-07-18T20:16:54 | 130,708,697 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 639 | rd | type_one_smooth.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StageTwo.R
\name{type_one_smooth}
\alias{type_one_smooth}
\title{Type I version for smooth direct designs}
\usage{
type_one_smooth(parameters, cf, c2, h, N, w)
}
\arguments{
\item{parameters}{Parameters specifying the design}
\ite... |
816e90a50ed46d689164c99875d23b3eec06d4c3 | b72a579eddbd2e20a0d154a4704fa28dc89adf5f | /code/breast_cancer/preprocess_AABC_sum.R | 0161f34172155be064a2fa7d6643db722e1fee53 | [] | no_license | andrewhaoyu/multi_ethnic | cf94c2b02c719e5e0cbd212b1e09fdd7c0b54b1f | d1fd7d41ac6b91ba1da8bb8cd1b2b0768f28b984 | refs/heads/master | 2023-06-24T20:47:18.268972 | 2023-06-13T15:30:14 | 2023-06-13T15:30:14 | 214,069,397 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,793 | r | preprocess_AABC_sum.R | #goal: preprocess AABC summary level statistics
setwd("/data/zhangh24/multi_ethnic/data/")
library(tidyverse)
library(data.table)
sum.data = fread("./AABC_data/final_metal_4aa_no_ghana1.txt")
colnames(sum.data)[10] = "P"
sum.data = sum.data %>%
separate(MarkerName,into = c("CHR","POS","No1","No2"),sep=":",remove=F) ... |
2d8eef6d8d159f295a783d61819436aac0f4e098 | cc3beea2feb5d66b4df71a96f42129687a1296e7 | /draft/from_salmon_folder/functions_entrapmentAnalysis.R | fd7453b20cbacdad5bb95b366bc209749da430e0 | [] | no_license | YulongXieGitHub/YulongR_Code | 133c90b708c33c447737aaa0b6d01f5c9cb33818 | e1f68c1564fb4036df9500297fbd36548e3b8014 | refs/heads/master | 2021-01-23T15:03:12.427516 | 2015-07-16T01:52:35 | 2015-07-16T01:52:35 | 39,168,963 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,138 | r | functions_entrapmentAnalysis.R | #
# eliminate all stuff
rm(list = ls(all = TRUE))
# setup start date and time
start_time <- date();
Start.time <- Sys.time()
set.seed(12345, kind = NULL) # set seed of random number
# close all devices which have been opened
device.list <- dev.list()
if (length(device.list) != 0){for (device.this in device.list){dev.... |
496257c08ece09a30a3c6c8a5de4884f2cbd55e4 | c8f83302772325930ecab8f61d4f39c06e9e2e98 | /trees/03_sim_trees_detection.R | cb9f8f99f09a6a73e7e77073bb83eac3e75f5fee | [
"MIT"
] | permissive | boydorr/TransmissionScale | 5fda1bb6b2ae62f522cea0b2a9af1901f57456d4 | 566e1830254d57d262dfc5771ef564218981fb44 | refs/heads/main | 2023-04-11T21:47:34.835197 | 2022-04-21T14:55:56 | 2022-04-21T14:55:56 | 450,220,751 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,325 | r | 03_sim_trees_detection.R | # Simulate unpruned trees for comp to detection ----
# sub_cmd:=-t 2 -n 3 -jn test -wt 5m -sn -mem 6000
if(Sys.getenv("SLURM_JOB_ID") != "") {
ncores <- as.numeric(Sys.getenv("SLURM_NTASKS"))
} else {
ncores <- parallel::detectCores() - 1
}
print(ncores)
cl <- parallel::makeCluster(ncores)
doParallel::register... |
ccd5a3a03c0d793eb7d97a3fe8b8ec9f00bfd7de | e2f3ace7d5476cc8042514b3f93e466098aaf641 | /man/mae.Rd | fcf0a268d2647736bf9248aa3555e6a15340b57f | [] | no_license | erp12/rgp | 1527a5901fb6cb570e9461487fadb89a9bd66dd9 | 4f6e7a03585f75a139d232b8b817527d15c74d47 | refs/heads/master | 2020-12-31T02:22:38.126098 | 2016-08-22T21:42:32 | 2016-08-22T21:42:32 | 66,305,730 | 0 | 0 | null | 2016-08-22T20:30:13 | 2016-08-22T20:30:13 | null | UTF-8 | R | false | false | 309 | rd | mae.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{mae}
\alias{mae}
\title{Mean absolute error (MAE)}
\usage{
mae(x, y)
}
\arguments{
\item{x}{A numeric vector or list.}
\item{y}{A numeric vector or list.}
}
\value{
The MAE between \code{x} and \code{y}.
}
\description{
Mean absolute error (MAE)
}
|
45b885dea0156d7960a99abd0c30fdcd46e806ed | e521394f015a8992fa63b04d52f0a6b87ee08153 | /man/getPlot.Rd | b1d98defbdc0e6ce7de8a1cd8023efe69adead74 | [] | no_license | jshayiding/MSPC | e956d494e2c67d2a0a5ed40a4977cc3bbab0f0a1 | 66f23b8adb9ebe4d267ac72b0ff3dbd8c5c1146a | refs/heads/master | 2022-03-08T12:03:15.910696 | 2019-10-17T00:58:08 | 2019-10-17T00:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,733 | rd | getPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getPlot.R
\name{getPlot}
\alias{getPlot}
\title{Graphical view of different ERs set for each Chip-seq replicates.}
\usage{
getPlot(peakList_A, peakList_B, tau.s = 1e-08)
}
\arguments{
\item{peakList_A}{output of \link{runMSPC},
is set of all ... |
0eddf10693f0e7dde56fa5ad5c4b8d91ae8e3d83 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/adegraphics/examples/S2.match-class.Rd.R | 4cc8355085240f2765e39897a675cd07fa4e62ad | [] | 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 | 230 | r | S2.match-class.Rd.R | library(adegraphics)
### Name: S2.match-class
### Title: Class 'S2.match'
### Aliases: S2.match S2.match-class prepare,S2.match-method
### panel,S2.match-method
### Keywords: classes
### ** Examples
showClass("S2.match")
|
b5cb6e3c971af6444093fd23d453fc9c8b00e8ab | 95f20674eb7e0afdd209229af28305c4af281879 | /plot4.R | 65696ed7ab9aee5402c1e2656a93ba4b1e641d56 | [] | no_license | iterion/ExData_Plotting1 | 56c6ac733f2425acd346fd86cf0ca90ca41e7e0c | 82b8c6a2d8c921661a41bc8d6bd0041b6f449c7c | refs/heads/master | 2021-01-21T07:08:06.509426 | 2014-05-11T20:27:03 | 2014-05-11T20:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 740 | r | plot4.R | png("plot4.png")
par(mfrow = c(2, 2))
with(power.consumption, {
# plot 1
plot(DateTime, Global_active_power,
type="l", ylab="Global Active Power (kilowatts)", xlab="")
# plot 1
plot(DateTime, Voltage,
type="l", ylab="Voltage", xlab="datetime")
# plot 3
plot(DateTime, Sub_metering_1,
... |
b1f981c4346ed5b6c665bd22021b696ebe0c3aee | 4f2743db548d08f57ec5c441011d94c28aa0ccac | /R/model.R | a365eaed74801a06bd07aca98c78e450459a7c82 | [] | no_license | bergsmat/nonmemica | 85cdf26fa83c0fcccc89112c5843958669373a2a | 8eddf25fdd603a5aca719a665c5b9475013c55b3 | refs/heads/master | 2023-09-04T06:10:48.651153 | 2023-08-28T13:23:18 | 2023-08-28T13:23:18 | 78,268,029 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 19,843 | r | model.R | # bug: can't parse model if estimate on same line as $[THETA|OMEGA|SIGMA]
# bug: can't parse DV=DV1 in INPUT statement
globalVariables(c('item','.','parameter','estimate','se'))
#' Coerce to NONMEM Control Object
#'
#' Coerces to NONMEM control stream object.
#' @param x object of dispatch
#' @param ... passed argum... |
f28626cc11b20d4a394f6b68c904e721be1499c2 | b3a0e16fc9972c701e4b87dd9b8919f730af0e79 | /plot1.R | 321a0bd913d3587c0ce685977a64428523f1a62f | [] | no_license | celebros3019/ExData_Plotting1 | cc2504f466872ebce879c24646d9b55a3a4fa8d7 | 1202a28ca7538377d99d4cb2c31a4ed48e4dc508 | refs/heads/master | 2021-01-14T14:35:03.484584 | 2016-04-25T14:49:20 | 2016-04-25T14:49:20 | 47,931,889 | 0 | 0 | null | 2015-12-13T18:51:47 | 2015-12-13T18:51:47 | null | UTF-8 | R | false | false | 1,333 | r | plot1.R | # Download zip file ("exdata-data-household_power_consumption.zip") into the forked repo.
# This will use the packages tidyr, and lubridate. They must be installed for this to work.
# Replace the first line with your personal working directory.
setwd("c:/Users/Teresa/Documents/GitHub/datasciencecoursera/ExData_Plottin... |
e0c215038c94bb8262eaaec1838e845dd12ad0c2 | 25ab84c3e54d6bf983d2900a0b43e83b3b1f146b | /man/copy.Rd | f998a15142b67e9da5696cd17ec29fa4bff02cb0 | [] | no_license | frenkiboy/rstatic | f9dee36372879e02b928f8ecbae3064ec69607bd | 1e061e0f4edb8b6bc2040e424747b80e023af1f3 | refs/heads/master | 2020-12-13T09:05:08.574939 | 2019-10-16T03:37:14 | 2019-10-16T03:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,015 | rd | copy.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copy.R
\name{copy}
\alias{copy}
\title{Copy an RStatic Object}
\usage{
copy(x, ...)
}
\arguments{
\item{x}{The object to copy.}
\item{...}{Additional arguments to methods.}
\item{skip_set_parent}{(character) Names of fields which should nev... |
2750e0d26c03ef1aa924174826187ea6867d727c | 25e7451c4d860ab4c0ba81e85a7b3dd7d0f916ae | /Analysis/mixtureModel3Cat.R | 6970036c6eb3ff96558fb9da8b39f526a3b8a85f | [] | no_license | fsingletonthorn/effectSizeAdjustment | 5e24c8846260439ba8c61be6d4c3cfebf4c1dab8 | 60827d9d7e563daf5b957845eb4157434d859dfd | refs/heads/master | 2020-03-30T19:35:02.851691 | 2019-11-19T23:43:29 | 2019-11-19T23:43:29 | 151,549,406 | 0 | 0 | null | 2019-09-25T23:21:13 | 2018-10-04T09:41:51 | R | UTF-8 | R | false | false | 1,586 | r | mixtureModel3Cat.R | model{
# Mixture Model Priors:
tau ~ dgamma(0.001,0.001) # vague prior on study precision
phi ~ ddirch(mPriorProb) # Flat prior on the model priors
mPriorProb[1] <- 1 # This sets the priors to be equal
mPriorProb[2] <- 1 # This sets the priors to be equal
mPriorProb[3] <- 1 # This sets the priors to be equa... |
65f893d8b3227130ad85d5634426a0371599870a | f1b9b81a57dad419c7216445b9a75df120a47791 | /R/SDMXComponents-methods.R | 8c4b0f8981fb20d05062311f829c23d66e364250 | [] | no_license | opensdmx/rsdmx | d71dc83799d76da3233ddfc0d4fa75ce5ff097b9 | 3c0c2316ff4fa237cdc62731d379a17369e05ae3 | refs/heads/master | 2023-08-31T01:56:25.934458 | 2023-08-28T09:57:08 | 2023-08-28T09:57:08 | 10,642,895 | 96 | 38 | null | 2021-04-21T20:41:10 | 2013-06-12T13:01:55 | R | UTF-8 | R | false | false | 6,129 | r | SDMXComponents-methods.R | #' @name SDMXComponents
#' @rdname SDMXComponents
#' @aliases SDMXComponents,SDMXComponents-method
#'
#' @usage
#' SDMXComponents(xmlObj, namespaces)
#'
#' @param xmlObj object of class "XMLInternalDocument derived from XML package
#' @param namespaces object of class "data.frame" given the list of namespace URIs
#' ... |
e39bb26b42d373f2e467efb9d8aaab6d2bc1f5ee | c3028bdbf293b17d5a431de7fb403f3e802f9c49 | /R/show-methods.R | 03520042f1ee1c99ef1c60cfc1dc02754b9e0696 | [] | no_license | UBod/procoil | 2a6c2455579ec2022fa33f4b511061a4abc9bf6e | 328134c3fe8eb814325a1dab9e98fa9312fa2d7a | refs/heads/master | 2022-11-23T04:11:49.111008 | 2022-11-01T15:05:37 | 2022-11-01T15:05:37 | 133,511,025 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,128 | r | show-methods.R | show.CCModel <- function(object)
{
cat("An object of class ", dQuote(class(object)), "\n\n")
cat("Model parameters:\n\tcoiled coil kernel with m=", object@m, " and",
ifelse(object@scaling, "", " without"),
" kernel normalization\n", sep="")
cat("\toffset b=", format(object@b, digits=4), "\n... |
28fffe80fa847f7079c2bcbe4ed9705f99131694 | 19634470cd630e194976613859b03e54f3b7968c | /SnowModel/Scripts/ASCIIConvert.R | 4ba8c98a749bf05a90fd17e859da24af0732d760 | [] | no_license | snowex-hackweek/snow-sinking | 7226d231f54dd529ce9f584d4cad5f377a95b583 | 31d61712d811639866fffbee5fea1a69b550ae03 | refs/heads/main | 2023-06-16T00:17:53.464228 | 2021-07-16T20:05:51 | 2021-07-16T20:05:51 | 385,720,429 | 0 | 2 | null | 2021-07-16T20:05:52 | 2021-07-13T19:55:10 | Jupyter Notebook | UTF-8 | R | false | false | 567 | r | ASCIIConvert.R | require(spatial)
require(raster)
# Set working directory.
setwd(paste0(dirname(rstudioapi::getSourceEditorContext()$path),"/Input Data/Rasters"))
# Gather location and names of tif files.
files<-list.files(path = "TIFs", pattern = ".tif")
# Convert and save each tif as an ASCII file..
for(file in files){
... |
56c414b908ffb3ed50c2158fc24a73c5195622b0 | 83fc42f1093b39713f27ced1b7bcec977f64314e | /HW3/Project3/ui.R | de7289092bf9e899f6d50d12c47b9c4ce51935a9 | [] | no_license | AlejandroOsborne/DATA608 | e5118aabe18a36c4dfe08f9d8a9b443373174a88 | a501b185a496efb3c50de69c420393592b28469a | refs/heads/master | 2020-04-22T02:29:08.014663 | 2019-05-17T06:00:01 | 2019-05-17T06:00:01 | 170,051,029 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 820 | 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(ggplot2)
library(dplyr)
library(googleVis)
data <- re... |
7d3938dfc0f995736047004a60684ab5cb4ce532 | 057d16a890f9d5af442efe61338679c23c24d826 | /src/PlotSurvivalCurves.R | 2c853eea66ecbf7028cd267dcdf35eb1c65e34cd | [] | no_license | lzdh/Using-Multi-omic-Cancer-Data-to-Find-Ways-to-Improve-the-Treatment-of-Bladder-Cancer | a5496639864d279aeaa2051dbdddbac9cb09ff4f | 52e2c42d10519c8b0f09a88380ae5e2a2d066b39 | refs/heads/master | 2021-03-22T03:06:30.932950 | 2019-11-15T08:43:43 | 2019-11-15T08:43:43 | 117,106,696 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,930 | r | PlotSurvivalCurves.R | ## R script is courtesy of Dr Richard S Savage
## Script to plot nice Kaplan Meier curves
##Function to plot survival curves for the output of a ISDF run
##NOTE: we assume here that the timeToEvent is given in months
##
PlotSurvivalCurves <- function(titleString, clusterIDs, died, timeToEvent, itemNames, nMinItems=5... |
123d9145117b589ffc395acb7ab46171ce6fe079 | 6c37b3af3e8379222b238cb67b877a563a6f3dd4 | /R/tab.provenance.r | f4d2aaf4ff595e6e0886e059677afb6970f33298 | [] | no_license | ChristopherBarrington/seuratvis | e809fefabb9f6125d649558b2b860a0c6fe55772 | 413ddca360790eb4c277d0cdc2b14ec2791f1c04 | refs/heads/master | 2021-09-08T09:44:05.645790 | 2021-09-01T07:10:17 | 2021-09-01T07:10:17 | 242,530,342 | 0 | 0 | null | 2020-06-19T06:40:05 | 2020-02-23T14:21:23 | R | UTF-8 | R | false | false | 1,479 | r | tab.provenance.r | #'
#'
provenance.tab <- function() {
bquote({
tab <- 'provenance_tab'
menuItem(text='Provenance', icon=icon('history'), tabName=tab) -> menu_item
tabItem(tabName=tab,
h1('View the functions used to create this Seurat object'),
fluidRow(dataset_info_text_box.ui(id=NS(tab, 'projec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.