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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
337bce70f3c0b8de1d283c2e82c569606a555f08 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/assertive.data.uk/examples/is_uk_telephone_number.Rd.R | 47a24cca1ba3a5710edb52286f0858efe6c67325 | [] | 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 | 398 | r | is_uk_telephone_number.Rd.R | library(assertive.data.uk)
### Name: assert_all_are_uk_telephone_numbers
### Title: Is the string a valid UK telephone number?
### Aliases: assert_all_are_uk_telephone_numbers
### assert_any_are_uk_telephone_numbers is_uk_telephone_number
### ** Examples
phone_nos <- c("+44 207 219 3475", "08457 90 90 90")
is_uk_... |
7934f258af6826392498f2b9ffc7685059175677 | 1841d189c34273204cf7c01561194bd88c855232 | /code/07catPlot.R | 67402fc0bee1cd82c247f8eed16fdc3ccf6e3d91 | [
"CC0-1.0"
] | permissive | eddieimada/PTEN_analysis | 693f249351a139184444140fb1a6bb939a8c891b | 104865391035f1a25aabe3a1f4e81bb3c0caa963 | refs/heads/main | 2023-04-09T15:47:05.145975 | 2021-03-23T17:17:07 | 2021-03-23T17:17:07 | 350,792,200 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,025 | r | 07catPlot.R | ### Clean
rm(list=ls())
library(matchBox)
load("~/Dropbox (MechPred)/Projects/PtenERG/Manuscript/objs/DGE_prad.rda")
xde <- read.csv("~/Dropbox (MechPred)/Projects/PtenERG/XDE/text/PTENposVSneg.csv", stringsAsFactors = F)
xde <- xde[,c(1,6)]
names(xde) <- c("symbol", "value")
xde$value <- xde$value * -1
tcga <- cbind.... |
6ee38ba6e209f66291569250874d3bca5d198920 | 0f64ac5e3d3cf43124dcb4917a4154829e7bb535 | /scripts/run_me.R | adf492b583c9466b81cb5d021c220c408c767354 | [] | no_license | wactbprot/r4vl | 8e1d6b920dfd91d22a01c8e270d8810f02cea27c | a34b1fa9951926796186189202750c71e7883f8d | refs/heads/master | 2016-09-11T02:22:39.828280 | 2014-10-07T14:37:55 | 2014-10-07T14:37:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17 | r | run_me.R |
Result <- say()
|
97cda85c88ed8cee4beea43573a04369606dd770 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610382999-test.R | 695a17bebd6dd998bd1447c743df70819ed11dfd | [] | 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 | 173 | r | 1610382999-test.R | testlist <- list(rates = NaN, thresholds = c(-6.03473647567306e+304, NaN, NaN, NaN, NaN, NaN, 0), x = numeric(0))
result <- do.call(grattan::IncomeTax,testlist)
str(result) |
380806b90e1a6f1af1e6e07452cbc9799645f962 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/tidylog/examples/summarize.Rd.R | 3f293add6343f9f206aa7171c984633cef60a09e | [] | 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 | 390 | r | summarize.Rd.R | library(tidylog)
### Name: summarize
### Title: Wrapper around dplyr::summarize and related functions that
### prints information about the operation
### Aliases: summarize summarize_all summarize_at summarize_if summarise
### summarise_all summarise_at summarise_if tally count
### ** Examples
summarize_all(mtc... |
01394cff9f0235daa0a31ea2c9c3b846599e081e | 3e6b3d4da5b526e8cd59b9fac6d097c6b0e59e2b | /analysis/compare_hubbard_harvard.R | 7ec9ca690651a45c0495025846caacbee1972cf6 | [] | no_license | sdtaylor/phenology_dataset_study | c1c05543c407175d56731bf7f124655a45925fdb | 463b75941b6c9bc360b59b953935ec056523df3d | refs/heads/master | 2021-01-09T06:09:21.348537 | 2019-11-06T18:45:35 | 2019-11-06T18:45:35 | 80,926,989 | 1 | 1 | null | 2018-09-19T20:48:30 | 2017-02-04T15:09:35 | TeX | UTF-8 | R | false | false | 3,724 | r | compare_hubbard_harvard.R | library(tidyverse)
library(cowplot)
config = yaml::yaml.load_file('config.yaml')
###################################################
# This produced the supplementary figures S8 and S9, comparing parameters
# of hubbard, harvard, and NPN
#################################################
all_parameters = read_csv(con... |
238aaef2b7e2a50cc6fb3e955ae950c3c1a95827 | 578d5e83262d9a11b271983a93604e4a3084d049 | /mobula-models.R | 3b45d5c5158d285a35f5184ef060571c34460484 | [] | no_license | patricia-alcantara-p/mobula_japanica-niche | 0f6b0159c83d7d8d9931608edf56cbbcd4760950 | 1f5350343c8fb84e5bc92b78b2bb6d4632ce7670 | refs/heads/master | 2021-01-13T12:43:57.931900 | 2016-11-03T03:19:40 | 2016-11-03T03:19:40 | 72,560,205 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,215 | r | mobula-models.R | # mobula niche model
# Ricardo Oliveros-Ramos (ricardo.oliveros@gmail.com)
# version 28.01.2016
require(mgcv)
require(kali)
source("auxiliar_functions.R")
# Input parameters --------------------------------------------------------
inputFile = "input/base_mobula_pa-mobula_1985_2015.csv"
outputPath = "output"
batchN... |
fbedee36d8441096ff32225ffb87a9c50ce63356 | ed157f4d1f9f309b50c228bbeb58900ca276116d | /man/rar.Rd | 76d8ef229c62877980cb2c368636d249ab7c3d31 | [] | no_license | ugenschel/rotations | fad38b96a98de9d811b51912f399d2d2faaa91e0 | d52a5c1063962f19e48389287baf21f5c97ba3b6 | refs/heads/master | 2021-01-24T01:30:11.660323 | 2012-08-17T16:35:32 | 2012-08-17T16:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 707 | rd | rar.Rd | \name{rar}
\alias{rar}
\title{Sample of size n from target density f}
\usage{
rar(n, f, g, M, ...)
}
\arguments{
\item{n}{number of sample wanted}
\item{f}{target density}
\item{g}{sampling distribution}
\item{M}{maximum number in uniform proposal density}
\item{...}{additional arguments sent to arsampl... |
48b9ff17ca46e2e5c0b27396b157117ac586fcc1 | 5a96afe67c78a91a43c779a12c2a9eafcdb4d4cb | /R/vcov.R | 6631c20a25573fc1e2fe10c419bef9f2215f01b3 | [] | no_license | cran/econet | 1f3e62e9c884e239f0073ae489ea1f6522b9948f | 5981aa19ba085124c65762863d4fa4a1e6056c99 | refs/heads/master | 2022-04-30T04:41:34.880731 | 2022-04-27T23:00:02 | 2022-04-27T23:00:02 | 145,896,520 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 974 | r | vcov.R | #' vcov
#' @param print string. If \code{"main.equation"} returns estimates for the main equation. \cr
#' If \code{"first.step"} returns estimates for the first step.
#' If \code{"centrality"} returns quantile distribution for the estimated centrality.
#' @param centrality string. It is used when \code{object} is p... |
b01deea73f018231ff07f07cd37e78e2bcb82aa9 | 876809960681af2c912be7627b6a82795a8ea5e4 | /R/LagSeq_function.R | ef09f12ff24ab9bd45243af01d25643e93c7996f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | chatchavan/LagSeq | b1c7d4654b546591bb544f1f6646626807e3bdaa | e796b7b3a800eca66fcd93d034694350f40ff909 | refs/heads/master | 2021-01-02T22:34:14.576206 | 2017-09-12T03:35:55 | 2017-09-12T03:35:55 | 99,342,365 | 0 | 0 | null | 2017-08-04T12:50:18 | 2017-08-04T12:50:18 | null | UTF-8 | R | false | false | 8,175 | r | LagSeq_function.R | ## TODO
## - not converting codes to numbers
## - handle the case that not all codes appearing in a sequence
#' A utility function for merging same codes appearing together
#'
#' This function reads a vector of data and then merges same codes that appear together (i.e., without being interrupted by other codes)
#' @p... |
6f3e7c351a12a956e615db96d1d30360930b5607 | 23940af526fa235eceeea29f0fa567a4721fb39d | /man/FastSparseMatSymmatl.Rd | 53d0f9346ce5d0c2d7951ed7c7b607d468e99bc3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | bioturing/signac | 843b5446c6633f1d1ba84478ee8a665ad2418193 | 521a71e28b0dfeb9c83a45acd394f8f8a0b55f14 | refs/heads/master | 2022-06-07T18:43:24.685272 | 2022-05-18T11:37:22 | 2022-05-18T11:37:22 | 176,672,113 | 26 | 11 | NOASSERTION | 2022-05-18T11:37:22 | 2019-03-20T06:47:55 | C++ | UTF-8 | R | false | true | 294 | rd | FastSparseMatSymmatl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{FastSparseMatSymmatl}
\alias{FastSparseMatSymmatl}
\title{FastSparseMatSymmatl}
\usage{
FastSparseMatSymmatl(mat)
}
\arguments{
\item{mat}{A sparse matrix}
}
\description{
Symmatl sparse matrix
}
|
15fe4c0ea9c050f096ff98e7a2566e13c552a6e1 | fcf08bed1de5fcf61d507dc984676c5bcddb46dc | /analysis_1-2.R | de2c8750c0004b72a5ace2a4bd3be41177e89089 | [] | no_license | jrosen48/generality | 033200c4b8857401ba19a8d91d11bbd962804704 | 958934f6924aed210a8b3425e2caf2d4e32fb121 | refs/heads/master | 2021-03-27T15:07:48.960625 | 2017-01-03T13:30:56 | 2017-01-03T13:30:56 | 77,837,009 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,526 | r | analysis_1-2.R | ######################################################
# 0. loading data, setting up ########################
######################################################
install.packages('tidyverse')
install.packages('abind') # also need to install abind
install.packages('MASS') # same
install.packages('readr') # last one... |
085228e64dc89a27d9fd870a04108d19c74a3a23 | a3541fa9afdcbc4bd1360afda4b6f8d170244889 | /R/bg22DemographicSubgroups2016to2020.R | 5a82f174688b1eb410cef4e7f19b008986fe1bea | [] | no_license | ejanalysis/ejscreen | 4349236260c94dd9a9d0cfdcae237adebcec2d8a | 6af10b7d3b47c683cb512fd4792c2eef0e1d695a | refs/heads/master | 2023-05-27T11:59:13.144072 | 2023-05-25T23:40:52 | 2023-05-25T23:40:52 | 40,103,218 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,171 | r | bg22DemographicSubgroups2016to2020.R | #' @name bg22DemographicSubgroups2016to2020
#' @docType data
#' @title Demographic subgroups of race/ethnicity by block group
#'
#' @description bg22DemographicSubgroups provides subgroups that are
#' the ones making up EJScreen's % people of color (aka % minority)
#' such as Hispanic or Latino, Non-Hispanic Black... |
b40ceeb4f57b3f39d24ad1dc736c0dc465e97edf | 2fbe266ec037f5af395bcf304f39d4430d61f59e | /R/U_it.R | 03296137e3179fdacbe5ff99ada792c09a954061 | [] | no_license | cran/XRSCC | 03601fc10e525e83b75e86b5d0aa3ffa14612db3 | 1168bbac5dfd5fe976c1d97e6d90322bb0572b9e | refs/heads/master | 2020-09-05T07:00:36.565156 | 2016-11-12T01:05:48 | 2016-11-12T01:05:48 | 73,521,140 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,854 | r | U_it.R | U_it<-function(prev.results){
if (missing(prev.results)){
stop("No elementos para iteracion, No elements for iteration")
} else {
if(prev.results$bin[1]==0){
stop("El proceso ya esta bajo control, The process is already under control")
} else {
u.0 <- prev.results$data.0
... |
d2ba56f615bc4f3d381d5b50b4dd49bc18162ce8 | 1d4130c143c95aed44cfdde3226efb7c69e22f61 | /PracticalMachineLearning/quiz/ex4.R | ac17ccd64d2104a86380ddc81d945da64f4026cc | [] | no_license | kapliy/mooc | f665576057416b099f1802f6853c7bf799393217 | 71b4ffbce2af95ba55aedc179cf2092ee53e9ada | refs/heads/master | 2021-01-14T14:37:50.699443 | 2015-08-05T18:38:22 | 2015-08-05T18:38:22 | 37,920,178 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 919 | r | ex4.R | set.seed(62433)
mod1 <- train(diagnosis~., data=training, method='rf')
mod2 <- train(diagnosis~., data=training, method='gbm')
mod3 <- train(diagnosis~., data=training, method='lda')
# train combiner
pred1 <- predict(mod1,newdata=training);
pred2 <- predict(mod2,newdata=training)
pred3 <- predict(mod3,newdata=training... |
77faae84717fb1b44a7f2a73daf3f91190796554 | 77d8580393591c609386089c3efedbe2375d175a | /Regression and Multivariate Analysis/Ames_assignment1.R | 3989a5d7ace19ce8141ee0e0ccaf25e76669306d | [] | no_license | jmwanat/data_analytics | b9ef48b630aa7ad1e181df911b28a95695b3ce84 | 829de8866551de90d441d70bf284d9c575343edc | refs/heads/master | 2022-12-07T01:37:34.046650 | 2020-09-09T02:41:55 | 2020-09-09T02:41:55 | 283,517,962 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,660 | r | Ames_assignment1.R | # Jennifer Wanat
# Fall 2017
# read_ames.R
install.packages("Hmisc")
require(Hmisc)
require(gridExtra)
require(moments)
path.name <- "~/Desktop/R/"
file.name <- paste(path.name, "ames_housing_data.csv", sep = "")
# Read in the csv file into an R data frame;
ames.df <- read.csv(file.name, header = TRUE, stringsAsFact... |
ab154d089ca724467e489524f451e53715ad47c8 | cb93cf0799e3eedca6f9e720e09bb60e0f77ff10 | /man/readDataFrame.TabularTextFileSet.Rd | 1f945560600be613f77b876d1d0f87be8a0a5ecb | [] | no_license | HenrikBengtsson/R.filesets | 254c37b4546e8280b9972d06840b918e12e0b4e9 | 17181ae1c84dbf7bad1214d37e6f133ed2deeba4 | refs/heads/master | 2023-01-08T23:58:09.708417 | 2022-07-21T09:52:18 | 2022-07-21T09:52:18 | 20,844,863 | 3 | 1 | null | 2018-04-03T22:12:45 | 2014-06-15T00:25:31 | R | UTF-8 | R | false | false | 3,083 | rd | readDataFrame.TabularTextFileSet.Rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% TabularTextFileSet.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{readDataFrame.T... |
a28be046bcfdf8fd349dc899ae20f0a3ef5d82af | 78138e49cc362483e7a51c61c5276e378049d967 | /plot1.R | 69bd5d3a5a2490c189f58325b367f8e3929f6901 | [] | no_license | jdchisholm/ExData_Plotting1 | a29cce175e50d30148c999a933ab5d4a9c437c92 | 24e341d7cf6e202de473b62e38a7cf1e2b0ad440 | refs/heads/master | 2020-05-23T10:10:19.980109 | 2015-07-12T23:14:13 | 2015-07-12T23:14:13 | 38,974,709 | 0 | 0 | null | 2015-07-12T19:23:35 | 2015-07-12T19:23:34 | null | UTF-8 | R | false | false | 762 | r | plot1.R | plot1 <- function () {
#Data is read in but skips to the desired date, then reads in the rows of data wanted for the assignment
data <- read.table("household_power_consumption.txt", sep=";", skip = grep("1/2/2007", readLines("household_power_consumption.txt")), nrows = 2880)
#Changed the data ... |
2162df739978be395bbbbca699683eb368f00c14 | a441ac887d892f3999f1051df80989e3bea04941 | /all_primate_preProcessing_post_brainVarFiltering.R | 3cacd43a4c1a232da3022950bbc358249c015dd6 | [] | no_license | FernaldLab/_code | bdad38d072fe3a9a09ba8e5c98591c0caaf73173 | 46a08137095c4c0d8fbe046ea1d740b61714ad47 | refs/heads/master | 2016-09-06T14:14:35.280437 | 2015-07-07T19:43:16 | 2015-07-07T19:43:16 | 38,710,635 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,572 | r | all_primate_preProcessing_post_brainVarFiltering.R | rm(list=ls()); options(stringsAsFactors=F);
library(WGCNA); allowWGCNAThreads();
setwd('/Volumes/fishstudies/_mammalian_RNAseq/');
source('/Volumes/fishstudies/_code/preProcATH-for_web_noVSN.R');
source('/Volumes/fishstudies/_code/blockwiseModulesEnriched-Feb2013.R');
#load('all_primate_brainVar_filtering_DATA.all.hi... |
96be9c52ab95834ccdb7854fa9f3dd1b3edaf5ec | 387cef68bd1759aa02bffe9c097d45787e862106 | /tests/testthat/test-obtain.R | ba9caa658180f9e7e0e0058453340236505f60c1 | [] | no_license | emmekeaarts/mHMMbayes | 85c1f2cbe7c34e94f6b9c463f673007db5d575a2 | 0222eb41d7e143eae02a33199c93364fabd07b13 | refs/heads/master | 2023-08-31T01:12:49.606904 | 2023-08-14T12:01:50 | 2023-08-14T12:01:50 | 167,544,703 | 11 | 10 | null | 2023-07-25T22:37:58 | 2019-01-25T12:33:24 | R | UTF-8 | R | false | false | 3,313 | r | test-obtain.R | context("obtain gamma and emiss")
## general properties tested model
n_t <- 100
n <- 10
m <- 3
J = 11
burn_in = 5
n_dep <- 2
q_emiss <- c(4,2)
gamma <- matrix(c(0.8, 0.1, 0.1,
0.2, 0.6, 0.2,
0.1, 0.2, 0.7), ncol = m, byrow = TRUE)
emiss_distr <- list(matrix(c(0.45, 0.45, 0.05, 0.05... |
de7b51b24456e4804e4585edd246899efaa57965 | 382e48282d3cde1e0cabf4aa8e67be4f34fd1bba | /Project_code_course8.R | 1081a02404c81765ce209b32377d182ed07a8e0e | [] | no_license | kalyansaikia/Practical_Machine_Learning_Project | e74bf6c1ab6bd36efbe5ef932d16fb8410aa1918 | c976c4d00278c2ca0460ec305729aee74ba7e61e | refs/heads/master | 2021-01-17T17:39:19.573988 | 2016-08-14T06:52:51 | 2016-08-14T06:52:51 | 65,653,490 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,279 | r | Project_code_course8.R | library(caret)
library(rpart)
library(rpart.plot)
library(RColorBrewer)
library(rattle)
library(randomForest)
library(corrplot)
set.seed(30001)
# reading the original data
train_Raw <- read.csv('./pml-training.csv', header=T, na.strings = c("", "NA"))
validationRaw <- read.csv('./pml-testing.csv', header=T, n... |
587b5b5c7a688e2e7a7d7931677e892267720ebe | 582ced3e41fa163afa55dc913c48ed6ed87472ac | /R/transitiveClosure.cover.R | eaec1425f280966cf881e80707c9d1cb99662bf4 | [] | no_license | cran/parsec | 70c8651b851fdf0ffbda532ee8c8b6d16571f929 | a92f381f2df1aa8c058c26eb6da052910bc64756 | refs/heads/master | 2023-09-06T06:50:44.609182 | 2023-08-19T13:40:02 | 2023-08-19T14:30:52 | 37,854,653 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 131 | r | transitiveClosure.cover.R | transitiveClosure.cover <-
function(m) {
res <- transitiveClosure.default(m)
class(res) <- "cover"
return(res)
}
|
589b70aea928c4a506f1a8cbbc2efbbabfc4b0a8 | d5d52840065492b2b73172be6bd0738e6a708dff | /package/fwPackage_1.0_source/R/as.data.frame.R | e943c47d9ee3baaa85e983d3c616f4698db92f5b | [] | no_license | grayclhn/oos-overfit | 9f3e1aca769d4bbba45b84044e609b37a843b9a0 | 779f466158fa4254a8845b47c5b003dedab69ccc | refs/heads/master | 2021-01-17T08:20:04.806990 | 2017-05-05T16:18:09 | 2017-05-05T21:27:21 | 73,234,970 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 731 | r | as.data.frame.R | as.data.frame.oos.pair <- function(x,...) {
data.frame(n = nobs(x),
ntest = ntest(x),
kNull = nreg(model.null(x)),
kAlt = nreg(model.alt(x)),
norm = bNorm(x),
elossFuture = expected.loss.future(x),
elossFutureNull = expected.loss.futu... |
57afeabd527f22f4a2a6faa15c42e890a94b8926 | d4065309f6031e6af1fe91147ca1dc18a559205f | /scripts/config.R | 5290f1ad89649b02e4e6199f42f8932999574d06 | [] | no_license | barbarathorslund/warfarin | 3741b85bd580599cde2ba283e23774a7a018c19e | 0ec7779313ad126605a047e44c7485b3a348568e | refs/heads/main | 2023-06-25T22:35:36.441326 | 2021-07-14T18:50:44 | 2021-07-14T18:50:44 | 345,354,658 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,210 | r | config.R | add_config <- function(name, value) {
#' Defines a config variable by environmental variables or default value
#'
#' Provides the name of the config variable
#' @param name The name of the variable
#' @param value The value for the config variable
assign(name, Sys.getenv(name, unset = value), envir = .Globa... |
793c3a18b257690ab7d4e8b770a3442a4c7bcb48 | 080dcd4f00551bb3c32c288b8bd3f58724581af0 | /final1b.R | 786b057e019ec1f1f1023031ca1b10bbb9281fd8 | [] | no_license | sjaidka2/CHEME-5440-Final-Exam | ad7bc6292232c72e23a50fafcfe15689adace165 | 5ecef5775935f89ab8b0e263a906aa0401561a61 | refs/heads/master | 2022-08-24T18:17:30.279474 | 2020-05-23T02:44:11 | 2020-05-23T02:44:11 | 266,147,980 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,101 | r | final1b.R | #define D1 and D2 as vectors with range 0-1
D1<-c(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0)
D2<-c(0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0)
#want g(f(D2)) and g(f(D1))
newD1<-c(0,0,0,0,0,0,0,0,0,0,0)
newD2<-c(0,0,0,0,0,0,0,0,0,0,0)
for (i in 1:length(D1)) {
newD1[i]<-1/((1+10*((D2[i]^2)/(0.1+(D2[i]^2... |
27f494ea540067c2b73f641f283e4d7db4007471 | 9423c2ae3708e7e7ac78f72b4344b2dcd16119e2 | /tbl_add_varn.R | d88c29669cf4019e32c3ef11ba13edba90fd1fd0 | [
"MIT"
] | permissive | TaiSakuma/mianRs | 57d5d3e41438a35d560e7c1f0e954ab453710ac1 | 9b133cad30f5a0cadec510e96b552b0be7ba48f8 | refs/heads/master | 2021-01-18T23:18:32.366644 | 2018-05-19T08:09:16 | 2018-05-19T08:09:16 | 28,632,406 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,245 | r | tbl_add_varn.R | #!/usr/bin/env Rscript
# Tai Sakuma <sakuma@fnal.gov>
library('plyr', warn.conflicts = FALSE, quietly = TRUE)
library('reshape', warn.conflicts = FALSE, quietly = TRUE)
##____________________________________________________________________________||
main <- function(inputFiles)
{
ret <- data.frame()
for(fil... |
9327d85b6b13b9628ace4812d1c8bc7ac1a3061c | 520739f8e36b54dff068cdce72106fd44660ab78 | /scripts/data processing/read_raw_data.R | e21557134c822e19282af60042a6898e97719add | [] | no_license | brunamdalmoro/sm-popularity-video-features | 16350ebf46bc225a9ec8de74ab4abc6770394fe5 | 78dabeeea80afb844f4e09f89f1fa64dc35785c3 | refs/heads/master | 2020-08-02T00:15:47.465192 | 2019-12-02T01:36:30 | 2019-12-02T01:36:30 | 211,172,561 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,231 | r | read_raw_data.R | # Read .csv data and save .rds data
library(tidyverse)
facebook_dataset <- read_csv("data/raw/facebook_dataset_2015.csv") %>%
as_tibble() %>%
# ajusting type of feature
mutate(
dominant_color.value = as.factor(dominant_color.value)
) %>%
# rename features
rename(
dominant_color.histogram_0 = `domi... |
48deb49955e1bc5423561799a092284a882895c8 | 44409bb2d580a0435fa0a6d26fdb772390392d3f | /inst/doc/rplexos.R | 07bb532d92e1bc91a2ab2d0803fb44296f5eab25 | [] | no_license | cran/rplexos | 28bc53eb983da4e52ca9c470c0f8d42542161169 | ad31b70d2e812222c1473d101fb562d9b59e9379 | refs/heads/master | 2020-12-29T02:19:09.608129 | 2017-01-13T19:30:53 | 2017-01-13T19:30:53 | 22,672,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,086 | r | rplexos.R | ## ---- echo = FALSE, message = FALSE-------------------------------------------------------------------------------------------------------------------------------------------------------------------
knitr::opts_chunk$set(collapse = T, comment = "#>", fig.height = 3, fig.width = 7)
options(width = 200)
library(rple... |
a36b43d26dde850ff6f3c42ba5da78be0ec8c509 | ab1589c3df70adf5448b9d758fb5b4dc9c0eb113 | /code/R/basic-model/factorShotOn.R | f9759ac23153e076ba99308336128f039f196e72 | [] | no_license | Dirken/forecasting-football-results | d735c4d2408d953122d28b2c6f59c41d39025813 | 0ff5ca9828604bee73343f0b4f5343eee989535a | refs/heads/master | 2023-02-27T20:00:01.780943 | 2021-02-04T01:33:58 | 2021-02-04T01:33:58 | 290,083,232 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,260 | r | factorShotOn.R | #######################
#ShotOn
#######################
shoton <- incidents %>% filter(type == 'shoton')
shoton
table(shoton$subtype1)
table(shoton$subtype2)
shoton$type <- NULL
data <- unique(shoton$subtype1)
for(i in data){
fileName <- paste0("factorsImages/shotOn/",i, ".png")
png(filename = fileNam... |
92bda4e61ba58da84e637124fd915b61ad7370e9 | 002ab6dce1456134a8b0235abe6250484aa8b71e | /run_analysis.R | dc2c16d37743cce3fdf78a32bb0dc481ec5bcb6c | [] | no_license | AVMurali99/Getting-and-Cleaning-Data-Project | 25998b619daa94adda50e6cd866159e882e5cf91 | 344749780eb2e5b342d06a7a34ecaf0c977200d1 | refs/heads/master | 2016-09-15T20:15:42.001004 | 2014-12-21T01:19:28 | 2014-12-21T01:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,347 | r | run_analysis.R |
# Reading in the data required from files
trData <- read.table("C:/Users/ASHA/Desktop/Coursera/UCI HAR Dataset/train/X_train.txt")
trLabels <- read.table("C:/Users/ASHA/Desktop/Coursera/UCI HAR Dataset/train/y_train.txt")
trSubjects <- read.table("C:/Users/ASHA/Desktop/Coursera/UCI HAR Dataset/train/subject_train.tx... |
f4bd7691bc77c27d6be3b0b98e889462d7ee37aa | 3cc5e4163beab8c7e71e8f6463717195c7d2f103 | /GenomicsFunctions/ReadAndParse.R | 27eb1c1ea59bfe7698a6710b27f5eb84913beccc | [
"MIT"
] | permissive | JEstabrook/Omics-QC-pipeline | fc7c514b8df1e559b56b518b619e56c78214d0f8 | e165bd1b1df0b09c268fc5e562c99104344e1df8 | refs/heads/master | 2021-06-23T18:50:12.274069 | 2018-06-29T23:09:52 | 2018-06-29T23:09:52 | 118,011,848 | 0 | 1 | null | 2019-05-06T17:52:31 | 2018-01-18T16:59:15 | Jupyter Notebook | UTF-8 | R | false | false | 3,076 | r | ReadAndParse.R | #####################################################################################################
# Set of functions useful for reading and parsing file formats
#
# readENSgtf --- Read ensembl gtf format
#
# Author: Julja Burchard
# Started - 2016
########################################################... |
5f543dc5d97ca21b24d3d9c2744f9152079e388b | 3d2d38edafbf2f615b9b5263a39fb63865bc2dad | /auxillary/spc_main 0.35.r | 1da598dc782c7cb37fb7092eaecec9d65d076ed9 | [] | no_license | aa989190f363e46d/solarSfReader | 4f4ed17eb993da90845abc417aeceb2fad15646e | 17a88aba9b08e6b3c9c19f29c316e7a5cd7f4406 | refs/heads/master | 2021-01-19T10:57:38.550758 | 2014-10-01T13:22:27 | 2014-10-01T13:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 27,171 | r | spc_main 0.35.r | library(RSQLite);
## library(Hmisc);
if (file.exists("E:/Work/Aspirantura/DataBase"))
{
homedirectorypath <- "E:/Work/Aspirantura/DataBase"
setwd(homedirectorypath)
} else {
homedirectorypath <- "/home/angel/Desktop/Database/"
setwd(homedirectorypath)
Sys.setlocale('LC_ALL','C') # it... |
841b14f4b87137238baccf1226557ab36ed45a63 | 343757949b33e95184d1ec81caeb7d16d1c04485 | /secret-example.R | f3a94bfa1fd2b6321b25b27524e17bdf0aaaf520 | [] | no_license | precision-sustainable-ag/on-farm-map | 14de036d7a601e91928db04ab018bc362d45ca8b | 02c50924f7846094b39fe49616577bd8aa24d4d3 | refs/heads/master | 2022-05-25T12:54:26.437296 | 2022-04-19T14:34:24 | 2022-04-19T14:34:24 | 219,055,309 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 148 | r | secret-example.R | # DB credentials
pg_dbname = "<Postgres db name>"
pg_host = "<Host URL>"
pg_port = 0000
pg_user = "<your username>"
pg_password = "<your password>"
|
5998168bbac286036c7828af90f2af8347d8c634 | 5c2350f172e1a7b7f61e1047d515357735e5895e | /man/text_coding.Rd | d2d962d21ac0947b2d83e691a460ad68ff2de761 | [
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | richarddmorey/Morey_Hoekstra_StatCognition | 4da5b3f205d1038b850fa701354bd59b62a05eed | 373b9ac75219d84d7b5a6454296e80aa4f34ea54 | refs/heads/master | 2022-12-06T14:50:55.198542 | 2022-11-30T18:23:58 | 2022-11-30T18:23:58 | 189,821,493 | 4 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,013 | rd | text_coding.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/christmas_stats_public-data.R
\docType{data}
\name{text_coding}
\alias{text_coding}
\title{Coding of the text responses}
\description{
Categorization of each participants' strategy-related
free-text responses
}
\details{
\itemize{
\item id: p... |
24bd20cb538c2bfe46f992bd0587de15e011931d | 5e76b46f4c5e00dddda70596f7387bdd53285252 | /man/normVowels.Rd | bdc3bbd974f1265dbca9bcfb435d891b655bb542 | [] | no_license | djvill/phonR | 3096ff63edfe3869b251740b1d1dd558b56c875f | ada5ad8fd2f6c51f3742eba7446a5169f7890809 | refs/heads/master | 2021-01-17T22:33:15.278764 | 2016-09-15T17:18:31 | 2016-09-15T17:18:31 | 67,957,934 | 1 | 0 | null | 2016-09-15T17:18:31 | 2016-09-11T22:33:30 | R | UTF-8 | R | false | false | 7,642 | rd | normVowels.Rd | \name{Normalize vowel formant frequencies}
\alias{normVowels}
\alias{normBark}
\alias{normErb}
\alias{normLobanov}
\alias{normLog}
\alias{normLogmean}
\alias{normMel}
\alias{normNearey1}
\alias{normNearey2}
\alias{normSharedLogmean}
\alias{normWattFabricius}
\title{Normalize formant frequency values using a variety of ... |
84e82ac319404bc58c81b986e3075900cf7f20c6 | 60ed9eb5b93f1051b3382d4bf7bd1f58818c1b34 | /plot4.R | 363104429fedb888c877e5d1230751dee0409d8f | [] | no_license | rohitchaube/ExData_Plotting1 | a7bc6e31e56434f3eea6326c73ed69ab8b236cba | a372913eec569c3dea6413128e74e3d1c5f0ddea | refs/heads/master | 2021-01-20T16:24:11.027479 | 2014-10-12T17:02:50 | 2014-10-12T17:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,469 | r | plot4.R | plot4 <- function(data_file) {
data <- data.frame()
combine_date_time <- data.frame()
file_read <- file(data_file)
data <- read.csv.sql( sql="select * from file_read where Date = '1/2/2007' or Date = '2/2/2007'",
sep = ";",
header=TRUE)
close(file_read)
## Combine Date and Time
combine... |
6f0ed060e7e276f490a046e8faf249b0dc4387e4 | bbaf6cc30800d6588c923f681d5db779f5eb92d7 | /wos_stm.R | 6278089b6fd9ce9bb2aba4f21c72ed6923193939 | [] | no_license | synbioks/synbioethics_ctm | 656f34124e5071a6b88ffec363c8c340bc7414cc | 110c10aa5ca6bdb8c6d35a1c62504b524177e75f | refs/heads/main | 2023-06-18T20:30:50.274685 | 2021-07-12T20:18:25 | 2021-07-12T20:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,687 | r | wos_stm.R | # ==============================================================================
# structural topic models with web of science data
# ==============================================================================
# preliminaries ================================================================
# first load data in wo... |
9e59826f96d6c52a5fac5cf4067d8c6cf98b6382 | e7a67422605e1b94ed168157a584d1a682787442 | /Intro_to_ggmap_02232018.R | 795d4e1a729586e979ecf2c3ae2dcd420d6941e2 | [] | no_license | BWAM/R_Lessons | 429da04c30316be0d88c10eab942b3f3000593cc | 5071f8a4b4eb3a42cd20837d17f0486927c64599 | refs/heads/master | 2021-05-02T00:32:41.284512 | 2018-02-23T17:58:47 | 2018-02-23T17:58:47 | 120,946,080 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,542 | r | Intro_to_ggmap_02232018.R | # Author: Charles Stoll
# Date: 02.23.2018
#################################################################################
# GGMAP Notes:
#################################################################################
# ggmap is a package that is related to ggplot, both were written by Hadley Wicham.
# Be... |
4561e5ea8a0ed16c6f4b78ee991cea9e88313f39 | f0756ba7f487619f46999d3c5b9e6c7105fc79ae | /R_Overview.R | a551e45e46d7fa04cbbae86bf5e192ad4c85247a | [] | no_license | vishaldn/IntroductionToR | c0ca39bc5402156c9a5c30dc3dcab297cfb5ae04 | c53986ebb27f33a4ba6b2d490f06af5f7f529f0c | refs/heads/master | 2022-06-18T13:50:22.890155 | 2020-05-10T09:00:23 | 2020-05-10T09:00:23 | 262,747,241 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 411 | r | R_Overview.R |
#### CHAPTER 1 - OVERVIEW ####
# Note: You can write a comment in the script by starting a line with the "#" sign
# A comment is not run by R when you press ctrl + Enter
### Assignments
x = 1
y <- 2
### functions
print("Hello World")
### Computations
17 + 5
x + 5
y = 15 +5
y = sqrt(16) # Square Root f... |
9dd12a2e3e5f738e03b2656f0c4b4a367f7f6f00 | cbe44f0dca20bba077801c4b14cf8c64d5b7d352 | /man/question_3a_001_data_weather.Rd | 259ff6c2243d93038f0c0743e0409bad5598d078 | [] | no_license | s1888637/weathr | 1ced821f4bec8bf39cb38123960d9b59d3cc80d0 | 3adfd7fd3149ee2b8a2f32577d6ed5695b7450b4 | refs/heads/master | 2020-05-29T19:49:21.974074 | 2019-06-05T19:15:26 | 2019-06-05T19:15:26 | 189,339,729 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 324 | rd | question_3a_001_data_weather.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/question-3a-001-data-weather.R
\name{question_3a_001_data_weather}
\alias{question_3a_001_data_weather}
\title{question_3a_001_data_weather}
\usage{
question_3a_001_data_weather(num_boundaries = 10)
}
\description{
question_3a_001_data_weathe... |
3138239b765fc05d56c5da897eac235424b46c01 | 56b5304c93d2c6158efbe70a59d1aca21ecfa379 | /intro figure.R | e12f3e35d85c59160d0d4970763a20df452949a0 | [] | no_license | kgunnar-lmu/PhD-Thesis | 1e860622003345b0bbd2636b1b360553c337b423 | 8acadd88695b6afb21cb8affd189267003be48a5 | refs/heads/main | 2023-04-18T05:31:17.203065 | 2021-04-27T13:08:03 | 2021-04-27T13:08:03 | 355,526,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,171 | r | intro figure.R | options(stringsAsFactors = F)
library(ggplot2)
library(tidyverse)
library(ggbeeswarm)
library(ggrepel)
library(RColorBrewer)
data=read.csv("/Home Office/Thesis/Figures/sc meetodite tabel.csv")
head(data)
data$order2=as.numeric(paste0(data$Year,".",data$Month))
cc1 <- c(brewer.pal(name = "YlOrRd",n=9))[6]... |
21955c4b1498a0528293e301ae71316e21e0feec | 102bdcc508763ea432455778e9e13f427b7b7e51 | /man/billboarder.Rd | b35a7bc390e28eacc3bfc51ba1cfb9e1cf61177e | [
"MIT"
] | permissive | dreamRs/billboarder | 53847ee7359118498a98895afd588b98c5ea0692 | 26c93896f8b040eeb48891f4f2e70690af71d4ff | refs/heads/master | 2023-03-07T23:52:34.505537 | 2023-02-22T14:24:22 | 2023-02-22T14:24:22 | 97,649,774 | 174 | 22 | NOASSERTION | 2018-11-13T07:52:27 | 2017-07-18T22:36:41 | R | UTF-8 | R | false | true | 687 | rd | billboarder.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/billboarder.R
\name{billboarder}
\alias{billboarder}
\title{Create a Billboard.js widget}
\usage{
billboarder(
bb_opts = list(),
data = NULL,
width = NULL,
height = NULL,
elementId = NULL
)
}
\arguments{
\item{bb_opts}{A \code{list}... |
5f1e4cb485cc6b51b386e0edcc5d5b87a8094e93 | 2e5060fa591b80f5b11507a4afb413001fe13604 | /GW.R | 0b77e04b7778cea835f124a3996aa25da4b087a1 | [] | no_license | oraza/GWScript | 2a94569121ccd1a4201769cada3ede44cc914a02 | 5f91663cbf1d4a722782f1c3bb08b2c61f14a229 | refs/heads/master | 2020-03-27T08:33:10.007713 | 2018-09-23T12:17:25 | 2018-09-23T12:17:25 | 146,266,972 | 1 | 0 | null | 2018-09-16T13:07:20 | 2018-08-27T08:09:18 | R | UTF-8 | R | false | false | 29,898 | r | GW.R | ## GWPCA on East Africa data set for Childhood morbidity
library(GWmodel)
library(RColorBrewer)
library(rgdal)
library(leaflet)
library(psych)
library(classInt)
## Calling dataset
setwd("E\\GW_Thesis\\ThesisData")
dsn <-getwd()
ea.border<-readOGR(dsn = dsn, layer = "ea_Env_DHS")
# converting aridity index to origina... |
c7f0bfa48d31687f9d9436bede9eb39c4d42698b | 7620c35c064d095c31a306ad437a7e4599dff5ec | /plot3.R | 1f59e59876784bae0f7b903ceb404ffd0a5a4094 | [] | no_license | juancarlozamora/ExData_Plotting1 | 3d113b3de6229ff044932e27a7da1afe72df0d73 | 4c2123252aa85db8f529b16cb49a25a5280854de | refs/heads/master | 2021-04-26T04:37:13.301145 | 2018-03-06T06:49:54 | 2018-03-06T06:49:54 | 124,028,682 | 0 | 0 | null | 2018-03-06T05:59:20 | 2018-03-06T05:59:20 | null | UTF-8 | R | false | false | 1,431 | r | plot3.R | # Set the working directory into downloaded directory of the data set.
setwd("C:/Users/zamojua/Documents/Graduate Studies/Data Science Course/Exploratory Data Analysis/Week 1")
# Load the data required from household_power_consumption.txt
consumption <- read.table("household_power_consumption.txt", header = TRUE, ... |
194b4be6e86d87c9171eef39122a757b58db3997 | 20ea933626e5d896dc25b72d9f639650f1eb8993 | /meta_dmr.r | f9d8c3a7744efe9693efd21b483bcc4c8f5818d4 | [] | no_license | nievergeltlab/ewas | 4c5903ee435cb74fc15259c8db716ab7a99ab255 | b94be46df8881b23023060dd7e2a7c9ee3d11883 | refs/heads/master | 2020-05-26T14:56:39.538931 | 2019-05-23T17:11:54 | 2019-05-23T17:11:54 | 188,276,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,969 | r | meta_dmr.r | #Note that this is for just CpG islands. The other options are genes and promoters
#So I suggest using find and replace on "CGI" to get the appropriate file for genes or promoters, making a copy for each version of this.
#Load DMR analysis results.
load('semper/mrs_cgi_gsea_100k.r')
load('mirror/prismo_cgi_gsea_1... |
229bccbb9ea23f5af4872cace0e6de60e2fc063b | e201e192fc8ed87d7b92f141568bdf21b17d965d | /R/print.info.atomic.R | a441c8bdbc455b73f2a8df4bf5f489c02cfbc7ac | [] | no_license | zeligdev/ZeligDVN | e66c0ee16dea4cf5faae9bfe35a986eaa0489885 | 091b46787249fe1362cdbfb7184873f29b2082e9 | refs/heads/master | 2020-12-24T14:18:47.566770 | 2011-12-13T15:21:06 | 2011-12-13T15:21:06 | 2,349,825 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 491 | r | print.info.atomic.R | #' Print a Column Analysis
#'
#' Correctly format and display the analysis of an individual column.
#' @usage \method{print}{info.atomic}(x, ...)
#' @S3method print info.atomic
#' @param x a \code{column.analysis} object
#' @param ... ignored parameters
#' @return the object (invisibly)
print.info.atomic <- function (x... |
21127cfc3789128ed939e332d92e0ed0870d6cf3 | e91552560cb59fbc71789062e47155b9f006293e | /topofire/R/projection_data_warp.R | 0e9eeab5fd005e40df2ad45463f32df92ebf4cfa | [] | no_license | LMXB/drought_indicators | 66ed760564c4721c425d44ef9e5f2c9563678d9d | 1723c46985291f046de00340e6c1f5528530b0d8 | refs/heads/master | 2022-05-08T21:10:47.331095 | 2020-04-24T16:37:13 | 2020-04-24T16:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,299 | r | projection_data_warp.R | rm(list = ls())
library(raster)
library(ncdf4)
library(rgdal)
library(parallel)
library(tictoc)
library(stringr)
library(foreach)
library(doParallel)
#import master grid to warp match
master = raster("/mnt/ScratchDrive/data/Hoylman/SPI/NWS_SPI_Test/nws_current_spi_30.tif")
#define directories
input.dir = '/mnt/Scrat... |
d0ebd3ce7e93018edefb364bd7ba7ca4d1bce79d | 58fd3b96113e90860cc683c1dd29250c2f965e9a | /R/local_path.R | 35d6ea14d8ba6661d5b3d18bf42b4ea7a8a82a14 | [] | no_license | dacarras/r4sda | d0a75ef2f6425dc263ff8638345e0191d58f56df | 702465d57f125551eb71250a1b2c4ba106a9cca9 | refs/heads/master | 2023-01-13T07:30:45.381142 | 2022-12-29T14:23:57 | 2022-12-29T14:23:57 | 167,874,962 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 736 | r | local_path.R | #' local_path() returns the parent directory of the working directory.It aids the generation of relative directory to store all code in single folder, and then reproduce the calculations in a Mac OS machine or a Windows machine, or else.
#'
#' @param x a string with directory location (e.g, '/00_data/', '/01_syntax/', ... |
07ac46013bbcbc0cebb561df48f935c3cf3489f6 | 5e4273c9870b9dc46708dc9e88bf631db565c707 | /man/plot.yapafit.Rd | d841ea83b08fe45d78fdce4869262c7198c53385 | [
"MIT"
] | permissive | alexpavlakis/pollagg | 28f03b4f2ad775a5c4f30466fe8b312801b2bc6e | f29b64d4fa87277b19b8a6d22695b51451407b03 | refs/heads/master | 2022-12-16T13:01:37.688375 | 2020-09-24T19:35:36 | 2020-09-24T19:35:36 | 295,246,051 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 303 | rd | plot.yapafit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yapa.R
\name{plot.yapafit}
\alias{plot.yapafit}
\title{plot a yapa model}
\usage{
\method{plot}{yapafit}(x, ...)
}
\arguments{
\item{x}{a yapafit model.}
\item{...}{additional arguments.}
}
\description{
plot a yapa model
}
|
69999589c495b2da791d27d0b5884a4a93c1298a | 24f0e5f5b4113736d630ff97e1d9e092ac203eb4 | /SourceTracker_v1.0.1.R | a6e8839d9ebdf3f76143ff006235e95feea84cbd | [] | no_license | CamEJ/UsingSourceTracker | 6eb7217c3139cd4314c8f19858f60561c9a50d78 | ff5a2c77302467cb7fee43e3b8646bad73af1305 | refs/heads/master | 2022-04-17T15:57:11.819103 | 2020-04-16T13:08:34 | 2020-04-16T13:08:34 | 256,209,016 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,888 | r | SourceTracker_v1.0.1.R |
## == get work space raad ===
setwd("~/Google Drive/Personal/WP3 paper workings/sourcetracker-1.0.1")
source('/Users/cam/Google Drive/Data & reports/R/setFactorOrder.R')
require(dplyr)
library(stringr)
library(ggplot2)
library(reshape2)
# Running SourceTracker version 1.0.1
# https://github.com/danknights/sourcet... |
1eb9d98feb9ae6986d7d5511dba3b8cbd7e7f3c1 | e6896d88d76eccc687616e6f5929a4143a555a82 | /Plot6.R | b4434abaed1f97fefaee076028ab8f369d07be1e | [] | no_license | hh0749/Exploratory-Data-Analysis---project2 | db48b69f0857e7130c84fa362eeffad9ab527af1 | 55fcf547787a7ed00e6b46053f67954eec4b0373 | refs/heads/master | 2021-01-19T05:53:55.500690 | 2016-06-17T11:39:39 | 2016-06-17T11:39:39 | 61,369,521 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,023 | r | Plot6.R | ##Assignment2
# Compare emissions from motor vehicle sources in Baltimore City with emissions
# from motor vehicle sources in Los Angeles County, California (fips == 06037).
# Which city has seen greater changes over time in motor vehicle emissions?
##Read dataset into R
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- r... |
22000d99187e9adf5a843367fdb24bc2f7476f2f | 6a811d1fbe579e346b9813857f9059be010a67a7 | /scripts/figures/upset.R | b9348f20f9eebc469935cb09893e0e27c4cbf617 | [] | no_license | HongyuanWu/rkipcreg | 317634c4d3b500ad23cf39c6f50843e889237692 | c50b5e3d0d6576c268fe160ac37f0db6e3cc3f11 | refs/heads/master | 2021-10-10T23:28:30.353773 | 2019-01-19T04:04:05 | 2019-01-19T04:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 362 | r | upset.R | # loading required libraries
library(tidyverse)
library(cRegulome)
library(grid)
library(gridExtra)
# load data
load('data/tf.rda')
# generate graph
tf_targets %>%
cTF() %>%
cor_upset()
grid.edit('arrange', name = 'p1')
p1 <- grid.grab()
ggsave(plot = p1,
filename = 'output/figures/upset.png',
... |
e4d6b9b0fc4e43ab7c9cd71be62b41a1cd95554a | 20a3b30be39c5f9e11837c477a2332223074258a | /man/barah-package.Rd | 73c5fe6f17082132cb56d0ec20ba63a0387cb2fe | [
"MIT"
] | permissive | daranzolin/barah | 9622eef127ffeead2a88ae15f0f054af61d63e79 | f81a02688d16de6972482ea42039c010e6235435 | refs/heads/master | 2022-07-01T00:53:18.219057 | 2020-05-11T16:55:42 | 2020-05-11T16:55:42 | 262,227,608 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 480 | rd | barah-package.Rd | \name{barah-package}
\alias{barah-package}
\alias{barah}
\docType{package}
\title{
Format elements into a specified pattern
}
\description{
Data comes in messy, unpredictable formats. Use the fashion function to bring
order to the chaos.
}
\details{
This section should provide a more detailed overview of how t... |
97113c81289b4dd4563a30c43431bd1ed8678916 | 5b153389e67e59a30aebf6a0d84b69fd89f805d4 | /datatools/man/bloomberg.market.Rd | cfb89ec43d21f93d085bc13f13bc53babda67481 | [] | no_license | dengyishuo/dengyishuo.github.com | 480d9b5911851e56eca89c347b7dc5d83ea7e07d | 86e88bbe0dc11b3acc2470206613bf6d579f5442 | refs/heads/master | 2021-03-12T23:17:10.808381 | 2019-08-01T08:13:15 | 2019-08-01T08:13:15 | 8,969,857 | 41 | 35 | null | null | null | null | UTF-8 | R | false | false | 644 | rd | bloomberg.market.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{bloomberg.market}
\alias{bloomberg.market}
\title{get market data}
\usage{
bloomberg.market(name, startDate = NULL, endDate = NULL, addSMA = FALSE,
ifPlot = TRUE, ...)
}
\arguments{
\item{name}{symbol of the bloomberg ticker}
\item{startDate}{star... |
23438a3a89280fa0e09e918e1bd71ed6fea57c51 | b0b02bd60d27b9dfcbe20c43396d008a6f949d19 | /checkMobLocation.R | 192b11891905f5011500e8e75a1a7cb55f0d4065 | [] | no_license | jwhill07/practice | 5edb3a3d2fa57d219bb59f99529ad12a29f3b234 | 59d2e3508ab4b7de8b1400dba6b39153b8852ec3 | refs/heads/master | 2021-01-13T04:48:53.603042 | 2017-02-14T01:29:38 | 2017-02-14T01:29:38 | 78,690,654 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 477 | r | checkMobLocation.R | # checkMobLocation ensures all patients entered onto Redcap were marked as "scanned at UWMC"
# notes inconsistencies
source("fix_dataset.R")
# if "data." precedes colnames in dataset1, fix
colnames(dataset1) <- gsub("data.", "", colnames(dataset1))
indices <- which(dataset1["mob_location"] != 4)
if (length(indices)... |
b0fa6aadab9239897172d47076b9c26584270479 | 59c51287120be281e0e5a155e122e8931508bc4a | /man/spikeTimeCrosscorrelationEvents-methods.Rd | 3685eb9b5ec2cccdb24045ca302f9ddd9bfb013b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | kevin-allen/relectro | 2a43159f3f2f08cf7c09168c69b90e1e3b51dc55 | b2fb35c49f8c46d1519f502e9cb01c6c9f2cb0a8 | refs/heads/master | 2020-04-12T08:05:01.663420 | 2019-03-18T21:22:11 | 2019-03-18T21:22:11 | 57,366,781 | 8 | 8 | null | 2018-08-02T14:16:57 | 2016-04-29T08:00:25 | R | UTF-8 | R | false | true | 1,213 | rd | spikeTimeCrosscorrelationEvents-methods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpikeTrain.R
\docType{methods}
\name{spikeTimeCrosscorrelationEvents}
\alias{spikeTimeCrosscorrelationEvents}
\alias{spikeTimeCrosscorrelationEvents,SpikeTrain-method}
\alias{spikeTimeCrosscorrelationEvents,ANY,ANY-method}
\title{Calculate th... |
b93477f09399c070c4e2007b2c6c33cd8d8ecd92 | ac958b19be657d0a842f3837ead2a7f34728e579 | /OriginalExoticPlantsProject/individual_obs_for_each_species.r | fec7fb2860dc2fe6a6e1d74b3310d51859244c88 | [] | no_license | daisyduursma/SDMexoticPlants | 5b1fcb157df8b6a82b2c01c2ea7be45e3f40752d | 17c99bf1dcd64f6828fee3d88fcf9cab773cb245 | refs/heads/master | 2021-08-28T10:00:23.180922 | 2017-12-11T22:56:53 | 2017-12-11T22:56:53 | 113,917,196 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 735 | r | individual_obs_for_each_species.r | #make individual observation .csv files for each species, this is needed to calculate AIC and BIC in ENMtools.
#make sure workspace is clean
rm(list = ls())
# library(dismo)
#get directories where data located
work.dir<-"C:\\Daisy\\Current Projects\\exotic plants\\data\\"
#read in SWD files
sp_dat... |
c5acdb6cd39a8ef87599563a108c3beb9bc58294 | 5e7aa59a610986857aefdb58b7adf5e867f6dca7 | /code/t-test.R | a34c8d627e1d832d74f3b65a3a8b94f7d821c374 | [] | no_license | yong-again/R_prac | 3526ab1a3f05b6b217c89bd59b85c4879d5295eb | 0fac8af1569a7cfea45d71827eced51f2f31c1e7 | refs/heads/main | 2023-05-07T12:23:38.942629 | 2021-06-04T14:26:50 | 2021-06-04T14:26:50 | 371,392,185 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,910 | r | t-test.R | ?t.test
install.packages("pwr")
library(pwr)
?pwr.t.test
install.packages("moonBook")
library(moonBook)
library(ggplot2)
library(dplyr)
library(plyr)
?acs
head(acs)
str(acs)
## 가설설정
### 두 집단(남성과 여성)의 나이 차이를 알고 싶다.
#### 귀무가설: 남성과 여성의 평균 나이에 대해 차이가 없다 .
#### 대립가설: 남성과 여성의 평균 나이에 대해 차이가 있다.
mean.male <- mean(acs$... |
7eae8205d318673fd572f355329df3f3e0d75b41 | 8e0a77b55ee4f0f16ae52d53ec9193d02989e87b | /modules/plots/plot_corr_matrix_wq.R | 28b43f78b521edf289c5de929bee65e3cdd62efa | [
"MIT"
] | permissive | dancrocker/DCR-WAVE | 63da2d3ef59f08334ce4559f29e27f9e8fc18c9a | 576d34223247bffca9a69b7a9d9b82a928117894 | refs/heads/master | 2022-10-04T18:22:48.569711 | 2022-10-04T12:33:27 | 2022-10-04T12:33:27 | 135,455,004 | 2 | 4 | MIT | 2022-10-04T12:33:28 | 2018-05-30T14:29:59 | R | UTF-8 | R | false | false | 2,820 | r | plot_corr_matrix_wq.R | ##############################################################################################################################
# Title: plot_corr_matrix_wq.R
# Type: Secondary Module for DCR Shiny App
# Description:
# Written by: Nick Zinck, Spring 2017
#################################################... |
53d7b13a0136a975057e54a6b052222bd3ccd8cd | c1a5c4dc784361d1e32430fe011422cc8145b2ce | /A2.0.3_functions_covariate_preprocessing_regional.R | d1ac7615eaeb0c1e14482dad0187dea16dde7d5e | [] | no_license | magali17/TRAP | a45259683acfd0144459a7f4aaa09cc172e5ad0a | aeeab48f3bb8afe87a15195876f34bbd591e9fe1 | refs/heads/master | 2021-06-20T18:35:43.155492 | 2020-12-22T23:30:45 | 2020-12-22T23:30:45 | 151,753,446 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,322 | r | A2.0.3_functions_covariate_preprocessing_regional.R |
#==============================================================================================================================================================================
# 'covariate.preprocess'
#
# Input arguments:
# * covars.mon: region-specific covariate data at monitoirng sites
# * covars.sub: region-specifi... |
9eeeba2c1906a7187135fd86c73fd3cc21f934a7 | 182a2933e90a972355e3ef785ea1e45b4327f009 | /man/pred_reel_2c_bis.Rd | b0029b98c8a99e9966e2cf1553c8e0ed44adefd5 | [] | no_license | CCCelestine/siseanalytics | eac90b600766c4792c21f670be198a07c18174c8 | d9a2536371ea2497f1db13d96567d800e02a6b7f | refs/heads/main | 2023-01-31T05:21:57.970625 | 2020-12-08T21:01:26 | 2020-12-08T21:01:26 | 311,376,289 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 520 | rd | pred_reel_2c_bis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pred_reel_2c_bis.R
\docType{data}
\name{pred_reel_2c_bis}
\alias{pred_reel_2c_bis}
\title{Dataset pred_reel_2c_bis}
\format{
A data frame with 357 rows and 2 variables:
\describe{
\item{val_pred}{predicted membership class variable}
\item{va... |
4e95c1f0de85ae40d1d299184bc36288fd0287e9 | bccaf9ca75d67fef6bec733e784c582149a32ed1 | /plagiat/R/jstorm2jclu.f.R | 80efa42f7affb9063a2958f5fa828fd959b6b222 | [] | no_license | brooksambrose/pack-dev | 9cd89c134bcc80711d67db33c789d916ebcafac2 | af1308111a36753bff9dc00aa3739ac88094f967 | refs/heads/master | 2023-05-10T17:22:37.820713 | 2023-05-01T18:42:08 | 2023-05-01T18:42:08 | 43,087,209 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,135 | r | jstorm2jclu.f.R | #' JSTOR Master 2 Journal Cluster
#'
#' @param jstorm
#'
#' @return
#' @export
#' @import igraph data.table ggnetwork
#' @importFrom magrittr %>%
#'
#' @examples
jstorm2jclu.f<-function(jstorm,shallow=F,eng=F){
if(eng) jstorm<-jstorm[sapply(discipline,function(x) 'ENGLISH'%in%x)]
nT<-jstorm[,.N]
nP<-jstorm[,publ... |
fe434082ca94fb558489d40b105ee28078f0fdad | 223faae9458ecb676c5590e14caebca22ef34277 | /cachematrix.R | 89546004d04524d9fb7575abf6e584a8e68de2e9 | [] | no_license | hamsternik/ProgrammingAssignment2 | 7c59da78c25f057c68c3f55b80a3106289f8d082 | d10d5d2b084a21f3b0605bdd7cb5616c2db16ebb | refs/heads/master | 2020-12-25T02:25:11.828585 | 2014-07-25T19:50:49 | 2014-07-25T19:50:49 | 22,208,395 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,454 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
### In this function we gain a put (or don't) a matrix
### And have a four "public" methods - special functions for next working with data
### func. "setMatrix" set a matrix if it ... |
a186130ef57b129b1343d90211d2bc0d3fa80b56 | 9ab9a9d6888dccdbe54ade2df6089bafb674fb7b | /K-nn Algorithm/1.k -NN Algorithm (Prostate_Cancer data).R | 7c57fd53894c1312811d53d086881d649cbd3e8b | [] | no_license | anuradhaschougale18/RProgramming | 3c064947f8750d7ea19385eaf7ac43490179f949 | 07f5ad689a2873b602f9a00ef86a887213e01d78 | refs/heads/master | 2022-11-21T04:02:08.549229 | 2020-07-17T05:22:10 | 2020-07-17T05:22:10 | 280,327,114 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,837 | r | 1.k -NN Algorithm (Prostate_Cancer data).R | ############## Data Import #######################
prc<-read.csv("F:/R and Data Science/Knn/Prostate_Cancer.csv")
############## Data type and column names #######################
str(prc)
names(prc)
table(prc$diagnosis_result) # it helps us to get the numbers of patients
############## Removing irrelea... |
2469cf0f47ddc37023b9049cba9c2111c86df887 | 72e5b0ecf11c05a04880c86743ca06efb4234339 | /man/make_filename.Rd | 379d16cb2df57ee34a4380fdaa52f57ed0bddc2e | [] | no_license | 00mathieu/FarsExample | fd8c18db83ef420d6cc042a19b8e48ef75c8cfa4 | 524017b8b832b482041b7b15175d20cab004f7ae | refs/heads/master | 2021-05-16T00:00:46.785573 | 2017-10-15T19:22:18 | 2017-10-15T19:22:18 | 106,901,541 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 463 | rd | make_filename.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.r
\name{make_filename}
\alias{make_filename}
\title{print filename}
\usage{
make_filename(year)
}
\arguments{
\item{year}{An integer year (2013)}
}
\value{
This function returns a string that
corresponds to the name of a csv
}
... |
74a073b0e7e75d0906c868476f31aeada2d13d1b | 9d9e2cd081ebc4f6bb6da5511a69e8dc40496576 | /TextPredict_tau.R | 4a6537212132c3ae331ffa3b702d8ca8025b50c1 | [] | no_license | wenlarry/freakCode | 3f746cce37bfb875063ac02e1bf38bd4a001a52f | 33b5db996966865d052ba0d1004472e7cc2018d2 | refs/heads/master | 2021-01-02T22:57:11.126810 | 2020-08-26T12:09:36 | 2020-08-26T12:09:36 | 99,430,858 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 695 | r | TextPredict_tau.R |
# Use tau to test prediction from the Quiz 2 of Capstone
# Initial Results 5/10
# Codes from StackOverflow
library(tau)
f <- function(queryHistoryTab, query, n = 2) {
Dfm<-sort(textcnt(rep(tolower(names(queryHistoryTab)), queryHistoryTab), method = "string", n = length(scan(text = query, what = "character",... |
8afe8a326ffa712b3d1089903d13912d853e6339 | 4971a12bfeb53c5efbc5d4bf5c2b9f8ac14108c1 | /man/new_ezmmek_act_group.Rd | 59b096d422cf8998de46454681814300fc41cf08 | [] | no_license | ccook/ezmmek | 17c2f2da665186256f79e77ec72b727dbdedde23 | d4e64da3197bcf54891ec16ce7ca1ae0de61d5a4 | refs/heads/master | 2020-09-13T11:03:44.422026 | 2020-08-14T15:47:18 | 2020-08-14T15:47:18 | 222,752,358 | 3 | 2 | null | 2020-09-10T22:37:53 | 2019-11-19T17:31:02 | R | UTF-8 | R | false | true | 926 | rd | new_ezmmek_act_group.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/new_ezmmek_act_group.R
\name{new_ezmmek_act_group}
\alias{new_ezmmek_act_group}
\title{new_ezmmek_act_group}
\usage{
new_ezmmek_act_group(act.data.fn, ..., method = NA, columns = NULL)
}
\arguments{
\item{act.data.fn}{Activity data file as ch... |
216316c80c84b3eb711466e6f97c341f7f43a964 | 7ca0669150b015a1e2251f2aded86a1cea67eb9b | /plot2.R | 2436360756f2a31664826323667678564713bbd3 | [] | no_license | kechengxu/ExData_Plotting1 | ac077dd904d970526791eacba267aaac8aab76e5 | 95e3d160ef35ca58b52e93eb3b54ab5b42e6136b | refs/heads/master | 2021-01-15T18:31:57.501671 | 2014-07-12T22:01:49 | 2014-07-12T22:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 621 | r | plot2.R | ## load the dataset
setwd("~/Desktop/Coursera/4-graphics/project 1")
colclasses=c("character","character",rep("numeric",7))
data<-read.csv("household_power_consumption.txt",colClasses=colclasses,na.strings=c("?"),sep=";")
data<-subset(data,data$Date %in% c("1/2/2007","2/2/2007"))
## merge Date and Time
x<-NULL
for (i ... |
3fcea922866b7830f4efeacb3716e649d415629f | c5c6e96ffdc9a52cdf7eba542f64fc149a9d7f4b | /R/Old/run_everything.R | 55786f8a27b096ff2692d531d3c03441c3f36b51 | [
"MIT"
] | permissive | kravitz-eli/prssMixture | e09ac2dc6d3174a445319f5ca8930b9f56039fad | 5b50cc7fb74d9d78a0fbe443a603fa96273e53d7 | refs/heads/master | 2020-12-05T16:16:14.879353 | 2020-02-07T15:05:46 | 2020-02-07T15:05:46 | 232,169,920 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,437 | r | run_everything.R | library("here")
source(here("R", "posterior_mixture.R"))
source(here("R", "get_mixing_prop.R"))
source(here("R", "make_cov_matrix.R"))
source(here("R", "normal_normal_conjugate.R"))
# Set parameters in bivariate normal likelihood -------------------------------
likelihood_params = list(
y_obs = log(c(0.76, 0.84)),
... |
7087fc7bb3fe7682b41d4714d1439d6f4125ca23 | 700d8121a4e3a9fc4c31e015db643758cb843569 | /inst/registered/UCSC_genomes/mpxvRivers.R | 59a04773ed47f40f2849e73a016dbbf0eba091f8 | [] | no_license | Bioconductor/GenomeInfoDb | 727c90f03c289f692999860a12077775f4d65317 | 9dba03f8d2a4f76732e2b12beac7c0ee3230a693 | refs/heads/devel | 2023-08-09T21:33:11.074781 | 2023-06-20T21:40:39 | 2023-06-20T21:40:39 | 102,149,975 | 14 | 15 | null | 2023-03-13T17:45:24 | 2017-09-01T20:19:20 | R | UTF-8 | R | false | false | 569 | r | mpxvRivers.R | GENOME <- "mpxvRivers"
ORGANISM <- "Monkeypox virus"
ASSEMBLED_MOLECULES <- "NC_063383.1"
CIRC_SEQS <- character(0)
library(GenomeInfoDb) # for fetch_chrom_sizes_from_UCSC()
FETCH_ORDERED_CHROM_SIZES <-
function(goldenPath.url=getOption("UCSC.goldenPath.url"))
{
chrom_sizes <- GenomeInfoDb:::fetch_chrom_size... |
97b2e2ed5dc2026c0a81b3e56a070b3afd192951 | de8a96754e8aae0a8c05dc471ef9dbecf5d4b938 | /Code/ReadDB.R | 38883c23077aedd9e987d3b53088e50fb2746c60 | [] | no_license | sumesh1/Time_series_analysis_R | f892247ccef7ec957207e729aa8f18fae1a7dbea | f4dd94c9c411159c88f974a0d8cbd5c169137118 | refs/heads/master | 2022-11-16T14:43:05.250776 | 2020-07-03T08:21:11 | 2020-07-03T08:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,203 | r | ReadDB.R | library(BETS)
#Possible values for the parameter src
#IBGE
#Brazilian Institute of Geography and Statistics
#BCB
#Central Bank of Brazil
#FGV
#Getulio Vargas Foundation
#FGv-IBRE
#Getulio Vargas Foundation - Brazilian Institute of Economics
#BCB e FGV
#Central Bank of Brazil and Getulio Vargas Found... |
c9e6a81d0ace623bf9d9b31304b73636f04a44bb | 082a3d044fa581dcaeca960b3c8e9a183b4de359 | /Plot_Fisheries_Summaries.r | 57243c3aa133d4167cd9c24c4e3259ca1484760a | [] | no_license | tetemouton/Input-plots | 881437a0f30b28cd7d891adb04f56822a52b71d9 | 1d92b66a378d237c3d7c23ef550a0ff6e1d7c48c | refs/heads/master | 2020-12-29T02:37:20.978036 | 2017-03-01T22:32:05 | 2017-03-01T22:32:05 | 53,087,204 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,640 | r | Plot_Fisheries_Summaries.r | library(splines)
library(scales)
library(ggplot2)
library(MASS)
library(reshape2)
library(grid)
library(ggmap)
library(plyr)
library(maps)
library(mapproj)
library(magrittr)
library(dplyr)
# Set the drive that is being worked off, if on my compter work off the C:/ else work off penguin
drv <- ifelse(Sys.info()["n... |
9fcee54a97262de9a68595dc7c6b8e53dbc5429a | c62ba61de7cc64d6d1b66b14105a67d9ad0be70e | /old_scripts/other_things.R | 98ee32b5d1ad0e3f8624b38fedc975887085f89e | [] | no_license | CescMateu/msf-datathon | d6ae5496720d89cc348672b293c890bd331a2ede | cbc695348e3d0c74f0e472a6c2fd233f6423f330 | refs/heads/master | 2020-08-08T06:14:10.244726 | 2019-10-10T09:39:45 | 2019-10-10T09:39:45 | 213,750,368 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,281 | r | other_things.R | rm(list = ls())
gc()
a <- fread('processed_data/MSF_SometablesW.csv')
setnames(a, 'Descripci\xf3n', 'Descripcion')
setnames(a, 'GRUPO SEGMENTACI\xd3N', 'GrupoSegmentacion')
a[, Descripcion := NULL]
a[, FECHA_INTERACCION := NULL]
a[, GrupoSegmentacion := NULL]
a[, V1 := NULL]
a[, MONTH_str := NULL]
a[, FECHA_PROC := N... |
60b84f1c9421e07f596f462d993ea15758d4159b | 1b56f1658eb6019aa2e31de31aeff2080be7158b | /plot2.R | 31f5c3061867008b58ebf333d048ee015ddbdaad | [] | no_license | gautamconnect/ExData_Plotting1 | 3e2be54f68c12bdd8093f63c86393e08c5c91e1e | ed46f47ef4cdb61fc8bfd702dc62c36cf4d4a643 | refs/heads/master | 2020-12-25T22:32:02.350205 | 2015-01-11T09:12:37 | 2015-01-11T09:12:37 | 29,085,350 | 0 | 0 | null | 2015-01-11T08:03:34 | 2015-01-11T08:03:34 | null | UTF-8 | R | false | false | 262 | r | plot2.R | #Get data
source('get_data.R')
#Open PNG device
png(filename='plot2.png')
#Make the plot
plot(power_data_df$Date_time,
power_data_df$Global_active_power,
ylab='Global Active Power (kilowatts)',
xlab='',
type='l')
#Close device
dev.off() |
841cec877e87a9eaae4f564ce5aa9c056a7d9d2a | c3cf36095797ad2538e98091cec1610ed39a180f | /Optimization in Finance/Homework 5/hw5_eaj628.R | c93ea5b3973dcd76ebb39d195a6db0c112e64952 | [] | no_license | evanaj12/R_and_other_examples | 4f1440dfb4989e7503e8631650619beba1eae34c | baa2a39a2b5b9a4cec5034d8e54a6a277a5ca134 | refs/heads/master | 2021-01-09T21:46:58.137191 | 2017-02-14T18:13:08 | 2017-02-14T18:13:08 | 48,967,571 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,175 | r | hw5_eaj628.R | # Homework 5
# Evan Johnston, eaj628
#################################
#Problem 1
# create probability values for p
p<-seq(0,1,0.01)
# create probability function (see report)
prob<-function(p){
return ( 2*p**6 - 6*p**5 + 6*p**4 - 2*p**3 + 3*p**2 - 3*p + 1)
}
# plot the values
plot(p, prob(p), type="l", xlab="Pro... |
aad0b166fb23dc37960b81c96c88b65f48e23bda | 79b5273841a030e62de06a5b614c9a428ddca33a | /Helper.R | 8d2b8ed1181840103af7e38ba2942e8de8d4f168 | [] | no_license | vykhand/devdataprod-010 | 36ec81395608e122816dd89ea78730e910f5d4ea | efc5845fe116fe3130262b420e5a430a061640d6 | refs/heads/master | 2020-06-04T12:45:00.120847 | 2015-01-28T08:38:24 | 2015-01-28T08:38:24 | 29,799,151 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 772 | r | Helper.R | #https://londondatastore-upload.s3.amazonaws.com/average-house-prices-borough.xls
require(xlsx)
require(tidyr)
if (!file.exists("avg_prices.xls")) download.file("https://londondatastore-upload.s3.amazonaws.com/average-house-prices-borough.xls", destfile="avg_prices.xls", method = "curl")
dt.mean.annual <- read.xlsx("a... |
e5fdfbd94b0f1a6a78c3e9128ee4c87a22613505 | a469986260ce95a00caae925dbfc431c04bace94 | /plot1.R | ccf7029ac32deeb41ed9084d67578f49b343bf55 | [] | no_license | bojansovilj/ExData_Plotting1 | 55dd507186a1d7d31a6ba3af276694e0b78c7d74 | d90788697601cdc865c19fd924d02c42b5981886 | refs/heads/master | 2021-01-17T23:16:48.484640 | 2015-09-13T22:49:21 | 2015-09-13T22:49:21 | 42,391,770 | 0 | 0 | null | 2015-09-13T10:25:12 | 2015-09-13T10:25:12 | null | UTF-8 | R | false | false | 947 | r | plot1.R | #This script is solution to Exploratory Data Analysis course project
#Goal is to make histogram of Global Active Power by house hold for two dates
#reading data file
householdPC <- read.table("household_power_consumption.txt",
header = TRUE,
dec = ".",
... |
c51018bda5a47d5ea5e25eb238c307e61ef0faf7 | b7f7d1ee4e982cc950343ee8b126d2b6cc8e5758 | /Module 11/11-04-tidy-data.R | 70c0767c71705a4f362c3948190b2cc797a98de7 | [] | no_license | agentmishra/intro-to-r | ba895bcc6e518efa6d07b6f8a2317adcbc36d975 | 9c06fc68faee6b9ef53d92e5f95deab8c6f38475 | refs/heads/main | 2023-06-04T08:19:50.661597 | 2021-07-01T15:49:56 | 2021-07-01T15:49:56 | 511,027,957 | 1 | 0 | null | 2022-07-06T07:08:29 | 2022-07-06T07:08:28 | null | UTF-8 | R | false | false | 1,331 | r | 11-04-tidy-data.R | #### Tidy Data ####
# Examples of tidying data
# first, the tidy dataset
table1
# every variable has its own column
# every observation has its own row
# every cell has a value
table2
# what do you notice?
# how can we make this data tidy?
# pivot_wider()
# column to take the variable names from: "... |
340a773cbdc007a7b78cb351e45ef593eeef07a6 | 38bde0c54f5d0feb811dfe2912cbc9779a3ba9c2 | /r/preprocessing_validation.R | 904ee4160fd723e3a1e9b8daf184a1eb304073aa | [
"MIT"
] | permissive | andeek/kaggle-digitrecognizer | f6b64e137d1a6411351cedfcfdcb65a9c11bdf5c | 10cc94418944f1b2012818ffd36afa6196f591dd | refs/heads/master | 2016-09-08T05:05:30.140874 | 2015-03-06T21:45:19 | 2015-03-06T21:45:19 | 31,507,717 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 745 | r | preprocessing_validation.R | #preprocessing file
#load data and create separate validation set
#make sure to run this file first
#depends on: setwd() to folder above data/
#data ------------------------------------------
train <- read.csv("../data/train.csv", header=TRUE)
test <- read.csv("../data/test.csv", header=TRUE)
#library -------------... |
ed1c470e5db6186ee0f270ed62e9f1bb4c1cf3f0 | 1d2128e15f37b04e0d5ac7ec25458b852ad08b16 | /plot3.R | 33c145b251d8d447da3218947a80f0d591a74360 | [] | no_license | jjaimon/ExData_Plotting1 | 0ec86cef5af68453df2bbdf8ad9fa701d8ea13d9 | bc507f4ac1a7c0cceba24c026896ade05970b069 | refs/heads/master | 2021-01-23T23:38:57.611425 | 2014-06-05T19:10:32 | 2014-06-05T19:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 676 | r | plot3.R | #
# Course Project 1: Exploratory Data Analysis
# Plot 1. Histogram of Global Active Power
#
source("data.prep.R")
#
# Draw directly to the file
#
png(filename="plot3.png", width=480, height=480, units = "px")
#
# Draw a line chart
#
plot(data.df$DTime, data.df$Sub_metering_1, type="n", ylab="Energy sub metering", x... |
128808c9dda6b9a828e59e88a7525c4777efb1f5 | 8eee897915fe1c832399fab4263f7875ed3402be | /man/ApproxBayesMeta-package.Rd | 88ba3c1128827344f4576f3a6d640b47d69eead8 | [] | no_license | pjnewcombe/ApproxBayesMeta | 46d4f5f6091d32f5c30d09437a720875ebec71ff | 0fe4ba4c58a80838ab7aac708f1632a27b3cd1db | refs/heads/master | 2021-03-12T23:45:34.766439 | 2015-03-12T15:28:55 | 2015-03-12T15:28:55 | 22,107,859 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 643 | rd | ApproxBayesMeta-package.Rd | \name{ApproxBayesMeta-package}
\alias{ApproxBayesMeta-package}
\alias{ApproxBayesMeta}
\docType{package}
\title{Please fill a text title description into the txt file TextTitle in the root of the package directory.}
\description{Please fill a text description into the txt file TextDescription in the root of the package... |
58fd698581720c262e87199623222d7d4454767d | 7236c172aae84f262675b093b9938bd2e04d0e5d | /Three_to_six_year_check_ins/shell_vol_analysis.R | 2be33d776243ed0c9b27043901594fd1879ef829 | [] | no_license | Oyster-Recovery-Partnership/Monitoring | c102397a3d51cd4e88ee7ded8d298fff69b3bc09 | aa9acb6f5ef75cc4e67a9fabe06ebc765e3f0fa9 | refs/heads/master | 2021-08-03T00:34:08.627052 | 2021-07-26T17:58:00 | 2021-07-26T17:58:00 | 219,568,619 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 7,809 | r | shell_vol_analysis.R | # ----------------- #
# test if there was a change in shell volume between the 2015 and 2018 check in
# ----------------- #
# ----------------- #
# load packages
library(readxl)
library(dplyr)
library(ggplot2)
library(lubridate)
library(agricolae) #HSD.test
# ----------------- #
# ----------------- #
# set dir
# ----... |
dde2f001c5eb107882d5bc3185c54cbab47ebe89 | 3aaa7b94e7646d205fb88380bebba6e099d958e3 | /plot3.R | 0d02ab3a2972a47606629f025fe5e9777328425c | [] | no_license | shakvik/ExData_Plotting1 | f7d16a9c95916a10226950bc30b9e2de789e0081 | 6008dd37a0fb615478da2009e0a33ba00f2f369a | refs/heads/master | 2021-01-21T00:21:43.148431 | 2016-06-27T10:04:22 | 2016-06-27T10:06:28 | 62,035,487 | 0 | 0 | null | 2016-06-27T07:41:52 | 2016-06-27T07:41:52 | null | UTF-8 | R | false | false | 764 | r | plot3.R |
##Read raw file
house<-read.table(file="./household_power_consumption.txt",header=TRUE,sep=";",na.strings="?",colClasses = c("factor", "factor", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
##create tidy data
library(dplyr)
house<-mutate(house,date=as.Date(Date,"%d/%m/%Y"))
house<-fil... |
4085f87c1b18c77d10c7acf4b3351172e2406808 | 9b7e1ae0f2f8b448d551988659522c47e66abb5d | /old_map.R | 38fbc6f6bbf3b2a076d368524d7d573fe1386f74 | [] | no_license | BigBallerBenzie/OldMap | 7dcff28091117954c7e9a412bdaf1eb43539f5d5 | 5569e1802ceb6006e59220b3cd3717f4baa7562e | refs/heads/main | 2023-03-25T06:47:50.727902 | 2021-03-22T21:56:02 | 2021-03-22T21:56:02 | 350,451,288 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,719 | r | old_map.R | library(raster)
library(rayshader)
library(elevatr)
setwd("D:/Maps/Old Map")
#topo_map <- raster::brick(" https://prd-tnm.s3.amazonaws.com/StagedProducts/Maps/HistoricalTopo/GeoTIFF/WA/WA_Mt%20Rainier_242672_1928_125000_geo.tif")
#topo_map <- raster::stack(topo_map)
topo_map <- topo_map <- raster::brick("myake... |
44bea88bd97a381037f3fe251c37a5911a3df361 | bf916b91ae7772ad5b08238e4fa9c99d073e3bb6 | /assignment9.R | 40bd8adb4cc2869b2f758dd0b0794a5a6fbf3ff1 | [] | no_license | lhagopian/usfspring2018 | aa465103eeb778cd4f857324a1b35d404b6dc8bf | 10e8f174e2cc4c7bb36871b4cd6c1dc7f37a57d0 | refs/heads/master | 2021-05-13T18:40:42.399040 | 2018-04-26T17:37:02 | 2018-04-26T17:37:02 | 116,873,715 | 0 | 1 | null | 2018-02-11T00:35:26 | 2018-01-09T21:39:40 | R | UTF-8 | R | false | false | 488 | r | assignment9.R | install.packages("lattice")
library(lattice)
install.packages("ggplot2")
library(ggplot2)
sunspot.month<-datasets::sunspot.month
plot(sunspot.month, main="Plot without Packages")
xyplot(sunspot.month~time, sunspot.month, grid = TRUE, main="Plot using Lattice")
ggplot(sunspot.month, aes(time, sunspot.month)) +
g... |
55df1817fb758d2d31e02f91752e22ed112421fe | 94cf7468e784693fc688b01e7c32f451060d6123 | /producing cod data.R | a92b6b5b6337aed00c79e5d98f1079902009aa78 | [] | no_license | szuwalski/cod_vs_crab | a0b9fcd4607a942d835ee8460c2ce62b2f8ef7f2 | 6bcdba76f70e030372eebad8acbc176a0a7f80fd | refs/heads/master | 2021-06-05T06:06:20.935464 | 2021-05-10T20:31:27 | 2021-05-10T20:31:27 | 162,767,328 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,913 | r | producing cod data.R | # Compile cod data
library(tidyverse)
library(here)
here <- here::here()
cod_dat_raw <- read_csv(here("data","cod.csv"),col_types='ciiiiiiiddddiiddccciddccddiccddiic')
# figure theme
plot_theme <- theme_minimal()+
theme(text=element_text(family="sans",size=12,color="black"),
legend.text = element_text(si... |
d5f4c51160d2780064eafefcd7d5d5cfcced694b | 768411a39703ce54c6d2e161baf63e22d6f5641c | /datediff.R | 7b776f0fdc1ce37468287f72c3bc4541a091b58b | [
"MIT"
] | permissive | joelonsql/coronalyzer | ef092df181bff32a408ffcb8fedf08661e29194e | 4253f2fd9fbda212a8dfe2f29b2fde972052d557 | refs/heads/master | 2021-05-20T02:40:47.969881 | 2020-04-24T13:04:54 | 2020-04-24T13:04:54 | 252,151,329 | 15 | 3 | null | null | null | null | UTF-8 | R | false | false | 6,116 | r | datediff.R | library(tidyverse)
first_date <- as.Date("2020-03-11")
last_date <- as.Date("2020-04-11")
deaths_20200402 <- c(0,0,1,1,2,2,1,6,7, 9,8,11, 8,16,22,27,31,26,25,26,26,13, 5, 0,0, 0, 0, 0, 0, 0, 0,0)
deaths_20200403 <- c(1,0,1,1,2,2,1,6,7, 9,8,11, 9,16,22,27,31,29,27,30,33,23,23, 2,0, 0, 0, 0, 0, 0, 0,0)
deaths_2020040... |
a496bbb48b992688bbd4aac52e36512406bc0478 | d129aca2797ec95826d5dd639a0254f29647bba4 | /cachematrix.R | 98c7f0d8aba5c928fac01e215f311eba31c973f6 | [] | no_license | 200002466/ProgrammingAssignment2 | cc3772256df83c35619a9066837712b0f417c193 | 37fdb7f117bbe97b22f30d15a2e0cd5980088b35 | refs/heads/master | 2020-12-25T12:39:34.260487 | 2015-08-23T22:16:27 | 2015-08-23T22:16:27 | 41,263,574 | 0 | 0 | null | 2015-08-23T19:21:18 | 2015-08-23T19:21:17 | null | UTF-8 | R | false | false | 3,003 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## The function make Cache Matrix creates a special matrix object
## that can cache its inverse.
##
## ********... |
42948e8060a7cadc75226cf3995513f5fd1de9a7 | 7f1111ad4a899e69bba1cda4f1d88507826e9e31 | /Answer4.R | d10d5b4e5675352e7429038027c20f6b6314a341 | [] | no_license | CodyStumpo/WhiffModel | 239addea2028b86f9d58276e8f965d20ea3bfcc6 | 4b315b1bd1020377812ba865b086728b590f21d1 | refs/heads/master | 2021-01-10T18:20:59.297690 | 2016-08-21T17:36:43 | 2016-08-21T17:36:43 | 52,711,094 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,668 | r | Answer4.R | library("readr")
library("dplyr")
train=read_delim(file = "TrainData.txt", delim = "|")
# 4.In addition to the 3 things above, we’d like you to create some summary data on the entirety of the training data set.
# For pitchers with a minimum of 50 FB in the training data set,
# find the top five fastest FB by init_... |
757a8c5ccc54b521c6e4e1b44f0cf52ba5b975bb | acd09fd92aabb80a4695f197ad3a2f817d6cdac2 | /20171021_practice2.R | ec178be0c7ff0058ecfe7047da6685c80e862759 | [] | no_license | hyun-park/__R__SogangRClass | 2dc06dd0b98a7b4da1cb16201168f3e09bbe95cb | 44a2fae92b88c727a197d1820ec8f3abb3b44f6a | refs/heads/master | 2021-07-23T11:51:19.382192 | 2017-11-02T05:46:22 | 2017-11-02T05:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 562 | r | 20171021_practice2.R | TEXT <- scan(file="howtostartastartup.txt", what="char", quote=NULL)
head(TEXT)
rep(TEXT)
rep(head(TEXT),2)
SortedTEXT <- sort(TEXT)
CleanedTEXT <- gsub("[[:punct:]]","",SortedTEXT)
head(CleanedTEXT)
table(CleanedTEXT)
sortedTable <- sort(table(CleanedTEXT), decreasing=T)
DataFrame <- data.frame(sortedTable)
head(DataF... |
34a0941ad362c3c2b458e73ec445e72f5e3603e1 | 7d0e6b61f92fe48afa6e32902fd3edfb1b7b52a9 | /R/from_here.R | acba69f5f088dedd21c5a58742846cb2f6b0c683 | [
"MIT"
] | permissive | ratmaster/collateral | cd6682ee0a83a308eeabc0bf65577956b9b89356 | d9cc212d597fce83bdfee8896ee1554ab94551d7 | refs/heads/master | 2021-08-20T07:43:22.393533 | 2017-11-28T15:07:06 | 2017-11-28T15:07:06 | 105,816,679 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 758 | r | from_here.R | #' @export
#' @title Set up parallel environment from here
#' @description Set up parallel environment from here.
#'
#' @details Set global options.
#'
#' @seealso \code{\link{plapply}} and \code{\link{psapply}}.
from_here <- function(progress = FALSE,
title = "Progress",
mem... |
a341a81a858df005ac9c413355a446edecfdac95 | 6e95686db673461f336c2198de395a2d5a3bca37 | /Run2bcd.Rscr | 8e8fcc2473ee3da0d55c863f0002b742d9bfbc1d | [] | no_license | sbaker2423/S2S_PostProcess | 5b6886fe5b2d7a34272f7c0a9e50718d54af7d35 | 39cf3df11a0f42b944a28fb41a35af35e95c5e21 | refs/heads/master | 2020-04-06T15:44:18.590406 | 2018-11-27T22:28:14 | 2018-11-27T22:28:14 | 157,590,912 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 400 | rscr | Run2bcd.Rscr | #!/opt/R-3.2.3/bin//Rscript
## Run 2b,c,d to see which process produces the best results
source("/home/sabaker/s2s/analysis/scripts/cfsv2_analysis/post_process/plsr/2b_PLSR_baseModel_CV.Rscr")
source("/home/sabaker/s2s/analysis/scripts/cfsv2_analysis/post_process/plsr/2c_PLSR_stepWiseModel_CV.Rscr")
source("/home/sab... |
91a4a81f50986d7580675771a92eed39139f1d66 | 1e5aaad5bb774e0084745cb06bb4b33ff96c944a | /R/print.contents.R | 7d4e1e66c6e61bd921bdc45fa44212eb6e3e2060 | [
"MIT"
] | permissive | Rkabacoff/qacr | cd66c7e1c6b188bdbd2e6cab618c1d77a5ed2a0c | d30d4cd9cbadbfba30f8b7c19b00eff6e9053ab2 | refs/heads/main | 2021-06-25T14:49:23.176096 | 2021-03-11T14:45:39 | 2021-03-11T14:45:39 | 218,363,729 | 0 | 6 | null | 2019-12-02T15:43:19 | 2019-10-29T19:09:40 | R | UTF-8 | R | false | false | 1,319 | r | print.contents.R | #' @title Print a contents object
#' @description
#' \code{print.contents} prints the results of the content function.
#' @param x a object of class \code{contents}
#' @param ... not used.
#' @return NULL
#'
#' @examples
#' testdata <- data.frame(height=c(4, 5, 3, 2, 100),
#' weight=c(39, 88, NA,... |
59f5d5993bb805bebca95f1e9d9acc28e6059a95 | 4f65e100fe9a619b2b87debb15201018dd4250f3 | /getVAdata.R | 04051b2281c9fd45a1e666f00c3ea3e7628a905c | [] | no_license | jmmaxwell/IDA | beb6cc504afa93418329238ca32b3bbce5836bcb | de1a1153df6fdf2e8402e091d3adcdff6165d9e7 | refs/heads/master | 2020-05-17T22:37:39.672492 | 2014-04-21T17:12:53 | 2014-04-21T17:12:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,842 | r | getVAdata.R | ## function for getting VA data for each year
## careful! when all 5 are loaded it's about 290 MBs
get.VAdata = function(yr){
require(RODBC)
require(data.table)
# set db file path
db = file.path(paste("C:/Users/jmmaxwell/Desktop/IMdata/", yr, ".accdb", sep = ""))
# connect to db
channel = odbcConn... |
d4acbf06089f2399152068075266383620fb5041 | a54d562769bee1f3118817a7c9bb94f7738fa7f5 | /code/data.R | 4e46e2ff0e21875ee584ab1c4185d61ecd50a088 | [] | no_license | zouyuxin/susierss_diagnostic | db2652b0a742c5a0ddbab01391a49812d2caed31 | 8799297a2b745a0eda8a8941f277fda14064e50f | refs/heads/main | 2023-04-19T06:31:00.137259 | 2021-05-03T01:40:00 | 2021-05-03T01:40:00 | 323,688,546 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,571 | r | data.R | ## data
library(data.table)
datpos = unlist(strsplit(dataset, ','))
chr=datpos[1]; start=datpos[2]; end=datpos[3]
# extract data
cmd = paste0('/project2/mstephens/software/plink-1.90b6.10/plink --bfile data/1kg_unrelated ',
'--chr ', chr, ' --from-bp ', start, ' --to-bp ', end, ' --make-bed ',
... |
23d2964841c094e88ff823e2ce1593c756d4b910 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.shield/man/delete_protection.Rd | 7fa4f870fd9257b940db08242107d2ef2b13fcc9 | [
"Apache-2.0"
] | permissive | CR-Mercado/paws | 9b3902370f752fe84d818c1cda9f4344d9e06a48 | cabc7c3ab02a7a75fe1ac91f6fa256ce13d14983 | refs/heads/master | 2020-04-24T06:52:44.839393 | 2019-02-17T18:18:20 | 2019-02-17T18:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 516 | rd | delete_protection.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.shield_operations.R
\name{delete_protection}
\alias{delete_protection}
\title{Deletes an AWS Shield Advanced Protection}
\usage{
delete_protection(ProtectionId)
}
\arguments{
\item{ProtectionId}{[required] The unique identifier (ID) for ... |
4ef55390e199e025483923e2e8eacf4a19ff05ac | 1e6f64fb9f3adcf2f78b5d53a1f26fd11c7ee0ac | /heatmap_RPSS.R | b169a7c636921ad811ba69162dc6c69cffe03453 | [] | no_license | bigtiger94/droughtPrediction | 30fac36a49e6042d52263c474fbfe7673fcda7fb | e52368e65f7998158934c29df629b154ac616033 | refs/heads/master | 2022-11-27T12:17:54.984625 | 2020-08-02T11:19:20 | 2020-08-02T11:19:20 | 284,443,046 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,999 | r | heatmap_RPSS.R | ### draw heatmap
dindexname = "sri3"
bsnnames = c("soyang", "daecheong", "andong", "sumjin", "chungju", "hapcheon", "namgang", "imha")
bsncodes = c(1012, 3008, 2001, 4001, 1003, 2015, 2018, 2002)
period.irr = c(4:9)
period.nonirr = setdiff(c(1:12), period.irr)
bsncase = 1
imgsavepath = file.path("./predictResult", "RP... |
22c07ff3cbac88d5afd9b3ce1aedf95141b2832d | 41bdfc76822961af95a4e185f289e9bd81282d12 | /Plot1.R | 5acf0767643dc524927d19635a7ba262bf800192 | [] | no_license | greeng/ExData_Plotting1 | 4141be8664f4aeb26d79b184444d721453bbb9c8 | 09e1ee1f6aad296d396b1ced38f6e1c01bdd056e | refs/heads/master | 2021-01-21T16:53:21.260605 | 2014-12-06T07:46:52 | 2014-12-06T07:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,687 | r | Plot1.R | # Exploratory Data Analysis: Course Project 1
# Plot 1
################################################
# INSTALL data.table package to your library
# DATA FILE "household_power_consumption.txt" must be in the working directory
################################################
library(data.table)
# Begining date of d... |
a8475d04ae454ea4e74e3b86ae14c6f691752468 | ea7e11caa009a40a159633499265c5ea4a55344d | /man/evaluate_trt_spec_pmf_eif.Rd | a068379e514d2733589b24f3c007751c4d077e9b | [
"MIT"
] | permissive | benkeser/drord | 9d0f58da939346ab4d25cf5ca3e6e6678f8a32fd | 112d8041c7019759f19d0732955e7b80fbae7f52 | refs/heads/master | 2023-04-30T10:19:42.794853 | 2021-05-21T13:31:42 | 2021-05-21T13:31:42 | 255,166,065 | 3 | 2 | null | null | null | null | UTF-8 | R | false | true | 934 | rd | evaluate_trt_spec_pmf_eif.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logodds_fn.R
\name{evaluate_trt_spec_pmf_eif}
\alias{evaluate_trt_spec_pmf_eif}
\title{Get a matrix of eif estimates for treatment-specific PMF}
\usage{
evaluate_trt_spec_pmf_eif(
trt_spec_pmf_est,
trt_spec_prob_est,
trt_level,
treat,... |
5fe0ceb4388b53b7ae6db71a45d7570e715e1363 | 9d5e46f25112a9f2b8486a4210b2d66da093e2f7 | /test1.R | 44977cd72ca035f2833fcd3425c903847d36fa19 | [
"BSD-2-Clause",
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | anhinga/r-to-clojure | b1c51ab5a2320c89f0432120496a35033cfc8036 | ca3a3f5f293c5c936feaaa392cfa970ec1d7ba67 | refs/heads/master | 2020-06-08T05:55:54.170690 | 2012-01-18T03:43:10 | 2012-01-18T03:43:10 | 2,699,658 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 103 | r | test1.R | test1 <- function(x, exp) {
res <<- 1.0
for (i in 1:exp) {
res <<- res * x
}
return(res)
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.