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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d57ef78c8f49eac853cf21509184f2a335e4ae73 | babac763748a83cc9e14e67236a9cc8a3e4ada34 | /man/set_panels.Rd | 96135e8c962cdcb96def6d50efd2154cc6e4b3bc | [] | no_license | cran/JOPS | 84e0a06484f480a2ab6b01d40a7c386fdd635173 | 932ab4e5c2117e91a682fbf0cb1c675a6234a82c | refs/heads/master | 2023-05-12T01:00:20.338969 | 2021-06-03T10:00:17 | 2021-06-03T10:00:17 | 341,417,657 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 599 | rd | set_panels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_panels.R
\name{set_panels}
\alias{set_panels}
\title{Prepare graphics layout for multiple panels}
\usage{
set_panels(rows = 1, cols = 1)
}
\arguments{
\item{rows}{number of rows.}
\item{cols}{number of columns.}
}
\value{
P... |
d683ddf104377023a9e7b0c9fa90109ee00d3633 | 246189c0e240e174b9ca74e2a42bfecee79cc9e1 | /R/processPlantSurveys.R | 726af1214d29e82763668b093e988854a48e173d | [] | no_license | ksauby/GTMNERRproc | f3bcd140578d710c9b013da83d9ac8d08e781eee | fd5a073d5fd2690b6fde64a0313d1a3fdfe07645 | refs/heads/master | 2021-04-06T13:03:29.008590 | 2017-11-15T20:35:53 | 2017-11-15T20:35:53 | 83,352,082 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,743 | r | processPlantSurveys.R | #' Process GTMNERR Plant Survey Data
#'
#' @description Steps:
#' \itemize{
#' \item Fix column names
#' \item format dates
#' \item format PlantIDs
#' \item format convert "999" values to NA
#' \item format change "yes"/"no" values of the insect survey, missing, and dead columns to 0/1
#' \item format numeric co... |
01fafeece02ef349625a5ffa9c0061611bf97bbe | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/xrnet/man/y_linear.Rd | e77fe5a17b7c2bd9b9c2dae4fa841108ddc90652 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 278 | rd | y_linear.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{y_linear}
\alias{y_linear}
\title{Simulated outcome data}
\format{A vector with 100 elements}
\usage{
y_linear
}
\description{
Simulated outcome data
}
\keyword{datasets}
|
551d7a1d64a82894e83818f85b93b5333512ff1a | 3cfae31923ff4af0c3f7cad2d79dcf30472f3408 | /R/aaa.R | ec1c3e758f32a3a67ba7ae8570232db6dec8e08c | [] | no_license | dipterix/restbatch | e8e213cf20faf1c97683aea8b4629d8be1607557 | 8bfe11619d4af1fc3217d1fd8f64d164eefc63ac | refs/heads/main | 2023-08-13T17:20:24.079458 | 2021-10-10T05:26:25 | 2021-10-10T05:28:25 | 335,794,148 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,727 | r | aaa.R | R_user_dir <- function (package, which = c("data", "config", "cache")) {
stopifnot(is.character(package), length(package) == 1L)
which <- match.arg(which)
home <- normalizePath("~")
path <- switch(which, data = {
if (nzchar(p <- Sys.getenv("R_USER_DATA_DIR"))) p
else if (nzchar(p <- Sys.getenv("XDG_DATA... |
fd54cbf84a6e9679786d4189f78357b05ac3b79c | 4bdd257c859dc4406d0fe77a22c130e1c8112413 | /Log_Regression.R | c5402aa89c210b24c5c6f6a5aea8746945dc900a | [] | no_license | anjelica-weber/Data_Mining | 5c84657ec7eb012c55b83be4014ea770b76cc2e1 | d8952586c93b98559a89ac8c6829233c4e1e0ca5 | refs/heads/master | 2023-07-08T21:17:13.056830 | 2021-08-25T16:43:37 | 2021-08-25T16:43:37 | 394,665,480 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,840 | r | Log_Regression.R |
# Load Libraries ----------------------------------------------------------
library(caTools)
library(tidyverse)
library(xlsx)
# Load Data ---------------------------------------------------------------
dir_ex <- paste0("J:/deans/Presidents/SixSigma/Individual Folders",
"/Current Employees/Engineers/A... |
3c45f44c9f71128b1f3d33475e2d074f515ded3a | 1a4b455f385cf9ba8ed6bc916497fe190deb5ed6 | /R-prediction-code/workflowsNew.R | b514098259887152525a66868f89d657a8dd2796 | [] | no_license | Blodgic/R-prediction-code | 72595e9315ce7ee158dede0f8df5395d7196e9ce | 037509d7303b82c40e593957c1a41d3eaf91eab5 | refs/heads/master | 2021-01-11T00:46:32.390135 | 2016-10-10T14:22:41 | 2016-10-10T14:22:41 | 70,493,646 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,172 | r | workflowsNew.R | ## ===============================================
## The Box Plot Rule workflow
## ===============================================
BPrule.wf <- function(form,train,test,...) {
ms <- as.matrix(filter(train,Insp != 'fraud') %>%
group_by(Prod) %>%
summarise(median=med... |
e8ae5b4e68d1ddb59e3ccd30b948a99bd9c0e70b | 01d2cc085dd9e6ecf5c23592a9f8b79d149f2a44 | /MoreIsBetter Bits/MoreSetup.r | 5aef7b892916bf9625cb7b14c53db0a5fa329fbb | [] | no_license | fruitsamples/OTStreamLogViewer | 02596342d830b17082fac9b89770a71009761c9e | b556c584f72ceecfe7fa9474b830cff347637142 | refs/heads/master | 2021-01-10T11:07:14.037047 | 2015-11-25T21:40:44 | 2015-11-25T21:40:44 | 46,888,752 | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 2,553 | r | MoreSetup.r | /*
File: MoreSetup.r
Contains: Sets up conditions etc for MoreIsBetter.
Written by: Quinn
Copyright: Copyright © 1998 by Apple Computer, Inc., All Rights Reserved.
You may incorporate this Apple sample source code into your program(s) without
restriction. This Apple sample source code has been provided... |
631bfdb93be957b6fa941898f9b0879bede287fc | f60fad0df80e47cb1d64e864653d8c8a30943384 | /Shinyapp/WordPredictor/predictor.R | 9da7af82faff8ac05b242ef1571c6fb49791296c | [] | no_license | kobe04/DataScienceCapstone | 5473c87ce71f627985d59b261f424c0462991d03 | e7a972cf11c13eb223a412e47d2256d08a476791 | refs/heads/master | 2020-05-03T20:44:42.449971 | 2019-05-01T10:06:16 | 2019-05-01T10:06:16 | 178,809,692 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,527 | r | predictor.R | ## Function to predict the next word
# library(data.table); library(stringr)
predictWord <- function(dataTable, inputWords, top10){
inputWords <- gsub("[[:digit:]]+", "", inputWords)
inputWords <- gsub("[[:punct:][:blank:]]+", " ", inputWords)
inputWords <- str_split(str_trim(str_to_lower(inputWords)), " ")... |
93eb6bf5103a07c1f904719078f57f9bfe44fe02 | be7f37f0a8680fac63aab8bd02f668a40da79dc8 | /GenomicDataScienceSpecialization/06_Bioconductor_for_Genomic_Data_Science/week4.R | 826b6334f8f8d6703b781bfdfe4aefff71454f18 | [] | no_license | dongyuanwu/SelfImprovement | 269f1af04394f8f3463f34bd071dd7860e2bd466 | 1349012e0775ac8ebe95356a181196772440c82b | refs/heads/master | 2022-12-22T09:17:55.771734 | 2020-10-04T21:26:45 | 2020-10-04T21:26:45 | 272,483,670 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,574 | r | week4.R |
# Q1
library(yeastRNASeq)
library(ShortRead)
fastqFilePath <- system.file("reads", "wt_1_f.fastq.gz", package = "yeastRNASeq")
reads <- readFastq(fastqFilePath)
reads_set <- sread(reads)
sum(DNAStringSet(reads_set, 5, 5) == "A") / length(reads_set)
# Q2
qm <- as(quality(reads), "matrix")
mean(qm[, 5:5])
# Q3
library... |
b4ac3c378cd52a1ca09392ef5ba40a17de8a6aed | 818dd3954e873a4dcb8251d8f5f896591942ead7 | /Mouse/Muga/ATB_paper/permute_gn_QTL2.R | 532d32c5a2ad703afdfb4dfab1883a702d303d80 | [] | no_license | DannyArends/HU-Berlin | 92cefa16dcaa1fe16e58620b92e41805ebef11b5 | 16394f34583e3ef13a460d339c9543cd0e7223b1 | refs/heads/master | 2023-04-28T07:19:38.039132 | 2023-04-27T15:29:29 | 2023-04-27T15:29:29 | 20,514,898 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,850 | r | permute_gn_QTL2.R | # Analysis of the PAT and MAT TRD regions in BFMI mice using BxD QTL data
#
# copyright (c) 2014-2020 - Brockmann group - HU Berlin, Danny Arends
# last modified Jan, 2017
# first written ??
setwd("D:/Edrive/Mouse/DNA/annotation/")
chrinfo <- read.table("chrLengths.txt",sep="\t", header=F, colClasses=c("character", "n... |
03fa59b0a3f97ef69999f994fc03a0bff40f82c3 | 2b9876217c38d0ae95258ca6d6ce77b6410efbbb | /Rscripts/collect_data/0020_gumtree_scraping_pokoje.R | bf707c79749f83fb6258efafa681def3ba722523 | [] | no_license | mi2-warsaw/CzasDojazdu | ab7978e7942eaff0d3543687d06febf40165a6f4 | 3e341c6c03835665d3f872500707767debccb276 | refs/heads/master | 2020-04-11T10:41:59.579575 | 2016-12-28T12:41:07 | 2016-12-28T12:41:07 | 51,079,859 | 4 | 5 | null | 2016-12-04T23:46:52 | 2016-02-04T14:08:43 | JavaScript | UTF-8 | R | false | false | 9,385 | r | 0020_gumtree_scraping_pokoje.R | source('Rscripts/inne/ulice/adres_z_opisu.R')
slownik <-
fread(
'dicts/warszawskie_ulice.txt', encoding = "UTF-8", data.table = FALSE
) %>%
unlist() %>%
unname()
aktualne_oferty <-
function(link) {
linki <-
read_html(link) %>%
html_nodes('.href-link') %>%
html_attr('href') %>%
... |
c5d940e053402de8e93e86219f7d369eeae26dc3 | 29585dff702209dd446c0ab52ceea046c58e384e | /CITAN/R/scopus.readcsv.R | 804e4d24dc47ed06ef4bd579977994a1f8ab4912 | [] | 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 | 8,893 | r | scopus.readcsv.R | ## This file is part of the CITAN package for R
##
## Copyright 2011-2015 Marek Gagolewski
##
##
## CITAN is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at you... |
a082ab87e6af30bf8851e8065d2fd2296b52c186 | 5fd9f144c6952f7192d86f83ebd6981a29ed9dd6 | /report/downturn_adarsh.r | 83b088dde72fe784ddf6ac52ba83617850407096 | [] | no_license | koustubh-dwivedy/ISB_Coursera | 44d0b685d206871da5494aa2ac4682e8bd7d6c2b | 3a607aca1762df113ff0d3f637f53ed2a224c43f | refs/heads/master | 2021-05-02T04:31:51.933468 | 2016-12-25T12:41:04 | 2016-12-25T12:41:04 | 76,651,576 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,172 | r | downturn_adarsh.r | library(data.table)
library(quantmod)
library(PerformanceAnalytics)
library(lubridate)
library(zoo)
start.time <- proc.time()
daily=fread(file.choose(), sep=",", nrows=-1L, header=T, na.strings="NA",stringsAsFactors=FALSE,data.table = T) #Drawdowns analysis folder
end.time <- proc.time()
cat("Elapsed; ", end.time[3]-s... |
853c1ca3df95515b3de4632dc681ff3f102c20cc | a8e43b3d29fe7f4f8002b5d7fadf6d5fd01ee886 | /Subset&Transform_ITRDBData.R | 25f8fe1a2be105eabd5274718d47b05379a4d0e2 | [] | no_license | RStetler/TreeRingAnalysisR | 043be257248b4e22c49fd3d943e5562289334743 | 092bf33380772b3391a5d07aeda46db8abd92824 | refs/heads/master | 2021-01-22T21:27:38.851939 | 2017-04-11T19:49:26 | 2017-04-11T19:49:26 | 85,431,143 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,765 | r | Subset&Transform_ITRDBData.R | rm(list = ls())
setwd("N://R_Files/All_ITRDB")
library(httr) ### seems like a lot of packages, but all are used somewhere...
library(dplR)
library(TRADER)
library(tidyr)
library(dplyr)
library(tibble)
library(reshape2)
dat <- read.csv("N://R_Files/All_ITRDB/ITRDB_Data_Canada.csv", header = TRUE)
dat <- transform(dat... |
011e7100efffa800a2f48aede64a06ac3a478280 | 8f8eac85cfbf8d3bc768318848ec964cb297b1cb | /nesi/labour_situation/4_descriptive_statistics/1_process_descriptive_statistics.R | f06f4fe0b832845c4780032b19e980a4bbaa9581 | [] | no_license | jnaudon/datachile-etl | 5231a3762dd32f3f3def4d568fc63934d603cf8b | 8fa577378d38f8d63f6dfdb00ed515bbb439f154 | refs/heads/master | 2023-03-23T00:36:35.698292 | 2019-03-23T03:30:16 | 2019-03-23T03:30:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 673 | r | 1_process_descriptive_statistics.R | labour_description <- rbind(labour_description_2010,labour_description_2011,labour_description_2012,
labour_description_2013,labour_description_2014,labour_description_2015)
rm(labour_description_2010,labour_description_2011,labour_description_2012,
labour_description_2013,labour_description_2014,labour_descr... |
12d7273112a67cc4bdaf1f96ef22c8db1fd16bbd | 83ce3b39e88c03e2c98ef2f05174195708ac3dbe | /inst/shotGroups_AngularSize_bs4Dash_05/app_ui_sidebar.R | 11e1702c54c78ff7b30804c98e6074d6cd15cee6 | [] | no_license | cran/shotGroups | e02467ffb36b8e528fa1c230b2a718512159fc19 | ae04a8371aa1cc18af598413d1bc41d389762acb | refs/heads/master | 2022-10-01T18:19:20.943958 | 2022-09-17T18:06:04 | 2022-09-17T18:06:04 | 17,699,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,015 | r | app_ui_sidebar.R | bs4DashSidebar(
skin="light",
status="primary",
brandColor="primary",
# elevation=1,
bs4SidebarMenu(
id="sidebar",
bs4SidebarMenuItem(
"Background math",
tabName="tab_math",
icon="square-root-alt"
),
bs4SidebarMenuItem(
... |
1cc9b039494042515470d2135ae7bf433ce926a8 | 392197450dbab7cb6b3084e33b0c844198ef770e | /R/undo.label.switching.old.R | 7cee28309a5c282657f25b083558a548ad1e9294 | [] | no_license | bhaskarrao511/BayesLCAdevel | 318345825795b0c77c6edffdc1148ea0937589ff | 500fb85cc8f56e439106d2008bb74a30c3d85f27 | refs/heads/master | 2020-05-14T08:36:42.354450 | 2019-07-12T19:53:17 | 2019-07-12T19:53:17 | 181,725,757 | 0 | 0 | null | 2019-07-01T00:10:08 | 2019-04-16T16:20:52 | C | UTF-8 | R | false | false | 3,441 | r | undo.label.switching.old.R | #=========================================================
# Implementation of the label switching algorithm
# of Nobile and Fearnside (2007) Statistics & Computing.
#
# Author of this implementation:
# Jason Wyse,
# Discipline of Statistics,
# School of Computer Science and Statistics,
# Trinity College Dublin,
# ... |
f8a2ef1a25d5ea9e033bb28d794873f91f062724 | 4499f2878a99237def8099503d76ca2f51d1ad18 | /Follow-up Analysis/script_to_analyze_2004_split_data.R | 785c6a277a9e35a4dcf53e317abee38d56a11f31 | [] | no_license | andytimm/election_stan_analysis | da21d3162dacb94414f05be3b86ebd7d1d405dfa | 45cbf2acad6c91595978f07ce0d2e62dd10d757c | refs/heads/master | 2020-05-06T13:37:25.874072 | 2016-09-13T19:54:22 | 2016-09-13T19:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,317 | r | script_to_analyze_2004_split_data.R | remove(list=objects())
library(arm)
library(car)
library(maps)
library(rstan)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
source("stan_lmer_voting_analysis.R")
source("generate_stan_fig_2.R")
########################################################################################
###... |
55eea5b5f75dd1ffd57529cd0c98a70ee0fe70a8 | 2dd8627c5565348c242396547e164dfd2e9b09bb | /R/filter_merged_reads.R | f1ec69a4f7fab2129219e0b52126a06c326a520d | [] | no_license | mottensmann/SealMHC | 127aa578849e8173b60d53f5d1eb83166202d47e | aea34aa13e7c4e945fad2e286525dc5733086d6d | refs/heads/master | 2021-10-10T17:48:59.222926 | 2019-01-14T14:20:49 | 2019-01-14T14:20:49 | 116,133,056 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,349 | r | filter_merged_reads.R | #' Filters merged reads prior to (i) clustering Zotus and (ii) assigning raw reads to them
#'
#' @description
#' This script does the following tasks:
#' 1.) Ensure that reads contain expected primer pair
#' 2.) Discard reads with unexpected length
#' 3.) Adds barcodes to headers of the fastq file
#' 4.) Removes read... |
352d4dc9a934c8aeec6321e0b6cfb8248fa53e7c | 6ceb3ce7cecc55b352ebb9b0d1195719b517611b | /common_libraries.r | 16e17660d00731bcb44756cb39d02eef293cc88d | [] | no_license | Shee-Ra/classify_entity_anzsics | 5b914787b28a77acde8f5131f9f8f5cd35fe2d5e | 638f05f9df84b3cdd77d9fa9dfb04ebe67da05df | refs/heads/master | 2022-11-23T07:56:41.727521 | 2020-07-20T11:54:11 | 2020-07-20T11:54:11 | 278,980,428 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 346 | r | common_libraries.r | # common libraries
library(pacman)
p_load(cutpointr # metric / evaluation
, fst
, ggplot2
, here
, janitor
, magrittr
, quanteda # bag o' words
, rsample # sampling
, ranger # model
, tictoc # timing
, tidyverse
, XML
, neural... |
42eed009d0c0c9baa196bf28311f7ba67fc2457b | 2da7dde35cd933e9cfff7e96970011c328e78bc3 | /chapter02/outlier.R | 069edd5f62934fc7518c0abfe1694e4ec9c5b9f2 | [] | no_license | LoveAndCode/BigDataProcessing | 29da5eeedeee01ddb3a2f353de141cc3abf00800 | a585e1897f9a5a47576ebfe2141019f9387345af | refs/heads/master | 2021-08-24T05:56:15.511007 | 2017-12-08T09:18:23 | 2017-12-08T09:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,184 | r | outlier.R | #########################
# Create by John marc #
#########################
# Cerate vector variables
age <- c(23,23,27,27,39,41,47,49,50,52,54,54,56,57,58,58,60,61)
fat <- c(9.5, 26.5, 7.8, 17.8, 31.4, 25.9, 27.4, 27.2, 31.2, 34.6, 42.5, 28.8, 33.4, 30.2, 34.1, 32.9, 41.2, 35.7)
# Check five statistics factor
sum... |
74929f62cf444ef5482ce4138d94583646520cd3 | 849368d2855b4ffcc80b7d1353ac22ac8a1efdce | /R/e046-logpatent1.R | 4482d0cb897179e436fa1dedfde01b5894a43f02 | [] | no_license | kenjisato/receptivity_and_innovation | b9712c2ebbba23e65c3c7d5cb6dbf3aa89ceeb06 | 6eec8bfb763fdb0a47de59713c8a4d87e8095977 | refs/heads/master | 2021-03-27T15:45:25.591916 | 2017-06-19T05:22:06 | 2017-06-19T05:22:06 | 82,227,024 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 307 | r | e046-logpatent1.R | source('R/e046-patent.R')
# Log Patent ----
xlabel = "Proportion of 'LEVEL'"
ylabel = "Patent applications by million residents (log)"
fname_lp = "output/e046_logpatent1_LEVEL"
save_plot(e046_patent, xvars = labels, yvar = "log(patent_count)",
xlabel, ylabel, fname_lp, placeholder = "LEVEL")
|
04dc4f4c6e63b917f2748685f6e5d40a1565b61e | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /nonfatal_code/cancer/03_models/05_nonfatal/refresh_incidence.r | e7c9a76ea604465d7e9ceabc784905aefcedcbdf | [] | 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 | 1,051 | r | refresh_incidence.r | #!/usr/local/bin/R
#########################################
## Description: Loads functions to calculate incidence data
## Input(s)/Output(s): see individual functions
## How To Use: intended for submission as a cluster job in the nonfatal pipeline (see "Run Functions" below),
## can also be sourced t... |
33ca14a47c623a777f25b7abceba8db965d6edea | c0693698db7a132954d748ee3b4c7e156e12475f | /function/text/admin_fig_function_topline.R | 25cf83acf08c67520ecf9151971814aece52bece | [] | no_license | Flowminder/FDFA_01 | cd527b2ed444da8d13eaf9aea58c8b8992f1e524 | 505792796b5cb4c88bc8f49518f87148976b1cf0 | refs/heads/master | 2023-04-10T04:51:56.346936 | 2021-04-15T10:58:10 | 2021-04-15T10:58:10 | 186,587,717 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,127 | r | admin_fig_function_topline.R | admin_fig_function_topline=function(mig_db,simple_countries_df,country_clicked,admin_clicked){
# null parameters
if(is.null(country_clicked)){country_clicked="AFG"}
if(is.null(admin_clicked)){admin_clicked="13"}
# if(is.null(focus)){focus="global"}
# if(is.null(type)){type="int"}
# if(is.null(direction))... |
f48f82c6d92db533bf27b6a7bccd1721ffcb5d1c | daa4e8cf09f8b0a7437c72e8400c901798cf5102 | /man/as.data.frame.listofModels.Rd | afea1d59656f9d0ddfe62a5d2c6b31bf19700b1e | [] | no_license | jacobbien/simulator | cbab7e91945b9a6dbe9b309a256f41e8ef1a6a30 | 3d325ec78d48c57cbdc16d1455c2ffcc85ae8bb1 | refs/heads/master | 2023-05-26T15:26:59.755742 | 2023-02-02T07:53:44 | 2023-02-02T07:53:44 | 62,213,043 | 51 | 13 | null | 2023-05-19T04:46:04 | 2016-06-29T09:21:45 | R | UTF-8 | R | false | true | 641 | rd | as.data.frame.listofModels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model-class.R
\name{as.data.frame.listofModels}
\alias{as.data.frame.listofModels}
\title{Convert a List of Models to a data.frame}
\usage{
\method{as.data.frame}{listofModels}(x, row.names = NULL, optional = FALSE, ...)
}
\arguments{
\item{x... |
5f6a3229f3db7f4c84787837f0051e15c3b4cf8d | 92951f9fef15b6c664bbf7a57ac7833a1f55a052 | /man/load_dirapp.Rd | cb1046c0cce6334d56374ec6bc9e461093ae606f | [] | no_license | jverzani/gWidgetsWWW2 | ac2727344c0aba50cc082e92617b874b6d0e8c2b | 37ca4b89419ced286627ccec1a8df26fface702c | refs/heads/master | 2021-01-01T18:48:10.743913 | 2020-02-06T16:46:51 | 2020-02-06T16:46:51 | 3,021,944 | 2 | 1 | null | 2014-10-16T11:36:16 | 2011-12-20T19:32:24 | JavaScript | UTF-8 | R | false | false | 804 | rd | load_dirapp.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/load.R
\name{load_dirapp}
\alias{load_dirapp}
\title{Load an app in a directory}
\usage{
load_dirapp(dir_name, ...)
}
\arguments{
\item{dir_name}{The directory name (with full path). We make several assuptions:
1) \code{dir/*.R} has o... |
a2f06bb6bab90f117ec47908bf5dffe989fdd488 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TrialSize/examples/TwoSampleProportion.NIS.Rd.R | eacd4b8af630497c2e66b533be38b192890290a2 | [] | 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 | 294 | r | TwoSampleProportion.NIS.Rd.R | library(TrialSize)
### Name: TwoSampleProportion.NIS
### Title: Two sample proportion test for Non-Inferiority/Superiority
### Aliases: TwoSampleProportion.NIS
### Keywords: ~kwd1 ~kwd2
### ** Examples
Example.4.2.4<-TwoSampleProportion.NIS(0.05,0.2,0.65,0.85,1,0.2,0.05)
Example.4.2.4
|
b51c05a8b5fdeda5afaeeaccbe101480d62865a1 | 29585dff702209dd446c0ab52ceea046c58e384e | /vines/tests/testthat.R | 17872c1e5bfbe145622c854fb3bf19ae353110e5 | [] | 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 | 58 | r | testthat.R | library("testthat")
library("vines")
test_check("vines")
|
5e4fa6062b914c576b4224064a11219a0eecb0ea | 8bc6efc754ad04c8385b56916dae8879c254a653 | /man/runSinApp.Rd | d9a721a6cfcc09b69ce8f7d10cd0d3e64d999d27 | [
"MIT"
] | permissive | xindizhang/SigAct | 1735d33b64ba21c500a6020eee6d2c7c59f0f3ed | 5746493625277c62ab49876e007b33cf868e438e | refs/heads/master | 2020-04-09T20:17:37.182899 | 2018-12-06T05:46:30 | 2018-12-06T05:46:30 | 151,490,655 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 365 | rd | runSinApp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runSinApp.R
\name{runSinApp}
\alias{runSinApp}
\title{\code{runRptApp} launch the shiny app distributed with this package framework}
\usage{
runSinApp()
}
\description{
\code{runRptApp} launches the shiny app for which the code has been place... |
5b99e81f25db19d245d81e508139a5d91f658f0c | 69c44f46b1194fdaf999bf6a9d193d31eb3aa8fb | /R/names_munging.R | 3d4d00d5128778371810ab211119f0fca03a2d50 | [] | no_license | jmarca/calvad_impute_trucks | 74d341931dde7c49d0142900a60b60a026c41d71 | 82574ffe6ec2f744303d84216446e165d0fbeeaa | refs/heads/master | 2021-01-17T09:53:29.248533 | 2016-11-04T20:54:35 | 2016-11-04T20:54:35 | 20,712,974 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,193 | r | names_munging.R | ##' process variable names in preparation for Amelia call
##'
##' I split this out so that I could test different things
##'
##' @param names.df the dataframe's names
##' @param count.pattern how to recognize the count variables, default is
##' "(heavyheavy|^nl|^nr\\d|_weight|_axle|_length|_speed|_all_veh_speed)"
##' @... |
567ee81f5d6c8cb6f536c3621a3886badac7e6f4 | d7d6a592fe258174b7359562863ea3417b95f872 | /Codes/App_playground.R | 8a0c0374a0a9f9c46fd2ac6a980605a8ef395bc2 | [] | no_license | Clarkbar36/Pro-Baseball-Experience | 8e3f4fb36b125bc9440013bacc8e96867025a38a | f0d990c66660f282d8d9841b60d1169fd1b49f05 | refs/heads/master | 2020-05-20T17:29:25.059558 | 2019-11-22T01:30:33 | 2019-11-22T01:30:33 | 185,662,610 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 22,928 | r | App_playground.R | suppressMessages(library(shiny))
suppressMessages(library(tidyverse))
suppressMessages(library(DT))
suppressMessages(library(dplyr))
suppressMessages(library(ggplot2))
suppressMessages(library(stringr))
suppressMessages(library(RColorBrewer))
suppressMessages(library(shinydashboard))
suppressMessages(library(readxl))
s... |
169957d422c2df2d60759c1e7a5a5860d2f3f31a | 913b69cf5afb21e845ba605193b17da7114afed0 | /h18/h17/Gruppe 2/prove/make_data.R | 9670f497c33bafe7511126fddfa760a0ff083353 | [] | no_license | langoergen/stv4020aR | 0751b2a1d8caad6e0aeec3d989ecc22ecda175eb | 73ceed813d52015fe01cdedd0f75cd614c93f87d | refs/heads/master | 2021-06-26T05:59:49.103342 | 2020-08-17T10:46:12 | 2020-08-17T10:46:12 | 201,868,165 | 0 | 7 | null | 2019-08-16T12:59:01 | 2019-08-12T06:08:59 | HTML | UTF-8 | R | false | false | 2,051 | r | make_data.R | data("steak_survey")
write.csv(steak_survey, file = "./prove/steak_survey.csv", row.names = FALSE)
rm(list = ls())
steak_survey <- read.csv("./prove/steak_survey.csv", stringsAsFactors = FALSE)
head(steak_survey)
table(steak_survey$hhold_income)
steak_survey$hhold_income <- ifelse(steak_survey$hhold_income == "$0 - ... |
9c4a12d59afc6b47a7f6474f70b4ba647b874985 | 506df9cb5e97c1fbf4586e3d2f504db1e283eec4 | /man/eeg_average.Rd | 2fb9cf6228c906eef0d6a2559a07b9367f2cb7f4 | [
"MIT"
] | permissive | erzk/eegUtils | 713dea18df6a38d24c739b402b95b86f74cfed5c | c646601fb69f689aa357f6fb21f7e76f52ab849f | refs/heads/master | 2021-09-12T23:22:01.404787 | 2018-04-22T15:40:43 | 2018-04-22T15:40:43 | 110,753,388 | 0 | 0 | null | 2017-11-14T22:41:58 | 2017-11-14T22:41:57 | null | UTF-8 | R | false | true | 660 | rd | eeg_average.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_modifiers.R
\name{eeg_average}
\alias{eeg_average}
\alias{eeg_average.eeg_epochs}
\title{Calculate averages (e.g. ERPs)}
\usage{
eeg_average(data, ...)
\method{eeg_average}{eeg_epochs}(data, ...)
}
\arguments{
\item{data}{An \code{eeg_e... |
5bd01b4cd8d38e10a3970aa2f8a80cb9dad29164 | 07a74984bf59ce4486e1bcaefafb8ce692b50d5a | /tests/testthat/test-layer_pointcloud.R | f2aed9ea8ad4138fe78fe44a62423e3d0a50ba33 | [] | no_license | SymbolixAU/mapdeck | c3bc3a61b8d8ade69b9b67fa69a00f9294281630 | 6138c6845e37ab3479e4ff65d9b0fff29e20f070 | refs/heads/master | 2023-09-03T22:34:43.418728 | 2023-08-24T22:14:59 | 2023-08-24T22:14:59 | 141,350,341 | 344 | 50 | null | 2023-08-09T22:22:59 | 2018-07-17T22:06:34 | HTML | UTF-8 | R | false | false | 3,037 | r | test-layer_pointcloud.R | context("pointcloud")
test_that("add_pointcloud accepts multiple objects", {
# testthat::skip_on_cran()
# library(sfheaders)
#
# geo <- '{"elevation":12345.0,"fill_colour":[68.0,1.0,84.0,255.0],"lon":69.11,"lat":34.28,"geometry":[69.11,34.28,12345.0]}'
# poly <- '[{\"elevation\":123.0,\"fill_colour\":\"#440154FF\... |
64fa441725dbd851f9ec8b75489438f138c94d78 | 92befee27f82e6637c7ed377890162c9c2070ca9 | /R/sirt_sup.R | 17932671a8e412ea8a7dd5c7e5e56e2fc0e3bbbf | [] | no_license | alexanderrobitzsch/sirt | 38e72ec47c1d93fe60af0587db582e5c4932dafb | deaa69695c8425450fff48f0914224392c15850f | refs/heads/master | 2023-08-31T14:50:52.255747 | 2023-08-29T09:30:54 | 2023-08-29T09:30:54 | 95,306,116 | 23 | 11 | null | 2021-04-22T10:23:19 | 2017-06-24T15:29:20 | R | UTF-8 | R | false | false | 129 | r | sirt_sup.R | ## File Name: sirt_sup.R
## File Version: 0.01
## sort(unique(paste(x)))
sirt_sup <- function(x)
{
sort(unique(paste(x)))
}
|
195be53b6361eda521f6470cc43bfea0ab7d597a | 29585dff702209dd446c0ab52ceea046c58e384e | /vottrans/R/vottrans.R | ec4b346864cdcf44d42b326dc7901b3eb5f6c286 | [] | 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 | 3,870 | r | vottrans.R | vottrans <-
function(Ro,Rn,v=1,nw=FALSE){
X2<-Ro; Y2<-Rn
# Ro beinhaltet die Ergebnisse der Vergleichswahl in Absolutzahlen; Rn die der aktuellen Wahl; die erste Spalte muss die Anzahl der Wahlberechtigten enthalten
N1<-nrow(X2); I<-ncol(X2)-1; J<- ncol(Y2)-1
# N= Anzahl der Gemeinden/Sprengel, I= Anzahl der Part... |
4627da3c72728cf0392630e73a982328f00b5f32 | b4fac7f23ac3c51c7de3ae2a298f2385ac3a3879 | /plot2.R | b1d499a2a2be2149a05f2c2f6a7fdfae64db1b99 | [] | no_license | JorisEekhout/ExData_Plotting1 | 414316e09a2aea13ab9180aa9c0e172813cd81d8 | d12f54d37a1e15a86d181d5ab3a815343094644a | refs/heads/master | 2020-12-27T05:23:17.480130 | 2015-04-12T18:03:37 | 2015-04-12T18:03:37 | 33,824,624 | 0 | 0 | null | 2015-04-12T16:37:12 | 2015-04-12T16:37:12 | null | UTF-8 | R | false | false | 704 | r | plot2.R | setwd("D:/personal//courses//data science//4. exploratory data analysis//assignments//week 1")
# 1. Reading Local Files
data <- read.table("./data/household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?")
# 2. Create subset from 2007-02-01 and 2007-02-02
dataSubset <- data[66637:69516, ]
# 3. Cre... |
60cf0f903ad3f73498ad29feda0274b17b92cd18 | 53d7e351e21cc70ae0f2b746dbfbd8e2eec22566 | /man/umxRAM.Rd | dc70fc31235f37e45cd1e96ecf4b62dbe8001b95 | [] | no_license | tbates/umx | eaa122285241fc00444846581225756be319299d | 12b1d8a43c84cc810b24244fda1a681f7a3eb813 | refs/heads/master | 2023-08-31T14:58:18.941189 | 2023-08-31T09:52:02 | 2023-08-31T09:52:02 | 5,418,108 | 38 | 25 | null | 2023-09-12T21:09:45 | 2012-08-14T20:18:01 | R | UTF-8 | R | false | true | 12,566 | rd | umxRAM.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_run_modify.R
\name{umxRAM}
\alias{umxRAM}
\title{Build and run path-based SEM models}
\usage{
umxRAM(
model = NA,
...,
data = NULL,
name = NA,
group = NULL,
group.equal = NULL,
suffix = "",
comparison = TRUE,
type = c(... |
4cf68b4394ca99235345c58a1247bb6be6858609 | 544c53900a8e9d428129d5d5d315ae6a0af15588 | /minutes.R | 2bb2c68f5f3c57f4fd72d0f6c21c7ac992329d90 | [] | no_license | andrewwoods1/kaggle-football-events | d5b2607822359b96a321375b6b038de4ec6ff600 | 51b42c162f07a1ad1bd3ff650d107c6d52e18e99 | refs/heads/master | 2020-03-19T07:05:58.415900 | 2018-06-19T11:42:34 | 2018-06-19T11:42:34 | 136,085,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,050 | r | minutes.R | library(ggplot2)
library(MASS)
library(dplyr)
df = read.csv(file.choose())
names(df)
#Home shots and time between them
soth = subset(df,df$event_type == 1 & df$side == 1)
soth = soth %>%
arrange(id_odsp)
wait_time = aggregate(soth$time,by = list(soth$id_odsp,soth$side),FUN = diff)
wait_time = wait_time %>%
arra... |
fab72526dfbf3486fcfd534f8f168f57fe3e213a | 3c5e7ebcf26cefac18b82a3637eb0e13e865f1b2 | /man/insertImage.Rd | 9558c2c54a05ff4a048d07385277ea311cc9bff3 | [] | no_license | david-f1976/openxlsx | 5e9e190b9b90b3eb7a6d971c32324f6232edfdea | 4078efbcf5a7cab93b2988827fef6c76169457bf | refs/heads/master | 2020-05-18T13:41:25.641064 | 2019-11-08T12:36:05 | 2019-11-08T12:36:05 | 184,448,650 | 1 | 0 | null | 2019-05-01T16:47:35 | 2019-05-01T16:47:35 | null | UTF-8 | R | false | true | 1,476 | rd | insertImage.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers.R
\name{insertImage}
\alias{insertImage}
\title{Insert an image into a worksheet}
\usage{
insertImage(wb, sheet, file, width = 6, height = 3, startRow = 1,
startCol = 1, units = "in", dpi = 300)
}
\arguments{
\item{wb}{A workbook o... |
9526fa32725c3610f121a918faac61a2d8edc081 | 77d7be56771c9ea750de7ea1118859287178fed0 | /R/api_counter_v2_out.R | 44e425987457184e994daf566c6991a70b68c251 | [] | no_license | namsor/namsor-r-sdk2 | d1664c84ddd97dd3c657aeaeb2a5f9e807a9fdc1 | 835cb3e361581cb9369b8635fa784cdb05d43f91 | refs/heads/master | 2021-06-15T03:22:10.226568 | 2021-03-15T08:47:25 | 2021-03-15T08:47:25 | 168,223,476 | 12 | 1 | null | 2020-12-22T14:44:32 | 2019-01-29T20:28:30 | R | UTF-8 | R | false | false | 7,477 | r | api_counter_v2_out.R | # NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't find here? We have many mo... |
2ead323af7d995d6093ea766d3248ca44a2a4d02 | a35aa4ec643c9f777c6c32ee64739f7ce48e0a07 | /man/fdlm_factor.Rd | 1ca72e1e39c68621d56bdf3d78591b685d202feb | [] | no_license | drkowal/FDLM | 4ffcbfc383c8951dc37bf13289138f12fdc602f0 | 61132895f7e2296fee343f1ade62673ee1d6c361 | refs/heads/master | 2021-01-21T07:30:48.307553 | 2018-08-16T16:40:18 | 2018-08-16T16:40:18 | 91,615,677 | 9 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,339 | rd | fdlm_factor.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/component_samplers.R
\name{fdlm_factor}
\alias{fdlm_factor}
\title{Sample the dynamic factors}
\usage{
fdlm_factor(Y, sigma_et, Wt, Fmat = NULL, YF = NULL, Gt = NULL,
W0 = NULL, kfas_model = NULL, useFastImpute = FALSE)
}
\arguments{
\item{... |
784a04368610d77715ebc99628d4756505e776cd | 21118dec07c98c1acd3d5808742257b7e858d9d1 | /cmp_YL_TopDom_results.R | c9849607b4d57d7c8a2f41d22ee76014d2c66b2e | [] | no_license | marzuf/v2_TopDom_Cancer_HiC_data_TAD_DA | e4857463c7365adc6d8d5c43c15cf5e5c0b47138 | f29f32512e23d64d88fe6836f62252ebcd4d8dd1 | refs/heads/master | 2022-12-16T07:58:45.325260 | 2020-09-09T15:05:43 | 2020-09-09T15:05:43 | 288,790,515 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,303 | r | cmp_YL_TopDom_results.R | require(ggpubr)
require(ggsci)
outFolder <- "CMP_YL_TOPDOM_RESULTS"
dir.create(outFolder, recursive = TRUE)
myHeight <- 5
myWidth <- 7
plotType <- "svg"
plotTypeP <- "png"
myHeightP <- myWidthP <- 400
plotCex <- 1.2
# Rscript cmp_YL_TopDom_results.R
source("../Cancer_HiC_data_TAD_DA/utils_fct.R")
td_folder <- ... |
088cdb663cfcd54166ab96909bb54322f1009b7c | cd1e68036a9e1f95e4e5fa6638bc8a068c9318e2 | /R/summary.quantileplot.R | f8b6e8a7b84e263874b30734c61d2b5ca650ada0 | [] | no_license | Allisterh/quantileplot | d29a8f22f1f52b13d7d259762448cdff2d3408e3 | 86757339471ca2328b0d7fe6f21386a3b0dd34fd | refs/heads/master | 2023-07-10T07:39:34.761760 | 2021-08-15T19:17:35 | 2021-08-15T19:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,553 | r | summary.quantileplot.R | #' Summary function for \code{quantileplot} objects
#' @description Summarizes the S3 class object returned by the quantileplot function
#' @param object An object of class \code{quantileplot}, which results from a call to the function \code{quantileplot}
#' @param ... Other arguments to \code{summary} commands
#' @ret... |
ccb570cce1d04194f3278512415fa6977590d9e3 | 8e9b6cef86337c5fc82491f4e6e212e733cbdb51 | /R/summaryNodeFunction.R | 700d41c5096ca0e5f86df21a7df4d04c7ea9e842 | [] | no_license | ClinicoPath/vtree | 1f1e3b439c46a6ce502c306690594c15fa82cd83 | 4a6f111e38b80410344d29b5aec20bd6008d1c06 | refs/heads/master | 2022-06-16T07:06:00.611631 | 2020-02-02T00:18:07 | 2020-02-02T00:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,408 | r | summaryNodeFunction.R | #' @importFrom stats median quantile sd
summaryNodeFunction <- function (u, varname, value, args) {
justpct <- function(w,digits=2,vp=TRUE,empty="") {
if (vp) {
num <- sum(w==1,na.rm=TRUE)
den <- length(w) - sum(is.na(w))
} else {
num <- sum(w==1,na.rm=TRUE)
den <- length(w)
}
... |
ba15869d6b3a4161722884d8ef6b1182f2486480 | c50a2f7f2e73a2a3c94e58a428f369caa7d28b4e | /global.R | 458446f9a814832a045699923783b4ae77b5e25e | [] | no_license | ardeldel/GeoVis | ba54dae57901f09a8b584e61aad6ca96c5effe79 | 838d3de1853c889a5ad0c9e8a5c0ab4b90d6bb59 | refs/heads/master | 2020-07-15T07:18:19.357757 | 2019-08-31T07:23:44 | 2019-08-31T07:23:44 | 205,510,886 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,019 | r | global.R | library(shiny)
library(shinyjs)
library(shinyWidgets)
library(shinydashboard)
library(shinydashboardPlus)
library(shinyalert)
library(RSQLite)
library(V8)
library(mapview)
library(rgdal)
library(data.table)
library(DT)
library(tools)
library(shinycssloaders)
library(writexl)
library(rgeos)
library(spgwr)
library(readxl... |
5c8814800fd5aef953f8d0f9ad02aa7422b460bc | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/3864_0/rinput.R | 85b4844c26665f5a47cefe241ee9e6c2ab22dd41 | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("3864_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3864_0_unrooted.txt") |
30b62f8c2b56e358b0aad5ae778de60b4378959e | e58b74c8073977666efb35804f703297d48253b1 | /R/sed_insert.R | 56e05a5ba286058f56c86594da46a691185c7e29 | [] | no_license | cran/rsed | d1ca717dc1973900dce32bd57665dd1d2502dbb4 | 062356808d906b1ab56300d4cc2b7365da0b8ac5 | refs/heads/master | 2021-08-26T05:01:23.500154 | 2017-11-21T15:13:02 | 2017-11-21T15:13:02 | 111,405,173 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,823 | r | sed_insert.R | ##' Insert one or more lines
##'
##' @details \code{sed_insert} only accomodates a single insertion point. Multiple lines may be inserted, but only one
##' insertion point is allowed, which is why \code{length(insertion)} must be 1. To make insertions at multiple locations,
##' \code{sed_insert} can be called repeate... |
572b718af0313f86dd9d5a47089a383fed828044 | cef3b5e2588a7377281a8f627a552350059ca68b | /cran/paws.cost.management/man/costexplorer_get_anomaly_monitors.Rd | cf6f6077da0bba6ffc83d1e96f36ec6fa7fb7385 | [
"Apache-2.0"
] | permissive | sanchezvivi/paws | b1dc786a9229e0105f0f128d5516c46673cb1cb5 | 2f5d3f15bf991dcaa6a4870ed314eb7c4b096d05 | refs/heads/main | 2023-02-16T11:18:31.772786 | 2021-01-17T23:50:41 | 2021-01-17T23:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,017 | rd | costexplorer_get_anomaly_monitors.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/costexplorer_operations.R
\name{costexplorer_get_anomaly_monitors}
\alias{costexplorer_get_anomaly_monitors}
\title{Retrieves the cost anomaly monitor definitions for your account}
\usage{
costexplorer_get_anomaly_monitors(MonitorArnList, Nex... |
6b8fd7d1fa970e4c37d763c7c35b94e2804f7be2 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610051564-test.R | 191722aa69c1f1f795053eb0018ebfa71204e23d | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 583 | r | 1610051564-test.R | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(-2.30331099970591e-156, -2.25931868540718e-156, -2.30331110816476e-156, 1.09015244729545e+217, -3.0784026009623e-288, NaN, 2.12199579047121e-314, 0, 0, 0, 0, 0, 0, 0, NaN, 1.3854086120054e-309, NaN, 2.80614289249855e-312, 1.62587122733437e-319, 0, ... |
748f99c33f7c87136fdf85515eac75fbfce34dcd | ea605f4a3ec4cbc7ec1fa8ea9b8ff74b71651d25 | /jmlr/code/plot.R | c434af302a072d951d5c2444ef39ad653c63dad6 | [] | no_license | ajgreen93/local_spectral_density_clustering | 07f4de71306fb62500bafe479c052bbcf24348d4 | 6703cc9700298e1a587eb9427d0fa16e17711926 | refs/heads/master | 2021-12-31T05:33:17.875088 | 2021-12-23T02:02:16 | 2021-12-23T02:02:16 | 164,931,242 | 0 | 0 | null | 2021-09-10T13:28:13 | 2019-01-09T20:15:59 | TeX | UTF-8 | R | false | false | 5,457 | r | plot.R | #----------------------------------------------------#
# Plot results from validate theory pipeline
#
# Plotting options are
#
# -- vectors <- c("samples","normalized_ppr","sweep_cut")
# -- quantities <- c("normalized_cut","conductance","local_spread","normalized_volume_ssd")
# -- parameter <- c()
#-----------------... |
b9729179cedb89536f41100fe41c6fe3bec5e944 | d92ad57706b24066ff15a21bc73c801684ac0c19 | /server.R | 1616e1fd59f7a854f56c54359a6a6b0699926d98 | [] | no_license | maisam8149/developing-data-products | e7b2fabf33adffcc55bb71e86efa26d238488b0f | 81199a36aa3409be82c79196882a9caaf9606882 | refs/heads/master | 2022-08-29T12:19:17.226098 | 2020-05-30T14:18:33 | 2020-05-30T14:18:33 | 267,650,604 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,337 | r | server.R | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
shinyServer(
function(input, output){
output$rentalYield <- render... |
d3441ee295736bc7f5386671b20b703d4eaa3bbd | b626f3d5090a85990ea689bc152775a6359ef429 | /process_student.R | 0a7ca2cac85585cb9c00eb022e12eabe45c19749 | [] | no_license | Planktos/SpData2019_midterm | ade4cca7d5bae7653051f9287209d9eabded7e75 | d8d80de4abee6ba5f686c5c476547018e2043184 | refs/heads/master | 2020-05-02T21:22:30.174677 | 2019-03-28T14:47:26 | 2019-03-28T14:47:26 | 178,218,166 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,125 | r | process_student.R | library(stringr)
library(plyr)
library(dplyr)
library(lubridate)
# Macrozooplankton data ----
#read in data
z <- read.csv("195101-201404_Zoop.csv", sep = ",",stringsAsFactors = F, header = T)
z <- z[,which(unlist(lapply(z, function(x)!all(is.na(x)))))] #using the "lapply" function from the "dplyr" package, remove fie... |
1f6af3b54efdf10aeb1de41ef8f2f5e5fc49aaaa | 168db5797a3b38a990ffe7724dbaff5700551a3e | /Hopfield/hopfield.r | 2222ba567187139b73194b5587687adc9614f4de | [] | no_license | Lucaslsps/Inteligencia-Computacional | 9729f8b5a47bc250a0d4eb261565412a664291fe | 7133cfb447b0f041cee5593685c58a9e6854aab7 | refs/heads/master | 2020-09-14T20:07:04.895711 | 2019-12-12T01:28:31 | 2019-12-12T01:28:31 | 223,239,611 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 5,055 | r | hopfield.r | rm(list=ls())
UM <- matrix(c(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,... |
9b7351d7a47576262df6f26f6d16b8268483e5bb | 44692f59da65ef2a635b7c721a2f2e9a8ada38bd | /R/MS_SSM_obs_cons_rate.R | 5482a0e569b59db6b598660c7062eb48d41fcd25 | [] | no_license | vtrijoulet/MS_SSM | d35a807a7305c8b2ea504ad9149fc2104e1050ae | 672535011415f0e2fe1825b76b809501028f9642 | refs/heads/master | 2020-04-22T21:11:46.074173 | 2019-09-30T11:56:13 | 2019-09-30T11:56:13 | 170,665,801 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,742 | r | MS_SSM_obs_cons_rate.R | ##### Prepare data for observed consumption rates #####
cons_data_fn <- function (data.file.diet2){
data<-read.csv(data.file.diet2)
# cf.("Consumption rates/Make meansw and bottemp as data_per prey species.R")
# Separate other food from consumption for 10 modelled sp
data2<-data[which(data$prey!="O... |
b6eec354af47f162a194b4a1f685768ad0b4499a | 15f54cf88824f8ef2581f0a00f8d7fd208f7d0f4 | /R/wiot2012_data.R | 19dd91496a6933f0c37d20e73c2b8c7c96bfe023 | [] | no_license | MatthewSmith430/GVTr | 83ee4761156096ca65a4406bd34204a36233c640 | c6cb9dd3f09a62c6df09238bdca96ad2785eabb7 | refs/heads/master | 2022-11-07T19:44:14.133448 | 2022-11-04T09:04:09 | 2022-11-04T09:04:09 | 115,260,573 | 4 | 3 | null | null | null | null | UTF-8 | R | false | false | 151 | r | wiot2012_data.R | #' @title WIOD 2012 Data
#'
#' @description WIOD 2012 dataset
#' @name wiot2012
#' @docType data
#' @usage wiot2012
#' @keywords datasets
NULL
|
f07af077f54554ac911a93b33b4ea4bd36f1b23d | 3925662c0fe04f924a952ecd0ddeb5b48237e125 | /plot4.R | adee1df26e5ada252e5e6423d3a56d06f93dc0fd | [] | no_license | globalstatements/ExData_Plotting1 | 62b00bc074b2fa9d16dd5cd35eab66aa8b7ae258 | ce2122ece2341c050dd1cbc9ad59b2c3f3053f78 | refs/heads/master | 2020-12-26T03:23:09.588817 | 2015-01-10T21:20:43 | 2015-01-10T21:20:43 | 29,069,930 | 0 | 0 | null | 2015-01-10T20:25:08 | 2015-01-10T20:25:08 | null | UTF-8 | R | false | false | 1,639 | r | plot4.R |
# Read input data with 1,442 days
allpowerdata <- read.csv("household_power_consumption.txt",
sep=";", na.strings="?")
# Subset with 2 days, February 1-2, 2007
the_days_str <- c("1/2/2007", "2/2/2007")
the_days_rows <- as.character(allpowerdata$Date) %in% the_days_str
powerdata <- allpowerdata... |
7057618c12424f03b528651c6f6d59faae2de249 | 9fbd34dd260879468ee3710dc80f1a96478d39f9 | /R/deprecated/Extract_LBDA.R | 7f7cfc12f8bbce635b53053c60f170ef50d2feb3 | [] | no_license | Kah5/bimodality | 2fa26842ba50cdceff22a2f9eb335fc73bcec496 | 2b53dd59777292f84666ac2fcbd7031eda8ddb71 | refs/heads/master | 2023-02-01T05:48:49.361038 | 2023-01-21T01:25:00 | 2023-01-21T01:25:00 | 49,456,870 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,974 | r | Extract_LBDA.R | # investigating the LBDA
library(ncdf4)
library(raster)
library(sp)
library(ggplot2)
LBDA <- brick('C:/Users/Jmac/Box Sync/LBDA/nada_hd2_cl.nc')
LBDA <- nc_open('C:/Users/Jmac/Box Sync/LBDA/nada_hd2_cl.nc')
summary(LBDA$var)
LBDA.out <- list()
LBDA.out$lat <- ncvar_get(LBDA, "lat")
LBDA.out$lon <- ncvar_get(LBDA, "lon... |
4ffd5f0c44d9ae5064abe9fad00e82bc3ac65054 | 89190c99d8309e9e5d9923886b1b530bd4fb54a4 | /r_for_data_science_tutorial_project/9_relational_data.R | b87b130febb395d67229a883cdce4201a93b9ef7 | [] | no_license | brezaie/RTutorial | be7415c7caf7c40743ea1ef5fbf4d0402b8f1cd7 | 917fc035945f18a5041746db4d9dbde3611fbf70 | refs/heads/master | 2020-06-18T05:41:52.267705 | 2019-07-30T10:59:27 | 2019-07-30T10:59:27 | 196,183,592 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,393 | r | 9_relational_data.R | library(nycflights13)
library(dplyr)
airlines
airports
planes
weather
planes %>%
count(tailnum) %>%
filter(n > 1)
weather %>%
count(year, month, day, hour, origin)
## Add primary key (surrogate key) to 'flights'
flights <- flights %>%
mutate(id = row_number())
## left_join
joined_flights_airlines <- flig... |
d38c3cc6bf4fba9dc1137f8a3d13ae97811f0f17 | 364dcb95aac6dff3f8548768dc99bba945ec81b6 | /tests/testthat/test-geom-point.R | 76b285e2e61f57b4248aa153d8742a85a331eb1b | [
"MIT"
] | permissive | tidyverse/ggplot2 | 3ef62b72861c246b13ffc2d95678079984fe65c0 | c76b9aeda648e9b6022b7169021e854c3d3890cb | refs/heads/main | 2023-08-31T07:08:20.846510 | 2023-08-17T16:19:44 | 2023-08-17T16:19:44 | 19,438 | 4,632 | 1,971 | NOASSERTION | 2023-09-14T13:25:40 | 2008-05-25T01:21:32 | R | UTF-8 | R | false | false | 746 | r | test-geom-point.R | test_that("single strings translate to their corresponding integers", {
expect_equal(translate_shape_string("square open"), 0)
})
test_that("vectors of strings translate to corresponding integers", {
shape_strings <- c(
"square open",
"circle open",
"square open",
"triangle open"
)
expect_equa... |
a48bc63c30c0520940ed4d6d0072b9473be6082e | 0e78c3b67b9e49c94ebfbd0b6d5f9e6d2c1b4a3a | /code/analysis/est/est_func.R | 30427a4173ba30e55e002f9467a54e07ed73a982 | [] | no_license | yusuket0123/relief_covid-19 | b82aef5972f81e055e1a076703717bee62126eb0 | a6b00f46d779379278ce1296361423e4d57b5046 | refs/heads/main | 2023-05-01T17:32:29.745775 | 2021-05-21T00:14:30 | 2021-05-21T00:14:30 | 304,525,190 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,984 | r | est_func.R | #"""
# estimation functiions
#"""
library(R6)
est = R6Class(
"est", # estというクラスを作成
public = list(
data = NA,
initialize = function(data){
#コンストラクタは、"initialize"
#インスタンス変数はself$
self$data = data
},
### メソッドを定義
## did estimation
est_did = function(year = "2020... |
18044cf81f8957f0a9625603adde28f58486b379 | b32f22ae43046016ad205f09f6d2fcde75394d8e | /R/io.R | c005d70622407e49271d185793d4e7b2490d4222 | [] | no_license | jrdnmdhl/StoreR | 4c86818e55332974a65d445553f62944151ff843 | 04f6c7f500a9da35fa4b538adb737b965a42e744 | refs/heads/master | 2021-01-13T00:04:06.655876 | 2017-09-04T22:14:08 | 2017-09-04T22:14:08 | 49,844,870 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 664 | r | io.R | read_name_from_lib <- function(libpath, name) {
readRDS(paste0(libpath, name, ".rstore"))
}
read_names_from_lib <- function(libpath, names) {
names %>%
setNames(., .) %>%
purrr::map(~read_name_from_lib(libpath, .))
}
write_name_to_lib <- function(libpath, name, value) {
saveRDS(value, paste0(libpath, na... |
553d61be89bc3ebc97da1170a39209401f34b11d | 4806763a1f25c39e5cd250f4d58e758981b125a7 | /R/stream.r | 0994948702c0f149cddc15fe87a8693a60969965 | [
"MIT"
] | permissive | frawalther/WatershedTools | a02d9abc680e1a9cb5cf0bcfdc908a3f48770f61 | 874f2c82938a3846df3461e6782fd51295e9dbdd | refs/heads/master | 2023-03-25T06:03:23.162801 | 2020-08-03T17:05:57 | 2020-08-03T17:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,693 | r | stream.r | #' Produce a DEM with basins filled in, as well as a flow direction raster
#'
#' @param dem Raster or character; a digital elevation model. If specified as a character, a layer with that name from the existing [GrassSession()] given by gs will be used.
#' @param gs An optional [GrassSession()]; if missing a new one wil... |
fafe731be9f066efa6c6b507c634ccb33a0b107f | e801994a21c2dbb5fd290caae49b1edd45f029c1 | /Genotyping/Rscripts/combined_concordance.R | 217bb0410a686e4e4d86ce06b8a4b4654cec3c0e | [] | no_license | GreallyLab/Rastogi_et_al_2019 | a0fca08eafa1a1d6b82599d07c3a3ce6be1c8055 | 00560da44e170ec5112afa17f7de67c94395ccff | refs/heads/master | 2020-05-18T14:18:06.011088 | 2020-03-17T18:51:57 | 2020-03-17T18:51:57 | 184,466,080 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 517 | r | combined_concordance.R | # Looking at the concordance of ZCall and Genome Studio using the calibrate thresholds
# load options
options(scipen = 999, stringsAsFactors = FALSE)
concord_list <- data.frame()
for (i in 3:15) {
temp_list <- read.table(paste("Combined_zcall_noMM_noNA_NCfil.concordance.stats.",
i,"... |
2d11bc51807fe1c1a4cf44c6639c79569c270fbd | 28ead05c25ebff34a03495c8c315983e068d49d9 | /R/RMSSD.R | 567044727b4a83845f2c764dcfd719a414769046 | [
"MIT"
] | permissive | seanchrismurphy/relativeVariability | 7e624c6505601d5094b53e96a1fb27591caaf60e | 3a5e84a2b46ebb622d2a3a15008f396a88e7a0e0 | refs/heads/master | 2020-04-07T06:31:17.041941 | 2018-11-19T00:05:30 | 2018-11-19T00:05:30 | 158,138,996 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 66 | r | RMSSD.R | RMSSD <-
function(X) {
v <- sqrt(MSSD(X))
RMSSD<-v
}
|
3797512301c2baad8a677bcfeb9e7bb1a6787d10 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/effsize/examples/cohen.d.Rd.R | f132a4e62085324c4c185d49f10803db55ab16d1 | [] | 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 | 524 | r | cohen.d.Rd.R | library(effsize)
### Name: cohen.d
### Title: Cohen's d and Hedges g effect size
### Aliases: cohen.d cohen.d.default cohen.d.formula
### Keywords: effect size Hedges Cohen
### ** Examples
treatment = rnorm(100,mean=10)
control = rnorm(100,mean=12)
d = (c(treatment,control))
f = rep(c("Treatment","Control"),each=10... |
8105bc2257bf44409868152ac0c9a1925f9ff4b4 | 8dc96b914bc558c52e320b6d9debf0a6458d4504 | /man/animate_vadt.Rd | 71d87b8c9e72e640aef4a479ac4a555439f38c4c | [] | no_license | cddesja/vat | c77e49a1d7fe8c5213f1720516051525dfba6814 | 24fa6f970b6f7984df29db7197debce364a717e8 | refs/heads/master | 2021-01-21T05:02:30.095034 | 2019-01-30T16:55:29 | 2019-01-30T16:55:29 | 31,027,220 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,327 | rd | animate_vadt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/animate_vadt.R
\name{animate_vadt}
\alias{animate_vadt}
\title{Animated Atlantis plots for vadt}
\usage{
animate_vadt(bgm, bmass, interval = 0.3, codes, savedir)
}
\arguments{
\item{bgm}{An Atlantis bgm file}
\item{bmass}{BoxBiomass.txt file... |
dedc098305aebfccf5d9fc022ffb1c94d8aab2d5 | 8c11b33e3164a61f647611845c433f3d7779ec65 | /R_code.R | 53c55f653722bac09abc7d86f6c848afc03510da | [] | no_license | iamyumang/Santander-customer-transaction | c2a52c5849c6fe8201b203070d3f758c17d124e4 | 47e84fd6088f4a1decac534ffb3a7f34e8fedc50 | refs/heads/master | 2020-09-11T14:44:13.728767 | 2019-11-16T13:12:11 | 2019-11-16T13:12:11 | 222,100,664 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,831 | r | R_code.R | x = c("ggplot2", "corrgram", "DMwR", "caret", "randomForest", "unbalanced", "C50", "dummies", "e1071", "Information",
"MASS", "rpart", "gbm", "ROSE", 'sampling', 'DataCombine', 'inTrees', "plyr","dplyr", "rpart", "usdm", "DataCombine", "sp", "raster", "usdm")
install.packages(x)
lapply(x, require, character.only... |
0dfad0691d968b96426d95bc10c5c21f6702f615 | 90e11c8ac3dc6dc090140843504c12ba6273ebdd | /Calculate_Collaboration.R | 6c2299f112e120566b5e9c0150a7ffb295e90f9b | [] | no_license | ckummer/mw-collaboration | 334323c6333c364cf449d4319655eb2c84f66730 | e82a3887e5d4ffd337bde7fa6e722b664da0c430 | refs/heads/master | 2021-01-18T10:37:44.179782 | 2018-01-17T16:20:54 | 2018-01-17T16:20:54 | 21,331,412 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 23,482 | r | Calculate_Collaboration.R | #Dieses Skript dient der Messung von Kollaboration in Wikis.
#Es ist Teil der Diplomarbeit "Learning Analytics zur Messung von Kollaboration in Wikis" von Stefan Jaeschke.
#Technische Universität Dresden - Wirtschaftsinformatik - Lehrstuhl für Informationsmanagement
#2013
#Sollten die benötigten Packages für die Analy... |
a1c20c6d62b01e289a5796bb6305125ec0f39972 | 29585dff702209dd446c0ab52ceea046c58e384e | /mistat/inst/scripts/ch08.R | 7c1a0140f57ecd2d9a9d4d816053f22aa1e37508 | [] | 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 | 8,108 | r | ch08.R | ###################################################
### Chap08Start
###################################################
library(mistat)
library(qcc)
qcc.options(bg.margin = "white",
violating.runs = list(pch=15, col=1),
beyond.limits = list(pch=15, col=1))
#######################... |
af86945c4e4939761460e5ea7d4f465fd6ace67b | 515f4cd97befa78ac1c18ae5e752aaaa5133bfdc | /plot1.R | 82c1116fc9dda39e349e4156141593b22e104a82 | [] | no_license | ga02h35x/coursera_exploratory | d386143ebaa9eca2b86ae0944336ca8bdf914bf5 | cf3a823628aac3b83143f6001b30f9ed47036cb2 | refs/heads/master | 2020-03-13T16:05:20.891983 | 2018-04-26T17:55:42 | 2018-04-26T17:55:42 | 131,189,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,002 | r | plot1.R | # Packages used
require("data.table")
# Download the data
path <- getwd()
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, file.path(path, "data.zip"))
unzip(zipfile = "data.zip")
# Read the data
data_power <- data.table::fread(input = "ho... |
39aba44e74aa16328837dbb38a694385f9ffcf8f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/B2Z/examples/B2ZM_MCMC.Rd.R | 5628f66b796577333bbdfaabc18b536d4e96c668 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,494 | r | B2ZM_MCMC.Rd.R | library(B2Z)
### Name: B2ZM_MCMC
### Title: Bayesian Two-Zone Models: using Gibbs with Metropolis step
### Aliases: B2ZM_MCMC
### Keywords: models
### ** Examples
##################
#Dependent Model#
################
#Data 1: 100 simulated concentrations during the times
#between 0 and 4, using the parameters Be... |
83827e2fc4d04721e06da1bc0cb858671313b03c | f400e65fec959b0bf45cce6cbbf1fa4d73d69324 | /computational statistics/EM-alogirthm - BN with missing.R | 76adba54bd830210fc77178cf0743b71502ee89a | [] | no_license | miniii222/study_in_graduate | afd726226d01fa7dceeadaed421d0e2bb862ea3b | 70d3a2e29cf9497298c7505c883d78eab8d29bd7 | refs/heads/master | 2020-04-10T08:28:59.503539 | 2019-06-25T13:41:42 | 2019-06-25T13:41:42 | 160,906,960 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 777 | r | EM-alogirthm - BN with missing.R | library(ggplot2)
#Bivariate Normal with missing values
w1 <- c(8,11,16,18,6,4,20,25,9,13)
w2 <- c(10,14,16,15,20,4,18,22,NA,NA)
binorm_missing<-function(w1,w2,e=10^(-10),maxiter=1000){
mu1 = mean(w1); mu2 = mean(w2, na.rm=T)
v1<-var(w1); v2<-var(w2, na.rm=T); v12<-cov(w1[1:8],w2[1:8])
n<-length(w1)... |
52f4e12023aba6c91a9ec58f9b9afe0df2757f89 | 297bce564ffe3dd6f0f043f41d7944610193662b | /R/extendr-wrappers.R | 1a145b9a99cbf30012490e69a72d5174cba623c6 | [
"MIT"
] | permissive | chaoshengt/string2path | 62041d331edd12968cae836c3db1676ffa86815c | 226c2f7166ce257465b5c0fc49481373eb485b26 | refs/heads/main | 2023-06-29T05:52:14.286907 | 2021-08-01T00:53:23 | 2021-08-01T00:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 656 | r | extendr-wrappers.R | # Generated by extendr: Do not edit by hand
#
# This file was created with the following call:
# .Call("wrap__make_string2path_wrappers", use_symbols = TRUE, package_name = "string2path")
#' @docType package
#' @usage NULL
#' @useDynLib string2path, .registration = TRUE
NULL
string2path_impl <- function(text, font_... |
02fcadfc18b63a049f1900f75c566ef40533576b | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612802390-test.R | 2af0d3c2f06312f7047de660c3fe55dbdd434aaf | [] | 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 | 730 | r | 1612802390-test.R | testlist <- list(bytes1 = c(-2030043136L, 37748739L, -16056541L, 562069632L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2139062144L, -2137877870L, -1837105152L, 515L, 14015745L, -309161326L, -1835887982L, -1835887982L, -1835888128L,... |
d17e376f80e5da276696c377419f986602a25720 | fbc250539c000ea58165cfee199afe8d9fbe57da | /man/stamppPhylip.Rd | 9d031c81c1e1d227d875b1f6ee924815d3ec0835 | [] | no_license | cran/StAMPP | 3fce0a4b68a29a4f1888611dfa019dfeff4f98b2 | d521ba65370dca3336fc87a2a20c5ba61e446dee | refs/heads/master | 2021-08-31T12:58:51.905294 | 2021-08-08T03:20:05 | 2021-08-08T03:20:05 | 17,693,767 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,378 | rd | stamppPhylip.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stamppPhylip.R
\name{stamppPhylip}
\alias{stamppPhylip}
\title{Export to Phylip Format}
\usage{
stamppPhylip(distance.mat, file = "")
}
\arguments{
\item{distance.mat}{the matrix containing the genetic distances generated from stampp... |
e41c6d4cc319586886728e17958581749be33a2a | 144637e7e9fd67854a74bd5d76e5b6207a74cc66 | /ui.R | ccd38d7b5e4b6dea586e23ea3fbe229edc1bc857 | [] | no_license | felixgerlsbeck/Next_Word_Predictor | 3351d95f0e8b7328faa56a0247dfb66eca487e67 | 3076a8b05a6b1ef3d9626bfc797872aafbc5557d | refs/heads/master | 2021-01-23T00:34:39.069985 | 2017-03-21T20:54:51 | 2017-03-21T20:54:51 | 85,741,613 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 864 | r | ui.R | library(shiny)
library(shinythemes)
shinyUI(fluidPage(theme = shinytheme("superhero"),
titlePanel("Next Word Prediction App"),
##Simple UI layout with entry field in the sidebar and output in the main panel.
sidebarLayout(
sidebarPanel(
h4("This application takes any text input and predicts the most ... |
211bac4f9d8da2cde01555dc5fd060ddddc38ab6 | f49d4f14b515c6e0403e69428e495e22f6f0fb2e | /tests/testthat.R | b6952876c09b81488acaa675ae7873f62b41e724 | [] | no_license | szugat/predfat | 2bdb92f87de04c0f7a1f7786381390718e0b3ec8 | ea390720d56fa6ecd76adb5ffb1823d97d493e6c | refs/heads/master | 2020-12-24T06:59:05.292260 | 2016-06-06T11:27:35 | 2016-06-06T11:27:35 | 34,121,567 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50 | r | testthat.R | library(testthat)
test_check(package = "predfat")
|
19842feab6ed1c5555e0e5bfbdddc6c30f09a810 | 3ba7e702b4d05cd8fbea4c165d64ef04552eeeba | /replicacao.R | 65c9489b10cccb812af7373f16c3c8551e1b92df | [] | no_license | meirelesff/monte_carlo_rbcp | d3292079c1c59bdec211646d958e794ac3639db4 | 70349e77a6cac10d9910c6dff958d1e1175de0d0 | refs/heads/master | 2021-01-23T10:45:23.288562 | 2017-06-01T20:11:50 | 2017-06-01T20:11:50 | 93,092,326 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,267 | r | replicacao.R | # ---
# REPLICACAO 'SIMULACOES DE MONTE CARLO NO ENSINO DE CIENCIA POLITICA
# ---
# Carrega os pacotes necessarios
library(stargazer)
library(gridExtra)
library(ggplot2)
library(MASS)
# Fixa um seed para reproduzir os resultados
set.seed(2)
# ---
# FUNCOES USADAS
# ---
# Funcao para simular N regressoes com uma... |
f73b2e71cbd0ad9db1eadc77aad0ef7e37727ccd | 12cfd9840d2a4eee125d6bcadab6d4450edd52cc | /KKT/U_KKTcheckings_using_R.R | 14a023315699cef20709b3b8beb844ad6f473cb1 | [] | no_license | boxiang-wang/powerfamily | 2af9b8aba0c435a26d5d202da7f988171846d9e5 | abbc12ea2eb3ba5baf442c817a14e6ea3a22ba06 | refs/heads/master | 2021-05-28T00:36:11.678273 | 2014-04-12T17:48:55 | 2014-04-12T17:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,035 | r | U_KKTcheckings_using_R.R | hsvm <- function(v, varlist) {
delta = varlist$delta
r <- v[1]
if (r > 1)
dl <- 0 else if (r <= (1 - delta))
dl <- (1 - r - delta/2) else dl <- (r - 1)^2/delta/2
dl
}
dhsvm <- function(v, varlist) {
delta = varlist$delta
r <- v[1]
if (r > 1)
dl <- 0 else if (r <= (1 - delta))
dl <... |
6b072ba0b58605fe273dd2f63f01905b3ccc2cae | f644050d5616b639c6524447fe71ba7fd9fa3eae | /2.R | f567dc8cbe2e20314d015528361edde9a3ecbe18 | [] | no_license | Dikosh/xgboost-1- | 45e0c1863735caf76d98766d6ef25f8b2e873d05 | 9471fc510da8e1ada363e92675e28946d588e2cd | refs/heads/master | 2021-07-08T19:35:43.121365 | 2017-10-04T06:29:15 | 2017-10-04T06:29:15 | 105,737,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,793 | r | 2.R | install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("xgboost", repos="http://dmlc.ml/drat/", type = "source")
data(agaricus.train, package='xgboost')
data(agaricus.test, package='xgboost')
train <- agaricus.train
test <- agaricus.test
bstSparse <- xgboost(data = train$data... |
c2a47ae47fd9d71cb4b3f8fd1047054775e2f1d1 | 3e216eff033b857262d5392145d6e24df189dc8b | /R/myFUN_myGenotypeParametersDrought.R | 487370ff37595c00567daeeb3cd640e4402571cb | [] | no_license | agroflavian/GLEIS | 5e7acc5c9b353262303f6f03e97d8bb757ac79c6 | f73f2e18d79b203ff8a62a11bbdb8b0447990c31 | refs/heads/master | 2020-04-08T20:58:34.019204 | 2018-11-30T13:46:09 | 2018-11-30T13:46:09 | 159,723,638 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,459 | r | myFUN_myGenotypeParametersDrought.R | #' A GLEIS function
#'
#' Calculated the slope/ intercept/ r2 and p value of the regression curve (here in the drought treatment group)
#' @param Geno is a single Genotype
#' @return returns the above named vlaues in a table
#' @keywords regression
#' @export
#' @examples
#' myFUN_myGenotypeParametersDrought()
#'
#'
my... |
f6e1d9f3d273a83bf7cd2639d75c15beac18d56b | 27cf2d56ebb117703873f45745a2da819b039467 | /R/to_graph_S3methods.R | 6cd2a52b47befad174c0ee1f999935ed385f8e4b | [] | no_license | cran/cglasso | 019589498b51044816bed94e93f2349fe588a236 | 4ccfb2d8b3eecd47905f5a50e556ba3ddebb496e | refs/heads/master | 2023-01-20T23:58:16.552881 | 2023-01-17T16:00:15 | 2023-01-17T16:00:15 | 148,851,182 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 491 | r | to_graph_S3methods.R | is.cglasso2igraph <- function(x) inherits(x, 'cglasso2igraph')
print.cglasso2igraph <- function(x, ...) print.listof(x, ...)
plot.cglasso2igraph <- function(x, type, ...){
op <- par(no.readonly = TRUE)
on.exit(par(op), add = TRUE)
if(missing(type)) type <- ifelse(is.null(x$Gxy), "Gyy", "both")
gr <- g... |
1a4f8ef0a34482d3ddb9f1dd02ca69a4525e502a | 8c84e313fe5a6016cd92ce1ef18a8ff409f4940a | /functions/calc_kp_temp_pa.R | 40817ce6f1ff5dc412b835417ddcf9f8315b520d | [] | no_license | SmithEcophysLab/optimal_vcmax_R | 56754d2321bb6314b8bcdca6870b0f6c71ca0112 | 72a050d8852456a271c023e380ee1c72be0bd3f7 | refs/heads/master | 2022-09-09T12:05:53.883354 | 2022-03-29T13:45:45 | 2022-03-29T13:45:45 | 156,727,566 | 16 | 14 | null | 2022-01-20T15:33:34 | 2018-11-08T15:27:30 | R | UTF-8 | R | false | false | 337 | r | calc_kp_temp_pa.R | calc_kp_temp_pa <- function(temp, z){ # Boyd 2015
patm = calc_patm(z)
rat = patm / calc_patm(0)
R <- 8.31 # in Joules
temp_k <- temp + 273
kp_25 <- 13.9 # Pa Co2
kp_25 <- kp_25 * rat
Ea <- 36.3 # kJ mol-1
Ea_j <- Ea * 1000
kp <- kp_25 * exp(Ea_j * (temp_k - 298.15)/(298.25 * R * temp_k))... |
1587c98e8fe623141bdce182a9fc0a304647909b | e99ca694bfa7450b51b163106d09b3208fbd266b | /man/ConfigFileOpen.Rd | a3e9f9d617f917648586b27fffec83b9bc8129f7 | [] | no_license | andrejsim/s2dverification | 03fd95f7e0185153a791fd4765da758a0adf8b11 | e337c847f12642709462951b9f05842418e7081f | refs/heads/master | 2020-07-10T12:39:41.441750 | 2016-02-17T11:19:18 | 2016-02-17T11:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,039 | rd | ConfigFileOpen.Rd | \name{ConfigFileOpen}
\alias{ConfigFileOpen}
\alias{ConfigFileCreate}
\alias{ConfigFileSave}
\title{
Functions To Create Open And Save Configuration File
}
\description{
These functions help in creating, opening and saving configuration files.
}
\usage{
ConfigFileOpen(file_path, silent = FALSE, stop = FALSE)
ConfigFile... |
16a91bd75624c6354c62288fac8fcd114cd49999 | cb9094fb90d3b632bbb8173f55b04709624dd091 | /man/preprocess_dt.Rd | 4c14628fdeaa088fb214a45043205844551736d3 | [] | no_license | tw1118/myutilitypackage | c28d8e4a9f99e14c5a4beb9ceb098a4f8bc82bd9 | bb499ea7bd2b9bc1a9e827bfe08a59f893a7ed79 | refs/heads/master | 2021-05-11T15:33:16.919875 | 2018-01-29T23:41:36 | 2018-01-29T23:41:36 | 117,732,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 387 | rd | preprocess_dt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess_dt.R
\name{preprocess_dt}
\alias{preprocess_dt}
\title{Preprocessing data}
\usage{
preprocess_dt(df)
}
\arguments{
\item{a}{data table}
}
\value{
a data table
}
\description{
This function will eliminate zero variance column and un... |
7dda9ee9171350f65b97f966c02987bf25a0d245 | c0e766a6a57e3c5c32f8b0afe130b8df66e6dbf9 | /rsellPoshmark/R/PM_Sales_Upload_Format_Summary.R | 065c2eccbd5ef86cc58ece77d08a59e23783d689 | [] | no_license | t2tech-corp/Rsell-Packages | b450fec180754aa9cf0cf3ab6b369c74c57b7e70 | 047a2348650e5a2ee0bc52500824a34f16167056 | refs/heads/main | 2023-03-03T00:22:15.006720 | 2021-02-14T22:58:12 | 2021-02-14T22:58:12 | 329,474,392 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,942 | r | PM_Sales_Upload_Format_Summary.R | #' Format Poshmark Upload Panel
#'
#' This function formats the Poshmark Upload Panel.
#'
#' Requires: shiny
#'
#' @param sales_activity Poshmark Sales Activity Table
#' @return alert_text HTML Formatted Panel
#' @export
#' @examples
#'
PM_Sales_Upload_Format_Summary <- function(sales_activity) {
summary_stats <-... |
9ffae06d276125550a33f7dba23347001766a86b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/solrium/examples/update_json.Rd.R | fd9666bfb28bea817598c067422709d3a18bd2d9 | [] | 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,097 | r | update_json.Rd.R | library(solrium)
### Name: update_json
### Title: Update documents with JSON data
### Aliases: update_json
### ** Examples
## Not run:
##D # start Solr: bin/solr start -f -c -p 8983
##D
##D # connect
##D (conn <- SolrClient$new())
##D
##D # Add documents
##D file <- system.file("examples", "books2.json", package... |
a35dfd612e19030f5ba992a24dc0aabf512ac573 | 7d5d8492c2d88b88bdc57e3c32db038a7e7e7924 | /robustness/junk/spatial_consistency.R | b2389d550e1a363131e72d2293c012a75ab5b8ed | [] | no_license | CIAT-DAPA/dapa-climate-change | 80ab6318d660a010efcd4ad942664c57431c8cce | 2480332e9d61a862fe5aeacf6f82ef0a1febe8d4 | refs/heads/master | 2023-08-17T04:14:49.626909 | 2023-08-15T00:39:58 | 2023-08-15T00:39:58 | 39,960,256 | 15 | 17 | null | null | null | null | UTF-8 | R | false | false | 2,048 | r | spatial_consistency.R | #check why there is something weird going on between yield and meteorology data
#answer: CDO shifted meteorology by 1.125/2 = 0.5625 to the left.
#This was presumably when cutting the data to African domain.
#Hence just a shift to the right will fix it.
#Make sure the displacement is accounted for in any data extrac... |
8755f35efc4bdc0261976f36bd14fe87ca2ad0d5 | 3d4379cd642047d6edcf6f780820b058c49d06ac | /Predicting_Pulsar.R | 2234c9b4e53e8d9f4a18cd1c1abd60100d026a0f | [] | no_license | VishakhaT/Predicting-the-presence-of-Pulsar | d2e530feed3c14fc4e6abfeae8e5290a0599434f | 24f263f5f042909252cc31eb62a3959a8a4654c2 | refs/heads/main | 2023-02-01T00:42:04.541112 | 2020-12-07T03:11:49 | 2020-12-07T03:11:49 | 319,187,886 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,473 | r | Predicting_Pulsar.R | ---
title: 'STAT656: Final Project'
subtitle: 'Predicting a Pulsar'
output:
html_document: default
---
packs = c('dplyr','ggplot2','AppliedPredictiveModeling', 'caret','RANN','corrplot', 'MASS', 'pROC', 'glmnet', 'readr', 'shiny')
lapply(packs,require,character.only=TRUE)
# Define UI for app... |
f13f5a5dc25d7a23bb71e16e2f24bf9d67af0c31 | b13b7c027d119e97012dcbe972cb68cfcd71d8e5 | /intron_by_coord.r | 3205ddf180ade78ce19443a385ba081471210414 | [] | no_license | dhtc/FISH-probe-design | 197e716a6a416a70fc4f5cbbf8cf1e9258e51fdc | 3be9a312e84ee30e4e890b0028b2d57c8a27e127 | refs/heads/master | 2022-01-05T10:19:01.596164 | 2018-07-24T09:22:41 | 2018-07-24T09:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,481 | r | intron_by_coord.r | ##############################################################
# Extract introns for a list of genes using exon coordinates #
##############################################################
#if biomaRt and the corresponding genome packages are not downloaded yet
#install.packages('Rcpp')
#source("https://bioconduct... |
a71c6d419cebc6a5af4e6b1de752edf4719b66e4 | fbe57536cc2d84e69a5bf799c88fcb784e853558 | /R/spc.controlviolation.nelson.1984.test5.zone.a.2.outof.3.R | 626bddbe9f3d665c4ea7b722919234376422c6b3 | [
"MIT"
] | permissive | burrm/lolcat | 78edf19886fffc02e922b061ce346fdf0ee2c80f | abd3915791d7e63f3827ccb10b1b0895aafd1e38 | refs/heads/master | 2023-04-02T11:27:58.636616 | 2023-03-24T02:33:34 | 2023-03-24T02:33:34 | 49,685,593 | 5 | 2 | null | 2016-10-21T05:14:49 | 2016-01-15T00:56:55 | R | UTF-8 | R | false | false | 1,787 | r | spc.controlviolation.nelson.1984.test5.zone.a.2.outof.3.R | spc.controlviolation.nelson.1984.test5.zone.a.2.outof.3 <- function(
chart.series = NA,
center.line = NA,
control.limits.ucl = NA,
zone.a.upper = NA,
zone.ab.upper = NA,
zone.bc.upper = NA,
control.limits.lcl = NA,
zone.a.lower = NA,
zone.ab.lower = NA,
zone.bc.lower = NA,
... |
9f7922e5afbd5bcc8fcaf1544762100880fca4ff | 5539ea2e76cc320979475135f75fc6a3644fee1f | /corr5.R | 18d4b90909aa9dce3bc14138c38a198456734ead | [] | no_license | Georman73/datasciencecoursera | e331620f2431d52326e575df3995e105379de4cb | 8398d9fb1cb1e934227604a1ddbb2ae5d6826923 | refs/heads/master | 2021-01-19T17:07:50.034258 | 2017-07-20T22:54:49 | 2017-07-20T22:54:49 | 88,307,184 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 498 | r | corr5.R | corr5 <- function(directory, threshold = 0) {
complete_table <- complete("specdata", 1:332)
nobs <- complete_table$nobs
idnums <- complete_table$id[nobs > threshold]
corrdata <- numeric()
fileList <- list.files(path = directory, pattern = ".csv", full.names = TRUE)
j <- 1
for(i in idnums) {
po... |
89ce3a0bc311e320da2ce8bd94da45dd439f20f9 | de1c1830440268dd95e74a97a56ca5692f418667 | /dateTime.R | 027fee64897c085860c2d3777877209676b2e10f | [] | no_license | pennyscalper/cs229 | fba021ef5b884bcc6c617fa6f07eb63ca0ce2ff8 | cb82c92f28a446da979eb438210e420d0ce11263 | refs/heads/master | 2020-04-11T14:52:46.394484 | 2018-12-15T05:11:56 | 2018-12-15T05:11:56 | 161,871,968 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,342 | r | dateTime.R | dtime.toDate <- function(date) {
if(class(date) == 'Date') {
return(date)
}
dt <- data.table(dateChar=as.character(date))
if(any(dt[, grepl('^(19|20)[0-9]{6}$', dateChar)])) {
dt[, date:=as.Date(dateChar, format='%Y%m%d'), dateChar]$date
} else if(any(dt[, grepl('^(19|20)[0-9]{2}-[0... |
8ec856728ebf647fd072de21808c84bb5e9b2198 | abf71d8505eb53c09420c88e5dd2498df3867540 | /R/GPS_trip.R | 59ddaa866360d18abe3e07554c1d8c3e70aaf16b | [
"MIT"
] | permissive | MiriamLL/sula | 260762ecd7f0788b1dfbac48a923265785fcf630 | 39a5ba8a0bd5a28151747b5f5586d603c10e20f9 | refs/heads/main | 2023-08-04T18:55:55.895322 | 2023-07-21T14:42:09 | 2023-07-21T14:42:09 | 354,821,022 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 524 | r | GPS_trip.R | #' Tracks de bobo/piquero/kena Sula dactylatra en Rapa Nui
#'
#' Datos de tracks de Sula dactylatra colectados usando GPS en Rapa Nui
#' Incluye 1038 observaciones de 7 variables
#' Incluye datos de 1 individuo
#'
#' @docType data
#'
#' @usage data(GPS_trip)
#'
#' @format Un csv en formato rda, contiene datos de cinco ... |
e0f234e5d7c7764be244416909071e932fe3693e | 841e797ed68081a5c6941ae67b36e8b1b516872b | /phaede/server.R | b3415aebfd04cf1423353ad09f2de75e6a6bd27f | [
"MIT"
] | permissive | ai-cfia/PHAEDE | 69f6402df34d54ad9e85a35ddedc32605c3052d3 | ab89cf8136ed457b58b14bb8bf55a00d088ffc2f | refs/heads/master | 2021-01-06T15:05:54.128467 | 2019-12-23T18:53:33 | 2019-12-23T18:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,886 | r | server.R | library(shiny)
library(fastrtext)
model_fasttext <- load_model("model_fasttext.bin")
percent <- function(x, digits = 2, format = "f", ...) {
paste0(formatC(100 * x, format = format, digits = digits, ...), "%")
}
shinyServer(
function(input, output) {
predict_fasttext <- reactive({
predict(model_fasttex... |
c24963f6bbae84a4a76356af3692821f5bde85e0 | 5868f3fae67e3504b730089d49ef27ce16cf7994 | /Machine Learning/Homework 2/NHollingsworth_Homework2.R | ad7f4fdd5a667fd80b371dd490035ddc21b40b3c | [] | no_license | nhollingsworth09/Spring-2019 | 655bc626a347e838c31f63999e381e5f83d48102 | dfb48c049428e0656f99b2e3d3ec036b6ccfaa8f | refs/heads/master | 2020-04-18T05:22:54.134774 | 2019-08-26T23:48:47 | 2019-08-26T23:48:47 | 167,276,997 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,032 | r | NHollingsworth_Homework2.R | rm(list=ls())
setwd("C:/Users/nholl/Dropbox/SPRING 2019/MSA 8150 - Machine Learning/Homework/HW2")
#install.packages('Metrics')
#install.packages('caret')
library(Metrics)
library(ISLR)
library(boot)
library(MASS)
library(class)
library(caret)
################
## Question 1 ##
################
# Part (a)
# Part (b... |
74f32c496cbbabfd7642ee0d8aea4f9a4bd44825 | 1a2d86c73a4c32fba9eb94be677f60b1b049833d | /tests/testthat.R | 3d81a8655bd09bdd87d4e76f8257e3f294c704c8 | [] | no_license | cran/qpNCA | a13fdfd22d3021bea539373ae5354f3ca7436622 | 03f47c29254cd40f71858025e3aef7c9db3fb317 | refs/heads/master | 2023-07-12T22:43:17.847268 | 2021-08-16T11:50:02 | 2021-08-16T11:50:02 | 385,804,562 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 58 | r | testthat.R | library(testthat)
library(qpNCA)
test_check("qpNCA")
|
61d3ff04e2052c303c8992432c2e1fdca585327e | ce16ab16f539400008d7290c3b20438014e15cc4 | /man/plot_dist_density.Rd | 1890a62eb5ae24994d26c6431b0b4696dc24c0f5 | [
"MIT"
] | permissive | antonvsdata/notame | 5c7f61a7aa1f37cbc0e162c048d0cae3a9fa7cb9 | 6afdf6f0f23a3d172edcd60c28c23be0be59626e | refs/heads/main | 2023-08-17T05:57:38.037628 | 2023-04-02T10:12:36 | 2023-04-02T10:12:36 | 231,045,948 | 11 | 3 | MIT | 2023-01-21T12:41:25 | 2019-12-31T07:19:31 | R | UTF-8 | R | false | true | 1,517 | rd | plot_dist_density.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qc_visualizations.R
\name{plot_dist_density}
\alias{plot_dist_density}
\title{Distance density plot}
\usage{
plot_dist_density(
object,
all_features = FALSE,
dist_method = "euclidean",
center = TRUE,
scale = "uv",
colo... |
e47f6eb673f93dc4c9c5c12b69652d82e02fb739 | 320cbfb68493293c7c37351c3c38a48ac7bcfa2d | /IndividualReport/Cluster.R | 0983d9dbc6ff90d7033dc3ecfc30b6df582d2666 | [] | no_license | JhPlayGround/crime | 409c71af33effa8a731eb95a041fcee307f33102 | 71b02efad6ce9b460f4a7c56dcb826ebf6e7e82f | refs/heads/master | 2020-03-14T21:54:19.530704 | 2018-06-07T07:15:53 | 2018-06-07T07:15:53 | 129,665,036 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,656 | r | Cluster.R | #x변수에 랜덤한 수 100개를 뽑아 Matrix 생성
x = matrix(rnorm(100),nrow=5)
dist(x)
#맨하탄,맥시멈 거리 구하기
dist(x,method = "manhattan")
dist(x,method = "maximum")
data(iris)
head(iris)
#마지막 5번째 열을 제외한 irirs 데이터를 k=3으로 군집분석
#iris 데이터의 Species에 3가지 군집이 있는 것을 알고 있어서 k=3
kmeans.iris = kmeans(iris[,-5],3)
#소수점 둘째자리까지 반올림.
round(sum(kmeans.iri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.