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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d2bf354bd32fa7fe262598f3f1f0554f7931a8d | 3868576e8cb60fc86575f03aa38f1f7331f7a7e5 | /man/rbind_df.Rd | 0a827e3a11f0aa6d5d98e0723f4594d74c10dd6d | [] | no_license | cran/bigreadr | dac4319c53342dac7c9a0a995ddca280c14ec844 | 131e342cf6a841d5ed7e484665f029faa6c761e4 | refs/heads/master | 2022-12-11T23:58:51.974200 | 2022-12-06T14:50:02 | 2022-12-06T14:50:02 | 145,906,580 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 467 | rd | rbind_df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bind.R
\name{rbind_df}
\alias{rbind_df}
\title{Merge data frames}
\usage{
rbind_df(list_df)
}
\arguments{
\item{list_df}{A list of multiple data frames with the same variables in the
same order.}
}
\value{
One merged data frame w... |
eb97854a77d89950a5ce75566a431172cad52ce4 | fb3567838f718d29273ff5b22a008dbace7bbfe1 | /code/Analysis/regressions_parcels.R | c9b58e9d0f7ae9222068c39494acd2885aca0baa | [] | no_license | rlsweeney/public_cs_texas | 70ab79056fd4954ba0bb66b357e20e1fcee4552e | 27b1fbbc774c3e25bbf734255019dada7ec18808 | refs/heads/master | 2023-01-29T01:45:24.666394 | 2023-01-11T16:18:08 | 2023-01-11T16:18:08 | 175,434,809 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 12,376 | r | regressions_parcels.R | #==============================================================================
# code to estimate and format regression tables for parcel outcomes
# this is currently WIP, since it estimates way more specs than we ultimately
# want to report
# by thom/rich in december 2020 - march 2021
#===============================... |
3c98029fa69113bf66a40766005ff322985f67cc | d6b22b8479178ad1cda7b837432634c3195b9705 | /Lab 4/logistic_k_fold.r | 8cde8617d658aaa8cdc7f38e43719267c6b4a28d | [] | no_license | xyRen6617/Data-Management-Analytics | cd04bec1278ae936a70460aa3fd5fc646ced4783 | 4dacc6e82bb12784c4efe3a7332b9bd5a2dbcb56 | refs/heads/main | 2023-06-11T14:06:00.373780 | 2021-06-19T01:30:30 | 2021-06-19T01:30:30 | 368,035,954 | 0 | 0 | null | null | null | null | EUC-JP | R | false | false | 10,066 | r | logistic_k_fold.r | library(tidyverse )
library(MASS)
library(corrplot)
setwd("C:/Users/duli/Documents/20210520")
bike_data <- read.csv("bike_buyers_clean.csv")
t = model.matrix(~Commute.Distance-1,bike_data) %>% as.data.frame()
s = as.data.frame(model.matrix(~Commute.Distance-1,bike_data))
bike_data = cbind(bike_data,as.data.f... |
ac0b5910d03ae052daf7ae0c4d03474f5f041e01 | 1c295ce44342aa16846278b317a084d885fc85e5 | /drat.R | 251064c05f5eafca73a8a07f78cc2abbc56ddd1a | [] | no_license | skranz-repo/drat | a548ca265da5b3b788c1b7ef842ebbe23deb2aed | 7eb367045773c6f86b55073f1371530d8b2fcf59 | refs/heads/master | 2022-03-06T21:29:14.824777 | 2022-02-08T12:08:49 | 2022-02-08T12:08:49 | 133,791,967 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,106 | r | drat.R | #install.packages("drat")
library(drat)
library(restorepoint)
repodir = "C:/libraries/drat/drat"; download.dir = "C:/libraries/drat"
libdir = "C:/libraries"
example.drat = function() {
library(devtools)
assignInNamespace("version_info", c(devtools:::version_info, list("3.5" = list(version_min = "3.3.0", ... |
06521293ea72ce81ecd4b9d35596394b76a171ea | aba37c9cb48a203474244f78d864c182aff4dabc | /DOE/doe_7week.R | af84a7c84b8c293a6265bd3db60efb528dbef5bc | [] | no_license | GyuYoungCho/R | 1da159146e90b9db6ac63c82a78612406450c434 | ffb52115cacb1e376577052c53bc8b04bffa6c07 | refs/heads/master | 2020-12-27T10:55:11.575868 | 2020-09-20T12:45:28 | 2020-09-20T12:45:28 | 237,871,773 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,676 | r | doe_7week.R | rm(list=ls())
carb = factor(c(10,12,14))
psi = factor(c(25,30))
speed = factor(c(200,250))
times=factor(1:2)
dat_5_3 = expand.grid(times=times,speed=speed,psi=psi,carb = carb)
dat_5_3$values = c(-3,-1,-1,0,-1,0,1,1
,0,1,2,1,2,3,6,5,
5,4,7,6,7,9,10,11)
fit_5_3 = aov(values~speed*psi*... |
593d57c7b9ce0cf6a4815ca099761cb787ced814 | b326020d7eb7db18ed883cbd8d6e4417153f0726 | /code/glms/dev/downsampling_events.R | ab8f353125a063a5e95baf9ddd9a463dabc73abd | [
"MIT"
] | permissive | mcfreund/stroop-rsa | 62ccff55ddbd3ed69526683e87485c0c4ad75f23 | 1b20349885efe5678fd1448d48449f296b258065 | refs/heads/master | 2021-11-01T10:14:56.985952 | 2021-10-19T03:38:33 | 2021-10-19T03:38:33 | 229,976,419 | 5 | 1 | MIT | 2021-08-31T05:09:51 | 2019-12-24T16:58:14 | Roff | UTF-8 | R | false | false | 3,072 | r | downsampling_events.R | stop("don't source me")
## setup ----
library(here)
# library(mikeutils)
library(magrittr)
library(dplyr)
library(data.table)
library(purrr)
source(here("code", "strings.R"))
stroop <- fread(here("in", "behavior-and-events_group201902.csv"))
sample.analysis <- unique(filter(stroop, is.analysis.group)$subj)
dir.to.... |
283d083369ff3cffc4f283495d6e679994fafa0a | a479c4f44a1fa2d7e29651d8e022edb38509e4db | /Thesis_R_Codes/scripts/20190606_graveyard_scripts/old_Gong & van Leeuwen 2004.R | 2a213b50ee26161b6eac7428e050952ddb80c3de | [] | no_license | psyguy/Thesis-Codes | aa5dbe04d80c860955d7d2d2e0312e2911ba3eb5 | 8c25cbc8e30413ab9b6679bbee91ef7e21d11157 | refs/heads/master | 2020-06-03T13:43:34.714715 | 2020-01-15T11:23:38 | 2020-01-15T11:23:38 | 191,588,238 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 771 | r | old_Gong & van Leeuwen 2004.R | library(dplyr)
seed <- 1
L_c <- 5200
N <- 300
T_ <- 6000
tol <- 0.001
set.seed(seed)
conn <- make.random.graph(size = N, num.links = L_c, seed = seed)
x.init <- N %>% runif(-1,1)
x.out <- x.init
# for (i in 1:T_) {
# x.temp <- x.out %>% GongvLeeuwen2004.logistic(conn)
# x.out <- x.out %>% cbi... |
2887e357268a1a62dc694bfccf1ff23eb500800e | 1fce1ecc49eb43771111c80eb654f4c4d9a89b6d | /simulation_functions/censorFunc.R | 53626bfd684783c538b07229ac1d013fb477bf69 | [] | no_license | hplisiecki/bias_detection_showdown | 1a13b31f67350cfb2970c55895e2128974482471 | 0ab49c3e07d3f6fb4e59afed4ffc01c14c5d1e16 | refs/heads/main | 2023-05-06T02:19:09.055665 | 2021-05-24T17:38:59 | 2021-05-24T17:38:59 | 362,840,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,057 | r | censorFunc.R |
# A file used to generate data fgor the Carter and colleagues simulation study (2019)
# Source: https://github.com/nicebread/meta-showdown
# helper functions for censor function
# clamp x to values between 0 and 1
clamp <- function(x) {if (x > 1) x=1; if (x < 0) x = 0; return(x)}
#' @param p observed p v... |
eb334ab8e58b80fcfcdff783597c89d005d28042 | 8769749bb0a919299b66db7aaafa400d1d412469 | /hervh/inter_chrom.hervh.build_interactions.r | 0fbb88d26e1428c302f965ca6ad2103a4b75d8f8 | [] | no_license | bioinfx/cvdc_scripts | e9e113fae866d2d3f0c2515fae1b410b2d7a3eeb | d33757f9d02fa6d503b5cb65336c0e4e410caa78 | refs/heads/master | 2022-03-19T00:15:13.372417 | 2019-12-05T04:38:48 | 2019-12-05T04:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 742 | r | inter_chrom.hervh.build_interactions.r | a=read.delim("D00.rna_seq.ranked_by_rpkm.v2.bed",header=F)
a = a[grep("chr",a$V4),]
# leave only HERVH expression RPKM >1.
a2 = a[which(a$V7 >=1),]
# sort the peak location wrt to chromosome and location
a2$loc = floor(a2$V2/1e4) * 1e4
a3 = a2[,c(1,8)]
a3$V1 = factor(a3$V1, levels=paste0("chr",c(1:22,"X")))
a3 = a3[... |
79afc4957c43c989e65ba9bc6c0f827c940b4afa | 6f4fb74cebb8c9339f8eee35f574195c0952fd44 | /R/reportEDGETransport2.R | 94e0210d7b7941e529cac3651b23ea845309c63e | [] | no_license | pik-piam/edgeTrpLib | 9023a3023be3db3542a093f8bd71f377ef34bd5f | 202697ac490b6921a1d3ab4eabc1a4b7cf62085b | refs/heads/master | 2023-01-24T18:15:29.217386 | 2022-06-01T13:05:26 | 2022-06-01T13:05:26 | 252,760,526 | 0 | 8 | null | 2023-01-03T01:07:24 | 2020-04-03T14:46:09 | R | UTF-8 | R | false | false | 42,896 | r | reportEDGETransport2.R | #' Reporting for the coupled EDGE-T Transport Sector Model (REMIND Module edge_esm)
#'
#' Data is loaded from the EDGE-T subfolder in the output folder.
#' The input files can be (re-) generated calling
#' `Rscript EDGETransport.R --reporting`
#' from the output folder.
#'
#' *Warning* The function modifies the "REMIND... |
953b53ac0177cbce519036a66ec0440f619804f5 | 41e7ad3949eb12b8a868669acab3c9698bead4b1 | /Recomnder_System.R | 9151ac380a8a4497d0a7d1c3c40e10b8437ba147 | [] | no_license | pseemakurthi/Recomendation-Engine | 47cfe0f63d9fbbb8b5c8512846c66751b7160a64 | ff47cf2abaa4530820b6477efb10241e0ffef58c | refs/heads/master | 2016-09-06T14:11:30.371487 | 2015-02-03T13:19:26 | 2015-02-03T13:19:26 | 30,231,490 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,818 | r | Recomnder_System.R | library("XLConnect")
options( java.parameters = "-Xmx4g" )
# To check the Amount of free memory in the Java Virtual Machine (JVM):
xlcMemoryReport()
# install.packages("recommenderlab")
library(recommenderlab)
library(ggplot2)
# Clear the existing workspace
rm(list=ls(all="TRUE"))
setwd('D:\\Music')
# Read the user... |
62b5492b732c18715341b365972d79955849d5bd | 6b0f6cfd899add326a4fe835feabb2c7d5c92278 | /tests/testthat/test-plots.R | 90c889735d54e6d3df9bedfc43886a89d401e4b0 | [] | no_license | SvetiStefan/olsrr | 9c7b4b82fdae631cab778107381d3d259408996d | db9f0427771f07ca93e8600a1573aef7779e76f5 | refs/heads/master | 2021-06-17T11:56:39.893077 | 2017-06-06T10:31:45 | 2017-06-06T10:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,829 | r | test-plots.R | context('plots')
test_that("ovsp_plot fails when model inherits other than 'lm'", {
y <- sample(c(1:4), 100, replace = T)
x <- sample(c(1, 2), 100, replace = T)
m <- glm(x ~ y)
expect_error(ols_ovsp_plot(m), 'Please specify a OLS linear regression model.')
})
test_that("rvsr_plot fails when model inherit... |
be78867563d4a82df8fb7ac35a915227c50afb68 | 16de310794564e0525188a9a08f3410f060ad198 | /R/A2P.lin.R | b6205a465a09138438284d5e7a36c43c552e0c60 | [] | no_license | cran/AtmRay | b6d578638de5d8687a2a41b04eed877c08fc3044 | 9205b1ef22b39c39f3ce4e224bf55af13e425f41 | refs/heads/master | 2020-05-18T04:40:39.503065 | 2012-09-28T00:00:00 | 2012-09-28T00:00:00 | 17,677,750 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 259 | r | A2P.lin.R | A2P.lin = function(angle, z, az, ATM){
ceff = as.vector(ATM$c0 + c(ATM$wx0, ATM$wy0) %*% c(sin(az*pi/180), cos(az*pi/180)) + (z - ATM$z0) * (ATM$gc + c(ATM$gwx, ATM$gwy) %*% c(sin(az*pi/180), cos(az*pi/180))))
p = sin(angle * pi/180)/ceff
return(p)
}
|
2015d555cefd0dce908ec778935e0f1579ef3496 | b27163aa44e444db482972e939533597afefc04e | /readCalibration.R | 07d1e6db8eb0a23ee82c49128f67983f1b0c97ea | [] | no_license | vargovargo/ITHIM_CA | d0082c073e10963f91fd997f8d6ac085ccd417c6 | 3e1b386d59a4dc37a061ea636fd392ff6e629510 | refs/heads/master | 2021-08-23T12:05:18.328736 | 2017-12-04T20:58:03 | 2017-12-04T20:58:03 | 107,732,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,409 | r | readCalibration.R | rm(list=ls())
library("devtools")
# install_github("syounkin/ITHIM", ref="master")
install_github("ITHIM/ITHIM", ref="devel", force=TRUE)
library("ITHIM")
xlFileName <- "./ITHIM/fromNeil/ITHIM_California2016-12-12SANDAG_Trends.xlsx"
ITHIMss <- readxl::read_excel(xlFileName, sheet="Calibration Data")
holder <- crea... |
53b02c3d438b10e832948b76cb189119df282fd8 | d99b7ff77e769fde0e3e7810ca39a3c1008ba07f | /R/triadic.R | a5d41d868bc339cccd532169ba0f3e819122bc6b | [] | no_license | gastonstat/colortools | 96c56012d4726979ad049f8ceb356a19d71c6afb | 8d96e2c5dbc21548c5f01532e70b56a5263c90aa | refs/heads/master | 2022-05-02T19:48:47.543024 | 2022-03-27T00:22:40 | 2022-03-27T00:22:40 | 5,799,925 | 18 | 2 | null | 2020-02-02T00:10:03 | 2012-09-13T19:41:34 | R | UTF-8 | R | false | false | 2,545 | r | triadic.R | #' @title Triadic Color Scheme
#'
#' @description
#' Triadic color schemes use colors that are evenly spaced around the color
#' wheel.
#'
#' @details
#' The triadic colors are obtained following a color wheel with 12 colors, each
#' one spaced at 30 degrees from each other.
#' Triadic color schemes tend to be quite ... |
8cd82a6f17facbc91c989a0cc56b471b50fad3ee | a47ce30f5112b01d5ab3e790a1b51c910f3cf1c3 | /B_analysts_sources_github/topepo/caret/test_twoClassSummary.R | 78026bf4280b3019bd676bee5fcb9d47e2fa5a7c | [] | no_license | Irbis3/crantasticScrapper | 6b6d7596344115343cfd934d3902b85fbfdd7295 | 7ec91721565ae7c9e2d0e098598ed86e29375567 | refs/heads/master | 2020-03-09T04:03:51.955742 | 2018-04-16T09:41:39 | 2018-04-16T09:41:39 | 128,578,890 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 950 | r | test_twoClassSummary.R |
context('twoClassSummary')
test_that("twoClassSummary is calculating correctly", {
library(caret)
set.seed(1)
tr_dat <- twoClassSim(100)
te_dat <- tr_dat
tr_dat$Class = factor(tr_dat$Class, levels = rev(levels(te_dat$Class)))
set.seed(35)
mod1 <- train(Class ~ ., data = tr_dat,
method = "fda",
... |
246d0936f3ac0f82836299e7cb73053fbb57f102 | b4eae8e4e5caf81889ce980f314aad8b7f684e39 | /R/gg_resX.R | b06b8a64bce8b4bbb72f7945137afd84b8fdd1d4 | [] | no_license | alienzj/lindia | a9771e72ad50ec4e4360a50f6a39e64cd5d50d0e | 9853c34ff2568e95ad9aa3649f779d84ea838bff | refs/heads/master | 2023-02-17T23:16:40.238951 | 2020-08-05T03:54:48 | 2020-08-05T03:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,272 | r | gg_resX.R |
#' Generate residual plot of residuals against predictors
#'
#' @param fitted.lm a fitted linear model (i.e. lm, glm) that contains fitted regression
#' @param plot.all boolean value to determine whether plot will be return as
#' a plot arranged using `grid.arrange()`. When set to false, the function
#' would return a... |
3899b1b761a946dd4020d881194296a11a532ab7 | c49aa09f1f83ee8f8c9d1e716ae38381ed3fafca | /preprocessing/glmnettutorial.R | b212999ef38a61c2c23899b4bd465c57c5e6d409 | [] | no_license | whtbowers/multiomics | de879d61f15aa718a18dc866b1e5ef3848e27c42 | 81dcedf2c491107005d184f93cb6318865d00e65 | refs/heads/master | 2020-04-11T03:25:40.635266 | 2018-09-24T08:51:06 | 2018-09-24T08:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 69 | r | glmnettutorial.R | library(glmnet)
load("QuickStartExample.RData")
fit = glmnet(x, y)
|
6ad45469d2eef23f8f905b9d050ed0ea3ed5b81a | 325902f26f8df4914f3931d6a3a5c5af12b975b1 | /R scripts/Coregulation_score_vs_corr_part2.R | a2cca0d7aaf7c62e82647947fde1e4263381789e | [] | no_license | Rappsilber-Laboratory/ProteomeHD | 5e9ca415a0dac31ef46972eeff018547b9ee8aeb | 2ee6d87110b9d4932af0d106927eb289dfbce321 | refs/heads/master | 2020-04-28T22:22:08.913323 | 2019-11-05T12:24:45 | 2019-11-05T12:24:45 | 175,614,695 | 8 | 0 | null | 2019-03-14T12:10:33 | 2019-03-14T12:10:32 | null | UTF-8 | R | false | false | 5,453 | r | Coregulation_score_vs_corr_part2.R | ## A script to compare the distance/correlation metrics to treeClust using REACTOME test set and precision-recall curves
# Load the required packages
library(data.table); library(reshape2); library(ggplot2); library(ROCR); library(scales)
#### Prepare the data ####
# Read in the data
treeclust <- fread("treeClust... |
247099761a0c3948f39821f55cc84b20ca1046fc | eba5aaf3ed11be632bbe0a0273bed118ab17b658 | /tab2-likert-plot.R | aa1452d44788781b9900fad572454298e3384ea6 | [
"Apache-2.0"
] | permissive | bcgov/career-survey | 9a848a81cd010c95aabd48108419b33657377124 | 57b629b3ec8026004f23d2e9611e691594298c3f | refs/heads/master | 2023-07-14T13:11:12.914218 | 2023-06-30T17:14:15 | 2023-06-30T17:14:15 | 78,044,633 | 1 | 0 | Apache-2.0 | 2021-05-06T22:31:31 | 2017-01-04T19:09:00 | R | UTF-8 | R | false | false | 1,841 | r | tab2-likert-plot.R | library(ggplot2)
library(dplyr)
data <- read.csv("data/BGS_SUCC_RESULTS_sample.csv") %>%
filter(MINISTRY_NAME == "Ministry of Scarlet") %>%
filter(WK_UNIT_NAME == "Frog Unit") %>%
filter(SRV_QU_GRP_CODE == 14) %>%
dplyr::select(QU_TXT, RESP_TXT, RESP_CODE, RESP_PERCENT, SCALE_AVG) %>%
mutate(RESP_PERCENT = ... |
ee9f658235a298f60835a50c9f529892092878a2 | 65d0d046269881862f229f0fd53de59650b128d2 | /cachematrix.R | f465ac63e775c650399b0f231f98db1217d91e78 | [] | no_license | keithburner/ProgrammingAssignment2 | 6e3d1c393ca71f77a736d18978e265023fb0358d | d3124b98459cc0546a9e87a3fc9802083a7e4487 | refs/heads/master | 2020-12-05T01:26:16.703021 | 2020-01-06T17:51:32 | 2020-01-06T17:51:32 | 231,966,548 | 0 | 0 | null | 2020-01-05T19:39:30 | 2020-01-05T19:39:29 | null | UTF-8 | R | false | false | 960 | r | cachematrix.R | ## Part of R Programming module Week 3, this is the project assignment to create a square
## matrix and its inverse. To then store this in cache and retrieve it from cache
## functions do
## Calculate the Inverse of a Square matrix
makeCacheMatrix <- function(x = matrix()) {
im <- NULL
set <- function(y) {
... |
f3abb52c90c54113c1d2b2dd4cc691f8ba8d95f9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/MConjoint/examples/mc.add.to.design.Rd.R | dac9abbccc975d9791ea7c6bbe4df1e03c82faeb | [] | 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 | 680 | r | mc.add.to.design.Rd.R | library(MConjoint)
### Name: mc.add.to.design
### Title: Add cards to a design
### Aliases: mc.add.to.design mc.add.to.design.fast
### Keywords: multivariate
### ** Examples
data(hire.candidates)
base.design = mc.get.one.design(hire.candidates, 9)
#use defaults, (except max.trials=10 for speed)
mc.add.to.design(h... |
dff68d38849ccb23bfb196fb14960daa5ae8c29d | 32315c68e56f4c4ebb91527750b40d092ac2830b | /Travis/outliers.R | 333d72206af9296081faeb983199f96366bca7b3 | [] | no_license | Qingzz7/18S571project | 371f6312c0aa6efc1af32be06972ac033a22202c | 053265a0dc9260e676bc3517f47be340e05d0d6b | refs/heads/master | 2021-09-13T21:38:33.012399 | 2018-05-04T14:42:13 | 2018-05-04T14:42:13 | 119,405,951 | 1 | 1 | null | 2018-02-01T23:13:43 | 2018-01-29T16:05:54 | null | UTF-8 | R | false | false | 730 | r | outliers.R | install.packages("outliers")
library(outliers)
water_df <- read.csv("~/Desktop/completeMwrd.csv", header=TRUE, sep=",")
head(water_df)
water_df[,'Location'] <- as.factor(water_df[,'Location'])
sapply(water_df,class)
temp_water <- water_df[-1]
temp_water <- temp_water[-8]
head(temp_water)
new_water <- temp_water
# ... |
98a8e489f097ca2712135b574f18b5f36b846cd8 | b91c8580e2edf727e839e5febcec629dbcd34137 | /geoapp1/app.R | 412251740428312d3ec7c11d57e8782ee834fe1f | [
"MIT"
] | permissive | jarvisc1/Geostat2016 | 2ba96d17fc6b88c544fb22cd640e2e78acbe46ae | 72941c374b821bc4901eee08a10fcfec661e2cc8 | refs/heads/master | 2021-05-03T12:24:11.027285 | 2016-09-23T14:10:24 | 2016-09-23T14:10:24 | 68,620,717 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,524 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(leaflet)
library(sp)
library(mapview)
library(raster)
library(deldir)
library(dismo)
librar... |
3bdf5fbdd101d3a39b1587552bd271457a0e3912 | 390855ce2c0eca8659d5952250316ba9ec629915 | /R/lines.R | b30337799d680da8e9f4ce912a3e0e78098edf86 | [] | no_license | dtkaplan/detex | 3a5efa337fdd9f70fc46c3c9fe8e8253da55e8ff | 562ccc63f536b75ccc65f4dc352f4d7fdf43a243 | refs/heads/master | 2021-04-05T20:34:36.080413 | 2019-10-24T01:38:26 | 2019-10-24T01:38:26 | 64,130,241 | 1 | 1 | null | 2019-06-06T21:05:50 | 2016-07-25T11:50:52 | HTML | UTF-8 | R | false | false | 287 | r | lines.R | #' Eliminate within-paragraph line breaks
#' @export
simplify_paragraphs <- function(text) {
tmp <- gsub("\n{2,}", " special code ", text)
tmp <- gsub("\n", " ", tmp)
tmp <- gsub(" special code ", "\n\n", tmp)
# smart quotes
tmp <- gsub("(``[^`]\\{r|'')", "\"", tmp)
tmp
}
|
08cc87df68e9240137437583f467951ddfb849f3 | 29cc5f9fc270967167ddf9fbc3c5000f565eb9a2 | /man/rpy.Rd | 4b69bf86cd9f523ea10dd0d3e55cdffc5de0eb15 | [] | no_license | RkzYang/pyryp | f56ccc6b5ab7703632d199e473d314d8efdd2d4d | 388af548631030adff302daa5edc325032fada62 | refs/heads/master | 2020-04-28T08:13:32.053015 | 2019-03-22T07:07:38 | 2019-03-22T07:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 310 | rd | rpy.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rpy.R
\name{rpy}
\alias{rpy}
\title{Translate R Functions into Python Functions}
\usage{
rpy(R_code)
}
\arguments{
\item{R_code}{R Code String}
}
\description{
Translate R Functions into Python Functions
}
\examples{
rpy("getwd")
}
|
8bc6f6ec491d4e78c2098ea546a774b846304066 | 73281ddf16775e53401f161a98d9b92c9a363b2d | /work/10_figure4_jitter_performance.R | 069183a6ba8232d823a0ff6cf18b31914acd5a39 | [] | no_license | joshzyj/satellite-review-public | 5f9bf0f6d1fb4eeb4912408858501ba23bc9ea78 | 8213f7bc558d5977eacbe6cd4167ab3162e7fa2b | refs/heads/main | 2023-06-29T01:34:17.616422 | 2021-03-02T20:52:40 | 2021-03-02T20:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,438 | r | 10_figure4_jitter_performance.R | source("00_init.R")
library(RColorBrewer)
library(boot)
########################################################################################
# Written by: Anne, Oct 2019
# Last edited by: Anne, Nov 2020
# This file creates Figure 4 based on the noisy data created in the previous two files
#########################... |
128b96555430a362c9dc13fb895e1a7ce6c57e4b | 96b0edcb9eb80a21443388eb83f405bd59c65201 | /man/bound.standard.Rd | 6843457d138a4f5332287ca70471abd6a9ad279f | [] | no_license | cran/NetworkAnalysis | 22fc36c297dae9ecf986a30ae212e31c8293cbcc | 21d0645da4b4d4363a8b3232c86313876891ffe7 | refs/heads/master | 2021-01-25T12:14:01.275318 | 2010-12-01T00:00:00 | 2010-12-01T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,051 | rd | bound.standard.Rd | \name{bound.standard}
\alias{bound.standard}
\title{Standardization of bounds when partially integrating topological metrics.}
\description{This is a small function for the standardization of the
integration bounds when computing the cost-integrated version
of the topological metrics of a given
weighted graph.}
\... |
7dfec9234d8c69320716777df05408817406bc43 | 0ba927fc8d22b6aa5be1bf0c608fdd67f43b1349 | /tests/testthat/test-utils.R | bb9914444d53276f58347b50259acc4f114a9483 | [] | no_license | paleolimbot/rosm | 5bb829e2a3be98e8fc6e1e65c38333d37a4df64c | 28c484ebb875cb26dc6dd709c17df982d73f5e32 | refs/heads/master | 2023-08-08T00:37:49.839532 | 2023-07-23T01:03:55 | 2023-07-23T01:03:55 | 44,122,876 | 27 | 9 | null | 2023-01-27T20:55:31 | 2015-10-12T17:29:34 | R | UTF-8 | R | false | false | 90 | r | test-utils.R |
test_that("has_internet() works", {
skip_if_offline()
expect_true(has_internet())
})
|
337ba231befd9154cb93ffecd8fc5e8e7b3422dd | 2558f4d2a73895dd48666563f221bda22e6a9e9a | /plot2.R | 74d9e92fd2224406129ea516a36d9d7f8e3ffc77 | [] | no_license | ayushk007/ExData_Plotting1 | e9dbffa50ec467ffb96b0d4bea18750e737c9d3e | 5687feb684f8fbeb189c578e0583954ff73a74fb | refs/heads/master | 2020-03-10T23:57:53.963955 | 2018-04-26T10:58:14 | 2018-04-26T10:58:14 | 129,652,017 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 452 | r | plot2.R | dataset <- read.csv("household_power_consumption.txt",sep = ";")
dataset$Date <- as.Date(dataset$Date,"%d/%m/%Y")
data <- dataset[dataset$Date == "2007-02-01" | dataset$Date == "2007-02-02" ,]
data$Time <- strptime(paste(data$Date,data$Time,sep = " "),format = "%Y-%m-%d %H:%M:%S")
png('plot2.png',width = 480, heigh... |
c69f9aa81eb97f755d06e5210c862fdb908bee3c | a7e390f9b4e25478163824297a3c939c3e052161 | /R/is.bathy.R | 99ac12b09adc99fa98ffc853496e8ba513289834 | [] | no_license | ericpante/marmap | 7adeceaf85ca55ea0cfe9fc18d929d5a83996c67 | 2cfae824728228e4acdf84cb0b4f09948258ffef | refs/heads/master | 2023-08-09T23:51:16.752079 | 2023-03-24T12:38:10 | 2023-03-24T12:38:10 | 18,529,447 | 29 | 8 | null | 2022-11-16T10:11:58 | 2014-04-07T19:03:45 | R | UTF-8 | R | false | false | 57 | r | is.bathy.R | is.bathy = function(xyz){
print(class(xyz) == "bathy")
} |
bd1299eb5a21f8226c0b34874fddfd130dee008f | ee5999bf0a13cbb822db408b7fbacad54365cead | /MarkovChainAttr.R | c25fabe9a35615b1392c94f4aff0d83534779b66 | [] | no_license | LeondraJames/MarkovChains_MultiTouchAttribution | 20ec757fb0fea7601219608d2dccc3806b38b1c1 | 749ee1f48afb95f73c7ea6bfd62db1d282b1eef2 | refs/heads/master | 2020-07-23T00:00:29.123396 | 2019-09-09T18:46:28 | 2019-09-09T18:46:28 | 207,376,880 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,511 | r | MarkovChainAttr.R | #Load libraries
library(tidyverse)
library(reshape2)
library(ChannelAttribution)
library(markovchain)
# Simulate marketing channel dataset
set.seed(42)
df <- data.frame(client_id = sample(c(1:1000), 5000, replace = TRUE),
date = sample(c(1:32), 5000, replace = TRUE),
chann... |
5ce1afbf99344a71e763ea72edc2275004b16d4e | ab6dd9cd7fe7417f121905d96d71e76c9986c57d | /man/simFossilTaxa.Rd | 1ebf49fada61fc74979be2bd377c64884ea22cd6 | [
"CC0-1.0"
] | permissive | pnovack-gottshall/paleotree | d51482c6d0edd6ae2e4cca7ef2c934d9f87067eb | e0dad1431f6cbed87d565c4eb651a85ffe6f4678 | refs/heads/master | 2020-12-03T02:06:37.852589 | 2015-10-21T05:34:09 | 2015-10-21T05:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,115 | rd | simFossilTaxa.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/simFossilTaxa.R
\name{simFossilTaxa}
\alias{simFossilTaxa}
\title{Simulating Taxa in the Fossil Record}
\usage{
simFossilTaxa(p, q, anag.rate = 0, prop.bifurc = 0, prop.cryptic = 0,
nruns = 1, mintaxa = 1, maxtaxa = 1000, mintime = ... |
bcdbdfeb64074af53a445f70b0be1b02bb5914e2 | 3178860d26781702ca94412669f49c45c2a26275 | /man/mlgvarDat.Rd | 476e84d1546573cb69c8de032ddf260e389a01e5 | [] | no_license | cran/modnets | 08f1fea424212bcf851972de068c62434fb196f3 | 81983f2b895c53602ccb44c989d6692594439568 | refs/heads/master | 2023-08-10T18:19:43.907567 | 2021-10-01T07:20:02 | 2021-10-01T07:20:02 | 412,522,956 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 741 | rd | mlgvarDat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mlgvarDat}
\alias{mlgvarDat}
\title{Simulated multi-level network data}
\format{
A \code{50000 x 7} data frame with five variables to serve as nodes in
the networks, one variable \code{"M"} to serve as the time-lag... |
45a426d9ab3b055e8c267c7442c4b98c0a396b07 | 66e9ef4bfb22efa5d0cb517d771fb0bcdcc67c5a | /man/forward.Rd | 4798bc33067902ee4bc3b3cd99fcea7299a7ab74 | [] | no_license | cran/bigstep | 14f69982ad35a8dd85453026a2679fc410d1a6ad | 2b1acb00b0616f34abf255a8be82aebcb91306cd | refs/heads/master | 2023-05-29T05:06:11.989083 | 2023-05-13T22:12:03 | 2023-05-13T22:12:03 | 72,123,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 935 | rd | forward.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forward.R
\name{forward}
\alias{forward}
\title{Forward step}
\usage{
forward(data, crit = mbic, ...)
}
\arguments{
\item{data}{an object of class \code{big}.}
\item{crit}{a function defining the model selection criterion. You can... |
13263fe40738c15c3db70e6608f895647d32963a | c51cf8d45bc122a44b5f170ae2c912092fd61561 | /R/MZILN.R | 46bb601c81056eaa30e13511eef70f63b8d2e3f1 | [] | no_license | lovestat/IFAA-R | f77b5d038cc807b1cb2558281556f5a8bb7661b6 | bf1f1f5ad96917e476ce7e797b2325c813fbfd75 | refs/heads/master | 2023-06-30T16:47:01.019421 | 2021-08-03T16:20:16 | 2021-08-03T16:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,612 | r | MZILN.R | ##' Conditional regression for microbiome analysis based on multivariate zero-inflated logistic normal model
##'
##' Make inference on the associations of microbiome with covariates given a user-specified reference taxon/OTU/ASV.
##' \loadmathjax
##'
##' The regression model for `MZILN()` can be expressed as follows:
#... |
1feeed38c4c5a14b3b2e28bc6fb3d250bcf3e058 | 9b87d4483086f61aef2bf45315fe898a5fc42dd6 | /01-getting-help.R | c002f5c5c9718cfefea976b95cd960e74189427f | [] | no_license | ashander/2017-05-18-sac-water-science-R | b9a4eda5eb14ee3b78c9e07e5dd874edb724c9c3 | 7644f79bb6d40065e128f7926d07d18fe09597a1 | refs/heads/master | 2021-01-21T16:45:30.746895 | 2017-05-20T17:31:23 | 2017-05-20T17:31:23 | 91,905,422 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 631 | r | 01-getting-help.R | # getting help
# ? works when you know the funciton name
# ??
# help(package='ggplot2') for all functions in a package
# seeing a vignette -- long form help
vignette(package='ggplot2') #gives names of vignettes
vignette('extending-ggplot2') # look at the actual vignette
# what if r help doesn't help?
mtcars # my dat... |
a4bd6ec3c577065735452675758d1a10f705651a | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/13508_0/rinput.R | 311c9a0b85ce9dda05332bcb8e284cee9f9c1721 | [] | 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("13508_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="13508_0_unrooted.txt") |
6d96aa1da7e82255750e5a1e7b8fc47e237ee2cd | 845f441d966dc7f4bfb292005f08f164a18cf2e1 | /files/02-Basic.R | fa6a7da70b63c900d938ab2f3be3d504c3da8692 | [] | no_license | Natasia09/INT214-Statistics | 400099d36e04c58b11bf3694892dbc29dcc60c94 | 49a5e5b4c375d9153aeba37e3931e284aed2984f | refs/heads/main | 2023-09-03T05:35:06.117512 | 2021-11-01T06:27:47 | 2021-11-01T06:27:47 | 423,363,371 | 1 | 0 | null | 2021-11-01T06:43:40 | 2021-11-01T06:43:39 | null | UTF-8 | R | false | false | 1,201 | r | 02-Basic.R | # create variable
x <- 1
y <- 2
x+y
print(x + y)
z <- x+y
z
# Numeric ex 1, 1.0
varA <- 1.0
class(varA)
?class
help(class)
# Logical: TRUE, FALSE
varB <- 1!=2
varB
class(varB)
class(1==2)
# Character
varC <- "Hello, My name is Safe"
class(varC)
# Character Vectors
animals <- c("Ant","Bird","Cat")
class(animals)
lengt... |
70051997f6e73c87cf4089038894b1f28ca4e753 | 68aba67d31a3d5fea5a83bd8acc8b445cb6f4598 | /Rphylip/man/setupOSX.Rd | a8b3196fdd4d03e53aa1e6d3fa1e13ece8a5e3e7 | [] | no_license | liamrevell/Rphylip | 482d20c6ef82bf92a98a8d73d94269afea2ff210 | eee8c6eff145aee4030fb6eb9279e204ddcab5de | refs/heads/master | 2021-06-03T23:38:52.636359 | 2020-05-07T04:20:32 | 2020-05-07T04:20:32 | 14,834,438 | 7 | 12 | null | 2019-01-26T20:12:29 | 2013-12-01T06:07:10 | R | UTF-8 | R | false | false | 1,017 | rd | setupOSX.Rd | \name{setupOSX}
\alias{setupOSX}
\title{Help set up PHYLIP in Mac OS X}
\usage{
setupOSX(path=NULL)
}
\arguments{
\item{path}{path to the folder containing the PHYLIP package. If \code{path = NULL}, the R will search several commonly used directories.}
}
\details{
This function can be used to help set up PHYLIP (\url... |
cd5b1a19a7c7ae3b0f18c615ef5b516b8f6f80af | bd208ac20a73be1fc72acf6aaf3c95b1f9e06e4e | /plot2.R | 45e9d6ebbcfd87bcd74bdbdfb602d58b8038f208 | [] | no_license | MirekBXL/ExData_Plotting1 | 7f8499ec0fc799189a172213c8cd930690a66aed | 048a1facc627ce1df416e3a9295cae80b58f896e | refs/heads/master | 2021-05-07T01:42:50.831572 | 2017-11-12T00:52:49 | 2017-11-12T00:52:49 | 110,384,226 | 0 | 0 | null | 2017-11-11T22:07:06 | 2017-11-11T22:07:05 | null | UTF-8 | R | false | false | 773 | r | plot2.R | #read data
work <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
#convert column Date in date data type
work$Date <- as.Date(work$Date, format = "%d/%m/%Y")
#subset data only for 01-02/2007
d <- subset(work, subset = (Date >= "2007-02-01" & Date < "2007-02-03"))
#conver... |
bd77789186e06dc3a58ad7df3d97458638cc3106 | 7aa1bc3dedd865bf833294c63e578d72392f7cc8 | /Reappearing Words ('kRecentMonths')/kRecentMonths.R | 35d2195307d9a60fad0f4547b4214b5b8602f7b8 | [] | no_license | SophiaLC/KSSP_Data_Quality | 8724a1544b285c4aceeb510f829aadc1d5957499 | cd9ec42d5167a49449b457d2f6858e02faeb144c | refs/heads/master | 2020-03-22T09:51:36.959338 | 2018-09-13T19:30:54 | 2018-09-13T19:30:54 | 139,865,192 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 404 | r | kRecentMonths.R | kRecentMonths <- function(k, dat) {
if (k + 3 > ncol(dat) | k < 1) {
cat("The k you selected is not able to be calculated with the current data.")
} else {
rows <- which(
rowSums(dat[,c(2:(ncol(dat)-k-1))]) > 0 &
rowSums(dat[,c((ncol(dat)-k):(ncol(dat)-1))]) == 0 &
rowSums(dat[,ncol(da... |
51753255ed306c41b0faf379acc1ab0bea9bd0f1 | 95fed8697a76ab3013784a0b9c53716b6f40715c | /man/multiNet.Rd | 0bc35565e4d6dec3482f2572c8bb47368f1a0bc1 | [] | no_license | cran/spaceNet | f8fd6612e8cc2aa46b0b622b34a460074358cb64 | ff9525f44e62a331ae1737a85a8c7d3a59eb48f6 | refs/heads/master | 2021-04-15T12:18:46.744040 | 2019-05-19T21:30:03 | 2019-05-19T21:30:03 | 126,347,452 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,180 | rd | multiNet.Rd | \name{multiNet}
\alias{multiNet}
\alias{print.multiNet}
\title{Latent Space Models for Multivariate Networks}
\description{
Implements latent space models for multivariate networks (multiplex) via MCMC algorithm.
}
\usage{
multiNet(Y, niter = 1000, D = 2,
muA = 0, tauA = NULL, nuA = 3,
m... |
87c4b8783ab1af42d411a11d0b057c56b6f148f1 | 49ff0bc7c07087584b907d08e68d398e7293d910 | /INLA-CAR/admin1/run_INLA.R | 3be6a33b5b09101ed725b4f25186b7a297f06174 | [] | no_license | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | db7963836c9ce9cec3ca8da3a4645c4203bf1352 | 4219ee6b1fb122c9706078e03dd1831f24bdaa04 | refs/heads/master | 2023-07-30T07:05:28.802523 | 2021-09-27T12:11:17 | 2021-09-27T12:11:17 | 297,317,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,961 | r | run_INLA.R | ##############################
#### set working directory####
##############################
rm(list = ls())
setwd("/ihme/homes/annieb6/AMR/typhi_paratyphi/CAR_INLA/admin1")
model_id <- '1b_sSA_raw_covs_country_re_int3'
dir.create(model_id)
#######################
#### Load libraries####
#######################
librar... |
0518761845e33e9655aa8d11c414dc5df31194e7 | 354066554dd1c3ca7a2d45e3673a2da86330f816 | /man/mmult.Rd | a95c3308976dd01bac30c5049d9eb9631c767f3e | [
"MIT"
] | permissive | elemosjr/planejamento | e8bfe3d0d9d255b1216a91d91a0a880fa2f3cb0c | f7cd310c6a59533b8d7b7ec8b03391a874f0cb51 | refs/heads/master | 2023-04-30T19:34:33.232372 | 2021-05-20T00:54:16 | 2021-05-20T00:54:16 | 366,199,524 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 302 | rd | mmult.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{mmult}
\alias{mmult}
\title{Multiplicação de matrizes}
\usage{
mmult(m, v)
}
\arguments{
\item{m}{Primeira matriz}
\item{v}{Segunda matriz}
}
\value{
Matriz.
}
\description{
Multplica duas matrizes.
}
|
004c850fdcae696510275f166005ddace80797e8 | 29c00e4f138695197d798e1a748bdbceeccd9765 | /man/survdefHR.Rd | 761cf59b50a72a9497f9110cf576c6f66f6c0d51 | [
"MIT"
] | permissive | anneae/RMSTdesign | fb17b22476f58e6c43e10edd60798647884c2003 | ae467e818944f15f0f0d1935ee994607d6c78212 | refs/heads/master | 2020-05-29T16:37:19.210719 | 2019-12-31T00:57:11 | 2019-12-31T00:57:11 | 189,254,027 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,072 | rd | survdefHR.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survdefHR.R
\name{survdefHR}
\alias{survdefHR}
\title{Create a Survdef Object Based on a Hazard Ratio}
\usage{
survdefHR(survdefC, HR)
}
\arguments{
\item{survdefC}{the survival distribution for the reference/control group,
as a list in the f... |
786819adc5702383a547bf0f137a8825b0a0db48 | 43fb608bb140489e80e9ff4b688d3cfa774eb387 | /run_analysis.R | 523b5fb7adb79bdf924de993278f949f851ed221 | [] | no_license | chrislit/getdata-project | ae70ad9ffae77f786709b1c3442b34242086a98b | e261e028017c0548fa02d28a12c3bffc4b6ab1f7 | refs/heads/master | 2021-01-10T13:43:47.456446 | 2015-05-23T07:37:06 | 2015-05-23T07:37:06 | 36,103,630 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,192 | r | run_analysis.R | #!/usr/bin/env Rscript
library(dplyr)
# Helper functions
expand.path <- function(fn) {
data.dir = "./UCI HAR Dataset/"
paste(data.dir, fn, sep="")
}
# Read features.txt into a df and extract the set of features that end in -mean() or -std()
features <- read.table(file = expand.path("features.txt"))
means.and.stds... |
12e1d8ebc11af758217083f65dcc1aea5ecc1066 | 63883301f67d43dd74c2d100ecd62f3e38d3f4d0 | /man/setPermanentAnalyst.Rd | ff1f3b590b8416e7af6dcc19cce00c1e0e2b1319 | [
"MIT"
] | permissive | akirosingh/Jagannathantools | fee3d7b49ebc6659f001e44954de146d60cbcf4a | ac894317f73c71a119e93d2ffebccbde8c94ce65 | refs/heads/master | 2023-08-23T12:20:01.464604 | 2021-11-03T01:59:45 | 2021-11-03T01:59:45 | 349,272,998 | 2 | 0 | null | 2021-05-20T22:38:58 | 2021-03-19T02:07:29 | R | UTF-8 | R | false | true | 383 | rd | setPermanentAnalyst.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MiscFxns.R
\name{setPermanentAnalyst}
\alias{setPermanentAnalyst}
\title{Set Default Analyst Value}
\usage{
setPermanentAnalyst(Name)
}
\arguments{
\item{Name}{A string containing the analyst name}
}
\description{
This is an internal function... |
6ea3c8ed49cb37f9a98e916f3e5875de137910cb | 5f97b926b492cb41435b54dbd998a77b8762cbcc | /man/simexpodat.Rd | 95e3a293a3a123d0c545d1058a6e3aa373fa5b6c | [] | no_license | lvhoskovec/mmpack | 38bbc1a72cdd5f26aeeca3e07b5c2c5a0f563085 | a55bab3e69ab2dc10a2ce4ccc933e28b122a5e9c | refs/heads/master | 2021-09-04T14:34:07.888345 | 2021-08-16T16:49:17 | 2021-08-16T16:49:17 | 192,816,897 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 645 | rd | simexpodat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simexpodat.R
\name{simexpodat}
\alias{simexpodat}
\title{Simulate Data for MixModelPack}
\usage{
simexpodat(n, Xdat)
}
\arguments{
\item{n}{sample size}
\item{Xdat}{Xdat exposure data matrix loaded from package mmpack}
}
\value{
list with co... |
6f52e8fe55e3c55ef7ef37929c694426b7f3697b | 871ec0e7231d3f8578fa1d75428b06ee6320a550 | /learning/ML_previsao_1.R | 105b17aa01f7b55eaf01a353e4738811c7c928f4 | [] | no_license | gabrielgasparoti/Titanic_Survivors | f5741ba27d10585d553cde119618af09773fa5cb | 5a66186caebb520e1f2e74702f867213a1385632 | refs/heads/main | 2023-03-22T02:06:10.942682 | 2021-03-20T15:01:03 | 2021-03-20T15:01:03 | 349,746,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,630 | r | ML_previsao_1.R |
# PREVISAO DE SOBREVIVENCIA AO TITANIC
# TREINAMENTO DO MODELO DE REGRESSAO LOGISTICA SOBRE OS DADOS DE TREINO
# Neste script treinamos o modelo com base nos dados de treino
# Fizemos previsões para os dados de teste
library(tidyverse)
library(kableExtra)
library(factoextra)
library(gridExtra)
librar... |
f4c02c914af519a2d06f66bc10298349bccc2fef | 455fb725c615d1c4b11277b2f0cbbd7012f14ab9 | /XG_Boost.R | 7c1a4f1741674085fc55eb3601dd7e3d00add24f | [] | no_license | BigData-Capstone/M5-Forecasting | 8517b8b4da7faff52314f72dc7ec80e07528965c | 83797df84f377eadf407f423f0e7b7496eacefc0 | refs/heads/master | 2022-07-17T06:44:02.847105 | 2020-05-18T06:56:53 | 2020-05-18T06:56:53 | 258,253,153 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,033 | r | XG_Boost.R | #importing relevant libraries
library(tidyverse)
library(data.table)
library(RcppRoll)
library(dplyr)
library(janitor)
library(forecast)
library(xgboost)
library(Matrix)
library(mltools)
library(caret)
library(foreach)
library(doParallel)
#define function for clearing memory
free <- function() invisible(gc())
#read i... |
1acaede800c586addd589614cbcf380884e96ea7 | 6e2656f82b2a1cf2c18158d03f3a4cba197f9c1e | /man/get_script_dir.Rd | a0c284697b39f2b997f274798c980a74e2899b85 | [] | no_license | Fgazzelloni/ihme.covid | a8f46800ee513971f5c1742ac2eadb1edc5c7d5e | c014610e2d60cb4e2edf7d3ee14f84bd4d3d9bf7 | refs/heads/master | 2022-11-19T18:31:40.528400 | 2020-07-24T16:28:36 | 2020-07-24T16:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 347 | rd | get_script_dir.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_script_dir.R
\name{get_script_dir}
\alias{get_script_dir}
\title{Returns the directory the currently running script is in or NULL if all fails}
\usage{
get_script_dir()
}
\description{
Returns the directory the currently running script is... |
f6eaf310c6deb73c916770af666cfaddc0252c0c | 2dd63cb845ae41b596301c4a3cf0e2602a9dc281 | /ruijin.R | 4fbb7fc8fcfce6109b22eb34324bbf022418cdaa | [] | no_license | tienan/Shsmu_tienanTools | da8609fb026e849ddd1b2b95297bcae1f9a81e6e | 9d8a4d2575f07d62d70d1e4f5f4936bfb908d867 | refs/heads/master | 2021-06-15T15:32:23.659992 | 2021-02-15T03:31:38 | 2021-02-15T03:31:38 | 149,967,692 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,055 | r | ruijin.R | install.packages("rms") #这一步一劳永逸。安装好后,再次启动R时,无需再次输入代码,下同
install.packages("Hmisc")
install.packages("lattice")
install.packages("survival")
install.packages("Formula")
install.packages("ggplot2")
install.packages("foreign")
library("rms") #这一步一劳永逸。安装好后,再次启动R时,无需再次输入代码,下同
library("Hmisc")
library("lattice")
library("... |
2562abbc7a8441f3017728dcf13924ae73217fa6 | 2655fcbde895737e36a1f2283e0cd51765e98168 | /Taxonomy/R/clustering_hierarchical.R | 435b8508b2855a39cfe02279fe6f2c7e06bb9999 | [] | no_license | DDTD-IS/DDTD-IS | 5b7128df844289fa804bc9a3750c73898001bfb4 | eb21f343a7224793af823cd580f206d2fb48b604 | refs/heads/master | 2020-09-21T19:21:24.316497 | 2019-11-29T17:38:21 | 2019-11-29T17:38:21 | 224,897,542 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,503 | r | clustering_hierarchical.R | #' @title Wrapper function for hierarchical clustering algorithms
#' @description This function wraps the functions \code{hclust} and \code{cutree} and returns a list containing the original clustering as computed by \code{hclust} and
#' the resulting cluster assignments based on the passed \code{number_clusters}
#' @... |
29e5ddaf89e9a87c6dd333871fd371f259e2a149 | 8b5e9897c10bd990e7aee1201325397dfb7e1c82 | /SHIFT/202105/t29_Aula4.R | 1e0c5e138d24abe8b1b6308bcf55422a5d2ff089 | [] | no_license | Uemura84/FIAP | 9ea08e79b4b9f1c8de87c317d5bb19f8e66bfd30 | 2c9a62b775096c108c0da42dcb4f66dbd74a0e07 | refs/heads/master | 2023-08-02T10:40:17.526656 | 2021-10-08T02:31:11 | 2021-10-08T02:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,370 | r | t29_Aula4.R | # Aula 4 - Regressões no R
pib <- read.csv("https://raw.githubusercontent.com/diogenesjusto/FIAP/master/SHIFT/Data/pib.csv")
# Separação Treino e Teste
treino <- pib[1:132,]
teste <- pib[133:138,]
##################################################################
# 1. Modelo de RLS:
mod <- lm(PIB~BRL, data=treino)
... |
47ae16d862634b3b7ac332f5eac73a9000cfca91 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ROCit/examples/logit.Rd.R | cb1276188116c3c1ee92c2d65413069017d62fb4 | [] | 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 | 156 | r | logit.Rd.R | library(ROCit)
### Name: logit
### Title: Log Odds of Probability
### Aliases: logit
### ** Examples
logit(0.2)
set.seed(1)
logit(runif(10, 0, 1))
|
2d7aafc70635145dc2692f2859c1ee293f83f1a9 | 38d166ede31183e2121388be0f66fe9d7ac4e93a | /R/parse_uc.R | f3fe12730d9bac318a183dbd0d785ea120e2572c | [
"MIT"
] | permissive | vmikk/metagMisc | a01151347b620745b278265700e503dc74669af5 | 310b1a40951de46348084e150d7471ed66feb0c8 | refs/heads/master | 2023-08-31T08:41:27.684905 | 2023-08-28T10:09:50 | 2023-08-28T10:09:50 | 76,531,351 | 38 | 12 | MIT | 2019-07-29T06:12:12 | 2016-12-15T06:40:05 | R | UTF-8 | R | false | false | 4,631 | r | parse_uc.R | ## TO DO - add examples
#' @title Parse UC files (clustering output from USEARCH, VSEARCH, SWARM)
#'
#' @param x File name (typically with .uc extension)
#' @param map_only Logical, return only mapping (correspondence of query and cluster)
#' @param package Which package to use ("base" or "data.table")
#' @param rm_du... |
2802ef47981078810792523e0d8baa8103b62c1e | 6ceab1bf9c435b523d2f8e7e9440da39770d741b | /R/f7Icon.R | 44ca993a6f4597622dce52cf2ddf0d0f7b8e7eb9 | [] | no_license | RinteRface/shinyMobile | a8109cd39c85e171db893d1b3f72d5f1a04f2c62 | 86d36f43acf701b6aac42d716adc1fae4f8370c6 | refs/heads/master | 2023-07-25T16:28:41.026349 | 2022-11-25T17:04:29 | 2022-11-25T17:04:29 | 139,186,586 | 328 | 92 | null | 2023-03-26T05:58:53 | 2018-06-29T19:13:06 | R | UTF-8 | R | false | false | 2,313 | r | f7Icon.R | #' @title Framework7 icons
#'
#' @description Use Framework7 icons in shiny applications,
#' see complete list of icons here : \url{https://framework7.io/icons/}.
#'
#' @param ... Icon name and \link{f7Badge}.
#' @param lib Library to use: NULL, "ios" or "md". Leave \code{NULL} by default. Specify, md or ios
#' if yo... |
9abd8165fd0ab8f9c8e5ac51de4413c131ff29d8 | 799468ce526db6f14f2aa5003c601e259e5f0d62 | /man/betaval.Rd | 7786bae2a06113db06f8b2913a35bb803d493f5b | [] | no_license | kostask84/popbio | 6aa45015bfc1659bd97f2ce51ad5246b8d434fac | 682d3ffb922dfab4fd2c7fc7179af2b0d926edfd | refs/heads/master | 2021-05-09T02:01:42.050755 | 2017-02-09T21:44:20 | 2017-02-09T21:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,942 | rd | betaval.Rd | \name{betaval}
\alias{betaval}
\title{ Generate beta-distributed random numbers }
\description{
This function calculates a random number
from a beta distribution and uses the R function pbeta(x,vv,ww).
}
\usage{
betaval(mn, sdev, fx=runif(1))
}
\arguments{
\item{mn}{ mean rate between 0 and 1}
\it... |
287ea0a7447b67ce28d30cf8193280fc9e5fe3cd | ef8d66ebaeaf27fa1aed1cf01ebd70ce8224c5cd | /man/get_top_effects_log10p.Rd | e841ca4864fe24f98bbc3f640e25c84b8367c15c | [] | no_license | Alice-MacQueen/CDBNgenomics | dd6c8026156d91be7f12a9857d0ebeb89c32c384 | 6b00f48eb1c6eec848f11416d7a5fd752cd778bd | refs/heads/master | 2021-07-08T06:15:56.774003 | 2020-08-12T19:28:32 | 2020-08-12T19:28:32 | 178,261,021 | 2 | 2 | null | null | null | null | UTF-8 | R | false | true | 558 | rd | get_top_effects_log10p.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cdbn_bigsnp2mashr.R
\name{get_top_effects_log10p}
\alias{get_top_effects_log10p}
\title{Step One of bigsnp2mashr}
\usage{
get_top_effects_log10p(path, gwas_rds, phenotype, numSNPs, markers)
}
\arguments{
\item{path}{Path}
\item{gwas_rds}{RDS... |
aeb6e1ac84a82b989e6b30e30bb1cf2b2c1ed971 | 2863c6a6081752860eac69843ff5f4daa99bc0b1 | /man/GenerateRandomValues.Rd | ba03fda039961bd0dcf47a88f1a75e5cd866b5ea | [] | no_license | djhwueng/BMhyb | 6bf5cb87fd9a86e9ab66f69b50aaad608d5bd5f8 | a0283ab96b05cfea8b7ae41d901ed27c965a92f1 | refs/heads/master | 2020-03-13T15:51:47.381014 | 2018-03-27T18:38:06 | 2018-03-27T18:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 765 | rd | GenerateRandomValues.Rd | \name{GenerateRandomValues}
\alias{GenerateRandomValues}
\title{
Generate random values
}
\description{
Generate random value for parameters
}
\usage{
GenerateRandomValues(data, free.parameters, lower, upper)
}
\arguments{
\item{data}{
numerical vector that contains trait data
}
\item{free.parameters... |
4a6537873f9839f422012aae5aea06a855435c64 | 9ea744d0e28fe4fc4d3e1e00f7ec53ea054b8cd0 | /man/reexports.Rd | 7cc50495c683df65501543846da6fd0ffa7c8cbb | [] | no_license | YuLab-SMU/treeio | 8d434454f25336859e0e0c12fc65029a310b638b | c3f7b8e6df5f768f53e33b46b3e13dd529bb4f56 | refs/heads/devel | 2023-09-01T19:44:13.166325 | 2023-08-25T04:27:18 | 2023-08-25T04:27:18 | 75,700,092 | 56 | 17 | null | 2023-08-25T04:25:14 | 2016-12-06T06:05:56 | R | UTF-8 | R | false | true | 2,141 | rd | reexports.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R, R/ape.R, R/method-as-phylo.R,
% R/reexport.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{treedata}
\alias{read.tree}
\alias{read.nexus}
\alias{rtree}
\alias{write.tree}
\alias{write.nexus}
\alias{Nnode}
\alias{N... |
2ed1c6054808f87ed6b1bba187082d7ddf81beb5 | 7b202240d021c315637b6ad8b1a2dc1bbade984a | /Function.proportion.events.captured.R | ccfbf9f6ee4ddbad9cdea93bc5588e3e30b34ceb | [] | no_license | summerx0821/Commentary-on-Tayob-and-Murray-2014 | 6ea525e23c81f2c85fac9845f8c8fa633ef8b209 | 1dfcc003359918ab536ee09dcf916cf4368e5b81 | refs/heads/master | 2020-03-15T09:31:16.115794 | 2020-03-08T20:40:57 | 2020-03-08T20:40:57 | 132,076,946 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,280 | r | Function.proportion.events.captured.R |
####################################################################################################################################
# PROGRAM NAME : Function.proportion.events.captured.R
#
# AUTHOR : 3JUL2018 by Meng Xia
#
# EXECUTED UNDER : R 3.4.1 (2017-06-30)
#
# FUNCTION NAME : prop.events.captured... |
d68c9bf7f38510996dc99e32ec720e463b69454a | b4c486650810278808ccc663adb9c5882c0749c6 | /man/eu_all.Rd | 09490d179ab87142bbb3552b29b828389cd43c1d | [
"MIT"
] | permissive | elenius/agedecision | 75ae1815ecb2ec980e5a9d1c1e4ee95e74368920 | defa324d32dff1fe1ee226e713b9038981519f97 | refs/heads/master | 2020-04-08T02:31:07.449537 | 2018-12-08T15:59:16 | 2018-12-08T15:59:16 | 158,938,166 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 916 | rd | eu_all.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/result.R
\name{eu_all}
\alias{eu_all}
\title{Förväntad nytta för alla alternativ/metoder}
\usage{
eu_all(prevalence = 0.84, lowest.utility = 0, age.min = 15,
age.max = 21, zero.limit.child = 15, zero.limit.adult = 21)
}
\arguments{
\item{pr... |
1ef574d61d651bd5cb4e39aebf8c3fca31bbb740 | 56c28601cbc951d53b3b01b40dcf96c69f431cbb | /Getting and Cleaning Data/run_analysis.R | d739e103cbae3801e598aacf7ab1a4e6f3e72287 | [] | no_license | chacemerritt/datasciencecoursera | 14e4c3524653e59dbdb994712e2b4b1faf1a7f40 | 938dc2fb24df89c95ea212b6ef8b5f294c75edeb | refs/heads/master | 2021-01-01T15:55:54.245317 | 2017-08-28T16:31:08 | 2017-08-28T16:31:08 | 97,731,415 | 0 | 1 | null | 2017-08-07T03:06:43 | 2017-07-19T15:18:08 | null | UTF-8 | R | false | false | 2,445 | r | run_analysis.R | getwd()
setwd()
#loads activity data sets from test and train within working directory
testactivity <- read.table("test/Y_test.txt" , header = FALSE)
trainactivity <- read.table("train/Y_train.txt", header = FALSE)
#loads subject data sets from test and train
testsubject <- read.table("test/subject_test.txt", hea... |
03041c64d7591c53110d01468a6e1f1bdc307a73 | 7d39794c02d83d3aa534a4b8a43c9074c52fb873 | /Adelanto Sueldo/AdwordsScript_ADS.R | c683433526fb1bbef28896625fbb16c58cb60d93 | [] | no_license | ccespedeschristian/sbpPeru | 1d91010be6500e970f3d5078ac9b1fde177232cd | e105b0a9919b395655b4ffeaa04a048005cc162a | refs/heads/master | 2020-03-28T13:44:54.363323 | 2018-09-14T03:51:34 | 2018-09-14T03:51:34 | 148,425,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,369 | r | AdwordsScript_ADS.R | library(googleAnalyticsR)
library(openxlsx)
library(ggplot2)
library(dplyr)
library(RColorBrewer)
library(stringr)
ga_auth()
scotiabank <- 86666711
#ANALISIS DE CAMPANAS
campanaS <- dim_filter(dimension = "campaign", operator = "REGEXP", expressions="(.*)_Adelanto_Sueldo_(.*)")
Sads <- filter_clause_ga4(list(campana... |
36d0f132a2c895b1ba4cdd9a8231eb14c05274b0 | 4cf6967f00c6e2f725daf487e1c1fb2ca075c1e2 | /man/readData.Rd | 1c1a97571433217d3cc264e3eaf1494d61f2a536 | [] | no_license | nwagenbrenner/windtools | a262a38a7af24aa6f983868e0e268d423b926ea2 | f656f12544944dcfe1b4eb12f081b07acd12610c | refs/heads/master | 2021-01-17T13:24:19.065858 | 2019-05-23T16:17:10 | 2019-05-23T16:17:10 | 11,617,845 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 559 | rd | readData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_data.R
\name{readData}
\alias{readData}
\title{Read wind data}
\usage{
readData(fileName)
}
\arguments{
\item{fileName}{full path to wind data file to be read in}
}
\value{
dataframe for use by other windtools functions
}
\description{
\... |
6a0f91411f91935a523d4d949fac608c9404e8a7 | b122664f52ee053806388ccbeb2e54657b6f801a | /1.R-programming/2.r-containers/caret.R | 4875c25fde788a54b4884151e8b79d0d1c046cb3 | [] | no_license | rmatam/Data-Science2 | cd5d13a9a0fa1841869652e904fa2029b1900ed4 | 6aec5d996a34fa34c7f6213b404588dc5e93f5fa | refs/heads/master | 2021-05-04T04:57:27.078540 | 2016-10-14T19:06:36 | 2016-10-14T19:06:36 | 70,911,017 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,258 | r | caret.R | library(caret)
library(ggplot2)
library(lattice)
data(iris)
install.packages("RWeka")
library(RWeka)
# No other hyperparameter values, no random search
getModelInfo("J48")
# No other hyperparameter values, no random search
getModelInfo("PART")
# This needs sampling for random search
getModelInfo("JRip"... |
466418ea3316504eff15d24f8f4503337bcdc3e4 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/FreeSortR/examples/getStress.Rd.R | 7da71e12a1bf4363e66aee8e74da8dd077ae050a | [] | 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 | 233 | r | getStress.Rd.R | library(FreeSortR)
### Name: getStress
### Title: Gets the stress value
### Aliases: getStress
### ** Examples
data(AromaSort)
Aroma<-SortingPartition(AromaSort)
resMds<-MdsSort(Aroma,ndim=2)
stress<-getStress(resMds)
|
cca1a50fe8007d3877098438ed420c5a61143ff5 | af1f023425520b2c71ae0b977f0dd4d5901b85de | /mini-analysis.R | 2051ae977077921274484f3c9a3af0a43d2f49c5 | [] | no_license | otherbodies/abalone | d73a458cb992c846dbbd0d6f7a0ad600fcf55bdc | 8408d9134fe73f88e0ada8e2e751f4b1a24d8b1d | refs/heads/master | 2021-01-19T01:22:25.036609 | 2018-07-01T13:31:53 | 2018-07-01T13:31:53 | 27,663,640 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,900 | r | mini-analysis.R | wholedout_mini = subset(wholedata, outlier !="1" & condition !="sys" & task == "mini")
#wrongly coded condtition order in mini - correct is: trunk, head-down, str, eyes
# correcting this
for (i in 1:nrow(wholedout_mini)){
if(wholedout_mini$condition[i]=="str"){
wholedout_mini$condition[i]="hd"
}
else if(whole... |
cc95b873dabe01d847be3c0951b4bed4f59f136e | 0266a444751df0af04f5f6899c70eb2919bed086 | /stats_scripts/Generating_graphs.R | 840fd0852f28d9f3dab66e6e87ea3f45c2de4fcc | [
"MIT"
] | permissive | LilithHafner/SymbulationEmp | 55b902ede043e4f7ef57a17a6922188b6ee43d8b | fb53c7fbefa03f6d901cdd49bdb823a637449bba | refs/heads/master | 2021-01-02T14:58:19.938906 | 2020-05-13T16:01:17 | 2020-05-13T16:07:17 | 239,671,139 | 0 | 0 | MIT | 2020-05-13T12:58:29 | 2020-02-11T03:54:51 | C++ | UTF-8 | R | false | false | 9,599 | r | Generating_graphs.R | require(ggplot2)
require(RColorBrewer)
fullcubeHelix <- c("#673F03", "#7D3002", "#891901", "#A7000F", "#B50142", "#CD0778", "#D506AD", "#E401E7", "#AB08FF","#7B1DFF", "#5731FD","#5E8EFF", "#4755FF" ,"#6FC4FE", "#86E9FE", "#96FFF7", "#B2FCE3", "#BBFFDB", "#D4FFDD", "#EFFDF0")
shorthelix <- c("#A7000F", "#E401E7","#5E8EF... |
ddd5e98d8bda49557b6271b46cb765cd3241fec8 | e45e510a9ddfc830d3d15f41c29772618b60bde2 | /analysis/analysis.R | 55febdff708714c1022a957e31d508a708e201ec | [
"LicenseRef-scancode-public-domain"
] | permissive | craig-willis/sigir-2016-queries | 37c3adc8bd537782422aa51b7fdce0169120f116 | f6caddb5f1137a1d7678edb6e00c07b7f87ce45b | refs/heads/master | 2021-01-21T14:07:40.163549 | 2016-05-21T16:19:41 | 2016-05-21T16:19:41 | 50,811,396 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,653 | r | analysis.R | setwd("/users/cwillis/dev/uiucGSLIS/ecir-2016/analysis")
cost <- function(r, pi = 0) mean(abs(r-pi) > 0.5)
# Summaries
# Dakka et al, TREC 6-8 (301-450), LATimes
d <- read.csv("dakka-?latimes-trec678-rel-acf.csv", header=T)
d <- d[,3:ncol(d)] # Remove topic and file fields
d[is.na(d)] <- 0 # Repla... |
2f004369634828342915e4e62266bb1dbfc331ed | 074df927499b9e18b86bd38be490dd9ff78d9b7c | /R/complement.r | 019df1e981051f868936e9ec03576b14be24c484 | [] | no_license | Kosile92/myDNA | a506226181d9ffbd1134e9e846086eee9d29d28a | e8079b7dded85483e8724935602a5be7ef9140d4 | refs/heads/main | 2023-01-07T00:35:57.237517 | 2020-11-06T19:32:55 | 2020-11-06T19:32:55 | 310,689,662 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 717 | r | complement.r | #' compute DNA nucleotide complement
#'
#' computes DNA complement
#' @param input the character string of info to parse
#' @keywords split, parse
#' @export
#' @examples anthrax_sasp.nuc
complement <- function(nuc){
comp <- c()
for (i in 1:length(nuc)){
if (nuc[i] == 'A'){
comp[i] = 'T'
}
else... |
673dc62c1b4aa15e93b33566195516bed75c8e15 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/dtwclust/man/tsclust.Rd | 02ee21a1fb4964011f7a845424d059891483e305 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 21,922 | rd | tsclust.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CLUSTERING-tsclust.R
\name{tsclust}
\alias{tsclust}
\title{Time series clustering}
\usage{
tsclust(series = NULL, type = "partitional", k = 2L, ...,
preproc = NULL, distance = "dtw_basic", centroid = ifelse(type ==
"fuzzy", "fcm", "pam"),... |
e4e7981080433da98965b66e180e815d00612bb6 | 4b4a16d3d8543817a3ae11f81c08ea85e5728dd6 | /man/rasch_drop.Rd | f6bbbfd738bf4644b87dbd62743d215fef93411e | [] | no_license | CarolinaFellinghauer/whomds | ca7022f24419c33f2f295e2fa7cb107ef8f40e58 | d43eaedd05ea4fe808cc50a6dbe3a9333fc66caf | refs/heads/master | 2020-03-19T06:13:10.744716 | 2018-05-31T19:07:24 | 2018-05-31T19:07:24 | 136,001,057 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,071 | rd | rasch_drop.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rasch_drop.R
\name{rasch_drop}
\alias{rasch_drop}
\title{Drop items from a Rasch Analysis}
\usage{
rasch_drop(vars_metric, drop_vars, max_values)
}
\arguments{
\item{vars_metric}{a character vector of items to use in the Rasch Analysis}
\ite... |
c635936280c0d43d09a5398897618d2b9e9baa4e | 41d7c2ff4628f27213f90aca0be867c0f747b300 | /R/utils-preprocess.R | 00be4b7ef51b5ea30baad0f7605252066ba33e3a | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jlaffy/statistrics | 69e17a043522d3bcad6127127e66eea9649c3a92 | 2de58328790ede712c3aa6bbeccda611d7eaa121 | refs/heads/master | 2020-03-14T03:03:24.759893 | 2018-08-23T12:37:04 | 2018-08-23T12:37:04 | 131,412,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,362 | r | utils-preprocess.R | #' Convert expression data from logTPM to TPM form.
#'
#' TPM aka Transcripts Per Million.
#' If a matrix is provided, \code{TPM} will be applied over each cell and returned as a matrix.
#' Note. \code{TPM(logtpm) == logTPM(tpm)}
#' @param logtpm a numeric vector. Either a matrix or of length 1.
#' @param dividebyten ... |
61a361b69d802c27c48108d8810a62c4335b495c | 5619c945bb306f7e0a19e03f9f596d286158c45c | /man/query_s3_txdb.Rd | 565a045f54172595213b7eeef3a69602b2e413b1 | [] | no_license | khughitt/EuPathDB | f569a31de1d7716371bbf493c2fdf1d95926dced | b822c59134b6249bae2a8eb1e276a2bd4460cfc0 | refs/heads/master | 2023-08-05T05:32:47.830631 | 2022-10-25T02:38:40 | 2022-10-25T02:38:40 | 151,275,849 | 4 | 3 | null | 2023-07-21T14:37:30 | 2018-10-02T15:14:58 | R | UTF-8 | R | false | true | 595 | rd | query_s3_txdb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_s3_file.R
\name{query_s3_txdb}
\alias{query_s3_txdb}
\title{Perform what should be a completely silly final check on the file which is to be copied to s3.}
\usage{
query_s3_txdb(file)
}
\arguments{
\item{file}{Filename to query.}
}
\val... |
795e9e003d7e5f3feb7de4cc1bf828e5b493a1c1 | b58ef6361161adfad9bdc7cc1b23c4988030fbe3 | /man/acs.Rd | c1752b71bba494e48433cad4843966ff5d4cc05e | [
"MIT"
] | permissive | DSPG-ISU/DSPG | 01b9ec9a3dd02cd2ee7e52a28ba22f6d312ad2f8 | c20b50c1dd28eedd879a9226b5f6511a0471c870 | refs/heads/master | 2023-02-26T12:54:52.616558 | 2021-02-05T05:44:04 | 2021-02-05T05:44:04 | 277,006,430 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,070 | rd | acs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{acs}
\alias{acs}
\title{American Community Survey - Computer Presence}
\format{
A data frame with 99 rows and 9 variables:
\describe{
\item{geography_id}{geographic ID used by the U.S. census for the location ass... |
5ac5fc3f7376998b05312080d5de130bbc04ead0 | 87c30bb64856dc8940105447abcb827f7629c468 | /man/iddplacebo.Rd | 4c95584bf008c77a1361c681f60b74e38fba2965 | [] | no_license | carlbona/idd | c28f2856b25c8d085768dd1c998bd576442aff2e | 888ccd68976bd6ad1bfa3211a870fd39a5243763 | refs/heads/master | 2021-05-05T12:22:59.283961 | 2018-06-10T17:37:35 | 2018-06-10T17:37:35 | 118,240,758 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,825 | rd | iddplacebo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iddplacebo.R
\name{iddplacebo}
\alias{iddplacebo}
\title{Run placebo studies on untreated units and estimate placebo p-values.}
\usage{
iddplacebo(eventvar, popvar, treatvar, postvar, timevar, idvar, data,
iter = 10)
}
\arguments{
\item{eve... |
083729b1a23eecc4d4844332be6b7ff8b2e20769 | 555e53b79fc56f5263fedb403485cb6fc4ae0412 | /man/input66002.Rd | 705eca9689f7c6e611544d636b02b9167b37ea82 | [] | no_license | DannyArends/BSE | 547902710829e92027cd57d698645daaf8e29a76 | 0186f2b5acf2b8160c8102ce50c850ac8e866e1f | refs/heads/master | 2021-01-01T17:47:40.754738 | 2013-12-06T10:19:38 | 2013-12-06T10:19:38 | 14,977,266 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 305 | rd | input66002.Rd | \name{input66002}
\alias{input66002}
\docType{data}
\title{
Example data.
}
\description{
Example data.
}
\usage{
data(input66002)
}
\format{
TODO
}
\details{
TODO
}
\source{
TODO
}
\references{
TODO
}
\examples{
library(BSE)
data(input66002) # Load the dataset
}
\keyword{datasets}
|
4b3381802d0ee6acf8c19c59bf103a4aeed3e417 | 4cf8709cec08920b192e35065fc8d985735610b7 | /module2/week2/assignment/part2/R/Part2.R | 98327d946bccbfab42094419f28a0e2312e45847 | [] | no_license | Kishwar/ML_UoW_Coursera | 6ad612d41fe726a591f95ac48e4a8c883fd8b931 | 11c49de9c47378e03fd90ea257be98648c16ca92 | refs/heads/master | 2021-05-30T08:51:09.694825 | 2016-01-10T21:31:14 | 2016-01-10T21:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,437 | r | Part2.R | main <- function(csv_train, csv_test) {
#set path to csv files directory
setwd("~/Desktop/MachineLearningCourse/module2/week2/assignment/part2/R/")
#read CSVs
tr <- read.csv(csv_train)
te <- read.csv(csv_test)
print("++++++++++++++++++++++++++++++++++ SIMPLE REGRESSION ++++++++++++++++... |
d1442b3c7a8bae50d701e245199afe42035a88c4 | ff393a02cbad28b23554d338293f62325b4c993a | /functions.R | cf723f07c63be25132bed39d79ed8fcace007e17 | [] | no_license | Tharnid/DS | 547a4c40d27597b111ec15ec776db0cd973ccf47 | ce3817ac685790679340324090052aae7ca19eaa | refs/heads/master | 2021-01-10T15:15:01.360546 | 2016-02-12T18:12:55 | 2016-02-12T18:12:55 | 50,303,491 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 65 | r | functions.R | # function
f <- function(x) { x + 1 }
# invoking function
f(2)
|
d8888e32a7800fc12685ffd91688bcf7bfcad58c | 184180d341d2928ab7c5a626d94f2a9863726c65 | /issuestests/NAM/inst/testfiles/SPM/SPM_output/log_3950d342bd8d7b480bf0137f7ab82365cc59faba/SPM-test.R | ee544daaf5476dc53f951e5d749ad61d100b79be | [] | no_license | akhikolla/RcppDeepStateTest | f102ddf03a22b0fc05e02239d53405c8977cbc2b | 97e73fe4f8cb0f8e5415f52a2474c8bc322bbbe5 | refs/heads/master | 2023-03-03T12:19:31.725234 | 2021-02-12T21:50:12 | 2021-02-12T21:50:12 | 254,214,504 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,083 | r | SPM-test.R | testlist <- list(blk = c(-9.42479322868495e-139, -2.77880834313929e+218, -2.36203134257835e-109, 1.45149655469103e-51, 2.28216284227782e+209, 8.82377133141316e+78, -4.23622850344875e-216, 752551560228.574, 32.8480477357901, 0.0273134900865026, 6.53337849169343e+86, -1.41326940822168e-285, 8.43309075166444e+303, 2.6... |
dff7a5f0f6af750937849c5cfababd3f30de77d9 | 4cfb61c018de0def8fbb85ab515cae8484c03f11 | /ref_nmds_v3.R | 45cf9196f3cbc027283763eb26981f4fddf8a348 | [] | no_license | tleung2/nmds_phytoPAM | 10238c0074ea2c2aabe643f6beb11251454fe22c | 7aa85eea3ae968a49728c510bde31012524e62e8 | refs/heads/main | 2023-06-04T01:35:24.637848 | 2021-06-21T02:10:17 | 2021-06-21T02:10:17 | 358,148,564 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 28,954 | r | ref_nmds_v3.R |
## LOAD PACKAGES
library(vegan)
library(viridis)
library(NbClust) #for finding optimal clusters
library(cluster) #for computing cluster silhouettes
library(tidyverse)
library(factoextra) #computing heirarchical cluster
library(vegan3d) # For plotting 3D images, autoload vegan package
library(plotly)
library(plot3D)... |
3aae19ab9130d8915b5c14b5238f969455795657 | 3790ae072a11cb72ad894f8540c13ca5f427e0ba | /AssociationRules.R | 97d6fd4418fe39ab56a9f85945b64187b8b091cf | [] | no_license | heekim33/0823 | 0f33f505d2e8ae827a8ae8b5b134348e8d0ff98e | d5fb132dbeb02eab0ea654f83701cdca516144a1 | refs/heads/main | 2023-07-13T05:15:14.741834 | 2021-08-22T12:17:59 | 2021-08-22T12:17:59 | 398,786,496 | 0 | 0 | null | null | null | null | UHC | R | false | false | 1,047 | r | AssociationRules.R | # 패키지 설치 및 로딩
install.packages("arules")
install.packages("arulesViz")
library(arules)
library(arulesViz)
# sales.csv 파일 읽기
# 트랜잭션 클래스 형태의 데이터 파일(Sales.csv) 읽기
trans <- read.transactions(file.choose(), format = "basket", sep=",");
trans
# 데이터 출력
inspect(trans)
# 데이터 현황
itemFrequency(trans, type=... |
bf294c42cfe2843c6195b0544e21475fbbc10c52 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RSiteCatalyst/examples/GetReport.Rd.R | cff95b670f47cb61c676c6a4b8afdb8e386d75a5 | [] | 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 | 214 | r | GetReport.Rd.R | library(RSiteCatalyst)
### Name: GetReport
### Title: Get EnQueued Report by report ID
### Aliases: GetReport
### ** Examples
## Not run:
##D
##D custom_report <- GetReport(12345678)
##D
## End(Not run)
|
18ff02346bf39b905a1cd2f26f911bd4afa6a27a | cc4bec8fcef05144b64bfdfa5fcd76876c1b532a | /Multivariate/midterm/code/.Rproj.user/2E5D35AB/sources/per/t/C92DFE73-contents | bc752ba58e0bce979909a9a1d4484843f5b1365f | [] | no_license | Wentworthliu123/Spring20 | d80c3e21664f39cac94bf4309f181c349f9fa7db | f1175c92d7816b94eab813277dd7782952c9d78b | refs/heads/master | 2021-06-02T07:04:29.128393 | 2020-05-12T06:23:22 | 2020-05-12T06:23:22 | 254,317,841 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 36,933 | C92DFE73-contents | #### Appplied Multivariate Analysis
#### A collection of the R codes used in Bus41912 over the years.
#### Putting together on June 14, 2014 by Ruey S. Tsay
####
"Behrens" <- function(x1,x2){
# The x1 and x2 are two data matrices with xi for population i.
# Test the equal mean vectors.
# Written by Ruey S. Tsay on Apri... | |
b0b53f9f55091762e05df35d57bf82e7db505347 | 36529e0093254e9aa33f02f39d191d6201a2f826 | /PQE-input/stats_decades.R | 3e8a4ce1325519094fa2a13141883b638c1f4396 | [] | no_license | LynnSeo/Sensitivity-Analysis | 09a07d39f5011de3e130166cd1a2a4a6fbc73414 | e8c763c4553aa56cad0ecbce8799d844dfda67fc | refs/heads/master | 2021-01-23T07:34:52.522742 | 2017-06-19T05:17:11 | 2017-06-19T05:17:11 | 86,503,370 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,354 | r | stats_decades.R | #summary of statistical features of time series
load_synthetic_tsPQE <- function(t_catchment='Gingera_synthetic', t_year='70s'){
name_tspqe=str_c('C:/UserData/seol/Sensitivity Analyses/PQE input/',t_catchment,'/',t_catchment,'_ts',t_year,'.csv')
tsPQE=read.zoo(name_tspqe,sep=',',header=TRUE); tsPQE=as.xts(tsPQE... |
2ff2677943c78c36e5ca5c22da0758cc892efc47 | e1e552e57d999ed7055244f82c0d6da9e9395c83 | /cachematrix.R | 20d8fc3a7d1f9da743ed2827edc58cbd5eaad6de | [] | no_license | wftorres/ProgrammingAssignment2 | ae76088770dccbddeeb059c8116cc5e1af51df01 | bf6c4218ed739ac50042e8cd1ca42f07462266a0 | refs/heads/master | 2021-01-25T06:06:06.770091 | 2014-10-26T01:41:22 | 2014-10-26T01:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,796 | r | cachematrix.R | ## Programming assignment - R Programming Oct 2014
## by Fernando Torres
## The MakeCacheMatrix creates a special "matrix" object that can cache its inverse
## that is, calculates the inverse of a matrix sent as a parameter and stores it in memory
## for later use by other functions.
makeCacheMatrix <- function(x = m... |
82da6f48e5f66164fbc621bb519cf26fceb1dcb0 | b56eee2ac6a95d0e0eb9bdbdda40679de795de10 | /microEMAWindowManager/plotUnMappedData.R | af6d63b380ea48a8fb8320db85f6984a918203ca | [] | no_license | adityaponnada/microEMA-Preprocessing | 1c658a46582753c1dae2fd1349a339a34e2868a0 | d254a4fcd8b088399108261994b56c6cfe6b3424 | refs/heads/master | 2020-03-10T14:36:24.369331 | 2018-10-30T16:17:44 | 2018-10-30T16:17:44 | 129,430,763 | 0 | 0 | null | 2018-10-30T16:17:46 | 2018-04-13T16:57:48 | R | UTF-8 | R | false | false | 10,014 | r | plotUnMappedData.R | #### Import libraries
library(psych)
library(ggplot2)
library(plotly)
library(MASS)
library(plyr)
options(digits.secs=3)
AnkleCountsAllPlot <- plot_ly(uEMA01AnkleCounts, x = ~DATE_TIME_ANKLE, y= ~COUNTS_MAGNITUDE_ANKLE, name = "ANKLE_COUNTS",
legendgroup = "ANKLE", type = "bar")%>% lay... |
89601034713300d8e3ac4ebb8a24200dd2d958eb | b6546b222e1e81e962f3ea51c4933700b0b57142 | /share/scientific_packages/Hotelling_Test/scripts/Fig-common-EOFS-First-reduction.R | 6c803017bf74daa015497db4b7d44321d25e8c32 | [] | no_license | jservonnat/C-ESM-EP | c4ae885e3ef91ef7d255c3725af6e91e4ee75d15 | b06405ab51d61615fa03b0e4787306c6387d3d6f | refs/heads/master | 2023-08-09T09:10:37.750316 | 2023-07-26T08:54:32 | 2023-07-26T08:54:32 | 99,813,557 | 3 | 5 | null | 2023-09-08T16:03:14 | 2017-08-09T13:49:49 | Jupyter Notebook | UTF-8 | R | false | false | 4,252 | r | Fig-common-EOFS-First-reduction.R | # -- Launch the multiplot device ---------------------------------------------------------- #
source(paste(main_dir,"scripts/Rtools/filled.contour3.R",sep="/"))
neofpc=neof1
marpc=c(4,2,4,1)
marmap=c(4,5,4,1)
figname = InputTest[[Test]]$output_ceof1_figname
print(figname)
pdf(figname,width=12,height=neofpc*(12/5))
... |
979102abae0dd22c9d09206aa800cf3248869938 | af0c40b56578baf14b8bd06fc841eb0125e47b80 | /run_analysis.R | 0d710d1ef721e73d384513e9dfd10a3295466748 | [] | no_license | lucyb/getting-and-cleaning-data-project | e9726bf742d6e0b8f256d418733b789cd5cc6903 | 746b7b618ef633937022dc8297daf876714dc837 | refs/heads/master | 2021-01-02T08:42:07.878654 | 2017-06-25T22:12:21 | 2017-08-01T22:31:40 | 99,047,144 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,285 | r | run_analysis.R | library(dplyr)
outputdir <- "data"
orgdataset <- "dataset.zip"
temp <- file.path(outputdir, "original")
testfiles <- file.path(temp, 'UCI HAR Dataset', 'test')
trainfiles <- file.path(temp, 'UCI HAR Dataset', 'train')
# Download and extract the dataset
if (!dir.exists(outputdir)) {
dir.create(outputdir)
}
i... |
f4a918b75df3d7c5e63cdeeda10b8921c4ad7049 | a85e536f8cbe2af99fab307509920955bd0fcf0a | /R/xqqmath.R | e2bb867f3c20ed7c323b29739ef078d8a9f1436f | [] | no_license | ProjectMOSAIC/mosaic | 87ea45d46fb50ee1fc7088e42bd35263e3bda45f | a64f2422667bc5f0a65667693fcf86d921ac7696 | refs/heads/master | 2022-12-13T12:19:40.946670 | 2022-12-07T16:52:46 | 2022-12-07T16:52:46 | 3,154,501 | 71 | 27 | null | 2021-02-17T21:52:00 | 2012-01-11T14:58:31 | HTML | UTF-8 | R | false | false | 2,953 | r | xqqmath.R | #' Augmented version of `qqmath`
#'
#'
#' @param x,data,panel,xqqmath,\dots as in [lattice::qqmath()]
#'
#' @return a trellis object
#'
#' @examples
#' x <- rnorm(100)
#' xqqmath( ~ x) # with quartile line
#' xqqmath( ~ x, fitline = TRUE) # with fitted line
#' xqqmath( ~ x, idline = TRUE) # with y... |
0d26d3d369298fa70c1f287575d16c7f647c065c | ab3252066b73be82b71dee740af9ea0528bb4239 | /scripts/write_anomalies_to_db.R | 87c501afd922a1fab278951e53361d04af964862 | [] | no_license | slauricella/datakind_fii_project | f0437f585d2d2c12ffbd4ce758e38c6540a6d921 | e0d35509bd48c0408ec4a5c41f075593fd4a7c13 | refs/heads/master | 2021-01-16T21:03:25.796883 | 2017-08-14T02:52:55 | 2017-08-14T02:52:55 | 100,208,947 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,083 | r | write_anomalies_to_db.R | # Import output of anomaly detection python script (CSV) into Postgres table * with timestamp
library(dplyr)
require(RPostgreSQL)
# User-entered variables
ANOMALY_PATH <- "/Users/shannonlauricella/Documents/datakind/anomalous.csv"
date_in_algo <- '2017-04-01'
measure_in_algo <- 'TotalIncome'
# Database info
db <- ... |
3a625aac785ed92beb9e5fc2e2fe5d0091fe821b | 178752f4e65ce5b218fbb76a00d65d9260d2ee54 | /run_analysis.R | 4768795aab0465cf4f470e76ed90c4ea96b561a5 | [] | no_license | daudk/GettingAndCleaningDataProject | 905cdbedd91441c81ce4456f24b65c987d544f2b | 7e395c6f482ff3a6934f4629b729ff8430e4d360 | refs/heads/master | 2021-01-23T06:06:02.782202 | 2017-06-01T02:39:20 | 2017-06-01T02:39:20 | 93,009,589 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,953 | r | run_analysis.R |
## Import relevant libraries
library(plyr)
library(dplyr)
## Check to see if file already exists before downloading
if(!file.exists("dataset.zip")){
url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20
HAR%20Dataset.zip"
download.file(url,"C:/Users/Daud/Desktop/Coursera R/datase... |
7629da6a6811821947159989d863e0a74e69e52e | d30a668c836c8a4f04c881f1f38d50aef4bb39a3 | /COTSModel_Figures.R | 5d2ba7d9322915345f222951bc814b812d85248e | [] | no_license | sammatthews990/COTS_Model | efe206c2bc2b891102401bad5af16d91ffab7b38 | 1c2dfa82b7d269eb684de6fb1198d67f9f022c83 | refs/heads/master | 2021-01-01T19:46:39.549009 | 2019-09-08T23:32:22 | 2019-09-08T23:32:22 | 98,679,819 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,241 | r | COTSModel_Figures.R | # COTSModel_Figure Creation
b = -0.4/22
yint = 1-b*3
df = data.frame(CCRatio = 1:35, Mortality = c(rep(1,2), yint+b*(3:25), rep(0.6, 10)))
p1 =ggplot(df, aes(x=CCRatio, y=Mortality)) + geom_line(color="coral", size=1.5) +
theme_classic() + scale_y_continuous(limits = c(0,1), expand = c(0,0)) +
sc... |
b6f6bafa2a74ca45cf347465254c7851561c4380 | 92450585184ef442f54bdd066404dad473fc12fa | /Task6-Model.R | dffc813e6745719327e3c07095638123272dbbd3 | [] | no_license | zgamez/DM | 3d63962fa01c95bd9d4bf151c476903dfba48bc1 | 8dc78b49a2a761ce1889ffd23f895a6108b9acc3 | refs/heads/master | 2020-08-01T15:29:48.812312 | 2016-12-04T22:20:05 | 2016-12-04T22:20:05 | 73,572,892 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,227 | r | Task6-Model.R | setwd("/coursera/task6")
#rm(list = ls())
library(caret)
library(randomForest)
library(parallel)
library(doParallel)
library(MLmetrics)
testfile <- read.csv("formodelingB.csv", header = TRUE, sep = ",")
## Cleaning
# Convert classe to factor
testfile$hygiene <- as.factor(testfile$hygiene)
testfile$zip <- as.fact... |
89e99f88e3b5c8fc1c1a998488c03e6848f5cf43 | a906a68e4e9244c2b40b665523f77ce866225ab5 | /04DataAnalysis/AssignmentQ6.R | 30d8b3bfeae264bf78430510e2b802b390350f58 | [] | no_license | lbedon/DataScienceSpecialization | d333bcb630b1f3100149bb9ab91cf08968d5e678 | 3f7a9cb77cb45443c9cf072fa1957ff570502da6 | refs/heads/master | 2021-08-08T21:39:54.370105 | 2017-11-11T09:42:33 | 2017-11-11T09:42:33 | 106,543,504 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,217 | r | AssignmentQ6.R | # Peer-graded Assignment: Course Project 2 Exploratory Data Analysis Question 6
# Compare emissions from motor vehicle sources in Baltimore City with emissions
# from motor vehicle sources in Los Angeles County, California (𝚏𝚒𝚙𝚜 == 𝟶𝟼𝟶𝟹𝟽)
# Which city has seen greater changes over time in motor vehicle emissi... |
36e7d9bf9fc0b75fc2a9bffd032576bf02516552 | 014d031ed37d4847b9ba3a4990d681b11c327373 | /functions week 2.R | a86a549f9938244fbed527e4111ff37a0c8d10b6 | [] | no_license | YuriyMikheev/datasciencecoursera | a094dae46f4c4f19584123e11e36f20955628c5a | f4ac35571354fdd683114113d101dcbddfaf6be9 | refs/heads/master | 2021-05-09T15:43:32.329013 | 2018-02-01T18:23:26 | 2018-02-01T18:23:26 | 119,100,183 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 992 | r | functions week 2.R | pollutantmean <- function(directory, polutant, id = 1:332) {
monitorlist <- paste0(directory,"/",dir(directory)[id])
tab <- data.frame()
for (monitor in monitorlist)
tab <- rbind(tab,read.table(monitor, header = TRUE, sep = ","))
mean(tab[[polutant]],na.rm = TRUE)
}
complete <- function(directory, id ... |
58e6cab18b564aaf18a06a99c7ba26028fae20c9 | d17896bff5eec2f0400c8868a67c34c77c0815b1 | /HW3/IntroCompFinR/R/tangency.portfolio.R | bf8c4f3869d6a6070068adf3a1779f3b9119bac9 | [] | no_license | Saechaoc/CFRM-462 | c80f3c7eb3e07992ed89b90f89a59b67686ab2f9 | 511278d58034c8803ef5e541274823809f66c2e5 | refs/heads/master | 2021-01-20T01:33:48.167522 | 2019-12-15T06:30:30 | 2019-12-15T06:30:30 | 89,296,680 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,764 | r | tangency.portfolio.R | #' @title Compute tangency portfolio
#'
#' @author Eric Zivot
#'
#' @description
#' Compute tangency (maximum Sharpe ratio) portfolio. The portfolio can allow all assets to be
#' shorted or not allow any assets to be shorted.
#'
#' @details
#' The tangency portfolio \samp{t} is the portfolio of risky asset... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.