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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d58189d80f5f46aef3c8b31cc179e13fcb5c58d1 | 9cc7423f4a94698df5173188b63c313a7df99b0e | /man/format_p.Rd | ece2b92d2575eb19c8f2243d4ced01b6a9ec5662 | [
"MIT"
] | permissive | HugoNjb/psycho.R | 71a16406654b11007f0d2f84b8d36587c5c8caec | 601eef008ec463040c68bf72ac1ed8d4a8f7751f | refs/heads/master | 2020-03-27T01:24:23.389884 | 2018-07-19T13:08:53 | 2018-07-19T13:08:53 | 145,707,311 | 1 | 0 | null | 2018-08-22T12:39:27 | 2018-08-22T12:39:27 | null | UTF-8 | R | false | true | 384 | rd | format_p.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatting.R
\name{format_p}
\alias{format_p}
\title{Format p values.}
\usage{
format_p(pvalues, stars = TRUE)
}
\arguments{
\item{pvalues}{P values (scalar or vector).}
\item{stars}{Add stars.}
}
\description{
Format p values.
}
\author{
\h... |
088588ce3835382aad6b5e5d4d480b27ba134f56 | 9f57e0ad44b78d809c262fa0ffb659232fdb8d5e | /exercises/concat_alternate.R | 6d097fe2fa9643f4f70ef0cb5323d336b5556a85 | [] | no_license | abhi8893/Intensive-R | c3439c177776f63705546c6666960fbc020c47e8 | e340ad775bf25d5a17435f8ea18300013195e2c7 | refs/heads/master | 2020-09-22T00:57:36.118504 | 2020-08-31T09:23:57 | 2020-08-31T09:23:57 | 224,994,015 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 147 | r | concat_alternate.R | # Concatenate two vectors alternately
concat.alternate <- function(v1, v2){
c(rbind(v1, v2))
}
v1 <- 1:10
v2 <- 11:20
concat.alternate(v1, v2)
|
13812d0fe67c4b92b47d7be28171c496e17f281b | 75f49b6ae9d6262bad6545358eaa000b54dcc76e | /exemple.R | f8d308716b7acdc873e24f25971feae084f31e68 | [] | no_license | mateuscarbone/MOCK_R | ec1816f35dcf5bb865b912dc38ed9a6e8c700005 | 6fb90c4f5ab9687c8948d7833f8d62da7fb5a2c0 | refs/heads/master | 2020-03-20T19:08:04.428212 | 2019-07-01T17:21:29 | 2019-07-01T17:21:29 | 137,623,123 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 852 | r | exemple.R | source("codigos_MOCK.R")
library(plotly)
library(mclust)
# dados ficticios ---------------------------------------------------------
am1<-c(rnorm(100,2,.2),0, rnorm(100,1,.2),rnorm(100,0,.2),2.5,1)
am2<-c(rnorm(100,2,.2),2.5,rnorm(100,1,.2),rnorm(100,0,.2),0,1.2)
am3<-c(rnorm(100,2,.2),2.5,rnorm(100,1,.2),rnorm(100,... |
b33a15226b478511eb2d3ea3091027f9f486e772 | c1e7158f1947a3135a033487482877b77b439072 | /Swaziland roof type SL - no tuning.R | 786b29f2a5a182bbcbb014635310516ec8774572 | [] | no_license | amandairish-zz/Roof-type-project | b9bad302d5d806d8865d34e790c73aa290e80e1b | d21e65fc9ac331226a9676442199e0f31f3383df | refs/heads/master | 2022-02-21T23:58:56.026627 | 2019-09-16T20:32:17 | 2019-09-16T20:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,397 | r | Swaziland roof type SL - no tuning.R | ## multi-class classification for roof types in Swaziland using SL
## last updated 3/8/19 by Amanda Irish
library(RhpcBLASctl)
library(caret)
library(SuperLearner)
library(randomForest)
library(gbm)
library(xgboost)
library(arm)
library(gam)
library(glmnet)
library(LogicReg)
library(cvAUC)
library(irr)
library(tidyver... |
f8a5e0eb369904eadd7eac5d625b9278ba0780bb | a85ee4fb743c662c7fd588ba662e6fa6352ca24b | /functions.R | 899e6b548acd762fc0f70602f3746400475e57ef | [] | no_license | DiveIT/AustraliaKidneyDisease | 525e06510e142e3d1cc73ddeddd1d226aa7b1d8a | acb106e1a091507342972ceace9e258ded8246cc | refs/heads/master | 2020-03-13T03:38:17.272224 | 2018-06-14T07:08:10 | 2018-06-14T07:08:10 | 130,947,783 | 0 | 1 | null | 2018-06-12T07:23:19 | 2018-04-25T03:49:22 | HTML | UTF-8 | R | false | false | 9,994 | r | functions.R |
importSA2byState <- function(filePath, state) {
data <- read.csv(file=filePath, skip = 9, header = TRUE)
data$X <- NULL
names(data) <- c("SA2", "Non-Indigenous", "Aboriginal", "Torres Strait Islander",
"Both Aboriginal and Torres Strait Islander", "Not stated", "Total")
data$`Non-Indi... |
e629e8c4b0a417236c689d4e910ec1865c5721ee | 0379b581948aa2bc3b924793e597adecba470800 | /code/figures4-6.R | bd994943fa11c3663d8c97ded98718d5fba338dc | [] | no_license | brooke-l-hawkins/salmon-simulations | 84f877b946829b85471e5f8521d14ae3000e0a6a | 1b696b0a1eaccc4120b9ecac4b2bf769111e01c4 | refs/heads/master | 2022-11-08T21:55:08.863623 | 2020-06-22T18:02:35 | 2020-06-22T18:02:35 | 261,578,848 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,217 | r | figures4-6.R |
#----- PREPARE DATA ------------------------------------------------------------
# load packages
library(lubridate)
library(ggplot2)
library(tidyr)
library(dplyr)
# would you like to save these figures?
save.figures <- TRUE
if (save.figures) {
# specify directory for plot output
plot.directory <- paste0(getwd(),... |
817c283db10d4bcd1bfd48046444e19225bbabac | d8e37e99e9ff9f413b841eaba43f3a300e91ea49 | /sandbox/shiny/ComparisonApp.R | 6427b88ab6fab03b950004f746919e78637f8231 | [] | no_license | SWS-Methodology/faoswsFisheryStandardization | d65dee1dda8eda22ef4f788ac1f1ab5fddfbd13b | 8b4e9c7ee78c039926f216724fd28fce0b1ffc7e | refs/heads/master | 2022-07-13T23:20:22.412065 | 2022-06-30T09:48:53 | 2022-06-30T09:48:53 | 151,390,508 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,708 | r | ComparisonApp.R | # get old SUA
greece=fread("data/SUA_standard/GreeceCleaned.csv" , header = TRUE)
austria=fread("data/SUA_standard/AustriaCleaned.csv" , header = TRUE)
chechia=fread("data/SUA_standard/CzechiaCleaned.csv" , header = TRUE)
sua_old=rbind(greece,austria,chechia)
sua_old=melt( sua_old,
id.vars = colnames(sua_o... |
a011f2fbb9497fac77ef21bbc96fe89935bae413 | 5168cbb889fef2c50daf3eeb4743796145953d67 | /mixed-effect model/Mixed_Effects_Regression_daily_approach.R | be2250863f818d319f3719cdcb17a73665af3735 | [] | no_license | pgonzaleze/cf_SST | ca2bb554819800dd9471d73cfdc32e22e3c6c5e0 | 1c3aa5e4bc25b6f4f3e59004a26f15f3532d80f6 | refs/heads/master | 2023-04-11T21:46:44.655658 | 2021-05-23T07:59:21 | 2021-05-23T07:59:21 | 232,674,962 | 0 | 0 | null | null | null | null | ISO-8859-10 | R | false | false | 2,618 | r | Mixed_Effects_Regression_daily_approach.R | "
Author: Pedro Gonzalez
Date: April 8th 2021
University of British Columbia
"
################# ================== ###################
###### Mixed Effects Regression | R Data Analysis ######
################# ================== ###################
require(ggplot2) # to plot
#require(lme4) # to perform mixed effect... |
0d4e51a636d3b66b89580cc89707cfe2a4d22a0f | 4fbb006fb5bd86e7d40615715d340cee1580f307 | /other.R | d62bb6db1f26ed10eee15246a406a0f36c0effa2 | [] | no_license | wilson2121/jiebaR_emotion | b2be55013157d5eb742b9417939a06fabe1250be | 2d26afc945c667fbb0f52550d6534d3f505a95a5 | refs/heads/master | 2020-04-11T12:27:37.827681 | 2017-05-15T14:11:39 | 2017-05-15T14:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,198 | r | other.R | setwd("G:/workcloud/bjtudrive/Rworkspace/emotion analysis")#!!!这只是我自己的根目录请记得按照自己的目录修改
library(jiebaRD)
library(jiebaR)
library(stringr)
#普通引擎
jieba<-worker("tag")
#网络词语引擎,自行选择修改
jieba_net<-worker(type="tag",user = "dict/net.dict.utf8")
#情感分析引擎,自行选择修改
jieba_porn<-worker(type="tag",user = "dict/emotion.dict.utf8")
#保留符号引... |
a6ec75907b9768c34f6ad5ddbaa3bd811ba23a55 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/themetagenomics/R/prepare_data.R | 851dea98cfaba4864bee3072c35596fc2a3a963e | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 12,253 | r | prepare_data.R | #' @importFrom stats model.frame na.omit relevel
NULL
#' Prepare themetadata object from data for topic modeling pipeline
#'
#' Creates a themetadata class by preprocessing data from an OTU table,
#' taxonomic information, sample metadata, and a formula reflecting the preposed
#' relationship between sample metadata a... |
50c0dee94809ab18119ad5007899392559b76695 | ca66ceda7681e3e9633eb81d51278192ccaec49c | /man/SanityCheck.Rd | de0f44fb03005297535404b121a6733a22c0c157 | [] | no_license | fcampelo/MetaTuner | 3473c7d468c9f46f2071b9665f073538bd7c8825 | ee93a9575199b6d70af2ce864991904f6e24bb38 | refs/heads/master | 2021-03-30T18:20:49.568522 | 2018-12-17T10:37:13 | 2018-12-17T10:37:13 | 114,928,299 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 420 | rd | SanityCheck.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SanityCheck.R
\name{SanityCheck}
\alias{SanityCheck}
\title{Check sanity of inputs for metatuner}
\usage{
SanityCheck(myenv)
}
\arguments{
\item{myenv}{list containing input parameters used for \code{\link[=metatuner]{metatuner()}}.}
}
\descr... |
c008dccc33010e0084ae1187c5e531bc0357311a | e9e3f02316db3a9b8b22bb7cd5ff643b8120e765 | /R_code/plot4.R | 01a0209f1ba91aa37a3e7eb1352b93afaecfaa40 | [] | no_license | mikersign/ExData_Plotting1 | 58c9f6f2fd71ec6a65e4730f36d02b212bf93423 | 73f3558da17d3c0c92203bca02be8d8092010c53 | refs/heads/master | 2021-01-17T07:43:52.849231 | 2014-11-09T09:04:52 | 2014-11-09T09:04:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,984 | r | plot4.R | setwd("D:/data/mkl13350/Documents/R course/Exploratory Data Analysis/Week1")
## Read file "household_power_consumption.txt"
initial = read.table("household_power_consumption.txt", sep=";", nrows = 100)
##Determine the datatype of the colomns
classes = sapply(initial,class)
## Read file "household_power_consumpt... |
a010ca7c1b708d163d984b14f96726e52d3ce1cd | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /Quartet/man/SplitStatus.Rd | 2efd070703fb9bcf9910cb673ce22cfdbf1c12a2 | [] | 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 | true | 3,340 | rd | SplitStatus.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PartitionDistance.R
\name{SplitStatus}
\alias{SplitStatus}
\alias{BipartitionStatus}
\alias{SharedSplitStatus}
\alias{SharedBipartitionStatus}
\title{Matching partitions}
\usage{
SplitStatus(trees, cf = trees[[1]])
SharedSplitStat... |
b11372a6faf88960e6a66f4fd24d91cd6fbb493a | cdb4f386359a571c8e919f00857af9b9c9232053 | /ClusterCpGs.R | 02086f5aa8a67f68519093d8b15ecb3cf92fe1de | [] | no_license | GRSEB9S/Gaussian-mixture-modelling | ecc8ea32cd3dd509b97f254d33b17529b142882f | 26387db1814a2bde24a098282cf3c0919ad43e12 | refs/heads/master | 2021-06-14T16:52:30.905632 | 2017-04-05T14:58:43 | 2017-04-05T14:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,182 | r | ClusterCpGs.R | ##################################################################################################
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##################################################################################################
# Start
#""""""""""""""... |
9f290320face41ce401783de847b6042bc70f151 | ac771259d6e3469b75e0fdac251839ab1d070767 | /man/vtlAddStatements.Rd | 8dd99e576170fe3503af7d5caa7b8d8507ce3114 | [] | no_license | amattioc/RVTL | 7a4e0259e21d52e8df1efe9a663ca20a7d130b15 | 630a41f27d0f5530d7c3df7266ecfaf25fe4803a | refs/heads/main | 2023-04-27T17:52:39.093386 | 2021-05-14T09:22:24 | 2021-05-14T09:22:24 | 304,639,834 | 0 | 1 | null | 2020-10-19T19:19:41 | 2020-10-16T13:46:02 | JavaScript | UTF-8 | R | false | true | 1,188 | rd | vtlAddStatements.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vtl.R
\name{vtlAddStatements}
\alias{vtlAddStatements}
\title{Process VTL statements}
\usage{
vtlAddStatements(sessionID, statements, restartSession = F)
}
\arguments{
\item{sessionID}{The symbolic name of an active VTL session}
\item{statem... |
0c404a705a6aa31a460a5fcf62a828fcb78d384e | 51c641816641a17732c5ad8afe0f09cb2743a18c | /diseno_muestral.R | 49a863127b1c22d2eb0087ab31bc40ae2cfb537e | [] | no_license | jardanys/SmallAreaEstimation_HBF | 5d2aec77d71aea5f77ea8008be922ce976a6c199 | 24c773df3fe4b9b54d3e59af0ce1a1efa60063d9 | refs/heads/master | 2021-04-15T18:24:57.168066 | 2018-04-02T16:42:52 | 2018-04-02T16:42:52 | 126,659,146 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,535 | r | diseno_muestral.R | rm(list = ls())
library(survey)
library(sae)
library(TeachingSampling)
library(dplyr)
options(survey.lonely.psu="adjust")
#**************************************
#******* MUESTRA PRUEBAS SABER ********
#**************************************
est <- readRDS("estudiantes.rds")
muestra3etapas <- readRDS("muestra3etapas... |
40771556d59b3a17d765a70b3e190a71552c2943 | dba39c615232885bf426d67ac0c21294005afc6b | /RegressionProject_obesity2013&2015.R | 9770bf32559ff4de64d617d6a6a4742831a4f542 | [] | no_license | ajauregui11-stat6863/STAT-6509-Regression-Application | 1d2851f12525a45996638e84049f8088a19f127c | dd7fde12eafbb7c52fc3b53e582e9b3091c5e688 | refs/heads/master | 2020-03-20T12:17:11.962093 | 2018-06-28T07:46:59 | 2018-06-28T07:46:59 | 137,425,821 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,445 | r | RegressionProject_obesity2013&2015.R | obesity2<-read.csv("yrbs with new data.csv")
View(obesity2)
colnames(obesity2)<-c("year2","state2","alcohol2",
"computer2","soda2","fat2")
attach(obesity2)
#study obesity2 based on alcohol2, computer2, etc.
par(mfrow=c(2,2))
hist(alcohol2)
Boxplot(alcohol2)
hist(computer2)
Boxplot(computer2)
hist(... |
bf2c419b27d8fd6c6515876b7f64c3bf2a6148de | 34394c5936e15be90aa81898fe88d61ac6927de7 | /CAGEtagSearch.FUN.R | 3a878303580ee9fd455a9be34e5cc968abeeb81c | [] | no_license | thomaspb/R-scripts | b5a779c1477d35229ad4a5dce81293354d1c2425 | aff4290002f2b39fb4e5eddf03528a956a49ef73 | refs/heads/master | 2020-05-23T14:28:44.900897 | 2015-07-04T07:47:29 | 2015-07-04T07:47:29 | 38,526,112 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,337 | r | CAGEtagSearch.FUN.R | # CAGEtagSearch.FUN.R
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Progress bar settings
total <- nrow(CAGEinputX)
pb <- txtProgressBar(min = 0, max = total, style = 3)
remove(CAGE.result)
CAGE.result = list()
for (i in 1:nrow(CAGEinputX))
{
## Decompose the CAGE ... |
5ac83591c35a091073369cc3663c020bd876c45a | dc3e1c83cf4525f6739df2b99d67a0f945e86099 | /R/tdroc.R | 1037c107a0dd9efff4997a4cd13e83d6cb8e887e | [] | no_license | csetraynor/yardstic-dev | f1bb71d02bebf5285a7437275f26b6938316ba7d | 9f873f373a423186b55f0a2e03e2a99d1daa2537 | refs/heads/master | 2020-03-18T07:51:16.310249 | 2018-05-22T21:13:27 | 2018-05-22T21:13:27 | 134,476,438 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,728 | r | tdroc.R | #' Calculate tdROC
#'
#'
#' The time dependent ROC analysis (tdROC) allows
#' the user to visualise the sensitivity (true positive rate) and
#' specificity (false positive rate) for all possible cut-offs for the
#' predicted survival.
#' #'
#' @param data For the default functions, a datframe containing survival
#' (ti... |
7fbabd7ac1a34fb792dbd0c1004784770059b6d2 | e9f08e6597d447cd57df5647f109795d14c7c152 | /R/miRNAcor.r | 574648f950d90a7f322b7051a5763031b7559578 | [] | no_license | Liuy12/SomeUsefulScripts | 81634b7a7f524d06bd41d1874109544d99505cc6 | 8b638e0ea8e267e18588021cf65499425b884f3c | refs/heads/master | 2023-01-28T12:23:33.863612 | 2023-01-04T22:19:45 | 2023-01-04T22:19:45 | 27,837,879 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,101 | r | miRNAcor.r | ## Correlation test for miRNA and its target genes
# miRNA with enrichment score from Toppgene
miRNAcandi<-function(clustercenter,miRNAenrich,miRNAexpr){
temp1<-c()
for(i in 1:nrow(miRNAenrich))
{
temp<-grep(miRNAenrich[i,3],rownames(miRNAexpr))
if(length(temp)==1)
{
temp2<-miRNAcor(row... |
b1b9a6335de6962c94fb712dc909770c0c8406c4 | d920b7c82b630bbd3cdf8db95d6e4dd598bab440 | /Predictive Contracting Rate Models.R | 3917d2c654aefc5fad5c3c2a1cf4402c7471b9fb | [] | no_license | johnstrohecker/govt_contractor_rates | a1e132c7dde6e6252ab0ec351cb698bec9b9dcad | 93eb8648429d0f36964c09d61d366c3ecbe267f8 | refs/heads/master | 2020-07-03T03:02:17.520977 | 2019-10-04T00:52:50 | 2019-10-04T00:52:50 | 201,764,410 | 0 | 0 | null | 2019-11-09T19:22:55 | 2019-08-11T12:53:12 | R | UTF-8 | R | false | false | 14,204 | r | Predictive Contracting Rate Models.R | library(imputeTS)
library(caret)
library(dplyr)
library(randomForest)
library(Metrics)
library(rattle)
library(rpart)
library(rpart.plot)
library(MASS)
# Read in data from GSA
# data source can be found at Calc.GSA.gov
dataframe <- read.csv("government_contracting_rates.csv")
# Carry forward prices into... |
af47e73676665e519836fbe8e4119d3887913bf5 | d443605e74edd3b456ab80adc25ebec926541df4 | /eda/ex1/Plot4.R | 989a04132b1b93e46ae43871214f6c5da0b9d078 | [] | no_license | fagnersutel/coursera | 8956fc248892c4ea143575445f1e87fdb47d3328 | df964b387fea21d39fbe95bfbfb1854eec931485 | refs/heads/master | 2021-05-05T14:12:03.975463 | 2018-10-05T15:30:39 | 2018-10-05T15:30:39 | 118,434,589 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,731 | r | Plot4.R | setwd('~/OneDrive/Cursos/Coursera/DataScienceSpecialization/coursera/eda/ex1/')
list.files()
#Carrega os dados de PM2.5
#Load de data about PM2.5
summarySCC_PM25 <- readRDS("FNEI_data//summarySCC_PM25.rds")
#Carrega o c??digo de classificacao de tipos de PM2.5
#Load the Source Classification Code of PM2.5
Source_Classi... |
c026c09e3c4d1682feef35916418b633982afaed | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.management/man/ssm_get_document.Rd | 6d69755818421b67f1309ab802288a878fd973d3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 1,903 | rd | ssm_get_document.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_get_document}
\alias{ssm_get_document}
\title{Gets the contents of the specified Systems Manager document}
\usage{
ssm_get_document(Name, VersionName, DocumentVersion, DocumentFormat)
}
\arguments{
\item{Name}{[requ... |
2d2544bdb11fa30cd24112224e5e8a61fed6a6e5 | cd82b63e473697d97daf287df9681fb627109fb0 | /Session2.R | 4fa6af64b17e77193d104096d21f09d61c56ed6b | [] | no_license | AlbertoCortes13/DSJHU01 | 01d8dd012ba09793c3ba725932e0bd220a13ff66 | f8608c1c9ee2fd2c8be3fe4211e0a5456e49378e | refs/heads/master | 2020-12-26T14:23:46.164548 | 2016-08-31T20:54:37 | 2016-08-31T20:54:37 | 63,817,294 | 0 | 0 | null | 2016-07-20T21:54:47 | 2016-07-20T21:54:47 | null | UTF-8 | R | false | false | 2,488 | r | Session2.R | ##1) Create a single function to load the dataset of complete cases given the folder location: eg. load_complete('specdata')
load_complete <- function(directory){
directory <- setwd(file.path("C:", "Users", "a.cortes.guerrero", "Documents", directory))
id = 1:332
for (i in id) {
files <- list... |
1f45f59be75c74299b9aeac1baecdce3dcacaf43 | 2b106b4488e294b561de4cdd8492d5341229d6d4 | /man/data_collate.Rd | 8476d493a1ff9e5d2e5f668c9b29828c4df3b217 | [
"Apache-2.0"
] | permissive | ysnghr/fastai | 120067fcf5902b3e895b1db5cd72d3b53f886682 | b3953ad3fd925347362d1c536777e935578e3dba | refs/heads/master | 2022-12-15T17:04:53.154509 | 2020-09-09T18:39:31 | 2020-09-09T18:39:31 | 292,399,169 | 0 | 0 | Apache-2.0 | 2020-09-09T18:34:06 | 2020-09-02T21:32:58 | R | UTF-8 | R | false | true | 276 | rd | data_collate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabular.R
\name{data_collate}
\alias{data_collate}
\title{Data collate}
\usage{
data_collate(object, batch)
}
\arguments{
\item{batch}{batch}
}
\description{
Convert `batch` items to tensor data.
}
|
acba02893abacbd76cbd8d74e716bc60524b2118 | 9e08bd33cfcc12f94a1162e46b29da703ad702f1 | /R/discretize_exprs_supervised.R | 1031f4bbf295cd0d12510090a48c4c8e4183235f | [] | no_license | AndiPauli/FCBF | 237577dd4bd0453e23981ffa7fe123dbd81510bb | b851d25d1e311a40a15807edde985a47fa83cfde | refs/heads/master | 2020-08-27T21:18:11.993204 | 2019-09-18T19:49:14 | 2019-09-18T19:49:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,847 | r | discretize_exprs_supervised.R | #' @importMethodsFrom SummarizedExperiment assay colData
#' @import pbapply
#' @import parallel
NULL
#' supervised_disc_df
#'
#' Uses several discretizations and selects the one that is best for a given variable (gene)
#' in comparison to a target class by equivocation
#'
#' @param expression_table A previously normal... |
b98e19c320e2b383b2e192c3805198e63dffc7f7 | 9b6eb608ffe210e5204d9b305594d62adbc98ce3 | /footyr/man/ID.Rd | 9ab058b66c1edf60db153e69007c0e13e8619f1b | [
"MIT"
] | permissive | tyoung95/tyoung | 7436310fc726328fe68b7c7dc69d470c260f33b2 | 4b3ae2bc1a08d7e2994b3313fd067d7b7edc4d3a | refs/heads/master | 2020-07-23T02:16:09.425516 | 2019-12-13T19:51:54 | 2019-12-13T19:51:54 | 207,414,417 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,138 | rd | ID.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/id.R
\name{ID}
\alias{ID}
\title{Get ID numbers for football leagues and teams.}
\usage{
ID(league_name, team_name = NA)
}
\arguments{
\item{league_name}{(string) The name of the league/cup/competition that you
are looking to retrieve the ID ... |
12550efb8185b50323132fd4acacd3490dd13963 | 10c2bc2f0ba9dacf702b373bc5f8b57d6f42a0f4 | /bin/castle/xin.R | d1270a467fb8fb21c01586b1831d9b276ab12613 | [] | no_license | powellgenomicslab/SingleCell_Prediction | 930a18575cae78282675d1be79844f529926b9d5 | 3935dee4cd1b811201a25c6403a6ae5be99f4ac4 | refs/heads/master | 2021-03-22T03:28:50.418324 | 2019-10-14T01:18:59 | 2019-10-14T01:18:59 | 88,580,986 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,111 | r | xin.R | # tested on R 3.4.3
# setup required libraries and constants
library(scater) # tested on version 1.6.3, install from Bioconductor: source("https://bioconductor.org/biocLite.R"); biocLite("scater")
library(xgboost) # tested on version 0.6.4.1, install from CRAN: install.packages("xgboost")
library(igraph) # tested ... |
de85ce28cd87b0e611b17c8ed678e85d983fd740 | 306a2f9b10c63884e56f3eddd77c83c3b96df55e | /Joanne/Old/Feed international SVAR into RF/listData2.R | 019001b8b181a10f67c5d28cec5da80dae2f7cf1 | [] | no_license | Allisterh/VAR_Sims_rfvar | 0f74bda155a1d2e0768dcacc08f7a5fa6de8eddd | befb94ec18da7a7c88c581249e2382e86a319ebc | refs/heads/master | 2023-03-17T13:32:11.188302 | 2017-10-11T19:15:22 | 2017-10-11T19:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 658 | r | listData2.R |
listData2 <- function(rfvar7results){
#function: runs the international model on the reduced form VARs
countries=rfvar7results$countries
nCountries=length(countries)
Y<-list()
for (iCountry in countries){
datay= rfvar7results$voutlst[[iCountry]]$u
Y[[i]]=datay
dlength[i]=dim(datay)
}
Y <- do.call("rbind",... |
0e0fd4d1d7a9bca96cf32eb54a439e6f9fcea7e1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hyfo/examples/collectData.Rd.R | d3262b3adc67861114e9be590e7de30839294fbd | [] | 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 | 479 | r | collectData.Rd.R | library(hyfo)
### Name: collectData
### Title: Collect data from different csv files.
### Aliases: collectData
### ** Examples
#use internal data as an example.
folder <- file.path(path.package("hyfo"), 'extdata')
# file may vary with different environment, it if doesn't work, use local way to get
# folder path.
... |
92c9e4042e78994b8958edd952745c397e8ee665 | 7b6da5dcf62921494da07794c2a02d5873df5f39 | /data-raw/melbweather.R | 15bb4ff5d591e1163ccf4fbd34b768b86fa6513b | [
"MIT"
] | permissive | frycast/virgo | cacd86859673c73de4a3e731226ba406357e68f5 | 25b50ef94de7ebe19e1caff03e7713e69a182e20 | refs/heads/master | 2023-02-21T15:11:29.559606 | 2021-01-22T00:55:29 | 2021-01-22T00:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,487 | r | melbweather.R | ## code to prepare `melbweather` dataset goes here
# update once rwalkr gets put up on cran
# remotes::install_github("earowang/rwalkr@d528e7b")
# well we use three months of data for summer 2019/20
library(rwalkr)
library(dplyr)
start <- as.Date("2019-12-01")
end <- as.Date("2020-02-29")
# extract regular measuremen... |
e6e5890b0ba3b8107ad10ec1dd2551e50b66dae1 | 7be551356fbadf4f0c2eea4e06c1f6d1856f6288 | /Case Studies/R/property_price_prediction/Problem 2/app.R | 7a736d5ee09ce3e3f27f282f569d4481fbff0f23 | [
"MIT"
] | permissive | AnanduR32/Datascience | 160c686f770adc086637b6467bbe6dd84508ce12 | 17a0b3056f558d917cec222b2d27a9d16920a9b6 | refs/heads/master | 2023-08-25T07:46:10.391445 | 2021-10-04T17:05:27 | 2021-10-04T17:05:27 | 252,497,031 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,153 | r | app.R | library(caret)
library(stats)
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
titlePanel("House price prediction App"),
sidebarLayout(
sidebarPanel(
sliderInput("square", "Square Area of plot", 0, 650, 1,step = 1),
sliderInput("constructionTime... |
c550d9b520afca028cdd57c92c16ad663969a73b | 7821c14e8b0de6b106830f2008f5508aa8ef83f8 | /plot3.R | aae5307a0f0e8954db15091f174a0f02e9f8ccdd | [] | no_license | amandavarella/DataExploratory_Project2 | c0f504528debe23d1a4e07308727d5b54f9dd9db | f9406366b46fae715a7e6a475002a4c11e48ca62 | refs/heads/master | 2020-05-24T13:32:33.263710 | 2014-09-19T12:47:24 | 2014-09-19T12:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 921 | r | plot3.R | ##setwd("C:/Users/ur3s/Dados/coursera/DataExploratory/Project2")
library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
##Of the four types of sources indicated by the
##type (point, nonpoint, onroad, nonroad) variable,
##which of these four sources have seen decrea... |
3e12866b7868f47f7738dc23db8805346789c9dd | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ddalpha/man/depthf.HR.Rd | 4ce85b4e9d51a6503f3ddb74657f5322b3255be6 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,914 | rd | depthf.HR.Rd | \name{depthf.HR}
\alias{depthf.HR}
\title{Half-Region Depth for Functional Data}
\usage{
depthf.HR(datafA, datafB, range = NULL, d = 101)
}
\arguments{
\item{datafA}{Functions whose depth is computed, represented by a \code{dataf} object of their arguments
and functional values. \code{m} stands for the number of functi... |
2566818e19ca1dd707d0af2dd0d5ec13d2f9f800 | dc411dbbe7f51b8131d06e49ecaed8d7f85e89b8 | /plot3.R | 98ec9be93f61697a9ebb8a382e39cae099c88c99 | [] | no_license | lestarr/ExData_Plotting1 | 5dfc27c39df3166914bebe80b10e71e91da57af8 | 3f28c4615c16715374cd617daab5821897237050 | refs/heads/master | 2021-01-24T02:40:04.489823 | 2015-09-12T13:07:09 | 2015-09-12T13:07:09 | 42,356,170 | 0 | 0 | null | 2015-09-12T12:23:40 | 2015-09-12T12:23:39 | null | UTF-8 | R | false | false | 672 | r | plot3.R | ## Plot 3
source("C:/2Projects/DataAnalysis/Rprogs/wdir/getDataProject1.R")
filepath <- "plot3.png"
png(file = filepath)
f <- "data/household_power_consumption.txt"
data <- getData(f)
data[, "datetime"] <- paste(data$Date, data$Time)
posix <- strptime(data$datetime, format = "%Y-%m-%d %H:%M:%S")
plot(posix, dd$Sub... |
e46cc751bd743a9d236f4d539fdcd35ba7d0b7b6 | 482eef7d15f1e98406793a8f74eb32dafcfed004 | /cachematrix.R | fe4b864a2d4dc1afb7349e55d7943c8ff84707b6 | [] | no_license | elegantcoderM/ProgrammingAssignment2 | 948d1f25c73df63493a4372fb763c6c7e6b86465 | 8df1b0df6f77c0a21ec27e59f8ab088e5e8105b3 | refs/heads/master | 2021-01-14T09:54:26.402070 | 2015-05-22T08:00:23 | 2015-05-22T08:00:23 | 35,860,042 | 0 | 0 | null | 2015-05-19T04:55:01 | 2015-05-19T04:55:00 | null | UTF-8 | R | false | false | 1,108 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## The below function makeCacheMatrix() caches a matrix and
## it's inverse. It has 4 functions to set and retreive the
## matrix and its cached inverse
makeCacheMatrix <- function(x = m... |
83eb2c7370139729ba0f10b637e8f35b646f1c7c | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/Rfast/man/cova.Rd | ce5a50c306696d7151adea233b44ec46b393071c | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,697 | rd | cova.Rd | \name{Covariance and correlation matrix}
\alias{cova}
\alias{cora}
\title{
Fast covariance and correlation matrix calculation
}
\description{
Fast covariance and correlation matrix calculation.
}
\usage{
cova(x, center = FALSE)
cora(x)
}
\arguments{
\item{x}{
A matrix with data. It has to be matr... |
d6b3fa072e074a644470daf5d3fd2daf04ff0390 | b28f74d681bb5dfbf34549c82a8c932f77c1b0a8 | /man/mascot_refseq2uniprot.Rd | 2d768ce04d3ba7acd60ea189ba581fabe295b3bf | [
"MIT"
] | permissive | sailfish009/proteoQ | b07e179e9fe27a90fd76cde2ed7caa55e793e9d6 | e6a4fe79a21f9a9106a35d78c2ce42d59e9d82e2 | refs/heads/master | 2022-12-25T20:06:40.340740 | 2020-10-15T20:18:14 | 2020-10-15T20:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 385 | rd | mascot_refseq2uniprot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulData.R
\name{mascot_refseq2uniprot}
\alias{mascot_refseq2uniprot}
\title{Helper function}
\usage{
mascot_refseq2uniprot(dat_dir)
}
\arguments{
\item{dat_dir}{A character string to the working directory. The default is to
match the value ... |
457c01b792cdfa4435be8c685c8f580a10f549b1 | b1252f5d2c993d996fb7c06deac8bce8a632eb30 | /R/density/main.R | f32a38269a0f2dc132298c312ecb56457ae1c363 | [] | no_license | 504966078/utils | a221d3aed5030808432b11f4fb79a0224b5aa618 | 972c58aa53912d02455187758ff0904cb7bbdd8d | refs/heads/master | 2020-03-23T18:22:33.774854 | 2018-07-23T11:27:46 | 2018-07-23T11:27:46 | 141,904,872 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 579 | r | main.R | #!/usr/bin/R --vanilla -q -f
#
#The data is in the following format Value \t Quantity
#
tbl <- read.csv("data.csv",header=FALSE, sep="\t")
dsty <- tbl$V1/tbl$V2
dk <- density(dsty)
dn <- dnorm(dk$x,mean=mean(dsty),sd=sd(dsty))
pdf("out.pdf")
plot(dk,
col="red",
main=c("Kernel method vs Gaussian distribution... |
863e713153cb7e3b5669fe62d4a7ae3bafb719df | a48797beca55474d7b39676389f77f8f1af76875 | /man/f2_from_geno.Rd | 8be2bb8b384dbde277da956d146f793244a6c8a1 | [] | no_license | uqrmaie1/admixtools | 1efd48d8ad431f4a325a4ac5b160b2eea9411829 | 26759d87349a3b14495a7ef4ef3a593ee4d0e670 | refs/heads/master | 2023-09-04T02:56:48.052802 | 2023-08-21T21:15:27 | 2023-08-21T21:15:27 | 229,330,187 | 62 | 11 | null | 2023-01-23T12:19:57 | 2019-12-20T20:15:32 | R | UTF-8 | R | false | true | 6,752 | rd | f2_from_geno.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{f2_from_geno}
\alias{f2_from_geno}
\title{Compute blocked f2 statistics}
\usage{
f2_from_geno(
pref,
inds = NULL,
pops = NULL,
blgsize = 0.05,
maxmem = 8000,
maxmiss = 0,
minmaf = 0,
maxmaf = 0.5,
pops2 = NULL,
... |
2c47225a9b430476fd567aa428a02ac4cf28a642 | 5795af8f47e78443b25a679210a17bf4f08aed71 | /answer_07_09/answer.R | 85056073e68b2d9f99088ad7cd9cf9d959f0d2cd | [] | no_license | Ylab-Shiny/projects2018 | 94edbbfc257aa48c7c54376bfb04194298a260c3 | eb6c31da029cc740e417d4e1db8a0b85c099aab8 | refs/heads/master | 2020-03-18T03:49:20.844508 | 2018-11-09T02:26:43 | 2018-11-09T02:26:43 | 134,255,755 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,477 | r | answer.R | ############################################################################################################################
###### answer.R -- 2017年度の月ごとのデータに正のトレンドがあるか検定する ##############################################
###################################################################################################... |
98e9244f17543e09f642efacbf7f368f0cf7dae7 | 705255987191f8df33b8c2a007374f8492634d03 | /man/get-Samples-character-method.Rd | 4f79511c33eebf1d6b285eb08a1af840fb3008d2 | [] | no_license | Roche/crmPack | be9fcd9d223194f8f0e211616c8b986c79245062 | 3d897fcbfa5c3bb8381da4e94eb5e4fbd7f573a4 | refs/heads/main | 2023-09-05T09:59:03.781661 | 2023-08-30T09:47:20 | 2023-08-30T09:47:20 | 140,841,087 | 24 | 9 | null | 2023-09-14T16:04:51 | 2018-07-13T11:51:52 | HTML | UTF-8 | R | false | true | 1,702 | rd | get-Samples-character-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Samples-methods.R
\name{get,Samples,character-method}
\alias{get,Samples,character-method}
\title{Get specific parameter samples and produce a data.frame}
\usage{
\S4method{get}{Samples,character}(x, pos = -1L, envir = NULL, mode = NULL, inhe... |
50bc7574d8caef0d2536f1fb98a5201055f73f1a | a01bef83939991f1f45958a919c1a2cedf290304 | /man/linearInterpolation.Rd | 90454eedb98081b0e09d3ffb14e0ce4f3d55c7e1 | [] | no_license | JimGrange/trimr | 73ab3e2568bc103f56209102e65191ffdfe23f9d | f35e44dbe7868d5111a48c8a679b9cbcb04c541e | refs/heads/master | 2022-05-16T19:52:27.518171 | 2022-05-05T03:08:44 | 2022-05-05T03:08:44 | 28,407,568 | 12 | 3 | null | 2018-06-14T19:42:06 | 2014-12-23T16:19:25 | R | UTF-8 | R | false | true | 796 | rd | linearInterpolation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{linearInterpolation}
\alias{linearInterpolation}
\title{SDs used for the recursive / moving criterion trimming methods}
\format{
A data frame with 97 rows and 3 columns:
\describe{
\item{sampleSize}{Sample ... |
0315765b516bbfa4183e29c8736961282f484006 | f041fcacb47f63214ec9e6c809ea86cddf1ef2dc | /R/00-setup.R | a16c36e2d5290c6c685b6e0fd4c32c55feef1deb | [] | no_license | maurolepore/start-with-data | a955a7669581edf670683012f2e8d0fca1d1fe49 | 6c3f0bb76f6b84edc3bbb8d90fafef98baf337fc | refs/heads/main | 2021-11-25T14:14:32.928996 | 2018-06-10T22:25:11 | 2018-06-10T22:25:11 | 136,827,041 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 407 | r | 00-setup.R | # install.packages("usethis")
usethis::use_blank_slate("project")
# WARNING: This will affect all your RStudio projects (recommended)
# usethis::use_blank_slate("user")
# Challenge ---------------------------------------------------------------
# What is the class of the object surveys?
# How many rows and how many c... |
e277994e121c73fae64aabc2122be5630d60e2b3 | 335eb7d0a695b9a7bc5e1f5ed9dc676272776703 | /tests/testthat/test-1-nbits.R | ebafe7a377613a38642f05d005f1092eb58c7b82 | [] | no_license | ayazagan/amalgam | 750298c89709814696642304b52b24d0fab9b4a7 | 00ca3804f031cc67ff104ce35c8522f82b444ec9 | refs/heads/master | 2022-04-16T11:59:22.642445 | 2020-02-25T03:40:22 | 2020-02-25T03:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 326 | r | test-1-nbits.R | library(amalgam)
bin <- c(0,0,0,0,0,0,0,1,1,1,1,1)
test_that("nbits function deparses binary input correctly", {
expect_equal(
int.from2bit(bin),
c(0,0,0,1,3,3)
)
expect_equal(
int.from2bit(bin),
int.fromNbit(bin, nbits = 2)
)
expect_equal(
int.fromNbit(bin, nbits = 4),
c(0,1,15)
... |
7af0b8733ce6a26f51f651be36d1959bbe8d7977 | 60fd1968c7fa8c8d5c794cdf583c3d47adbc3d45 | /tests/testthat/test_hector.R | 825f453161c06ffbc2b132c8a285643bb913ffdf | [] | no_license | l5d1l5/hectorcal.rcmip.cmip6 | 91f59a906947eadd4e1a8bf482dcd9049722cc44 | 89d4db12be6781fc96b0884fde505422c32a656a | refs/heads/master | 2022-04-06T00:15:32.637376 | 2019-12-05T18:40:15 | 2019-12-05T18:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,342 | r | test_hector.R | context('Test the Hector support functions.')
library(dplyr)
devtools::load_all('/Users/dorh012/Documents/2019/AS/hector')
testthat::test_that('correct version of Hector is being used', {
years <- 1850:2100
ini <- system.file('input/hector_rcp45_constrained.ini', package = 'hector')
core <- newcore(inifile =... |
48763376f1f6121492e6437bee03e562ab6eea8f | 0badc974bc713fdd8af80e17cc00d1778054418a | /SLIS434Project.R | 82ffab0d3870770eb92711b37faa63a4cb8a75ce | [] | no_license | whhall/SLIS434Project | 317bcb59c075f6f6520eed9207856a6a8e237ad1 | 5db8d732e3da1e0804ffafb1629e9daf71bcb041 | refs/heads/main | 2023-01-14T04:05:00.059250 | 2020-11-20T14:26:55 | 2020-11-20T14:26:55 | 313,080,475 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,773 | r | SLIS434Project.R | install.packages("usmap")
library(usmap)
library(learningr)
library(ggplot2)
library(janitor)
install.packages("ggpubr")
library(ggpubr)
install.packages("tidyverse")
library(tidyverse)
library(Hmisc)
install.packages("corrplot")
library(corrplot)
install.packages("PerformanceAnalytics")
library(Performa... |
7933ebcd93d2b6bda1ad41710e35cc213328f7ad | f2ed5996cd8e1fa8527a09b00eb41796c1b57cb5 | /scripts/make_graphs.R | 30ffbff6cc61fe0eb0eeccec69f0fd945ee5e47f | [] | no_license | UI-Research/la-bias-assessment-jpc | 7b6e4ea91f792440f03e5274c6ff35cc11900fb4 | 4ea38bda0a8b813935ae923adc756bdb0107b90a | refs/heads/master | 2022-11-13T08:37:53.545115 | 2019-10-01T18:46:06 | 2019-10-01T18:46:06 | 212,173,819 | 0 | 1 | null | 2022-11-11T18:30:46 | 2019-10-01T18:46:58 | HTML | UTF-8 | R | false | false | 13,501 | r | make_graphs.R | library(knitr)
library(tidyverse)
library(urbnthemes)
library(sf)
library(grid)
library(gridExtra)
library(leaflet)
library(extrafont)
library(mapview)
library(htmlwidgets)
library(patchwork)
### Helper functions
plotr <- function(p = NULL, title = NULL, subtitle = NULL,
source = "",
... |
6c3b50d2f5ba7d91d11e5b66f685b460fc84c195 | 53cf23d7a0e1d3f1983171d119e6c3263e30995a | /R/PortfReturns.R | f37be81424c59c9780ca5861962c859e5d93c71e | [] | no_license | redmode/blotter | 54bcdb52c5a7e56d034e9b0dda57fdf8ae254a0a | 0b32d38f3163f35102bf70cdf8b5e4af769606bc | refs/heads/master | 2020-05-31T14:26:46.759479 | 2014-08-19T01:18:07 | 2014-08-19T01:18:07 | 23,091,843 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,175 | r | PortfReturns.R | #' Calculate portfolio instrument returns
#'
#' This function (for now) calculates return on initial equity for each instrument
#' in the portfolio or portfolios that make up an account. These columns will be additive
#' to return on capital of each portfolio, or of the entire account.
#'
#' This function exists bec... |
be23c9ee0a9811ad0343fb3412c280ab5067eb29 | 5ae46ded978297e5d78d838bd667bc0f3ec3e52d | /HF/rfiles/clean.r | aef1608617c0c79b27075da5e961599c495520e2 | [] | no_license | sykstan/soot | 42588fb4ca87637cf15d3b166b59f257bd1b65c6 | c581a73b4e46a03c50e7a189e07ba1ffc2565c59 | refs/heads/master | 2021-01-17T17:50:41.765238 | 2016-10-18T01:17:05 | 2016-10-18T01:17:05 | 70,653,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,106 | r | clean.r | # script to clean data and create
# data objects to work with
# loads imported.data
# and saves to cleaned.data
require(data.table)
require(magrittr)
require(tidyr)
load(file = "~/GoogleDrive/scs-it/imported.data")
### ============== DATA MUNGING =============== ###
# extrapolation: general formula
# why SCS scale... |
1e611fa4969972ffbaead06b2075172b8bf9c9c0 | ee6434c66468957934d216d7839f595b4fc07bb9 | /MungingCoursera.R | a7f4b72cfd05f00a269c72df3b33e41e8a16cf07 | [] | no_license | sdperez/RSampleCode | 73f72e13b9ba918efdb5a49934f90eb3548f9ff7 | 75ec4694ad92138075fee52cdb1d6fc05ca52751 | refs/heads/master | 2021-01-01T19:42:09.028964 | 2015-08-21T00:41:52 | 2015-08-21T00:41:52 | 13,844,254 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,483 | r | MungingCoursera.R | ##########################################################
#Data Munging
#Operations for cleaning and seting datasets for analysis.
#From "Data Analysis" course on Coursera.
#
########################################################
setwd("C:/Users/sdperez.EMORYUNIVAD/Desktop/My Documents/EducationalMaterials/DataAnaly... |
2b2eed2752bf8e0859b05cdb7b5b6d9249db74a9 | 15d99902cd236f68cbe6ff1b64799a66a50fc9a0 | /crosswalk_munge.R | 9b8f3882bd816eb6ab46f576490b6ae412bb7300 | [] | no_license | DukeStatSci/thesis-sp18-driscoll-envjustice | a09fec63bcd30e10921a53afd18d59ebab9fa224 | 64086fedce0f2017c35d7be8ec0adfe2e8fa14bb | refs/heads/master | 2021-09-12T18:23:25.632246 | 2018-04-19T21:05:22 | 2018-04-19T21:05:22 | 105,419,987 | 1 | 2 | null | 2018-04-13T12:48:43 | 2017-10-01T04:51:40 | HTML | UTF-8 | R | false | false | 1,729 | r | crosswalk_munge.R | library(readr)
library(data.table)
library(dplyr)
library(stringr)
## Raw census data not included in package due to github size constraints.
## Must get the nhgis_blk_1990_blk2010 files to be able to run.
#import the data
cw90 = as.data.frame(fread("data/census/raw/nhgis_blk1990_blk2010_ge.csv"))
names(cw90) = c("id... |
7a1ae07905b000271abace47703d55181f94bf22 | c2726510193cc92441446ca6486da4f8ff6173c2 | /man/nest_append_interval.Rd | 3a35c4ba2f5514236797163ef503e869bc3c6e35 | [] | no_license | HSPS-DataScience/tsCogs | e8ae09e5918adc9a8b6ec57555f645f154b0e08b | 5935701367e4ba6c8ffa07d0dbed73fa281a6105 | refs/heads/master | 2021-09-12T18:13:18.638805 | 2018-04-19T19:26:58 | 2018-04-19T19:26:58 | 120,468,450 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 793 | rd | nest_append_interval.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nest_interval.R
\name{nest_append_interval}
\alias{nest_append_interval}
\title{nest_append_interval}
\usage{
nest_append_interval(nestTib, rawData, type, interval)
}
\arguments{
\item{nestTib}{Nested tibble with `AccountNumber`` as identifie... |
43e19292d02d126325ba7a74d361bf770eb86723 | 2d32305806855dc8793ab0348acef458b139f1be | /man/r4ss_obj_err.Rd | fa178fbe21291d4c4dae45f0950f5651cd9c3b35 | [
"MIT"
] | permissive | nmfs-fish-tools/SSMSE | 07a9ed4defb370833864183b7f4a775425c53b3c | 47445d973a537eaf9a7361f842d3f7a404bca247 | refs/heads/main | 2023-08-16T21:18:17.253400 | 2023-08-09T21:40:26 | 2023-08-10T12:20:30 | 197,069,801 | 16 | 5 | MIT | 2023-09-08T16:03:34 | 2019-07-15T20:44:06 | R | UTF-8 | R | false | true | 476 | rd | r4ss_obj_err.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkinput.R
\name{r4ss_obj_err}
\alias{r4ss_obj_err}
\title{Error if object is not an r4ss object}
\usage{
r4ss_obj_err(obj_name = "object ", type = "list")
}
\arguments{
\item{obj_name}{Object name that is not an r4ss object to print in the... |
48dfa007c3982c12accf7c6f46d3c72b330f34c1 | af2df8e81dba2ecf02a9172037aad2c5f3974344 | /cachematrix.R | 70a94848852b93768bc0877bc4781df74520c6aa | [] | no_license | aneyrac/ProgrammingAssignment2 | 292ffc4b06c853d06c457e6db1f16c059aa235e4 | 2d2cc33a5d1d6d78c4034b69565c43aec01780fa | refs/heads/master | 2022-07-11T18:08:15.659960 | 2020-05-09T02:37:42 | 2020-05-09T02:37:42 | 262,468,196 | 0 | 0 | null | 2020-05-09T02:03:08 | 2020-05-09T02:03:07 | null | ISO-8859-10 | R | false | false | 1,278 | r | cachematrix.R | ##These functions calculate and cache the inverse of a matrix
##When the user wants to calculate the inverse of a matrix previously computed,
##the saved value is returned instead of doing the calculation again
##This function creates a special "matrix" object that can cache the inverse of a matrix
makeCacheMatrix <-... |
d93bb5bfeabf17843efe268317e5f6312a1f7a98 | 77157987168fc6a0827df2ecdd55104813be77b1 | /MGDrivE/inst/testfiles/calcCos/libFuzzer_calcCos/calcCos_valgrind_files/1612727000-test.R | eec612c803b84fbfa38fe52315942bd890852b67 | [] | no_license | akhikolla/updatedatatype-list2 | e8758b374f9a18fd3ef07664f1150e14a2e4c3d8 | a3a519440e02d89640c75207c73c1456cf86487d | refs/heads/master | 2023-03-21T13:17:13.762823 | 2021-03-20T15:46:49 | 2021-03-20T15:46:49 | 349,766,184 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 165 | r | 1612727000-test.R | testlist <- list(latLongs = structure(3.34845030589153e-315, .Dim = c(1L, 1L)), r = -8.36580345060678e+303)
result <- do.call(MGDrivE::calcCos,testlist)
str(result) |
9d88edfb36226d6ec54fa615b0e97b8dddc611e2 | ddb26b2d0dd87c03f6ee3eb94d478b401ad84bcb | /src/ClassTest2/include/ClassTestFunctions.R | eac081b6e67493de897c7c2a55e14f91d2357efd | [] | no_license | jamesbriant/UQ | b428707d2513b7b8cc4e1aa1ce8b123bd921cb22 | 790563a9ef3922b623ee04a27592d5d6bb4b6198 | refs/heads/main | 2023-04-30T05:22:16.380459 | 2021-05-18T15:40:33 | 2021-05-18T15:40:33 | 303,977,737 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 459 | r | ClassTestFunctions.R | u <- function(lambda){
beta.m <- c(20, 20, 5, 5)
lambda.m <- c(-0.7, -0.3, 0.3, 0.7)
sum.m <- 0
for(m in 1:4){
numerator <- (-1)^(m+1)
denominator <- 1 + exp(-2*beta.m[m]*(lambda - lambda.m[m]))
sum.m <- sum.m + numerator/denominator
}
return(sum.m)
}
dwigner <- function(x, R=1){
... |
8cf1698f7fbe9f46175bf4e66eee614f7583c9ae | 1ff6f8fb7a02981c9a385a4bb4fd63ac1a688afd | /Homework/Homework 2/Problem 2.R | 1b631b69c672fba7365d7116deb68456537b281a | [] | no_license | yingxuan0806/ESA | bf75b8325d9fd8350ee15ddc599a29b2787debf4 | 0b010cc2e26187e1d1571a4c539f6dde216203d5 | refs/heads/master | 2021-05-17T15:59:40.785230 | 2020-04-30T16:49:20 | 2020-04-30T16:49:20 | 250,858,555 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,764 | r | Problem 2.R | rm(list=ls())
setwd("~/Documents/SUTD/Term 5/ESA/Homework/Homework 2")
if(!require(goalprog)) {
install.packages("goalprog")
library(goalprog)
}
if(!require(fmsb)) {
install.packages("fmsb")
library(fmsb)
}
# PROBLEM 2
# Task 1
coefficients <- matrix(c(4, 2, 4, 2, 1, 0, 0, 1), nrow = 4, byrow = TRUE)
target... |
8fa3d5a6aa4e79c2cfb292c408a4bfd8600acfcc | 2b2aee3352f8a10c121fe74036eddec01b3ee595 | /man/drawByStrength.Rd | c4ae09ab7f2ba1d96f45e617390ffcceed251afc | [
"MIT"
] | permissive | rdinnager/slimr | 56f1fef0a83198bce292dd92dc1014df87c2d686 | e2fbb7115c7cca82dabd26dc6560e71a8cd0958b | refs/heads/master | 2023-08-21T14:00:36.089104 | 2023-07-31T03:11:09 | 2023-07-31T03:11:09 | 226,999,099 | 8 | 1 | NOASSERTION | 2023-08-03T05:44:32 | 2019-12-10T01:04:16 | R | UTF-8 | R | false | true | 3,732 | rd | drawByStrength.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slim_lang.R
\name{drawByStrength}
\alias{drawByStrength}
\alias{InteractionType$drawByStrength}
\alias{.IT$drawByStrength}
\title{SLiM method drawByStrength}
\usage{
drawByStrength(receiver, count, exerterSubpop)
}
\arguments{
\item{receiver}... |
43c88b3f98674cab42b53b7b7a0e2ce8d505e7b6 | 7b729f9f4a1dfded7f7e5f9f349a836a72f72e39 | /R/prediction.R | 04ffef47f77ee18ebf7ff20f7f6345e3a3a4710e | [] | no_license | cran/dMod | 911209d72a4d837dd736cdb4b20de8e34727379e | 5a567de82579b081c1f5cc643fa893a4dea3b398 | refs/heads/master | 2021-07-18T00:15:04.690663 | 2021-01-26T23:30:13 | 2021-01-26T23:30:13 | 37,273,446 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,798 | r | prediction.R |
#' Model prediction function for ODE models.
#' @description Interface to combine an ODE and its sensitivity equations
#' into one model function \code{x(times, pars, deriv = TRUE)} returning ODE output and sensitivities.
#' @param odemodel object of class \link{odemodel}
#' @param forcings data.frame with columns n... |
15889ad5e74d7b17b92f27224399275b894844df | 959a99ac6395d54b2ea01c4bdfee07b16a0c4f73 | /ADdata/functions.R | bff0d36ac555b81b8aaced5c2fad1a3ba4e4a038 | [] | no_license | rheitkamp/microbiomePower | 862b3c300a1203872ddd7b4732556c482273a05c | ecbbe4ca7d4950f9c2a9f91b1ec9e7592ec34d07 | refs/heads/master | 2016-09-06T08:23:01.598865 | 2014-06-25T20:14:21 | 2014-06-25T20:14:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 635 | r | functions.R | ###Broken stick with linear SD transformation
bMSD <- function(x){
(nrow <- dim(x)[1])
(ncol <- dim(x)[2])
(y <- matrix(nrow=nrow,ncol=ncol, dimnames=list(rownames(x), colnames(x))))
(total <- 100)
(y[1,2] <- (x[1,2])/100)
(y[1,1] <- (x[1,1])/100)
for(i in 2:nrow){
(y[i,2] <- x[i,2]/(total - x[i-1,1])... |
3d5b8a8519f8eb5fe73c9b15e510674415655059 | d26b1b446e18850cae39119828067d21a5079acd | /R/GetPropAligned.R | b038aecc317d191576be420db883dc36ef0c8c6a | [] | no_license | ziyili20/TOAST | c623dcb2c64a89f00f84fddfab759da62d6434a5 | 102b6b1fa801561976b070adf1e15378bde43f76 | refs/heads/master | 2022-08-31T11:28:40.598741 | 2022-08-24T19:35:31 | 2022-08-24T19:35:31 | 145,612,563 | 12 | 4 | null | 2021-07-20T06:07:43 | 2018-08-21T19:53:08 | R | UTF-8 | R | false | false | 781 | r | GetPropAligned.R | GetPropAligned <- function(input,reference,L){
colnames(input)=colnames(reference)=seq(1,dim(input)[2],by=1)
corMat = cor(input,reference,use="pairwise.complete.obs")
prop_cor = rep(0,L)
tmpmat=corMat
tmpmat[is.na(tmpmat)] = rnorm(L,-1,0.01)
if(L>2){
for(i in 1:L){
... |
a4e60a0514cd6500a775cf4c3f9d72d9b58ceb9e | f5feacda6bcf986bf61cdfa57f5387ed7e651918 | /man/points_sd.Rd | 422bd5227ed79d3b5d40d0a18cb856b81e24b338 | [] | no_license | cran/functClust | 3386c3179bdf9e255bfec00ed8f39b6c3c696da1 | f7415612fbc0fd749a1da01e822b6217e2b8bb0e | refs/heads/master | 2023-01-20T01:30:18.270906 | 2020-12-02T09:30:02 | 2020-12-02T09:30:02 | 318,755,202 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,088 | rd | points_sd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_fclust.R
\name{points_sd}
\alias{points_sd}
\title{Plot a point with x- and y-error bars}
\usage{
points_sd(x, y, opt = c("mean", "mean"), fig, col, bg, cex = 2, name = "")
}
\arguments{
\item{x, y}{two numeric vectors, x in abs... |
2b9059c3da958e694b3cee583f17b2f8f1fc25f9 | 14c45e24952fe246a557c49a7795da5f19af2d58 | /talks/sibaura220615/fig/ex1.r | b27b55a75bceb71cf29d9b02c4c5afecce26190b | [] | no_license | s-takato/s-takato.github.io | 59e51d938c410fb1c886dfb32247e8b42dcdb5df | 735f07b341990569171718291c336abf221ca08f | refs/heads/master | 2023-03-08T07:38:52.870212 | 2023-02-26T00:39:43 | 2023-02-26T00:39:43 | 183,700,769 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,695 | r | ex1.r | # date time=2022/6/15 08:18:00
setwd('/githubio.git/talks/sibaura220615/fig')
source('/Applications/KeTTeX.app/texlive/texmf-dist/scripts/ketcindy/ketlib/ketpiccurrent.r')
source('/Applications/KeTTeX.app/texlive/texmf-dist/scripts/ketcindy/ketlib/ketpiccurrent_rep2e.r')
Ketinit()
cat(ThisVersion,'\n')
Fnametex='ex1.t... |
3dea0bfda005460a89260fc73cc63bc8ac6e2183 | 31978b16ba68fce7ea8afcf932be6d11cda8df75 | /seedlings_basiclevels_dataprep_pnas.R | 5e5ccfd9d85e9a55e82af68b824ff6268d3ce4b0 | [
"MIT"
] | permissive | ebergelson/sixmonth_seedlings_paper | bfe96405f3b4e9421ec81994fd7c28811f0c9b52 | 86fe7f9ec2e64a2882312a8229b253462c9f044b | refs/heads/master | 2021-08-17T06:29:59.623376 | 2017-11-20T21:29:24 | 2017-11-20T21:29:24 | 104,960,280 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,567 | r | seedlings_basiclevels_dataprep_pnas.R | # this script aggregates the seedlings basiclevels at the recording-level, and adds some relevant statistics.
# it runs over the all_basiclevel_feather files that are made by concatenating
# each file's annotations lab internally
# for the pnas paper, we only care about month 6
# so at the end of this script we write ... |
4feb6005a92ab7c87d7bcd5f358cce804e677ba6 | c61b367db07762465c749e85ed0c933a0d2e9f5d | /Code/calculate_immune_ave_gsva_singlecelldata_v2.R | 12b96ad752d3502bffd6b304ec0aabbebd46229e | [] | no_license | lizhu06/TILsComparison_PBTvsMET | 08880f46b9d1a42e3f9b8e841a0edc35fd00386e | 5adec0fc526a3025ccbcd99ea34d40b3c56055ba | refs/heads/master | 2020-06-02T05:54:49.924270 | 2019-06-09T22:45:08 | 2019-06-09T22:45:08 | 191,060,883 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,591 | r | calculate_immune_ave_gsva_singlecelldata_v2.R | rm(list=ls())
options(stringsAsFactors = FALSE)
setwd("/net/wong05/home/liz86/Steffi/primary_vs_mets/")
# R 3.4.0
library(limma) #3.32.6
library(GSVA) # 1.26.0
#### load data
load("Data_v2/scRNA_Chung_tpm_noFiltering.RData")
tpm <- tpm_noFiltering
rm(tpm_noFiltering)
log2tpm <- log2(tpm+1)
## pick type
cell_names <-... |
dbfbfaffe7a94ba3d99c38f830d68c0eeece61c5 | 6dfe71a04d7ca18ef55b205f9b15523b934cc6b4 | /flexible_copula.R | cced3d7057dfcd94f6fd5132129f85323ab6069b | [] | no_license | siverskog/r_functions | e5d54938a836334dfb56d1822396dac447f71d6d | ab3579833f5eed6c062ca1fac4754514f85ebc18 | refs/heads/master | 2016-09-07T19:08:18.948748 | 2015-09-21T07:41:23 | 2015-09-21T07:41:23 | 40,779,009 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,671 | r | flexible_copula.R | ########################################################################################
##### FLEXIBLE COPULA ESTIMATION
##### By Jonathan Siverskog
##### 2015-09-06
#####
##### CODED FOLLOWING ZIMMER (2012) AND HO ET AL. (2015)
#####
####################################################################################... |
a7f111bfa9f5a57335340b05f01b990024f35b51 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/FeaLect/examples/FeaLect-package.Rd.R | dba4efd2685676393a9f4a79a7e873645e4f183e | [] | 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 | 579 | r | FeaLect-package.Rd.R | library(FeaLect)
### Name: FeaLect-package
### Title: Scores Features for Feature Selection
### Aliases: FeaLect-package
### Keywords: package regression multivariate classif models
### ** Examples
library(FeaLect)
data(mcl_sll)
F <- as.matrix(mcl_sll[ ,-1]) # The Feature matrix
L <- as.numeric(mcl_sll[ ,1]) # The ... |
87d751a2a09b896154e21f38b588f9b1b30bb49a | 8754297873779d402874ee1e52a5f9631ffb83b2 | /preprocess_trials.R | cb102620bd7b8d3472eb80815a886e41c04eaa10 | [] | no_license | gitter-badger/safari-task-model-mshvarts | 234827eb89e084db8f7eb01fa7f2ef12999b8cf4 | 49064cb968435ac8e3e1901aed0e364cd6781658 | refs/heads/master | 2021-01-18T00:03:28.077257 | 2015-08-06T19:26:38 | 2015-08-06T19:26:38 | 63,691,163 | 0 | 0 | null | 2016-07-19T12:13:15 | 2016-07-19T12:13:15 | null | UTF-8 | R | false | false | 1,739 | r | preprocess_trials.R | library(data.table)
library(plyr)
setwd('~/OneDrive/repos/safari-task-model/')
d <- fread('../safari-data/tours.csv')
d.trials <- fread('../safari-data/trials.csv')
# for each test we want the combined evidence (counts) and the response, for each sequence. but sequences are not marked :/
d.trials <- d.trials[subject!... |
23ea5ff2558a2d903d7e1d87dab7fd0c5819a318 | c05abc348f38cf1dbcaecb97db05e6607ee17284 | /tests/testthat/test-physical_parameters.R | 75d6888f5a2247bc425654abd43ca319a1198d01 | [] | no_license | paleolimbot/pb210 | 79f443373a42c36fedbd160ad7a18f641fab8fce | 12dec355dadcc8d7b3b5759718f33402308cd640 | refs/heads/master | 2022-05-13T11:31:10.110552 | 2022-05-05T12:37:42 | 2022-05-05T12:37:42 | 180,489,399 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,921 | r | test-physical_parameters.R | context("test-physical_parameters")
test_that("cumulative_mass function works", {
masses <- withr::with_seed(39, runif(10))
expect_identical(pb210_cumulative_mass(masses, position = 1), cumsum(masses))
expect_identical(pb210_cumulative_mass(masses, position = 0), c(0, cumsum(masses[-1])))
})
test_that("density ... |
85178c660fb3447cc124a35f3b57d327e38aeb47 | 7a5f67a6fcc1f602224b350046eed0a1b486a41e | /sports.R | 05121b9d71626c59928fed92daed4791b1a88632 | [] | no_license | cklamann/higherData-r | 40d08166ba603e49247b4909ace0aea523bf6220 | 5283bc20c8499a161a0d9864cf53ecadb92edaef | refs/heads/master | 2023-03-01T09:06:51.900005 | 2021-02-08T23:02:23 | 2021-02-08T23:02:23 | 133,805,408 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,266 | r | sports.R | #https://ope.ed.gov/athletics/api/dataFiles/file?fileName=EADA_2016-2017.zip
#https://ope.ed.gov/athletics/api/dataFiles/file?fileName=EADA%202002-2003.zip
#each year is fiscal year
#note: the data is consistent only from 2006!
sportsReturnFields <- tolower(c("unitid","fiscal_year","STUDENTAID_MEN","STUDENTAID_WOMEN"... |
e396e15786e8640989a59c52acee58613f5bddee | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/DGVM3D/examples/getCone.Rd.R | f6b19129e88f022fcdd4f886d7d1941ca7fb6043 | [] | 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 | 288 | r | getCone.Rd.R | library(DGVM3D)
### Name: getCone
### Title: calculate a cone
### Aliases: getCone
### ** Examples
if (require(rgl)) {
cone=getCone(faces=13, close=TRUE)
triangles3d(cone@vertices[cone@id, ], col="green")
} else {
message("the library 'rgl' is required for this example!")
}
|
d950850a1d303770660d62a75132fb35edf4029a | b11a9a886f0809ab2e342134dc41da7b95e8b422 | /R/ggexport.R | aeca4c3d9255bea7fc5b7cab9cece8f90f766a57 | [] | no_license | kassambara/ggpubr | dbf17d6a921efe5e39b87ab566f3c9fd4f4ef047 | 6aeb4f701399929b130917e797658819c71a2304 | refs/heads/master | 2023-09-01T19:43:28.585371 | 2023-02-13T18:28:59 | 2023-02-13T18:28:59 | 63,722,465 | 1,041 | 195 | null | 2023-08-06T16:55:18 | 2016-07-19T19:35:48 | R | UTF-8 | R | false | false | 3,200 | r | ggexport.R | #' @include utilities.R
NULL
#'Export ggplots
#'@description Export ggplots
#'@inheritParams ggarrange
#'@param ... list of plots to be arranged into the grid. The plots can be either
#' ggplot2 plot objects, arbitrary gtables or an object of class
#' \code{\link{ggarrange}}.
#' @param filename File name to create on... |
bc266e351533ec9a9bfd6aa8e2f32b329425f563 | 57a607818308047a9c729a27afd112267556e5ce | /R/xyplot.R | eeff44a13268679f5a35574054005b1f2b820224 | [] | no_license | oscarperpinan/pdcluster | bf16799943a4e75bd6c4f7811b268e4e02cb0cf5 | db2c47535a5807ef9dc12670368fe40216c8cdd9 | refs/heads/master | 2021-01-02T08:56:24.038707 | 2018-02-18T10:11:17 | 2018-02-18T10:11:17 | 11,253,765 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,071 | r | xyplot.R | setGeneric('xyplot')##, function(x, data,...){standardGeneric('xyplot')})
setMethod('xyplot',
signature=c(x='PD', data='missing'),
definition <- function(x, plot.refl=TRUE, yvar = 'energy', ...){
dt=as.data.frame(x)
settings <- list(xlab='phase', ylab=yvar,
... |
6870d957b7945f2307bb817d06c31756cd3181d4 | 0fdaaceecd7760548b25d95a3acd62a90168cf71 | /Old code to make fuctions/dissimilarity_change.R | 36c27a51ced031e9e07bba8335e15bce668b6d81 | [] | no_license | mavolio/RACs | 4ba7253022569515431da1585e8e13bacea6433d | e93455e50ed7d957f2a997a9df70c6c3e39e4615 | refs/heads/master | 2020-06-24T02:09:41.534635 | 2019-06-17T18:11:20 | 2019-06-17T18:11:20 | 96,915,481 | 0 | 1 | null | 2018-04-13T21:09:29 | 2017-07-11T16:42:32 | R | UTF-8 | R | false | false | 7,449 | r | dissimilarity_change.R | #'@title Bray-Curtis dissimilarity of replicates between and within time periods
#' @description Calculates the average changes in Bray-Curtis dissimilarity of replicates between two consecutive time periods and within time periods. Between changes the average Bray-Curtis dissimilaritiy of all pairwise comparisions of ... |
516629825fd3ca15f90ffd077920fc62777ddcb8 | 731a24a20ad268418747f77d2f1ac596fead1b78 | /Chapter3.R | f8230b1d6db1c4f0cc875f6b1a252c2a0c312d7c | [] | no_license | zjardyn/RforDataScience | 1a8558aef2387ae7c3593e23ae7d76da47a7e729 | fc6909e506b2d2a09db05690be14db3a9de03489 | refs/heads/main | 2023-05-31T19:22:53.932789 | 2021-05-28T22:14:09 | 2021-05-28T22:14:09 | 366,436,451 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,664 | r | Chapter3.R | # answers to exercises: https://jrnold.github.io/r4ds-exercise-solutions/transform.html#exercise-5.6.1
# install.packages("nycflights13")
library(nycflights13)
library(tidyverse)
# stats::filter()
# dplyr::filter()
attach(flights)
flights
# int, dbl, chr, dttm, lgl, fctr, date
# dplyr basics: filter() observations, ... |
d73658803e74f846628c49c62a8e152b964dbf69 | 07d83acd9d6a3ddb8a2fe4bb811db4801c3f40de | /man/mutate_microsats.Rd | 73d91c73412a3477ddcd63848b22fff1ff2f086d | [] | no_license | andersgs/microsimr | da152a68a065419b4cc0b02d337f152227d07ee3 | 4def264efff266c0787a30b154f7f42d9c560808 | refs/heads/master | 2021-01-19T01:50:24.757285 | 2016-07-08T03:43:09 | 2016-07-08T03:43:09 | 30,562,400 | 1 | 1 | null | 2016-07-08T03:43:10 | 2015-02-09T22:34:32 | R | UTF-8 | R | false | true | 2,172 | rd | mutate_microsats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mutate_microsats.R
\name{mutate_microsats}
\alias{mutate_microsats}
\title{A function to mutate microsatellites}
\usage{
mutate_microsats(n_mutations, mutation_model = "smm", p_single = 0.8,
sigma2 = 50)
}
\arguments{
\item{n_mutations}{A v... |
f8896fccf4926f58ca8edba6ed3e3b411bdd580e | 4970340c008543a88393b65601a4fab7f3d1d7db | /Linear model (Ap_density, APG, Ap_parasitized,SF, Biomass and PR)/Some linear models (Biomass) .R | 72bc15d1188132b84380bcb1249f6078be9e9dba | [] | no_license | Drissmiele/Group-project | 33c44a8f3a466892628214188e53d70faf83ac60 | 753375e30f97d6760781e5146a91f77e24a6d89b | refs/heads/main | 2023-02-27T06:55:34.394807 | 2021-02-05T14:44:29 | 2021-02-05T14:44:29 | 313,594,637 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,748 | r | Some linear models (Biomass) .R |
# creation of DataOG with all variables
Data1 <- read.table("Project data.csv", header = TRUE, dec = ",", sep = ";")
Data1$APG <- NA
A <- Data1$Date == "1"
Data1[A, "APG"] <- ((log(Data1$aphid_live[A] + 1) - log(Data1$aphidsinoculated_init[A] + 1))/10)
A <- Data1$Date == "2"
Data1[A, "APG"] <- ((log(Data1$aphid_live[... |
63f6c1585d21810aebd6c3bda334943f997c138c | cfe15da6b9fdf5529f1312f3a7af32f6306736a2 | /load_supervised_data_variableselection.R | 37dbcec3162372f23de4aafb9602aa9b92570d09 | [] | no_license | R-Techy-work/GMM | c343d4d67723751776ef22e7451f0a87801790b5 | 459bba70e5e0fde0a3f7e456343c9b2f712a8fb0 | refs/heads/main | 2023-02-24T05:27:02.260887 | 2021-02-04T04:02:02 | 2021-02-04T04:02:02 | 335,833,175 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 199 | r | load_supervised_data_variableselection.R | # data.csv : csv file including training data
# X: X of training data
# y: Y of training data
data = read.csv("data.csv", row.names = 1)
y = as.matrix(data[1])
X = as.matrix(data[c(2:ncol(data))])
|
d339a28b64b20e9765573e5a90439f0fb2fb0c09 | dea748ddba3f7052d788c0d235e2dcb0a491e1b1 | /R/deprecated.R | 4e5aa6259c69e5724c639263b4b0062b9b8b0100 | [
"MIT"
] | permissive | dernst/rparso | 45bb0b7420f07304411fd14f25cb5dda5bb22bbe | 56128d12895192bcd36f61831250a222a9fa7456 | refs/heads/master | 2020-04-07T23:27:54.482244 | 2018-11-23T10:04:15 | 2018-11-23T10:04:15 | 158,813,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,622 | r | deprecated.R |
if(FALSE) {
j_read_chunk = function(obj)
.jcall(tst, "I", "read_chunk")
j_get_ints = function(obj, col)
.jcall(tst, "[I", "getInts", as.integer(col-1L))
j_get_strings = function(obj, col)
.jcall(tst, "[Ljava/lang/String;", "getStrings", as.integer(col-1L))
j_get_string = function(obj, col)
.jcall(ts... |
ac1e8021ff481ee525c94f8d55ded18519e30f05 | 499a61bf2c8e46b24e58818eb809117705f9c855 | /examples/example.prob_wheel.R | 11a765da4936979479aaea6c741d0ca961179fb0 | [] | no_license | vandenman/abtest | 911ff5e05bac953de86b9782a967453e84eb9f79 | 2b6bbe936f1fe7983c75e569b5c1a2984d34fdc0 | refs/heads/master | 2023-03-01T17:25:29.481356 | 2021-11-22T07:45:35 | 2021-11-22T07:45:35 | 223,951,557 | 0 | 0 | null | 2019-11-25T13:10:17 | 2019-11-25T13:10:17 | null | UTF-8 | R | false | false | 318 | r | example.prob_wheel.R | # synthetic data
data <- list(y1 = 10, n1 = 28, y2 = 14, n2 = 26)
# Bayesian A/B test with default settings
ab <- ab_test(data = data)
print(ab)
# visualize prior probabilities of the hypotheses
prob_wheel(ab, type = "prior")
# visualize posterior probabilities of the hypotheses
prob_wheel(ab, type = "posterior")
|
b3612ba255cafc33aba5b2d5d305f420d071d085 | 73bf596bac857c20ee91e8f79e1614b46740ccf8 | /man/spawn_index_by_area_table.Rd | 770b9b37705c40ad3867c8bd339d838a1ce2c63b | [] | no_license | pbs-assess/herringutils | cd553ec05d1a8eb21006fc8f56b77a4b3ac40985 | d13704a663baeaf90b23541435860c91e03f95f1 | refs/heads/master | 2023-09-03T02:00:38.050712 | 2023-09-01T15:31:29 | 2023-09-01T15:31:29 | 201,638,012 | 0 | 0 | null | 2023-02-16T17:28:12 | 2019-08-10T14:04:36 | R | UTF-8 | R | false | true | 619 | rd | spawn_index_by_area_table.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tables.R
\name{spawn_index_by_area_table}
\alias{spawn_index_by_area_table}
\title{Table for spawn index by area}
\usage{
spawn_index_by_area_table(tab, cap = "", first_yr, translate = FALSE, ...)
}
\arguments{
\item{tab}{data.frame as read i... |
d154b59eb2cbb3565a0a3fd581aec4de882b62ff | ddf54049e171b9cf2d1fc8e70cace106c5ade846 | /cachematrix.R | 9ef40c634b48dc277ca5d377c25495c68bb2ee12 | [] | no_license | darioromero/Coursera | ae4910c01102c6149d527b8bcc3c5e3428a936b9 | 5f76890e0b3f4b19f91a6dd2dae79cc87fa495d5 | refs/heads/master | 2021-01-18T12:07:52.805248 | 2015-03-22T20:39:44 | 2015-03-22T20:39:44 | 32,663,931 | 0 | 0 | null | 2015-03-22T05:56:34 | 2015-03-22T05:56:34 | null | UTF-8 | R | false | false | 1,246 | r | cachematrix.R |
makeCacheMatrix <- function(m = matrix()) {
## studnt: Dario H. Romero
## course: programming in R (rprog-012)
## date : 2015-03-22
## @x: a square invertible matrix
##
## makeCacheMatrix creates a special "matrix",
## which is really a list containing a function
## to:
##
## return: list co... |
be00f35e99c3f99670b8c28b9c23d85497c4b0ba | f6ca52564abacc865e3e0a3c8785cf347753cae1 | /DATA_FRAMES/LAB2/L7.r | a82cbec9c8c20c23d6a1e34d88151ecdee318447 | [] | no_license | jabhij/DAT204x_R_DataScience | c7e98b4087e4a2cba08e30bdad9c0fd75a813cf0 | a495072d3ffcdbb827c11d3032adb7e6512fa0b4 | refs/heads/master | 2021-01-17T08:44:18.817730 | 2016-08-11T06:41:13 | 2016-08-11T06:41:13 | 59,910,304 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 672 | r | L7.r | Instructions --
The data for pluto is already there; you just have to add the appropriate names such that it matches the names of planets_df. You can
choose how.
Add the pluto data frame to planets_df and assign the result to planets_df_ext.
Inspect the resulting data frame by printing it out.
----------------
# pla... |
98443929373f5af93dd9c5734acfaed9a7addbf9 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/man/gtkItemFactoryCreateItem.Rd | da0d78e48c8a067de87e4a779c03b7e0eb407cd7 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 896 | rd | gtkItemFactoryCreateItem.Rd | \alias{gtkItemFactoryCreateItem}
\name{gtkItemFactoryCreateItem}
\title{gtkItemFactoryCreateItem}
\description{
Creates an item for \code{entry}.
\strong{WARNING: \code{gtk_item_factory_create_item} has been deprecated since version 2.4 and should not be used in newly-written code. Use \code{\link{GtkUIManager}} instea... |
2c804012c0e9ad0903d0c364cf4e7250562b84ce | c5b0584a453517869b6c03166bb7d3b2729866fc | /man/retrieval.time.Rd | 973addc2b35f607f696b8f1faa5d5b9fcb445fdd | [
"MIT"
] | permissive | nealhaddaway/predicter | 9fed1ff27e0b4636df7bdf5373ef95dba144727a | 14b168f28f2378e4dd3e4a913f4d31b742460bf3 | refs/heads/master | 2022-09-26T08:52:22.056061 | 2022-07-29T11:56:19 | 2022-07-29T11:56:19 | 192,175,432 | 11 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,038 | rd | retrieval.time.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/retrieval.time.R
\name{retrieval.time}
\alias{retrieval.time}
\title{Time needed to retrieve full texts of relevant records}
\usage{
retrieval.time(inclabstracts.number = 310.1662, retrieval.day = 171,
retrieval.checked = 0)
}
\description{... |
99112090512ee62f908f4d4b07c10087aa3dae13 | 44415fd86412a96b039d60a6ba83b8065bde6f1d | /man/useBIC.Rd | be632b5bc2aafa702786b53ce74ef1b21c97cbc5 | [] | no_license | cran/AICcmodavg | f9451566b4415350ff91d4e1fffc323ca6f6082e | 69bf7930f2228ed6fb06683cd766a16b0bf5cdce | refs/heads/master | 2023-04-08T21:23:38.333939 | 2023-03-20T15:20:02 | 2023-03-20T15:20:02 | 17,677,598 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 8,807 | rd | useBIC.Rd | \name{useBIC}
\Rdversion{1.1}
\alias{useBIC}
\alias{useBIC.default}
\alias{useBIC.aov}
\alias{useBIC.betareg}
\alias{useBIC.clm}
\alias{useBIC.clmm}
\alias{useBIC.coxme}
\alias{useBIC.coxph}
\alias{useBIC.fitdist}
\alias{useBIC.fitdistr}
\alias{useBIC.glm}
\alias{useBIC.glmmTMB}
\alias{useBIC.gls}
\alias{useBIC.gnls}
\... |
5268980f3176698edeb9b11ebdb04f5d0cab55d0 | 80acc61dc3d4717f2b57a8fcd37420337038486d | /ui/cmsy/cmsyUI.R | 7dbbac5dd8a53d1f289472744e1e5e34474429c0 | [] | no_license | pink-sh/StockMonitoringTool | 97e378b0db835b01ec62334f357514c03b3607cf | dbcb20c4c4ef64c025742966b3885143952873a3 | refs/heads/master | 2023-04-03T22:45:23.310381 | 2020-10-26T12:22:10 | 2020-10-26T12:22:10 | 109,261,257 | 2 | 2 | null | 2021-03-29T02:01:57 | 2017-11-02T12:22:17 | R | UTF-8 | R | false | false | 12,260 | r | cmsyUI.R | tabCmsyIntro <- tabItem("cmsyIntro",htmlOutput("cmsyIntroOut"))
tabCmsySampleDataset <- tabItem("cmsySampleDataset",htmlOutput("cmsySampleDataset"))
tabCmsy <- function(id) {
ns <- NS(id)
tabItem("cmsyWidget",
htmlOutput(ns("cmsyMethodTitle")),
actionButton("cmsyDataConsiderations", "Data Consi... |
64993b8904ded62d9771e4021287f4e603bcc899 | 1413941e63cfa561c00618601f8ef4404171d7c7 | /R/posterior_logspline.R | 32988b7bb2ab848baf5a734f6c9db333b71121a0 | [] | no_license | cran/metaBMA | 8c4699d0ae85e32bf7e5069b463de2fa14a240f9 | 75e3abeb55b2d8dc1ada46c7b918b3d899cad732 | refs/heads/master | 2021-07-12T20:47:18.831443 | 2021-03-17T05:50:02 | 2021-03-17T05:50:02 | 98,450,086 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 872 | r | posterior_logspline.R |
posterior_logspline <- function(stanfit, parameter, prior) {
if (missing(stanfit) || is.null(stanfit)) {
warning(
"MCMC/Stan samples missing: To approximate the posterior density",
"\n by MCMC samples, one of the available priors must be used (see ?prior)",
"\n and the argument 'sample' ... |
2a9a7ce62190213caa6d60b6e930be2496e2688e | 442f9770e53101c4461c9031dfd69d3dfa69a757 | /R/labelPoints.R | b22df590c0d08989a3228a1a786fa3262f2bd4f5 | [] | no_license | cran/WGCNA | edaf87638c6cf0c9105dbb67637ebe059f598cb1 | 31f538c2f9d7d48f35f7098b4effe17331357d0d | refs/heads/master | 2023-01-25T02:34:33.041279 | 2023-01-18T11:10:05 | 2023-01-18T11:10:05 | 17,694,095 | 48 | 54 | null | 2019-08-17T13:25:00 | 2014-03-13T03:47:40 | R | UTF-8 | R | false | false | 5,617 | r | labelPoints.R | #=================================================================================================
#
# labelPoints: label points in a scatterplot while trying to avoid labels overlapping with one another
# and with points.
#
#==============================================================================================... |
ad6e5318e54b01d9f65a6387e1fb840603cbe6f8 | e756bcd2b578b74c238dbca53ef88e2d026bd121 | /man/h_substitute.Rd | 870061c29199cb409cbbc6104ddecdebd49b3e47 | [] | no_license | HYDFKI7/htsr | d95abbdbafde547b726733524176bd08e55ccdee | d56e8ea98c99f0158b0465d279ae805728ec5adb | refs/heads/master | 2023-02-02T23:56:09.548157 | 2020-12-16T07:50:02 | 2020-12-16T07:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 680 | rd | h_substitute.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h_substitute.R
\name{h_substitute}
\alias{h_substitute}
\title{Subtitute the missing values in a series by existing values of another series}
\usage{
h_substitute(files)
}
\arguments{
\item{files}{List of two file names}
}
\description{
The s... |
47d54598df30f08e662551fde0d7a126b6e10236 | 96f1959559ed420202158d9dc56d6af510c6879c | /tests/testthat/test_sstock.R | 8fbbdb66d3b6e5b44949515b7b90e421570be671 | [] | no_license | AnthonyTedde/StockPriceSimulator | 998044b2974ce3ee2898a4ae4a3caae52bea6e37 | 8f704f59bf0fe456da790808f489dff2af56058f | refs/heads/master | 2018-08-30T07:07:53.447807 | 2018-08-25T15:31:54 | 2018-08-25T15:31:54 | 111,553,079 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,045 | r | test_sstock.R | library(testthat)
library(StockPriceSimulator)
test_that("sstock return a dataframe", {
expect_is(sstock(), class(data.frame()))
})
test_that("sstock names are correct", {
expect_equal(names(sstock()), c('time_periods', 'stock_price_path'))
})
# Test the class of an s3 object
test_that("sstock return a S3 object... |
546e42cbe9216fb41e2c8704210a1706ddffbab2 | 1211c97e396c39cd4ceaadb44687451f3f93ef85 | /set_column.R | d7aa71b6a16ac26518565a10b7b6a1c860805c08 | [] | no_license | gary917/scripts | 81cbbdc61d548f5c19736a4ccb91053846727151 | 9abee2c4ae5d4bc90b37fbbc41ebdccf7e30c2fc | refs/heads/master | 2020-03-26T23:54:40.193488 | 2018-08-21T14:40:25 | 2018-08-21T14:40:25 | 145,577,198 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,631 | r | set_column.R | library(anytime)
rm(list=ls())
#Given timeframe and date, calculate number of rows of data in a CSV file
#add file headers as well
FILE_PATH_CSV <- "/Users/garychen/Desktop/ELEC4120/ssh_folder/csv/08/BARKER_ENTER_2018-08-10.CSV"
#ACTUAL_PLATE replaced field PLATE_COLOR, camera gives no info about that field
fil... |
12302e2f42b3527416775b697486be3eaa70c1e4 | 2c1c5e012e540409e34a999374e0ee893a6d6a71 | /code/Convert_index.R | 0e0f540615fb71033cc99346222ac45a9e78f23c | [] | no_license | muschellij2/muschellij2.github.io | 153051ccbae07ea8a0cd6da50ac5397d362e4ca9 | 950d841ced29857fa17fd698d922286db2d7f10d | refs/heads/master | 2021-01-10T06:55:46.670314 | 2020-06-15T21:33:37 | 2020-06-15T21:33:37 | 49,293,062 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,214 | r | Convert_index.R | # rm(list=ls())
convert_index <- function(infile="index_original.html", outfile = "index.html"){
trim <- function (x) gsub("^\\s+|\\s+$", "", x)
ff <- file(infile)
dat <- readLines(ff)
close(ff)
where.scene <- which(dat == " r0 = new X.renderer('r0');")
dat[where.scene] <- " renderer0 = new X... |
9ac6d1c2700abd2bc17f73719764740ed596e724 | 3fc12685acd8034eea0a08d946f49efb746fcf88 | /man/get_samples.Rd | 7cb132def9f4fba56911765fe756fbf66f662279 | [
"BSD-3-Clause"
] | permissive | surbut/mashr | 16eb64d685085409aeba5785a65d0384d6843ea6 | b66d2af16503bc46d785ac9c9ba447ecc29b6fae | refs/heads/master | 2020-04-08T03:15:53.456268 | 2018-11-24T20:04:50 | 2018-11-24T20:04:50 | 158,968,895 | 0 | 0 | BSD-3-Clause | 2018-11-24T19:54:17 | 2018-11-24T19:54:17 | null | UTF-8 | R | false | true | 288 | rd | get_samples.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_functions.R
\name{get_samples}
\alias{get_samples}
\title{Return samples from a mash object}
\usage{
get_samples(m)
}
\arguments{
\item{m}{The mash fit.}
}
\description{
Return samples from a mash object
}
|
63cd23a3fd7403eab0f5c5ffad1e4ff372ee1598 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/qat/examples/qat_save_boot_distribution_1d.Rd.R | 61328f1eeb63621b1e3968d3680d6afd7b27b2e9 | [] | 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 | 366 | r | qat_save_boot_distribution_1d.Rd.R | library(qat)
### Name: qat_save_boot_distribution_1d
### Title: Produce a savelist from a resultlist for a Boot Distribution
### Test
### Aliases: qat_save_boot_distribution_1d
### Keywords: utilities
### ** Examples
vec <- rnorm(1000)
result <- list(result=qat_analyse_boot_distribution_1d(vec, 1000))
savelist... |
94a50ac13f422614e349dba36f741f638835b7cb | fecaed3dea0f640b38c43ea515a5fd615d127164 | /OptimalControl/hamilSymTest4/hamilSym-f9f8ebef2d8bdfb201c0658dcec51ea75c2a0905/greedyApproach.R | a42eb6cb87b0425d84b45c4a6f250c5d003ee605 | [] | no_license | Dominik12345/R | 57f272b1afb554090e4311a509c964f1bcc9b828 | 4843d80e9b3c4771df5dbefe32670a44773d7084 | refs/heads/master | 2018-09-03T08:35:56.354468 | 2018-06-04T05:32:39 | 2018-06-04T05:32:39 | 109,264,813 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,220 | r | greedyApproach.R | greedyApproach <- function(alphaStep,Beta,alpha1, alpha2, x0, optW, times, measFunc, measData, std,
parameters, modelFunc, greedyBoolean) {
graphics.off()
source("classOdeEquation.R")
source('symbolicDiff.R')
source("createFunctions.R")
source("dynElasticNet.R")
#create the ... |
67a99e90e08a492024dcb1c4156d9c08041046ad | 7505f15b5e579e8d38b84e45ce55fb96f33b8ce2 | /man/confidence-Rules.Rd | 130bc06f8caced651feca78e3bafa0e1bc9f9679 | [] | no_license | abuchmueller/Rpriori | 9eaf823234760a7353cbf8bca770da128ac4763c | 209b23c4596d641d86513381c2ea2c61b4b10880 | refs/heads/master | 2020-03-27T20:59:08.084554 | 2019-05-03T21:51:28 | 2019-05-03T21:51:28 | 147,108,083 | 1 | 0 | null | 2018-09-02T17:44:29 | 2018-09-02T17:44:29 | null | UTF-8 | R | false | true | 481 | rd | confidence-Rules.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allMethods.R
\docType{methods}
\name{confidence-Rules}
\alias{confidence-Rules}
\alias{confidence,Rules-method}
\title{Extract confidence of all rules within a Rules object.}
\usage{
\S4method{confidence}{Rules}(object)
}
\arguments{
\item{ob... |
5415a241ade996f638e506fc3762afe7eb1b27c7 | e9fc5f1e721ae9f96fb4a9d12a452a4c8d4f35f9 | /man/boundary2alpha.Rd | f83f4112d6d2ecfbc4c53cf1cc351921fe29f7c3 | [] | no_license | cran/triggerstrategy | 8504f4b0c3a5cffa16025d290091fefc61f7edef | 6d15e9f81567f76ecadcfc4db044238f2b408412 | refs/heads/master | 2023-07-25T04:19:55.456694 | 2023-07-04T13:40:02 | 2023-07-04T13:40:02 | 372,566,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 657 | rd | boundary2alpha.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rfun_boundary2alpha.R
\name{boundary2alpha}
\alias{boundary2alpha}
\title{Convert normal critical boundaries to cumulative alpha levels.}
\usage{
boundary2alpha(cvec, t)
}
\arguments{
\item{cvec}{a vector of critical boundaries}
\item{t}{a v... |
6770a8724ea2faa7f7912ccc806a9527e7a97e62 | 0e28ca7ffd8665ccdb471c15f0978696fab43a88 | /R/check_element2.R | 13f40c1a94d6c7edd5abb968a7647f2bbe2673e0 | [] | no_license | jaspershen/MSannotator | fe5ee2ee56b7961b8bb3db2006068960a5c77de6 | 493e4a90c1eb34f9a49bbc7ca951e8236776f957 | refs/heads/master | 2021-01-12T04:08:10.470681 | 2016-12-28T06:19:39 | 2016-12-28T06:19:39 | 77,508,189 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 526 | r | check_element2.R | check_element2 <-
function(curformula,elementname){
curformula<-as.character(curformula)
strsplit_var<-strsplit(curformula,split="")
g3<-gregexpr(curformula,pattern=paste(elementname,"[0-9]*",sep=""))
regexp_len3<-attr(g3[[1]],"match.length")
if(regexp_len3>0){
if(regexp_len3==1){
numelement<-1
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.