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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ca2b8a5a951cd95edbffbe7f9abcd534e2a26a7 | 3ab617b5ef9cd9ff1c2842be763bf1d10c6649b2 | /app1.R | 73d8c3749282eb9f49594bce5bc677d1690c44ed | [] | no_license | ganeshshinde1986/R-Basics | c1e712f14f36e5ff4a547dc53debff2aa9759e8d | e452d6cd90c108eebf25751153b93e7d87bb9b7c | refs/heads/master | 2021-01-22T01:51:29.084989 | 2019-01-24T19:27:20 | 2019-01-24T19:27:20 | 81,014,806 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,178 | r | app1.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/
#
source("helper.R")
source("global.R")
#Loading all required package using helper function check.packa... |
2321bc5ae555bbeb11694eb4dd352f4b74785917 | a97ccb7a9444c2fdc07de379214fced22104a216 | /R/02_ECLIPSE_cleaning.R | ad93517b30bd4b7450c010590f9887b9f3768807 | [
"MIT"
] | permissive | yoffeash/baselineLH | a27347110a2dac7cdd8fc1e804474761be21bce1 | dae5bf8c7819cbf5e3f8ac5efeb9ebc057a6e6a4 | refs/heads/master | 2020-03-27T01:26:15.110290 | 2018-08-22T17:59:25 | 2018-08-22T17:59:25 | 145,710,625 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,634 | r | 02_ECLIPSE_cleaning.R | ### clean baseline local histogram data from ECLIPSE and create
## 1) file with summary whole lung LH values
## 2) file with subtype whole lung LH values
### import ECLIPSE baseline LH dataset ###
ECLIPSE_raw <- read_csv("data/raw_data/ECLIPSE_L1_localHistogram_parenchymaPhenotypes_20180305_wideFormat.csv")
ECLIPSE_p... |
ab17d82b940c96a4e9a7d11cfa584d2372324c15 | 9ab25c9161cbb7d3d6f1068fcbc01449ba6baa0b | /RVS0.0.0/man/calc_EG_Var.Rd | 987d4f3b29d7ee5c15e9d3a9847a831171ed89ee | [] | no_license | jiafen/RVS | 5b9d4a42f4684d6589bbbc4167849e509b3c001a | f1c1ba78ec3983dd3f90bc09f1496d75d0f8b7dd | refs/heads/master | 2021-01-10T09:10:58.940526 | 2016-01-27T20:37:48 | 2016-01-27T20:37:48 | 49,983,897 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 796 | rd | calc_EG_Var.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/help_gener_seqdata.R
\name{calc_EG_Var_general}
\alias{calc_EG_Var_general}
\title{Andriy's original cal_EG2}
\usage{
calc_EG_Var_general(M, p, rdv)
}
\arguments{
\item{M:}{genotype likelihoods AA, Aa, aa, matrix sum(rdv) by 3 (double... |
c3955c41e37ea96cda6cf80d51c20d15cb3611b1 | 9ecae552dd81259e5d086bcd2b2a62808d4906fc | /man/LogrankA.Rd | 61ef9d3e701b1d62821e1edb6d4f98e53e2f4406 | [] | no_license | jschoeley/LogrankA | 190817c61be8b73759073615da3eb4dd19f3dd7f | 8a4cbe8a12be8f6c706201ca831996fa2af0bba2 | refs/heads/master | 2020-04-05T22:50:01.466668 | 2015-03-06T16:43:23 | 2015-03-06T16:43:23 | 31,775,251 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,573 | rd | LogrankA.Rd | \name{LogrankA}
\alias{LogrankA}
\title{
Logrank Test for Aggregated Survival Data
}
\description{
\code{LogrankA} provides a logrank test across unlimited groups with the
possibility to input aggregated survival data.
}
\usage{
LogrankA(surv, group, weight)
}
\arguments{
\item{surv}{
An object of type \code{surviv... |
dbb086873b55b96b4dd177bb3ab79b1f38853f01 | b785666dfb9dab6f462f0a16b07187d7bd11886a | /comet_code.r | bcd1a3af411c21c9a5e25bf0b444be29651bd13a | [] | no_license | ktorresSD/Rcode | d3cb3ab530419a91df61a791ab84961e52940989 | b91b123f051cb0e04212d9b7b5d3094cdde3a9c8 | refs/heads/master | 2022-11-07T16:53:50.191708 | 2022-10-28T22:53:48 | 2022-10-28T22:53:48 | 121,809,412 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 140 | r | comet_code.r | library(rgl)
open3d()
comet <- readOBJ(url("http://sci.esa.int/science-e/www/object/doc.cfm?fobjectid=54726"))
shade3d(comet, col="gray") |
749c6e60475033318f89d87f396557fa5d232298 | bca0b07ac982392423dcd7df6ff9f38d65dd81a7 | /code/generating_metadata/RPackage_bibliography.R | 7e1d4017d8e186f053b6e9a9dd043458687f7384 | [] | no_license | rory-spurr/ESAPermitsCapstone | 241221ed031f0af2089c8cd65e1c4c87ec244114 | 558af14aad09bacd181156cc93a69704461cdac9 | refs/heads/main | 2023-04-16T14:39:52.411064 | 2023-03-21T17:09:38 | 2023-03-21T17:09:38 | 510,441,404 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 220 | r | RPackage_bibliography.R |
# Function writes a BibTex file which can then be thrown into
# a citation manager to quickly cite packages used.
write_bib(
x = .packages(),
file = "code/creating_metadata/packages.bib",
tweak = T,
width = 60
) |
906471bf62053b50f83bb63fb235dcd9d788f9d9 | 1bcd87514ea143f57f5f4b338ad50f2a8d148134 | /R/llnhlogit.R | 4f23a06539987716eea5cceecbda95ed2b91bbb1 | [] | no_license | cran/bayesm | b491d7f87740082488c8695293f3565b2929f984 | 8a7211ff5287c42d5bc5cc60406351d97f030bcf | refs/heads/master | 2022-12-10T10:51:14.191052 | 2022-12-02T09:10:02 | 2022-12-02T09:10:02 | 17,694,644 | 19 | 15 | null | null | null | null | UTF-8 | R | false | false | 1,119 | r | llnhlogit.R | llnhlogit=function(theta,choice,lnprices,Xexpend)
{
# function to evaluate non-homothetic logit likelihood
# choice is a n x 1 vector with indicator of choice (1,...,m)
# lnprices is n x m array of log-prices faced
# Xexpend is n x d array of variables predicting expenditure
#
# non-homothet... |
7b296e10bf73aa45098bc915f3dd53562d9114fd | eb95ca11c50c8ac556fd5f54fde9878b99b196a5 | /Figure_script/Motif_pvalue_scatter.r | 690bb7329dd7722d60f78ee664eb56507c8d15e3 | [] | no_license | adamtongji/Enhancer_pred_supple | 3b6df2dd2297633fc8d2024a8bc571c20b934cdd | df2c2cf59cd5a48d43c2428d4121f348dc4c5169 | refs/heads/master | 2021-05-09T11:15:59.211481 | 2018-08-20T07:03:44 | 2018-08-20T07:03:44 | 118,986,263 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,317 | r | Motif_pvalue_scatter.r | library(ggplot2)
boxcol<-function(n){
colall<-c('#1a9850','#984ea3','#fc8d59')
return(colall[c(1:n)])
}
mytemp<-theme(panel.background=element_rect(fill="white",colour=NA), panel.grid.major =element_blank(), panel.grid.minor = element_blank(),axis.line = element_line(colour = "black",size=0.6),axis.text.x = elemen... |
d124fe2d6f01e5b3188dc552c47a138dca71dd0c | 674f7384bfc540b0e0df2736d284b44edbbe7338 | /01-scraper.R | 0e1df198267969a3371d4fd54a0f04e7119e7aeb | [] | no_license | acastroaraujo/Cuentas-Claras | 689b5de6f0a29ea808ef25766ba1d64f0913f369 | 3a8949363348f1fd189c5e7995e8430c4a9a8429 | refs/heads/master | 2023-02-19T17:57:43.676493 | 2021-01-19T16:45:34 | 2021-01-19T16:45:34 | 211,405,185 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,323 | r | 01-scraper.R |
library(tidyverse)
library(rvest)
library(readxl)
cc_buscador_territorial <- function(id, year = c("2015", "2019")) {
year <- match.arg(year)
url <- paste0(
url <- "https://www5.registraduria.gov.co/CuentasClarasPublicoTer",
year,
"/Consultas/Candidato/Reporte/",
id
)
message(url)
... |
7d996210a848fcc610823c4a7fd0f32c1389714c | f398cdb4bebfb081669f75ee50756d9b35722e35 | /R/objects3d.R | a487321e9dea84bd5cb1ddf718abeec785342cc6 | [] | no_license | Tomomahoney/pca3d | e9c9dd1ebcc669da2af5aac4ebd12394377cf873 | f28f049dd7f97c52cb8dbcb6017d0a7cf5249f41 | refs/heads/master | 2023-05-26T09:06:24.928751 | 2020-10-02T14:10:06 | 2020-10-02T14:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,379 | r | objects3d.R | # draw a series of tetrahedrons
tetrahedrons3d <- function( coords, radius= c( 1, 1, 1 ), col= "grey", ... ) {
coords.n <- NULL
r <- 2 * radius / 3
for( i in 1:nrow( coords ) ) {
shade3d(translate3d(
scale3d(
rotate3d(tetrahedron3d(col=col, ...), 2, 0, 1, 1),
r[1], r[2], r[3]),
... |
526fe33a8d9128a310d155ab3449e34260d703c5 | 8b50fb5214b066784b1c39072b98ae1752b43bb5 | /1-read_countstats.R | 13ba9f4d296f512878331f5171e5ae57481bfa32 | [] | no_license | hbenbow/tafrog | b50abd879806a72fa88dfc7513f1d9fd4a523dd6 | bbf1a7a8d1b8c91394178721b138fd757e2f4c1f | refs/heads/main | 2023-02-10T07:30:39.826198 | 2021-01-05T09:48:10 | 2021-01-05T09:48:10 | 309,426,679 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,759 | r | 1-read_countstats.R | library(WGCNA)
library(tximport)
library(DESeq2)
library(ggplot2)
library(dplyr)
library(tidyr)
library(plyr)
library(stringr)
library(gplots)
library(tidyr)
library(Hmisc)
library(corrplot)
allowWGCNAThreads()
setwd("~/Documents/FROG/")
# ===============================================================================... |
4823d94050b2b36786d80f0e360ff1481ecd8f30 | 0893501b88126c3cd818b0ef0c2727b755d673ab | /getData.R | f11fed717a3ce332b668175acc6e953dd9dda75b | [] | no_license | TheScientistBr/geoMap | c2bcf4459bf78efc686d0fe49b7dfb1c429ee131 | b9ad51dc9e750b988db2145cf0734041c3b10ff7 | refs/heads/master | 2020-03-19T12:44:41.462995 | 2018-06-11T21:23:06 | 2018-06-11T21:23:06 | 136,537,420 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,254 | r | getData.R | library("readxl")
library("placement")
library("devtools")
library("RCurl")
df <- read_excel("endereco.xlsx",sheet = 1)
endereco <- "Av. Cesar Hilal, 700 Vitoria ES CEP: 29.052-232 Brasil"
ll <- geocode_url(address = endereco, clean = T,auth="standard_api", privkey="AIzaSyBY20H089DMPHABXcPhty3HFGgsXmrVQw0",messages ... |
94e5cb0bbf4aa2013b9dcd12c185bc7a1a7435ff | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Ramble/examples/grapes-thentree-grapes.Rd.R | 0ca53e9c6471b15e2febc08b6c356d59d9cce365 | [] | 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 | 264 | r | grapes-thentree-grapes.Rd.R | library(Ramble)
### Name: %thentree%
### Title: '%thentree%' is the infix operator for the then combinator, and
### it is the preferred way to use the 'thentree' operator.
### Aliases: %thentree%
### ** Examples
(item() %thentree% succeed("123")) ("abc")
|
0b4d4aad058facf3a7b935d8aae071dfd3c0c7dd | 29585dff702209dd446c0ab52ceea046c58e384e | /survJamda/R/eval.merge.simulate.R | 32e837939c937c299ab9b9f78dd56ccc299b10cb | [] | 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 | 242 | r | eval.merge.simulate.R | eval.merge.simulate <-
function(d1,d2,tot.genes, gene.nb, zscore)
{
mat = rbind(d1$ds1,d2$ds1)
cat("\nMerged data set\n")
iter.crossval(mat, c(d1$T,d2$T), c(d1$censor,d2$censor),ngroup = 10,zscore =1,gn.nb =gene.nb,gn.nb.display = 0)
}
|
1747dd57c7fcddea1c171ba97bc2a53dcb07f746 | 17073e3fcc303d51ac3254273ab104a0fe241e18 | /.Rproj.user/0AF359E7/sources/s-A38B8BE3/E75B2FEF-contents | 4bdcf3f69dfb2820e2de606d3be1f30d2db34fd9 | [] | no_license | jacobostergaard/bootha | 6a4054730c418fd7fcfabe9859b552c817ed6c71 | 8f3ac5b43203be68775302347094e7792a98d625 | refs/heads/main | 2023-02-16T22:17:39.589968 | 2021-01-15T11:22:54 | 2021-01-15T11:22:54 | 329,871,491 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 828 | E75B2FEF-contents |
cluster <- function(M){
tmp = diag(M) # extract diagonal, unconnected processes should have approx. zero
p = length(tmp)
# find outliers, i.e. entries approx zero using "leave-one-out" estimation of the mean, analogous to the dfbetas measure
m = numeric(length(tmp))
for(i in 1:length(tmp)){
m[i] =... | |
16f7db4ebb7b0376c4f9592bb26c8f52ee2baae1 | 6b4ef35c61782b88e392126be8fc80c4b9e2ad29 | /man/getCapability.Rd | af8f82cf309cedd339e5a0e1c43efcf543695429 | [
"MIT"
] | permissive | mattia6690/CubeR | f2a74d335cbdfdf8ee6fb1b2f87e83caebf518fe | 07d311db513631f5a00453e8d05deabd277674ce | refs/heads/master | 2020-06-04T00:40:27.674952 | 2019-06-21T12:30:30 | 2019-06-21T12:30:30 | 191,798,466 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 397 | rd | getCapability.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coverage_metadata.R
\name{getCapability}
\alias{getCapability}
\title{Returns the Capabilities}
\usage{
getCapability(url = NULL)
}
\arguments{
\item{url}{This central URL Leads to the 'ows' page of the Datacube}
}
\description{
This function... |
8f0533b41b7468451da265d43273c65474e7f2f9 | f5224269ceced4aaeb094a2a16096794c9ce2761 | /SARS-CoV-2/scripts/2_zscores.R | 31d60c2dec66772b8d3ebeb8dea92f6d47531a9d | [
"MIT"
] | permissive | jilimcaoco/MPProjects | 2842e7c3c358aa1c4a5d3f0a734bb51046016058 | 5b930ce2fdf5def49444f1953457745af964efe9 | refs/heads/main | 2023-06-15T04:00:46.546689 | 2021-06-29T02:57:46 | 2021-06-29T02:57:46 | 376,943,636 | 0 | 0 | MIT | 2021-06-29T02:57:47 | 2021-06-14T20:08:32 | null | UTF-8 | R | false | false | 11,538 | r | 2_zscores.R | library(plyr)
library(tidyverse)
library(fuzzyjoin)
library(ggplot2)
library(readxl)
library(MPStats)
Zprime <- function(positives, negatives, na.rm=TRUE) {
1 - 3 * (sd(positives, na.rm=na.rm) + sd(negatives, na.rm=na.rm))/abs(mean(positives, na.rm=na.rm) - mean(negatives, na.rm=na.rm))
}
feature_columns <- rea... |
03b574fb7b3c8b5b9a2ea56a1a98d7497393ada2 | 2c38fc71287efd16e70eb69cf44127a5f5604a81 | /R/class_nonexportable.R | 4608965918808b191f459f1660b0df8f04307552 | [
"MIT",
"Apache-2.0"
] | permissive | ropensci/targets | 4ceef4b2a3cf7305972c171227852338dd4f7a09 | a906886874bc891cfb71700397eb9c29a2e1859c | refs/heads/main | 2023-09-04T02:27:37.366455 | 2023-09-01T15:18:21 | 2023-09-01T15:18:21 | 200,093,430 | 612 | 57 | NOASSERTION | 2023-08-28T16:24:07 | 2019-08-01T17:33:25 | R | UTF-8 | R | false | false | 453 | r | class_nonexportable.R | #' @export
store_marshal_value.tar_nonexportable <- function(store, target) {
object <- store_marshal_object(target$store, target$value$object)
target$value <- value_init(object, iteration = target$settings$iteration)
}
#' @export
store_unmarshal_value.tar_nonexportable <- function(store, target) {
object <- sto... |
de56a933dbaf8579d0c84fc81c1010ba49b7a5b4 | 8759bff5309aa4052142433d6fcf1d941e4bcf69 | /myfunction.R | b6347f0c55ee27a46574f5540f563393d004bfeb | [
"MIT"
] | permissive | rstokes/datasciencecoursera | 2a0bc53f61715292c06de54b0ae98d164e5b3ae2 | 8b99142953a26ff87ab11d986dc29779a92c900c | refs/heads/master | 2021-01-21T13:25:18.063433 | 2016-06-04T03:53:00 | 2016-06-04T03:53:00 | 51,267,574 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 142 | r | myfunction.R | myfunction <- function(x){
y <- rnorm(100)
mean(y)
}
second <- function(x){
x + rnorm(length(x))
}
cube <- function(x, n) {
x^3
} |
6c97900ccea184a8b740c1022cea3219acf4907d | 0807e7506199d730a49c909d6c2267cede51d114 | /1.Simple Linear Regression/Sol_calories_consumed.R | 78de395c95d8196b8c4701697e914398ac2a75bd | [] | no_license | barodiaanjali/MachineLearning | c090dbe1bce507d78184afa438d70f4b1673ebb5 | 44b5d43e642aea0100d28652c2f59db35575509e | refs/heads/master | 2021-09-04T11:26:58.294188 | 2018-01-18T08:36:33 | 2018-01-18T08:36:33 | 117,952,305 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 984 | r | Sol_calories_consumed.R | library(readr)
calories_consumed <- read_csv("D:/ALL Assignments/3.Simple Linear Regression/calories_consumed.csv")
View(calories_consumed)
attach(calories_consumed)
head(calories_consumed)
# EDA
# 1. Scatter diagram: scatterplot
scatter.smooth(x=Cal,
y=Wgt,
main="Wgt ~ Cal")
... |
72acce99bceea5e967317ed710ae41cc34d5ae40 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.cloudhsmv2/man/delete_backup.Rd | c2c22f5386dea15814aa3bc31614e9410e79b89a | [
"Apache-2.0"
] | permissive | CR-Mercado/paws | 9b3902370f752fe84d818c1cda9f4344d9e06a48 | cabc7c3ab02a7a75fe1ac91f6fa256ce13d14983 | refs/heads/master | 2020-04-24T06:52:44.839393 | 2019-02-17T18:18:20 | 2019-02-17T18:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 651 | rd | delete_backup.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cloudhsmv2_operations.R
\name{delete_backup}
\alias{delete_backup}
\title{Deletes a specified AWS CloudHSM backup}
\usage{
delete_backup(BackupId)
}
\arguments{
\item{BackupId}{[required] The ID of the backup to be deleted. To find the I... |
61f932113e3160293829ec2e2d55d8e37c4058bf | ead003c677aef91563ed95f10023c60d3f716d06 | /hw-rstudio-project.R | c1d9b8587e3c4e0bc58b824872779dc6e5a97103 | [] | no_license | analise-viz-dados-1sem-2020/hw-rstudio-project-amandasalvador | d101d304313a34520f54bedc14c5b5e45f81cbea | f1aaf3b857dc24613dd2698413e71161c3658bd4 | refs/heads/master | 2022-09-19T10:14:17.831870 | 2020-06-01T21:47:39 | 2020-06-01T21:47:39 | 266,749,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 353 | r | hw-rstudio-project.R | library(magrittr); library(ggplot2)
source("R/utils.R")
x <- "Francisco"
df <- get_freq_nome(x)
df %>%
ggplot(aes(x = decada, y = freq)) +
geom_point() +
geom_line(aes(group = 1)) +
labs(title = paste("Nascimentos por década", x, sep = " - ")) +
xlab("Década de nascimento") +
ylab("Pessoas") +
ggsa... |
e94d5ded9d16fb3e236715bd4d419cdc77bcd826 | b2692cad2f83c97518acade33ef2e03b74b6e0df | /R/fastTransformWorldToVoxel.R | d5e7e36540acc9417bad32a71dcc59ba0d278f0a | [] | no_license | neuroimaginador/ni.quantification | 03e55e6f1eaaacebaa008ca3b045a307b78b9cfb | 5a3495c1b685eb573aa3f14d5c52129d3be69003 | refs/heads/master | 2020-04-04T19:14:51.144154 | 2018-10-22T09:01:01 | 2018-10-22T09:01:01 | 156,198,036 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 288 | r | fastTransformWorldToVoxel.R | ## TransformWorldToVoxel 2
fastTransformWorldToVoxel <- function(points, voxelDims) {
new_points <- points
# apply(points, 1, function(x) x/abs(voxelDims)) + 1
for(i in 1:3) {
new_points[, i] <- new_points[, i]/voxelDims[i]
}
return (new_points + 1)
} |
c85173e4bc6e9acf718b8269ee9b27348549378d | e5f80ac83b9f4dd2006276972b76326cb0e24566 | /tests/testthat/testthat_uniformCrossover.R | bc568fa11cc373e0e1844a489d6d315b6f2be5b6 | [] | no_license | xdavidlin94/GA | 7fdb1ae945a6b1ffa2e9607a05bc21aa3f416bd3 | 072f0c0ba1af4b1e482272570f1a9fd2b96c7e0e | refs/heads/master | 2021-05-06T10:23:03.146760 | 2017-12-14T01:40:24 | 2017-12-14T01:40:24 | 114,168,336 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,200 | r | testthat_uniformCrossover.R | library(testthat)
# source("geneticOperators.R")
context("uniformCrossover()")
test_that("Invalid input", {
expect_error(uniformCrossover(), 'argument "nFeatures" is missing, with no default')
})
test_that("Offspring's length stays the same after Crossover",{
parent1 <- sample(0:1, 10, replace = T)
parent2 <- ... |
c435cb664b4c2724f8c17da9d1503430f43c552c | 78aa2a91d46ef0f030f30bc5adf3bddf100416cd | /man/printWithFootnote.Rd | 67fc43678f8aa06ee4d794ec1af553b561acec20 | [] | no_license | jrthompson54/DGE.Tools2 | c7239ee27c1d6c328d2c860618fbd09147ae5fc5 | f7f9badef7d94a7e637ca3716a073a1ddbf4f5d2 | refs/heads/master | 2021-08-06T04:30:18.547140 | 2021-05-12T13:15:13 | 2021-05-12T13:15:13 | 250,071,780 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,282 | rd | printWithFootnote.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/printAndSave.R
\name{printWithFootnote}
\alias{printWithFootnote}
\title{Function printWithFootnote}
\usage{
printWithFootnote(
plotObject,
footnote,
fontface = "plain",
fontsize = 10,
hjust = -0.1
)
}
\arguments{
\item{plotObject}... |
bbd73bcbb3dc7e7797675d1f2163fefd938625f1 | fdb15794952b1dcd74d4fc71b60b1eb1fb107106 | /modules/splitModelPlot/R/groupSplitRaster.R | 5bddcc4dc0a99943263db36e5e6a4f3f74d88e06 | [] | no_license | ianmseddy/borealBirdsAndForestry | 76f73e52fd22e56745f94398ce46a684579bc326 | b50c7ce48f85864d7b693664a11542e99a8058a2 | refs/heads/master | 2020-03-20T02:00:56.151676 | 2018-06-12T16:09:13 | 2018-06-12T16:09:13 | 123,337,634 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,548 | r | groupSplitRaster.R | groupSplitRaster <- function(spec, mod, abund, sim) {
rasterList <- list("distType" = sim$disturbanceType, "distYear" = sim$disturbanceYear, "land" = sim$landCover)
rasterList[["inputAbundances"]] <- abund
newlist <- Cache(Map, rasterList, path = file.path(dataPath(sim), names(rasterList)), f = splitRaster,
... |
fd771c91de1f397a9c5e05cde3180d853e5339ae | ba570d3aa3231f58989a83b9fc57ccd232c98b3a | /R/Define.R | 0262ef3d17a6d7cb16f93d3c1ca1cf4e1557d79c | [
"MIT"
] | permissive | armbrustlab/flowPhyto | 4662446253ed6dd621dd6796aa24ec4d533b44c0 | d527eac8a7aa3e0370e70809dbb885e44901717a | refs/heads/master | 2021-01-19T22:10:58.695221 | 2018-03-27T18:18:23 | 2018-03-27T18:18:23 | 8,489,994 | 2 | 0 | null | 2018-03-27T18:18:24 | 2013-02-28T22:56:24 | R | UTF-8 | R | false | false | 2,576 | r | Define.R |
## DEFINE DEFAULT POPULATION DEFINITION PARAMETERS ##
POP.DEF <- data.frame(
abrev = I(c('beads','synecho','crypto','cocco','diatoms','prochloro','ultra','nano','pico')),
title = I(c('Beads','Synechococcus','Cryptophyte','Coccolithophores','Elongated','Prochlorococcus','Ultraplankt... |
a94f7f873fe0ebf16babfea827dbc309ec0cc620 | f4b3038c65c88be7c460ae7d1ef73fab7e3221fa | /man/check_rhat.Rd | 46e45702b3f93e9a78fd452b0e4ebfe87209f85d | [] | no_license | cran/BayesianFROC | 8d74c554f82adbf3f73667a5b7eebb5174b4dbad | 9abf77e16c31284547960b17d77f53c30ea0d327 | refs/heads/master | 2022-02-04T14:54:01.788256 | 2022-01-23T06:22:43 | 2022-01-23T06:22:43 | 185,827,147 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,522 | rd | check_rhat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_rhat.R
\name{check_rhat}
\alias{check_rhat}
\title{Diagnosis of MCMC sampling}
\usage{
check_rhat(StanS4class, summary = FALSE, digits = 3)
}
\arguments{
\item{StanS4class}{An S4 object of class \emph{\code{ \link{stanfitExtended}}} whi... |
b5bf8a5a16874bfa7bdafb3806a8b2e51afd9b3c | b7247d3a1ba418359e48f787b26700beca0c04be | /man/valorate.p.value.Rd | 9ca5ba1064d476b07621ec49d60a20ea0f3b04ef | [] | no_license | cran/valorate | fd564908042a6bd9a66b912afa8ec7b7740cffd8 | bd40ce2d0f20e5e4e9063b540c88a34206e361cb | refs/heads/master | 2021-01-21T20:53:04.294429 | 2016-10-09T23:23:03 | 2016-10-09T23:23:03 | 69,889,282 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,421 | rd | valorate.p.value.Rd | % File man/valorate.p.value.Rd
\name{valorate.p.value}
\alias{valorate.p.value}
\alias{valorate.p.value.sampling}
\alias{valorate.p.value.normal}
\alias{valorate.p.value.chisq}
\alias{valorate.p.value.gaussian}
\alias{valorate.p.value.weibull}
\alias{valorate.p.value.beta}
\alias{valorate.p.value.all}
\title{ESTIMATES ... |
8a71c0f650144a14c2314c47ee2ad8ab6754bee2 | 207341f87a5c7663caac36de2b58b6ccf1aff370 | /man/rand_meta.Rd | 9ae9c19a098d5fadf239f552e3e51280c08783d5 | [] | no_license | trevorjwilli/CommSimABCR | fa770ebd4938cf3f665f52d759deef4945750bc9 | 3ec64319b9e9b2b4ccf091f84905dbc3e9cb4469 | refs/heads/master | 2023-03-13T20:23:31.158520 | 2021-03-08T22:20:22 | 2021-03-08T22:20:22 | 269,144,264 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,099 | rd | rand_meta.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Utility_functions.R
\name{rand_meta}
\alias{rand_meta}
\title{Random metacommunity matrix.}
\usage{
rand_meta(N, S, J, min.spec = 2)
}
\arguments{
\item{N}{Numeric, the number of communities.}
\item{S}{Numeric, the number of species.}
\item... |
081a5f2ceaef5044c9296755c99e5e6cb7318605 | ad2f9444f76517f404238878fe7f788dc8c11197 | /R/plotting.R | 7423caa2cd64f8808c48d4493e467e7c282212a5 | [] | no_license | davidtgonzales/Bayesian-Fitting | 5a90e928d01f6b7577186a509bc6a4991cb0e591 | ea18f3ab444340fdadc17d9c01d33d74cb5f0f2c | refs/heads/master | 2016-08-11T12:50:18.827792 | 2016-01-22T03:37:41 | 2016-01-22T03:37:41 | 50,153,856 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,013 | r | plotting.R | PlotHist<-function(data,group,factor,units,range,side,colors){
#Plots histograms of each level in a group and factor in the same plot.
subset<-data[data$group==group & data$factor==factor,]
#colors<-rev(heat.colors(length(unique(subset$level))))
xrange<-c(range[1],range[2])
yrange<-c(range[3],range[4])
bord... |
91a30e80d0479ec4c4468ab60099e459c7415f15 | d8ad6a7bf9c6a19dbbe22f594f217e771400959f | /PredictionModel/generatingSocialModelPredictions.R | 9bdf55720c519ce5513e2cf66b1056d477b72012 | [] | no_license | jernlab/social-prediction | 4aa21cf1b029a4a9146a3671785aac4a600264ee | 46d6e8d70aea3ac0b66d862893d12500818255e6 | refs/heads/master | 2022-08-06T07:27:28.241082 | 2022-07-28T03:58:35 | 2022-07-28T03:58:35 | 250,059,121 | 1 | 0 | null | 2022-05-09T19:32:59 | 2020-03-25T18:29:45 | R | UTF-8 | R | false | false | 5,501 | r | generatingSocialModelPredictions.R | #Non-Social Model Predictions
library(purrr)
library(ggplot2)
computeModelPosterior_social<-function(t_total, t, t_total_info, b0, b1){
#t_total : The value of t_total in P(t_total | t)
#t : The value of t in P(t_total | t)
#gamma : gamma parameter (Not used in generating these pr... |
910b5dca1aca02cc78a8ae88ef2b4a0d67f8b715 | 884b0dd52cf742cf409025a6cf33bf4ab6dd97fa | /run_Analysis.R | 6f272f37b29f46d0ab1c1147ff322cf3be33cb41 | [] | no_license | JOMR92/gettingandcleaning | d6d228ab4e00f8d08506a1f017e8df3a0ced5f92 | 816d6c7099c6a883c7504e593aaf68ab93148d67 | refs/heads/master | 2020-03-14T09:45:59.585494 | 2018-04-30T04:03:13 | 2018-04-30T04:03:13 | 131,551,782 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,736 | r | run_Analysis.R | #Setting Working Directory
run_analysis.R <- traindata <- setwd("/Users/jomr/Desktop/Coursera/Cleaningdata/Proyecto final/UCI HAR Dataset")
#opening file that contains data labels
datalabels <- read.table("activity_labels.txt")
#opening and merging all the test data
testlabelsscript <- read.table("/Users/jomr/Desktop/C... |
c280eabd015fd66e77126f94bb31f1f9bffe5a16 | 001d55b6b688cb31a27f89346421425c18270bbe | /Script_1.R | fee260483589a80f43d57c442748b812e0e0237d | [] | no_license | sischmid/GIT_course | 4de5af2f4de5325a6beb5641450a89d5403ba60e | e6f2124d568f855f4bfd202870122541dbeb2a61 | refs/heads/master | 2020-11-25T18:58:16.757295 | 2019-12-18T10:12:42 | 2019-12-18T10:12:42 | 228,802,541 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 108 | r | Script_1.R | x <- seq(0,10)
y <- rnorm(11)
plot(y~x)
# after plotting calculate a linear model
m_1<-lm(y~x)
summary(m_1)
|
97e30a4a0bf0b1c6641b63722ea9f902e5697a0c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ecd/examples/ecd.sd.Rd.R | 19b66ee1db9bfb948093ef83138cd193bd0a64f2 | [] | 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 | 305 | r | ecd.sd.Rd.R | library(ecd)
### Name: ecd.sd
### Title: Standard deviation, variance, mean, skewness, and kurtosis of
### ecd
### Aliases: ecd.sd ecd.var ecd.mean ecd.skewness ecd.kurt ecd.kurtosis
### Keywords: stats
### ** Examples
d <- ecd(-1,1)
ecd.sd(d)
ecd.var(d)
ecd.mean(d)
ecd.skewness(d)
ecd.kurt(d)
|
74372c5b0d87e22bc2e790daf59a5be4e866b12f | bc19f618954a43fafd369c8dcee81bc0760683e5 | /src/simulate.R | 1eb439c34641a8eeb3ff793ff0802e62a2e1a2bb | [] | no_license | thisismactan/Canada-2021 | 08fbf6b856c1fa494c44663921c615afa071f899 | b12e8e83a76b7ac4d56f298f6bec53f1b31e8538 | refs/heads/master | 2023-08-16T23:21:48.700968 | 2021-09-20T13:16:17 | 2021-09-20T13:16:17 | 396,624,728 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 17,273 | r | simulate.R | source("src/poll_averages.R")
source("src/shape_2021_data.R")
regions <- c("Atlantic", "Quebec", "Ontario", "Prairie", "Alberta", "British Columbia", "The frigid northlands")
# Quickly fit models
district_results <- read_csv("data/district_results.csv")
votes_per_district <- district_results %>%
filter(year == 2019... |
b72d742aabf39c275fbd46b88b0dc6ce07860e92 | 2da570da5859c8a830e76d794fa17d042cd41ebc | /10 Correlation and Reg in R/04 Interp_Reg_Models/03 Fitt_Val_Res.R | 57f704e26814a1d058b0f86121523c169deab759 | [] | no_license | ArmandoReyesRepo/RCode | 85d5c8f36107936bfcbbdbf16dc9bb2ed1a0feee | 41c96dd0d4bc7762fad3cbeb46c3df4ee1444575 | refs/heads/main | 2023-05-12T16:29:25.970647 | 2021-06-04T09:01:34 | 2021-06-04T09:01:34 | 373,320,037 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 238 | r | 03 Fitt_Val_Res.R | library(openintro) ## data bdims
library(broom) ## in order to get data from fitted model
# Mean of weights equal to mean of fitted values?
mean(bdims$wgt) == mean(fitted.values(mod))
# Mean of the residuals
mean(residuals(mod))
|
afb17e22ffbedb1eafacd577a12e2bb46b0fa632 | faf1f580595ad6912c1184858792870d88b965ff | /scripts_old/scripts/espectro_v_movil02.R | 5036a26ae88f0b02885f1d58728387e96e6db23d | [] | no_license | EncisoAlvaJC/TESIS | 732cb07f5488a388ad4b6f2417717a6262817c0d | c2bad0f255e7d5795d2ac63c80e65e3d752ea5f8 | refs/heads/master | 2021-01-09T05:34:36.738141 | 2018-08-08T20:46:52 | 2018-08-08T20:46:52 | 80,755,604 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,695 | r | espectro_v_movil02.R | library(signal)
data_d = 'C:/Users/EQUIPO 1/Desktop/julio/DATOS'
#center_d = 'C:/Users/EQUIPO 1/Desktop/julio/scripts'
nombre = 'CLMN10SUE'
#nombre = 'MJNNVIGILOS'
nom_dir = '/CLMN10SUE'
#nom_dir = '/MJNNVIGILOScCanal'
#etiqueta = 'CLMN'
dir_datos = paste0(data_d,nom_dir)
dir_res = 'C:/... |
f362ad3689756c441f9e6243226a0a56c43d3d4a | 27ec1587ce6f4b7092b61d5ef0971cc37e89b816 | /AdiposeTissue_adj.R | 55aeb93ff3855b35f1079749f4c46cb306fe9c5c | [] | no_license | DannyArends/BachelorThesisCode | 69300ab4867bc5ed313fd2f5892b33911528e48a | 3d60457b238be16cdbf3e4c3f37c501419b3b278 | refs/heads/master | 2020-05-16T10:22:45.617252 | 2019-04-23T09:38:45 | 2019-04-23T09:38:45 | 182,981,970 | 1 | 0 | null | 2019-04-23T09:32:47 | 2019-04-23T09:32:47 | null | UTF-8 | R | false | false | 7,638 | r | AdiposeTissue_adj.R | # Analysis of weight of WATgon, WATsc and BAT
# (c) Danny Arends and Aimee Freiberg (HU Berlin), 2018 - 2024
# load data
setwd("/Users/aimeefreiberg/Documents/Universtiy Bachelor/AG Brockmann/Bachelorarbeit/R_Data")
mdata <- read.table("Organs.txt", sep="\t", row.names=1, header=TRUE, na.strings = c("","NA"))
Genoty... |
572041890eba61f8a1d4307100a78abcade87036 | 77157987168fc6a0827df2ecdd55104813be77b1 | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829791-test.R | 0d6501bc1fc680a129c80ec5335c2c945548b9da | [] | no_license | akhikolla/updatedatatype-list2 | e8758b374f9a18fd3ef07664f1150e14a2e4c3d8 | a3a519440e02d89640c75207c73c1456cf86487d | refs/heads/master | 2023-03-21T13:17:13.762823 | 2021-03-20T15:46:49 | 2021-03-20T15:46:49 | 349,766,184 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 427 | r | 1615829791-test.R | testlist <- list(Beta = 0, CVLinf = 9.96472095782093e-101, FM = -1.40001632617123e+149, L50 = 0, L95 = 0, LenBins = 1.29860727674822e-231, LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = -7.02707720788345e+182, SL95 = 9.99313099513286e-222, nage... |
99adaee9b716b68c5f3aab9784a052511644df90 | 391d5c76ec69b89c726b35b263a98529fac2e59a | /Module_C/044_arbeitsblatt_04.R | c6efa3fa26c5e967b85576fe5defd462a197c76e | [] | no_license | qualityland/ZHAW_CAS_Data_Analysis | 760e5e1325ccab65bb9fcc13d9609648d9ff0ee8 | 4268d6e16d1689e5c32f2229bf724947ad3f607b | refs/heads/master | 2021-01-06T19:58:47.144476 | 2020-07-10T16:11:22 | 2020-07-10T16:11:22 | 241,469,897 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 397 | r | 044_arbeitsblatt_04.R |
# Aufgabe 1 - Stock Market
library(ISLR)
data("Smarket")
# data.path <- '/Users/schmis12/wrk/studio/ZHAW_CAS_Data_Analysis/Module_C/data/'
# load(paste0(data.path, 'smarket.rdata'))
# a)
dim(Smarket)
summary(Smarket)
str(Smarket)
table(Smarket$Year)
ts.plot(Smarket$Today)
train_set <- Smarket[Smarket$Year < 2005,]... |
fe4a3104ed74e9d0bbd9397c214daddab2681bd9 | bf33e089f6fc6326500193f47c0757c1753d0296 | /R/bndovbme.R | 04f4fe178fd757fd28d252c3d7bb74b3ef5e9742 | [] | no_license | yujunghwang/bndovb | b98a2d1e7ac198aa6c04fa950a61cc085b7be63a | dc4479bacc5e598282233f51c7c04670ccaba530 | refs/heads/main | 2023-07-15T05:35:01.284331 | 2021-08-26T17:34:20 | 2021-08-26T17:34:20 | 347,130,710 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 27,797 | r | bndovbme.R | #' @title bndovbme
#' @description This function runs a two sample least squares when main data contains a dependent variable and
#' every right hand side regressor but one omitted variable.
#' The function requires an auxiliary data which includes every right hand side regressor but one omitted variable,
#' and en... |
aae0958ec56b89d3c4070f3ecc46730701c7fd7d | 66f9ae7985c6849f898e5139ad2bea5f1431744a | /InterviewPractice/sudoku2.R | 64326ada8ea0da40fac6a70ec99ca59ff3951ef1 | [] | no_license | chaegeunsong/RCodePractice | 697d97c586d1fe46cc3b1283393976047098caf8 | b1a2c6bb74956522fda851a72cbb7b980ef57cb4 | refs/heads/master | 2023-07-05T23:16:25.732456 | 2020-11-26T08:31:00 | 2020-11-26T08:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,609 | r | sudoku2.R | # Sudoku is a number-placement puzzle. The objective is to fill a 9 × 9 grid with numbers in such a way that each column, each row, and each of the nine 3 × 3 sub-grids that compose the grid all contain all of the numbers from 1 to 9 one time.
#
# Implement an algorithm that will check whether the given grid of number... |
c0181a5d83081725cb79db5dbfd117c1579e36f3 | a709bd69a0e768f37703f970cd95e7511297e776 | /data/create_alc.R | 194643bc2a0f72cc81e6288cf727288466333231 | [] | no_license | YuliyaSkakun/IODS-project | b4139a42c9a16cc15bcc8710e030a6f0ef087585 | 0113b9cbdcd08c4f2f98c8d74c7f122b97a72fd5 | refs/heads/master | 2021-01-11T16:03:11.527307 | 2017-02-24T18:44:32 | 2017-02-24T18:44:32 | 79,991,849 | 0 | 0 | null | 2017-01-25T07:15:59 | 2017-01-25T07:15:59 | null | UTF-8 | R | false | false | 2,024 | r | create_alc.R | # Name: Yuliya Skakun
# Date: 07.02.2017
#The file is containing the information on the alcochol consumprion of students in Portugal (resource: https://archive.ics.uci.edu/ml/datasets/STUDENT+ALCOHOL+CONSUMPTION)
#Read The CSV file
setwd("/Users/skakunyuliya/IODS-project/data")
math <-read.csv("student-mat.csv",sep=";... |
92b2d69650db679181904ab47bc1591e8ac6863b | 52c0fed455b5829b2016ec418204fd1df3429bf9 | /scriptsWRS/Epigenetics_WRS.R | 9aaff8c48e3268da4d4a155715a887c438869200 | [] | no_license | wrshoemaker/JanthinoViol | 286ad91661d1bfed9a4254090490f7a1be62e41a | 1f392becd0deac5d34494df6f80b780beb4abd0a | refs/heads/master | 2020-04-01T22:17:34.806792 | 2017-02-20T17:31:40 | 2017-02-20T17:31:40 | 39,451,977 | 0 | 1 | null | 2015-07-27T03:50:02 | 2015-07-21T14:57:27 | R | UTF-8 | R | false | false | 1,139 | r | Epigenetics_WRS.R | rm(list=ls())
getwd()
setwd('~/github/JanthinoViol/data/')
getwd()
library(ggplot2)
library(lattice)
library(lsmeans)
library(multcompView)
library(plyr)
library(reshape)
epi <- read.csv("EpigeneticsViolacein_07272015_WJB.csv", header = T)
epi.melt <- melt(epi)
qqnorm(epi.melt$value)
wilcox.test(epi$Aza, epi$Control,... |
2d4f2da2853962b500ca5283073fc4ea95520816 | f779b7bd7020d47e669765c6309d0bf7d113d91e | /ExploratoryDataAnalysis1/plot3[1].R | e3e910fbce9437c5b81e46194a0e66011f1d8d24 | [] | no_license | dwong0021/DataScienceProjects | 6160f285aa94803728d364fbfb62cfa794664614 | 4cd5cac96b1a0ea2b00370548837ac200b196ace | refs/heads/master | 2021-09-05T06:22:03.831043 | 2018-01-24T19:10:09 | 2018-01-24T19:10:09 | 118,806,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 697 | r | plot3[1].R | #plot 3
plot3<-function(x="large"){
with(sub_power, plot(timestamp, Sub_metering_1, type="l", xlab="", ylab="Energy sub metering"))
lines(sub_power$timestamp, sub_power$Sub_metering_2, type="l", col="red")
lines(sub_power$timestamp, sub_power$Sub_metering_3, type="l", col="blue")
if(x=="small"){
legen... |
f90b89d1cfbd4e075f812d20e4b19840ef582a45 | 77eee201446603d4e25a363063bb0d2f0008ed75 | /man/parLapply_wrapper.Rd | a728ce69432a3cb6182f1325abfcdb12b476f7b5 | [] | no_license | ada-w-yan/reassortment | a1c684cbc06a39bf5d712aa16df16945290aac13 | 7173ff6b84f150f8daaeefd179e6dc7146a9fe6a | refs/heads/master | 2023-03-30T03:14:17.963386 | 2021-04-08T05:43:33 | 2021-04-08T05:43:33 | 156,770,485 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 493 | rd | parLapply_wrapper.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_functions.R
\name{parLapply_wrapper}
\alias{parLapply_wrapper}
\title{wrapper for parLapply for cluster}
\usage{
parLapply_wrapper(run_parallel, x, fun, ...)
}
\arguments{
\item{x}{first argument of lapply}
\item{fun}{second argument... |
5ffb47aff20229d2a26538a9b1864730289ec478 | 1a4f6b9c90f3bd3ed60a65e4a93c9cdb3a0f2126 | /Result/Histogramplot_overall.R | d79eccab50a0d8e227ef803ebeb09ce7a1104820 | [
"MIT"
] | permissive | diaoenmao/MIREX-Audio-Melody-Extraction-Data-Analysis | 48ebf6b41c00b2a6e64bac8d1d9e4530e0e05bce | 9a1c8c5d5c12b8fe6b000590586103c62b0f838d | refs/heads/master | 2023-05-26T23:43:42.372443 | 2018-03-30T23:05:20 | 2018-03-30T23:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,551 | r | Histogramplot_overall.R | Histogramplot_overall <- function() {
mir09_0db<-DataOverallAccuracy("mir09_0db")
adc04<-DataOverallAccuracy("adc04")
mir05<-DataOverallAccuracy("mir05")
ind08<-DataOverallAccuracy("ind08")
mir09_m5db<-DataOverallAccuracy("mir09_m5db")
mir09_p5db<-DataOverallAccuracy("mir09_p5db")
Length<-max(length(mir09... |
622948161429a0414167e64eede8d3b53ad728e3 | c88b0cbeda0edf9e745e324ef942a504e27d4f87 | /longevity/eLife revision/__modWeighting.R | 793555e80893ff3b7e62c323c70fe372ac7a276c | [] | no_license | Diapadion/R | 5535b2373bcb5dd9a8bbc0b517f0f9fcda498f27 | 1485c43c0e565a947fdc058a1019a74bdd97f265 | refs/heads/master | 2023-05-12T04:21:15.761115 | 2023-04-27T16:26:35 | 2023-04-27T16:26:35 | 28,046,921 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 56,515 | r | __modWeighting.R | ### Models to weight and aggregate
library(frailtypack)
library(parfm)
library(AICcmodavg)
### How can the specification vary?
# x2
# In/exclude Origin
# x2
# In/exclude sex
# x2
# Leave confounded
# Residulaize data by DoB
# x4
# Method used
# pwe - piecewise equidistant
# pwp - piecewise percent
# wb - Weibul... |
3f6f0b70298c9ea3559cb9a89f885237e418064a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/PerformanceAnalytics/examples/chart.ACF.Rd.R | e5368bc70c0af427e7e33273fdcc9781d62f9e56 | [] | 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 | 235 | r | chart.ACF.Rd.R | library(PerformanceAnalytics)
### Name: chart.ACF
### Title: Create ACF chart or ACF with PACF two-panel chart
### Aliases: chart.ACF chart.ACFplus chart.ACFplus
### ** Examples
data(edhec)
chart.ACFplus(edhec[,1,drop=FALSE])
|
fd05e2832cd31b885dc308bd651b171ac4cac52d | daa9f4956f44861ac9e1e946ba70b80b7961cb2a | /man/lgb.save_model.Rd | 3d73cfccdb3147b10b0362031f8537e1fa9e36e6 | [] | no_license | 6chaoran/suw | 8f0a89003ef5b13916d0da181a8a063667b6d928 | 148220991a578d66cd80360138de76883471b6f4 | refs/heads/master | 2022-11-21T03:31:43.176205 | 2020-07-28T12:27:42 | 2020-07-28T12:27:42 | 277,235,745 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 621 | rd | lgb.save_model.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_lightgbm.R
\name{lgb.save_model}
\alias{lgb.save_model}
\title{lgb.save_model}
\usage{
lgb.save_model(bst, model.dir, model.id = "", verbose = T)
}
\arguments{
\item{bst}{boosting model from \code{lgb.train.cv}}
\item{model.dir}{base p... |
43f36cb55bb24ffa3676a9902696b928bad0100c | 9b7888b0b9ecab83ac55e020d2c59917d6452f39 | /R/translatePattern.R | 9b97cd1c8ea71ec01788cf438391dedb74311512 | [] | no_license | jianhong/ChIPpeakAnno | 703580b9ce6a7708f60d92a78a3714bc9d82a562 | d2136538718c58881a420c9985c53c6e89e223f4 | refs/heads/devel | 2023-08-22T15:29:29.888828 | 2023-07-25T14:57:28 | 2023-07-25T14:57:28 | 186,652,664 | 10 | 6 | null | 2023-09-01T20:48:22 | 2019-05-14T15:41:28 | R | UTF-8 | R | false | false | 1,263 | r | translatePattern.R | #' translate pattern from IUPAC Extended Genetic Alphabet to regular expression
#'
#' translate pattern containing the IUPAC nucleotide ambiguity codes to regular
#' expression. For example,Y->[C|T], R-> [A|G], S-> [G|C], W-> [A|T], K->
#' [T|U|G], M-> [A|C], B-> [C|G|T], D-> [A|G|T], H-> [A|C|T], V-> [A|C|G] and
#' ... |
b3e235bc731597db3f210125017c3f9d045e2515 | 6aee3782cc2969eec39e9bddeddb799e6733f5c2 | /Data608/hw3/Q1/global.R | fb56e29e7acba1b1a366c83208a4eaa7d720a754 | [] | no_license | talham/CUNY | 7ab32980c98044945d32a848552946a1f8c03bff | 9491fad9ece55e66c9da7fb46b11528258a5201b | refs/heads/master | 2023-08-11T10:52:21.237501 | 2023-07-28T23:28:42 | 2023-07-28T23:28:42 | 63,563,053 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,011 | r | global.R | #load the data
#Question 1
#As a researcher, you frequently compare mortality rates from particular causes across
#different States. You need a visualization that will let you see (for 2010 only) the crude
#mortality rate, across all States, from one cause (for example, Neoplasms, which are
#effectively cancers). ... |
aa30e0688acfd1d69ba3a4da7b6fb0f6662830f9 | 0fc113f4f05e6c0cfde50df7b6f3d784bb0e2a6c | /Replication Codes/main_TablesFigures.R | 6e076f263ae7a6f22190d4d78d6763a95893a9de | [] | no_license | gvschweinitz/ES_18_The-Joint-Dynamics-of-Sovereign-Ratings-and-Government-Bond-Yields | 96a0ab927da25a3fa35524ffa30a43c36ad3e94a | 224360fb55f1041b23d579e9619a56704d8190ee | refs/heads/main | 2023-01-24T02:01:15.397095 | 2020-12-01T09:28:57 | 2020-12-01T09:28:57 | 316,429,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,917 | r | main_TablesFigures.R | # This script creates all Tables and Figures in
# "The joint dynamics of sovereign ratings and government bond yields"
# Makram El-Shagi and Gregor von Schweinitz, Journal of Banking and Finance (2018)
library("plyr")
wd <- getwd()
load(paste(wd,"/ratingfirst_asym.RData",sep=""))
source(paste(wd,"/estim_smooth_post_b... |
0797cb403d5c3094cd6f76b32dc391b9f3042a6d | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googleadexchangebuyerv14.auto/man/marketplacedeals.update.Rd | 323042bd03bd188273838e8344028deaacd4fcc6 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,081 | rd | marketplacedeals.update.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adexchangebuyer_functions.R
\name{marketplacedeals.update}
\alias{marketplacedeals.update}
\title{Replaces all the deals in the proposal with the passed in deals}
\usage{
marketplacedeals.update(EditAllOrderDealsRequest, proposalId)
}
\argume... |
0d2e403a914de59897fa53f45b013b39c16d255b | af545d1594c0aca08e84a6bc2742df962521695e | /Chapter 6/Exercise 6.40.r | 195edb8671af420ea7f7b2038de1f78fd4d69309 | [] | no_license | kmahoski/Statistical-Data-Analysis-in-R | 9da43ae5339d568cd98f19b8c8ad1c472f5c98b2 | 309f85c1284e4691e5670172f2619b75a292dd12 | refs/heads/master | 2021-01-22T11:37:36.858625 | 2014-11-10T21:53:17 | 2014-11-10T21:53:17 | 25,942,516 | 1 | 0 | null | 2014-11-10T21:53:17 | 2014-10-29T21:35:08 | R | UTF-8 | R | false | false | 238 | r | Exercise 6.40.r | grades <- c(
94, 90, 92, 91, 91, 86, 89, 91, 91, 90, 90,
93, 87, 90, 91, 92, 89, 86, 89, 90, 88, 95,
91, 88, 89, 92, 87, 89, 95, 92, 85, 91, 85,
89, 88, 84, 85, 90, 90, 83)
hist(grades, breaks = 10, freq = FALSE, main = "Histogram")
|
98c62a1f18267cd2db06b00c723e030687bf30cd | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/jointseg/examples/PSSeg.Rd.R | 279d9fee9b94266c4ef7da321cced5df2d5ec22d | [] | 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 | 620 | r | PSSeg.Rd.R | library(jointseg)
### Name: PSSeg
### Title: Parent-Specific copy number segmentation
### Aliases: PSSeg
### ** Examples
## load known real copy number regions
affyDat <- acnr::loadCnRegionData(dataSet="GSE29172", tumorFraction=0.5)
## generate a synthetic CN profile
K <- 10
len <- 1e4
sim <- getCopyNumberDataByR... |
62053902b1a7734c2055b22db9ff106c6c37c0ba | 28d72a611b0ed6a056eb19384fad1b34177e84cc | /R/tidysig_contexts_and_palettes.R | e2fa5bdc1ee0e259895cb8c379425c2140fdd8b7 | [
"MIT"
] | permissive | edawson/tidysig | 2cec0a509a5b8a4eb94b8c5e249426ac5406ca81 | 15d02819f64779b31db986875728b60fd3b3946c | refs/heads/master | 2021-07-22T02:10:09.320220 | 2020-04-28T19:24:46 | 2020-04-28T19:24:46 | 243,092,054 | 4 | 1 | MIT | 2020-04-28T18:26:52 | 2020-02-25T20:08:17 | R | UTF-8 | R | false | false | 2,143 | r | tidysig_contexts_and_palettes.R | #' A list of the SBS96 mutational contexts
#'
sbs_96_contexts <- c("ACA","ACC","ACG","ACT","ACA","ACC",
"ACG","ACT", "ACA","ACC","ACG","ACT",
"ATA","ATC","ATG","ATT","ATA","ATC",
"ATG","ATT","ATA","ATC","ATG","ATT",
"CCA","CCC","CCG","C... |
854cb1de7fc8cde35a088c647921ae9e1f068a53 | 38b32e829e7325e446d2a72ccf846cd03de76b4b | /R/funcs.R | b17eb4649dcab912d757b2206ea39d1cf07886cb | [] | no_license | fawda123/Pteropod_biomarker | b638e452f987d09592270f481c829d467f37c308 | e132f3613627105a9a210db80572569ee376e2a4 | refs/heads/master | 2021-08-29T00:51:13.625532 | 2021-08-10T22:50:52 | 2021-08-10T22:50:52 | 123,340,327 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,999 | r | funcs.R | # function for formatting p-values in tables
p_ast <- function(x){
sig_cats <- c('**', '*', 'ns')
sig_vals <- c(-Inf, 0.005, 0.05, Inf)
out <- cut(x, breaks = sig_vals, labels = sig_cats, right = FALSE)
out <- as.character(out)
return(out)
}
# vif function
vif_func<-function(in_frame,thresh=10,tr... |
9cd3916fd5ac1139ad24a41231c0fce182da1226 | e15b42c221e5dc8f5daf1e3d61233c453512950b | /regex_program.R | 006d76033129d4ca3d36a2bcba3659a6deccdc37 | [] | no_license | r3sult/blogpost_codes | 4c62f1b8ae5243583f702b717a759214e386862f | 66643265bf9a766b641e39f712076f3753584417 | refs/heads/master | 2020-12-23T07:38:34.277606 | 2019-12-09T19:19:01 | 2019-12-09T19:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 344 | r | regex_program.R | # install.packages("devtools")
#devtools::install_github("VerbalExpressions/RVerbalExpressions")
library(RVerbalExpressions)
strings = c('123Abdul233','233Raja434','223Ethan Hunt444')
expr = rx_alpha() %>% rx_word() %>% rx_alpha()
stringr::str_extract_all(strings,expr)
expr = rx_digit()
stringr::str_extra... |
0feac5f6631e7e20e475b79c56b1d2b2563db76e | 050560ef74831a7e07d4838ef452c75498c7df64 | /plot4.R | da4e04a8cb7819fd9f4fa16dfc92177a272f220a | [] | no_license | Mehwishmanzur/ExData_Plotting1 | 8ac87fb44fd135d584a79e75e599493093ee532b | e53e7711e149a1b0804aadfd9596f1f341882ae1 | refs/heads/master | 2022-11-13T23:06:55.601839 | 2020-07-04T23:47:19 | 2020-07-04T23:47:19 | 277,170,796 | 0 | 0 | null | 2020-07-04T19:11:45 | 2020-07-04T19:11:44 | null | UTF-8 | R | false | false | 1,588 | r | plot4.R | # Reading and subsetting power consumption data
mydata <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
# Extracting data from 2007-02-01 to 2007-02-02
subdata <- subset(mydata, mydata$Date== "1/2/2007" | mydata$Date =="2/2/2007")
# Extracting the missing values
globalActivePower <- as.numer... |
8a0e27b0a83dc9dd1ed1a1d526a7404e85281a4b | 167bf75c84a25eba1bb7c64fc35ceaacb1cce833 | /Scripts/poster/Script-Simulação-TCMM.R | 0b0905a381c7ae59e3c6067c148297b68682884f | [] | no_license | AndrMenezes/mcp | f03c6c48483536e1d19650e5570cf15419c4441d | f8a3ba4cd713181238ce7a38381d57150fa1f285 | refs/heads/master | 2020-05-17T04:20:59.148064 | 2019-04-25T20:51:49 | 2019-04-25T20:51:49 | 183,506,331 | 1 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 4,334 | r | Script-Simulação-TCMM.R | rm(list = ls())
options(digits=22)
# Bibliotecas -------------------------------------------------------------
pacotes = c("PMCMR", "plyr", "agricolae", "mutoss" ,"doParallel", "foreach")
sapply(pacotes, require, character.only=T)
# Functions-----------------------------------------------------------------
ngroup<-3
n... |
cc2ebf28d4705c9e62a3a036dbd0985b3b058d0b | 723dd688a43484c81621e4a51090bfe0c35d894e | /Src/gka_pvalues_test2.R | 8e088d7a8cb51cc44d9c8526ae46c8f3f67a4900 | [] | no_license | XingLLiu/Stats-Modelling-for-Streaming-Data | f3cab8cd97377e3111a8e57f70d57682e5a1df99 | 3b91b4fd420671a29f9957a8e69757e7855aee57 | refs/heads/master | 2020-03-24T18:01:20.924329 | 2019-11-03T11:54:26 | 2019-11-03T11:54:26 | 142,879,584 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,895 | r | gka_pvalues_test2.R | alpha <- 0.05
F <- 'qnorm'
h.u <- qchisq(0.99, 2)
h.l <- qchisq(0.95, 2)
learn.time <- 200
count.limit <- 5
phase.no <- 2
new.phase <- 0
epsilon <- 2/N
gka.summary <- data.frame(matrix(NA, ncol=3, nrow=1))
colnames(gka.summary) <- c('v','g','delta')
gka.summary.temp <- data.frame(matrix(NA, ncol=3, nrow=1)... |
491ba19f4382acff340d6b2ad08c483f359ffabf | 1a3bcb6ded9b096bab999ae2d0273a8185358101 | /linear_trend_keras_distributed_diff_scale.R | c964dd17361c3a077cc188a806c598c540fac34c | [] | no_license | kevinykuo/timeseries_shootout | f609a2e379707d82e17ed5b16beb43f22c85027d | dec72bf19fddaef74df5779f0ad26bcf8436b977 | refs/heads/master | 2020-03-21T06:58:57.468690 | 2017-10-08T05:44:29 | 2017-10-08T05:44:29 | 138,253,388 | 0 | 1 | null | 2018-06-22T04:09:26 | 2018-06-22T04:09:26 | null | UTF-8 | R | false | false | 4,891 | r | linear_trend_keras_distributed_diff_scale.R | source("common.R")
source("functions.R")
model_exists <- TRUE
lstm_num_predictions <- 4
lstm_num_timesteps <- 4
batch_size <- 1
epochs <- 500
lstm_units <- 32
model_type <- "model_lstm_time_distributed"
lstm_type <- "stateless"
data_type <- "data_diffed_scaled"
test_type <- "TREND"
model_name <- build_model_name(mo... |
4334e0f62389c31dd477ec4fba68bf484d5984c1 | 65cf52c828adc878b56ef555b10e6470eb76b176 | /MechaCarChallenge.R | 1980f3b95820390fbe9f2ebb80cc86d9ca6525cb | [] | no_license | zubair-bakori/MechaCar_Statistical_Analysis | e4958bf85e7bcb5db17a100a2d85cfaf43ce9955 | 99cc142dabe7870e31a601fdb17c6710e51ca48e | refs/heads/main | 2023-06-05T19:42:18.408293 | 2021-06-13T20:27:33 | 2021-06-13T20:27:33 | 376,277,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 853 | r | MechaCarChallenge.R | library(dplyr)
mecha_table <- read.csv(file='MechaCar_mpg.csv',check.names=F,stringsAsFactors = F)
mecha_lm <- lm(mpg ~ vehicle_length+vehicle_weight+spoiler_angle+ground_clearance+AWD,data=mecha_table)
summary(mecha_lm)
suspCoil_table <- read.csv(file='Suspension_Coil.csv',check.names=F,stringsAsFactors = F)
suspCoil... |
075482cb51179cf942b61b1baab8381e8483b3ef | 92a0a36d871911d433474d2af7ce02acca90b375 | /make.table-significant.R | a0dcd3fcf5d9cd03e3eff7ac3baaab1f9747298d | [] | no_license | YPARK/ad-multipheno | 07f5c24f6b02034e091da59aeaf625b8e2365579 | aa81caa776cdcad47e680905054a47e7e8187933 | refs/heads/master | 2021-05-15T11:44:48.971948 | 2017-11-02T20:30:32 | 2017-11-02T20:30:32 | 108,270,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,059 | r | make.table-significant.R | library(feather)
library(dplyr)
library(readr)
library(xlsx)
library(pander)
options(stringsAsFactors = FALSE)
mwas.tab <- read_feather('table_mwas.ft')
mwas.boot.tab <- mwas.tab %>%
mutate(p.val = pnorm((lodds -boot.lodds)/boot.lodds.se, lower.tail = FALSE)) %>%
mutate(p.val.2 = 2*pnorm(abs(theta -boot.thet... |
f63e3eba74633356a3645346c348760510709934 | 5baa70ee7d86d979b210a84f7b872ab4370d8161 | /regularization/linear-regression/script.R | 7fb3919470df030b4a7b3b55b40e606ea281b76f | [] | no_license | abhishek10045/ml-algo | 953fc4f09d82c4366f2c3d8db7dcbdc58062a3af | 8c3e6bf8d17af962f5058db5c749dc380d0625c8 | refs/heads/master | 2020-06-01T12:13:59.267473 | 2019-06-07T16:29:07 | 2019-06-07T16:29:07 | 190,775,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 916 | r | script.R | hypothesis <- function(theta, x) {
x %*% theta
}
cost_function <- function(theta, lambda, x, y) {
(sum((hypothesis(theta, x) - y) ^ 2) + (lambda * sum(theta[-1] ^ 2))) / (2 * length(y))
}
partial_derivative_cost_function <- function(theta, lambda, x, y) {
((t(x) %*% (hypothesis(theta, x) - y)) + (lambda *... |
e29eb0d70852ce015619d8fe1c8f0255d6a2f076 | eb6fad9bee922702d9857bab56ea818126145806 | /R/auxiliary_functions.R | 560861c9fc1a3c650990a96444a91623634aee14 | [] | no_license | CodingMyLife/HulC | ee8530eea7d8f20479b45dedfee3c5789944671d | 20ceb936057d52d438907531db5eaf147537e745 | refs/heads/main | 2023-05-31T07:08:18.395157 | 2021-06-20T15:45:52 | 2021-06-20T15:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,473 | r | auxiliary_functions.R | ## For non-negative Delta and t, set
## Q(B; Delta, t) = [(1/2 - Delta)^B + (1/2 + Delta)^B]*(1 + t)^{-B+1}
## The following function finds the smallest B for a given t such that
## Q(B; Delta, t) <= alpha.
solve_for_B <- function(alpha, Delta, t){
if(Delta == 0.5 && t == 0){
stop("Delta is 0.5 and t = 0. The es... |
fba23c776ba7abf3f3d3106b4fa88b12791aa496 | 2056ddda0938e24584348f0c94bb4b836155c552 | /Toll/Models for Draft 3.R | bb73b5e66b2f77bd190e5ee7df0874dab8abb30f | [] | no_license | KristopherToll/WaterRights | 0a18ebef52d1b46ac7f35737ab19c89468f123ea | 9a55dd76885af6f131466d67f347a4bfbeab6708 | refs/heads/master | 2021-01-22T04:14:49.107955 | 2018-09-22T00:25:40 | 2018-09-22T00:25:40 | 81,521,978 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,449 | r | Models for Draft 3.R | ## Third Edition Revised Models ##
# Sales Models
library(stargazer)
library(lmtest)
library(sandwich)
library(car)
library(plm)
library(readr)
MasterData_Sales <- read_csv("C:/Users/Kristopher/odrive/Google Drive/Water Transfer Project/Modified_Data_Models/MasterData_Sales.csv")
options(scipen=99999)
#MasterData_... |
65c29baf8f52156740aeb72ae82fdbceb70970c2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/condformat/examples/rule_text_color.Rd.R | 807b5271c823d5d5efecbed52f0814f726668433 | [] | 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 | 301 | r | rule_text_color.Rd.R | library(condformat)
### Name: rule_text_color
### Title: Give a color to the text according to some expression
### Aliases: rule_text_color
### ** Examples
data(iris)
condformat(iris[c(1:5, 51:55, 101:105),]) %>%
rule_text_color(Species, expression = ifelse(Species == "setosa", "blue", ""))
|
388afe08615e2f8ce247851087c598dce4c381bb | 177b2a2a500f1bba0bbc17931ce44171831eedf3 | /obsolete/GOF.R | 3412eeda1a4f93805f7dbc9173a2bd60f4391652 | [
"MIT"
] | permissive | RossRaymond/srt.core | 4e72f7f95268536bdd5c4458edc78af979c3b6db | b27fbe095abf34eb663f2d2838816250620d19f6 | refs/heads/master | 2021-05-13T11:44:44.993859 | 2017-02-13T19:29:09 | 2017-02-13T19:29:09 | 117,137,286 | 1 | 1 | null | 2018-01-11T18:29:02 | 2018-01-11T18:29:01 | null | UTF-8 | R | false | false | 1,608 | r | GOF.R | #Akaike Information Criterion (p -> number of model parameters and lnL -> log-likelihood value)
AIC <- 2*p - 2*lnL
#PSSE
#data1 is tVecHoldOut and data is tVec
PSSE <- function(n,data,data1){
MVF_PSSE <- aMLE*(1-exp(-bMLE*data1))
n=length(data)
mtFitSum=0
for(i in 1:length(data1)){
mtFitSum= mtFitSum+(mtFi... |
d92c13e8c626efa585e8b9a5e1932934f3236a60 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/msBP/examples/msBP.Gibbs.Rd.R | 182cd52b038ff59d2b383943e16ce15a1d668230 | [] | 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 | 1,808 | r | msBP.Gibbs.Rd.R | library(msBP)
### Name: msBP.Gibbs
### Title: Gibbs sampling for density estimation for msBP model
### Aliases: msBP.Gibbs
### ** Examples
## Not run:
##D data(galaxy)
##D galaxy <- data.frame(galaxy)
##D speeds <- galaxy$speed/1000
##D set.seed(1)
##D #with fixed g0 and random a, b
##D fit.msbp.1 <- msBP.Gibbs(sp... |
d0c80f8a6f43330bb1b6f25a05a39b1caed71ea6 | 8105d46b2ae06b7bb76d3c0ab0fc195b687bd750 | /R/trendpostprocess.R | 3f56c91d4fd72064a0d0d55470b9904ac686e492 | [] | no_license | tnkocis/stReamflowstats | c8f0d8b905afccd40fc5a280f17378de4ba800bf | 0fc1c7ff1eb024e8434ee5898884e02e95fa7b51 | refs/heads/master | 2020-04-12T02:25:09.302694 | 2017-07-01T01:43:56 | 2017-07-01T01:43:56 | 34,279,048 | 0 | 3 | null | 2015-04-24T21:38:07 | 2015-04-20T18:37:04 | R | UTF-8 | R | false | false | 18,825 | r | trendpostprocess.R | # TODO: Add comment
#
# Author: tiffn_000
###############################################################################
trend3monfilesdams <- dir("C:\\Users\\tiffn_000\\Documents\\GIS\\Active_sites_final\\Data\\trends\\mon3\\dams")
trend3mondams <- vector("list", length(trend3monfilesdams))
for(i in 1:... |
9e3399fbcfb8573f9868ec483e49a314712bec62 | 293678cfb6f4d1adc88d101ce50e3f525065906a | /Pregunta2a/solucion01.r | 2be7d04953cf0e3ea750c1abf91ec44f0e38d596 | [] | no_license | kzapfe/ExamenOPI | 719d026dcb65dcb7b8c7036ef49585df897c2a7c | 3d34fc89a0f2b4d700e7b7a1caf559c5662e0216 | refs/heads/master | 2021-01-12T02:08:50.038377 | 2017-01-11T07:30:08 | 2017-01-11T07:30:08 | 78,477,122 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,032 | r | solucion01.r | ### cargamos los datos
octubre<-read.csv("datos/octubre2016.csv")
noviembre<-read.csv("datos/noviembre2016.csv")
diciembre<-read.csv("datos/diciembre2016.csv")
datos<-rbind(octubre,noviembre,diciembre)
write.csv(datos, "DatosEcoBiciTresMeses.csv")
##funciones que ayudan a agrupar por dia y hora
library(lubridate)
#... |
bed29883117f931de8934cc3013f49bdf68b48e1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/lhs/examples/maximinLHS.Rd.R | 1d38433a480e4e5a3d6a45d25e2a2bc69824c912 | [] | 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 | 378 | r | maximinLHS.Rd.R | library(lhs)
### Name: maximinLHS
### Title: Maximin Latin Hypercube Sample
### Aliases: maximinLHS
### Keywords: design
### ** Examples
maximinLHS(4, 3, dup=2)
maximinLHS(4, 3, method="build", dup=2)
maximinLHS(4, 3, method="iterative", eps=0.05, maxIter=100, optimize.on="grid")
maximinLHS(4, 3, method="it... |
1bc90e4150b3cae5176e8e592df2e85372add0da | 30021b050897c3735578064e4d77f1b6e39c8e5b | /ggedit/R/aesSlide.R | a8f9e32c83fa00076968cc2b65eba7eed6242152 | [] | no_license | elisendavila/ggedit | f03b2cdcdb6e72356cb3ec0f3026d674f3e7aba2 | cb451efa49f0cc105a6eadf36f03162a41fb043f | refs/heads/master | 2020-12-31T00:01:15.200868 | 2017-02-28T15:06:22 | 2017-02-28T15:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 302 | r | aesSlide.R | #' @export
#' @keywords internal
aesSlide=function(type){
list(type=sliderInput,
args=list(inputId = paste0('pop',toupper(type)),
label = type,
min = slideDefaults[[type]][1],
max = slideDefaults[[type]][2],
value = NA)
)
} |
c6f3f79a1ef0abbffa432b6bf2a9bd342ab05a83 | 08b6ca491f91acd9227c76c0f0f844a5fc84366c | /AOI_management/AOI-context.maps.R | 4735bcc0e39ae1a17cf322e3c41482dba012c136 | [] | no_license | ncss-tech/compare-psm | 555575ee05833889be7beff332442017bc1d5fc4 | 642af0dbfac03dbf2508ac7844c5829ac6af43f6 | refs/heads/master | 2023-04-15T05:37:29.734452 | 2022-09-14T19:38:31 | 2022-09-14T19:38:31 | 307,587,398 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,739 | r | AOI-context.maps.R | ## 2020-12-11
## D.E. Beaudette
## AOI context maps, using soil color at 25cm as background
options(stringsAsFactors = FALSE)
library(raster)
library(rasterVis)
library(sp)
library(sf)
library(spData)
library(rgdal)
library(ragg)
# gNATSGO CRS
gNATSGO.crs <- '+proj=aea +lat_0=23 +lon_0=-96 +lat_1=29.5 +lat_2=45.5... |
2506199e7a06544500315b4ac0c4152d9d2d7de7 | 66641f2005a8f958bac216b99413a51c354257d0 | /regresssions.R | 12062321e80cfcb0eb66e89e62b79ad2c5b410db | [] | no_license | anishshah23/IMDb-5000-Data-analysis | b66b4f1b123cd60d1a6d74d82905d8750f6be244 | 6542537e9d1ae2989228fd7f2b35ac5fa22c0f80 | refs/heads/master | 2020-04-07T09:35:56.613023 | 2018-11-30T08:53:47 | 2018-11-30T08:53:47 | 124,200,663 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,509 | r | regresssions.R | library(leaps)
library(lars)
usa <- read.csv('usa_string_genre_dummies.csv',header=TRUE)
usa_train <- usa[1:1000,]
usa_test <- usa[1001:1494,]
y = usa_train$imdb_score
x1 = cbind(usa_train$duration, usa_train$director_facebook_likes, usa_train$adj_gross, usa_train$cast_total_facebook_likes, usa_train$facenumber_in_post... |
03b5fbe1f7947502c993134953a9c50a17f8e9d4 | 4288bddd9cfcda360e438c1bb5670437dc7d4e15 | /cachematrix.R | d594bfe2d4efc6ff743d33ca0f07e887ae9373d7 | [] | no_license | mgenty/ProgrammingAssignment2 | c9589aacc1014c9e30580abc8274bcc4352a6102 | 3cc6ac2d86fab0f7d0ab900458ec60cd895ab845 | refs/heads/master | 2020-04-05T18:30:38.688944 | 2014-11-10T21:26:27 | 2014-11-10T21:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,854 | r | cachematrix.R | ##
## ==========================================================================
## This File Is Comprised Of Two Functions That Cache The Inverse Of A
## Given Matrix. The First Function Creates A Special "Matrix" From The
## Passed In Matrix That Is Capable Of Caching Its Own Inverse. The Second
## Function Comput... |
fddcefaa41b982341a3f87e1c9f4b53e2c092e6e | 5ada63667fdfb87eaff4a087e70c6f5a4267ea74 | /R/OutcomeImputationCOXMH.R | 076d94462a2bc08c7e5edd24c836694afc6a2e61 | [] | no_license | lbeesleyBIOSTAT/MultiCure | d3a00f23e40c87b4e984e2e315b50ee0a9226056 | f33c994ce2aa2565f0163c9a559fccad2ab277ab | refs/heads/master | 2022-02-03T21:46:32.511343 | 2019-07-08T16:10:44 | 2019-07-08T16:10:44 | 103,183,325 | 3 | 2 | null | 2017-09-11T20:34:18 | 2017-09-11T20:14:41 | null | UTF-8 | R | false | false | 7,317 | r | OutcomeImputationCOXMH.R |
#' UNEQUALCENSIMPUTECOXMH
#' @description The function UNEQUALCENSIMPUTECOXMH will perform an imputation algorithm to handle unequal follow-up for recurrence and death. This function can be applied when we assume COX baseline hazards. This function performs imputation using a Metropolis-Hastings algorithm. The proposa... |
fd9e82982b7e7c984fff2684954dddf1a12f62b2 | 8179582231291aa2cc71e8d17ada982439342e80 | /final_configuration_script.R | afce302b4e67a9a2f847facb039086eda4afbecb | [] | no_license | kmm0155/Final_Project_BIOL7180 | 2df9d99bb82472ae5d2c900a93c6da8b8631df5a | d9e9f55c130d257102bb7707d29e351ae459b443 | refs/heads/master | 2021-05-22T21:41:07.200870 | 2020-04-20T13:15:25 | 2020-04-20T13:15:25 | 253,108,522 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 15,765 | r | final_configuration_script.R | # Final Project- Creating a Professional 3-D Figure Using GGplot within R
# Contributors- Tori Coutts, Kaitlyn Murphy, and Megan Roberts
# This script will be used after starting up the R atmosphere in which GGplot will be ran.
# Sets current working directory to where R will be ran and graphs will be saved
#setwd("/... |
f25a0dd5621fd38c2f6f2d052348564ecb8c81cc | e5f9aec08da8ac7eaf3a1fdddd7888e17b6caa84 | /trace_RNASeq.R | 686fb31d16df3d9984e7aa81b6765d27e9770f40 | [] | no_license | aarthitalla10/Makamdop_Talla_Sharma_etal_UgandaInflammation | a9e226eabb6784157f30437e4f473b1794fab484 | 1e70db490048e2dc41cdc5004cfc8e3060cada48 | refs/heads/master | 2022-06-20T13:12:03.645401 | 2020-05-04T23:44:56 | 2020-05-04T23:44:56 | 261,319,465 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50,315 | r | trace_RNASeq.R | ######################################
# Load required libraries
######################################
suppressPackageStartupMessages(library(package = "gdata"))
suppressPackageStartupMessages(library(package = "EDASeq"))
suppressPackageStartupMessages(library(package = "edgeR"))
suppressPackageStartupMessages(li... |
d32293145a9a1c6c99f81a8ab5412a74ac6d4151 | 4c2a1cd436b7b490ada40eecd50daa97d0fa7874 | /man/permtest.Rd | 8d7a614143618d8862c2e8eeaefcb52761274360 | [] | no_license | cran/skills | 69332c93124af975f4f85f9387d3c3c2d1066f1b | 0e7719442f9e181cb83e3fffb6a3f607a29735b7 | refs/heads/master | 2021-04-26T16:49:32.033515 | 2011-02-18T00:00:00 | 2011-02-18T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,314 | rd | permtest.Rd | \name{permtest}
\Rdversion{1.1}
\alias{permtest}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Permutation test of random assignment of items to skill sets
}
\description{
The function \code{permtest} computes the p-value of a permutation test.
}
\usage{
permtest(eKS, tKS, model)
}
%- maybe als... |
1e877c527dda8cb43336586e556fd02ebb0bd31a | 5ffbd32cadcb617d432bf2b6944a8ee29ba94956 | /plot4.R | 7b36e1fccefdfd82d6b05ce0501ebca27a830d69 | [] | no_license | masroorrizvi/ExData_Plotting1 | 78de0a57fd8b680dff211356341e2c93b8ac9bcb | 0ea646b1e23df820941264de9b3edeb4b6eb18a7 | refs/heads/master | 2021-01-17T21:31:14.584951 | 2015-02-06T10:09:13 | 2015-02-06T10:09:13 | 30,302,136 | 0 | 0 | null | 2015-02-04T14:18:36 | 2015-02-04T14:18:35 | null | UTF-8 | R | false | false | 1,464 | r | plot4.R | library(datasets)
library(data.table)
#1 read and subset the data
df.project <- fread("./household_power_consumption.txt", sep = ";", header = T, colClasses = 'character')
df.project <- subset(df.project, df.project$Date =="1/2/2007" | df.project$Date =="2/2/2007")
#4 Create a png file with required dimentions
png<-... |
38db2827ac152d629e687d24cd412a71a442b99d | 4964e91d693fb65cb576e7a804629e4e5fa09c4d | /Project_Jongpil.R | 9b7816abf6b5afc6ca4bde3371c0f574fff77ad8 | [] | no_license | Oscar-Rydh/R_Project | 9d9dafe82c3cde1ee6580e3081c4277358737f6b | 90833520b0cc1416d4c774c5567c0ba888d3f714 | refs/heads/master | 2020-03-18T09:30:54.399133 | 2018-06-08T09:46:29 | 2018-06-08T09:46:29 | 134,567,062 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,668 | r | Project_Jongpil.R | # read libraries and possible variables
library(tidyr)
library(reshape)
library(lfe)
# -------------------------Mean years of schooling----------------------------- #
meanschooling <- read.csv("Data_Jongpil/Mean years of schooling (years).csv", header = T, skip = 1)
meanschooling <- meanschooling[,apply(meanschooling... |
8e4b834d8ab2ccd3de0021f909a203f16c728994 | 7fab620b05791ba4c3cdbd55a1ebba30cc3aedce | /plot1.R | 721734014748d09cf3cbcebd7d078f16be467a8d | [] | no_license | datasciencecg/ExData_Plotting1 | edac36df8e33b28251bbb331565ae0aeb3ce2629 | db61be483c556e82255b931d7e431c33b0ff5c01 | refs/heads/master | 2020-04-01T21:52:44.248742 | 2015-01-11T19:53:21 | 2015-01-11T19:53:21 | 29,093,799 | 0 | 0 | null | 2015-01-11T14:12:49 | 2015-01-11T14:12:49 | null | UTF-8 | R | false | false | 570 | r | plot1.R | temp <- tempfile()
fileUrl <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileUrl, temp, mode="wb")
unzip(temp)
data <- read.csv("household_power_consumption.txt", sep = ";", header = TRUE, stringsAsFactors=FALSE, na.strings = "?")
data <- subset(data,Date=="1/2... |
68d71442ed2b075ac2d00489c80c71ed9dca70d9 | 6f9bf76b4b15278c8852d57309c9aa9ebcb0849e | /R/Backtrajectory.r | 7ab8a8f06dbf59ae7f1ca22a018e0addfc28742c | [] | no_license | songnku/COVID-19-AQ | 7d82aad2d43c0671513635b841515c098579641b | ebfbc16db532e65d7762d65b86ce302344bd6bfa | refs/heads/master | 2023-06-23T09:01:04.975371 | 2021-07-15T11:21:40 | 2021-07-15T11:21:40 | 277,182,517 | 8 | 4 | null | null | null | null | UTF-8 | R | false | false | 6,460 | r | Backtrajectory.r | library (openair)
library(lubridate)
library(latticeExtra)
library(ggplot2)
# require(devtools)
# install_github('davidcarslaw/worldmet')
library(worldmet) ## download_met_data
library(mapdata)
dataDir="D:\\Hysplit"
setwd(dataDir) ### Set the working directory
workingDirectory<<-dataDir ### Shortcut for the working... |
f744b4dd163e2692ec6fa385ab73ea44468bef9c | 4b5035e6a1c7f31c66e0641c8ff9ce3ad8e8421d | /R/plotting.R | 154dab2a566fbf91d8dd8c55d6b9ce3bf76566ed | [] | no_license | alanrupp/rnaseq | 6a398eb474fdf5da2c825b781542191b31af3626 | ed440183dd2c582d3c49b01434cc370b0a897dbf | refs/heads/master | 2021-06-26T08:59:10.595555 | 2021-02-24T20:38:09 | 2021-02-24T20:38:09 | 210,405,308 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,463 | r | plotting.R | library(tidyverse)
library(ggrepel)
library(wesanderson)
library(ggdendro)
# - Read depth ----------------------------------------------------------------
# ENCODE suggests read depth > 30M
read_depth <- function(counts) {
depth <- colSums(select_if(counts, is.numeric))
return(depth)
}
# - Plot count data -------... |
c1345a4d5208dfdfb2955cf278c26e6e9dfae655 | c51ca43d4e5be4cce45281acd89f2bb3c0294ea2 | /binomialConfidenceIntervalStrip.R | 4c2b4e40046c536bde2cd71f8e2c7f3902aa2e47 | [] | no_license | professorbeautiful/bioinf2118 | e9d6adf2c8b596a1fab239301e511999e0d9f401 | aa70f61333119372680fb66d34be350aa9947c39 | refs/heads/master | 2022-07-19T02:22:20.667851 | 2022-06-27T20:35:11 | 2022-06-27T20:35:11 | 116,890,225 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,021 | r | binomialConfidenceIntervalStrip.R | nFlips = 10
thVec = seq(0,1,length=1000)
sampleSpace = 0:nFlips
plot(sampleSpace, sampleSpace/nFlips, xlab="# heads", ylab="theta")
alpha = 0.05
title(expression( paste("Set product: ", bolditalic(X) ~~ X ~~ Phi ) ))
for(theta in thVec) {
upperTailProb = 1-pbinom(q = (0:nFlips) - 1, size = nFlips, prob = theta)
... |
63ccf1cca23df7fce2609753f10d42ab628f180a | f32dbf645fa99d7348210951818da2275f9c3602 | /man/GETARAIC.Rd | 8527e01e945414f27ab37b4fa694c711a8b02c84 | [] | no_license | cran/RSEIS | 68f9b760cde47cb5dc40f52c71f302cf43c56286 | 877a512c8d450ab381de51bbb405da4507e19227 | refs/heads/master | 2023-08-25T02:13:28.165769 | 2023-08-19T12:32:32 | 2023-08-19T14:30:39 | 17,713,884 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 1,068 | rd | GETARAIC.Rd |
\name{GETARAIC}
\alias{GETARAIC}
\title{Auto-Regressive AIC estimate of arrival time}
\description{
Auto-Regressive AIC for arrival estimate, signal detection
}
\usage{
GETARAIC(z4, DT = 0.008, Mar = 8, O1 = 2, O2 = 0.2, WW = 2, T1 = 1, PLOT = FALSE)
}
\arguments{
\item{z4}{signal time series}
\item{DT}{sample ... |
f37ce4a0cf93d2fb8a048ecc64bd970d595ea5a9 | 787a1e3d204941edbb9b7f1e8aab0646acb4c810 | /vignettes/titan2-intro.R | e444c6d4694493b6792053e64ca37a6214cf3bf5 | [] | no_license | dkahle/TITAN2 | 34088052b5e96efa8994883eeaf3290dc00acac6 | 142f4fdade5b295cd4687edc907a651b6aa55568 | refs/heads/master | 2021-03-27T20:29:59.582472 | 2020-12-07T15:31:01 | 2020-12-07T15:31:01 | 54,793,609 | 11 | 4 | null | 2019-05-23T17:13:51 | 2016-03-26T18:36:11 | R | UTF-8 | R | false | false | 5,246 | r | titan2-intro.R | ## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo=TRUE, collapse=TRUE, error=TRUE, comment = "#")
## -----------------------------------------------------------------------------
library("TITAN2")
## ------------------------------------------------------------... |
ca14e13118e9fda328aa70d758f9d29e6308b2ce | 277dbb992966a549176e2b7f526715574b421440 | /R_training/실습제출/신부근/chartExam2.R | b1fd024b5c2b191660345a3205f8e8d186cda453 | [] | no_license | BaeYS-marketing/R | 58bc7f448d7486510218035a3e09d1dd562bca4b | 03b500cb428eded36d7c65bd8b2ee3437a7f5ef1 | refs/heads/master | 2020-12-11T04:30:28.034460 | 2020-01-17T08:47:38 | 2020-01-17T08:47:38 | 227,819,378 | 0 | 0 | null | 2019-12-13T12:06:33 | 2019-12-13T10:56:18 | C++ | UTF-8 | R | false | false | 302 | r | chartExam2.R | mpg <- as.data.frame(ggplot2::mpg)
#1
plot(mpg %>% select(cty,hwy),pch=3,xlab="도시연비", ylab="고속도로연비")
#2
barplot(table(mpg$drv),col=c("red","green","blue"))
#3
boxplot(hwy~manufacturer,data=mpg,las=2,col=heat.colors(5),main="*제조사별 고속도로 연비*",col.main="hotpink")
|
87b4ca7c4a296c93606560055cf489cb74680688 | a2b6ffe232365dee6652e8c705ff44bdc8afd95f | /R/ridge_regression.R | 0e3b8036b19e4b8f238caab363cff9af1e4f0f94 | [
"MIT"
] | permissive | maggiegreco/regress431 | b8bb7cbea9739d55805e197aff2a3aa41ed4a0d9 | cf4006515f7b0af232cdedf491b156c46baf0488 | refs/heads/master | 2022-07-26T21:15:08.058075 | 2020-05-14T01:37:22 | 2020-05-14T01:37:22 | 264,350,489 | 0 | 0 | MIT | 2020-05-16T03:25:42 | 2020-05-16T03:25:42 | null | UTF-8 | R | false | false | 1,626 | r | ridge_regression.R | #' Implements ridge regression with many predictors
#'
#' This function computes coefficients for ridge regression
#' All columns of the provided data frame are used as predictors, except the
#' one specified as a response.
#'
#' No interaction terms are included.
#'
#'
#' @param dat A data frame
#' @param response The... |
420555be89759bcf39684f4f394c146b14f46078 | 5a492644406411750fde2f78ff9aa3a2030c6297 | /YKL_Upregulated_Radar_Plot.R | a252fd90287239b9a4c9ac93898e17cb39bbd9dc | [] | no_license | linlabcode/olson_YKL5124 | e8155fe3f974cbbbf3bfcbb83af4888d9421a01d | 6f69fa77cff5421001186a5e3b9f27c33d7d74f2 | refs/heads/master | 2020-04-11T09:17:03.248361 | 2018-12-20T17:38:20 | 2018-12-20T17:38:20 | 161,671,952 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,821 | r | YKL_Upregulated_Radar_Plot.R | ### YKL UPREGULATED RADAR PLOT ###
### INSTALLING PACKAGES FOR RADAR PLOTS ###
install.packages('fmsb')
library(fmsb)
### IMPORTING CUFFNORM DATA ###
setwd('/Users/DanPark1116/Desktop/BCM_Materials/Year_Two/CDK7_Analysis/CDK7_GRAY_cuffnorm/log2fc_pvals/')
ykl_dmso_wt_low = read.delim('CDK7_GRAY_HAP1_WT_DMSO_R_vs_HAP1... |
82fba0fe96b8e93a0caf5a2a666ba1ab5ce1b8a1 | cabba0f2805396625c8a900422fbd1ada79c368b | /datascience-master/functions/generate_logit_probability.R | d5cdf99a2d075382b5652e5c6df350b81e42480d | [] | no_license | goughgorski/clusteryourself | b7184e79c1da8b905441298d34a87e8455db4e0e | ba207e05d3478ebf01dc21c258e15d49064a4061 | refs/heads/master | 2020-09-07T06:53:24.829770 | 2019-11-22T20:30:56 | 2019-11-22T20:30:56 | 220,578,163 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 263 | r | generate_logit_probability.R | generate_logit_probability <- function(cluster, coef_table){
tmp <- coef_table[, c('model_name', as.character(cluster))]
tmp$score <- 1/(1 + exp(-coef_table[, as.character(cluster)]))
tmp$cluster <- cluster
return(tmp[, c('model_name', 'cluster', 'score')])
} |
6124f2df62ea9d7f8d73a6d9f503d3ccbc0a01f4 | ef567cee0d5cdce6b6e6a0b4d517acb97c1974af | /R/list_unindexed_files.R | 6f0cb54793d46b74fecd4d2ef177a92117551ca0 | [] | no_license | znerp/labBook | 4086b5779374d2d9726466f1665e87d96f0a89e6 | 455c89d025bb51e59b5efddf222bec83ae5a5b29 | refs/heads/master | 2021-05-11T06:37:59.619526 | 2018-01-18T14:56:07 | 2018-01-18T14:56:07 | 117,993,672 | 0 | 0 | null | 2018-01-18T14:30:40 | 2018-01-18T14:30:40 | null | UTF-8 | R | false | false | 3,663 | r | list_unindexed_files.R |
labBook_listProjects <- function(index_content){
# Strip stuff before project section
index_content <- labBook_isolateProjectSection(index_content)
# Strip project names
project_names <- strsplit(x = index_content, split = '<div class="project">')[[1]][-1]
project_names <- gsub(".*<h3>(.*?)</h3>.*$", "\\1... |
abebac2af778b75bf239595a66919475568958bc | e127968280caa872ea7479f88a5b9b1c29849cf1 | /R/examples/get_subsamp.R | 0141ff3150311d008acf20380d30aec5155b07ca | [] | no_license | gilesjohnr/hmob | 7a03882f8487027e5bf775aa3729f45ab0acc3b2 | a999c1f83d55b96b30cb8d48e4a90ac0036268df | refs/heads/master | 2021-07-07T23:58:00.771489 | 2020-08-06T18:49:40 | 2020-08-06T18:49:40 | 168,587,776 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 225 | r | get_subsamp.R | load('./data/duration_data_arrays_3day_full.Rdata') # y.month, y.route, y.pop
subsamp <- get.subsamp(y.route, min.locations=30, min.samp=10)
district.subset <- dimnames(subsamp)$origin
trip.map(as.numeric(district.subset)) |
024e8b1a306cdaa15cad7dea5781ed6b222e6bc8 | 59cf96a46be440960fb6eb384bdcf110630272f3 | /R/getMetaData.r | 281d558c75afa9b0e76675df357857c2ca0ba032 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | Kevin-M-Smith/dataRetrieval | bd750ac230f1012cec75de65dbc0d41047c062fe | 7e939ef1e2bd471cb2d7578f43e3b423ce758a69 | refs/heads/master | 2021-01-24T21:18:47.464196 | 2014-11-04T00:29:09 | 2014-11-04T00:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,612 | r | getMetaData.r | #' Import Metadata for USGS Data
#'
#' Populates INFO data frame for EGRET study. If either station number or parameter code supplied, imports data about a particular USGS site from NWIS web service.
#' This function gets the data from here: \url{http://waterservices.usgs.gov/}
#' A list of parameter codes can be fou... |
115e7889f87f3c0956b9447d78b66159e2879c78 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/staRdom/examples/eem_read_csv.Rd.R | 6cdc4cbfdeb35d643eb347148e76083d47dd6fd9 | [] | 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 | 222 | r | eem_read_csv.Rd.R | library(staRdom)
### Name: eem_read_csv
### Title: Import EEMs from generic csv tables
### Aliases: eem_read_csv
### ** Examples
eems <- system.file("extdata/EEMs",package="staRdom")
eem_list <- eem_read_csv(eems)
|
f4a0b90e8fbfbc683b2210e4a5adcf1292d1a2ad | 0bfc2cd362f202b5afa608592e4731787ff54a0a | /Iso_DE_Analysis.R | e65de323c29c2637c1b158a993271540137e23ad | [] | no_license | atrassierra/DE-Analysis | 1b2f2726bad9eecbe2a5553ea4e583a518b9dc62 | c44236a255e3807cadfabb4a393d5799b02a741b | refs/heads/master | 2020-07-28T02:34:37.828263 | 2019-09-18T11:34:16 | 2019-09-18T11:34:16 | 209,281,551 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,023 | r | Iso_DE_Analysis.R | rm(list = ls())
library(EBSeq)
setwd("/home/antonio/Escritorio/isoformas/")
# Leemos los datos
data <- read.csv("brca_iso_read_paired.txt", sep = "\t")
# Asignamos los grupos experimentales, en este caso Normales vs Tumorales
a <- colnames(data)
condicion <- as.factor(substr(a, nchar(a), nchar(a)))
# EBSeq necesita ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.