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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a35874725ee4df6e2f7819b767351e68cc8e97b | 9f347509f8cf393cb4d9c1363b87c7726104e63b | /other/TCGA.r | cfd28b6a22e8ceeedaf5587b1824feb7c89def05 | [] | no_license | cbg-ethz/nempi | c162eae3ea55e8c17d68899647856ebb54534df5 | 49f71a22e912e3681f1a37652c65fe20a25647dc | refs/heads/master | 2023-05-27T04:07:39.080662 | 2023-04-25T15:25:29 | 2023-04-25T15:25:29 | 206,054,343 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 40,598 | r | TCGA.r |
library(snowfall)
library(TCGAbiolinks)
if (is.null(types)) {
types <- TCGAbiolinks:::getGDCprojects()$project_id
## special "FM-AD"
dont <- paste0(unique(gsub("-.*", "", types)), "-")
dont <- dont[-grep("TCGA", dont)]
samplenr <- matrix(NA, length(types), 2)
rownames(samplenr) <- types
do... |
a3f0e5b1a37f150dedfede52231cd003a983c551 | 24828ecc432eb0026a427bd1e6caa4e21887b1b8 | /R/SCEI.R | 00c8261d76af50ccdd9bf07aba44dc8b9ea3f814 | [] | no_license | cran/CompoundEvents | 2d13b48c257a4a3d7b736968a690c265ed5cfa45 | e32b63dabe629aafde2563c379e5e8bc74b335ac | refs/heads/master | 2022-11-20T13:13:05.446657 | 2022-11-06T14:10:02 | 2022-11-06T14:10:02 | 243,953,107 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,870 | r | SCEI.R | #'@title Standardized Compound Event Indicator (SCEI)
#'@description Compute SCEI based on monthly precipitation and temperature.
#'@param mp monthly precipitation
#'@param mt monthly temperature
#'@param ts time scale
#'@usage SCEI(mp,mt,ts)
#'@references Hao, Z. et al., 2019a. Statistical prediction of the s... |
533eac77c596da46e49c1ad3659ffd5994048748 | eba8579b34198209cb9d0dcce1889846f22e4195 | /R/zzz.TwoPhaseInd.R | 57fb78590313b8d99038373a2a3ecfe5599fad80 | [] | no_license | cran/TwoPhaseInd | c6753bb900626abc285cdb6ed3398c8609fc7785 | d4627e4739683b98cb90be6b4f82ac70c0655c4c | refs/heads/master | 2022-03-07T04:08:12.344439 | 2022-02-16T23:50:11 | 2022-02-16T23:50:11 | 17,718,325 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 201 | r | zzz.TwoPhaseInd.R | ## without NAMESPACE
##.First.lib <- function(lib, pkg) {
## library.dynam("TwoPhaseInd", pkg, lib)
##}
## with NAMESPACE
.onLoad <- function(lib, pkg) {
library.dynam("TwoPhaseInd", pkg, lib)
}
|
7b784ee612541783b5b57c4137b1d07449fedef3 | 4f928020512b4bf640347529246f69c635a60a5a | /R/get_cores_nb.R | 785c8b96ddd0a911dff257e19981c32daf92d673 | [] | no_license | SticsRPacks/SticsOnR | af7ae9001ba58ebb4c798a4732ed7861588bf7b1 | 3a250b188e0b083c2c56a547c5abb23411c73da6 | refs/heads/main | 2023-07-26T18:32:25.163603 | 2023-07-13T07:57:57 | 2023-07-13T07:57:57 | 166,790,380 | 3 | 5 | null | 2023-07-13T07:57:59 | 2019-01-21T09:56:15 | R | UTF-8 | R | false | false | 1,697 | r | get_cores_nb.R | #' Getting the available number of cores for parallel calculations
#'
#' @param parallel Logical for performing parallel loop (TRUE) or not (FALSE)
#' @param required_nb Wanted number of cores
#' @param ... To pass additional arguments (i.e. cores_nb, fake machine cores)
#'
#' @return Available cores number tu use
#'
#... |
de3879af905e84076d42437530d6b53cf1ecb095 | 99f31a540238f3f15f74d4a37f7d3d2343d47b05 | /R/class_settings.R | af5d3716b2bbf425c50f7b6ca86b346eb5f9b5f9 | [
"MIT"
] | permissive | Robinlovelace/targets | bd8b43e973d9bbeaedee558b08af5ebd3e774a66 | a6bd17af91c472349a60f802e09168e2b3f6bca0 | refs/heads/master | 2022-12-14T16:52:03.539887 | 2020-09-18T15:31:33 | 2020-09-18T15:31:33 | 296,736,268 | 0 | 0 | NOASSERTION | 2020-09-18T21:48:38 | 2020-09-18T21:48:37 | null | UTF-8 | R | false | false | 2,801 | r | class_settings.R | settings_init <- function(
name = character(0),
format = "rds",
pattern = NULL,
iteration = "vector",
error = "stop",
memory = "persistent",
deployment = "remote",
priority = 0,
resources = list(),
storage = "local",
retrieval = storage
) {
growth <- all.vars(pattern, functions = TRUE, max.names... |
a9488f4e67aae2b8530fde3acdd479f1af2815ac | 04166df482f32bfb7bdec0be93b6a7138e47ef7e | /code_zebrafish/final_analysis/heatmaps_of_effect_sizes.R | e2c0fe6281375cb3a19148e374d821fea1d5c88a | [] | no_license | jernejaMislej/all_code | 3b25ce585d4deb28a42ebb4dccc3be2d6a8cb9ed | 32d5fe67079e40cea47a5678b30b91de6d9e0ba8 | refs/heads/master | 2021-08-28T13:45:13.906582 | 2017-12-12T10:41:49 | 2017-12-12T10:41:49 | 105,473,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,720 | r | heatmaps_of_effect_sizes.R | args<-commandArgs(trailingOnly = TRUE)
condition<-args[1]
type<-args[2]
library(gplots)
state="hypoactive"
if(condition=="DarkApoHigh"){
state="hyperactive type I"
}else if(condition=="DarkPTZ"){
state="hyperactive type II"
}
files<-list.files()
#files_vals<-files[-grep("all.txt|with_values.txt|p_values.... |
7cdbe349c42d592764f75ed3a43aa0155ba96bd5 | 3ca5d6ebe2907ae2b76ce11608985dbd672d6ed5 | /man/add_restart.Rd | e6c6d6b627cecdf8f29d5e9b3a384ac9dd5b34d4 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wlandau-lilly/spiro | 0d19f6b214f1ef4e8edb8b20056dbeda8139cc86 | 6fb80765f4afc0969ef7e2cb88fc07f4d6906564 | refs/heads/master | 2023-03-15T18:06:38.065027 | 2020-12-14T21:16:45 | 2020-12-14T21:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,268 | rd | add_restart.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spirograph.R
\name{add_restart}
\alias{add_restart}
\title{Add start and stop animation buttons to image.}
\usage{
add_restart(
input,
location = c(0.05, 0.95),
fill = "white",
color = "black",
radius = 20,
start_label = "Start",
... |
4cacf373921ba09c4fae98a447304871c95333dd | 017e1d3c8002e6b0835a97985168d6fb2bb652f0 | /R/stats.R | b201c8f589d6783680a3610eb4ec7bbf92895387 | [] | no_license | wnk4242/Rcheatsheet | e38baa4b09713c931caaef64eee5505b2b3a17b8 | 70054150c84b00affe6f525ce0f900755dd3e919 | refs/heads/master | 2021-07-26T19:55:23.175155 | 2020-07-03T14:19:32 | 2020-07-03T14:19:32 | 196,735,006 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 348 | r | stats.R | ######Package code Statistical analysis######
#' Perform multiple regression
#' currently not using
mulreg<- function(){
cat(rep('\n',1))
cat(bold$blue('\n|perform multiple regression\n\n'))
cat(bold$red('Example:\n'),'\t lm(y ~ x1 + x2 + ... + xi)\n\n')
# INSERT EXTRA EXAMPLE CODE IF APPLICABLE #
cat(rep('\n... |
887c994f6c9e0d3eb1cbc0b92481365e090c6ea4 | 35e707c55cff22002c6c66f967837736e3e0a0d8 | /R/SWIMw_helper.R | 06aa36c199803d21d6eab39a3b12783783b033ef | [] | no_license | spesenti/SWIM | 9f4416b990e9bc82109b87b849ffd208f8bfe77f | 4e9cd0b2b4e4ad36e0798b1d67fdcd03c2d7114a | refs/heads/master | 2022-05-04T10:16:25.964880 | 2022-01-10T12:41:16 | 2022-01-10T12:41:16 | 185,445,679 | 5 | 2 | null | 2022-01-09T23:04:06 | 2019-05-07T17:08:21 | HTML | UTF-8 | R | false | false | 1,680 | r | SWIMw_helper.R | # helper functions
.ab_grid <- function(a, b, N){
eps <- 0.002
u_eps <- 10^(seq(from=-10, to=log10(eps), length.out=10)) - 1e-11
return(c(a + u_eps, seq(from=a + eps, to=b - eps, length.out=N), b - rev(u_eps)))
}
.inverse <- function(f, lower = -100, upper = 100){
return(function(y){stats::uniroot((fun... |
5a5c05567937a3e828793a76c15bbbdc943eb0b7 | 50ed3fc59cbee279520f1d21269f17a87c691e8c | /plot4.R | 87a101a45fab4a8d24a0226b6a3210000041654d | [] | no_license | alexnsy/ExData_Plotting1 | ede49e16b341267ed8d67122b8d6c4d8b315ce23 | 6655e1923453ed668d0ea9d0d61956d0e6d1c666 | refs/heads/master | 2021-01-18T07:34:23.870627 | 2015-10-10T16:39:54 | 2015-10-10T16:39:54 | 44,002,298 | 0 | 0 | null | 2015-10-10T08:38:58 | 2015-10-10T08:38:58 | null | UTF-8 | R | false | false | 1,623 | r | plot4.R | ##Read the data file
data <- read.table("household_power_consumption.txt", header=TRUE, sep = ";",na.strings = "?")
## Subset the data to only data for the dates of interest 1/2/007 and 2/2/2007
selectdata <- data[data$Date %in% c("1/2/2007","2/2/2007"),]
## Format the Date
as.Date(selectdata$Date, format = "%d/%m/%Y... |
cf046ef8baf9ae8e4fc6a4feb49279106174c1ef | bd986e1216c71b4efcddf1c1a835030e524be04a | /tests/testthat/test-listReferenceBases.R | 90c754161217e84b0d3b41e4eb0f4fdcf1b7f463 | [] | no_license | labbcb/GA4GHclient | 43ac3a6b4bd9ab802ddff20bfc57ec0c2871c44c | ec3a6efba8c3e8698b467620dccf441d8419e335 | refs/heads/master | 2021-01-19T07:28:36.178878 | 2017-10-30T16:54:30 | 2017-10-30T16:54:30 | 68,452,125 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 435 | r | test-listReferenceBases.R | context("listReferenceBases")
test_that("listReferenceBases works", {
skip_on_bioc()
host <- "http://1kgenomes.ga4gh.org/"
referenceSetId <- searchReferenceSets(host, nrows = 1)$id
referenceId <- searchReferences(host, referenceSetId, nrows = 1)$id
response <- listReferenceBases(host, referenceId,... |
2cac17b23c012037582533180fad9ecb7398d995 | 4af0f7862da50b8a20b8554260285ad32e3840cf | /scripts/ch05/geometric-distribution.r | 427c96be475d9cf4e58d06d53043a2179ad0ad18 | [] | no_license | StefanoCiotti/MyProgectsFirst | aefd345971c5578dfbec7662d11c3f368d6c17b7 | 04794b634b9384da62ae6ba926fd59ca5a7d3d13 | refs/heads/master | 2020-04-03T16:35:38.941185 | 2018-10-30T14:05:55 | 2018-10-30T16:57:26 | 155,099,726 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 239 | r | geometric-distribution.r | PI <- c(0.3, 0.7) ; x <- 0 : 10
xl <- expression(italic(x))
par(mfrow = c(1, 2))
for(i in 1:2){
distr <- pgeom(x, PI[i])
yl <- bquote(italic(P(X<=x)~~~~~pi) == .(PI[i]))
plot(x, distr, type = 's', lwd = 2,
xlab = xl, ylab = yl)
} |
0ade65780d0fbed266c13104c7f044f1f60ef610 | c92e38443e8e4b8091eaf224d9fbc246e8a88179 | /regression_code.R | 429b42487ca10ff995ad564cacb2a1a8eea601b8 | [
"MIT"
] | permissive | NA-Dev/vino-verde-regression | d76b23d3722c22b5be800dce55a9d1d150432f27 | 3f987b49c930836d4596496bc5fae8fe62ca1fdc | refs/heads/main | 2023-02-23T18:11:07.449809 | 2021-01-25T21:36:49 | 2021-01-25T21:36:49 | 332,880,308 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,014 | r | regression_code.R | library(nnet)
library(ggplot2)
library(caret)
library(ROCR)
library(leaps)
library(dplyr)
library(hrbrthemes)
library(ggcorrplot)
library(tidyverse)
setwd("C:/Users/micha/Documents/STAT 6021/Project/Project 2/Stats-6021-Project-2")
########################### exploratory analysis ####################################... |
c523bf6e84bbe2b563180cb7e72c1cd3c348d71a | 236cdc1ba4d23f14cbdcbd4a53e427506c4caf3f | /Scripts/OutlierRecall/all_problem_inspection.R | d45ee1c45889757d425a4106e57aa84d8856d2af | [
"MIT"
] | permissive | Guliba/FRASER-analysis | 775b30e079bcb8a50b91f6a8785a631182f076fd | 3c125dc561de977b89a674e19b720cc72762b392 | refs/heads/master | 2023-03-23T03:12:38.876112 | 2020-08-27T05:28:59 | 2020-08-27T05:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,199 | r | all_problem_inspection.R | #'---
#' title: Inspect p-value problems in FraseR fit
#' author: Ines Scheller
#' wb:
#' input:
#' - allOut: '`sm expand("Output/html/OutlierInjection/{dataset}/{psiType}/{delta}/{method}_fitProblems.html", dataset=config["datasets"], psiType=config["psiTypes"], delta=config["inj_deltas"], method="FraseR-1DecoderBa... |
b9895795fa7e2bda67200acf9cd99f60a7b1583a | 3cdea740d7e550b8041208d4a76b9945e364c0dd | /cachematrix.R | b61e5a12622464ac2011193fdbbc9aba9b9f0ae5 | [] | no_license | lizziepoje/ProgrammingAssignment2 | 14f78f629a34366f9e9fd39d5774d259cdeb2bfe | 7017785c23a39f4e6efd37e6b7e681e26c564abe | refs/heads/master | 2020-12-26T04:05:35.725452 | 2017-03-07T18:58:10 | 2017-03-07T18:58:10 | 64,761,069 | 0 | 0 | null | 2016-08-02T13:53:48 | 2016-08-02T13:53:47 | null | UTF-8 | R | false | false | 1,830 | r | cachematrix.R | ## The first function, 'makeCacheMatrix' creates a special "matrix" object that can cache its inverse.
## It contains the following functions:
## set - sets the value of a matrix
## get - gets the value of a matrix
## setInverse - sets the cached value of the inverse of the matrix
## getInverse - gets the cached ... |
a33d547b612a694fb6fa987a7382230811b49e37 | 46fed48f95847b2af4b4ddeac9a7529ba60a26f5 | /code/climate-data/process_climate_data.R | fe892604ffd95fdd60ad485239dd140847eaf213 | [] | no_license | sauer3/Gabon-Climate-Exposure | 82d4ed9befb1615c7631373cc6287fddf6d900b3 | bc03d9163cfc6f19059d827865b927fa736e62b0 | refs/heads/master | 2022-11-20T00:59:28.572576 | 2020-07-21T23:27:17 | 2020-07-21T23:27:17 | 281,505,751 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,526 | r | process_climate_data.R | # Convert values to Celcius Calculate STD for time-series
library(ecoclim)
library(raster)
library(dplyr)
# Function to convert K to C
kelvin_to_celsius <- function(ras, digits){
ras <- ras/10
c <- ras - 273.15
c <- round(c, digits)
return(c)
}
output.dir <- "/Users/AuerPower/Dropbox/Research Projects/Gabon_C... |
188ec8bcfdd2dbd5fcd79aebebfbacc241eb0276 | 5a8f971da08a6d38496d594a229f5b4c9ff2f4e5 | /man/generate_single_moclust.Rd | d0fe658af932056dc8d0840411a9525b35b7216b | [
"MIT"
] | permissive | agapow/subtypr | 9abe7cb28a6686d9c719dc71df145f7944ca852f | 524494d3e083d058e7c58c0971fad6016a9b914a | refs/heads/master | 2020-03-22T17:52:24.634052 | 2018-08-17T08:24:13 | 2018-08-17T08:24:13 | 140,421,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 944 | rd | generate_single_moclust.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate.R
\name{generate_single_moclust}
\alias{generate_single_moclust}
\title{Generate simulated data}
\usage{
generate_single_moclust(X, partition, sd_signal = 0.5, sparse = FALSE,
percent_sparsity = 0.3)
}
\arguments{
\item{X}{A featur... |
23d8175c6ecf54ecc0005ca3aeae525f82adab9f | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610129219-test.R | 91d21667b1d5509748a9d1b858442c74549d5ac0 | [] | 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 | 496 | r | 1610129219-test.R | testlist <- list(a = 0L, b = 0L, x = c(1769471L, -218959118L, -218959320L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -218959118L, -1L, -16318465L, 0L,... |
84e60254a3d0f783902e2d0332c10d018cb1aee3 | 72f282d407002ce6d089368375724e1ec03714c2 | /R/read_pkg_dependency_tree.r | 9e0a22f3d5fb3e5c927ca293c844bd2413f5c191 | [] | no_license | gfleetwood/sansor | 1f9963aea9ce430b9a952f5fff266c20b4db9b5a | 101fe82b914748316f17d55552858921be9f826d | refs/heads/master | 2022-12-16T11:44:18.294805 | 2022-11-18T04:50:13 | 2022-11-18T04:50:13 | 133,735,662 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 734 | r | read_pkg_dependency_tree.r | #' @title Read Package Dependency Trees
#' @description Checks if two dataframes are equal.
#' @param df1 A dataframe
#' @param df2 The second dataframe
#' @return TRUE if the dataframes are equal else FALSE
#' @export
read_pkg_dependency_tree <- \(
pack,
dep_level = c("Depends", "Imports", "LinkingTo"),
availa... |
e30b31748dd36436fe251f65dfe3d355a3be0c26 | 6ff4d7bfbdb0f44acf33239511002f03f4a8fbd0 | /R/almevents.R | 0c7b9a2709ba6411a3a878b5ce2c2e10389f86cd | [] | no_license | imclab/alm | 7d926f8f6d4cd02324722a3383e3cfa771f0f0b5 | bee622f6eccfaeb45e1718f089a28e39b3277799 | refs/heads/master | 2021-01-17T19:22:37.321251 | 2013-11-07T05:06:17 | 2013-11-07T05:06:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,273 | r | almevents.R | #' Retrieve PLoS article-level metrics (ALM) events.
#'
#' Events are the details of the metrics that are counted related to PLoS papers.
#'
#' @importFrom RCurl getCurlHandle getForm
#' @importFrom RJSONIO fromJSON
#' @importFrom reshape sort_df
#' @importFrom plyr compact rbind.fill
#' @param doi Digital object ide... |
27ae3f8447b903fef61a10ec1fce9f99a5e83f53 | 8c48fa77cc61d876d0e76ec36aebce927615336c | /script.R | ee46dac181e7b54cd2cab4b3585232580a89705c | [] | no_license | machio1985/DPC_Open_Data | 58ca62cf7a052591394eeec33921b9acad0f219b | 8a92c1f26bf2548d02949d6c6b21ffb129d8fe6e | refs/heads/main | 2023-04-29T11:59:51.584882 | 2021-05-22T08:55:01 | 2021-05-22T08:55:01 | 369,570,948 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,175 | r | script.R | # library & setting ------------
library(tidyverse)
library(stringi)
library(rvest)
library(readxl)
library(magrittr)
library(data.table)
dir.create(paste(getwd(),"/01.input",sep=""))
dir.create(paste(getwd(),"/02.output",sep=""))
# functions ---------
#DLする時の処置
dl.dpc<-function(x){
download.file(url = x,
... |
edec459ff80efd103d6189461f3e2510364f8c81 | 15a98789576de659ef0c9b32fdbf2cf3c01de5e1 | /R/ab.gmu.r | d48a30133c659ede6116d318c2c923f0fe001929 | [] | no_license | cran/AIGIS | 05a44c6ecfae102a65a3f015483f70408278ddf4 | 5d3c47c4000522e003ad7fe094f6f593e78141f1 | refs/heads/master | 2020-05-17T14:33:38.875727 | 2012-01-05T00:00:00 | 2012-01-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 711 | r | ab.gmu.r |
ab.gmu <- function(gridgpcobj=gridgpc,gws=gridinws, afracs, recvar = 1, recvals = bgvals, appdam=FALSE, trimmedin=TRUE, dr=damrats, maskobj=MASK){
gtots <- sapply(gws, dp.interp, recvar = recvar, recvals = recvals, appdam=appdam, trimmedin=trimmedin, nobounds=TRUE, dr=dr)
gdams <- afracs*gtots
... |
6a3ee6317b30b18cb42a908ec3a4fcd2f17f7bf5 | d107b38a3a0e42320a3c9beadfdf0479c656bec7 | /src/src_2016/003_wrangling_nonreporting_agency_data.R | 1cf200d7cdae268aaab698711b5646b03cf72915 | [] | no_license | sefabey/fbi_hate_crimes_data_viz | 8a1d75e12cc6c141fd3923e3f3c643eadc93a16b | fc7e603c9c894ae5a72e550d94ebc6cc30fc9cfc | refs/heads/master | 2021-06-30T07:43:00.288198 | 2020-08-26T22:42:06 | 2020-08-26T22:42:06 | 140,181,181 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,045 | r | 003_wrangling_nonreporting_agency_data.R | # wrangling data from agencies that do not report hate crimes
library(tidyverse)
library(ggmap)
non_report_agencies <- read_csv('data/table_14_agency_hate_crime_reporting_by_state_2016.csv') %>%
mutate(agency_with_state= paste(agency_name, state, sep = ", ")) #paste state names to agencies
table(non_report_age... |
8096e4b8425acdf462ac499a3adcee7923c430e8 | cd26830d83292aab743af6cbf46184a781d41fc6 | /analysis/Misc scripts/aPrioriGenes-Corr-log.R | 85c8cb15a1abc6b7218d5b7feff0b1ee32314f42 | [] | no_license | OwenLabMSU/bwteDE | 5df1b95d6ced868dbfff5f7a5ebdf6c7636b8733 | a79ffa5d979f7afa60409431a6e268031e56b93e | refs/heads/master | 2023-08-31T10:48:59.035636 | 2020-12-03T01:40:45 | 2020-12-03T01:40:45 | 250,002,956 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,807 | r | aPrioriGenes-Corr-log.R | #### aPrioriGenes-Corr ###
## Load packages and data
library(tidyverse)
library(edgeR)
setwd("G:/Shared drives/RNA Seq Supershedder Project/BWTE DE manuscript")
## Load data
annot <- read.delim("./extData/Trinotate.csv", header = TRUE, sep = "\t")
cnt.trans <- read.table("./extData/rsem.isoform.counts.matrix", heade... |
b396401b1d30dc077b938f4fc5fbf9f8948e9702 | 4ada124cda1d123cebb27d7f89b5f4eb79a3821f | /JustATest.R | 649d8efb2a137b7c4d997d2c88314e1a80778f96 | [] | no_license | mcbtBINF/TestRepo | 6f5c6c538e23c3e635a42066f53fbc1b11b212e5 | f488f4c83028202e5e20dfa988e7f907e18d1bb3 | refs/heads/master | 2020-03-16T20:15:16.743489 | 2018-05-14T13:42:13 | 2018-05-14T13:42:13 | 132,952,378 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 150 | r | JustATest.R | # TODO: Add comment
#
# Author: mbrown67
###############################################################################
# Maybe it is working now
|
badac99b1f567b0535fa0f2b1d65098d4be04ab1 | 9e06252e613edcefaa4d7c569a3f18ab4ede85e4 | /man/getAllVotes.Rd | 17948260cd65bd71b5917655c5d8477789a61658 | [] | no_license | umatter/pvsR | b9be083c1224a96fdbc817b2c2749b9763284e7d | 9ab57a5a67c0bbf9e0342ea37e14ea496d180df4 | refs/heads/master | 2021-01-19T08:41:25.275771 | 2021-01-05T06:38:13 | 2021-01-05T06:38:13 | 87,662,576 | 1 | 3 | null | 2021-01-05T06:33:50 | 2017-04-08T20:34:59 | R | UTF-8 | R | false | true | 2,163 | rd | getAllVotes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAllVotes.R
\name{getAllVotes}
\alias{getAllVotes}
\title{Get several votes}
\usage{
getAllVotes(actionId, batchsize=100, pause=0, backupfile="votes.list.Rdata")
}
\arguments{
\item{actionId}{a character string or list of character strings ... |
c694cb745ae5059a1fc7e751e497e74c5224bfe5 | a4e387f41f8df311e926d21a7500e9a9b990113d | /man/htmlCanvas.Rd | 3a57281d835c3006dc54d028d4e47d03a49060c6 | [] | no_license | omegahat/RJSCanvasDevice | b3b249379911881495164d0c9b25e312c9438092 | 0f6a9db99da8f91afcb3a3423537516bf7801b5a | refs/heads/master | 2020-04-05T23:24:42.114011 | 2012-02-22T01:54:38 | 2012-02-22T01:54:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,049 | rd | htmlCanvas.Rd | \name{htmlCanvas}
\alias{htmlCanvas}
\title{Create HTML document to draw one or more plots}
\description{
This creates an HTML document that contains and displays
the generated plots on JavaScript canvases.
}
\usage{
htmlCanvas(file, dim = c(1000, 800),
template = system.file("template.html", package = ... |
f89cc0662668addf55a101ecbd2d1800b18846eb | 369e2ee82082cd9e949796166e30726877f6a3b4 | /plot3.R | 57d0ed91e472a0ae930bc9911490d673a8350aba | [] | no_license | FyzHsn/Exploratory-data-analysis-project-2 | e006e5a16c84dd17d214360494ca668738f9b112 | 09e838a24e321af6a9990bdc5336f1e42fea0d41 | refs/heads/master | 2020-02-26T14:32:18.928280 | 2016-06-15T21:43:26 | 2016-06-15T21:43:26 | 61,048,144 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,050 | r | plot3.R | ## Download data
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
destfile <- "C:\\Users\\Windows\\Documents\\JHU_Data_Science\\Course_4\\Exploratory-data-analysis-project-2\\data.zip"
download.file(url, destfile)
## Read in data
nei <- readRDS("~/JHU_Data_Science/Course_4/Exploratory-... |
dc8fd508546e4a1e7534a78d27049fdcb4ab4587 | 8f45c2f97fb32c96e1fd83b1494e73875af93b2d | /reseau de neurones.R | 3a9cd3613f90955893461194ae81931bc45b1f1a | [] | no_license | KeivanR/Digit-Recognition | eb62972bb5f940c1b2a8a36bc86c6047440bd332 | bf3fa2d4bc35a78cda25535ebfeb2e2b527489ac | refs/heads/master | 2021-05-02T17:55:50.612362 | 2018-02-07T18:46:07 | 2018-02-07T18:46:07 | 120,655,631 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 6,733 | r | reseau de neurones.R | library(hier.part)
library(progress)
seuil <- function(x,w,f=sigmoid){
return(f(sum(x%*%w)))
if (sum(x%*%w)>0) return (1)
return (0)
}
sigmoid <- function(x){
return (1/(1+exp(-x)))
}
propa <- function(x,w,couches){
x <- as.numeric(as.character(x))
nombre_couches <- length(couches)
nombre_n... |
d3cf4870200c5ab39916c9665b20bea1a77699fb | 37cc63b9708638db1fd1e01c0b3e52013654986c | /Transcript_Based/analysis/Brendan/Intial Analysis/02_Variance/02_remove unexpressed.R | 65a164727bb82c2d675de4b6f99da12369aed7b2 | [] | no_license | brendan4/sravandevanathan | e7082bd5892ccc5cf679132aaa06c88abe4c17fc | 00c54737e09ea29b517a2d008a420748af43d9b7 | refs/heads/master | 2022-03-26T08:02:45.299082 | 2019-12-13T21:09:21 | 2019-12-13T21:09:21 | 170,389,554 | 0 | 0 | null | 2019-02-12T20:52:38 | 2019-02-12T20:52:37 | null | UTF-8 | R | false | false | 1,308 | r | 02_remove unexpressed.R | remove.unexpressed = function(dataset){
unexpressed = c()
counter = 1
for (x in 1:nrow(dataset)){
values = c()
for (y in 1:ncol(dataset)-1){
if(is.na(dataset[x,y+1]) == T){
values[y] = 0.0
}else{
values[y] = dataset[x,y+1]
}
}
if(log(sd(values)+0.0001) >= -8){
... |
686608964bc89028dc5aece7b4b9d5eea178c439 | 359be36e71f612fa1f3511b1be01aa5c72010879 | /PS1/PS1_R_Programming_2021.R | 34088a39654e576239cc0990b84e268b7591a145 | [] | no_license | algorsky/ZOO540 | c0192f344784cb2254fdbd7d705c9975672b7086 | c1081a119d9542a2f62767634aff6cbd74ca2338 | refs/heads/master | 2023-08-10T21:40:43.507260 | 2021-09-29T19:54:43 | 2021-09-29T19:54:43 | 405,999,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,370 | r | PS1_R_Programming_2021.R | # This problem set introduces you to some of the basic mechanics of R. It is based on Peng (2016) R Programming for Data Science; Chapt headings below correspond to chapter in this book. You can download the book at http://leanpub.com/rprogramming.
# Although PS1 isn't due until 19 September, please start on it immed... |
3be615dfbf1b68fdededc0a2e64acc346e0cef52 | 55b688ae97badb55a279006a5a417d80226ea329 | /man/newNode.Rd | 865d9d56db9af03fda564b8528b2adb40d85a95e | [] | no_license | cran/mitre | 8799236b6fd45dc701734dd4bc8c51baa9e83d45 | b6eaec6277544232bb19b6d7b03db902533def64 | refs/heads/master | 2023-05-01T15:12:00.775487 | 2021-05-21T06:20:03 | 2021-05-21T06:20:03 | 317,820,437 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,588 | rd | newNode.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mitre.R
\name{newNode}
\alias{newNode}
\title{Create an empty node}
\usage{
newNode()
}
\value{
data.frame
}
\description{
\code{id} : The id of the node unique value for all standard elements.
\code{label} : The label is the piece of text sh... |
a1ecec7291603c523fe93b8611fe781f19b917d3 | 1f58edef5e26cc1d6aad896b38a5d27273be2728 | /genomics/wga-stat.R | c3c7980ea8ca391f5101de85eaa4084903fe77b8 | [] | no_license | lambertonlabs/schisto-scripts | 28022acdbbe59bf009c6ba3071b1e6e3fec421b4 | 215f0899900995e2ca206fc221c12c6fe06dfd09 | refs/heads/master | 2020-04-27T18:07:15.893353 | 2019-03-28T15:47:22 | 2019-03-28T15:47:22 | 174,554,999 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 696 | r | wga-stat.R | #r script for performing basic sumamry stats on schisto WGS
#if possible, use VCFtools and then ggplot to generate your nice manhattan plots
#adegenet doesn't tolerate large SNP sets very well, and popgenome a) won't analyse multiple chromosomes and b) is very finicky about inputs
#install external pkgs
install.packa... |
584751c2c6077a91ff560b3e5cf127694e2d570c | bf706f52c5d1fc9f560f4cdb9327ce3eb6e10992 | /aeqd.R | b135d03540599a5f131e093cb21c1d84bb28273a | [] | no_license | RationShop/tornado_r | d52ac4d2208a8d2542e415862c625cd3c2a475d6 | 7e68cab9a3d5c8d35ea515ab6a420856a20a637f | refs/heads/master | 2016-09-06T18:22:26.546648 | 2014-01-23T05:01:59 | 2014-01-23T05:01:59 | 14,630,731 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,691 | r | aeqd.R | # project lat-lon values to azimuthal equidistant projection
# to be consistent with Brooks et al 2003 who use a 80-km grid
# and then plot this grid along with state boundaries
# some useful links
# http://r-sig-geo.2731867.n2.nabble.com/Re-projecting-rasters-projectRaster-td5777721.html
# http://stackoverflow.com/qu... |
65876eac9b11b63dde852c4e30948e665162d292 | 1f83c31d62d266921955c1d2fadb4535ced8c388 | /cachematrix.R | 2d62a737d7cec416b4a40cceaa3c24d709f412de | [] | no_license | woafn/ProgrammingAssignment2 | 432b35861680b15a6e3dd343f4a3db13f7a7c4eb | 6ab26f250b48c9eb78a5bbc89819de23cee90b33 | refs/heads/master | 2020-12-25T23:19:21.002012 | 2014-10-27T21:34:45 | 2014-10-27T21:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,102 | r | cachematrix.R | ## -----------------------------------------
## R Programming
## https://class.coursera.org/rprog-008
## Programming assignment 2
##
## To save resources, use a cached copy of a matrix's
## inverse instead of calculating the inverse each time
##
## makeCacheMatrix(maxtrix)
## -- creates an object with functions to sto... |
2fa104a197cf30be3e5eda878bef60f871fa10ef | bcca39b5027094d9151b2b2baef6fa7fb4f9fad4 | /matrix_convert.r | fd5ad9c3756c78284d4d35daade89cfa0a6b2529 | [] | no_license | TZstatsADS/Fall2016-proj4-KayLim | 94684cb7004b6068df80b299149e49f76143c619 | 9a0d20069744f1927f55f2b33ce9e1d22fb361ea | refs/heads/master | 2020-12-24T08:41:46.471683 | 2016-12-01T13:31:46 | 2016-12-01T13:31:46 | 73,326,404 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 295 | r | matrix_convert.r | #convert strings to matrix
matrix_convert <- function(text_string, language) {
text <- as.vector(text_string)
matx <- create_matrix(text_string, language = language)
rowTotals <- apply(matx , 1, sum)
matx.new <- matx[rowTotals> 0, ]
return(matx.new)
}
|
3a365bfe026331ab6dd809cbce8b99d65d8d7b39 | 2fc262b8029463664f2505217f74c116c6d7c1df | /model.R | b4eee18f71ce4a1590a5ff84aef34b968a4968c1 | [] | no_license | paranjapeved/FITS | 2f07ac0abb7f2abe8f42f8b3e7182984621eac8f | 3dd941c84b8e03c9569c1890fb49839f728581cd | refs/heads/master | 2020-05-06T20:16:20.062641 | 2019-04-08T21:22:11 | 2019-04-08T21:22:11 | 180,230,346 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 104 | r | model.R | train <- read.csv('train_data.csv')
model <- glm(td_min_b ~.,family=binomial(link='logit'),data=train)
|
82c6fb1bbbf0610a22087237732f7575f93b55f7 | a6fd85360b899ee98d79a4080c05bcefc01f009b | /SourceCode/DataCreation/CleanIndividualData/OldDataClean/MakeAmcData.R | 2b134826c2939c875658b0a68835741b84c596d1 | [] | no_license | FGCH/amcData | 951f4aeb9ab217e40509a9657efc1f5a934443a4 | 2209173c3011aa17aac95a36006f1a1d22304048 | refs/heads/master | 2020-05-15T01:17:35.288389 | 2014-05-12T09:41:56 | 2014-05-12T09:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,418 | r | MakeAmcData.R | #########
# Make amcData Data Set
# Christopher Gandrud
# Updated 7 November 2012
#########
# Install required packages
## Code based on https://gist.github.com/3710171
## See also http://bit.ly/PbabKd
doInstall <- FALSE # Change to FALSE if you don't want packages installed.
toInstall <- c("WDI", "countrycode", "de... |
9ce3cc7b66a47a6af5488f9aeb4b1bbb495eb5dc | 4b0ef5b828dff774361172d387849befceef90ef | /clase7b.R | 912507047bf1c9b77755302f6fe48b3718a0dbf3 | [] | no_license | ricardomayerb/ico8306 | dcf10532d301a888505a307329da06fd2992702d | 677bad4b0cd61dd08238ab5dddace0a8602f2568 | refs/heads/master | 2020-07-05T10:10:38.358611 | 2020-04-06T03:45:34 | 2020-04-06T03:45:34 | 202,618,793 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,721 | r | clase7b.R | library(tidyverse)
# Problem
# If there are twelve cars crossing a bridge per minute on average,
# find the probability of having seventeen or more cars crossing
# the bridge in a particular minute.
#
# Solution
# The probability of having sixteen or less cars crossing the bridge
# in a particular minute is given ... |
574e08135a2f7d0eba97274c725dac3b64f6e817 | 12fdf5bc55b6f41436fb7ab598f7707857fbf292 | /seminars/seminar05/Seminar05 R Script.R | 0dc624613ed1778a5561e75d7ea98513ca18635e | [] | no_license | vivianlac/seminars | 6f8e93dbc2b8402814aa211d05f40979f632c381 | e29b28de19396f82ad614781badae416f4119131 | refs/heads/master | 2021-01-12T00:05:06.774192 | 2017-02-06T08:40:40 | 2017-02-06T08:40:40 | 78,670,441 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,199 | r | Seminar05 R Script.R | # load packages
library(lattice)
library(ggplot2)
library(reshape2)
# load data to be analyzed
prDat <- read.table("./data/GSE4051_data.tsv.txt")
str(prDat, max.level = 0)
prDes <- readRDS("./data/GSE4051_design.rds")
str(prDes)
# write function that takes probeset IDs as input and gives output as data.frame
librar... |
f08f0a81223cdd82e5ad65edbeff8e2e75e513cf | 97aafdeb042b59c18d311c25cc71d5103f23e12c | /R/SingleDataSearch.R | bd474685b6a9481cc00d18807470a05915f221c5 | [] | no_license | rlaqudahr88/AI_Nick | 83cc18cf588b7bb4348c61efa0dac1e93c787d90 | 8f431d6a4bbaf2db863087e42970083d1d23190d | refs/heads/master | 2022-12-11T07:20:57.155186 | 2020-09-08T02:46:15 | 2020-09-08T02:46:15 | 258,415,203 | 0 | 0 | null | null | null | null | UHC | R | false | false | 4,251 | r | SingleDataSearch.R | ##단일변수 자료의 탐색
# 1) 자료의 특성 : 범주형(질적), 연속형(양적)
# 범주형은 주로 성별, 혈액형, 색깔, 찬반여부 -> 계산할의미가 없음
#연속형은 : 몸무게, 키, 온도, 자녀의 수 등 -> 계산이 가능
# 2) 변수의 개수에 따른 분류
# 단일변수 자료(일변량 자료): 하나의 변수로만 구성된 자료
# 다중변수 자료(다변량 자료): 두개이상의 변수로 구성된 자료
# 1. 도수분포표 작성(frequency distribution table)
favorite <- c('WINTER', 'SUMMER','SPRING','SUMM... |
e85e94ab439495e985b9a37a450fea87720cfcbf | 0198bd016fc0867660639ff7b5979c088e42c6c7 | /man/Fylkesgrense.Rd | 96920d8462c0927cbc48c485546520ca579ab2cc | [
"CC-BY-4.0"
] | permissive | hmalmedal/N5000 | 62f4f046ccbd28e8d3e5a05dacab8f755a6c5950 | 6b7e55001998e3ea05fcb26c564069d6862d7a63 | refs/heads/master | 2023-05-12T12:08:37.036517 | 2019-02-21T19:12:57 | 2023-05-01T08:11:06 | 171,929,948 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,850 | rd | Fylkesgrense.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datadoc.R
\docType{data}
\name{Fylkesgrense}
\alias{Fylkesgrense}
\title{Fylkesgrense}
\format{
\if{html}{\out{<div class="sourceCode">}}\preformatted{Simple feature collection with 158 features and 3 fields
Geometry type: LINESTRING
Dimensio... |
c12f415bb51cf8bf1bbdd6ce81b905c4c8877169 | 5c7c92ac57086091e529d2101e340ca327916166 | /man/computePersistence.Rd | 23702d2baf3df4010535e5ba7ee651d2f7e04471 | [
"MIT"
] | permissive | nesscoder/TimeCycle | 2dbb83709e23e7ce8dae4272734d63dea77c6331 | 01a321a0720a141980c4b33121be7fef02790fbf | refs/heads/master | 2023-06-09T20:08:26.075191 | 2021-06-29T01:01:21 | 2021-06-29T01:01:21 | 244,984,693 | 5 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,629 | rd | computePersistence.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/computePersistence.R
\name{computePersistence}
\alias{computePersistence}
\title{Computes Persistence Scores For a Data.Frame of Time-Series Across Multiple Lags}
\usage{
computePersistence(
data,
minLag = 2,
maxLag = 5,
cores = paral... |
4cdda6db082999ef74dfdcd2e3d2337bfa4a177d | c88dbe917c3a5503f4ada75ba47d393d091a99f1 | /Seasonality_TTB.R | 16540bdeaef6bcf11e791fe1c92c6fd0347e6503 | [] | no_license | HuckleyLab/ThermalStress | b618f220cf7a13369a1c1a42d1ee58f32d7f8085 | 14efd38a85e7db2a9719f18497e4c92e354f342d | refs/heads/master | 2022-07-14T10:13:30.286060 | 2022-06-29T19:15:29 | 2022-06-29T19:15:29 | 188,100,526 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,979 | r | Seasonality_TTB.R |
#------------------------------
#HADCRUT4
#land and sea
library(raster)
require(rgdal)
library(ncdf4)
library(maps)
setwd("/Volumes/GoogleDrive/Team Drives/TrEnCh/Projects/ThermalStress/data/HadCRUT4/")
cru<-nc_open('absolute.nc')
print(cru)
#extract temperature data
temp=ncvar_get(cru,"tem")
#lons
lons= ncvar_ge... |
1d64209da2bd037e2bd9fa18f09e1f0082574770 | 80828838119e3ff7343549adb90d225e6b6f06d1 | /demo/npsymtest_npRmpi.R | e67a1308c54231f755a1e677484cee53aed3b918 | [] | no_license | cran/npRmpi | 49131c9b187b8bddcf63523b30affa22658ae09e | 1ebad7da39e8ec4bf30775bcc2aea34ef5a87fec | refs/heads/master | 2016-09-05T17:44:47.216211 | 2014-06-27T00:00:00 | 2014-06-27T00:00:00 | 17,697,956 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,743 | r | npsymtest_npRmpi.R | ## Make sure you have the .Rprofile file from npRmpi/inst/ in your
## current directory or home directory. It is necessary.
## To run this on systems with OPENMPI installed and working, try
## mpirun -np 2 R CMD BATCH npsymtest_npRmpi. Check the time in the
## output file foo.Rout (the name of this file with extension... |
c06e9991bbf6ac326eb821de63d0a47c630133ee | 33a30dafc83b22ccf434c5ce164de96f82ebc65d | /prepare_group_file_for_EPACTS_Rpart.R | c8022c8fff84b99d12d4d9960cc89c5f62c773e5 | [] | no_license | moutsian/lm12_Scripts | 5f2205d933692c8e77534859927c1c54606d8adb | 5c32faf2b8c46ca81d2a447bf209689f36fd712e | refs/heads/master | 2021-09-13T13:09:02.797716 | 2018-04-30T09:45:33 | 2018-04-30T09:45:33 | 104,744,198 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,369 | r | prepare_group_file_for_EPACTS_Rpart.R | #prepare_group_file_for_EPACTS_Rpart.R
chrom=21
for(chrom in 1:22){
print(paste("chrom:",chrom,sep=""))
varfile=paste("tili.i3.site_QCplus_binom.sample_QC.annot.vcf.",chrom,".variants",sep="")
annofile=paste("tili.i3.site_QC.sample_QC.vcf.annot.",chrom,".annot.fc.tmp",sep="")
outfile=paste("tili.i3.site_QC.sample... |
7ccf896e2ac254798c0cc3e90a3ff43d86c42087 | 55f30a3d624323b427103540af0275e790c68b4f | /man/GetCrecheData.Rd | a9799cbb6fa86c2de79b5d68ae2185cc88cf6138 | [] | no_license | bromsk/NETNCoastalBirds | 6ff6833af11d33801816863c7665909e9e307bdd | 8dc7ca151efe76393330905a098f241f2132b921 | refs/heads/master | 2020-07-14T04:22:00.523164 | 2019-08-22T17:30:27 | 2019-08-22T17:30:27 | 155,464,003 | 0 | 0 | null | 2018-10-30T22:23:27 | 2018-10-30T22:23:26 | null | UTF-8 | R | false | true | 1,198 | rd | GetCrecheData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetCrecheData.R
\name{GetCrecheData}
\alias{GetCrecheData}
\title{Return creche surveys from database}
\usage{
GetCrecheData(x, ODBC_connect = TRUE, export = FALSE)
}
\arguments{
\item{x}{Denote in parentheses to return df}
\item{ODBC_connec... |
8d35b7f647cf8d39a8981cb20941564faea99472 | 58c02f3060b1e3bd9961744ba286d82146867b37 | /R/maybestep.R | 0db35ff601e2852dc1b484eb90f1353e4b862c6f | [
"MIT"
] | permissive | dfalbel/maybestep | 093938c2d2f3d75db8b44a1b2da3c8003ac445a4 | 4160fedf8fb48a5ece29f1408995abc0fb700df6 | refs/heads/main | 2023-08-08T04:08:59.946841 | 2021-09-15T13:24:31 | 2021-09-15T13:24:31 | 406,755,311 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,620 | r | maybestep.R | #' Allows tuning the presence of a step.
#'
#' @inheritParams recipes::step_normalize
#' @param step_fn A recipe step function that will be added to `recipe`.
#' @param ... Additional arguments passed to `step_fn`.
#' @param use Whether to include `step_fn` or not into the `recipe`.
#'
#'
#' @examples
#' library(recipe... |
86ad41558162421cdc4c52d826fb38585903cbd5 | 16f830f62c6b319652a5a0ae382e02435d05c4ef | /man/FIM.Rd | 0d55dade83e9e01f9c8ac92c4ff064cbb943df82 | [] | no_license | zhonghualiu/MRCIP | 641c3314e3ef713d32a760fda40f54eb8f58d4df | 4568fa94b7a45eace168a1b2efa5cf718f6e2cec | refs/heads/main | 2023-01-05T12:26:01.522258 | 2020-11-04T12:28:43 | 2020-11-04T12:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 643 | rd | FIM.Rd | \name{FIM}
\alias{FIM}
\title{The estiamted Fisher infomation matrix for the paramters in MRCIP}
\usage{
FIM(sj_Gamma, sj_gamma, theta, w=NA)
}
\description{
This function provides an estiamted Fisher infomation matrix for the paramters in the MRCIP model.
}
\arguments{
\item{sj_Gamma}{A vector containing t... |
d9f6356ea1f3ab9ea05ef5777ba5158a95a5a4ec | 2948fc466c0935a4d4d07b8dfc79ee564034aac6 | /replications/Rastogi_2016/R/members_or_not.R | 01ec439d5b447f14b936735ac09a9cf8e697a860 | [
"MIT"
] | permissive | micheledinanni/Psychometric-tools-benchmark | 5a0f8514e1a144787039c62f184a1af7d4fc5283 | f9074c77c2a6151051a59853c19ce79ade276da7 | refs/heads/master | 2020-05-04T08:43:24.907430 | 2019-04-17T09:38:59 | 2019-04-17T09:38:59 | 179,052,341 | 1 | 1 | null | 2019-04-02T10:16:48 | 2019-04-02T10:16:48 | null | UTF-8 | R | false | false | 1,893 | r | members_or_not.R | rm(list=ls())
source(file="connectTodb.R")
query="select * from cc_project_members"
prc_memb<-dbGetQuery(con,query)
query="select * from pr_project_members"
cc_memb<-dbGetQuery(con,query)
query="select * from cc_not_project_members"
prc_nm<-dbGetQuery(con,query)
query="select * from pr_not_project_members"
cc_nm<-... |
d2071182aad3e1f144d6df56ef3cb592ae6ce73a | 54c69f7d2e1c24e1d2d2390664990c6d04fb60ba | /man/barycentric.Rd | 4a898589391f6a773cc2650f5de28be931c92c78 | [] | no_license | SigbertIngress/ingressWeb | f682798edc252ff91bbc35951084369709dc4870 | 2a381b7ae7f1082d1f6d56a5f1901445753cca1f | refs/heads/master | 2021-04-26T22:34:34.212218 | 2018-03-18T15:13:05 | 2018-03-18T15:13:05 | 123,955,719 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,282 | rd | barycentric.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/barycentric.R
\name{barycentric}
\alias{barycentric}
\title{barycentric}
\usage{
barycentric(x, y, xtri, ytri, tolerance = 1e-08)
}
\arguments{
\item{x}{numeric(n): x coordinates}
\item{y}{numeric(n): y coordinates}
\item{xtri}{numeric(3): ... |
9268303114b95666447d09d0bb2c03923cb9e8da | fd98f57aeee26f6cc13ea7a7cd4e2e58e108cd07 | /tests/testthat/test-check-col-names.R | 4e2ebeec0611b04ec31dfcad0c490e182453d030 | [
"MIT"
] | permissive | pitviper6/dccvalidator | 2b6314a652eb983370586613b6e1341ac0879e7d | 7273ef372106a7d4bfc634003282b542ba32fb3f | refs/heads/master | 2023-04-05T10:32:47.947642 | 2021-03-31T15:38:25 | 2021-03-31T15:38:25 | 353,089,893 | 0 | 0 | NOASSERTION | 2021-03-30T18:31:37 | 2021-03-30T17:43:19 | null | UTF-8 | R | false | false | 7,820 | r | test-check-col-names.R | context("test-check-col-names.R")
syn <- attempt_instantiate()
test_that("check_col_names returns condition object when check passes", {
template <- data.frame(x = 1, y = 1)
dat <- data.frame(x = 5:10, y = 5:10)
result <- check_col_names(dat, names(template))
expect_true(inherits(result, "check_pass"))
})
te... |
14ee050fd332f37ea4bee84aadbaa94e672b4337 | d473a271deb529ed2199d2b7f1c4c07b8625a4aa | /Stats_and_Math/DescriptiveStats_Outliers.R | 7b53359cb9353a2aebe12e8a9c5d8607a7b43f5a | [] | no_license | yangboyubyron/DS_Recipes | e674820b9af45bc71852ac0acdeb5199b76c8533 | 5436e42597b26adc2ae2381e2180c9488627f94d | refs/heads/master | 2023-03-06T05:20:26.676369 | 2021-02-19T18:56:52 | 2021-02-19T18:56:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,831 | r | DescriptiveStats_Outliers.R | #Delosh, Jason Predict 401 SEC60 Data Analysis 1 R Code
require(ggplot2)
require(moments)
require(fBasics)
library(gridExtra)
#a) read abalones file into R
ab <- read.csv(file.path("abalones.csv"),sep=" ")
#b)
mydata<-data.frame(ab) #set ab as dataframe
str(mydata) #review mydata structure
head(mydata) #review hea... |
b25832fe5950998f1e06b74e8a3283abc04a7688 | 0a0acb21d3ddecef48ccd3ce57d15300c128a6f7 | /R/run.epiConv.R | c9440fb7848c067d550b3c71251846834d5cf2f3 | [
"MIT"
] | permissive | sparsepenn/epiConv | 5f8b2ebd1cfcd4c59de602eaa9a40844d0d55b96 | f9703b9a16432f212dc707dde0b9705b01ff3bab | refs/heads/master | 2023-07-05T13:43:04.938353 | 2021-08-08T10:46:29 | 2021-08-08T10:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,795 | r | run.epiConv.R | #' Calculate similarities between cells
#'
#' Calculate similarities between cells
#'
#' @param mat Matrix object constains the peak by cell matrix.
#' @param lib_size library size of single cells.
#' @param nbootstrap number of bootstraps performed.
#' @param nsample number of peaks sampled in each bootstrap.
#' @para... |
5bf2a16271d51daf4aab9fe591abe04a3611ba6e | 6fc3f0f6935967f151de13f65fd9b2591cb97d04 | /run_analysis.R | 28c7ce3f922f7c53e569deea01bdad2c9c119c7d | [] | no_license | fffeng16/getting_and_cleaning_data_project | f31ee4ac2c7d53669b1796f7f789d4294504ef4a | 0072c54df973e88a7fa662af2cf526fe7cc79acd | refs/heads/master | 2021-01-10T11:27:45.897731 | 2016-03-26T02:14:40 | 2016-03-26T02:14:40 | 54,757,930 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,456 | r | run_analysis.R | library(dplyr)
# 1. download the raw dataset if it does not already exist in the working directory
filename <- "getdata-projectfiles-UCI HAR Dataset.zip"
if(!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL, filename,... |
fdc0da0309c92c79cb3a22eb7085fbf5574973a7 | 15a2c84db55c9ee237a6426bef7712810bc120d2 | /Meetup_2019_05_30/5_cleaned_capital_effect/home_location_5.R | b6d0eed05289136faf8cd067cc1b4640936c5e3f | [] | no_license | rladies/meetup-presentations_budapest | a7c782c6dd160a14d6579c989dc35ba4202e6637 | f1d2ee524f2adff1bc77bfcb775d21ef4a9f95eb | refs/heads/master | 2022-04-16T17:07:12.847074 | 2020-04-13T14:18:31 | 2020-04-13T14:18:31 | 82,724,566 | 15 | 26 | null | 2019-06-04T05:28:38 | 2017-02-21T20:36:49 | HTML | UTF-8 | R | false | false | 1,837 | r | home_location_5.R | library("tidyverse")
library("plotly")
purrr::walk(list.files("5_cleaned_capital_effect/R", full.names = TRUE), source)
# load data ---------------------------------------------------------------
data_path <- file.path(rprojroot::find_root('clean-r-code-student.Rproj'), "data")
# NA is valid country code, stands fo... |
2d002adbe5cee7e93d089601528bea7f2de0071b | e686d1cc1b59365c5589dbf9cbe2ce625f5a336c | /man/get_pref.Rd | 3b852a8e120a6c4d501b1500e2e80b3756a605d2 | [] | no_license | systats/hrscraper | 73399a6fb5f7086eb652d9dbb3f7d1f122778855 | b69e81a743c1961c7c034f9de9b02704cb568bb2 | refs/heads/master | 2020-03-18T00:00:23.994618 | 2018-05-19T15:22:24 | 2018-05-19T15:22:24 | 134,073,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 258 | rd | get_pref.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base_info.R
\name{get_pref}
\alias{get_pref}
\title{get_pref}
\usage{
get_pref(html)
}
\arguments{
\item{html}{params}
}
\value{
df
}
\description{
get self reported preferences
}
|
d807bdd902fe0e45aee302fb8be18d10f9d7df39 | 93482447fb7e1fb0c9786c08bfd24c31f9a85930 | /plot2.R | 9102223bd53bda0025bcbdd4368f3f0efc191bab | [] | no_license | hfconamore/Exploratory-Data-Analysis---Project-Electric-Power-Consumption-Plotting | db835e548ba58abadc42e736142cc6dd1297617c | 48caeb0e2426c6e0809c8db540cc130167316c4c | refs/heads/master | 2021-06-02T13:30:39.620345 | 2016-09-05T22:53:48 | 2016-09-05T22:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,932 | r | plot2.R |
setwd("/Users/Feng/Documents/AfterGraduationStudy/DataScienceSpecialization/04_ExploratoryDataAnalysis/ExploratoryDataAnalysis_HW_Project/ExploratoryDataAnalysis_W1_Project")
################ Data Manipulation ################
con <- file('household_power_consumption.txt', open = "r")
filtered_lines <- vector()
i <... |
e723c537dc21e0ca52203cbfbd85c5ddea8d400e | 8e5a091c398a487a454b768f7c59066cbb22d115 | /code/zzz_archive_code/p2z_seasonalSplit.R | e1959de4b3b6986b7f978ec7d56d8b85537ece65 | [] | no_license | adamnicholasprice/DryingRegimes | 945d1b43ced2a04960cf09bde91a781157a53c04 | c108e3f18099c520639338d58a4933045e0de9ea | refs/heads/master | 2021-11-12T10:46:11.838180 | 2021-05-12T03:06:52 | 2021-05-12T03:06:52 | 235,688,274 | 1 | 1 | null | 2021-10-30T11:07:47 | 2020-01-22T23:27:47 | R | UTF-8 | R | false | false | 2,683 | r | p2z_seasonalSplit.R | #####################################################################
##
## Script name:
##
## Author: Adam N. Price
##
## Date Created: 2020-04-17
##
## Copyright (c) Adam N. Price, 2020
## Email: adnprice@ucsc.edu
##
############################# Description ##########################
##
## Devide pead2zero metric i... |
3a104c8f1556a13ff9582093979279946999568d | ab418aac86f7e1495a7ac1e03d2439809c95467b | /src/6f_plot.R | 842ceb4f67969588e2bee248a198b69626ca8306 | [] | no_license | rivas-lab/covid19_HGI | e6d63923a6dcfd67aaf7dd2b35dcb6ed851edb73 | 92b1e3e98aee73d93090c97741c4943801a788d9 | refs/heads/master | 2023-04-14T22:18:33.727148 | 2021-04-29T21:50:28 | 2021-04-29T21:50:28 | 331,125,097 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,695 | r | 6f_plot.R | fullargs <- commandArgs(trailingOnly=FALSE)
args <- commandArgs(trailingOnly=TRUE)
script.name <- normalizePath(sub("--file=", "", fullargs[grep("--file=", fullargs)]))
suppressWarnings(suppressPackageStartupMessages({
library(tidyverse)
library(data.table)
}))
################################################... |
bffbcbf30f497fcacab43632873d68d97ebde83a | c26fb000f0f7070559c869b6913677edb584c50d | /code/functions_eval.R | c399e35c248a5fa21bdd0597eecdad55c5f655c6 | [
"CC-BY-4.0",
"MIT"
] | permissive | benediktschulz/probabilistic_solar_forecasting | 9f50fa7aef3a79c2c3368cee6cc2860aa8486219 | 999dfe30b8528429a8c36bcd5c86a6e5bba779b0 | refs/heads/main | 2023-04-14T03:52:35.901436 | 2023-02-02T08:39:17 | 2023-02-02T08:39:17 | 556,637,600 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,548 | r | functions_eval.R | ## Functions for evaluation of postprocessed forecasts ##
#### Import ####
# Import basic functions
source(paste0(getwd(), "/functions_basic.R"))
#### Coverage ####
# Calculate coverage of a central prediction interval
fn_cover <- function(x, alpha = 0.1){
###--------------------------------------------------------... |
c0889b819cc023f251d0dc268897f2d40ac88151 | ef01bab1215f822fe415021c73c2b915fdd787ba | /01_data_preparation/step3_merge_datasets/step39_correct_observations_with_multiple_simultaneous_changes.R | f80aff2f2f2059ae4ae48de4b7497ae89fc3fa41 | [] | no_license | nvkov/MA_Code | b076512473cf463e617ed7b24d6553a7ee733155 | 8c996d3fdbbdd1b1b84a46f84584e3b749f89ec3 | refs/heads/master | 2021-01-17T02:48:40.082306 | 2016-09-25T18:53:53 | 2016-09-25T18:53:53 | 58,817,375 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,750 | r | step39_correct_observations_with_multiple_simultaneous_changes.R | rm(list=ls())
library("stringi")
library("data.table")
load("C:/Users/Nk/Documents/Uni/MA/Pkw/MobileDaten/generatedData/Merged_data/df_merge_after_step38.RData")
vendors<- vendors[n_unique_changes_price==1 & n_changes_total>1,
`:=`(firstDate=min(cars_lastChange),
lastDa... |
b3be5f76c0292f6c427b12360fd98486c6b5ce12 | 024b84112a8ebad3f859d5a395f4eb772034088b | /stats/api-stats.R | 92810a226fdc26ef68238503dc1ad04b5340bf6c | [] | no_license | ImgBotApp/ghtorrent.org | af39acc19d99bfdee771c28d9b2cc9a3f49180b4 | 3754cce4dbff5b082f431a7033cba49596cdab38 | refs/heads/master | 2021-01-22T05:32:47.711386 | 2017-08-29T09:12:28 | 2017-08-29T09:12:28 | 102,281,307 | 2 | 0 | null | 2017-09-03T17:20:11 | 2017-09-03T17:20:11 | null | UTF-8 | R | false | false | 2,627 | r | api-stats.R | # Run this to create the data file
# cat */log.txt |grep APIClient|grep -v WARN |perl -lape 's/\[([T0-9-:.]*).*\] DEBUG.*\[([0-9.]*)\].*Total: ([0-9]*) ms/$1 $2 $3/'|cut -f2,3,4 -d' '|ruby -ne 'BEGIN{require "time"}; t,i,d=$_.split(/ /); print Time.parse(t).to_i," ", i, " ", d;' |egrep -v "#" >data.txt
library(ggplot... |
0c4bb99241202a9732283ba52991b26a51052531 | e915d387e526e1269571b8d5153331c21f62f492 | /man/transfer-class.Rd | 8121ec302f3b512c4bb28a6e67364d93bba1d38a | [] | no_license | jmcurran/tfer | fb5c38cb7e09d70c015512f2ff879e68545d8883 | 9581203a3034821545434eb42a96e4c7c32fc161 | refs/heads/master | 2021-01-20T03:29:11.740950 | 2015-02-24T17:09:31 | 2015-02-24T17:09:31 | 31,270,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,427 | rd | transfer-class.Rd | \name{transfer-class}
\Rdversion{1.1}
\docType{class}
\alias{transfer-class}
\alias{[,transfer,ANY,missing,missing-method}
\alias{Compare,transfer,numeric-method}
\alias{parameters,transfer-method}
\alias{plot,transfer-method}
\alias{show,transfer-method}
\alias{summary,transfer-method}
\alias{tprob,transfer,... |
fda045f162f98e1d23da2973f4df892f721ceaf2 | a3851712c0aebf9dc4f513b30e00bfd6d72b31fa | /R/typeofSwitch.R | 5d02fd84d7a418220845aec66dabead0938c0197 | [] | no_license | duncantl/NativeCodeAnalysis | d0476d2865e491bbde5b39b6e56ca81b02b647af | 60ebb6a29960f747d88f5baa1b0dc00074a3c754 | refs/heads/master | 2021-11-24T03:07:04.453351 | 2021-11-22T14:41:03 | 2021-11-22T14:41:03 | 211,151,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,040 | r | typeofSwitch.R | findSEXPTypesFromSwitch =
#
# given a parameter (class Argument) p, find where it is used and if any of these are TYPEOF() calls.
# For these TYPEOF() calls, find any switch statements that use this value and see what cases they handle.
#
#
# Connect to testType() in testType.R
#
function... |
6b39992dc390091f97965c8ff4faa0b8096eb622 | 8403b972f889cea691634290304d86e073cc6af7 | /SDM II - HW2/HW2_P3.R | 6aa450133f0cdb3dda35a16cb89083b606ceded4 | [] | no_license | rohithx/statistical-data-mining | 6f1867ae3a7bb39ed52aa7d85251131c6a570339 | 378fdfe59b5c16bfa1b180bd43dcb7bab5cb2b7e | refs/heads/main | 2023-05-13T12:48:52.897500 | 2021-06-07T21:24:05 | 2021-06-07T21:24:05 | 373,328,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 770 | r | HW2_P3.R | ###################
#Written by Rohith#
###################
rm(list=ls())
data<-read.delim(choose.files())
data_y<-data
data_x<-data
data_x$Seed.Group<-NULL
data_x<-scale(data)
###################
#a)
d <- dist(data, method = "euclidean")
#Clustering using single, average and complete
hc1 <- hclust... |
3bac54dec9651679178b990fbeb246a14f2066f7 | 660fbe7a68f3b0b887ae07a1584f8bbd7b3eaff1 | /man/listMarketBook.Rd | 0ae03582ffad2f51aac7fe354340c6ece7d24d7c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | christopherok/abettor | 2670e79edd27b19ab2206be3f662af297a39438b | d4d71903ffa4eff1569f33d342ab5d7dacf46b66 | refs/heads/master | 2020-07-14T09:20:05.291515 | 2015-12-14T21:12:02 | 2015-12-14T21:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,019 | rd | listMarketBook.Rd | % Generated by roxygen2 (4.1.0.9000): do not edit by hand
% Please edit documentation in R/listMarketBook.R
\name{listMarketBook}
\alias{listMarketBook}
\title{Return listMarketBook data}
\usage{
listMarketBook(marketIds, priceData, sslVerify = TRUE)
}
\arguments{
\item{marketIds}{String. The market identification numb... |
f02c386da2f82b89b9f5c320cfd5a17a9609c4ff | 48c532d4e600ca143d39d9e9be50f42763e9418f | /Modulo02 - Google Trends - volumen/trends.r | 54c155f4fcefded773ccc88ef5079fdc521638a9 | [] | no_license | mat4os/saber | 5b7ae408739c365cf9d613a628a86406d91f81a2 | 3c43d89bbe5e4336cd6998326f3388af02febcd7 | refs/heads/master | 2021-01-11T07:31:13.238675 | 2016-09-29T07:15:35 | 2016-09-29T07:15:35 | 69,275,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 731 | r | trends.r | install.packages("gtrendsR")
install.packages("XML")
library(gtrendsR)
library(XML)
user <- "losmat4os@gmail.com"
psw <- "vivarbet1"
gconnect(user, psw)
a<-gtrends("Nintendo",res="7d")
a[7]
a$trend
sum(a$trend$nintendo.)
colname = colnames(a$trend)[2]
a$trend$colname
a$trend[6]
#* @get /score
... |
dcf4200e39f0386a07e504022de799019dcccab5 | 77a1d43f1e231eed951fa32f733be76eb43dd8ec | /tests/testthat/test-app.R | 6b7b67eed81c6a56fff7862d95f17257e73fedf7 | [
"MIT"
] | permissive | ThinkR-open/clientapp | be7213dedb137baab104b12e154641541d9849a1 | eccbcbc4bab3b7cf3a1830802984fe9d19a4e58e | refs/heads/master | 2020-03-31T02:29:42.572013 | 2018-10-06T18:31:53 | 2018-10-06T18:31:53 | 151,826,425 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 813 | r | test-app.R | context("Application")
library(shiny)
test_that("app ui", {
ui <- clientapp:::app_ui()
expect_is(ui, "shiny.tag")
})
# need to be updated to work with ShinyModule... PR welcome
# test_that("app server", {
# session <- as.environment(list(
# sendCustomMessage = function(type, message) {
# session$lastC... |
3ea206db21e680be4ca46b43be86cfcc6a7ad86a | 61591677da804b25ab037fb14c02252986a6eca4 | /hw2/hw2.R | 62f9e7cb30318adcad0ce8d51668603711315d7b | [] | no_license | franciszxlin/MarketMicrostructureAlgorithmicTrading | 5d2212fb24dcb3476e6008943f90f04e5187cafa | 9f3298b67e3a65483ff88f37e246a78acc4e3220 | refs/heads/master | 2021-07-07T12:44:51.135848 | 2017-10-02T08:40:03 | 2017-10-02T08:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,519 | r | hw2.R | library(rkdb)
h1<-open_connection('172.19.10.167',6005)
h2<-open_connection('172.19.10.167',7005)
# Problem 1
# See what instruments are in different classes
execute(h1, 'select inst by class from instinfo')
# Class:Inst picked
tline=seq(-7,16,0.25)
# AG: ZW
zw<-execute(h2, "{[bd;ed;inst;minintvl] select v from 0^(([]... |
a2739e539f80a038edb8d221873fa764c39d4c77 | 1a647915c7614faacf2ef26b2b63f8d458de08cb | /Inference modeling/Q1.R | dcbcf3aea5f20e66c201efdcec7368c7c352aed5 | [] | no_license | asajini/data-viz-R | 414e236d5210b61f7d0fc50d169125448abf2cc8 | 3e96fb095148c7121700f77b49b2c7a82fc4d2af | refs/heads/master | 2022-03-28T09:08:06.578660 | 2020-01-26T07:10:38 | 2020-01-26T07:10:38 | 198,112,845 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 553 | r | Q1.R | library(tidyverse)
options(digits = 3)
library(dslabs)
data(brexit_polls)
p <- 0.481 # official proportion voting "Remain"
d <- 2*p-1 # official spread
N <- 1500
#What is the expected total number of voters in the sample choosing "Remain"?
Es = N*p
Es
#What is the standard error of the total number of voters in ... |
4a28c931a352b00809a7cabb95fa7a2ac38ec8b4 | 3146b8b5a297450b01b1db28935971cdd6e2453c | /Rscripts/compare_score_definitions.R | 3e43aeba22cc63470be810929d246e820936175f | [
"MIT"
] | permissive | csoneson/annotation_problem_txabundance | 8f80bf193cba9ef21570d6512294ee01a2c53e58 | 748b78b67b5b06a990586483a05d748920fff2d4 | refs/heads/master | 2021-10-08T16:40:53.795263 | 2018-12-14T17:46:22 | 2018-12-14T17:46:22 | 102,369,466 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,949 | r | compare_score_definitions.R | ################################################################################
## ##
## Compare gene scores calculated with different functions (g) ##
## ... |
158fbf2b87b51731d3cd9aa00fdf1f4fe27b2e6c | f4fffe026383f8f681c8b2ef2e7b2ec0f8143688 | /man/ggBivServer.Rd | 072a9e7eee45c5f9df28f148bbebd426dc9cb5f7 | [] | no_license | DavisVaughan/romic | 436da67b077937d1c13af9701d39a00f083e6694 | f3470f5cd42b6ee8322db3f10a1c254766a5dc3e | refs/heads/master | 2023-05-08T05:44:49.460728 | 2021-05-18T13:10:03 | 2021-05-18T13:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 673 | rd | ggBivServer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_ggbiv.R
\name{ggBivServer}
\alias{ggBivServer}
\title{ggBivariate Server}
\usage{
ggBivServer(id, tomic, plot_table, return_brushed_points = FALSE)
}
\arguments{
\item{id}{An ID string that corresponds with the ID used to call the modu... |
83bfe4453db87c043a3f9ec9dce9f9e90fe2ab35 | 7ca0ee6639ecad09598c5c58d058ccda00884f6b | /data-raw/clean_delta.R | f36d787cf7ab1e35013b3ced60ac37577d482b4e | [] | no_license | FlowWest/Explore-SIT-Model | edcf404fa66be7c2d7284b992dded66a9bfdda9f | 7f47fc2a5f9e3a0c5bbb03e11f2f5331354105aa | refs/heads/master | 2021-06-20T21:59:30.842006 | 2017-07-25T21:29:37 | 2017-07-25T21:29:37 | 94,383,223 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,708 | r | clean_delta.R | library(tidyverse)
library(stringr)
# cleaning input delta data from sit model
delta_inflow <- read_rds('data-raw/delta_inflow.rds')
names(delta_inflow) <- 1970:1990
delta_inflow %>%
tidyr::gather(year, flow) %>%
dplyr::filter(year != 1990) %>%
write_rds('data/delta_inflow.rds')
inputs <- read_rds('data-r... |
b2ee8fffc3148362c698033e3fe470b0ca5da04a | a59b0019cd455e5c8c59263d5248b388eb235257 | /man/fixef.gam.Rd | 2e58efd79b666f395e854673f9c67b4dc5cfc267 | [
"MIT"
] | permissive | dill/gratia | 4df529f5e636a0139f5c355b52a2924bebf7aca4 | 26c3ece0e6a6298ab002b02019b0ea482d21dace | refs/heads/master | 2023-04-08T18:35:18.730888 | 2023-03-20T12:52:33 | 2023-03-20T12:52:33 | 160,169,115 | 0 | 0 | NOASSERTION | 2018-12-03T09:54:30 | 2018-12-03T09:54:30 | null | UTF-8 | R | false | true | 929 | rd | fixef.gam.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/effects.R
\name{fixef.gam}
\alias{fixef.gam}
\alias{fixef.gamm}
\alias{fixef.lm}
\alias{fixef.glm}
\alias{fixed_effects}
\alias{fixed_effects.default}
\title{Extract fixed effects estimates from a fitted GAM}
\usage{
\method{fixef}{gam}(objec... |
7f6eacc767f831ed3886330965abe7d247638847 | de6cd80dab1c5cd752e2b8ea639ba1662fb4af48 | /polar_cord_plot.R | 021c4866808679c077f5381fdf3232cf10cdc5b1 | [] | no_license | smart-patrol/Useful_Code | 6204c4843a633c6071681ad7878edb976e946ea1 | bc28e7feba147dd19fd0318f2578318201312364 | refs/heads/master | 2021-06-25T05:36:41.011122 | 2017-09-07T01:09:21 | 2017-09-07T01:09:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 741 | r | polar_cord_plot.R | rm(list = ls(all = TRUE))
library(RODBC)
library(dplyr)
library(ggplot2)
library(reshape2)
library(XLConnect)
library(ggthemr)
ggthemr('flat')
#devtools::install_github('ggthemr', 'cttobin')
read.excel <- function(header=TRUE,...) {
read.table("clipboard",sep="\t",header=header,...)
}
dat=read.excel()
str(dat... |
ce73b176591f8f2820aa13bafefb3c0fd5bc9269 | 904355e00b661fe5f8b42c055dec3bd3bc16f000 | /ShinyAppTutorials/media/app.R | e53bced64be16ec15fcd4ec5b0bd0218fb88f317 | [] | no_license | mobatusi/R_projects | eb6462f4cc3d5f3cfae38bb4c71e494fe2d85a32 | 5d6b0b26219548aa1705fd56e98542ef59124d56 | refs/heads/master | 2020-04-04T08:13:53.972846 | 2018-11-04T18:14:43 | 2018-11-04T18:14:43 | 155,776,137 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 889 | r | app.R | library(shiny)
server = function(input, output){
}
ui = navbarPage("Integration of different media types",
tabPanel("Image sourced locally",
tags$img(src="logo.png", width ="100px", height = "100px")),
tabPanel("Video sourced locally",
... |
7e6c0b4b5116abc456da21e8fc0ff9b12d617c8b | 747eb6826bc0111b151bb156a6a3d41acec60038 | /Code/Data Cleaning/Uniting databases/Gouping.R | 82f288be17d89d7ffed659ccafbc892d0afa4cd2 | [] | no_license | andreschprr/Violent-Extremism-and-Social-Cohesion | aab084664f61be5fb59ebcba8303107934aabef1 | e4076aa438a0f0a5a6e1598e85ca2394a7b938cf | refs/heads/master | 2021-02-06T14:20:54.628401 | 2020-03-13T08:03:32 | 2020-03-13T08:03:32 | 243,921,226 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,990 | r | Gouping.R |
survey_qs <- merge(afro_groupedby, wvs_2groupedby, all.x = TRUE, by = c("ROUND", "COUNTRY"))
survey_qs$VSC_UG <- (survey_qs$VSC_UG1 + survey_qs$VSC_UG2) / 2
survey_qs$VSC_CA <- rowMeans(survey_qs[,c("VSC_CA1","VSC_CA2","VSC_E026","VSC_E026B","VSC_E028B","VSC_G021")], na.rm = TRUE)
survey_qs$VSC_DE <- rowMeans(surv... |
8b7582b348611d2818f6bb1a586800394f2f1568 | 4e853052f2468cbc7b5aaa8441c71f125fe3c44f | /Gretchen R modeling/ZOld/agecumulative.R | 533f25f62ce03f3964249c6c29a604af7c55ce3a | [] | no_license | flaxter/nims | 316ff30e4e4c487cbacb9d818b2d3ee324dac4ac | 438d22a874b0d9dfa70924b280d2750c1cff37a6 | refs/heads/master | 2021-01-10T22:07:33.484281 | 2010-09-02T13:43:47 | 2010-09-02T13:43:47 | 744,457 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 577 | r | agecumulative.R | agecumulative<- function(survey,year,thresh1,thresh2,agel,ageh,p)
{
i<-1
N<-length(p)
cump<-c(NA)
while(i <= N)
{
if(thresh2[i] == 99) # already cumulative
{
cump[i]<-p[i]
i<-i+1
} else {
istart<-i
studyid<-survey[i]
startage<-agel[i]
endage<-ageh[i]
sexid<-female[i]
cump[istart]<-0
... |
a8d918279ee717edc27034abacfce5d0b6903182 | adf73a99ea29d5b56a1499849cc3609498e80558 | /man/GO.mouse.Rd | 48883b43ba7e6370b8a324113320c04b33b66021 | [] | no_license | woodhaha/EGAD | ac31565b9f8bd334b73c4b261bb9b5b29379f594 | 082caa9723859f9300d37c622bab1292c2ee63c8 | refs/heads/master | 2021-01-20T01:19:04.417337 | 2016-04-29T22:00:25 | 2016-04-29T22:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 529 | rd | GO.mouse.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GO.mouse.R
\docType{data}
\name{GO.mouse}
\alias{GO.mouse}
\title{GO - mouse}
\format{A data frame with 2086086 rows and 4 variables:
\describe{
\item{name}{chromosome}
\item{entrezID}{chromosomal start position, in base pairs}
... |
7ab79ae50b789facb350355551d114f1f77bc44e | 69236e01a49f22152f82a1bb0df251efc4002466 | /covid19/www/2_load_functions/Estimate_Rt.R | be89593e4b4223400e838819e753965e1d7b531b | [
"MIT"
] | permissive | CHAD-Analytics/CHAD | 9f31315a497f476b7049ecbf244002a96c334877 | 0519e801c034b895fd1565a72f135395f0083e0f | refs/heads/master | 2023-02-01T15:29:07.516415 | 2020-12-12T22:57:46 | 2020-12-12T22:57:46 | 258,328,663 | 14 | 7 | MIT | 2020-05-12T14:17:55 | 2020-04-23T20:57:07 | R | UTF-8 | R | false | false | 649 | r | Estimate_Rt.R | Estimate_Rt <- function(IncludedCounties){
#Find counties in radius
CovidCountiesCases<-subset(CovidConfirmedCases, CountyFIPS %in% IncludedCounties$FIPS)
#Compute cumlative cases and deaths in selected counties
CumDailyCovid<-colSums(CovidCountiesCases[,5:length(CovidCountiesCases)])
#5-day ... |
15bdf7bc832b21eb257dd11cce25a919f40cf049 | 809fd0e2b1536bec26ea4e19ecefeb99f36fb32a | /workout01/code/make-shots-data-script.R | 2f319f8f17365e4e57fcbf27fac66c070c129429 | [] | no_license | Lin2879/stat133-workout-01 | 595a320ec502f214fadc277af2868daf8e38b957 | 023f8af523dd44d3e0bcd3954bb352d401e7fbc7 | refs/heads/master | 2020-04-28T20:34:10.488772 | 2019-03-14T05:35:12 | 2019-03-14T05:35:12 | 175,549,112 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,360 | r | make-shots-data-script.R | ##################################################
## title:Data Preparation
## description: add new attributes and modify some attributes to the
## csv files, then stack them to create a new data csv
## file. Also summaries all the data csv files.
## inputs: the data csv files of all GS... |
7207f49b7613afd17971c0f4d66830b34346c032 | a811448359f042a43c0ed22dc40d9917e19332a4 | /man/hi_there.Rd | b7ec0772daa5fcaba1838d19c0e23a927bf772b7 | [] | no_license | lwjohnst86/template.package | 1e9369b12078eed24a09c5d7d0ac507c52b8e02b | 3e8edb5ba457fab93692f63eefb50ee90cd63ba5 | refs/heads/master | 2021-06-30T05:02:56.469981 | 2017-09-18T22:46:06 | 2017-09-18T22:46:06 | 103,998,131 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 344 | rd | hi_there.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function.R
\name{hi_there}
\alias{hi_there}
\title{A friendly greeting to a friendly person.}
\usage{
hi_there(name)
}
\arguments{
\item{name}{A name}
}
\value{
Hi there name!
}
\description{
A friendly greeting to a friendly person.
}
\examp... |
99a0e8eda2e313c0e62f5c7e8d56b4a7e4278b6a | f68ae1944a60f207c2acb2cc647a16f364a30880 | /R/get.mutect2.data.R | e05ba36dce5ccece43301703eea25e55d479c942 | [] | no_license | rdeborja/ShlienLab.Core.SSM | e8b4541bd8b8d4da16bdfc9616d20c92b2574742 | aefe9d007dcb2c0cd901091197eebaac8c8195e2 | refs/heads/master | 2021-01-21T10:35:00.224321 | 2017-05-18T13:52:42 | 2017-05-18T13:52:42 | 91,699,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 688 | r | get.mutect2.data.R | get.mutect2.data <- function(path='.', pattern='hg19_multianno.txt$') {
files <- list.files(path=path, pattern=pattern, recursive=TRUE, full.names=TRUE)
data <- data.frame()
for(i in 1:length(files)) {
tmp.data <- try(
read.table(
file = files[i],
header = FALSE,
as.is = TRUE,
... |
01c8877be619629bf1851fc893928c0b57131fc5 | 6cab63f138aa37eaeb2366284ee4001496356fa1 | /2013/Woody2013/Scripts/Old Broken Scripts/Plot.Info.Tree_Script.R | a5ae36397b2ddd8a55f5ff30397b92b51146dc3d | [] | no_license | dackerly/PepperwoodVegPlots | a5e5c6ddbcd20a1d5a514c0edf169d3606817cdd | 4cbe62ab9c12c5dd266ffe1cf40a16155b341e6f | refs/heads/master | 2023-08-09T00:45:48.425990 | 2023-07-24T22:33:34 | 2023-07-24T22:33:34 | 36,311,558 | 8 | 9 | null | 2019-03-27T18:27:42 | 2015-05-26T17:17:19 | R | UTF-8 | R | false | false | 13,191 | r | Plot.Info.Tree_Script.R | # June 11, 2013 MFO
# Intention of script is to pull plot characters (SW lat/long, slope, aspect) out of 'PlotInfo'
# csv and combine with tree data by plot;
# Columns:
# Plot.ID, UTM.E (SW corner), UTM.N(SW corner), Slope (field collected), Aspect (field collected)
# Tree.Species, Tree.Number(per species, DBH > 1cm)... |
05e45c81fc6b2a10e2a4e926b188084a7058ded7 | 9b59d5c886ddf9ca154449cd622c78e2c39f5d77 | /Cell DET calculations.R | ae7c4f223b54aa2e6306fb6703f0172b3d33579b | [] | no_license | sealavi/Alavi-et-al.-A-quantitative-framework-for-identifying-patterns-of-route-use-in-animal-movement-data | eef65851a9fe9587e2045fcc7b58af3abd7869d9 | c35bd5b6ae8f0a6b1601fecce21a92a3d813426b | refs/heads/main | 2023-08-25T14:27:20.201720 | 2021-11-02T21:35:54 | 2021-11-02T21:35:54 | 423,683,588 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,109 | r | Cell DET calculations.R | setwd("C:/Users/avining/Downloads")
tracks <- read.csv("route_data_subset_gridded.csv")
library(dplyr)
library(spatstat)
get_cell_DET <- function(x, minl){
x = as.numeric(x)
#Depending on the dataset it may be desirable to filter out consecutive visits
#to the same flower. See function below and d... |
dc5160e30e304be6bb6ffea6280c56509725328b | e0c4ae966b0dad0b1ad003c3d896842132c2e104 | /FigureProd/MaxWindDG.R | 6aea0c24efc1f42615ed44bb99b7b7d2cc8b5a05 | [] | no_license | alexSamalot19/M.S.-Paper | 134e1454ae81e1ef9c11ea42d2306eaa933bd25d | 70f214172c25f002b07892c6dfac8483668a78aa | refs/heads/master | 2020-03-09T19:50:56.555008 | 2018-04-12T19:55:51 | 2018-04-12T19:55:51 | 128,968,022 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,761 | r | MaxWindDG.R | #Makes WRF and PP PDF with outputs from: F:\KrIC2\DIR1Sph.m or *Exp.m
WRFOutIn<-read.csv("F:\\KrIC2\\maps\\MaxWRFOut.csv", header=FALSE)
summary(WRFOutIn)
ObsOutIn<-read.csv("F:\\KrIC2\\maps\\MaxObsOut.csv", header=FALSE)
summary(ObsOutIn)
R1ExpOutIn<-read.csv("F:\\KrIC2\\maps\\MaxR1ExpOut.csv", header=FALSE)
summary(... |
51fedaf4421d63f918c724a925ede3a3c06467ef | bb7010d536d6ba5fe95d706622900ec85206ab48 | /R/getMeta.R | 3305baad13fb7fda8fc10abd72f913d6097de19f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andreagrioni/SomaDataIO | 0c214efaa79e2977e57e052801f40ed4e66f47db | 100cee4da1e70979b8f577d0bf7c2684f5e9434b | refs/heads/master | 2023-01-05T10:11:40.630765 | 2020-10-23T22:26:15 | 2020-10-23T22:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,321 | r | getMeta.R | #' Get Meta Data Field Names
#'
#' Return a character vector of field names of the meta data
#' for an ADAT, or `soma.data` object.
#'
#' @inheritParams getFeatures
#' @return A character vector of ADAT meta data names
#' or an integer number corresponding to the length of the
#' feature names (if `n = TRUE`).
#' @auth... |
66319f074bf893e143b7788ec60a9da10423afb8 | 9c88b1d54cce40a6ad64c6b1518f28567c8bba9b | /run_analysis.R | 0a074b815e11f776adaecca90072353c99f89162 | [] | no_license | PaoloLuciano/GettingAndCleaningData_CourseProject | afb45ec841cf5b58202319350815c582adad57d4 | b4de137ad7e0b3fcf1e0dd8802e9e24982690f14 | refs/heads/master | 2016-09-06T01:13:08.097157 | 2015-04-26T02:33:03 | 2015-04-26T02:33:03 | 34,594,829 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,662 | r | run_analysis.R | #
# Data Science Specialization - Getting and Cleaning Data
#
# Courser Project
#
# March 2015
#
# In this project we collect and clean data from a study performed in UCI for wearable computing.
# The data was obtained from: http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
#
#------... |
303201778074bcff6960f9d74aa5f356175427f3 | 163ceeb94d49b70d43cd707cbc5de03164a1ce50 | /tests/testthat/test-rollmean.R | 2f61393359d7cc675a5e9cc4eeafd699893e50a6 | [] | no_license | privefl/bigutilsr | e8cce921638d1327a1038f6ac9b237eae9ca87de | bb760d109193d2163e869d9d231a8fdcba2ac96e | refs/heads/master | 2022-12-27T01:39:56.076386 | 2022-12-20T14:36:53 | 2022-12-20T14:36:53 | 199,856,656 | 11 | 3 | null | null | null | null | UTF-8 | R | false | false | 521 | r | test-rollmean.R | context("test-rollmean")
test_that("rollmean() works", {
x <- rnorm(100)
expect_equal(rollmean(x, 0), x)
x.roll <- sapply(c(0, 1, 3, 5, 10, 20), function(size) rollmean(x, size))
expect_false(is.unsorted(rev(apply(x.roll, 2, var))))
expect_error(rollmean(x, 50), "Parameter 'size' is too large.")
expect_... |
70bf6db380dd89fb1f545c9e0999b052d3a12178 | fda540791ba58168598b8320571356a565f9faf1 | /libs/2_enoe.R | 49f04dbecfa8d623995da7c3f36e040a12777795 | [] | no_license | monzalo14/conciliacion | 5c3e1272090d3575552ab9b58b5b514ab9cfe58f | 5e4670ec32026a85f5bedd0f01decee1cec01394 | refs/heads/master | 2021-01-12T08:58:27.217523 | 2017-05-04T07:16:47 | 2017-05-04T07:16:47 | 76,738,998 | 1 | 3 | null | 2017-02-15T18:40:55 | 2016-12-17T18:05:28 | R | UTF-8 | R | false | false | 8,603 | r | 2_enoe.R | library(rformat)
df <- readRDS("../data/enoe_ampliado_raw.rds")
df <- df %>%
dplyr::mutate(
p3a = as.character(p3a),
tiene_jefe = ifelse(p3a == "1", "si", ifelse(p3a == "2", "no", NA)),
p3h = as.character(p3h),
recibe_pago = ifelse(p3h == "1", "si", ifelse(p3h == "9", "ns", "no")),
p3k1 = as.ch... |
7e52aaed3203813cdd8e10936b524ff23312d36d | d9ee4c89fa85ee69ee6d3a6f34035924fc7472e4 | /h2o-r/tests/testdir_demos/runit_demo_tk_cm_roc.R | 6654ef46f45c60158ab3c4760eb094de8161f31c | [
"Apache-2.0"
] | permissive | mrgloom/h2o-3 | 838c298d257d893202e5cba8b55c84d6f5da1c57 | 3f00bf9e8e6aeb3f249301f20694076db15b7d5e | refs/heads/master | 2021-01-15T21:34:32.995372 | 2015-08-20T02:06:09 | 2015-08-20T05:52:14 | 41,108,114 | 1 | 0 | null | 2015-08-20T16:56:36 | 2015-08-20T16:56:34 | null | UTF-8 | R | false | false | 3,501 | r | runit_demo_tk_cm_roc.R | #----------------------------------------------------------------------
# Tom's demonstration example.
#
# Purpose: Split Airlines dataset into train and validation sets.
# Build model and predict on a test Set.
# Print Confusion matrix and performance measures for test set
#-----------------------... |
5c4437b22728ad504dafdc25f23734aa7cfdb7f4 | 534ef77188d98c1db98c5ead80042cf1e7d89b25 | /plot1.R | 95c87cb397ad11e36bc592b5087856a9c2dcc97c | [] | no_license | bjerva/ExData_Plotting1 | 83818969da605a5347df5173b25cf0ab8f60ee97 | e87a873921aebb1f4840b21e9a89447747062f21 | refs/heads/master | 2021-01-18T09:49:29.769284 | 2014-08-06T14:57:43 | 2014-08-06T14:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 572 | r | plot1.R | # Read data
data <- read.table("household_power_consumption.txt", header=T, sep=';',
na.strings="?",
colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"))
data <- data[(data$Date == "1/2/2007") | (data$Date == "2/2/2007"),]
# ... |
de9dfc439a8cda9dd8027c34afd5dec452236828 | 0d2190a6efddb7167dee3569820724bfeed0e89c | /R Package Creation/PBTools/man/designLattice.Rd | 155cf1aa2404efa66c2556e7db045c9bd27d1e10 | [] | no_license | djnpisano/RScriptLibrary | 6e186f33458396aba9f4151bfee0a4517d233ae6 | 09ae2ac1824dfeeca8cdea62130f3c6d30cb492a | refs/heads/master | 2020-12-27T10:02:05.719000 | 2015-05-19T08:34:19 | 2015-05-19T08:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 451 | rd | designLattice.Rd | \name{designLattice}
\alias{designLattice}
\alias{designLattice.default}
\title{Randomization for Lattice Design}
\description{description1}
\usage{
designLattice(generate, r = 2, trial = 1, numFieldRow = 1, serpentine = FALSE, file = NULL)
}
\arguments{
\item{generate}{a list}
\item{r}{numeric}
\item{trial}{nume... |
e40c8e75ed55aa3ab3f4f2de6b12f827f0e4ef04 | 2af70233e10a64dd3aaf4461c6c7c5da0f55df3d | /Pre-processing/netcdf_mask.R | a3f7efd20b2d9fe59908a77612fd390b723748f8 | [
"Apache-2.0"
] | permissive | iffylaw/EQTEC-old | ac4100852d281c423b1dac1d671f2290f818ad69 | 3d2dcdf840e7f16843bb4479bc3e1359f2fa653b | refs/heads/master | 2021-01-15T08:35:40.768905 | 2015-06-02T09:54:07 | 2015-06-02T09:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,573 | r | netcdf_mask.R | #!/usr/bin/env Rscript
# Date: 27/04/2015
# Author: lihui luo (luolh@lzb.ac.cn)
# This script mask netcdf file with time dimension through shape file
library(raster)
library(ncdf)
library(rgdal)
rm(list = ls()) # clear objects
graphics.off() # close graphics windows
# Set parameters
Args <- commandArgs... |
976d374f9c1a1b3977a62f4ea99fe3b1429b4952 | 813b88e59f26eb338b70af3c0e8bd76c00ced4c9 | /r/load_data.R | 9ca45db05e62ca0835622774a60e241833440b93 | [] | no_license | dgreiss/covid_dashboard | e54f1f8efcb05b284057c9f35ec59fbe3c406501 | 78cc4c1769337b64e1f14d5bc9b00c68fc26e402 | refs/heads/main | 2022-12-25T19:10:18.316395 | 2020-10-08T14:49:29 | 2020-10-08T14:49:29 | 302,368,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,661 | r | load_data.R | data <- read_csv("https://data.ontario.ca/dataset/f4f86e54-872d-43f8-8a86-3892fd3cb5e6/resource/ed270bb8-340b-41f9-a7c6-e8ef587e6d11/download/covidtesting.csv")
data <-
data %>%
rename(
reported_date = `Reported Date`,
total_cases = `Total Cases`,
deaths = Deaths,
number_of_patients_hospitalized_wi... |
2c0ff5eaa2387e9267b6de1ec217116703542ec9 | f4bee1dd67ea46b82a73df0b70a4f8a8e5def702 | /Project/plot4.R | 6eb5cf136ff64a65d465b00639ef40cc2b6f61d6 | [] | no_license | jacintod/ExData_Plotting1 | 17a7969006b751b0cc938a353a4c8fb48be9ab4d | a0495d8fdd37d4b371456f32f1b71d84a58a8f08 | refs/heads/master | 2021-01-22T11:20:09.013688 | 2017-05-29T10:33:47 | 2017-05-29T10:33:47 | 92,680,784 | 0 | 0 | null | 2017-05-28T18:56:26 | 2017-05-28T18:56:26 | null | UTF-8 | R | false | false | 1,998 | r | plot4.R | # Print the current working directory
print(getwd())
# Declare our working variables
file.name <- "./Data/household_power_consumption.txt"
url <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
zip.file <- "./Data/data.zip"
# Check if the data is downloaded and download wh... |
57c1fee46b8511f507127ed1ff4f65b19689bd8f | 959154050a0fb3fcf44b12a3cddbc529ef1d955f | /getting_tweets/translate.R | c6c70a2314f7f5ae605197b76cb54db0cd8a0984 | [] | no_license | watsonwanda/col_res_proj | 320409a925d4ad171e06f81b04f347e30d0e2ebc | 5d4f35a5788639aad1ddf9eaf11c292e735204e1 | refs/heads/master | 2022-04-12T05:32:50.971071 | 2016-05-02T18:43:26 | 2016-05-02T18:43:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,540 | r | translate.R | library(textcat)
library(dplyr)
library(translateR)
source("getting_tweets/define_keys.R")
load("data/lang_index.rda")
index$lang <- gsub("(^greek(.*))","greek",index$lang)
foreign <- index %>%
filter(lang %in% c("french",
"german",
"spanish",
"gree... |
f01bfa73d07ed062cc51c9cfe9e4e0bf56972df7 | 26151b679705ae098e79fab6c98ca68c093a4f09 | /Fundamentos_de_DS/Practica Semana 1/Algebra_2-Carteras_Matricial.R | f9cc35293d3eef149b8139569ad7d962ba962497 | [] | no_license | octadelsueldo/Master_DS_CUNEF | 2808e5f5fbf564c7c3fdf209d699056ecd75a8af | 354f9d4e43cbcf9d47edd85cfcb5010b417a8b3a | refs/heads/main | 2023-08-21T22:54:16.712139 | 2021-10-06T22:33:32 | 2021-10-06T22:33:32 | 414,352,378 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 535 | r | Algebra_2-Carteras_Matricial.R | #-------------------------------------------------------
# MDS - Fundamentos de Algebra
# Calculo matricial con carteras
#-------------------------------------------------------
# Rendimientos medios y volatilidades
s1 <- 0.12
s2 <- 0.18
r12 <- 0.45
m1 <- 0.05
m2 <-0.08
# matriz de covarianzas
V <- matrix(c(s1^2, r1... |
0dc383aa52f0a73f3be6826170a5a81f0aa11992 | 70e48467da9729ab758287b8749e8743d7855969 | /run_analysis.R | 9291f56c7f2d75cea797f350324b66f24d175ac5 | [] | no_license | scullduggery/GettingCleaningDataWk4Project | 5ba14581361222e0916fdb57a2dbdb99749055de | 991441d34bdf19e27470e5a351981e7f976ec041 | refs/heads/master | 2020-03-22T04:12:34.555923 | 2018-07-02T18:51:29 | 2018-07-02T18:51:29 | 139,481,226 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,156 | r | run_analysis.R | ###############################################################
## Script to download file on data collected on the accelerometers from the Samsung Galaxy S smartphones.
## Clean and tidy the data and then summarise the data in a tidy data set output.
###############################################################
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.