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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
839288f421149103a1538d4a2a7a710ee65d9441 | 7d0551dd360330dd82a621636bde45d91714d511 | /airGR/H_model_190613.R | 0968d30a2389e1f307363948ae9419d68af9c131 | [] | no_license | thora-9/handouts_sesync | a745261df007d00a0764aa174a2dbb3322f2eb1b | 2a0c909e47159619821d4ec76ddb95c70addc728 | refs/heads/master | 2020-06-23T00:12:54.248621 | 2019-09-25T23:05:07 | 2019-09-25T23:05:07 | 198,441,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,847 | r | H_model_190613.R | library(mosaic)
library(nlstools)
in_data = read.csv('H_Pmax_Qmin.csv')
#Stage-Volume Relationship
plot(in_data$H,in_data$Pmax)
in_sub = subset(in_data, H<203)
f = lm(Pmax~poly(H,4), data = in_data)
in_x = seq(150,203,by=1)
plot(in_x, predict(f,list(H=in_x)),type = 'l')#, ylim = c(0,16),col='red',xl... |
97b077f2c3e8174ced63515e5e42a5819670fc17 | 3ad3ce5f38d636b649abd6e2e8741d482d8f6d72 | /R/head_abbrev.R | 4a4d4085db4b9ef56ee8cb8fc525d287cba1b236 | [] | no_license | cran/pubmed.mineR | 279ce024df5b7913885ec96ad906226aa78633ce | 7612a2d68f503794f8dee8479e8b388949e4b70d | refs/heads/master | 2021-12-09T18:39:44.578225 | 2021-11-26T14:50:03 | 2021-11-26T14:50:03 | 17,919,888 | 5 | 6 | null | null | null | null | UTF-8 | R | false | false | 366 | r | head_abbrev.R | head_abbrev = function(limits,term,pmid,abs){if (missing(limits)) limits = 50;test = pmids_to_abstracts(pmid,abs); test1 = gregexpr(term,test@Abstract,fixed=T); if (test1[[1]] != -1) {test1a = NULL; for (i in 1:length(test1[[1]])){test1a = c(test1a,substr(test@Abstract,test1[[1]][i]-limits,test1[[1]][i]+limits))}; ret... |
fbd88eb42f5965ecc10f7db04176b95d5df31857 | 002929791137054e4f3557cd1411a65ef7cad74b | /tests/testthat/test_calcGU.R | d0c39e98a03e51389d199001d9e1df2f9e40ee2a | [
"MIT"
] | permissive | jhagberg/nprcgenekeepr | 42b453e3d7b25607b5f39fe70cd2f47bda1e4b82 | 41a57f65f7084eccd8f73be75da431f094688c7b | refs/heads/master | 2023-03-04T07:57:40.896714 | 2023-02-27T09:43:07 | 2023-02-27T09:43:07 | 301,739,629 | 0 | 0 | NOASSERTION | 2023-02-27T09:43:08 | 2020-10-06T13:40:28 | null | UTF-8 | R | false | false | 722 | r | test_calcGU.R | #' Copyright(c) 2017-2020 R. Mark Sharp
#' This file is part of nprcgenekeepr
context("calcGU")
library(testthat)
data("ped1Alleles")
test_that("calcGU forms dataframe with correct calculations", {
gu_1 <- calcGU(ped1Alleles, threshold = 1, byID = FALSE, pop = NULL)
gu_3 <- calcGU(ped1Alleles, threshold = 3, byID =... |
38452d95be99ecd3eeddc3f0be55e859c24629cd | d84c9108891529387cb5bdb1a0fc328b407a4d66 | /Predefined Contrasts/Predefined_Contrasts/Standardize.R | 72f8c2fb51ab7c854be71372e6fd7cd2afa4aa54 | [] | no_license | tongtongtom/demo_predictions | a9c87f5813fb069c23146d3b8e6297f6be074e12 | a905c941e88fa944f91e7eaf6518d90d01a3c0ba | refs/heads/master | 2020-03-26T10:52:44.248502 | 2018-09-12T09:38:48 | 2018-09-12T09:38:48 | 144,818,972 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,210 | r | Standardize.R | standardizeDataSet = function(Data)
{
data_mean = aggregate( Data[,c("AddictiveRate","balance","BetAmountSums","Bite","BitePerBet","BitePerUser",
"CDepositBet","CDepositPTime","CDepositPUser","ChurnRate1","ChurnRate30",
"ChurnRate7","CommissionableBe... |
bee36f3b5fbe762d3a5b9171df1f216b2cdb9d46 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /highfrequency/tests/testthat/tests_jump_tests.R | 531eda40bcce892bf5d9b2fdc034a9f20b09e31c | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,632 | r | tests_jump_tests.R | library("testthat")
library("highfrequency")
context("AJjumpTest unit test")
test_that("AJjumpTest unit test",{
expect_equal(
formatC(AJjumpTest(sampleTData$PRICE, p = 2, k = 3, alignBy = "seconds", alignPeriod = 5, makeReturns = TRUE)$ztest, digits = 10),
"-2.462012017"
)
})
context("JO jump test unit t... |
44e0e881e7163542717816356bf65d7dbe6756a4 | 416debf44d2175b5be50ff53c251a2ccc27176f5 | /5_variant_plots/eduAttainInstruments.R | d120fbd048776962393bdb7d1466417afae8467b | [
"MIT"
] | permissive | nay421/myopia-education-MR | 5d1e709c12c67a10d16656008c88d34a64a485db | 6469712909c20968311b066e61c4ace769697382 | refs/heads/master | 2021-09-16T10:18:23.839786 | 2018-06-19T14:29:12 | 2018-06-19T14:29:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,389 | r | eduAttainInstruments.R | #!/usr/bin/env Rscript
#
library("ggplot2")
library("tidyverse")
library("rio")
library("MASS")
library("dplyr")
setwd("/mnt/seconddrive/data/phd/ukbiobank/myopia_EA_project/5_variant_plots/")
# Args
indata = "../2_derive_variables/output/phenotypes_alleleScores_170724.Rdata"
indosage = "../1_extract_instruments/out... |
f045c9096fc1e19c662069874f0464212959b2f8 | b8c542780ffd64ded0400810acc59fc1da670612 | /maxdev.R | 75d0db4897d877f81f178059f97d1f396ad05f01 | [] | no_license | denohora/mtR | ef505578bf730570ccd077b021bb3367fc0952e7 | 1f0ddbdc97875b5cfc527caee011899bcaad5035 | refs/heads/master | 2021-01-01T06:54:08.511793 | 2013-08-15T09:33:21 | 2013-08-15T09:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,187 | r | maxdev.R | maxdev <- function (x,y) {
# This is Rick Dale's max dev function translated from matlab
# [maxdeviation] = areaunder3(x, y)
#
# # find general equation of the straight line
xchange = x[1]-x[length(x)]
ychange = y[1]-y[length(y)]
slope = ychange/xchange
intercept = y[1] - slope*x[1]
# % find point on the straight... |
0451ea6dabde753ddcf5180b6e6be6a8d5a8bc4b | 987c5b180118a16e8bbcef5b42fc449d3768b060 | /copula_helpers.R | f5f2d4ebb353593ecb6d94371c8eafb2894a3d10 | [] | no_license | sachin-aag/Bivariate-Copulas | 1bed0f71a1cd65b90742c68f3bddf7b0981334b7 | e12d5d9dd41d57187011f2cf3dc81d907f8dc180 | refs/heads/master | 2022-01-05T06:35:21.726746 | 2019-04-07T20:06:06 | 2019-04-07T20:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,259 | r | copula_helpers.R |
#'Normalise the time series
#'Normalise the time series using min-max normalisation
#'@param col The vector to be normalised
#'@return Normalised vector
normalise<-function(col) {
return((col-min(col,na.rm=TRUE))/(max(col,na.rm=TRUE)-min(col,na.rm=TRUE)))
}
#'Obtain month over month transformation
#'@param column Th... |
9417e36075f5bf66c0d33575ece0ed4fdba902ac | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/SixSigma/examples/ss.data.doe2.Rd.R | ff5142a5d5cf90935358c6546a64c8f3d4c66d5a | [] | 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 | 273 | r | ss.data.doe2.Rd.R | library(SixSigma)
### Name: ss.data.doe2
### Title: Data for the pizza dough example (robust design)
### Aliases: ss.data.doe2
### Keywords: data doe
### ** Examples
data(ss.data.doe2)
summary(ss.data.doe2)
lattice::bwplot(score ~ temp | time, data = ss.data.doe2)
|
25e1ae2ad0badeb4cd7c499dfb69f61d043706d2 | 51864fb6306cb11dc5e4d79b1e3125bd619eb3a7 | /TDA_exp/1/test.R | 94871ded9e75f847172bff4fc054faec813e3b3c | [] | no_license | Jayanth-kumar5566/TDA | 18504ab326da3992fcff61821462b0569f653737 | 892844e6445d8518f5cf35c4bd2cc3918538f2e0 | refs/heads/master | 2021-04-27T02:50:52.104043 | 2018-07-02T09:46:52 | 2018-07-02T09:46:52 | 122,701,898 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,171 | r | test.R | library("TDA")
X<-read.csv("5/data6.csv")
X=X[1:2,]
summary(X)
#Creating grid
by<-0.1
margin_x<-seq(0,200,by=by)
margin_y<-seq(1,20,by=by)
Grid=expand.grid(margin_x,margin_y)
#plot(Grid)
distance <- distFct(X = X, Grid = Grid)
persp(margin_x, margin_y,matrix(distance, ncol = length(margin_y), nrow = length(margin_x)),... |
818b4a1809d37b2745d62c1f76a35e90a3c29ae0 | 8585dd8814d82d9a0870804d8a5acf9ad650d0ed | /man/point_to_interval_distance.Rd | e1347a3f1cc077d837bac43cb17b1c3dfacf7971 | [] | no_license | brentonk/coefbounds | 7500d38188c87b41c2b6ebdbef5f1d5f04517dce | 7c7b65a7d34ecec01ac6a6f1062c4eeab24cab08 | refs/heads/master | 2021-01-17T19:17:25.817055 | 2016-06-28T21:33:03 | 2016-06-28T21:33:03 | 59,677,826 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 696 | rd | point_to_interval_distance.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hausdorff_distance.r
\name{point_to_interval_distance}
\alias{point_to_interval_distance}
\title{Distance from a point to an interval}
\usage{
point_to_interval_distance(point, interval)
}
\arguments{
\item{point}{vector of points}
\item{int... |
0ad93b787245f5b27627bde1e9a741b5a0af322a | c8e490752620f08d43e6120844e9f46adf72ee4d | /R/ThreeArmedTrials.R | 76563de29e969f4fd48c9dc89310afa467ccb52c | [] | no_license | cran/ThreeArmedTrials | a4b31e0a9b43108e0811ee28a2b22f195e606c81 | b9743d694a1c0b5cc6efc6d3d0172c3c9d79068e | refs/heads/master | 2022-12-23T21:43:25.366401 | 2022-12-16T12:00:05 | 2022-12-16T12:00:05 | 28,789,762 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,678 | r | ThreeArmedTrials.R | #' @name ThreeArmedTrials
#' @docType package
#' @title Design and Analysis of Three-armed Clinical Non-Inferiority or Superiority Trials with Active and Placebo Control
#' @description The package \pkg{ThreeArmedTrials} provides functions for designing
#' and analyzing non-inferiority or superiority trials with an ac... |
6a20855414688c651ddc07f0b0f3b72bfd2335ca | e86b47a5bd015f11e376ad4a2fc23d61b0aab782 | /man/FDR_control_adaptive.Rd | 5950a61a8e8b89e908437f1017afa327618c01ad | [] | no_license | ziqiaow/IMIX | 57e60fd825db4612dfe630e50e2ba459b82c3c3c | ec276b2944c55403ede4edc5b299e7b4aa976ac2 | refs/heads/master | 2022-11-17T16:02:43.601468 | 2022-11-10T02:02:44 | 2022-11-10T02:02:44 | 238,075,557 | 6 | 5 | null | null | null | null | UTF-8 | R | false | true | 2,820 | rd | FDR_control_adaptive.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FDR_control_adaptive.R
\name{FDR_control_adaptive}
\alias{FDR_control_adaptive}
\title{The Adaptive Procedure for Across-Data-Type FDR Control}
\usage{
FDR_control_adaptive(lfdr, alpha)
}
\arguments{
\item{lfdr}{Local FDR for each gene of the... |
7fb8adef8b262ba8f8c46ed59b42ff9461beba7d | c7d5fa4a80cf89aeb6e17159a0953ad90ad1f4dc | /man/popgen.Rd | 02ea28a2be9d18311838653fc22f81b3976522dc | [] | no_license | cran/PopGenKit | 4ac75f13f1f189d006d2fe95550eecb8854d1011 | 57588283dc44a661993babce5570e2bec9a3945b | refs/heads/master | 2021-01-18T08:07:28.105429 | 2011-07-21T00:00:00 | 2011-07-21T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,054 | rd | popgen.Rd | \name{popgen}
\alias{popgen}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Compute allele frequencies, population genetic parameters, and pairwise Fst values from a Arlequin (.arp) input file
%% ~~function to do ... ~~
}
\description{This function does not do anything that other populatio... |
fc8bbcd1e4b136354faf763eed1a36d8d9d294c7 | b63f66b2cb6d40f69d6a5ff60ce5b100468110b1 | /R/lazy-package.r | 8be247941da3dc952b3234e3dc2542e4af901b04 | [] | no_license | lionel-/rlang | f32fb0130506c3c960a5a9e65fc417b373cec273 | 755a821b760150533009d4445e7c767e721a2361 | refs/heads/master | 2021-09-24T07:53:16.608225 | 2014-08-12T14:15:58 | 2014-08-12T14:15:58 | 73,101,742 | 0 | 1 | null | 2016-11-07T17:05:53 | 2016-11-07T17:05:53 | null | UTF-8 | R | false | false | 51 | r | lazy-package.r | #' lazy.
#'
#' @name lazy
#' @docType package
NULL
|
51b8c8a667168d1f5b3a5d0c79a19c7024424885 | c203696d6f02d775f7787623c386e1b59601f56e | /Instacart Market Basket Analysis Code/stability_metrics.R | d4ba2e05f745244467d34abb0c83bd9495f6089b | [] | no_license | ChanningC12/Kaggle | 4f6fe7e9698931e0bfa039243de0003f4709f958 | 51d8c9db8cf05eb7f766547d36960c8673896150 | refs/heads/master | 2020-04-05T11:43:25.087414 | 2017-08-14T01:29:38 | 2017-08-14T01:29:38 | 81,113,342 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,556 | r | stability_metrics.R | ######################### Stability Variables Creation ##################################
rm(list=ls())
gc()
library(data.table)
library(dplyr)
setwd("~/../Desktop/Kaggle & Coursera/Kaggle Projects/Instacart Market Basket Analysis/Raw Data/")
orderp <- fread("order_products__prior.csv/order_products__prior.csv"... |
0eb0afa8d416ce0b312dc3ab288a44f772d93119 | ed28855491d9b74da69b3b3841472ba63edbae82 | /Heart Attact Analysis.R | fe82631d9827be4c399999a19fb48fcf458f26a4 | [] | no_license | Kush-Trivedi/Logistic-Regression-K-NN-for-Heart-Attack | 50b9a776c3836b4c8b79e1cea23fa0f68e39250a | 1ac86c9ed8053977179608d358e0c0ba0f810418 | refs/heads/master | 2023-08-04T19:03:00.847019 | 2021-09-23T04:16:44 | 2021-09-23T04:16:44 | 409,444,026 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,834 | r | Heart Attact Analysis.R | # According to the World Health Organization, a terminal sickness is one that has a steady
# progression towards Heart disease and is currently the world's deadliest disease.
#According to data, 68 percent of deaths were caused by chronic long-term diseases, with
#heart disease being the leading cause.
# As a Entry... |
1aff8a0cc19deababddf61c95d8f682404987e23 | 7f823e306008025c5697dc5a88f5a9b1f54eaa30 | /man/clean.Rd | f0570806c5442ea234171daf89733037a9c1acbe | [] | no_license | renlund/proh | 0a0aced92d6755ea1aada721f68be76997d62278 | 041f68b7cb9ad730b2fd47d8d5e7e2e001afe803 | refs/heads/master | 2023-04-14T01:43:06.382209 | 2023-03-23T14:05:46 | 2023-03-23T14:05:46 | 21,493,531 | 0 | 0 | null | 2015-08-20T07:26:25 | 2014-07-04T10:16:31 | R | UTF-8 | R | false | true | 275 | rd | clean.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clean.r
\name{clean}
\alias{clean}
\title{Clean LaTeX files}
\usage{
clean()
}
\description{
Remove unnecessary LaTeX files
}
\details{
Sometimes LaTeX leaves a mess...
}
\author{
Henrik Renlund
}
|
f26c5f0a3be954ad0de840db96aa1849f193d982 | 61045b2f3c92394920f394fff7c5fbfbccb97d01 | /pipeline/secondary/inspect.R | 42d80a3f0d60af8184ee816657869d5b1f8da4b8 | [
"Apache-2.0"
] | permissive | arnaudceol/htsflow | d82f8519b352277c2aa1ead21673474456bf2729 | e4fdd5ba9d4457ef56fc331df9acad754cb42530 | refs/heads/master | 2020-05-21T15:16:12.231028 | 2016-07-13T12:19:32 | 2016-07-13T12:19:32 | 48,240,725 | 3 | 3 | null | 2016-04-28T09:01:29 | 2015-12-18T14:55:42 | JavaScript | UTF-8 | R | false | false | 11,730 | r | inspect.R | # Copyright 2015-2016 Fondazione Istituto Italiano di Tecnologia.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
012e7ebbb366deb48f4f3780ea1fb7729cdb7f94 | e3f8cf57114e8918c6df4e38ac494a4ba817aacb | /tests/testthat/test_read_messages.R | d778caf1b8949927a4e9d6853933262e5ce7276a | [] | no_license | MangoTheCat/mailman | c11dfebef49da305910bf7c497d18051daf5dfcb | 30cfacbfc48931c8f5d3b4c3ff92607d5d8ed46a | refs/heads/master | 2020-03-21T05:17:00.647316 | 2018-06-21T10:09:29 | 2018-06-21T10:09:29 | 138,153,015 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 712 | r | test_read_messages.R | context("Reading messages")
test_that("read_messages read and parses messages from a mailbox", {
if (!reticulate::py_module_available("mailbox"))
skip("mailbox not available for testing")
messages <- read_messages("data/test_mailbox.mbox", type="mbox")
result <- tibble::tibble(From=c("foo@bar.com", NA, "foo... |
e711c07c74ae9ee5ffda60ce294c6e5a5086d5aa | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/NISTunits/examples/NISTmillimeterTOpointComputer.Rd.R | 92ebfbf10c31ba2cd9dc48c2d2c03a9585c00091 | [] | 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 | 224 | r | NISTmillimeterTOpointComputer.Rd.R | library(NISTunits)
### Name: NISTmillimeterTOpointComputer
### Title: Convert millimeter to point
### Aliases: NISTmillimeterTOpointComputer
### Keywords: programming
### ** Examples
NISTmillimeterTOpointComputer(10)
|
922d5b125516792aabf57b2555aa8e648e905254 | 8d4dfa8b6c11e319fb44e578f756f0fa6aef4051 | /man/getNbRolledUpFeatures.Rd | 9b11dcb461427295b80f25a1d38c206622f05312 | [] | no_license | eahrne/SafeQuant | ce2ace309936b5fc2b076b3daf5d17b3168227db | 01d8e2912864f73606feeea15d01ffe1a4a9812e | refs/heads/master | 2021-06-13T02:10:58.866232 | 2020-04-14T10:01:43 | 2020-04-14T10:01:43 | 4,616,125 | 4 | 4 | null | 2015-11-03T20:12:03 | 2012-06-10T15:35:25 | R | UTF-8 | R | false | true | 496 | rd | getNbRolledUpFeatures.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExpressionAnalysis.R
\name{getNbRolledUpFeatures}
\alias{getNbRolledUpFeatures}
\title{Get number rolled up features per row}
\usage{
getNbRolledUpFeatures(eset, method = "vector")
}
\arguments{
\item{eset}{ExpressionSet}
\item{method}{c("ve... |
e2a916786fecb22b12140eee3f99a90233391900 | 7dfd5181131882a16d24c4830f0cca24d1057d4f | /R/cleanNZGridEA.R | 85505286c74be4c48d2ccdabb0bcd2bdff3d72b0 | [
"Apache-2.0"
] | permissive | CfSOtago/gridCarbon | b4239182a67e453dba541e81571f5b7f5b731c48 | 25d433054dca935aa434e4d89de0fc826373e2fc | refs/heads/master | 2022-04-30T18:18:22.389263 | 2022-04-01T11:14:03 | 2022-04-01T11:14:03 | 157,133,798 | 2 | 2 | Apache-2.0 | 2022-04-01T11:14:04 | 2018-11-12T00:05:06 | HTML | UTF-8 | R | false | false | 1,275 | r | cleanNZGridEA.R | #' \code{cleanNZGridEA} cleans up the raw grid gen file from the NZ EA data website
#'
#' These are not in pretty form so we clean them up to a long form file and fix the dateTimes.
#'
#' Note that rDateTime will be NA for the DST breaks which equate to TP49/50. We really dislike DST breaks.
#'
#' @param dt the data... |
74990d6f16a857ddb54cca8f8dc20facbc743325 | 749f4c1b663c44a623b8e76747980701af51c8de | /code/lib/cleanup.R | 1abd6a7e1db78b66fba26a9ea3497a85d62afbd0 | [] | no_license | fusioncl/SueldosGovScrape | ee7c68d73e9740a91e7f8946d0287225a9becb48 | eb0bb55f6b857c54b794c573d07dc41538818e2b | refs/heads/master | 2020-03-21T11:46:32.890393 | 2018-06-24T19:04:58 | 2018-06-24T19:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,288 | r | cleanup.R | library(tidyverse)
library(stringr)
#### Extract ----
# Get list of files in directories
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
files.output <- list.files(path = '../output', recursive = TRUE)
files.output <- paste0('../output/', files.output)
# Process and put into a data.table
combine.csv <-... |
151dc3993a2789203484ea47b4332f93208301d5 | 02633b4c1267a18ee0ac86e26a0af42da91c61e5 | /server.R | a421660d6f278896ff6c1aad24a34e1234b7025e | [
"MIT"
] | permissive | voltek62/titanicShiny | 7c2786fcb55a2e15d6553473c5449180393046a4 | dafd9a23460aa646c8f8787d16020cabab2a3af1 | refs/heads/master | 2016-09-05T17:38:17.212489 | 2015-06-14T20:38:53 | 2015-06-14T20:38:53 | 37,426,425 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,089 | r | server.R |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
library(ggplot2)
library(randomForest)
library(C50)
library(dplyr)
set.seed(1)
train <- read.csv("train.csv", stringsAsFactors=FALSE)
extractFeatu... |
b7580aefd583b8fc762534bc154ee187d141eaf3 | af5f1ed04b3d150beff264ea35e8393220c28466 | /R/statements.r | cf34ac54ca9d38f5aba7f088c17aade226cfe349 | [
"MIT"
] | permissive | zamorarr/rlox | a98752171c9765653807e4075db06f60942e0aa7 | cf11b213d072a7a3c9ccd46921640c8123ec6c91 | refs/heads/main | 2023-07-22T08:09:21.513147 | 2021-08-27T02:39:38 | 2021-08-27T02:39:38 | 391,798,133 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,098 | r | statements.r | #' Statements
stmt <- function(x, subclass) {
structure(x, class = c(subclass, "lox_stmt", class(x)))
}
is_stmt <- function(x) inherits(x, "lox_stmt")
#' @param statements list of statements
#' @rdname stmt
stmt_block <- function(statements) {
x <- list(statements = statements)
stmt(x, "lox_stmt_block")
}
#' @... |
1652c6b57c336b5f1d5faf571f1253b7c9ba2b0c | e97886d0cae8a5f0b563c52e4a6dd8a3765bea2e | /R/numbers.R | 87b6ded61cfdc123ffa818a699c3afbee8a2a74e | [
"MIT"
] | permissive | Vaniza/funModeling | e6aac3f082b833e5c39250147c66ca327af93e71 | 7033adb501dddf6eb4dca86e8c253c24b7d9ddd7 | refs/heads/master | 2021-07-20T00:03:29.059793 | 2017-10-23T01:08:53 | 2017-10-23T01:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,836 | r | numbers.R | #' @title Plotting numerical data
#' @description
#' One plot containing all the histograms for numerical variables. NA values will not be displayed.
#' @param data data frame
#' @param bins number of bars (bins) to plot each histogram, 10 by default
#' @examples
#' plot_num(mtcars)
#' @return plot containing all numer... |
336a35a561bbb19f78bbdcf2018d1aee14d017fd | 75228b6212e470735565ae2ed604d5bcee757860 | /man/run_stacking_child_models.Rd | 15f2a7aa6e974d0d06fee32d81aeb436b3d1eff7 | [] | no_license | dahcase/mbgstacking | 54c34ba5cd393f394c13e6fe0e15450489b32a44 | 7c0f335f680f5a78cc5bb19dda7e2e0de7e855ce | refs/heads/develop | 2020-12-30T12:00:31.533693 | 2019-03-05T00:11:20 | 2019-03-05T00:11:20 | 91,488,490 | 0 | 0 | null | 2017-07-06T06:14:20 | 2017-05-16T17:57:24 | R | UTF-8 | R | false | true | 530 | rd | run_stacking_child_models.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_stacking_child_models.R
\name{run_stacking_child_models}
\alias{run_stacking_child_models}
\title{Run child models for stacking}
\usage{
run_stacking_child_models(st)
}
\arguments{
\item{st}{stacker governer.}
}
\description{
Fits all mod... |
aadc06449c80df1bd221c754e848bc39a59a6a5d | 0a906cf8b1b7da2aea87de958e3662870df49727 | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956369-test.R | 9444f14e008134107a7c22a87dbb2be88d8fefa6 | [] | 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 | 858 | r | 1609956369-test.R | testlist <- list(x = -5.78579071015403e+303, y = c(2.36984410282499e-310, 3.22526053605166e-319, 4.02152998100784e-87, 1.26694375386342e-279, 8.28682114717519e+73, 4.89932798908251e-306, -4.80948513475625e+306, 5.48684425442826e-310, 3.28027968637254e-317, 0, NaN, 3.91107305076628e-274, -1.34765550943377e+28, 7.546... |
db3013120ba31063beb3a9d4c21854550663e434 | e14092f46ac4d514a18577c27f430ad2520d4ad5 | /transform/impute_na.R | eb6dda23e180455a949c20058acfee816d8dc63c | [] | no_license | jennyio/forecast | b39924e91f1456b237f607742976d353ef9531f3 | f11e6937f809eae37c819684f34cb189cecc8924 | refs/heads/main | 2023-08-24T10:21:16.917391 | 2021-10-24T20:41:16 | 2021-10-24T20:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 409 | r | impute_na.R | #' impute_na
#'
#' @param x numeric vector, with NA values
#' @description Impute missing values by 'next observation carried backwards'
#' @return
#' @export
impute_na <- function(x) {
# nobc = next observation carried backwards
ret <- try(imputeTS::na_locf(x, option = 'nocb'), silent = T)
if('tr... |
d13b56c2cc7a1284e1373410173dfbd0fc1c6dbd | eb68489f8c7c86a82cbbe80a37024e75b9e22e67 | /SampleRCodeForOccurranceAnalysis.R | f743754649b857557deed5995a398fa567ed7fdb | [] | no_license | kelseyefisher/employing-vhf-radio-telemetry-to-recreate-monarch-flight-paths | aa16065f0e14a12971afacf31bd4813c897263d9 | 3e3bcb803b16d8eb5983b15dfc8aad35d57439c8 | refs/heads/master | 2022-04-03T16:40:48.601299 | 2020-02-19T16:46:00 | 2020-02-19T16:46:00 | 237,479,055 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,192 | r | SampleRCodeForOccurranceAnalysis.R | ##################################################################################################
##read FORMATTED file
Monarch<-read.csv('RadioTagged_SummarizedEstimatedLocations.csv', header=TRUE)
head(Monarch)
#############################################################################################
libra... |
b34aec9927b98c2e758fb86bf245cb6b2ec1e43a | da8e7f6767e1c2a3483f10bb6f1371ee208006ca | /main.R | f824d0f7bb5c836b23d4a69fb2c5757d4bc79411 | [] | no_license | emptycoder/TikhonovMethod | 04daae18e4e0fd630ebb4b0da7476330896e3e4a | c7cebdbc922d4fdb348799b3eaf93b4114ce9d5e | refs/heads/master | 2023-03-26T10:46:32.009520 | 2021-03-27T08:50:56 | 2021-03-27T08:50:56 | 351,232,242 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,907 | r | main.R | require(readxl)
require(functional)
require(ggplot2)
source("methods.R")
data <- read_xlsx("matrixAndVector.xlsx")
# Preparing data
vector <- as.vector(data$Vector)
vector2 <- as.vector(data$Vector2)
matrix <- as.matrix(data[,3:6])
matrix <- matrix[apply(matrix, 1, Compose(is.finite, all)),]
matrix2 <- as.matrix(dat... |
dd74a8f9466e2995c2a139cd9fe59042be998167 | 13f8119d64bfc96127215510f67ae69f1957edd3 | /man/get_nfl_positions.Rd | f61ff51427c36a6114082ff113c8e2a272c0e656 | [] | no_license | kimjam/dfstoolkit | 1a8c8642ee8adedcbb4895a91eb63c2fa53e2d65 | 885956efd26c6db8f72ba72e17ab9ef13c44500d | refs/heads/master | 2020-05-31T20:37:41.533738 | 2017-09-04T17:56:38 | 2017-09-04T17:56:38 | 38,501,171 | 0 | 1 | null | 2017-09-04T17:56:39 | 2015-07-03T16:15:58 | R | UTF-8 | R | false | true | 433 | rd | get_nfl_positions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_boxscore_stats.R
\name{get_nfl_positions}
\alias{get_nfl_positions}
\title{get_nfl_positions}
\usage{
get_nfl_positions(links)
}
\arguments{
\item{links}{Player page urls}
}
\value{
Returns positions.
}
\description{
Get NFL player's posi... |
e37fa537522505dd793e6c571853736ab39046d4 | d3849c224f6976451efb8b274e8fb340884ef9ee | /readphase.R | 0b5dc841957a2c2fc57ed34d6cc14f19397508b3 | [] | no_license | ijwilson/sharedhaplotypes | 5588ae67df4ab2caa272bdcf4d0d9e77421a60cd | f6b39374e34de20f24d402c46936d3533866880e | refs/heads/master | 2020-05-23T09:04:43.565162 | 2019-10-31T00:00:00 | 2019-10-31T00:00:00 | 80,431,476 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,222 | r | readphase.R | source("read_phase_functions.R")
# Read the pairs output. We have columns
pairs <- readpairs("phase1K.out_pairs")
colnames(pairs) <- c("name", "hap1", "hap2", "pprob")
## Split the phased output
splitter(pairs,c(4,8,11))
## The first row that begins HG
w = min(grep("HG",pairs[,1]))
## Get the raw haplotype frequenci... |
af1d2fd9b604303a03efd48c7d97bed88cd61f6b | 5b722b3e230f078b59c232a0554c416150232bbf | /R/util-convert_otn_erddap_to_att.r | 67a2fc641719e975cc982a1b1dc80ff705af947d | [] | no_license | jsta/glatos | 3abdd25c67455cacf04cbb7a9ca53718745ab917 | f1e27cf63da53b2ae4c46e4b47d338c1f558d004 | refs/heads/master | 2022-07-29T00:04:04.783120 | 2022-07-05T18:56:00 | 2022-07-05T18:56:00 | 220,477,927 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,578 | r | util-convert_otn_erddap_to_att.r | #' Convert detections, transmitter, receiver, and animal metadata to a format
#' that ATT accepts.
#'
#' Convert \code{glatos_detections} and transmitter, receiver, and animal
#' metadata from the OTN ERDDAP to \code{ATT} format for use in the Animal
#' Tracking Toolbox (\url{https://github.com/vinayudyawer/ATT}).
#'
... |
23aa12454b67e816a21903df9060474261338511 | 7b9cfba80503c32354d36c58f1fddb1c577fd610 | /functions/judge-lime.R | 04d808131824cc13e3141b5f6bc39ed1e7ea2e0e | [
"MIT"
] | permissive | DanOvando/scrooge | 5e321c67797268e075273e7f710602e71bd2ef31 | 458f5950b2a029523b89fac20ac8b8e65e822d14 | refs/heads/master | 2021-08-22T17:36:05.134247 | 2018-10-22T22:48:23 | 2018-10-22T22:48:23 | 71,493,019 | 0 | 0 | MIT | 2018-07-26T22:56:01 | 2016-10-20T18:38:32 | JavaScript | UTF-8 | R | false | false | 1,477 | r | judge-lime.R | judge_lime <-
function(observed,
predicted,
observed_variable = f,
predicted_variable = "f_t",
group_level = year) {
group_level = enquo(group_level)
observed_variable = enquo(observed_variable)
predicted_values <- predicted %>%
filter(variable == predi... |
a3201a8777c6583f42c2042fd0059101ce484411 | 9db210febfc62d8eec279ab6b577fd44cfc067f4 | /R/density_LS.R | 20ca85b16701d33abc931b56ffc4d0ac5e717f1f | [] | no_license | cran/EBCHS | b9b35b06efcf5788a57c88df9b1bea64b000cf35 | c432c0c997145eaeb9316bf610b8d9096d493dcb | refs/heads/master | 2023-05-20T07:59:52.157989 | 2021-06-01T06:20:08 | 2021-06-01T06:20:08 | 372,897,190 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,612 | r | density_LS.R | #' log-density derivatives--parametric approach
#'
#' Assuming the log density of the chi-squared statistics admits a parametric form, this function
#' estimates up to the fourth order log density derivatives.
#'
#' @param x a sequence of chi-squared test statistics
#' @return a list: the first-to-fourth log density de... |
b790cbeeee4631fc7b85c866ad071245ef149800 | 4b92cdefa377126dfbf2e79a831d82ec10f083b1 | /R/aop_cytoscape_methods.R | 03b69844f9fff09075c6cf4f478385a667b8cefe | [
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | DataSciBurgoon/aop | afe589a69a9f5431f59e860a1e0e49fdca1f04ed | 323b08977970cc7f76eeccb1e299b9844a9e0be7 | refs/heads/master | 2020-04-08T15:04:56.472133 | 2015-09-29T15:54:41 | 2015-09-29T15:54:41 | 41,174,739 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,037 | r | aop_cytoscape_methods.R | #' @include aopCytoscape_Class.R
NULL
#' Get Node Name from ID
#'
#'
#' Given an id, this method returns an \code{aop_cytoscape} node name.
#'
#' @param theObject is an AOP as an object of class \code{aop_cytoscape}.
#'
#' @param id an object of class \code{character} such as "389".
#'
#' @return the ... |
0a8473175c08bbb0927857178d6ecc7cb3e2bbdd | 9f77e2840e495b200ef099608c79dc1c22aaa798 | /project2.R | d17380c2cc09f0d2d981d59f11903fd3d6b8e2a4 | [] | no_license | tdhock/DeepLearning- | 7b3ad7f793cd66996cf522f41f9dd0e32e98f5d2 | a436507fdead6b21506bd3761598c901ca4f9a39 | refs/heads/master | 2022-06-19T03:21:43.116788 | 2020-05-02T01:27:25 | 2020-05-02T01:27:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,474 | r | project2.R | library(data.table)
library(ggplot2)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
# predicts the most occuring label on everything
baseline <- function( x_mat, y_vec, x_test, y_test )
{
zeros <- length(y_vec[ y_vec == 0 ])
ones <- length(y_vec[ y_vec == 1 ])
baseline = max( zeros, one... |
13f1479f20ba3b702abf2186cf3d811c51fa0737 | e1b66eb9387ccc2012fe645450aba3fc3247457f | /R/gdalControls.R | df349e175602bda60f39f052af734bc600ce82dd | [
"MIT"
] | permissive | mlampros/MODIS | 26d0f6e27404300c342b6d1e23e181d41d570437 | 012c3fa9960fdaa57d7abe70bb19ee0307ea800a | refs/heads/master | 2022-12-05T18:24:22.973205 | 2020-06-24T05:58:11 | 2020-06-24T05:58:11 | 289,838,528 | 1 | 0 | NOASSERTION | 2020-08-24T05:42:17 | 2020-08-24T05:42:16 | null | UTF-8 | R | false | false | 3,506 | r | gdalControls.R | ### input projection -----
InProj <- function(product) {
if (product@TYPE[1] == "Tile") {
"+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +R=6371007.181 +units=m +no_defs"
} else {
"+proj=longlat +ellps=clrk66 +no_defs"
}
}
### output projection -----
OutProj <- function(product, extent, ...) {
opts <- combin... |
97e010d44880fccb8a9ee14e45faf9fa6e9e09f0 | ef4eb23543224c14f4cae67190d1f82bd881a4a4 | /IDESSA/BushEncroachment/GoogleTrainingSites/Valdidation_RF_Model.R | 6a16f0fc86301a3d74683d9af742cba6ccd4e7aa | [] | no_license | environmentalinformatics-marburg/magic | 33ed410de55a1ba6ff943090207b99b1a852a3ef | b45cf66f0f9aa94c7f11e84d2c559040be0a1cfb | refs/heads/master | 2022-05-27T06:40:23.443801 | 2022-05-05T12:55:28 | 2022-05-05T12:55:28 | 9,035,494 | 6 | 7 | null | null | null | null | UTF-8 | R | false | false | 1,432 | r | Valdidation_RF_Model.R | ################### Control Random Forest
setwd(out)
load("test.RData")
load("results.RData")
pred_test <- c(predict(results, test))
obs_test <- c(test$class)
cm<-confusionMatrix(pred_test,obs_test)$table
#ROC-Curve
AUC=roc(obs_test,pred_test)$auc[1]
Validation<-classificationStats(pred_test, obs_test)
Validation$... |
64a125fd26d29405b434fe862d63f5a96db8a432 | 7ff4a3a085076ee33d34dd0dacb171ac7eb99240 | /R/atsmeans.R | 6687d31e0c4406b96f4dd3188ed9dfa75da7c29e | [] | no_license | tonizhong/SMARTAR | d77ff84835845ab66e62d06816d9bd96248efdaa | b0002af226857a0ebbd9134cabe672b2dfe3e377 | refs/heads/master | 2023-01-03T11:48:51.774436 | 2020-10-27T13:01:12 | 2020-10-27T13:01:12 | 286,015,943 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,940 | r | atsmeans.R | #' Identify adaptive treatment strategy and estimate strategy values
#'
#' Return a message that lists all the
#' adaptive treatment strategy embedded in SMART design.
#' It also gives the estiamted strategy values and the
#' variance-covariance matrix of estimated values.
#' @param data Input data frame of the sequent... |
a337f31b17001ec95d35215fb4dbcd4fac91368f | c944ad97280ca8f6987283fd9f0d392f376f8d75 | /man/get_city_issues.Rd | aa033c40e374c51fcf29f5ddbd2f5f62703e802d | [] | no_license | clemp/seeclickfixr | f86eeb24496b5797db640c340c59d2945f02ce16 | 58618f084a60340799bd98e277d9542b94c819ee | refs/heads/master | 2021-01-22T10:18:29.936844 | 2015-09-18T20:51:08 | 2015-09-18T20:51:08 | 17,094,970 | 1 | 2 | null | 2015-09-18T20:51:08 | 2014-02-22T21:18:12 | R | UTF-8 | R | false | false | 3,212 | rd | get_city_issues.Rd | \name{get_city_issues}
\alias{get_city_issues}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Query all issues in a given location
}
\description{
Returns all issues in the specific location, specified either by coordinates or by name/address.
}
\usage{
get_city_issues(city, status = "open,ackno... |
f1208d36bb2f9b89edd84034c91081489828b64a | cf2e5981c5aab9cce49718bf01616e172ffb57d2 | /R/perguntas.R | 8d20d8270e00c748031e63de8b84eddc4c3bd904 | [] | no_license | victorh1705/World-Bank | f8966e1cdbddf823f6caabc19d121375f66ea739 | 493d18045db340824f7f9e7b24b6716a43c54120 | refs/heads/master | 2020-03-12T11:55:42.651296 | 2018-06-21T21:18:38 | 2018-06-21T21:18:38 | 130,607,227 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,283 | r | perguntas.R | warnings()
# install.packages('devtools')
# install.packages('plotly')
# install_github('EL-BID/Libreria-R-Numeros-para-el-Desarrollo')
# install_github("arcuellar88/govdata360R")
# install_github('EL-BID/Agregador-de-indicadores')
library(iadbstats)
library(devtools)
library(agregadorindicadores)
library(ggplot2)
lib... |
068033e531e77fc6613451f2f1ed9e57d7a0da0c | 6c324098a05774faec4d3aac4409fc15b62e54f1 | /man/cellsceek_test.Rd | 67cb5b453640bba851ba7a5921cdee41a8370b10 | [] | no_license | EugOT/trendsceek | 20d020549ec3b51251ee87db6412b4f1bf768131 | 2688bf4fcd3635aeebfed7cbb74cb66b9379f58a | refs/heads/master | 2020-08-02T20:25:20.315353 | 2019-09-28T23:19:06 | 2019-09-28T23:19:06 | 211,497,148 | 0 | 0 | null | 2019-09-28T12:29:26 | 2019-09-28T12:29:26 | null | UTF-8 | R | false | true | 1,489 | rd | cellsceek_test.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trendsceek.R
\name{cellsceek_test}
\alias{cellsceek_test}
\title{Identify cells located in regions exceeding random background expression level}
\usage{
cellsceek_test(pp, nrand = 100, cell_alpha = 0.05, h = NA)
}
\arguments{
\item{pp}{A poin... |
ac5de57145544ef9578f10ad5b6692c0d07716db | 63e1231faa30a4cea6dd9f25e87c2372383aa2f4 | /man/calcMean.Rd | 60e6dfdc51c555d3dce83bc6eda33c32bdfcc432 | [] | no_license | cran/MSEtool | 35e4f802f1078412d5ebc2efc3149c46fc6d13a5 | 6b060d381adf2007becf5605bc295cca62f26770 | refs/heads/master | 2023-08-03T06:51:58.080968 | 2023-07-19T22:10:23 | 2023-07-20T01:47:18 | 145,912,213 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 327 | rd | calcMean.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PMobjects.R
\name{calcMean}
\alias{calcMean}
\title{Calculate Mean Probability}
\usage{
calcMean(Prob)
}
\arguments{
\item{Prob}{Prob slot from an object of class PMobj}
}
\description{
Calculate Mean Probability
}
\keyword{inte... |
f46abfa345858a18e0398f391a5225a1860719e3 | 6e515ec790d899c0cca6da400cf8f8a5790a5eeb | /cachematrix.R | e4055e7ecc8398b914ec84e796eb7ec380517165 | [] | no_license | pickletime/ProgrammingAssignment2 | 5a2ce52a0e2fbc78e39cd633b358d5200ba066b4 | 66a332bb44670434b4add8903596e4416a4d4830 | refs/heads/master | 2021-01-21T06:30:48.290577 | 2017-09-01T02:38:42 | 2017-09-01T02:38:42 | 101,943,359 | 0 | 0 | null | 2017-08-31T00:59:48 | 2017-08-31T00:59:48 | null | UTF-8 | R | false | false | 1,443 | r | cachematrix.R | ##This function creates a special "matrix" object that can cache its inverse
##Then able to return the inverse of aforementioned special "matrix" from cache
makeCacheMatrix <- function(x = matrix()) {
#set value of the matrix, get value of matrix
#set value of the inverse, get the value of the inver... |
7014beae0abbd182c7e84ba5b93a4c7ed7b6b5b5 | 4459eb5432916b4ad6c5c5d911b50c9d2fec1ad5 | /sandbox/pulkit/man/CDaR.Rd | bdb7a786b3f579a195d85d2dbc067a61c1a14998 | [] | no_license | braverock/PerformanceAnalytics | 057af55b0a4ddeb4befcc02e36a85f582406b95c | 49a93f1ed6e2e159b63bf346672575f3634ed370 | refs/heads/master | 2023-08-03T10:18:27.115592 | 2023-03-29T09:23:17 | 2023-03-29T09:23:17 | 58,736,268 | 209 | 113 | null | 2023-05-23T17:46:08 | 2016-05-13T12:02:42 | R | UTF-8 | R | false | false | 1,449 | rd | CDaR.Rd | \name{CDaR}
\alias{CDaR}
\alias{CDD}
\title{Calculate Uryasev's proposed Conditional Drawdown at Risk (CDD or CDaR)
measure}
\usage{
CDaR(R, weights = NULL, geometric = TRUE, invert = TRUE,
p = 0.95, ...)
}
\arguments{
\item{R}{an xts, vector, matrix, data frame, timeSeries
or zoo object of asset returns}
... |
9f26688e3a90afa0e5fd57bc8ee4cdf8c02c06f2 | 5b3e98e1db69b06192b063005e80c8fd417520cc | /Siwei_analysis/code_R/plotting/code_30Aug2021_plot_Fig_S8_merged.R | ef9c9ed7a3a69a815e64661846b52c3222aced07 | [] | no_license | endeneon/VPS45_repo | b2a48291bc209a058918af9038cdf4283dd9ae9c | 344d54c9ced3cee055cb5e0f5856dd67893977bd | refs/heads/main | 2023-08-08T00:23:24.599726 | 2023-07-24T19:37:56 | 2023-07-24T19:37:56 | 351,939,958 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,368 | r | code_30Aug2021_plot_Fig_S8_merged.R | # Siwei 27 Aug 2021
# Re-plot Fig S8 with merged data
# init
library(ggplot2)
library(RColorBrewer)
library(readxl)
# > RColorBrewer::brewer.pal(3, "Dark2")
# [1] "#1B9E77" "#D95F02" "#7570B3"
# load data
# weighted mean firing rate
df_to_plot <-
read_excel("Fig_S8_rev_data.xlsx",
she... |
db9ee1e0ae5a221072223b522ee927a6123fdcfd | bbd73e22684497a51ec61013277dcce89d417485 | /src/regression.R | 74d976816f4b77da092866d096df71fefd6e6e75 | [] | no_license | tlaepple/paleolibrary | a432c6405388474ca3295fdc2aadd65f9f6edbac | daed039f08854dcbb99b8194fd99ce7fec662842 | refs/heads/master | 2021-01-23T08:34:51.242448 | 2011-10-31T18:27:44 | 2011-10-31T18:27:44 | 2,659,270 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,508 | r | regression.R | #http://www.rsc.org/images/brief10_tcm18-25920.pdf
#http://finzi.psych.upenn.edu/Rhelp10/2010-February/227865.html
## implemented by Thierry Themenau
# BD Ripley and M Thompson, Regression techniques for the detection
#of analytical bias, Analyst 112:377-383, 1987.
deming<- function(x, y, xstd, ystd, jackknife=T... |
29a204b7bf6df8f9ae0925b5487eed8040729e33 | 96ad58e95c8d7c78b86cde1c8843078dbc09c526 | /SingleCellSignalR/man/visualize.Rd | 25d9502ca458079f6b7e837bbac867446041bc53 | [] | no_license | MaximilianLombardo/SingleCellSignalR_v1 | d66a42f745caff337824fb5206fbc4d529cecaae | feecb30e9ed05b55d672cd4efaebccdbf8260ad0 | refs/heads/master | 2022-12-06T06:59:24.638530 | 2020-08-16T15:51:57 | 2020-08-16T15:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,174 | rd | visualize.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualize.R
\name{visualize}
\alias{visualize}
\title{Visualize}
\usage{
visualize(
inter,
show.in = NULL,
write.in = NULL,
write.out = FALSE,
method = "default",
limit = 30
)
}
\arguments{
\item{inter}{a list of data frames resul... |
09d6a1d3619dc807ee08e66c0f99048866d4c429 | aa979eb405e4ab209e337a001b42721fcc384526 | /scripts_mutsig_to_muts/deconstructSigs.r | 7e7e6da127548d461289bf072080af50d523a3fc | [] | no_license | msecrier/assign_mutsigs_with_mutations | d545bd36f13747264884581747a3b40bbbb0459e | d175ab40b95e5c15b5bd1b7b0a19531f15489606 | refs/heads/master | 2023-03-20T19:14:31.158181 | 2021-03-26T13:44:24 | 2021-03-26T13:44:24 | 274,712,177 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,291 | r | deconstructSigs.r |
args = commandArgs(trailingOnly=TRUE)
## load libraries
library(deconstructSigs)
library(gplots)
# read the cancer type name
input_file=args[1]
output_file=args[2]
seq_type=args[3]
path_cosmic=args[4]
print(input_file)
load(path_cosmic)
# define which type of count we should be using!
if (seq_type == 'wes') {
... |
a4855e5a3662b2917c65b26ffd1334b33755cb67 | de90e57188cdc9c7f140230e610aed02e3ffd14a | /ui.R | afbeee4462f37cf1862e2c40784b3a2800b8ff3c | [] | no_license | patrickfonti/Ltal_Project | 8571935f3cc59e537ee377dff11c12acc8bd7657 | 764ab840d8291e673e8b05c7ea1a344ceaee68c4 | refs/heads/main | 2023-03-06T15:37:53.938964 | 2021-02-14T16:32:09 | 2021-02-14T16:32:09 | 332,077,793 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,839 | r | ui.R | #
# This is to plot data from the Loetchental project
#
# add bslib thematic
material <- bs_theme(
bg = "#202123",
fg = "#B8BCC2", #'white',
primary = "#EA80FC",
secondary = "#00DAC6",
success = "#4F9B29",
info = "#28B3ED",
warning = "#FD7424",
danger = "#F7367E",
base_font = font_google("Indie Fl... |
d3fedde72890a08f90a459f27633fc50f30e7078 | 02e2122532096c2d548665f6d6c771cd7cea7930 | /benchmarking/R_code.R | cc5df7307025f0ee4e694843822872309596dc47 | [
"MIT"
] | permissive | Psy-Fer/deeplexicon | d7c67f1e9f4fb310110353a279ce5c78c10a3768 | de177db383a109b31692c93d1c7119d9a1159569 | refs/heads/master | 2021-11-16T00:10:31.833367 | 2021-08-31T10:12:56 | 2021-08-31T10:12:56 | 207,097,317 | 26 | 7 | MIT | 2021-08-31T10:12:58 | 2019-09-08T10:39:30 | Jupyter Notebook | UTF-8 | R | false | false | 10,986 | r | R_code.R | library(ROCit)
# Get sensitivity for given specificity
Sn4Sp <- function( Metrics , Specificity ) {
for ( i in c(1:length(Metrics$SENS))) {
if ( Metrics$SPEC[i] < Specificity ) {
print(paste( i, Metrics$Cutoff[i], Metrics$SENS[i], Metrics$SPEC[i], Metrics$ACC[i]))
break
} } }
# Get Youden index (J-statis... |
5f15b0246620c80089dd07be52eba474e01c6da2 | bf302f647f6ae91b9a3cc6055d936b91541d3876 | /Handling multiple CSV files/test_hw2.R | 5c1d57e314dbf5d3a7310f536c8142c151912b9f | [] | no_license | Abhishek19895/R_prog_2015 | 60043eed994556cbaab762c12aea0e4a59ce3a20 | 2baa9dcf72689653ed7e423864a6ae4a6c414007 | refs/heads/master | 2020-12-23T11:47:29.070205 | 2016-08-11T18:25:41 | 2016-08-11T18:25:41 | 41,228,307 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 816 | r | test_hw2.R |
library("testthat")
test_dir(".")
cat("\nRunning unit tests\n")
source("mean_auc.R")
source("num_trees_auc.R")
source("min_num_trees.R")
test_that("mean_auc", {
cat("\nTesting mean_auc.R \n")
a <- mean_auc("exp-auc")
expect_that(length(a), equals(2) )
expect_that(names(a), equals(c("campaign","mean_auc")))
... |
c1deb647febd7039947f8f0719a26cb085f0ec0e | e1e81c4482a8646fb923bd8f51c3194a9d94b778 | /man/fars_read_years.Rd | 2df344114df5034448003666d95b7b3a262972e2 | [] | no_license | pchhina/fars | 2702a20e7ed5cb769aa9e0a2256d9d96cd96e3d0 | 693639cf4f0ff173518bca5e87ae996697de1e87 | refs/heads/master | 2020-03-27T20:41:24.785717 | 2018-09-02T15:55:06 | 2018-09-02T15:55:06 | 147,086,691 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 712 | rd | fars_read_years.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions.R
\name{fars_read_years}
\alias{fars_read_years}
\title{Reads data from a file for each year, subsets month and year and saves it into a list}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{a single year or a vector ... |
5ac408a9a800583f85e1cd2522817389dba43005 | 55cad56f6731914f4af697a6893e6be27b43ca78 | /cachematrix.R | 93756cf73dec0a68c42ccd2119f61adcc93000d4 | [] | no_license | bsylvemdek12/ProgrammingAssignment2 | 754184c0b3b88dd4eacbe8496b69ca7c9eb52626 | 43d5d101ad624615e9ce97fef7f464442fcf5a06 | refs/heads/master | 2021-01-11T03:55:32.450161 | 2016-10-18T17:59:41 | 2016-10-18T17:59:41 | 71,272,623 | 0 | 0 | null | 2016-10-18T17:17:23 | 2016-10-18T17:17:22 | null | UTF-8 | R | false | false | 1,107 | r | cachematrix.R | ## The first function is basically an object that allows for storing of the matrix
## if it has been solved already. It gets or sets similar to what you do in object
## oriented programming. x stores the matrix to be solved, m stores the inverse.
## This function handles storing the matrix and its inverse
makeCacheMa... |
e183c7726976b276a4f2a9bf78b328cdd3a4cc5b | 4527a4115dec631c1b1ca75caf6ffdc9c2533328 | /man/nameHash.Rd | 38755430cf9b2a7d3ba11e2a56ed7fc4f88fe04b | [] | no_license | seaYali/dagLogo | ce0aded0290815657a1d4dde294b75baa22812b8 | ab914c7d57e570fedfc2c441e7e12845fb403feb | refs/heads/master | 2021-04-26T16:45:13.975463 | 2020-06-26T15:03:32 | 2020-06-26T15:03:32 | 123,968,139 | 0 | 0 | null | 2018-03-05T19:28:40 | 2018-03-05T19:28:40 | null | UTF-8 | R | false | true | 510 | rd | nameHash.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dagLogo.R
\name{nameHash}
\alias{nameHash}
\title{convert group name to a single character}
\usage{
nameHash(nameScheme = c("classic", "charge", "chemistry", "hydrophobicity"))
}
\arguments{
\item{nameScheme}{could be "classic", "charge", "ch... |
2c5b8d8be541dfb411368e6b50bd183c4a96565c | 3b63c83f878c3c4df3e46c15cf3193ec123a62f0 | /Step_8th_Corr_EvoMyelinCBF/Step_1st_PrepareData_ForSpinTest.R | d8f855de1935a1b1414725a7ccfc07af7ecbde8c | [] | no_license | ZaixuCui/pncSingleFuncParcel_Old | 4526111154ffdc32eb766ab1a367b6bee8d85c8a | d9f640215b0a4f3897a1956f60470d8b154fa0ce | refs/heads/master | 2020-06-14T20:09:39.297967 | 2019-07-04T15:30:32 | 2019-07-04T15:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,374 | r | Step_1st_PrepareData_ForSpinTest.R |
library(R.matlab)
ReplicationFolder = '/data/jux/BBL/projects/pncSingleFuncParcel/Replication';
ResultsFolder = paste0(ReplicationFolder, '/results');
VariabilityLabel_Mat = readMat(paste0(ResultsFolder, '/SingleParcellation/SingleAtlas_Analysis/Variability_Visualize/VariabilityLabel.mat'));
VariabilityLoading_17Syst... |
573246fa880e4e5aeaa3cdf290d0334be1abd8e7 | ebc76e245b1c6ad32195a9a0c9fd26826b5a8173 | /man/src_snowflakedb.Rd | f6f3a00ff608fe8f8b884184aee3326824d8bae2 | [
"Apache-2.0",
"MIT"
] | permissive | eddychansnowflake/snowflakedb-test | 3672cfd5135b67a7c75da95dc87027ae83b6d1ea | a8916963828016280b1562a1b8fe8a9262910809 | refs/heads/master | 2021-01-11T02:25:07.566211 | 2016-10-14T19:21:15 | 2016-10-14T19:21:15 | 70,940,230 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,310 | rd | src_snowflakedb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/src-snowflakedb.R
\name{src_snowflakedb}
\alias{src_snowflakedb}
\alias{tbl.src_snowflakedb}
\title{dplyr backend support for SnowflakeDB (https://snowflake.net)}
\usage{
src_snowflakedb(user = NULL, password = NULL, account = NULL,
port = ... |
ee4d66969782c32751201301217ba60e203e488c | 98eaa4e4992701d44c3637f292ded9b26017f9f1 | /R/classStack.R | 42dd04736a2444448f2686f72d68f669412ee895 | [] | no_license | nplatonov/ursa | 4e946f4bddea1b947200953f0570c01a0b8734c1 | ecb0b4693b470a9bc4df34188b4925589b8d3988 | refs/heads/master | 2023-06-26T12:12:58.134465 | 2023-06-13T10:01:34 | 2023-06-13T10:01:34 | 46,657,847 | 7 | 2 | null | 2023-09-10T18:03:27 | 2015-11-22T11:34:23 | R | UTF-8 | R | false | false | 2,286 | r | classStack.R | 'as.list.ursaRaster' <- function(x,...) ursa_stack(x,...)
'unlist.ursaStack' <- function(x,recursive,use.names) ursa_brick(x)
'ursa_apply' <- function(obj,FUN,...) {
# if (!.is.ursa_stack(res))
# res <- lapply(seq(obj),function(i),FUN=FUN,obj...)
res <- lapply(X=obj,FUN=FUN,...)
if (.is.ursa_stack(res))
... |
1f26bd1d62bd2a7d7abed1197e0ad61fe9eb78a1 | ce78c0dc327e45fe97f5b0b0d84c09413c18b27c | /ch3.R | 3ba6bca3aee1fb82b9d0c1c88737a1f3a8e5971f | [] | no_license | dylansun/ISLR-Lab | ae3b6d178b31181614fe5ccab2a58740a50a5da5 | d86e61a89cbc481ae89beb2b73aef5ed66067e0d | refs/heads/master | 2020-04-23T12:11:42.362491 | 2015-03-16T13:12:43 | 2015-03-16T13:12:43 | 31,641,322 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,327 | r | ch3.R | library(MASS)
library(ISLR)
### Simple linear regression
names(Boston)
?Boston
plot(medv ~ lstat, Boston)
fit1 <- lm(medv~ lstat, data = Boston)
summary(fit1)
abline(fit1, col = "red")
names(fit1)
confint(fit1)
predict(fit1, data.frame(lstat = c(5,10,15)), interval = "confidence")
fit2 = lm(medv ~ lstat + age, data = B... |
a9992eb160de9fb109b6c960fbadbc7a519d0ffc | 13480cc6f45489819cb71af78d0448976066f278 | /export_metabolights.R | 5c307dda0d773c8f05630f5331d16af8d40eef20 | [] | no_license | sandrejev/drugs_bioaccumulation | 3d04f6607fd3089857ada80fab658a6f4193a6ea | d4796ffe73348bc7b5fdb59916a4db7bf65455d8 | refs/heads/master | 2021-07-31T22:47:51.434127 | 2021-07-22T00:11:14 | 2021-07-22T00:11:14 | 173,614,059 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,864 | r | export_metabolights.R | dir.create("reports", showWarnings=F)
library(rCharts)
library(networkD3)
library(dplyr)
library(readr)
library(cowplot)
library(xlsx)
library(ggplot2)
library(grid)
source("functions.R")
exp1depletion.export_metabolights = function()
{
#
# Load Species and drug data
#
drug_map = readr::read_delim("data/drug_m... |
47f61374912f0145b84bebb2833f31491276a9d1 | cd283a087326a184dc2b97e445a8a09f68cf8a27 | /man/download_them_all.Rd | 3f563bbc1eab808037340f2c15fd8daf4805e156 | [] | no_license | rdisalv2/dismisc | 351749eb985b7f177ee29e32e20052dca5b05a8b | fb1f4fec35ac352b396987a6578f758131677d52 | refs/heads/master | 2021-11-23T23:37:18.121555 | 2021-10-29T19:19:21 | 2021-10-29T19:19:21 | 74,858,717 | 0 | 1 | null | 2021-10-29T19:19:21 | 2016-11-27T00:36:46 | R | UTF-8 | R | false | true | 892 | rd | download_them_all.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download-them-all.R
\name{download_them_all}
\alias{download_them_all}
\title{Download all files in a list of URLs into the working directory}
\usage{
download_them_all(url.vect, skip.already.downloaded = TRUE,
stub.vect = rep("", length(ur... |
07288a401dc95fc95832a93e8fedb6f2a086ef4f | 72401ef1e9f6cc71c8d270169e71d4f5f8c0c492 | /ML-Practicas/P5 - Asociation Rules/2 - Eclat/Eclat.R | 3ff907c1aeeaeb1c864c978b05c7e8a1407cc8e6 | [
"MIT"
] | permissive | AdyHelvete/machinelearning-az | 62586f33124221c07e4d745bc6918f774711c04d | 1f3f059ec48caae131964ac0c2b1c7ef003c730c | refs/heads/master | 2020-05-30T01:19:20.060650 | 2019-10-08T23:44:24 | 2019-10-08T23:44:24 | 189,473,852 | 0 | 0 | null | 2019-05-30T19:54:52 | 2019-05-30T19:54:51 | null | ISO-8859-3 | R | false | false | 424 | r | Eclat.R | #Eclat
#preprocesado de datos
#install.packager("arules")
library(arules)
#importar dataset
dataset=read.csv("Market_Basket_Optimisation.csv",header = FALSE)
dataset=read.transactions("Market_Basket_Optimisation.csv",
sep=",",rm.duplicates = TRUE)
#Entrenar algoritmo Eclat
rules=eclat(data... |
4af1a1032675307b3fe478bd9b94b873d80e3a8f | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/11283_0/rinput.R | a5b6d1e109e2ff416578f962f82866ffc76a92ae | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | rinput.R | library(ape)
testtree <- read.tree("11283_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11283_0_unrooted.txt") |
60a83110a17d8763dd555cca11033c995851d130 | d597b6e126f7bf5bc30b678d3f4ba32afb10187c | /R/old_scripts/Identify_Cell_Types_Manually.R | 9b5c660442dd35436e15373729ad9064639f45b4 | [] | no_license | nyuhuyang/scRNAseq-MouseAgedEyes | 866901330ec8e503ee09e4fa9c18871dee426d66 | 5977d6c7fd3d246dedacd720d8c3d3d0b158d4c1 | refs/heads/master | 2022-02-05T00:04:16.098589 | 2019-07-14T04:01:39 | 2019-07-14T04:01:39 | 123,640,888 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,969 | r | Identify_Cell_Types_Manually.R | library(Seurat)
library(dplyr)
source("./R/Seurat_functions.R")
#====== 2.1 identify phenotype for each cluster ==========================================
lnames = load(file = "./data/mouse_eyes_alignment.Rda")
lnames
Featureplot <- function(x){
p <- FeaturePlot(object = mouse_eyes,
reducti... |
23a6eb0a88e42c186a17b0578561d925e4e6fda6 | e1a29e5d370645f136f1bd005f51f6246358d778 | /Analyse de données et Données temporelles/TP2/scriptTP2.R | 34661e78f84637a74814093da82082eee544e6a7 | [] | no_license | wangyuteng1997/BigData_EMSE | 50ce9d4962703823ada9c6223410ba4f02be25d4 | 960ec034e78a7906b3d33fa10f43267f41c3210e | refs/heads/master | 2023-07-30T12:43:34.853146 | 2021-09-30T09:56:35 | 2021-09-30T09:56:35 | 412,010,460 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,424 | r | scriptTP2.R | # Script du TP n?2, S?ries Temporelles, Majeure Science des Donn?es 2020-21
##############################################################################
# PARTIE 1 : Etude d'un AR(2)
# Mod?le X(t) = mu + phi1*(X(t-1)-mu) + phi2*(X(t-2)-mu) + Z(t)
# Z[t] bruit blanc gaussien N(0,varZ)
# simulation d''un AR(2) par une... |
db614398f6900d7fff4e1fbae3919134196c655d | dac72810232b9e93e57b05ffa9030d3bc69e93d0 | /ui_visualization_pca.R | dc8a147501cfe59a999710255a6ef9343d4bcf53 | [] | no_license | zhezhangsh/GeEx | cc7c0bea9d94a60fba4d8998e67e22baf98561e4 | 9689595d41ed2134538577c6427670f0626e2317 | refs/heads/master | 2020-06-14T10:39:03.278202 | 2017-03-01T01:14:38 | 2017-03-01T01:14:38 | 75,196,993 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,422 | r | ui_visualization_pca.R | tabPanel(
"Principal components analysis",
h2("Principal Components Analysis"),
h5(HTML(paste(
'Unsupervised clustering of samples in the same data set by',
'<a href="https://en.wikipedia.org/wiki/Principal_component_analysis" target="_blank">PCA</a>'))),
conditionalPanel(
condition = 'input[[... |
118c04fd2d7ba91ccf2d80a30515dbdd03ba23ea | 841acbc6ac8197981e81c9c837def244392c5b72 | /R/Clam_pop_equations.R | 27c4811a124498fa90f56e2dd4812c53d40695d7 | [] | no_license | cran/RAC | ac1e03ef30dce32436a5370e0d7df7223a49a7a9 | 901ce405e395e1d4c0d0536aff346c90ce8da0b6 | refs/heads/master | 2023-05-12T13:56:30.793720 | 2023-05-02T12:00:02 | 2023-05-02T12:00:02 | 70,978,339 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,739 | r | Clam_pop_equations.R | #' Clam bioenergetic population model differential equations
#'
#' @param Param a vector containing model parameters
#' @param Tint the interpolated water temperature at time t
#' @param Phy the interpolated phytoplankton at time t
#' @param DT the interpolated detritus at time t
#' @param POCint the interpolated... |
9a92dde1090de17b1fbc8e1e4bf4d5bd329b0e50 | f3a536ed29038ba6e4b2c24db93a2b8f3ba52378 | /data/example-lab-creation.R | a6c40d02d65016f4ae8d6fd2ae1ce3b3f77eeebc | [] | no_license | jhcreed/tidyverse-instructor-exam | 58c1881730f169f6b8e17614bd11069f53b93b9e | e865b40efe4be98f7691a91dcf8e5bd834f1cf9c | refs/heads/main | 2023-02-01T06:29:13.342174 | 2020-12-16T13:51:48 | 2020-12-16T13:51:48 | 321,205,499 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 870 | r | example-lab-creation.R | library(tidyverse)
set,seed(8675309)
patient_id <- sample(10000:99999, size = 100)
height <- sample(c(60:84, NA), size = 100, replace = TRUE)
weight <- sample(c(NA, 110:270), size = 100, replace = TRUE)
systolic <- sample(100:180, size = 100, replace = TRUE)
diastolic <- sample(60:130, size = 100, replace = TRUE)
gend... |
6f422bfef4482a22f44e5d6e95ea001eeb97093e | f8a18363479a1aa79a95068c8ee336116b83cf55 | /tests/testthat/test.run-ed.R | 0ac20f7b25bb85812094bf63b03fc5d59bddc985 | [
"MIT"
] | permissive | FoRTExperiment/ed4forte | 938f9eafeee89b6802546f2b160f91eb4ab5c334 | 44ba5f92d5cff41a0017af194eebea150f26feef | refs/heads/master | 2020-12-08T18:28:36.033182 | 2020-03-19T16:34:50 | 2020-03-19T16:34:50 | 233,060,861 | 3 | 0 | NOASSERTION | 2020-02-05T19:17:44 | 2020-01-10T14:11:52 | R | UTF-8 | R | false | false | 2,193 | r | test.run-ed.R | outdir <- tempfile()
teardown(unlink(outdir, recursive = TRUE))
test_that("Running ED2 from bare ground works", {
p <- run_ed2(
outdir, start_date, end_date,
configxml = data.frame(num = 9, SLA = 35),
wd = wd,
ED_MET_DRIVER_DB = test_met
)
p$wait()
# Make sure the run completed successfully
... |
66904819c80b906b2b08ed2f8b07cbfb35afa133 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.cognitoidentityprovider/man/set_user_pool_mfa_config.Rd | 88e63f98556b19e2b9d82f269471aec2609a315b | [
"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 | 1,065 | rd | set_user_pool_mfa_config.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cognitoidentityprovider_operations.R
\name{set_user_pool_mfa_config}
\alias{set_user_pool_mfa_config}
\title{Set the user pool MFA configuration}
\usage{
set_user_pool_mfa_config(UserPoolId, SmsMfaConfiguration = NULL,
SoftwareTokenMfa... |
a02647c14ccecbfe7c6e9d82a1b745d136694d2c | 3e30053945a0b0012901e4b33fd95c39bd8f154b | /DAISIE/tests/testthat/test_DAISIE.R | ca77c6935f5440038759127b053260235ab5de4b | [] | no_license | richelbilderbeek/DAISIE | e0442c1dcf278642ee1c4a57bb817f1e27ec7e5a | f476f5bcda00909e86beb73869ca23a6fdeaf52f | refs/heads/master | 2020-03-19T11:10:12.881461 | 2018-12-12T17:40:36 | 2018-12-12T17:40:36 | 136,436,234 | 0 | 1 | null | 2018-09-19T09:02:56 | 2018-06-07T07:05:37 | R | UTF-8 | R | false | false | 79 | r | test_DAISIE.R | context("test_DAISIE")
test_that("DAISIE works", {
DAISIE_test()
})
|
6c05d88e3dcc10597636bf02a15171987beb0828 | ddc2681b21caef8d7d490211dba79c40eceea301 | /plot2.R | 644bac8a91f48223ea1355072c31a38f26277372 | [] | no_license | nvobugari/ExData_Plotting1 | 57591f99dd65fd3d7c27fcc9899656a83996c77a | e19f968c1c6e8bd65432ae61e86e7b00fe77fad0 | refs/heads/master | 2021-01-12T21:10:28.322542 | 2014-05-11T20:13:41 | 2014-05-11T20:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,326 | r | plot2.R | ##plot2.R
## histogram of Global Active POwer usage on 2007-02-01 and 2007-02-02
##reading data from local file and loading it to a variable powerData
# reads the data from household_power_consumption.txt which is located in the directory specified
powerData <- read.table('Assignments/Exploratory Data Analysis/househo... |
be5fe88f6acdff7c3ae9dd077cca193ac6ec2c70 | d1122b263472a3edc42098d9a10897418b85b631 | /kody/neural.R | 83f3bfe96fd66790fc5844f7a4309973fabc71bc | [] | no_license | kapik001/sd-analysis | 1d16ca440e3956224840936b0d67c3e6e74f07df | fe7a876fe6fd19dde8532a2fcf3b3faee41a1656 | refs/heads/master | 2023-01-22T04:02:55.890649 | 2020-11-12T18:09:47 | 2020-11-12T18:09:47 | 312,352,935 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,434 | r | neural.R | #run before
loadedData=stockData$load('AAPL', 365)
#on start
probData <- c()
df <- data.frame(
Today=integer(),
Tomorrow=integer(),
X1=integer(),
X2=integer(),
X3=integer(),
X5=integer(),
X10=integer())
df.Today <- c()
df.Tomorrow <- c()
df.X1 <- c()
df.X2 <- c()
df.X3 <- c()
df.X5 <- c()
df.X10 <- c()
lengthOfDat... |
fd0070103dafc4d1fe1554333096871db2656194 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/weights/examples/wtd.cors.Rd.R | c667de3d24d9fb2b1916bd3d0bc6ed99f4c972bc | [] | 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 | 333 | r | wtd.cors.Rd.R | library(weights)
### Name: wtd.cors
### Title: Produces weighted correlations quickly using C.
### Aliases: wtd.cors
### Keywords: ~correlation ~Pearson ~weights
### ** Examples
test <- c(1,1,1,1,1,1,2,2,2,3,3,3,4,4)
t2 <- rev(test)
weight <- c(.5,.5,.5,.5,.5,1,1,1,1,2,2,2,2,2)
wtd.cors(test, t2)
wtd.cors(test, t2... |
d78c097f9e432d1e0574dcee0e005ef883164de3 | 9e1fb0a1b66f7446ae501467b4eb2f77fda6215c | /functions/wgcna_heatmaps.R | 81f0fec282ffeb3cbd5df3468adb9425f9025bb9 | [] | no_license | mayerlelab/metabolicSubtypes | df2ecc278ff16ab3b7d924d36549d3bd854a0cc6 | bdb3e7d0a2909538e193db9a9c80ce87f76ac21d | refs/heads/master | 2023-06-17T00:44:56.806875 | 2021-07-12T11:08:04 | 2021-07-12T11:08:04 | 385,206,511 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,652 | r | wgcna_heatmaps.R | #' wgcna_heatmaps (from WGCNA functions).
#'
#' This function implements module-trait correlation heatmap plotting with wgcna.
#'
#' @param datExpr Tranposed input matrix with gene names as column names and sample names as row names.
#' @param MEs Module eigengenes.
#' @param datTraits Phenotype data.
#' @param project... |
61633627e6884e8a18a4ad2cd79664ae97ad975c | 837a3177789464eabb12b7abfb12e8621feb71fb | /(0)Functions_general/getTotalNumbers.R | 35a39f11cf4c3cfb496ec98fdc67bd300b59dbc7 | [] | no_license | mcgregorv/AtlantisRscripts | 21140225d43ba583a1bebc70557c8cb5f61b9b5c | 1009f0d1961fc95bc4a98d25eea7dc1d7cccee77 | refs/heads/master | 2020-07-11T14:20:34.142538 | 2019-08-26T22:22:13 | 2019-08-26T22:22:13 | 204,566,512 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 365 | r | getTotalNumbers.R | getTotalNumbers<-function(Name,Cohort,startBox,stopBox){
#assumes has availabilt init which is the biol initial conditions file lines
thisVar<-paste("^",Name,Cohort,"_Nums",sep="")
x<-grep(thisVar,init)
thisLine<-init[(x+startBox):(x+stopBox)]
xx<-as.double(get_first_number(thisLine,n="all"))
totalNum... |
8e4d5ebc767dadede13900418528fda27a852ad6 | 64d17a1fd8b94a76ce906ca702616d321f3aa93f | /src/R/cspa-wordcloud.R | 79326c05f064ad9990057a5985ed9a8c66bf35ed | [
"MIT"
] | permissive | FranckCo/Stamina | bd32101ec19a6b9167dca5b86c459efac5e50ad8 | 20843a1e56d4e9512cbe0089b07af6dda7bb6af1 | refs/heads/master | 2022-12-01T02:29:32.287326 | 2022-08-21T10:41:24 | 2022-08-21T10:41:24 | 40,617,438 | 2 | 1 | MIT | 2022-11-16T03:18:05 | 2015-08-12T18:30:14 | Java | WINDOWS-1252 | R | false | false | 567 | r | cspa-wordcloud.R | cspa <- VCorpus(DirSource(encoding = "UTF-8"), readerControl = list(language = "en"))
cspa <- tm_map(cspa, content_transformer(tolower))
cspa <- tm_map(cspa, removeWords, stopwords("english"))
removeDoubleQuotations <- function(x) gsub("“”", "", x)
cspa <- tm_map(cspa, removePunctuation)
cspa <- tm_map(cspa, content_t... |
eb0c561c9b1b1e59a89a1a3a5716b1bb6b155b1a | b72c2a20cd58da648dfdc5148e938f269ff1d38c | /man/substanceStructures.Rd | ba9ba01e0e610ea36ebc9ee4716c2b7483a122e2 | [
"MIT"
] | permissive | enanomapper/renm | 5d9e0e3798512f861b128b6749b7549b9b5cd381 | 7346ce8cbb0d84b29473a139af31416a2c28ee26 | refs/heads/master | 2021-01-10T12:38:11.895305 | 2020-02-12T11:14:35 | 2020-02-12T11:14:35 | 44,956,480 | 1 | 1 | NOASSERTION | 2020-02-12T11:18:40 | 2015-10-26T08:51:24 | R | UTF-8 | R | false | false | 538 | rd | substanceStructures.Rd | \name{substanceStructures}
\alias{substanceStructures}
\title{
Looks up the composition structures for a specific substance
}
\description{
Looks up the structures in the composition of a specific substance as identified with the given
URI.
}
\usage{
substanceStructures(uri)
}
\arguments{
\item{uri}{URI of the substan... |
3cb87a66f9f0162203912e4d9d30fd13e53293ba | 6a48e67720f48380c37a7c8cae41a6e2bcc56636 | /febonaci.R | 1cf470b4df9d5abe4a6cc951df9cff2716933bd8 | [] | no_license | SHIVAMBASIA/R-Lab-Tasks | 299778de7c90263cd8095bb8629d363ad87b7b29 | 3129da1d257b15c83b3e7634c24362b1a8cabdbf | refs/heads/master | 2020-08-05T06:16:24.228635 | 2019-10-02T19:46:28 | 2019-10-02T19:46:28 | 212,426,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 158 | r | febonaci.R | a=readline("enter number")
a=as.integer(a)
t1<-0
t2<-1
sum<-0
i<-1
print(t1)
print(t2)
for(i in 1:a){
sum=t1+t2
print(sum)
t1=t2
t2=sum
} |
8d4281ca1c97ab1c34008cc1552525ae67485115 | 66ecf5ba741382f1f2ff9420e89926e4a68d49f7 | /data-raw/DATASET.R | cf8eff85c9914519fa3f4b29f86ced5835bc7cfb | [
"MIT"
] | permissive | Drake-Kufwafwa/Spam | ba648d983894ee0dd24d63bffa12fb05e50b2b8f | 00795275a48d3e9ac80c670fc37271f07eeab967 | refs/heads/master | 2023-01-07T09:42:50.212665 | 2020-11-11T13:27:29 | 2020-11-11T13:27:29 | 311,977,323 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 209 | r | DATASET.R | Spam = read.csv(file = "spambase.data", header=TRUE, stringsAsFactors=T)
# change label of last column for convenience
colnames(Spam)[58] = "spam"
Spam$spam <- as.factor(Spam$spam)
usethis::use_data(Spam)
|
fda7b92a2a04d41095b0242817a680aae11ec28f | 4b871231c9007b3527198e9208243f2a78fd1cf1 | /ThePlantGenome_Version/Phenotype_Data/Empirical_Validation_BLUP_Calculations.R | 9718a698699db69f0eee02aba69e6f3ef9700678 | [] | no_license | mdzievit/Genomic_Prediction | 33c9a7be55bc99b22159cb3f6d62a8b6511f9bad | 60d3b6aa1dfec35bb4344b0ade70e12846a8f61d | refs/heads/master | 2021-12-28T10:49:32.186901 | 2021-12-21T19:05:40 | 2021-12-21T19:05:40 | 141,373,493 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,775 | r | Empirical_Validation_BLUP_Calculations.R | library(tidyverse)
library(broom)
library(lme4)
library(ggpubr)
library(patchwork)
## Load the raw phenotypic data for the empirical population
emp_raw <- read_tsv("Phenotype_Data/Empirical_Validation/Empirical_Traits_Raw.txt")
#### Correlation Plot ####
#### Function that builds each row of the raw data ... |
2ada67da2341b2f919a5584ad2f34ef8cb809be5 | 5309bb4d2fbf775e66d404a1a319b10c6295cd7b | /SCRIPTS/reader.R | c7cab31b52dbc4064a67e2114671658835dca100 | [] | no_license | puttak/power-to-decarbonize | ea13bd68dc663399242f9fb2f6484724b5f3cde7 | 63999c6ea224cebd9ff6444d4a6df094962b27e9 | refs/heads/master | 2021-09-16T07:15:30.960669 | 2018-03-14T04:02:22 | 2018-03-14T04:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,022 | r | reader.R | ## Prelude
# Constants
bp_link = "https://www.bp.com/content/dam/bp/en/corporate/excel/energy-economics/statistical-review-2017/bp-statistical-review-of-world-energy-2017-underpinning-data.xlsx"
# Packages Used
lapply(c("magrittr", "rvest", "dplyr", "tidyr", "readr"), require, character.only = TRUE)
# Custom-defined ... |
b6549a33569d42bc86f949e9af1cf6e040ebeebe | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612736207-test.R | a3817d89db82f560d58b179d0a0a5b29b5663d40 | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 846 | r | 1612736207-test.R | testlist <- list(doy = numeric(0), latitude = c(5.38995219951238e-312, 9.33119502699939e-300, 2.77478395271014e+180, 2.77448001456307e+180, -9.47149324620775e-150, 2.77448001607381e+180, 6.12454249645427e-302, -5.70159253396729e+303, 7.39655581425648e-304, -5.04615759304534e+304, 2.77448001764258e+180, NaN, 5.77591... |
8fd85f969a01061f4de3f992e7de471f2d48d01d | 2b659440cb2f2082a85a51bcc1dbecc014a262d4 | /man/paramDistBoxplot.Rd | 6f4cabb5d3e479377d1909e04f4c30c68ce7b5b5 | [] | no_license | welch16/ChIPexoQual | f189dccfb013d8a5d772cf4fcccbdcaccf17a576 | 8ded1e9df7822ab4c8f6711cbf1f58ae03a08a46 | refs/heads/master | 2021-04-18T23:45:44.977354 | 2018-03-01T19:15:52 | 2018-03-01T19:15:52 | 27,845,697 | 1 | 3 | null | 2019-11-07T15:23:38 | 2014-12-10T23:58:14 | R | UTF-8 | R | false | true | 1,292 | rd | paramDistBoxplot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/base_summaryPlots.R
\name{paramDistBoxplot}
\alias{paramDistBoxplot}
\title{paramDistBoxplot}
\usage{
paramDistBoxplot(..., names.input = NULL, which.param = "beta1",
sort.as.numeric = FALSE)
}
\arguments{
\item{...}{a \code{list} of \code{... |
f219667935e10a0565334a662ae09593087eb4ad | ac7cadda91891f78d0897256a6ff43e02e66e955 | /vignettes/plot_evoked_multilevel_model.R | a78ac4714e8104c3403f35eb5aabb12300e95954 | [] | no_license | mne-tools/mne-r | 23a30ce76ad4e41b1f5fb85737fb9e683e6e9337 | 930a5a9a035234d2e64e436a5ed3f210bf5f97d2 | refs/heads/master | 2020-05-17T00:56:30.612648 | 2020-02-28T20:09:08 | 2020-02-28T20:09:08 | 183,412,516 | 31 | 8 | null | 2020-02-28T20:09:09 | 2019-04-25T10:31:57 | R | UTF-8 | R | false | false | 4,415 | r | plot_evoked_multilevel_model.R | ## ----setup, include = T, echo = F----------------------------------------
library(tidyverse)
library(mne)
library(lme4)
library(merTools)
## ------------------------------------------------------------------------
data_path <- mne$datasets$sample$data_path()
subject <- "sample"
raw_fname <- paste(data_path,
... |
d4a1af4ff66e135e24520a0bbb94c21746d9efe7 | 33ccc0ffddad6e0b8c4562a8139a435331a80751 | /03_data_managing/R/02_simulation_complete_project/graficacion.R | e08f5bfd3b9f4c53b390b8461e5b53626d4f938d | [] | no_license | AntonioPL/masterDataScience | 0a9930b890f75ca79420470c99827412ab92f082 | d70d79557e2447f0edee46b38ec16daaebe969f0 | refs/heads/master | 2020-03-23T16:57:02.517114 | 2018-06-02T10:18:49 | 2018-06-02T10:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 550 | r | graficacion.R | # Función para graficar (visualizar un tablero)
pintarTablero <- function(tablero, descontento) {
# Quito margen en blanco
par(mar = rep(0,4))
# Pinto la matriz de colores
image(tablero, col = c("white","#2a8fa3", "#ff8d00"),
axes = FALSE, xlab=NA, xaxs="i", yaxs="i")
posicionesDescontento <... |
71987640e85eccc81520a947b028945eaf766809 | 470c020009250d2ad9f21dbbe14921d52bb92fd1 | /run_analysis.R | d9af57f1fa3f19f56916544743abfccae7e3987e | [] | no_license | Jinishc/run_analysis | 2735b833ee480af93bb425c0ccf14f3e7f6fc00b | 51f6cae15563eeacefdd8690350cbec6b60eb28a | refs/heads/master | 2021-01-22T02:58:33.497759 | 2014-09-21T19:32:33 | 2014-09-21T19:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,726 | r | run_analysis.R | ##Reading training set
train_x <- read.table("cloud_data/UCI HAR Dataset/train/X_train.txt")
##Reading test set
test_x <- read.table("cloud_data/UCI HAR Dataset/test/X_test.txt")
##reading training labels
train_y <- read.table("cloud_data/UCI HAR Dataset/train/y_train.txt")
##reading test label
test_y <- read.table(... |
b189e437c7aa2bdd2e98d0ec9b4bc141207e0ce9 | 776f8f9d8b06aa953ddce8a6c4d49bc4b6a3b940 | /plot1.R | d6d0ec3768e946248da9828981419783ce5dbc15 | [] | no_license | FatimaAlshaikh59/ExData_Plotting1 | bae757fb4706b947de451c25c6e280a069669a60 | aebbf7fb9291f6177d88db336b15968f3590b89c | refs/heads/master | 2021-05-12T06:55:41.843900 | 2018-01-12T18:52:55 | 2018-01-12T18:52:55 | 117,229,738 | 0 | 0 | null | 2018-01-12T10:48:07 | 2018-01-12T10:48:06 | null | UTF-8 | R | false | false | 1,295 | r | plot1.R | #create a directory if not found, in which the downloded data will be stored
if(!file.exists("./Project")){dir.create("./Project")}
#data set zip Url, from where the data will be downloded
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
#download the zip file
... |
e06241cf0bab134d9b79934833b7a12b94d78c77 | c71f1b20e935a67765f79197c797642ac54eada9 | /tests/runit.c2fTest.R | d404ef65a783b4ecefed6a6d6e1852713072b675 | [] | no_license | matthewstifler/IntroToRPresentation | 1278f7ac425e13cbedc8d294ed60926c3d4c6a20 | b7f58ff8251236b34b1d7e21afa7988645a9214a | refs/heads/master | 2020-02-26T17:35:55.526262 | 2015-08-07T00:55:32 | 2015-08-07T00:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 724 | r | runit.c2fTest.R | # default naming convention for test functions is test.NameOfFunctionToTest
test.c2f_ValueZero <- function() {
#arrange
#act
result<-c2f(0)
#assert
checkEquals(result, 32)
}
test.c2f_Value50 <- function() {
#arrange
#act
result<-c2f(10)
#assert
checkEqualsNumeric(result, 50)
}
test.c... |
b8f75dcdf71ad136c66b8becc83c9bc52c958f68 | 1bc01adb5c92c98fbf3ac76623e93d951db59808 | /work/u2/FluTrain.R | 36c74bdc09ec69b7592d7a6509252082655d8ede | [] | no_license | sergii-bond/mit15.071x | 8d86c9c033d56f7cdef612ce5095a0fdcad0cb67 | 5309a71540402102fbd1de2fa2c9eaf776dbb043 | refs/heads/master | 2021-05-29T06:41:54.707270 | 2015-05-25T06:53:46 | 2015-05-25T06:53:46 | 31,793,701 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,311 | r | FluTrain.R |
FluTrain = read.csv("FluTrain.csv")
str(FluTrain)
#DateConvert = as.Date(strptime(FluTrain$Week, "%y-%m-%d"))
FluTrend1 = lm(log(ILI) ~ Queries, data = FluTrain)
summary(FluTrend1)
FluTest = read.csv("FluTest.csv")
PredTest1 = exp(predict(FluTrend1, newdata=FluTest))
i = which(FluTest$Week == '2012-03-11 - 2012-03-... |
8720fb32f691ba9ae512cff3e1ff396d43d8cf45 | d481473c7bf59ef07fb2f0f7f6353e0beff5fa48 | /man/convo_add.Rd | e927b9785324a67340caa6b1b39779ccf83bdbc7 | [] | no_license | crumplecup/muddier | 92e1d4845db3d13e1297060d50d0244d5b00064f | c4d67a17377e45a35426cbb11ace342afaed6806 | refs/heads/master | 2021-11-28T03:41:33.262356 | 2021-08-13T03:11:39 | 2021-08-13T03:11:39 | 175,301,894 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 569 | rd | convo_add.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{convo_add}
\alias{convo_add}
\title{derived pmf by addition}
\usage{
convo_add(x, y, index)
}
\arguments{
\item{x}{is a numeric vector (younger pmf)}
\item{y}{is a numeric vector (older pmf)}
\item{index}{is a numeric vector (... |
0e954150ab81da4bf049b0839fca629f7cb1b1c0 | 23830ac5e6baecea22e9f7c2ccd34f7c2a8ac240 | /man/graticule.Rd | 5688556539dbbafca7f6043606984ceb040afbe8 | [] | no_license | msandifo/slab | 4c1329b25d0af3f4b68ee31194891831ca945502 | 3d68597e59886033552bcad28856df91da374fac | refs/heads/master | 2021-06-28T08:50:36.213397 | 2020-10-12T21:07:30 | 2020-10-12T21:07:30 | 170,061,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 230 | rd | graticule.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graticules.R
\name{graticule}
\alias{graticule}
\title{Title}
\usage{
graticule(slab, inc = c(5, 5))
}
\arguments{
\item{inc}{}
}
\description{
Title
}
|
a1fb138434baf6c11eae992982ecb1a599bed933 | 17f1b5b761a43ec178602a43f24ac72c2d5d01a9 | /hmlasso/inst/testfiles/softThresholdC/libFuzzer_softThresholdC/softThresholdC_valgrind_files/1609897137-test.R | 9c6a90f4cdb83a16def8967ee376d2ce5492521d | [] | no_license | akhikolla/newtestfiles-2 | 3e1882e7eea3091f45003c3abb3e55bc9c2f8f56 | e539420696b7fdc05ce9bad66b5c7564c5b4dab2 | refs/heads/master | 2023-03-30T14:44:30.614977 | 2021-04-11T23:21:23 | 2021-04-11T23:21:23 | 356,957,097 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | 1609897137-test.R | testlist <- list(g = 1.39069246441664e-308, z = 3.01741019876802e-257)
result <- do.call(hmlasso:::softThresholdC,testlist)
str(result) |
625d97dfc6fa378d21f68ae7297fbd6fead8b5fd | 3d7b5cce9500531959e520e06fe2eaee0bfe5c2c | /R/bigramfrequency.R | 44263332b29c3997c0ac5f89f171b7c2d84e4aaa | [] | no_license | edouardschuppert/edouaRd | 50f4dc0123e4408fc71b8e1346f4d002940fc627 | 48c7b216057dfa904aec8c764807d689d48c3dd5 | refs/heads/master | 2021-06-12T07:41:33.528929 | 2021-06-07T07:51:37 | 2021-06-07T07:51:37 | 134,296,678 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,340 | r | bigramfrequency.R | #' bigramfrequency
#'
#' @param df Your data frame
#' @param colonne Your column
#' @param slice Allows you to keep only a small number of observations, starting from the first. Default set to NA
#' @importFrom rlang enquo
#' @importFrom dplyr select
#' @importFrom dplyr mutate
#' @importFrom dplyr anti_join
#' @import... |
3c86428ccbb759311ec83d5b4e1f76e81f92227a | 43123af59b384a0adb1d2f1440e1c33dce4d5449 | /examples/jobs/transpose_df.R | 33035cb9f3132df1c7c9291d3e997105fc1caba7 | [] | no_license | timemod/regts | 8723e6b2f2e4f088564c648fbdecf1a74ade7203 | 754490eb024354d37774e929bf640f1af58ccb5a | refs/heads/master | 2023-03-06T16:45:31.978567 | 2023-03-03T13:36:53 | 2023-03-03T13:36:53 | 107,998,574 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 387 | r | transpose_df.R | library(Hmisc)
library(regts)
df <- data.frame(namen = c("a", "b", "c"), labels = c("Variabele a",
"Variabele b",
"Variabele c"),
x = 1:3, y = 10:12)
df2 <- transpose_df(df, colname_column = 1, ... |
5a0f220c24e1c100ddac006cbe6d577f30f55e70 | 134fa4a7168493e30a25e14459fbc5ee39434888 | /pds_analysis.R | 1606b0e29742fbeb9087587aad9f263e2e16fc37 | [] | no_license | Dr-Nathan-Fox/pdf_analysis | d9ac4a31dfd49f414b025bf0dded7942af40e4d2 | 1c692c8c99b4415dcd4f747ef1cd72cdbb55a8ff | refs/heads/master | 2023-05-23T03:53:57.984566 | 2020-07-07T10:22:18 | 2020-07-07T10:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,559 | r | pds_analysis.R | #### library needed packages ####
# install.packages("pdftools")
library(pdftools)
# install.packages("tm")
library(tm)
# install.packages("ggplot2")
library(ggplot2)
# install.packages("dplyr")
library(dplyr)
#### read in pdf files and store as term document matrix ####
#create object with pdf names
files <- list.f... |
4f42fb189e84909b676e4595051081e2862216c9 | 2c6cad6728b4ad2181981fb0ca5d7345d69b149b | /R/pretty_labels.R | 49b58b57f2be636ba93d573ec2b250b79f207db2 | [] | no_license | matteodefelice/panas | a765b2cca4a51b41485dbe538d55a57ba5aff6f9 | 428a8b7cd2c1560f8ef9d54533e2c8e93e344c19 | refs/heads/master | 2022-04-05T12:25:29.429213 | 2020-02-27T20:46:54 | 2020-02-27T20:46:54 | 111,098,601 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 824 | r | pretty_labels.R | #' Create pretty labels useful to visualise discrete intervals
#'
#' The function creates pretty labels for the breaks used in discrete scales in \code{ggplot2}
#' @author Matteo De Felice
#' @param breaks Vector of breaks' values
#' @param separator_character Character that is used to separate the values of the range ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.