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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4ce2f028ea218c926292f2a4da5420071af4f54 | 29585dff702209dd446c0ab52ceea046c58e384e | /expectreg/R/expectreg.ls.R | cbd5aa2fc72cb3058abca113a468e86b443a8c73 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,361 | r | expectreg.ls.R | expectreg.ls <-
function (formula, data = NULL, estimate = c("laws", "restricted",
"bundle", "sheets"), smooth = c("schall", "gcv", "cvgrid",
"aic", "bic", "lcurve", "fixed"), lambda = 1, expectiles = NA,
ci = FALSE)
{
smooth = match.arg(smooth)
estimate = match.arg(estimate)
if (!is.na(char... |
6a0ccef30043e0ff1c6a9609210d22eae7a9caac | 75b265e23131ce614640a804d1d7a4f18695bee3 | /man/period_ends.Rd | 747abe904635ea6b8327f8873368c990569bfb92 | [
"MIT"
] | permissive | ppd-dpp/calpr | 0db70d3dc182147fa73de9d7d670f902463f8f0f | 88884e93812d9d0d5a861d8f4c96b8bb6f6a5786 | refs/heads/master | 2022-11-04T13:07:49.311293 | 2020-06-15T16:53:38 | 2020-06-15T16:53:38 | 271,619,398 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 548 | rd | period_ends.Rd | \name{period_ends}
\alias{period_ends}
\title{Period ends}
\description{
End points for calendar periods
}
\usage{
period_ends(x, period, start.mon)
}
\arguments{
\item{x}{A vector of dates.}
\item{period}{One of 'month', 'quarter', or 'year'.}
\item{start.mon}{Starting month of a year, beginning at 1 for Jan... |
def0758566e720f97fe71cf4253ad237b5985c5e | 5db254fa65b50a095f4b44f9346bbb743aa894d1 | /R/method_EM.r | b0c6540961eb1ed09438545fbf5d3bec72bf7ca7 | [] | no_license | cran/nowcasting | 5866a701e83f61b063b337967fd64f75882499a5 | 55e3e19dad1bd6528116422b6fca2b12b4479fe7 | refs/heads/master | 2021-06-25T05:11:10.040964 | 2019-08-01T04:00:02 | 2019-08-01T04:00:02 | 100,689,288 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 27,679 | r | method_EM.r | #' @importFrom magic adiag
remNaNs_spline <-function(X,options){
TT <- dim(X)[1]
N <- dim(X)[2]
k <- options$k
indNaN <- is.na(X)
if(options$method == 1){ # replace all the missing values (método Giannone et al. 2008)
for (i in 1:N){
x = X[,i]
x[indNaN[,i]] = median(x,na.rm = T);
... |
6d42a46c99998e1abf73f918a157618b1e914653 | b6e49b79809de5adc9ade2863db75bc3200b164f | /seurat_object_analysis_v1_and_v2.R | 15584a86fef03cb2f61c3e3dc8df9244501f1395 | [] | no_license | guokai8/2018-Developmental-single-cell-RNA-sequencing | 764b32c3a0c053f20869dd2a5a9064b0ddd486b6 | 3662d349cfedc11ea1da7e6525ec07a0e31666cd | refs/heads/master | 2022-02-24T17:42:25.710686 | 2019-09-17T15:56:24 | 2019-09-17T15:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,511 | r | seurat_object_analysis_v1_and_v2.R | ##### Analyze Seurat Object (or Subclustered Seurat Object) ####
### sections do not necessarily need to be run in order
library(Seurat) ## version 2.3.0. Can still be used with seurat v1, some default settings change
library(dplyr)
#### Inputs for Program ####
input_file <- "path_to_seurat_object.Rdata"
output="~/... |
4a699018c982a33f9854609fad8d4c9c9a7a3309 | afd52451e8845963de4ad1243005834fa0958beb | /sta_r/sta_glm.R | b13566ba37a5050b95aca00a50c5973e8223c017 | [] | no_license | plus4u/R | 7c0d867767ae948b24a15322df11b500abcfd920 | c8c25313567bd8bcf5142a04187a24e0d5ad12d1 | refs/heads/master | 2021-09-19T13:52:40.115595 | 2021-08-11T06:47:22 | 2021-08-11T06:47:22 | 155,179,952 | 1 | 0 | null | null | null | null | UHC | R | false | false | 9,448 | r | sta_glm.R |
getwd()
setwd("C:/Users/beomc/OneDrive/바탕 화면/SPSS_DATA")
data <- read.csv(file = "drama_genre.csv")
# 데이터 필터링
data <- subset(data, genre %in% c("막장드라마", "멜로드라마"))
# factor의 레벨을 3에서 2로 바꾸어 주기 위함줄여주기 위함
data$genre <- as.factor(as.character(data$genre))
# 색 투명도 설정을 위한 alpha 함수를 사용하기 위해 scales 패키지를 설... |
d1606f459e894c68d1d52f8912559ca5afd2d721 | 8511b55f2f66301c434fca6594d9c6df79644419 | /plot2.R | 0619cfc6fcb46a73683718787be3fa1a89e74387 | [] | no_license | hpykala/ExData_Plotting2 | 8a3965f288b407080fc6b0e69ad7860c87f95ea0 | 252d8e0237f77d70843f09b66a8f450e4ab08bf3 | refs/heads/master | 2016-09-14T08:04:51.457790 | 2016-04-25T08:08:00 | 2016-04-25T08:08:00 | 56,834,817 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,077 | r | plot2.R | ##Have total emissions from PM2.5 decreased in the Baltimore City, Maryland (fips == "24510")
##from 1999 to 2008? Use the base plotting system to make a plot answering this question.
library(data.table)
#download data if needed
if(!file.exists("summarySCC_PM25.rds")) {
download.file("https://d396qusza40orc.clou... |
e65b5249b630e052ac00404fe046282e72fe00aa | 3a91fc71b1ecfdda05598d535000444a6808e1fa | /functions/get_sri.R | 0b681d4fe3306b6207f64e475f9a8b391a4d682c | [] | no_license | qwebber/social-issa | bd870201f3266de6092c505f173b58f74b394969 | a98a4eb1d223ecc9acc0684a9a204c91e55f95bf | refs/heads/master | 2023-04-10T11:58:09.840312 | 2023-02-22T17:01:26 | 2023-02-22T17:01:26 | 340,049,482 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,644 | r | get_sri.R | #' Dynamic network
#'
#' @inheritParams hr_network
#'
#' @return Graph strength for each individual.
#' @export
#'
get_sri <- function(DT = NULL, id = NULL, by = NULL) {
if (is.null(DT) | is.null(id)) {
stop('DT, and id must be provided')
}
DT[, {
d <- data.table::dcast(.SD, formula = groupEnd ~ g... |
fe35e171659ee526c185b7718e7b3eb578f6fd59 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rvgtest/examples/plot.ierror.Rd.R | ffd81c5d94446bfd98bfb6c1b8d511ef3a20c734 | [] | 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 | 917 | r | plot.ierror.Rd.R | library(rvgtest)
### Name: plot.rvgt.ierror
### Title: Plot Errors in Inversion Methods
### Aliases: plot.rvgt.ierror
### Keywords: distribution hplot htest
### ** Examples
## Create a table of u-errors for spline interpolation of
## the inverse CDF of the standard normal distribution and
## the beta distribution
a... |
9b5f32e139428591c9000d802b405ea951da0ce2 | 43fd4395e3ed61a40ae4283757a9ae6fadbd6c52 | /R/fitted.uniNmix.R | efa19f9f773885e3d72c1b212df1b59dc08efe18 | [] | no_license | cran/jointNmix | f96d01a741bc466b6ee925263d62e8a65441dfaf | e142b6d98fce3c774e9498160656d42a8b234a46 | refs/heads/master | 2020-09-06T19:31:55.212810 | 2016-11-12T00:38:21 | 2016-11-12T00:38:21 | 73,520,306 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 78 | r | fitted.uniNmix.R | fitted.uniNmix <-
function(object, ...) {
return(list("sp1"=object$fv1))
}
|
14a4d51436cc074a0951cf7452a75cd645c347cf | 52ae69c4fb2943e06e335cbd22490ae5085f6ca3 | /day06.R | fe6ac028f47dc84ac97d791d798f6306579d062d | [] | no_license | kwichmann/AdventOfCode2020 | aa91d06e442a4e88adea4512952ae38a36690ed6 | 4b3fe46e426bcde0603e6ceb931c372503ee8dd1 | refs/heads/main | 2023-02-03T13:07:39.441697 | 2020-12-17T19:46:38 | 2020-12-17T19:46:38 | 318,871,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,060 | r | day06.R | # Make sure to setwd to the right directory
library(readr)
library(stringr)
library(dplyr)
dataString <- read_file("day06.txt")
# Part 1
questionnaires <- str_split(dataString, "\n\n")
questionnaires_some <- questionnaires %>%
sapply(function(q) gsub("\n", "", q))
q_some_df <- as.data.frame(matrix(rep(NA, 26 * ... |
89be4e60890f5fae92501624905860e719f37c9a | 704fb9134e11ff44bbf5393bb4749c9205543f5e | /run_analysis.R | b25546debdbb781b7d93bbf7a1a72e8a22c396e5 | [] | no_license | pavarit/coursera-data-cleaning | 837cc2e2e25ac348e71ccc29d0c455d590a20720 | f82c2b7d796ffecacf10afde8e42f7ba0e4cc350 | refs/heads/master | 2020-05-22T09:05:11.828369 | 2017-03-11T23:53:22 | 2017-03-11T23:53:22 | 84,686,288 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,863 | r | run_analysis.R | ## 1) Merges the training and the test sets to create one data set.
## 2) Extracts only the measurements on the mean and standard deviation for each measurement.
## 3) Uses descriptive activity names to name the activities in the data set
## 4) Appropriately labels the data set with descriptive variable names.
## 5) Fr... |
cdc226f713e19cc09ef4c856a814d3d035ef7cdf | 5e3a624a4c869bf7a03419a71ab6fcf904d69108 | /R/optimizeMbo.R | a8e06fa8e6b0e3af3ba13c804ec2e32433c64166 | [] | no_license | ascheppach/EBO | 20296345296f15c202485dc4c18480cd14404f34 | f7d9d90a935887266d31a16269b664973d3f2e12 | refs/heads/master | 2022-12-24T13:16:22.036546 | 2020-07-16T09:21:32 | 2020-07-16T09:21:32 | 302,585,497 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 569 | r | optimizeMbo.R | optimizeMBO = function(configuration, objNormal, info, funcEvals) {
# create MBOControl and MBOsurrogate (infillcrit + surrogate)
mboControlLearner = createMboControlSurrogate(x = configuration)
# compute mlrMBO
res = configMboFunc(instance = list(objNormal, info),
funcEvals = funcEvals,... |
6d7ff87f28420d5647cb384f09cb9c7c215caca1 | 29e424922b3d0e510736f71314795500e8e99341 | /00a_functions_ml_approach_20180625.R | c4a49a806a8e179125fbde12432982cdff381608 | [] | no_license | holgersr/Bayesian-inference-and-simulation-of-Elo-scores-in-analysis-of-social-behaviour | f9e31801820658500b0f679d16ec40c3991c1b9b | 2a0c67188c8c1be98b7ad65de83590cbd9150022 | refs/heads/master | 2021-09-19T09:20:20.299115 | 2018-06-25T06:41:06 | 2018-06-25T06:41:06 | 95,112,337 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,220 | r | 00a_functions_ml_approach_20180625.R | ## Functions needed to implement the ML approach:
pAfun <- function(EloA, EloB){
1/(1 + exp(EloB - EloA))
}
Elo_pA <- function(EloStart_logk, X, show_k = FALSE){
EloStart <- EloStart_logk[-length(EloStart_logk)]
EloStart <- EloStart - mean(EloStart)
k <- exp(EloStart_logk[length(EloStart_logk)])
if (s... |
85748a1b997fe697ea301c7ca22ef19d5af7532e | 982dcc77db4a58e81527649b33db10014fd2edb3 | /day03/day3.R | 5d513721096cf79a9dab8abb370081f07ac337aa | [] | no_license | jaewon-jun9/R-in-multi | c734aaa1bce11b583a64b2309b852989924e51c4 | acd5f828557b8c54fcfc64a799a80340d3e6a086 | refs/heads/master | 2020-12-03T01:17:14.655310 | 2020-01-01T03:10:51 | 2020-01-01T03:10:51 | 231,172,519 | 1 | 0 | null | 2020-01-01T03:47:20 | 2020-01-01T03:47:19 | null | UTF-8 | R | false | false | 3,044 | r | day3.R | y <- c(0,25,50,75,100)
z <- c(50,50,50,50,50)
y == z
y != z
y > z
y < z
y >= z
y <= z
y == 50 #알아서 복사 ex) 50 50 50 50 50
y > 50
num1 <- 11 #c(11)
num2 <- 3 #c(3)
num1/num2
num1%%num2
num1 %/% num2
#LIST 리스트
lds <- list(1,2,3) #각각 묶음
lds
lds +100 #오류
lds[1] #첫번째 보따리
lds[1]+10 #오류
lds[[1]]+10 #가능
names(lds) <- LETTERS... |
0405e9525b0062293293ae421ccfe01aeac482e4 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-r/tests/testdir_autoGen/runit_complexFilterTest_iris_test_numeric_missing_extra_40.R | 2382248085c4bf1fd5ba12800811d396ce26827c | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | R | false | false | 1,933 | r | runit_complexFilterTest_iris_test_numeric_missing_extra_40.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
##
# Author: Autogenerated on 2013-12-18 17:01:19
# gitHash: 2581a0dfa12a51892283830529a5126ea49f0cb9
# SEED: 2481425483200553751
##
complexFilterTest_iris_test_numeric_missing_extra_40 <- function() {
... |
cbeecfbcdbe25fdebc364e69a83efabdf384caa6 | 73591225035cc34cf9995a857f84e8f991535ae0 | /cachematrix.R | 38242627b1da5b2528503e37c144f3693a0590dd | [] | no_license | HeinrichZiegler/ProgrammingAssignment2 | 984428339d16851a8004292f279e1d748d124236 | 8380f895b589f9d6b3cd602a33993b3f8a6880fb | refs/heads/master | 2022-12-17T02:10:59.248750 | 2020-09-15T18:22:57 | 2020-09-15T18:22:57 | 295,770,090 | 0 | 0 | null | 2020-09-15T15:26:27 | 2020-09-15T15:26:26 | null | UTF-8 | R | false | false | 1,321 | r | cachematrix.R | ## This file provides two R functions to facilitate the caching of the
## inverse matrix or a given matrix
## Assumption: the provided matrix is always valid!
## makeCacheMatrix is a function which creates an object containing the
## matrix and adding the ability to remember the inverse matrix
## it will also allow ... |
b0173b02bb3c0f5932287b29a39f3a9ed36b64a7 | f1bc608c0dd10fba6ec997ab774c17632073933b | /Skeletons/rfe.R | d9d085dde8b2a89567213bdbc92a54a5a83b3337 | [] | no_license | junonforthis/JUSMASTERARBEIT | 9312926099bb8337fcddd384eeaf9a27aa3fec66 | 82c9ecb9867d2c9df1520af987969d8e536af69d | refs/heads/master | 2022-07-22T22:53:54.835339 | 2019-04-25T23:03:49 | 2019-04-25T23:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,342 | r | rfe.R | setwd("D:/")
cal <- readRDS("E:/calfinal.rds")
length(colnames(cal))
sapply(cal,function(x) any(is.na(x)))
# reorder columns of cal to set target variables first
sapply(cal,function(x) any(is.na(x)))
colnames(cal)
# choose numeric X-variables
calx <- colnames(cal)[c(3:30)]
set.seed(7)
num <- as.vector(which(sappl... |
1d5c4aec708100adaf57467c1d06cb182afb7e4f | ebe618be227430b4764203e06ae805b6d0fe0d40 | /plot3.R | 15eb3121ba526ded91eb4177763f965f300e29ff | [] | no_license | goodnick/ExData_Plotting1 | 492ed1cb679b8d14c48d936dd85925300d7a7a6d | bf55d48597d39459e06cabfe009e78af262d64b0 | refs/heads/master | 2021-01-18T05:56:53.539395 | 2016-02-08T03:01:50 | 2016-02-08T03:01:50 | 51,243,178 | 0 | 0 | null | 2016-02-07T10:07:54 | 2016-02-07T10:07:51 | null | UTF-8 | R | false | false | 906 | r | plot3.R | ## source the data loading file if it hasn't been sourced already
if(!exists("readHousePowerConsumptionData", mode="function")) {
source("ReadData.R")
}
## Create plot 3 and create png file
createPlot3File <- function() {
filename <- "plot3.png"
png(filename = filename, bg = "transparent")
generatePlot... |
55e777abe81e0bc6b3fbc36c3a36f331672b859d | 91c6a5300abe4c27e113582d028f5ea7442cd144 | /user_dist_DHMM.R | afe589d315ce91abd017fd639b967a926d135592 | [] | no_license | bw4sz/Nimble | fa66d7e0dfb9ece7ebaeba97be2ac0cc2be45fa5 | 4c27441edb47e88ecd7f27e4532e10b962f78a5b | refs/heads/master | 2021-01-09T20:05:38.785219 | 2016-06-27T22:40:00 | 2016-06-27T22:40:00 | 62,092,944 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,402 | r | user_dist_DHMM.R | ## ----eval = FALSE--------------------------------------------------------
## {
##
## # -------------------------------------------------
## # Parameters:
## # s: survival probability
## # psiV: transitions from vegetative
## # psiF: transitions from flowering
## # psiD: transitions from dormant
## # ----------------... |
479c2797ee2ea53495d46c97afb09a87c818e158 | 6c9ca22438b72e8037abe069397b26002ad6761e | /youbike/1105youbike.R | 1dcd190b0fbdc795e36caad2f8b296feb7ff1d3c | [] | no_license | m0904104/myR | 4a5e72f537838f686b7f8eff56da1db710c97814 | a5c3d27db477966eeb7e65d4eb32e05fc675e2e1 | refs/heads/main | 2023-01-14T01:13:55.975082 | 2020-11-26T10:33:11 | 2020-11-26T10:33:11 | 306,333,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 595 | r | 1105youbike.R | setwd("C:/myR1027/Youbike")
install.packages('jsonlite')
library(jsonlite)
file <- "https://quality.data.gov.tw/dq_download_json.php?nid=123026&md5_url=4d8de527a0bcd8a7b1aeae91120f021d"
download.file(file,"ubikeNTP.json")
jdata <- fromJSON("ubikeNTP.json")
str(jdata)
jdata$sarea
x=table(jdata$sarea)
y=sort(x,decreasing... |
8b582c2280f2b8224432ee0ea688629fe92d1b4b | 347f49f7b0133687424cbd7567bdaef94ef9a02e | /02-Lab exercise - Body Image and Academic Performance of College Students/01_Question1.R | 4be8d71d1f908623825aed4b9a31759710b05a22 | [] | no_license | kayomotunde/probability-and-statistics | 48af600b5f7b320e0daec5b7129c228d2a0c6b91 | efb94675646baf28bafdb0b2896256e6abb2b182 | refs/heads/master | 2022-12-05T01:20:12.682290 | 2020-08-31T16:49:42 | 2020-08-31T16:49:42 | 291,742,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,865 | r | 01_Question1.R | # Question 1
# Is there a relationship between students' college GPAs and their high school GPAs?
# ----
# reflect on question
# Typically, there should be a positive trend and moderate to high strength
# of the relationship between the two variables, as it is expected that
# High School performance is a pre-cursor t... |
a5824b406394ae4aa24b6c6113060ce9e0ed4af0 | f4f588a622c6c93e3261dbf4b90852c5a3833757 | /upload_to_trello.R | 33f3c7d1e52fd6432df7ccb37713bd4e864a025d | [] | no_license | SteveOhh/trello_trade_board | 82e9185c3e4d4cb78c3ce267e9b7353ecc8fa818 | c864b59de9d07f5a2cc568eaaa29b38e29791ae1 | refs/heads/main | 2023-03-04T16:57:12.568411 | 2021-02-04T19:54:35 | 2021-02-04T19:54:35 | 336,013,948 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,628 | r | upload_to_trello.R | require(trelloR)
### get key & secret from https://trello.com/app-key ### use personal Trello account
# Only do this once https://github.com/jchrom/trelloR/issues/32
my_token = get_token(appname = "Trade board project",
key = "30278732032ff952a83401244dd94968",
secret = NULL, ... |
57ed6fb54c9ce904a9d17ce1b3e69b8d4d309f86 | 3f0a9af0e7d37102e6872fed916ddf0b670b0164 | /man/SAVE.controls.Rd | e9f9689a354afd1e4816e2bbdefd774f99909eca | [] | no_license | cran/SAVE | 530468b32e40f5d5031f9b37185a42cbe9cd8dae | c59892f2db42057e6be88aa895673257c7751f66 | refs/heads/master | 2016-09-06T07:51:42.532014 | 2015-03-14T00:00:00 | 2015-03-14T00:00:00 | 17,693,483 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,707 | rd | SAVE.controls.Rd | \name{SAVE.controls}
\alias{SAVE.controls}
\title{ Control parameters for kriging process. }
\description{ Returns a list suitable as the \code{kriging.controls} argument of the \code{SAVE} function.}
\usage{SAVE.controls(lower = NULL, upper = NULL, optim.method = "BFGS", parinit = NULL,...)}
\arguments{
\item{lower}... |
353baa8b9c99a98c90407c591492cb15aa114a85 | 50899f7d432f8604984301a86936f580cab012cd | /analyses/examine_batch_ethnicity_effects_by_gene_wrap_parallelized.R | 0024d18c98e7e682c68a962e62c0a90ad4ae5fb4 | [
"MIT"
] | permissive | Huang-lab/SequenceVariantCallEvaluation | e4476419b1cbdaaf4fbd4eadbcb87c7fd9b0ac15 | 994e52d87f40c781ebe55a80fd6109f8aa9ec7de | refs/heads/master | 2020-04-04T20:18:38.711915 | 2018-12-04T19:53:21 | 2018-12-04T19:53:21 | 156,241,982 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,807 | r | examine_batch_ethnicity_effects_by_gene_wrap_parallelized.R | ##### examine_batch_ethnicity_effects.R #####
# Kuan-lin Huang @ MSSM
# implementation of LMG to find independent contribution of regressors
# library("relaimpo") # couldn't get this to work, seems to require all quantitative variables
library("hier.part")
system("mkdir out")
# take input arguments
args = commandArg... |
6606ba45b4ee4543f88f4cd75c0e8771db390573 | 8d119dec4eee3d38e8a72456b09e2f95002bbf93 | /Bike_SF/pull.R | c5e52d3f991df990de37d7f1f138f75eeeb40c91 | [] | no_license | ksk8/SFbiking | a918470c7abd873d568864c280da94441d76fd4c | 7cd0a8d508b3c0a0281f5f46a15030e45193e670 | refs/heads/master | 2020-04-01T20:27:37.625868 | 2016-07-11T19:22:41 | 2016-07-11T19:22:41 | 63,095,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 104 | r | pull.R | pull <- function(x,y) {x[,if(is.name(substitute(y))) deparse(substitute(y)) else y, drop = FALSE][[1]]}
|
0cc3b2cde1d20e0bc5ba521e1dc0b6aea37f1eba | 62ee1070ede548d33df78210a1aafa0831309dc5 | /global.R | 0239f847071b0cdc1bbb45473ff5bb94bb705e0d | [] | no_license | brianmwangy/Teen-pregnancy-application | fd4666283dab4cf0c0e7185b4ba06e2af3c2bd8f | ed8b8fe357e8ee16b73a36533e1a236377ff657e | refs/heads/main | 2023-01-13T17:32:46.603982 | 2020-11-21T06:16:21 | 2020-11-21T06:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 848 | r | global.R | library(dplyr)
library(readr)
library(zoo)
library(tidyr)
library(rgdal)
library(raster)
#loading national teen pregnancy stats
national<-read_csv("./www/nation.csv")
national$period<-as.yearqtr(national$period,"%Y Q%q")
#loading ward teen pregnancy stats
wardf<-read_csv("./www/wardf2.csv")
wardf$perio... |
6d4a9d9b40580c1f5e4361ad1c6c429c7eaf95c9 | 58f46e3a93ef5369ad8dc73ea3b21db829f1dcac | /tests/test-all.R | fe37b93d3a6f37bc90cfeb9db3902c734d95cf3d | [] | no_license | firebitsbr/sslsaran | 4702023b7eae80a60e95e8021aa7ee67b488e332 | 059dce4fb35e18596642216e05895ca3e18f9e6c | refs/heads/master | 2020-04-07T21:23:27.975802 | 2018-02-20T17:51:43 | 2018-02-20T17:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 41 | r | test-all.R | library(testthat)
test_check("sslsaran")
|
b4c7304abf4b1c8e960bf5b7b9dad3b3aba625eb | f18e1210ca120c9116e356a8549e89e04219dc75 | /tests/by_hand_tests/test_trelliscope.R | 5ba37aa8d5cc00b277e78a8664705b3f066660db | [
"BSD-2-Clause"
] | permissive | EMSL-Computing/ftmsRanalysis | 46c73a727d7c5d5a5320bf97a07e9dac72abd281 | dd3bc3afbf6d1250d1f86e22b936dcc154f4101d | refs/heads/master | 2023-07-21T18:13:26.355313 | 2023-02-09T17:03:09 | 2023-02-09T17:03:09 | 122,233,846 | 14 | 10 | NOASSERTION | 2023-07-11T16:34:15 | 2018-02-20T17:52:18 | R | UTF-8 | R | false | false | 4,837 | r | test_trelliscope.R | ## Tests of creating trelliscope displays with the convenience functions in ftmsRanalysis
library(ftmsRanalysis)
library(trelliscope)
vdbDir <- vdbConn(file.path(tempdir(), "trell_test"), autoYes = TRUE)
data('exampleProcessedPeakData')
##########################################################
## SAMPLE PLOTS
sam... |
9fd435e8320de866c44a3947a51a83e4e9077202 | 747564318a56ac683165b03ee6f1157712c2e4ce | /inst/examples/list_experiments.R | 78e8d5bd92d6155c4e73659821804e3b32250311 | [] | no_license | dataandcrowd/gamar | 626a9758ec58b81db71f3363a77e732cf092eecc | 3e9dd2b61b55816f79c16d152d5de32d6e9ea71d | refs/heads/master | 2023-04-02T18:00:01.423668 | 2021-04-09T14:44:43 | 2021-04-09T14:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 94 | r | list_experiments.R | gaml_file <- system.file("models", "sir.gaml", package = "gamar")
list_experiments(gaml_file)
|
df1980c294cb72c38e496743aad1c58eec9cacba | 3a5fa834091a8fd9d9749fcd6cb2a0bfea46ac62 | /trying_so_hard.R | 147a3899e2bc1c9c6043b577d54f8be33d67a082 | [] | no_license | foundinblank/study1adults | 47100eb05ef9237ef452bb8e6e5497a6a17241e2 | 16239dbdb1a2b88678a072eb398a6d1a025c7d9c | refs/heads/master | 2022-08-03T17:41:14.491830 | 2020-05-23T12:11:23 | 2020-05-23T12:11:23 | 102,015,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,949 | r | trying_so_hard.R | # Run to line 300
monica_y <- monica %>% pull(y_ma5)
rhand_y <- rhand_expanded %>% pull(y)
monica_new <- monica_y[121:2400]
rhand_new <- rhand_y[121:2400]
mlpar <- list(lgM = 120,
radiusspan = 100,
radiussample = 10,
normalize = 2,
rescale = 2,
mi... |
42bada5f61d1b7f0587017bb00a44f42c2f036e8 | 441f9a4ab2fd14bd529dc2edcc12b15495c034fb | /src/eval_shared_pathway_auc.R | 10c67321d9878c05854257b9f04555e7cdf3df65 | [
"MIT"
] | permissive | alorchhota/spice_analysis | 9e6670225c69be7ece92ed9b5f81d1c0659b995b | f66b43f9aa75e4bed416abdaaa5327bc3c27c6f9 | refs/heads/master | 2023-03-22T04:07:41.109076 | 2021-03-11T22:10:46 | 2021-03-11T22:10:46 | 300,128,702 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,168 | r | eval_shared_pathway_auc.R | library(argparser)
library(spice)
args <- arg_parser("program");
args <- add_argument(args, "--net", help="network file (rds)", default="/Users/ashissaha/github/spice_analysis/results/spice_results/gtex_v8/results/Muscle_Skeletal/corrected/AXPVAR/1500/pearson_network.rds")
args <- add_argument(args, "--pathway", help=... |
0af33358309e438be8e1511cadaee92107651510 | 4d07eecae0429dc15066b34fbe512b8ff2ae53ea | /mds/aral/pointplot.R | 6a1880e4a0f8852a5a9b16302231f4148d681669 | [] | no_license | distanceModling/phd-smoothing | 7ff8ba7bace1a7d1fa9e2fcbd4096b82a126c53c | 80305f504865ce6afbc817fff83382678864b11d | refs/heads/master | 2020-12-01T09:31:24.448615 | 2012-03-27T18:35:45 | 2012-03-27T18:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 348 | r | pointplot.R | # load the fitted model data file and look at what happened.
load("aral/aralfit.RData")
pdf(file="../thesis/mds/figs/aral-pp.pdf",width=6,height=3)
par(mfrow=c(1,2),las=1,mgp=c(1.5,0.75,0),mar=c(3,3,2,2),cex.axis=0.5,cex.lab=0.7)
plot(pred.grid,pch=".",xlab="x",ylab="y",asp=1)
plot(pred.grid.mds,pch=".",xlab="x*",... |
23ae3ae9b2e0b92ec844d4b92d7247385a3c6d0a | d97e2169ce9cd893920a54cffa3e754d1e309e6f | /R/gen_coreDataManip.r | 0767953b7b157a3508bb2c246bb0ea52c9111741 | [] | no_license | bpollner/aquap2 | 5ccef0ba4423413e56df77a1d2d83967bffd1d04 | 7f7e2cf84056aad4c8a66f55d099b7bdaa42c0be | refs/heads/master | 2021-07-22T15:07:22.912086 | 2021-05-27T12:50:22 | 2021-05-27T12:50:22 | 30,932,899 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 36,467 | r | gen_coreDataManip.r | #' @title Perform Smoothing and / or m-th Derivative
#' @description Performs a smoothing and / or the calculation of the m-th
#' derivative on the given dataset using the Savitzky-Golay filter.
#' @details The underlying function is \code{\link[signal]{sgolayfilt}}.
#' @param dataset An object of class 'aquap_data" a... |
074697051eac2b3e23737f2360c4a25fdb4d686e | ee77fb8b2c8a4de8aad82de953a462ae9b38668e | /man/update_rating.Rd | 5aef30aee34499d319b0fd183a50a22393fc34d2 | [] | no_license | lazappi/aflelo | 700a281c9eb086887128f3ea968de8d0bbbd87a4 | a5c3d964140fbcd092b13a6672fffd474fb67692 | refs/heads/master | 2021-04-12T12:24:49.305211 | 2018-04-19T11:45:22 | 2018-04-19T11:45:22 | 126,563,142 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 520 | rd | update_rating.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{update_rating}
\alias{update_rating}
\title{Update rating}
\usage{
update_rating(model, team, new_rating)
}
\arguments{
\item{model}{aflelo_model to update}
\item{team}{name of team to update}
\item{new_rating}{new rating valu... |
22b40186010c52e9b99153e8f055081039087d82 | 39e89c03c14590143dc3543b58766ec12ca7432f | /man/pdb.quaternary.Rd | 225c5d15620b0e818fe51fe6fbdf704a355376ad | [] | no_license | jcaledo/ptm_0.1.1 | 65a4733284a3d2e11bfe4a949fb54dfe356b05b8 | ad4f1f04b87a53d6e49ab90d3fe391ec011cced7 | refs/heads/master | 2021-03-25T22:56:30.250750 | 2020-03-27T13:19:31 | 2020-03-27T13:19:31 | 247,651,998 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 877 | rd | pdb.quaternary.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdb_ancillary.R
\name{pdb.quaternary}
\alias{pdb.quaternary}
\title{Protein Subunit Composition}
\usage{
pdb.quaternary(pdb, keepfiles = FALSE)
}
\arguments{
\item{pdb}{the path to the PDB of interest or a 4-letter identifier.}
\item{keepfil... |
38bfcb3222e5b58b2413d6938d347b452ffabb35 | 8ac06e475183e8519f543fce41e72ec0e7226309 | /R/shadePlot.R | d61ec913f638314503abc27ba766d21c5bad6dc7 | [] | no_license | kashenfelter/Dmisc | 0a43b7fbd83c874996501c83f54b2f46ca050af7 | 7e8ed7c1477f67376de6832fa1bfaf20170e5136 | refs/heads/master | 2020-03-13T22:06:00.018345 | 2017-08-21T17:08:19 | 2017-08-21T17:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,035 | r | shadePlot.R |
#' Shade a section of a pdf
#'
#' Plot a pdf and shade a section of it.
#'
#' @param func The density function to be plotted (dnorm, dt, df)
#' @param xlim The x-limits for the plotting region
#' @param ylim The y-limits for the plotting region. If left
#' as NULL then it will automatically use a reasonable ylim... |
3a4b823471088e83557c757758162e2b88cca823 | ed1ace377a08f57aa4f5ba25797861ff67598f7e | /UK/analyse.R | cedf67db7eaf3fafc6c83ff00c857a32a258423d | [] | no_license | haosifan/turnout_rightwingpopulists | a66702dbe3c85f59d1d4512679d93a99e3191fd4 | e8fec2c18f06b0b3ecd86677fb1fb7cc3f73547c | refs/heads/master | 2021-01-21T11:23:15.512271 | 2017-03-01T14:45:21 | 2017-03-01T14:45:21 | 83,562,062 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,478 | r | analyse.R | #############################################
##### Grafiken UK ###########################
#############################################
source("datenaufbereitung.R")
library(ggplot2)
library(ggthemes)
corr_df <- uk_df[uk_df$Election.Year==2015,]
corr_uk1 <- round(cor(corr_df$turnout,corr_df$UKIP, use = "complete.ob... |
fbb3cd931f80f1c68b25b4eba48be7850ade7963 | 9cce02f026cbdb383bed192efdf8ffb03af1234d | /Mapper/Mapper examples 1.R | 83a6c86e30943b56eca53f7e14f3b67514335809 | [
"MIT"
] | permissive | lancelotdacosta/CMP_project | 32669f2ef8029a9d4e75131d48b08b1aab4e6485 | 0eb6befc2aec485a92187be5de76c3cf9876e339 | refs/heads/master | 2020-03-25T02:07:08.612571 | 2018-08-10T14:48:09 | 2018-08-10T14:48:09 | 143,274,534 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,187 | r | Mapper examples 1.R | library(networkD3)
library(TDAmapper)
library(igraph)
First.Example.data = data.frame( x=1:1000, y=sin(1:1000) )
plot(First.Example.data$x,First.Example.data$y)
First.Example.dist = dist(First.Example.data)
First.Example.mapper <- mapper1D(distance_matrix = First.Example.dist,
filter... |
519330bdb3325f7a6c27eb03c7c022e66507446a | d08d401957330f5a5326544c02d53ecfaa1fa6ae | /macro/tests/testthat/test-continuous_step.R | cbd9c4031e557c94bdf436fd1300edfc6f597cdf | [] | no_license | dd-harp/MASH | 103733fa1b0cc0f0f2f4fdeef41b84e33b828349 | 3786b6904a82fc25cd5709df73f195302a9d9b08 | refs/heads/main | 2021-08-11T09:15:46.371074 | 2021-06-08T18:44:48 | 2021-06-08T18:44:48 | 204,227,705 | 0 | 0 | null | 2021-06-08T18:44:49 | 2019-08-25T00:32:06 | C++ | UTF-8 | R | false | false | 4,131 | r | test-continuous_step.R | test_that("individual two state bounce", {
set.seed(32432)
is_enabled <- list(
infect = function(state, time) with(state, disease == "S"),
recover = function(state, time) with(state, disease == "I")
)
when <- list(
infect = function(state, time) rexp(1, 1/50),
recover = function(state, time) rex... |
c63213881e4648b6e61578666aefd4270968e7a4 | de15a984ea7b066a452ad48b01c3b7b6eca2d12d | /scripts/01-data_cleaning-post-strat.R | 35d9661209be64c41b01ad594ed6d04793f8f3d9 | [
"MIT"
] | permissive | Xeon0312/forecasting_us_election | e092f1ccf3362aaf322f0f68d91383b413114149 | 376e7ba5025ae8efb9ca0ef386a2612cdfcbfe73 | refs/heads/forecasting_us_election | 2023-01-03T12:52:18.103725 | 2020-11-04T03:54:19 | 2020-11-04T03:54:19 | 308,555,098 | 0 | 1 | MIT | 2020-11-04T02:53:25 | 2020-10-30T07:25:10 | R | UTF-8 | R | false | false | 10,247 | r | 01-data_cleaning-post-strat.R | #### Preamble ####
# Purpose: Prepare and clean the survey data downloaded from IPUMS
# Author: Boyu Cao
# Data: 22 October 2020
# Contact: boyu.cao@mail.utoronto.ca
# License: MIT
# Pre-requisites:
# - Need to have downloaded the ACS data and saved it to inputs/data
# - Don't forget to gitignore it!
#### Workspace ... |
23c47f62694db63cd76df9ede30edea833574f1c | 74651f98951cbaf136fc2d2d8ad03b6f8bc0f958 | /zi_pi.r | 4d5a96fd82a6d3743124ef8fdc4dd30b99f34bb1 | [] | no_license | Xuyifei-NAU/MyScript | 65de9c1876ac3ed1c30a9be98d58c2ba296c492b | c7e63b661029a16cbe076ea2859942482b6af4d5 | refs/heads/main | 2023-06-26T10:40:41.103806 | 2021-07-23T00:45:16 | 2021-07-23T00:45:16 | 311,651,078 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,959 | r | zi_pi.r | ##定义函数
zi.pi<-function(nodes_bulk, z.bulk, modularity_class, degree){
z.bulk[abs(z.bulk)>0]<-1
module<-which(colnames(nodes_bulk)==modularity_class)
module.max<-max(nodes_bulk[,module])
degree<-which(colnames(nodes_bulk)==degree)
#按照模块将相关矩阵分割
bulk.module<-list(NA)
length(bulk.module)<-module.max
for(i in... |
b1da38b273f4ad7d13a7606e0a1f552bc1494657 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/yorkr/examples/bowlerWicketsAgainstOpposition.Rd.R | 59be0cf55e6299f78e2ca8d9c501d808c6b3a44b | [] | 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 | 376 | r | bowlerWicketsAgainstOpposition.Rd.R | library(yorkr)
### Name: bowlerWicketsAgainstOpposition
### Title: Bowler wickets versus different teams
### Aliases: bowlerWicketsAgainstOpposition
### ** Examples
## Not run:
##D # Get the data frame for RA Jadeja
##D jadeja <- getBowlerWicketDetails(team="India",name="Jadeja",dir=pathToFile)
##D bowlerWicketsAg... |
73735b73816713afe37be15f71fa767bc177360b | 503284431cfffe00693e6b52931c614b235887fb | /QuantStuff.r | baf14857da3dfc9244229fb2b2c583db564cbd4b | [] | no_license | tpopenfoose/quantstuff | 5cb37f4c7b4a8bc148a97d6b173aef9867caaf0b | 031775f639394276882b7557e6dbd6e4fedbe857 | refs/heads/master | 2021-01-13T03:46:55.359239 | 2016-06-30T15:43:49 | 2016-06-30T15:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,849 | r | QuantStuff.r | library('quantmod')
#library('zoo')
#library('xts')
#library('PerformanceAnalytics')
techSector <- c("XLK","AAPL","GOOG") #,"MSFT","VZ","IBM","T","ORCL","QCOM","CSCO","INTC","V","FB","MA","EBAY","EMC","TXN","ACN","HPQ","ADP","YHOO","CRM")
#loadSymbols <- c("XPH","XBI","IHF","IHI","JO","MSFT")
getSymbols(techSector,sr... |
7264d6f7b8a312f0ad0f8052099a877fbaf47440 | 3be7a6917ae3e03701954a4360a6c5b612ddbf32 | /R/nature.R | bfda9e058d3b0a585d6101bdd48c2aff42e29cbb | [
"MIT"
] | permissive | zambujo/editorials | 9fa6abcb86dedea268ef949d7d9d40f44c9c4ba1 | 2f4c8c71e93c5d59748f750324350b814d15a932 | refs/heads/main | 2023-01-25T04:06:51.366937 | 2020-12-09T11:16:57 | 2020-12-09T11:16:57 | 311,373,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,117 | r | nature.R | #' Retrieve selected data from a Nature journal URL
#'
#' @param addr Relative path to page.
#' @param polite_bow An HTTP polite::bow session object.
#' @param csv_path Path to CSV file.
#'
#' @return A tibble with scraped data, if `csv_path` is missing.
#' @family nature scraping function
#' @name get_nature
#' @examp... |
7e4869d1f844482512fa50639c7abb6b720ffed7 | ddb6801f17ad79f09dfccb1a17af980dc432bedc | /usefulFunctions/numGenesChanged.R | f0f5aaeae95b4368166d3d6817d6c1c87dd89cec | [] | no_license | alexsanchezpla/scripts | 49177da789965d71a4bf9453a740482070d37f6b | d833be5653d1aac657379f0e8ef49511d5fa5082 | refs/heads/master | 2023-03-05T02:49:56.718712 | 2023-02-19T11:10:14 | 2023-02-19T11:10:14 | 41,293,582 | 0 | 11 | null | 2016-12-14T11:20:46 | 2015-08-24T09:11:10 | HTML | UTF-8 | R | false | false | 2,098 | r | numGenesChanged.R | #' Given a limma-outputted topTable (TT) it returns the number of up or down regulated genes that woud be returned if the cutoff was set at different values.
#' @param TT A top table object such as produced by the limma package or the UEB pipeline.
#' @param cName Name to the comparison that produced the top Table. Def... |
d2c556c551566fb12ff81d5bbb3daf304b4b0f0b | 0ab0d9377260d2a6f37503fc1de64f1111cbc6b4 | /RProgramming/week4.R | 474380d110d8a24ff68be23ebac59ba50747c5ae | [] | no_license | a-igo/DataAnalysis | 4aaa7df63714431f02d0b8f060be303cb7dbbe1b | 55a7f5f865325fa1a998d4914ee5f3be31a89f94 | refs/heads/master | 2020-04-17T09:17:34.376359 | 2016-04-10T07:53:56 | 2016-04-10T07:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 294 | r | week4.R | outcome <- read.csv('outcome-of-care-measures.csv', colClasses = 'character')
head(outcome)
#Hist of "Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack"
outcome[, 11] <- as.numeric(outcome[, 11])
hist(outcome[, 11])
options(warn = -1)
source('rankall.R')
rankall("heart failure", 10)
|
c9a055bd728ef74eaa50a95047d110c1336ca1be | 9fe31d58c07d8d667e08e41c0213d84d4587e721 | /viz_stacked_bar.R | 2e92637e2110274a80d423db1d4e33c9ec62f7c8 | [] | no_license | Ecboxer/roi_sports | b8fe46f3c05052d01fd87080e79e5e8304e02766 | 6cc8c506b00a5d82df90f7f92d1bdb1f86730eb2 | refs/heads/master | 2020-04-26T11:28:44.211328 | 2019-04-09T16:42:57 | 2019-04-09T16:42:57 | 173,517,846 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,972 | r | viz_stacked_bar.R | library(tidyverse)
library(Lahman)
library(baseballr)
library(plotly)
df_action <- read_csv('df_action.csv')
df_action %>% filter(Sport == 'Baseball')
action_dur <- df_action %>% filter(Sport == 'Baseball') %>%
select(action_duration)
action_min <- action_dur$action_duration / 60
df_mlb <- read_csv('mlb_misc.csv')... |
b8d5267bf4bef3e15a0ea92552ffce00e6ea6f43 | 7c4ecb3b2102146d5dfbca7dcd11500e9536c42f | /cachematrix.R | 756010593b1db86aae1e644597be0a8130ca6bf6 | [] | no_license | vldmr-voznyuk/ProgrammingAssignment2 | 08e979def662a059cf5b3d5f34bc88293334fe72 | 3f1fb015d27b02f56e85a861555882b882cd80e2 | refs/heads/master | 2020-09-07T17:11:06.876694 | 2019-11-12T07:22:46 | 2019-11-12T07:22:46 | 220,856,151 | 0 | 0 | null | 2019-11-10T21:51:52 | 2019-11-10T21:51:51 | null | UTF-8 | R | false | false | 2,062 | r | cachematrix.R |
# The below functions are created to avoid costly re-computing of the inverse
# of a matrix.
# Function "makeCacheMatrix" creates a list of funcions to:
# 1.set the value of the matrix
# 2.get the value of the matrix
# 3.set the value of the inverse matrix (uses a built-in solve() function)
# 4.get the value of the... |
531ba296bf37ea9aee9bf266709e91568e2cff0e | b50c76b10eeae84c3e972deab7effdecb22ebb43 | /02_ dados/02_ RFB/scripts/function extract table unid.r | 04ad332a5d5a5f3a2595d6b8cd09559a0580aa60 | [
"MIT"
] | permissive | matth3us/tccENAP | 9002cfcd3825e989a235ba5190d9112ebd9d46ca | bd3b607dee01ea82cef2a45b48815dd147ff5113 | refs/heads/master | 2022-05-25T17:45:34.538088 | 2020-04-26T22:33:26 | 2020-04-26T22:33:26 | 176,340,283 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 322 | r | function extract table unid.r | tabularUnid <- function(url){
remDr$navigate(url)
df <- readHTMLTable(htmlParse(remDr$getPageSource()[[1]], encoding = 'UTF-8')) [[1]] %>%
spread(key = V1, value = V2) %>%
select(Unidade, Estado, Cidade, Bairro, CEP, Logradouro, Atendimento, Titular, 'Telefone(s)', Observações)
return(df)
}
|
7053fad7d8ab5536dd3b63560a3b5cbf786ab2a7 | a94fafa0e1ba5fefc8c711db78468baca7179374 | /Code/Data Analysis/main_doube_stance_analysis.R | 2f5fc9f5c833960e25dc54e537a1b2b9b31d4138 | [] | no_license | CatStrain/Cat_skin | 1c76fe7870e1ace2e1f9612fd166ac5135771785 | 9b6823cf68467a87d3af39b3e1cb0709dd432815 | refs/heads/master | 2023-04-10T11:16:52.024737 | 2021-02-25T04:01:43 | 2021-02-25T04:01:43 | 273,569,581 | 1 | 2 | null | 2021-04-26T00:33:50 | 2020-06-19T19:16:47 | C++ | UTF-8 | R | false | false | 5,167 | r | main_doube_stance_analysis.R | #Initialization:
rm(list = ls()); # clear workspace variables
cat("\014") # clear window
library(rgl)
library(class)
library(ggplot2)
library(caret) # "R package that provides general interface to +- 150 ML alg"
library("lattice")
#######
# loading RAW... |
90de2cb61190f6f53e9471ba84984578f2f038cb | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /codeSchool/tryR/chapter-2.R | fd85ab4119ac4d5cdc911bf87980880d636b3601 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | R | false | false | 10,280 | r | chapter-2.R | #################
# Chapter-2 #
#################
# - basics of manipulating vectors - creating and accessing them, doing math with them, and making sequences.
# - how to make bar plots and scatter plots with vectors.
# - how R treats vectors where one or more values are not available
# Data structures in R
# All R... |
a2014f7d98be626d2fb489735a9f8416d4dd4227 | dec53b9fae27d2e2f71b937f6e77a7d8c82b7aec | /Biomod2_singleSpecies.R | dc2ada09bc38819f4bdc2ebf5c905758ab753c32 | [] | no_license | npcastaneda/_playground | 6219eb7b09e81a12a866e7ca4cf213aa77a03643 | 25e7df35e47193df29e5a1208a0ebf00a07313e5 | refs/heads/master | 2021-01-22T06:36:57.914690 | 2014-10-03T09:03:53 | 2014-10-03T09:03:53 | 21,495,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,020 | r | Biomod2_singleSpecies.R | ##################################################
# SINGLE-SPECIES DISTRIBUTION MODELING WITH BIOMOD2
##################################################
# set dir
dir <- "D:/CWR/Biomod2/Test.apr.24.2013"
setwd(dir)
# load the library
library(biomod2)
# load our species data
DataSpecies <- read.csv(system.file("exter... |
a4f42c3e88a90125107735e7489795ea90cb3fba | 364dcb95aac6dff3f8548768dc99bba945ec81b6 | /R/plot.R | 4494b774bc682546f526d3a7e5e7b08834969a56 | [
"MIT"
] | permissive | tidyverse/ggplot2 | 3ef62b72861c246b13ffc2d95678079984fe65c0 | c76b9aeda648e9b6022b7169021e854c3d3890cb | refs/heads/main | 2023-08-31T07:08:20.846510 | 2023-08-17T16:19:44 | 2023-08-17T16:19:44 | 19,438 | 4,632 | 1,971 | NOASSERTION | 2023-09-14T13:25:40 | 2008-05-25T01:21:32 | R | UTF-8 | R | false | false | 7,531 | r | plot.R | #' Create a new ggplot
#'
#' `ggplot()` initializes a ggplot object. It can be used to
#' declare the input data frame for a graphic and to specify the
#' set of plot aesthetics intended to be common throughout all
#' subsequent layers unless specifically overridden.
#'
#' `ggplot()` is used to construct the initial pl... |
0b0446adc37e55ef5cf7064ac13a5fd1928e0a16 | 77e9997f1d751ec975c98d4a01b29cf512c47688 | /factors.R | adeb178395b6ab99e97db88391aa10b47882352c | [] | no_license | Khan996/Hello-R | e52ef1ee3f0a73ed608f079299a58f4ed3ff5a57 | acb2f22ca68d5a72b6c1647356692f1368133135 | refs/heads/main | 2023-08-27T13:54:03.935191 | 2021-10-27T14:34:49 | 2021-10-27T14:34:49 | 410,268,353 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 621 | r | factors.R | x <- factor(c("Yes", "Yes", "No", "No", "Yes"))
x
table(x)
unclass(x)
z <- factor(c("Punab", "KPk", "KPk", "Sindh"))
z
unclass(z)
c <- factor(c("Yes","Yes","No","No", "Yes"),
levels = c("Yes", "No"))
c
weeks <- factor(c("Monday","Tuesday","Saturday",
"Wednesday","Friday", "Thursday",
... |
0dd5f225f76f76511bf9b6521837c15d277bbc8c | c4ca20a12315b278cda1875867d399b15adc4337 | /Analysis.R | 48ceec23ad46f7fecc9f39fc9afc544438cae6ba | [] | no_license | StefanoAllesina/stima_nepo | 167fca5420c1da01154a11f6a6161bb110a032cd | 87caaeba0b05a7e0606f20e8b840323b57599f82 | refs/heads/master | 2021-01-18T17:57:37.537850 | 2016-09-26T14:37:37 | 2016-09-26T14:37:37 | 69,259,339 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 746 | r | Analysis.R | library(dplyr)
# Read names
names <- read.csv("ITA-Names.csv", stringsAsFactors = FALSE)
# How many unique names in a sample of x academics?
for_random <- matrix(0, 1000, nrow(names))
for (i in 1:nrow(for_random)) for_random[i,] <- cumsum(!duplicated(sample(names$Last)))
# Read the input
sectors <- read.csv("Input.cs... |
2f1a2c8503137990f8dd717f3677308cacfd2f6f | 11641bb10056da1bf416315b255cb9326553d667 | /R/rmd2ipynb.R | fcebc457cdbb3c8e2a4ae8be2af1ccaef490405e | [
"MIT"
] | permissive | jullybobble/rmd2ipynb | ee655d8db2f3a85ec3df92ecd7ad82e6917bc79f | 14b2cc494b68eeece21df4ccb6753052983ab33d | refs/heads/master | 2023-03-06T12:01:51.897302 | 2021-02-19T18:06:56 | 2021-02-19T18:06:56 | 336,350,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,927 | r | rmd2ipynb.R | #' Convert an RMarkdown HTML notebook to an IPython (or Jupyter) notebook.
#'
#' Note that you must pass the HTML file with extension `.nb.html` that is rendered
#' automatically for RMarkdown documents with output with `html_notebook` output.
#' Passing the RMarkdown document directly will fail.
#'
#' @param html_note... |
9c9dfd69a2299dfa4f4dee7ff426328af084439c | 7ab0b6d8bad7e7824528d1f05c10792759cabab1 | /R/get-scene.R | 430eacf2998b32e19f8187946380cc31c3500e43 | [] | permissive | tbradley1013/dundermifflin | a4711e3cd02d494885a30a34ddca877f04cb2ff9 | 691045dbfe6ab526caa4db4240ea378f81f5262d | refs/heads/master | 2020-05-01T06:33:37.546458 | 2020-02-27T13:18:15 | 2020-02-27T13:18:15 | 177,332,858 | 20 | 1 | MIT | 2020-02-04T14:45:54 | 2019-03-23T19:42:59 | R | UTF-8 | R | false | false | 2,421 | r | get-scene.R | # Get Scene
#' Get a random scene dialog from the Office
#'
#' @examples
#'
#' \dontrun{random_scene()}
#'
#' @export
random_scene <- function(){
ep_n_scene <- dundermifflin::ep_n_scene
office_quotes <- dundermifflin::office_quotes
season <- sample(c(1:4, 6:9), 1)
episode <- sample(ep_n_scene$episode[ep_n_scen... |
6fbabf808672411b693c059201a82aa7c5f48fa4 | edf2d3864db8751074133b2c66a7e7995a960c6b | /man/MCNearestMeanClassifier.Rd | 5efbeb3f5d38e471f1a89472e9a255de9f8f89ae | [] | no_license | jkrijthe/RSSL | 78a565b587388941ba1c8ad8af3179bfb18091bb | 344e91fce7a1e209e57d4d7f2e35438015f1d08a | refs/heads/master | 2023-04-03T12:12:26.960320 | 2023-03-13T19:21:31 | 2023-03-13T19:21:31 | 7,248,018 | 65 | 24 | null | 2023-03-28T06:46:23 | 2012-12-19T21:55:39 | R | UTF-8 | R | false | true | 2,611 | rd | MCNearestMeanClassifier.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MCNearestMeanClassifier.R
\name{MCNearestMeanClassifier}
\alias{MCNearestMeanClassifier}
\title{Moment Constrained Semi-supervised Nearest Mean Classifier}
\usage{
MCNearestMeanClassifier(X, y, X_u, update_sigma = FALSE, prior = NULL,
x_cen... |
9b66537874dbd64f89f0948955119b02e5a3980f | f43ff1e09138649558c2e90a75bd2d4f3cbbdbb6 | /source/Windows/R-Portable-Win/library/plotly/examples/shiny/proxy_relayout/app.R | 8f4da760fdffa1cf9b9f5930edafdc81402bf816 | [
"MIT",
"CC-BY-3.0",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | romanhaa/Cerebro | 5b2d9371403c52f60341894f84cd0f6a006cc930 | 946ed178c986027d60af6013e63d1fc51ae8b371 | refs/heads/master | 2022-12-02T15:49:57.705873 | 2021-11-20T11:47:12 | 2021-11-21T17:09:37 | 164,686,297 | 87 | 23 | MIT | 2022-11-10T18:21:44 | 2019-01-08T16:09:59 | HTML | UTF-8 | R | false | false | 1,317 | r | app.R | library(shiny)
library(plotly)
ui <- fluidPage(
plotlyOutput("plot")
)
server <- function(input, output, session) {
p <- ggplot(txhousing) +
geom_line(aes(date, median, group = city))
output$plot <- renderPlotly({
ggplotly(p, dynamicTicks = TRUE) %>%
rangeslider()
})
observeEvent(ev... |
4b0a4ce981c0b9876c1b29689bd219cb04c50cc8 | 49373eee9ed92cbe9db5229309d591b0a8d54b27 | /R/app_server.R | aa4fe0e2e4573e65fca2452c7ee08a58d7e19004 | [
"MIT"
] | permissive | cparsania/FungiExpresZ | 263520cf9c4f02b6d3110a9e73759aff5722631f | 8a18f17feedade5ecf4e9a4fe995530998f3b527 | refs/heads/master | 2023-08-24T17:38:06.221566 | 2023-07-21T12:47:58 | 2023-07-21T12:47:58 | 212,790,225 | 12 | 0 | NOASSERTION | 2023-05-26T01:29:03 | 2019-10-04T10:30:38 | R | UTF-8 | R | false | false | 159,219 | r | app_server.R |
#' app server
#'
#' @param input session input
#' @param output session output
#' @param session session
#' @importFrom dplyr %>%
#' @importFrom dplyr add_count
#' @importFrom dplyr add_row
#' @importFrom dplyr add_rownames
#' @importFrom dplyr add_tally
#' @importFrom dplyr all_vars
#' @importFrom dplyr an... |
0b2d4717d566a4f4aa87f43062c552089b41bc2c | 471b0bb52ba7fce30bbdf908362646ea352fddfa | /plot3.R | 548c2fefea048a801e06f169a5c06948d84ee013 | [] | no_license | ShankerGCEO/ExploratoryDataCourseProject1 | 32958c768ab60b8f7a84a31bdc5b93267ca9ec57 | f48a172c9771eedd24b4bfa91048bf59ffa40409 | refs/heads/master | 2021-01-23T19:44:14.052094 | 2014-07-13T15:49:14 | 2014-07-13T15:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 838 | r | plot3.R | setwd("V:/Data Analytics/RPractice/coursera")
a<-read.table("household_power_consumption.txt",sep=";",heade=T,na.strings = c("?"))
a[,"Date"]<-as.Date(a$Date,format="%d/%m/%Y")
a1<-a[a[,"Date"]=="2007-02-01"|a[,"Date"]== "2007-02-02",]
a1$DateTime<-strptime(do.call(paste, c(a1[c("Date", "Time")], sep = " ")),format="%Y... |
0c984732ae8f019a94f9c4e2ae962d58777c9258 | 9420cae72566bc3881ddadac1728f1b75c967d35 | /man/deweather-package.Rd | acafec89a35b3f243ce9e240f51e9289f5732fd6 | [] | no_license | davidcarslaw/deweather | 6b9482c81914a4a0d9e18a528f770b2b7f7ae76d | 12d5a11f70223f8c528575274929f721162642e0 | refs/heads/master | 2023-08-27T16:47:03.618721 | 2023-08-07T15:10:58 | 2023-08-07T15:10:58 | 30,747,167 | 29 | 9 | null | 2023-07-20T06:28:23 | 2015-02-13T08:22:40 | R | UTF-8 | R | false | true | 903 | rd | deweather-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deweather-package.R
\docType{package}
\name{deweather-package}
\alias{deweather}
\alias{deweather-package}
\title{deweather: Remove the influence of weather on air quality data}
\description{
\if{html}{\figure{logo.png}{options: style='float:... |
18f2c628782172c4ea434ceeb06cea89889b0a57 | e6eae169a196ee2a9e71e54620bde8f145a73fa7 | /scale.R | ae3fa9670c88ee2fe7254025bda0c65d6e14dfc1 | [] | no_license | rhesus123/rcns_scripts | 1871dad8b09a5eea79a876023fd77bf788787f5a | 5e351aaf5f52c5278018e360c19d1b2381e065a0 | refs/heads/master | 2020-04-27T07:40:49.166066 | 2019-03-05T10:19:53 | 2019-03-05T10:19:53 | 174,143,960 | 0 | 0 | null | 2019-03-06T12:46:53 | 2019-03-06T12:46:52 | null | UTF-8 | R | false | false | 424 | r | scale.R |
for(i in list.files(pattern = "exp.+tsv")){
data <- read.table(i, header = T, check.names = F, sep = "\t")
keep <- grep("-", data[,1], invert = T)
data <- data[keep,]
for(col in 2:ncol(data)){
data[, col] <- floor(data[, col] / mean(data[, col]) * 1000)
}
data <- data[rowSums(data[,2:ncol(data)]) > 50,]
write... |
5a1b1363c742ab3a4a601071be041b207b2a7d59 | a1e2905336de2218b7198456ccc18c4c5a774e79 | /man/SimulateSMD.Rd | ca9076815317cfdb4548276dd19b2a2327b3f483 | [] | no_license | cran/metaforest | c07e7e5b8033293a4faddc275598cdd2bbf302c6 | 75bd2037e1a6bb2019a664d9030b5bb80519d12f | refs/heads/master | 2022-04-01T21:51:43.638562 | 2020-01-08T03:50:02 | 2020-01-08T03:50:02 | 102,970,968 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 3,277 | rd | SimulateSMD.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SimulateSMD.R
\name{SimulateSMD}
\alias{SimulateSMD}
\title{Simulates a meta-analytic dataset}
\usage{
SimulateSMD(k_train = 20, k_test = 100, mean_n = 40, es = 0.5,
tau2 = 0.04, moderators = 5, distribution = "normal", model = es
... |
efa42aed320921ee2c1b519540c538199e5778b8 | 99a695f64f28d9da2981e3d8447b5b6a287d69d0 | /Plot3.R | 8393dfad66656b2c6bd61241ada0c280c746f12e | [] | no_license | JimCallahanOrlando/ExData_Plotting2 | 5ce37891809a7aa36ae076d18034449e01997871 | 50b4c3267665e8d1cd42fc95410fd9a855238592 | refs/heads/master | 2020-04-21T09:02:43.874118 | 2015-09-23T18:55:52 | 2015-09-23T18:55:52 | 41,051,321 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,711 | r | Plot3.R | # Plot3.R
# PURPOSE: Load EPA Air Pollution Data files into R AND draw plot 3
# Set Directory to project directory for plots
setwd("~/GitHub/ExData_Plotting2/")
getwd()
## This first line will likely take a few seconds. Be patient!
NEI <- readRDS(".data/summarySCC_PM25.rds")
SCC <- readRDS(".data/Source_Classificati... |
201812d72ad6a6c1b4c75dc0d15cea4cb92deddf | 1ce5a3554f494371e909ddfd18f3463168522afd | /Week1_assignment_project_1/plot1.R | 315c63679d2a32f05aec95bf4ab4af7e69274000 | [] | no_license | SriNithin965/ExData_Plotting1 | 336ac77e88c3508c0bf8d6afb018731a718d295c | c510c84f15d9935b8084044b09684a61440aaf9f | refs/heads/master | 2022-06-21T07:43:27.197004 | 2020-05-01T06:14:15 | 2020-05-01T06:14:15 | 260,389,729 | 0 | 0 | null | 2020-05-01T05:53:37 | 2020-05-01T05:53:37 | null | UTF-8 | R | false | false | 451 | r | plot1.R | library(data.table)
library(dplyr)
library(lubridate)
data<-fread("household_power_consumption.txt",na.strings="?")
data[, dateTime := as.POSIXct(paste(Date, Time), format = "%d/%m/%Y %H:%M:%S")]
data <- data[(dateTime >= "2007-02-01") & (dateTime < "2007-02-03")]
png("plot1.png",width=480,height=480)
with(data,hist(da... |
b49b6ebc0518a2254d96b42312da75d334261708 | 90570592e0b39ed04999798d6a2b294762004838 | /data/Rate_1.data.R | 6fa31caaa89964816e3fac013e07fa6a492b5e85 | [] | no_license | wmmurrah/cognitivemodeling | d7fa6d081ee16b4c45642e807f495345c7926fa1 | 38e98cabdfaa3f659f821e2fdb27396e49d16f84 | refs/heads/master | 2021-07-12T06:05:07.816085 | 2020-10-11T23:01:54 | 2020-10-11T23:01:54 | 210,068,736 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 68 | r | Rate_1.data.R | k <- 50
n <- 100
# beta_prior_shape1 <- 1
# beta_prior_shape2 <- 1
|
183914d55926fc95b56f44981f35b17c7ae52393 | 0053e50cff6a87c3190dc00fbeb4b931b53a162c | /server.R | bedc842ec8ccb94c1399bd9d83ff3f0104bfe897 | [] | no_license | flow-r/flow_creator | 6eec0373cdb951e05d534ea581f1706b164de57e | b7f3d7a3693242768f9f9e54756badff5f7d4a8f | refs/heads/master | 2021-01-10T11:41:42.571883 | 2015-11-25T02:04:51 | 2015-11-25T02:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,632 | r | server.R |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
library(gplots)
require(reshape2)
library(flowr)
source("funcs2.R")
as.c=as.character
#source("~/Dropbox/public/github_flow/R/plot-funcs.R")
## h... |
a6c6b0e3bb220ec3fd4179a12f4f183f558ee305 | f1000eab041e19d6194b84a11d24297115332dda | /man/add.zeros.noCount.Rd | fcbbdf3533846312ec92d6bde8b551fddacc2ec3 | [] | no_license | pointblue/RMN.functions | 902a1a41e0463bf871f2eaacb321622a69f6f77c | ef89702f869ea3a9b338dccc0c7f520b498bac8c | refs/heads/master | 2020-09-22T12:57:28.781442 | 2020-04-10T01:10:14 | 2020-04-10T01:10:14 | 225,205,393 | 0 | 1 | null | 2020-01-25T18:49:16 | 2019-12-01T18:06:43 | R | UTF-8 | R | false | true | 514 | rd | add.zeros.noCount.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.zeros.noCount.r
\name{add.zeros.noCount}
\alias{add.zeros.noCount}
\title{Adds zeros to dataframe for statistical analysis}
\usage{
add.zeros.noCount(pc)
}
\arguments{
\item{df}{A data frame object}
}
\value{
A data frame
}
\description{
... |
41ef464fd158f393e4552ba8df901cfb1e8c32c6 | 19526246d42b3fd8fdf67750b57909e6e6a99114 | /man/rmspfc.Rd | 3647a00d08c773a5e70852134485ce1d1eb8dc6a | [] | no_license | cran/nlirms | 3b864e5b6a54bd39bf9a0530ef6fe40fd8776f79 | 4c4e32251c750735ae29a5a2eaf88eddf6b0e1d0 | refs/heads/master | 2020-03-10T13:05:38.733788 | 2018-04-13T10:16:48 | 2018-04-13T10:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,975 | rd | rmspfc.Rd | \name{rmspfc}
\alias{rmspfc}
\alias{rmspfc}
\title{Rate-making system based on the posteriori freuency component}
\usage{
rmspfc(time = 5, claim = 5, fmu = .2, fsigma = 2, fnu = 1,
family = "NO", round = 2, size = 8, padlength = 4, padwidth = 2,
...)
}
\arguments{
\item{time}{time period to designing of r... |
5dc21cd3083b622047f5a4a5dcdfe1a31ab857bc | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/pvar/man/ChangePoints.Rd | 9b3399e71ed20c633e1e2ad28085184547bc46f7 | [] | 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 | 591 | rd | ChangePoints.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{ChangePoints}
\alias{ChangePoints}
\title{Change Points of a \code{numeric} vector}
\usage{
ChangePoints(x)
}
\arguments{
\item{x}{\code{numeric} vector.}
}
\value{
The vector of index of change points.
}
\description{
Fin... |
6b856fa609e048152ac1a2f8347f3ffbde8b0273 | 4ba396a905823ed536d62bfaa45aafe6dc6b2715 | /man/loadHMM.Rd | 38d330852ba97bb0321bf34fea15ec878e0d3efe | [] | no_license | msesia/snpknock | 2570aa5c9f0c4af9d0dc4953a3f9f51a65df65d9 | f0d027b4891fa9a0ec2a541c231fb80a8dbbabc8 | refs/heads/master | 2020-05-18T14:13:26.987921 | 2019-11-07T02:22:08 | 2019-11-07T02:46:05 | 184,463,949 | 2 | 2 | null | null | null | null | UTF-8 | R | false | true | 2,533 | rd | loadHMM.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fastphase.R
\name{loadHMM}
\alias{loadHMM}
\title{Load HMM parameters fitted by fastPHASE}
\usage{
loadHMM(r_file, alpha_file, theta_file, char_file, compact = TRUE,
phased = FALSE)
}
\arguments{
\item{r_file}{a string with the path of the ... |
967336c14ce76b8209d8321ba77875147cd32409 | fe7a611013804f9ba61a53816ec3e60b96491547 | /e_practice in text mining_w4/datacamp_online practice.R | 943d7c63b7490cddb83122641e8dfc2da635868d | [] | no_license | cafepeng/R-course-2018 | 9dba30ad1a073dfa64bbd111e6bf3bbd658fd7e2 | 87c46eeb79c8cbc02f6bc9bd0513626f645751eb | refs/heads/master | 2021-01-24T12:12:18.482070 | 2018-04-25T14:22:31 | 2018-04-25T14:22:31 | 123,124,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,365 | r | datacamp_online practice.R | ##learn from datacamp (text mining Bag of Words)
#need package qdap
#install.packages("qdap")
library(qdap)
new_Text<-"DataCamp is the first online learning platform that focuses on building the best learning experience specifically for Data Science. We have offices in Boston and Belgium and to date, we trained over... |
43be123b9544b3730089223e2627a2c5895c5adc | b61458d49215f3208eaa855a04f6ee730f68733d | /man/trackNames.Rd | 46025f7cd690e6b543803acf506177e554deae05 | [] | no_license | pneuvial/c3co | 2c22de1990f29755cfb0b8547f65c320d6316cf8 | c20d9de94476bc7a6f4f405d04437ed6876fd088 | refs/heads/master | 2021-08-16T17:13:10.765020 | 2019-03-03T16:10:54 | 2019-03-03T16:10:54 | 59,739,091 | 3 | 2 | null | null | null | null | UTF-8 | R | false | true | 249 | rd | trackNames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/segmentData.R
\name{trackNames}
\alias{trackNames}
\title{Get track names}
\usage{
trackNames(x)
}
\arguments{
\item{x}{A segmentation.}
}
\description{
Get track names
}
|
c1da95bbbca55f7da9143284d77b92e188a889ba | 5a9d2ee3ee9e1f5153108ba5c9a9ffbd7647ee1d | /run_analysis.R | eda7c3a471b1756fb6afb8c2e3e0f333a92168de | [] | no_license | mattsedlar/GetData_CourseProject | 7af69806706285c567af028d9cd7f7f6ecbdb53e | 99e2a68cd54b5aa18c8001e12a9ae765b5e3d2eb | refs/heads/master | 2021-01-19T06:36:41.690603 | 2015-07-23T17:29:57 | 2015-07-23T17:29:57 | 39,090,997 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,475 | r | run_analysis.R | library(dplyr)
source("acquire_data.R")
# label and merge an individual dataset.
label_n_merge <- function(df, lbl, subj) {
names(df) <- make.names(features[,2], unique=TRUE)
df <- cbind(lbl,df)
colnames(df)[1] <- "Activities"
df <- cbind(subj,df)
colnames(df)[1] <- "Subjects"
df
}
test_df <- label_n_m... |
39d7dc5ad430d20a6057ad6a3661a572b8d7df01 | 1e39fc5bc9e4f53f63655269d203fd896caeeb00 | /R/write.transects.R | b1e10928a18dd55d263788acd32233eb4d2d8459 | [] | no_license | m-murchie/dht-bootstrap | 0405c921dd2e5dffee3b32e5123fe7eeb672ebb8 | 9b64c13593b63cfbfbea6756c756b0ea8177fb64 | refs/heads/master | 2020-04-05T23:14:16.058224 | 2016-07-07T15:35:08 | 2016-07-07T15:35:08 | 60,344,043 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,090 | r | write.transects.R | ## taken from DL Miller, spatlaugh repo
# write out a transect as a shapefile
# this is a completely Byzantine process
library(sp)
library(rgdal)
# transect should have the following columns:
# x,y x,y coordinates of **endpoints**
# leg survey leg associated
# file filename (well actually folder... |
eb4c5e181cd29d04758beeb26ea7063303138dce | 86535689d126480c5982255305c1de70deb8e09c | /air_pollution_stunting/scripts/nfhs_data_analysis.R | f4c94ba261f33cadaf9645510c9b5683b66d6229 | [] | no_license | prateek149/data_visualization | fc2469bff447bc83f50d5b3b61f5e06f7500cf0f | 368bec576f5aad7df38ead0193701d190b378478 | refs/heads/master | 2021-04-22T06:47:20.530780 | 2018-04-03T08:17:50 | 2018-04-03T08:17:50 | 58,259,378 | 0 | 2 | null | 2017-03-30T09:10:54 | 2016-05-07T09:32:26 | HTML | UTF-8 | R | false | false | 2,592 | r | nfhs_data_analysis.R | library("plyr")
library("sqldf")
library("readstata13")
library("foreign")
setwd("/Users/prateekmittal/Dropbox/IndiaSpend_Prateek/Datasets")
a <- read.dta("newdataset.dta")
a$haz <- a$hw5/100
a <- a[which(a$haz<6),]
a$stunting <- 0
a[which(a$haz<=-2),]$stunting <- 1
a$fuel_type <- "-999"
a[which(a$v161 == 2),]$fuel... |
ce5120a26c951d63277e187d2743bbf11c0c07e1 | 5aa6740910caf6d233fd9d9995c1ba779ca71e69 | /R/mscale.R | d01872c46d1089a9401ac1a9cfd18d95f71c0212 | [] | no_license | jdgonzalezwork/ktaucenters | 39f812e231235d4e0417cdc8e7ec078801f9b7bd | 7cdeb89bf534bba595edbb00e1a6b7d957026233 | refs/heads/master | 2023-02-10T01:33:09.251935 | 2023-01-29T23:04:18 | 2023-01-29T23:04:18 | 198,319,763 | 0 | 1 | null | 2023-01-31T01:42:08 | 2019-07-23T00:10:09 | R | UTF-8 | R | false | false | 7,110 | r | mscale.R | #-----------------------------------------------------------------------------------
constC1=function(p){rep(1,length(p))};
constC2=function(p){
aMaronna <- 2.9987
bMaronna <- -0.4647
aMaronna*p^bMaronna
}
#-----------------------------------------------------------------------------------
# COD... |
72b88c569a7f5ac3e65515b7a991d9fe7f6f979d | 6dd8ef4c301d743bf479f5ba1c302d56c179b113 | /tcga_codes/Figures_for_Poster.R | aa5418788c7fe8540391d4bede282ff62509e9b7 | [] | no_license | Fengithub/Genomics_Project_DCGs | 00b55c2fd226461a291d154f658b0d661f886b70 | 677f2291705973ccdbb5b957c26cafb9a118800d | refs/heads/master | 2020-05-03T05:33:10.633680 | 2019-09-17T19:18:56 | 2019-09-17T19:18:56 | 178,450,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,195 | r | Figures_for_Poster.R | #source("Figures_for_Poster.R")
#####################
## Set Working Dir ##
#####################
#install.packages("ggrepel")
library(ggplot2)
library(ggrepel)
setwd("~/Box Sync/Genomics_Project/")
source("dirinfo.R")
##########
## Data ##
##########
## Covariance Matrix Summary
cov.normal <- read.csv(file.path(spa... |
0d95a63d913140a2e55999a3bd59dba7ced6cfa1 | f6990f4746aca0291bc6970286ad6d46b9866a55 | /man/mle.Rd | 8300423b6f07aff91581d1c9e12f17e453759f37 | [] | no_license | cran/merror | 3c730db7c55bb309b055f14a23ce120647aacd3d | 9b606d2e3ed3b6f89df35c0a4e73a5b8b50584a2 | refs/heads/master | 2023-08-31T05:10:07.313831 | 2023-08-29T13:20:02 | 2023-08-29T14:30:47 | 17,697,402 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 824 | rd | mle.Rd | \name{mle}
\alias{mle}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Compute maximum likelihood estimates of precision. }
\description{
This is an internal function that computes the maximum likelihood estimates of precision for the constant
bias model using paired data.
}
\usage{
mle(v, r,... |
e0dfe4007f7d5a45c7a42971b45ed52bfdc009d5 | 390ad289fbf96b3dcf90f88acfc71531801391ec | /man/dot-get_reduced_dims.Rd | f99a42f070cca50e312e638a27949bb13670e392 | [
"MIT"
] | permissive | keshav-motwani/scanalysis | 8f7e30f1207b35dca0424c6c6856e15c624d36fa | 2276832c42224efd5d059b5d327aa6468e62a053 | refs/heads/master | 2023-02-27T14:43:44.118883 | 2021-02-03T04:24:13 | 2021-02-03T04:24:13 | 232,159,917 | 4 | 1 | null | null | null | null | UTF-8 | R | false | true | 438 | rd | dot-get_reduced_dims.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_reduced_dimensions.R
\name{.get_reduced_dims}
\alias{.get_reduced_dims}
\title{Get reduced dimensions of object}
\usage{
.get_reduced_dims(sce, type)
}
\arguments{
\item{sce}{SingleCellExperiment object}
\item{type}{Name of reduction ty... |
d95ab5c8a7847902bbc16e35162e824db5ab8290 | cb96d3d279e96a8803fa0fb04b20328c4f603c1e | /R/duplicateFinder.R | 4e0874996e3206685ec13d190005f0634970681c | [] | no_license | Hossein-Fallahi/MetaGx | 06b599f6739409705726a8eaef31478e7804b42a | 53e9c40891c5f0f8ab94fe1fda693e48d17a6aff | refs/heads/master | 2023-03-15T08:39:33.740280 | 2017-01-02T22:45:16 | 2017-01-02T22:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,991 | r | duplicateFinder.R | ########################
## Benjamin Haibe-Kains
## All rights Reserved
## September 1, 2013
########################
`duplicateFinder` <-
function (eset, topvar.genes=1000, dupl.cor=0.99, method=c("pearson", "spearman", "kendall"), cor.matrix=FALSE, nthread=1) {
## find duplicates based on correlation of... |
ffef10f787225cd49420f78027b57259ec987930 | f6328efe81b7bd86c6e160fad49359f32568a8c1 | /R_Scripts/analysisforMarch16.R | 1af5950db81c76df99c05101a95d6f52edd2a214 | [] | no_license | robertipk/Entrainment | 7ef84fb37b93210f2f9c81236b31fe6bba190cef | 69566591d166e265f2efa49fc324cac75ab306cd | refs/heads/master | 2021-01-22T08:39:01.090811 | 2016-08-23T18:45:27 | 2016-08-23T18:45:27 | 66,334,475 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,716 | r | analysisforMarch16.R | library(dplyr)
source("superscript.R")
origTable <- read.csv("correcteddata.csv",header=TRUE)
origTable$speaker = paste(origTable$speaker,origTable$letter,sep="")
origTable$letter <- NULL
head(origTable)
loudness <- subset(origTable,select=c("speaker","loudness"))
F0finEnv <- subset(origTable,select=c("speaker","F0fi... |
e8594434d286a7f453194c7365c7d6d5209d9fd6 | bbe69e27263454120aa4ada60eaed9116fccb6da | /R/import_from_base.R | 78a94126669165cef73122c10edd3100fb9131be | [] | no_license | ropensci-archive/outsider.devtools | 702812e099b9983f022f985ac607e5004c620489 | 787f92887435e7aedf4721170511ca4e790d2df2 | refs/heads/master | 2023-04-17T17:31:03.227335 | 2022-06-17T07:11:38 | 2022-06-17T07:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,763 | r | import_from_base.R | # import outsider.base functions
#' @importFrom outsider.base arglist_get
#' @export
outsider.base::arglist_get
#' @importFrom outsider.base arglist_parse
#' @export
outsider.base::arglist_parse
#' @importFrom outsider.base dirpath_get
#' @export
outsider.base::dirpath_get
#' @importFrom outsider.base filestosend_g... |
a8044abcf7acdeba9c753b01dea55ec0cee3134c | 11d8fbce4f2c9a45a1fa68d0a00919d6a063cba7 | /Data-Science/3_Getting_and_Cleaning_Data/Lecture/Week_2/Examples/Reading from HDF5.R | 58519667d5663e840f1bf560c91bd96d19d17558 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | shanky0507/Coursera-John-Hopkins | e03c9c8234ff634a047aaf0aea9912c8b96358bd | 1b555bf9d3aaef3bfdd5d4bcd0e3b5c0e734cf66 | refs/heads/master | 2020-08-12T06:42:10.942297 | 2019-10-12T20:08:52 | 2019-10-12T20:08:52 | 214,708,337 | 0 | 0 | MIT | 2019-10-12T20:06:29 | 2019-10-12T20:06:28 | null | UTF-8 | R | false | false | 853 | r | Reading from HDF5.R | ## Install Package
source("http://bioconductor.org/biocLite.R")
biocLite("rhdf5")
## Create Groups
library(rhdf5)
created = h5createFile("example.h5")
created
created = h5createGroup("example.h5","foo")
created = h5createGroup("example.h5","baa")
created = h5createGroup("example.h5","foo/foobaa")
h5ls("example.h5")
... |
65702cdc6924dc7db936a38304b7da4b5aa09cd8 | 12a10c22bf3d08e70f9830a22e94a47632a71d82 | /man/allmods.Rd | 7b7561e38069176c3eca3ff314c05a91c38846a4 | [] | no_license | dsambrano/PsyTools | 973136448bd3c3eb5127cf13152a811846cc4133 | 7884c5b51cdc853fc7377d9737eafee2640dec14 | refs/heads/master | 2021-01-20T12:41:17.671181 | 2017-05-05T15:46:40 | 2017-05-05T15:46:40 | 90,392,060 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,082 | rd | allmods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allmods.R
\name{allmods}
\alias{allmods}
\title{All Possible Models}
\usage{
allmods(dv="dv", ivs=c("iv1","iv2","iv3"),
data=dataset, plot = FALSE)
}
\arguments{
\item{dv}{A string of the variable name of you dependent variable.}
\it... |
31d59dacf7b683afd0a294522be0dc24aa2f106d | c1d359cdf0281885744cdcd85d41a21e91218b43 | /man/KYCG_plotMetaEnrichment.Rd | e8faa4f8bad5367d690022c5eccb1568b4ef7e33 | [
"MIT"
] | permissive | zwdzwd/sesame | 20b2d29578661487db53432c8991d3c4478aa2c1 | 62fe6ef99a02e7f94b121fb601c3f368b8a4c1a8 | refs/heads/master | 2023-08-08T01:45:02.112492 | 2023-07-26T13:23:03 | 2023-07-26T13:23:03 | 122,086,019 | 37 | 26 | MIT | 2023-01-05T16:02:38 | 2018-02-19T16:00:34 | R | UTF-8 | R | false | true | 656 | rd | KYCG_plotMetaEnrichment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/KYCG_plot.R
\name{KYCG_plotMetaEnrichment}
\alias{KYCG_plotMetaEnrichment}
\title{Plot meta gene or other meta genomic features}
\usage{
KYCG_plotMetaEnrichment(result_list)
}
\arguments{
\item{result_list}{one or a list of testEnrichment}
}
... |
64fb8b1bd25216ed1c154813e38600c0843c78fb | 43e6ce29a417f19475aecb90945e80dd2e797040 | /shopping-cart.R | 61446ab381047b2971d547e8c3b0bc80106cdf1d | [] | no_license | wolfkden/BigData-R | 8e5725a5d9da2bc65124dc8d14a8e9cc837e1be4 | 51392eaf3e01930e9157a387fca6fc042090c94a | refs/heads/master | 2021-01-13T14:27:57.819783 | 2015-02-18T00:48:38 | 2015-02-18T00:48:38 | 30,945,645 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,788 | r | shopping-cart.R | for(x in as.character(alldays$ITEM_NAME)) nlist[length(nlist)+1]<-paste(unlist(strsplit(x,",")),collapse="+")
ax<-aggregate(cbind(ITEM_LIST=ITEM_ID,ITEM_COUNT=ITEM_ID,ITEM_NAME=ITEM_NAME)~CHK_NUM,alldays,FUN=function(x) { return(paste(sort(union(NULL,x)),collapse="__")) })
ax$ITEM_COUNT<-unlist(lapply(strsplit(ax$ITE... |
8debb9de8673ac3d8a7dbfbb6112a5546186bc1a | b626eca042800ee5572344262a165c1989235f73 | /paper/Rcode_eps/03-contour-plot.R | 0500fd350b1ba0b241d215be2409803d18787803 | [] | no_license | nicoballarini/SubgrPlots | 38f04f07478c672cae761b1a9cd1fa5f79062d6e | 61229c9f36c9650f71b178b970a80d2a7bf9471d | refs/heads/master | 2020-03-13T12:59:46.419273 | 2020-01-29T02:26:45 | 2020-01-29T02:26:45 | 131,130,461 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,712 | r | 03-contour-plot.R | ###############################################################################-
##
## This program creates the figures for the manuscript using the
## prca data that is included in this package
##
##
## Instead of using rm(list = ls()), make sure you start with a fresh R
## by restarting R -> Control+Shift+F10
# cat("... |
e327aac8af9e5696be11832f4d167b824cd7e584 | 567d8f2a240cd3b7f3899b3fd5e3bd9328b2b895 | /R/simulate_cvd.R | 870bb87a39e4e646e5aba901a8d1d117819b9069 | [] | no_license | cran/colorspace | ec9123555d9a820c2a2c639b94d28734563df6e0 | fadb043aeb85048a0a2b9daddbb258002d0a4dfc | refs/heads/master | 2023-01-24T18:54:37.214672 | 2023-01-23T10:40:02 | 2023-01-23T10:40:02 | 17,695,192 | 7 | 3 | null | 2017-08-29T03:43:34 | 2014-03-13T04:18:48 | R | UTF-8 | R | false | false | 9,060 | r | simulate_cvd.R | #' Simulate Color Vision Deficiency
#'
#' Transformation of R colors by simulating color vision deficiencies,
#' based on a CVD transform matrix.
#'
#' Using the physiologically-based model for simulating color vision deficiency (CVD)
#' of Machado et al. (2009), different kinds of limitations can be
#' emulated: deute... |
99a09d7182ae3578277d7fe48fd6fc0c39c1f1ef | f2384c2f83c77b900e493be75d711fc5e8a561f9 | /K_Nearest_Neigbour.R | 32c3e7c5649bb336e114d28650673f8fa8664dc1 | [] | no_license | RituUW/Data-mining-using-R | d0e32a38daad8a2b62076cdc0e2653c730bdca06 | 4039e4f7be08042b110d941bc49533257b5c1d8f | refs/heads/main | 2023-02-02T08:56:37.962907 | 2020-12-18T06:56:13 | 2020-12-18T06:56:13 | 322,501,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 892 | r | K_Nearest_Neigbour.R | #K NEAREST NEIGBOURS
# load data
mower.df <- read.csv("RidingMowers.csv", stringsAsFactors = TRUE)
set.seed(11)
# partition data
train.index <- sample(1:nrow(mower.df), 0.6*nrow(mower.df))
train.df <- mower.df[train.index, ]
valid.df <- mower.df[-train.index,]
train.norm.df <- train.df
valid.norm.df <- valid.df
# nor... |
b5b76a06b15b3082d70de6d7956114f0789903cf | a3db37c4dfebd618aeeb78065dd38af3f3490869 | /cachematrix.R | 2345c4aa7f144b570e945a7f8208f01ecdead501 | [] | no_license | souvik82/ProgrammingAssignment2 | ae9dae0da1081381328192ba4aca15e5dec722c8 | 9e171dc10d4856fc5249799b22cc28a7a69f9f4a | refs/heads/master | 2021-01-13T16:16:09.901463 | 2016-04-29T09:36:45 | 2016-04-29T09:36:45 | 57,369,380 | 1 | 0 | null | 2016-04-29T08:36:03 | 2016-04-29T08:36:03 | null | UTF-8 | R | false | false | 1,133 | r | cachematrix.R | ## makeCacheMatrix(): creates a special “matrix” object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
# use `<<-` to assign a value to an object in an environment
# different from the current environment.
x <<- y
inv <<- NULL
}
get <- funct... |
7e2881986d2bd118ea536fc8288e3389eed5f545 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/hdrcde/examples/plot.cde.Rd.R | cd79162f910b063ac236418d2ae37eeb01788015 | [] | 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 | 318 | r | plot.cde.Rd.R | library(hdrcde)
### Name: plot.cde
### Title: Plots conditional densities
### Aliases: plot.cde
### Keywords: distribution hplot smooth
### ** Examples
faithful.cde <- cde(faithful$waiting,faithful$eruptions,
x.name="Waiting time", y.name="Duration time")
plot(faithful.cde)
plot(faithful.cde,plot.fn="hdr")
|
ec3326d6356c9fda4748fa785b2dee44ed1b364e | c2f8c87cf965423cd563a5fcd7bd7a38bf9200d0 | /man/run_civis.Rd | 75d0756dcc6e50a97585dbe0c7aaee0528bd105f | [] | no_license | mheilman/civis-r | 18f6a1831879f1d85daa45e6d05a8d5fa004248d | 68acbc93bb2168bccfea93ab0494121c220c93ce | refs/heads/master | 2020-12-19T22:14:11.218094 | 2019-10-01T14:10:00 | 2019-10-01T14:10:00 | 235,868,128 | 0 | 0 | null | 2020-01-23T19:18:05 | 2020-01-23T19:18:04 | null | UTF-8 | R | false | true | 1,036 | rd | run_civis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scripts.R
\name{run_civis}
\alias{run_civis}
\title{Evaluate an R expression in a Civis Platform container}
\usage{
run_civis(expr, ...)
}
\arguments{
\item{expr}{code to evaluate}
\item{...}{arguments to \code{\link{CivisFuture}}}
}
\descri... |
1cdb58e38f9396cfeaf32a91165fef531f5c7f90 | 67eea017c474ab14755b8476ad29c19124766038 | /misc/evaluate_glm_logistic.R | 9a14b3de2b35894796180b0a102503ad4f8be5d9 | [
"MIT"
] | permissive | mutazag/mdsi | dd6a457c7269401d552cda162df8a37df92ca6fc | efecc8f650ddf6866154389f98d4ce0a9803db18 | refs/heads/master | 2021-06-01T20:23:12.920707 | 2020-03-29T01:21:32 | 2020-03-29T01:21:32 | 125,200,143 | 0 | 0 | MIT | 2018-05-26T16:58:12 | 2018-03-14T11:07:29 | R | UTF-8 | R | false | false | 1,792 | r | evaluate_glm_logistic.R | ## evalulate a simple logistic regression using glm()
# https://stats.stackexchange.com/questions/25389/obtaining-predicted-values-y-1-or-0-from-a-logistic-regression-model-fit
# data y simulated from a logistic regression model
# with with three predictors, n=10000
x = matrix(rnorm(30000),10000,3)
lp = 0 + x[,1] -... |
79cae1c023cd5457b0faa9e1658f8d1f973a54ca | ee976af89b21fa5a3b16c5eb9ffb99fd9b11ad91 | /plot4.R | 97423d453b6e942d8ea34a1a0087e5de7a128e2c | [] | no_license | jbrant/ExData_Project2 | 51b95f1cc4ff74fc21716874b61546b270960c3d | 75510d85f93f61ccb1152dfc88e71a25efc1d691 | refs/heads/master | 2021-01-19T16:58:44.074063 | 2014-07-26T03:40:34 | 2014-07-26T03:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,981 | r | plot4.R | #######################################################
## Plot 4
#######################################################
### Begin Setup ###
## Load Required libraries
library(ggplot2)
library(grid)
library(data.table)
## Read in National Emissions Inventory Dataset
if (!exists("NEI.data")) {
NEI.data <- as.data.... |
6d11fa558921e1222daa9e80f1aa35165e20ec2f | 622c68ff62c4bf91664c4157fdcadcc1d7359a0a | /man/multiply.p.s.epsilon.Rd | 19f7e5b6e8735389f2fe8f7863785890639f4575 | [] | no_license | kdkorthauer/MADGiC | 791b40130ea9df515cbd1f1ccd9aed90e730e378 | 4e763b526ebb8cbc87bdd6688761794e55b854cb | refs/heads/master | 2021-01-10T08:52:45.487014 | 2020-06-09T16:38:51 | 2020-06-09T16:38:51 | 47,279,073 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,419 | rd | multiply.p.s.epsilon.Rd | \name{multiply.p.s.epsilon}
\alias{multiply.p.s.epsilon}
\title{Multiply the constants in \code{exome.constants} by the relative rate
parameters of the background mutation model}
\usage{
multiply.p.s.epsilon(X, p, s, epsilon, delta, gene)
}
\arguments{
\item{X}{a list with one entry for each chromosome, where
e... |
46582ce4101f2d03f91de3bb2d2ee32f92c647c7 | 386708f184c5e25d44f1fb877fae9b4ebc3de286 | /ui.R | 7b21a5a070429986acd9d04b35a24640af92f241 | [] | no_license | DevinEnglish/bad-drivers-project | 7aeda0eb5834014911040eaea68f829abba8aab4 | 62f88cf7f667ed0b2a1afbb36cb3fcae7e7fb26c | refs/heads/master | 2020-05-21T13:19:28.064371 | 2019-06-05T23:14:14 | 2019-06-05T23:14:14 | 186,068,779 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,595 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(leaflet)
library(htmltools)
library(plotly)
bad_driving <- read.csv(... |
dbe36f579fd6ba0db7f89ef5bb2fc9d0ad4eb41d | b05bd9f10c51f8115043fcfd0e42caf8c7a0e555 | /assignment5/run_periodically.R | 1f2cb636667667d095394949742c1143c51b8433 | [] | no_license | johngonz/datascience_uwash | 56e440d34e95bb2899033624d978fd7f4b527918 | 9f2a11f0083e1885fb0d591c1136b31d0cd3a981 | refs/heads/master | 2021-01-10T09:55:50.717129 | 2015-12-09T09:24:22 | 2015-12-09T09:24:22 | 43,198,338 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 345 | r | run_periodically.R | # Run this code periodically
#T
if(!require(installr)) {install.packages("installr"); require(installr)} #load / install+load installr
updateR()
# This code updates all R packages
x <- packageStatus(repositories="http://cran.r-project.org/src/contrib")
st <- x$avai["Status"]
install.packages(rownames(st)[which(st$St... |
8498fef2b90b1d815942ba54bb17096365fe055d | e68e99f52f3869c60d6488f0492905af4165aa64 | /man/torch_greater.Rd | 887819a8ad43c7104a9243f22610c1a295557684 | [
"MIT"
] | permissive | mlverse/torch | a6a47e1defe44b9c041bc66504125ad6ee9c6db3 | f957d601c0295d31df96f8be7732b95917371acd | refs/heads/main | 2023-09-01T00:06:13.550381 | 2023-08-30T17:44:46 | 2023-08-30T17:44:46 | 232,347,878 | 448 | 86 | NOASSERTION | 2023-09-11T15:22:22 | 2020-01-07T14:56:32 | C++ | UTF-8 | R | false | true | 501 | rd | torch_greater.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace-docs.R,
% R/gen-namespace-examples.R, R/gen-namespace.R
\name{torch_greater}
\alias{torch_greater}
\title{Greater}
\usage{
torch_greater(self, other)
}
\arguments{
\item{self}{(Tensor) the tensor to compare}
\item{other}{(Ten... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.