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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0f9eeaa8ba629e3e7c269a998d07f6a0f22e6c6 | c2977bf13e06740383d03325e9ca29a3b838b0e0 | /.cocult3_rarefy_simulation_scriptsnapshot.R | d965cd813360fb6fb4fdb00d1bf562d853201815 | [] | no_license | kijong-yi/cocult2 | e3f44e0372da8aa0a962e26e2662920405d516a0 | 361fde72f3c5c2ac89d6636c3fc83b2e331d34a8 | refs/heads/master | 2020-08-07T19:15:47.666210 | 2019-10-15T05:54:25 | 2019-10-15T05:54:25 | 213,558,547 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,229 | r | .cocult3_rarefy_simulation_scriptsnapshot.R |
# prep ------------------------------------------------------------------------------------------------------------
library(tidyverse)
library(iNEXT)
library(vegan)
library(doMC)
library(Hmisc)
registerDoMC(24)
counts <- read_tsv("tcr_counts.txt") %>%
as.data.frame() %>% column_to_rownames("count") %>% as.matrix()... |
02621ee8f942dfb8f6607b14e99bd675b8ac3d33 | 7a5d49b43c5d6f9a8131e9e38178d39ecc068081 | /man/ImportDataListQT.Rd | 2f362da54b96baaa39f37bfa95de6ba19fc05434 | [] | no_license | statistikat/mzR | 85ac986612990e6fd1dfd337a657a90ba271fd4e | dca98366ffa9032c0e926abe5579a1d1053424c7 | refs/heads/master | 2023-08-16T06:05:36.632937 | 2023-08-07T10:46:01 | 2023-08-07T10:46:01 | 57,034,956 | 2 | 0 | null | 2019-06-04T13:52:18 | 2016-04-25T11:03:05 | R | UTF-8 | R | false | true | 4,352 | rd | ImportDataListQT.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ImportDatalistQT.R
\name{ImportDataListQT}
\alias{ImportDataListQT}
\title{Sehr spezifische Funktion die MZ-Daten einliest um damit in weiterer Folge Tabellen im
MZ-Quartalsbericht-Format zu erstellen (hausintern).}
\usage{
ImportDataListQT(t... |
c8bb7099effcd54ca5c3563b57b98888789c5a09 | 719500684fceaf0a7a80ce663e9cf07802e10b9a | /R/make_unique.r | dceff29a2fbe8ad31a70cbeed311c4a1775d3b91 | [] | no_license | pbreheny/breheny | 964baf0670a9eb4975946eae66772d47d9affd11 | 3e15bb78a769616adb49ea50c800d026f48ef8e7 | refs/heads/master | 2023-08-09T18:34:35.865871 | 2023-08-01T15:38:54 | 2023-08-01T15:38:54 | 82,972,930 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 709 | r | make_unique.r | #' Ensure all entries in a string are uniquely labeled
#'
#' Leaves entries untouched if they are already unique; adds a suffix like '_1', etc. if necessary.
#'
#' @param x A character vector or something coerceable to a character vector.
#' @param sep Separator between label and suffix. Default: _.
#'
#' @examp... |
4cc277991d30dc99d1b5d30c1d38406d5cd8629c | 7579eefd2cc5b98f92eba70c85aea273a67df733 | /midterm 2/q2p4.R | a8e482ec72963bb4fdbb1093259a3c475e6af8a1 | [] | no_license | sebastianbugal/stat240 | 6a5ff7066f69bf8bcde48e3d91d91e18b531b08a | fb577283923fb760972a407d1551a2cb93258012 | refs/heads/master | 2021-02-09T13:45:10.225990 | 2020-03-08T09:05:13 | 2020-03-08T09:05:13 | 244,289,189 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 395 | r | q2p4.R | library(RSQLite)
library(DBI)
dbcon = dbConnect(SQLite(), dbname="stat240.sqlite")
names(dbReadTable(dbcon, "citiesP"))
query="SELECT DISTINCT rank2016, rank2011,name FROM citiesP "
a=dbGetQuery(dbcon, query)
nrow(a)
a
plot(a$rank2016,a$rank2011,ylab='Ranking of 2011', xlab= 'Ranking of 2016',pch=1, cex=0.5,)
#the ab... |
3a1daddd26c815ac6f99afe420cf5b33aa131f1a | 98ed3d4ea1681b651a14195e32c491e2e5aeaa43 | /DataScience/exploreData/densityPlot.R | 9ce0d4060d6707e62af7c5df96164cc3a71258f5 | [] | no_license | vineetyadav/DataScienceR | 6f793f5e1682844859f07ce52d2a71a3c4cb6551 | e6f8145671c10cc886d214e4a35e50cc5a30345b | refs/heads/master | 2022-05-09T03:57:16.694566 | 2022-04-17T07:45:37 | 2022-04-17T07:45:37 | 97,370,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 342 | r | densityPlot.R | # TODO: Add comment
#
# Author: bigdata
###############################################################################
#The scales package brings in dollor scale notation.
cusdata <-read.table('custdata.tsv',header=T,sep='\t')
#Set the x-axis labels in dollars
ggplot(cusdata)+geom_density(aes(x=income))+scales_x_co... |
5318c1f1afcc10276862e4349d2ddd9f0b494fa5 | 4ed821ee1d12c363ba500ffd3c4a5f7c04d5ba2e | /man/normal_deviates.Rd | e3a34e3be06b822d0e054c36fea4eab40e411841 | [
"CC-BY-4.0"
] | permissive | jrnold/datums | 25ea78a61bc61c027611756439c2fad50dca72ee | 66efd0d0873390420622558e126f9e22f579f464 | refs/heads/master | 2021-01-20T02:44:31.807859 | 2018-05-07T22:22:35 | 2018-05-07T22:22:35 | 81,639,460 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 731 | rd | normal_deviates.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normal_deviates.R
\docType{data}
\name{normal_deviates}
\alias{normal_deviates}
\title{100,000 Random Normal Deviates}
\format{An object of class \code{numeric} of length 100000.}
\source{
\url{https://www.rand.org/content/dam/rand/pubs/monog... |
a32b4569b3f650b28092533d8bd1d28f611230aa | 9c09ff539b6697ec5e2708300ffa2a26ad26577b | /man/makeOF.Rd | 5590127660c6bb376c2ed761278976b943761dfe | [] | no_license | cran/scdensity | 605e9a8fc30eb8e20bc481b7e3077796e96c526e | ebf65d7d6aade0b297d7679839e07167c35197e5 | refs/heads/master | 2021-09-05T18:47:14.124418 | 2018-01-30T09:52:26 | 2018-01-30T09:52:26 | 119,523,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 725 | rd | makeOF.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weightedKDE.R
\name{makeOF}
\alias{makeOF}
\title{A function factory for making the search objective function.}
\usage{
makeOF(P)
}
\arguments{
\item{P}{The list of problem details.}
}
\value{
The objective function.
}
\descript... |
48ed2d443ea61535e7dd0f9395db3287110a06b3 | 24d47dffee8d3443bfdbe1dc88ee2796b6a64ec9 | /workout01/code/make-shot-charts-script.R | f1f0e05b9f7d380a8bb0893f015921f4bbb10689 | [] | no_license | stat133-sp19/hw-stat133-SeungHugh | 7335e345d8f2675ec381ed008799e13af2c6bb5f | e956a1f5815a749893eae4d9e1cb18883265f275 | refs/heads/master | 2020-04-28T19:39:40.980249 | 2019-05-03T20:34:10 | 2019-05-03T20:34:10 | 175,518,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,113 | r | make-shot-charts-script.R | #title: Players' data's chart
#description: R code for plotting players' goal data
#input: shots-data.csv
#output: andre-iguodala-shot-chart.pdf, draymond-green-shot-chart.pdf, kevin-durant-shot-chart.pdf, klay-thompson-shot-chart.pdf, stephen-curry-shot-chart.pdf, gsw-shot-charts.pdf, gsw-shot-charts.png
install.pack... |
818d9f1c3aa9623dfce9396f2ee50556a518b747 | e49842b46d1f60d3bc4295d3b8d5bd60ab98dbf4 | /scripts/load_dataset.R | 214c832e84845a38cf814d82d283567fdbd7d044 | [] | no_license | Victinyx/GCR-ExpAI | 010b2baaaf3ec0363a6bfa44816fba80200672bf | e66cb4a0a66c3ef5470cfa54dc7ff2e95170ed3d | refs/heads/main | 2023-07-06T09:37:26.496742 | 2021-08-11T12:59:34 | 2021-08-11T12:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 239 | r | load_dataset.R | GCR <- read.csv('./data/german_credit_data.csv',
header = TRUE)
GCR <- GCR %>% select(-X, -Age)
set.seed(123)
GCR_split <- initial_split(GCR, strata = Risk)
GCR_train <- training(GCR_split)
GCR_test <- testing(GCR_split)
|
b7aa53bbf847af171f4a2f487d99aecacc646bcc | 8769749bb0a919299b66db7aaafa400d1d412469 | /archive/hiccup_loop/trials/refine_loop_pos.r | dc01dc9faaa50d10d5c23e9406fa79e8e17a6e54 | [] | no_license | bioinfx/cvdc_scripts | e9e113fae866d2d3f0c2515fae1b410b2d7a3eeb | d33757f9d02fa6d503b5cb65336c0e4e410caa78 | refs/heads/master | 2022-03-19T00:15:13.372417 | 2019-12-05T04:38:48 | 2019-12-05T04:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,497 | r | refine_loop_pos.r | a=read.delim("combined_loops.hiccup_refined.txt")
files= list.files(pattern="30k.txt",path="contacts_by_samples",full.names=T,recursive=T)
names = sub("contacts_by_samples/(D.._HiC_Rep.).contacts.30k.txt","\\1",files)
dat = list()
for (i in 1:12){
dat[[i]] = data.frame(fread(files[[i]]))
}
datm = Reduce(function... |
3ec5c1bc90f57a64fda3a20a3b7dc4ccdbd9135a | 479b469c906687ebc72f944166c641dc6b03979a | /src/mutmap/tools/install_r_dependencies.R | 283da0218a403c73ba4d36e48a4acc8cb971faa0 | [] | no_license | ultimatesource/dng-mutmap | bfdb74fd181ef382b76b40b6698614af51b53890 | b2d465ecef2bd15a98abb01f4fd7994c56a6630c | refs/heads/master | 2020-03-16T23:12:43.910276 | 2018-05-15T21:49:50 | 2018-05-15T21:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 226 | r | install_r_dependencies.R | #!/usr/bin/env Rscript
install.packages("kinship2", repos='http://cran.us.r-project.org')
install.packages("jsonlite", repos='http://cran.us.r-project.org')
install.packages("argparser", repos='http://cran.us.r-project.org')
|
0c37eae5b4d4a959d82a7d20c8f2a9a67a7dc18f | 0c06657ed29a61713f9a6347094a2d974f726183 | /data_miRNAs/12tissues_RPM/00MIRNA_tissues_specific_modH.R | 19faf94fdccda6b73f79210006c14f82c3e6dd8a | [
"MIT"
] | permissive | 19zhangt/sRNA_analysis_Maize | e353b558cc2f0bb29f64ef8563994e326cf920d0 | 8a7688a30f02f0a86b05bd820a8c7d7d110b2767 | refs/heads/master | 2020-09-11T00:01:09.139234 | 2019-11-15T08:49:34 | 2019-11-15T08:49:34 | 221,872,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,206 | r | 00MIRNA_tissues_specific_modH.R | # R
setwd("/home/zhangt/00projects_2019/01miRNAs_large_scale_maize/data_miRNAs/12_tissues_RPM/")
options(stringsAsFactors = F)
tukey.biweight <- function(x, c=5, epsilon=0.0001)
{
m <- median(x)
s <- median(abs(x - m))
u <- (x - m) / (c * s + epsilon)
w <- rep(0, length(x))
i <- abs(u) <= 1
w[i] <- ((1 - u... |
249dc620649a8011f67bb2bd80e88db5efb2acaf | 2469e9f76fb9454942ee729b4ebb86ab1bb72920 | /maps.R | d4185fc6bdb72496df00a5acc63191f96efefecf | [] | no_license | armanaghamyan/business_intelligence_project | 5be96a5927f6f9f4c7999b4e278f0a0ef9857d3f | dd92c6e2c6e803a103e18abc81cd20cbaf36cc96 | refs/heads/master | 2020-12-21T05:19:08.652829 | 2020-01-26T14:04:30 | 2020-01-26T14:04:30 | 236,320,052 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,528 | r | maps.R | library("leaflet")
# map of Armenia
armenia_map<-leaflet(options = leafletOptions(minZoom = 0,maxZoom = 18))
armenia_map<-addTiles(armenia_map)
armenia_map<-setView(armenia_map,lng =45.0382,lat=40.0691,zoom = 5.5)
armenia_map<-addMarkers(armenia_map,lng=44.5152,lat=40.1872,popup="Capital Yerevan",clusterOptions... |
bfed119c50b64a62fb0414aa1e8b8d6462e52acc | f6a1375e6453107cba75567ec0c3ba23a5ac7958 | /TopmedPipeline/man/writeBED.Rd | 12a98902c60e9e117f5ad0c6e60de9a6d3c16e03 | [] | no_license | UW-GAC/analysis_pipeline | 7c04b61c9cafa2bcf9ed1b25c47c089f4aec0646 | df9f8ca64ddc9995f7aef118987553b3c31301a1 | refs/heads/master | 2023-04-07T03:13:52.185334 | 2022-03-23T21:15:46 | 2022-03-23T21:15:46 | 57,252,920 | 42 | 30 | null | 2023-03-23T20:13:40 | 2016-04-27T22:25:56 | R | UTF-8 | R | false | true | 469 | rd | writeBED.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/locuszoom.R
\name{writeBED}
\alias{writeBED}
\title{Write a bed file to use as a track in a LocusZoom plot}
\usage{
writeBED(x, file, track.label = "")
}
\arguments{
\item{x}{data.frame with columns "chr", "start", "end"}
\item{file}{output ... |
cb21206f73f3ea9e886bd9e52fb1dea5e1170c6b | b599e97542c6df5add3e4b53586097705b10ce74 | /man/crudat2raster.Rd | aea4b5c733f7f809d80fd863a4c8ba32b78254a5 | [] | no_license | ajijohn/NicheMapR | 09c435107b9e4aa0fd5b7982510a65e76680f1ed | 98386659036cc55df840df7339af519a766b88d2 | refs/heads/master | 2021-01-09T05:34:23.544532 | 2017-01-28T07:29:16 | 2017-01-28T07:29:16 | 80,757,456 | 0 | 1 | null | 2017-02-02T18:51:23 | 2017-02-02T18:51:23 | null | UTF-8 | R | false | true | 464 | rd | crudat2raster.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crudat2raster.R
\name{crudat2raster}
\alias{crudat2raster}
\title{crudat2raster}
\usage{
get.global.climate(folder)
}
\arguments{
\item{folder}{Path to the folder you want to install the global climate data in}
}
\value{
cru.raster CRU data i... |
422c38c028840578090b26c67039e712e86d42a5 | cb5ce5ebc1048cba6edd5b1d1dc28f0b5c1a1df7 | /man/zzasym_compare.Rd | 63b7395de69e1398bd960e0bde136c67347c73c7 | [] | no_license | GeoBosh/Rdpack | 8ac7009f2d1838ffb99a73debd1818831bc521b8 | 1b97d7d52119204b7eef1528e9a7d5f30d4cc57c | refs/heads/master | 2023-08-31T06:56:19.147613 | 2023-08-21T15:39:43 | 2023-08-21T15:39:43 | 100,482,670 | 24 | 8 | null | 2019-07-25T10:44:22 | 2017-08-16T11:38:41 | R | UTF-8 | R | false | false | 1,719 | rd | zzasym_compare.Rd | \name{.asym_compare}
\alias{.asym_compare}
\alias{.ocompare}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Tensor comparison and asymmetric comparison between two vectors}
\description{Tensor comparison and asymmetric comparison between two
vectors.}
\usage{
.ocompare(x, y)
.asym_compare... |
94ec05b698519797ecc4b72be61c02511897b989 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/xoi/examples/ioden.Rd.R | d48aee9c39de608f65bd7c1f1e5862786021d341 | [] | 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 | 441 | r | ioden.Rd.R | library(xoi)
### Name: ioden
### Title: Distance between crossovers
### Aliases: ioden
### Keywords: distribution
### ** Examples
f1 <- ioden(1, L=200, n=201)
plot(f1, type="l", lwd=2, las=1,
ylim=c(0,0.014), yaxs="i", xaxs="i", xlim=c(0,200))
f2 <- ioden(2.6, L=200, n=201)
lines(f2, col="blue", lwd=2)
f3 <... |
7aa3aa8ef9b204f87dc84697442ce78b20807378 | 43bebf203c05f1b29c53716882efd80155970062 | /ui.R | f11e314092ea7ba637ac6ff393974c049926004b | [] | no_license | shengbing/shinyProject_dataproduct | 46f9ffbc3da1aba078959e1421003596c7627c1d | 71fae742dc2df3285f71dd7d1fb0dfbab7a61beb | refs/heads/master | 2020-05-19T17:19:47.141634 | 2014-11-16T05:36:28 | 2014-11-16T05:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,819 | r | ui.R | #ui.R
library(shiny)
shinyUI(fluidPage(
titlePanel("T distribution"),
sidebarLayout(
sidebarPanel(
helpText("Plot t-distribution with specified degree of freedom, and compute p-value for the t statistics you entered"),
... |
1909929d9fb82d873e0477dfb6c22db55e640917 | b28deaaed4d864a0211dc34c0785bd4210611a52 | /Riyadh Radhi Knn.R | a25a74ed06b3a5ad11c0d2b3f4bed2337ad99e44 | [] | no_license | riyadh-radhi/The-k-nearest-neighbors_machine_learning | 6a0b2fa7704cbc6502e517af1ed311d34c5265b2 | 399c0bb617093e5a0edf8bf61bd651bb9250decd | refs/heads/master | 2020-06-08T17:45:09.777398 | 2019-06-22T20:15:36 | 2019-06-22T20:15:36 | 193,275,697 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,453 | r | Riyadh Radhi Knn.R | library(MASS)
library(dplyr)
library(ggplot2)
library(rtf)
library(scales)
library(caret)
library(class)
library(pROC)
#1) Reading data and doing the subset
rm(list=ls())
df <- read.csv("Attrition.csv", stringsAsFactors = F)
set.seed(2019)
dfNew <- subset(df, select = c(Attrition,Age,DistanceFromHom... |
49c1a9eb6c2469105483c6d9966dc73d50779b54 | 1acbab2400012ebeec7b41487788df3bcd911095 | /r_scripts/4z_z_score_model_fit_inspection.R | d314750ee8fb3442df6c330629b941d7247479b2 | [] | no_license | FelixMay/FragFrame_1 | ac9be66ff5907f4e3215e6b41c673698fee1701d | d9fb53d8565df9a378c20bbb40ac7e550ee07b87 | refs/heads/master | 2020-12-24T06:25:03.090757 | 2020-06-02T08:41:28 | 2020-06-02T08:41:28 | 73,482,248 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 4,466 | r | 4z_z_score_model_fit_inspection.R | # need to execute 0_init_dirs_load_packages.R first
# code to plot visual inspection of models: trace plots, posterior predictive checks, residuals
load(paste0(path2wd, 'main_results/fragSize_z_score_ref.Rdata'))
meta <- read_delim(paste0(path2wd, 'data/new_meta_2_merge.csv'), delim =';') %>%
dplyr::rename(datas... |
af4309494a925dceed521c1193903a6b3289254a | c7ee9553b8b2e67bffeea0874db00dd1e7fdb541 | /R/ranktests.R | 98b8d68d837fc066e56a2ec38e847d051b3a01b0 | [] | no_license | cran/pdSpecEst | 2c80e79f2f5e6a64b2d017ccad56192519b3c3b8 | e8bc2a87aed91542fc804910f1556c7c24419fc1 | refs/heads/master | 2021-01-11T20:27:28.345499 | 2020-01-08T08:10:07 | 2020-01-08T08:10:07 | 79,120,097 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,181 | r | ranktests.R | #' Rank-based hypothesis tests for HPD matrices
#'
#' \code{pdRankTests} performs a number of generalized rank-based hypothesis tests in the metric space of HPD matrices equipped
#' with the affine-invariant Riemannian metric or Log-Euclidean metric for samples of HPD matrices or samples of sequences
#' (curves) of HPD... |
6de2349f9eb88367645c1c9dd1ff412b5fcdb408 | d25ffe6711f9b621f5cf3d9e0daed2ff5dba5d8a | /R/analyzePort.R | 8046b7153bdcb01b477f3c82559d8ea775df5368 | [] | no_license | bplloyd/CoreHF | 0313e782b3f199026e3e8db7273ce9e8bef3f78a | 2aae9c6817db0c3168d104d8654d2b180e3e6ce6 | refs/heads/master | 2021-01-21T11:24:05.395756 | 2017-07-20T14:01:11 | 2017-07-20T14:01:11 | 91,341,924 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,649 | r | analyzePort.R | #' @include portCalcs.R
analyzePort = function(R, weights = rep(1/ncol(R), ncol(R)), calcs = c("return.annualized", "std.annualized"), ...){
R.port = return.port(R, weights)
sapply(calcs, function(f)do.call(f, list(R.port, ...)))
}
analyzePorts = function(R, ports, calcs = c("return.annualized", "std.annualized"... |
a1fdfc6ecff879c7921812b9ac360810d67db170 | 57da4c759470db56761c7e35b86d93862d31dc87 | /exploredata2.R | 9b97d9e6082cbabd38f6a7ba0dcc610da3b9ec84 | [] | no_license | monita211/ExData_Project2 | 0e34da19ffbac2fc05ad016ed9e95f50ff49394c | e5c1a21af9f3c4663ac03be276f5e967f6b17a1e | refs/heads/master | 2021-01-15T21:45:09.083993 | 2015-04-24T14:33:48 | 2015-04-24T14:33:48 | 34,523,279 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,767 | r | exploredata2.R | #load data files
NEI <- readRDS("exploredataproject2/summarySCC_PM25.rds")
SCC <- readRDS("exploredataproject2/Source_Classification_Code.rds")
#load packages
load(ggplot2)
#Assignment
#The overall goal of this assignment is to explore the National Emissions Inventory database and
#see what it say about fine parti... |
ac6cc989b93001b79bfe2ef3ab2766792be58f52 | 154309a5a3ef4b595a0852f2eeaaeb44f270478b | /Prediction/modello_hierarchical_biv.R | a9769114c43477246e193858442a41b833a50c6d | [] | no_license | araiari/OECD-Bias-in-students-evaluation | e4dba46e2a96d6b64513cd3dc885f346794605b3 | be725d6946b1cfcfce752f9300554a23a173ed63 | refs/heads/master | 2023-01-11T00:00:31.673047 | 2020-11-17T14:50:03 | 2020-11-17T14:50:03 | 227,797,349 | 2 | 1 | null | null | null | null | WINDOWS-1252 | R | false | false | 3,090 | r | modello_hierarchical_biv.R |
rm(list = ls())
setwd("~/aa POLIMI/AA_Bayesiana/Progetto Pisa/predittiva")
library(rjags)
library(coda)
# for plots
library(ggplot2)
library(MASS)
library(tidyr)
library(dplyr)
library(purrr)
library(ggsci)
library(plot.matrix)
require(gplots)
require(ggpubr)
set.seed(49)
dati <- read.csv... |
79b3fea787675e335df465d215b2f94908f8e636 | b65abc4f3b8395a8cd1ad037055f1dfc4693cb94 | /R/TPEA.R | 13ef14049c7ec785001874d521570844aacb98fc | [] | no_license | cran/TPEA | 6aeabcb2d4fb9bb493a3804335f37b4474801346 | a5c1c4273bac35b2ef8ab0ff1f0367ac48b26f70 | refs/heads/master | 2021-01-18T17:40:12.141616 | 2017-06-25T14:42:32 | 2017-06-25T14:42:32 | 71,983,452 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,381 | r | TPEA.R | TPEA <-
function(DEGs,scores,n,FDR_method){
pkgEnv <- new.env(parent=emptyenv())
if(!exists("all_genes", pkgEnv)) {
data("all_genes", package="TPEA", envir=pkgEnv)
da1<-pkgEnv[["all_genes"]]
}
if(!exists("pathway_names", pkgEnv)) {
data("pathway_names", package="TPEA", envir=pkgEnv)
da2<-pkgEnv[["pathw... |
455591d8df2ea95a1cbe4afd916f9096b8ac2d9c | 8831241719a4fa9ded7fd627ab6df8af8512ded8 | /ps1_q3.R | 7b90ae0c4b5ca3cee211262b6e8c1d1a53598558 | [] | no_license | RuiruiZh/R-Stats506 | 4eab68eced329bbd6b56e60083e54d72f13aa1e6 | 1ab273e30591a8cd009ba84da9ae13e30ccd11bb | refs/heads/master | 2020-04-12T17:34:48.078157 | 2018-12-22T19:02:15 | 2018-12-22T19:02:15 | 162,649,795 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,711 | r | ps1_q3.R | ## STATS506 Fall 2018
## Problem Set 1 Q3
##
## This R script documents the analysis on the dataset about:
## RECS 2015 data
##
##
## Author: Ruirui Zhang, ruiruiz@umich.edu
## Updated: October 1, 2018 - Last modified date
#! Limit lines to 80 characters with rare exceptions.
# 80: -----------------------... |
aaa8cf96b6b83996c5371b6d0bec516f3c87b308 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/RPEXE.RPEXT/examples/umbrella.Rd.R | 5756400dc49388af4007aea53b959f56f3d77fa2 | [] | 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 | 213 | r | umbrella.Rd.R | library(RPEXE.RPEXT)
### Name: umbrella
### Title: Umbrella alternative.
### Aliases: umbrella
### ** Examples
data(pava_dfrd)
t_d = pava_dfrd[,1]
t = pava_dfrd[,2]
d = pava_dfrd[,3]
umbrella(t_d, t, d, 2)
|
6398818ea063d865eb42b8b8f839c5cf312573ec | b1608f6a7651f92b83f6e1305b0febddae4fbfc3 | /R/people.R | 96e5111c44764ecf87cb4f8f8046ba25501a909a | [] | no_license | stephstammel/consultthat | 36c0b26eea92cdeabc9ca71a391444c688c50f5d | 9e57813a5d16868164eb7506351da25a8449e779 | refs/heads/master | 2020-03-10T17:48:41.300445 | 2018-05-24T02:11:52 | 2018-05-24T02:11:52 | 129,509,135 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 863 | r | people.R | #' people()
#'
#' Return the log of personnel for the current client as a data frame. If no
#' log of personnel exists, NULL will be returned and also congratulations you're either
#' really early in this project or have a great memory. Possibly both.
#' @param path, path where client directory is located.
#' @param cl... |
b0c695724500515523693b8014ff8e0aeb1cfc5d | bc504192da5aa37ccf2c40464942c3d5c56193d7 | /F567.s2020.ex16.R | ed9ef41fdc06590115e95e2f9109801a0329bbb7 | [] | no_license | danniecuiuc/frm | 6125daab1ddb6ceb7f50b6f1a9f99437238102ce | 12d632bad3283188378ee3f4623bc3b2382165c6 | refs/heads/master | 2022-10-19T13:55:07.987734 | 2020-06-08T14:58:32 | 2020-06-08T14:58:32 | 269,361,255 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 588 | r | F567.s2020.ex16.R | #Spring 2020 solution to Daily Exercise 16
library(MASS) #needed to simulate multivariate Normal rvs
# Question 1
V = rep(0,1000)
SD = rep(0,1000)
for(i in 1:1000){
returns = mvrnorm(21, mu = 0.00, Sigma = 0.03^2)
V[i] = sum(returns * returns)/21
SD[i] = sqrt(V[i])
}
meanSDQ1 = mean(SD)
stdSDQ1 = sd(... |
5cc8231ba9df191520d5b1dc85ce3def856f2bc6 | 5a4ac3a10eb6ea4e5dc6b0588ce3fa03bf3c175e | /Day017/code.R | cec79fe7aa876ddb3aa4d07268c74c82ff242a71 | [] | no_license | woons/project_woons | 9bda2dcf1afebe4c3daf9c20a15605dec9ddbae3 | 3958979aa22ddba7434289792b1544be3f884d95 | refs/heads/master | 2021-03-16T08:40:40.350667 | 2018-05-04T05:18:45 | 2018-05-04T05:18:45 | 90,750,693 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 671 | r | code.R | all <- c("충청남도", "충남", "충남", "충청남", "충청남도", "충청도")
wrong <- c("충청도", "충남", "충청남")
replacements <- c("충청도로 교체", "충남으로 교체", "충청남으로 교체")
#만약에 원래 데이터랑 오류 사전이랑 비교해서 오류 사전의 내용이 포함되어 있으면
#올바른 단어로 교체하세요
idx <- match(all, wrong)
idx #wrong에서 몇번째꺼랑 match 되는지 index번호를 알려준다
replacements[idx]
ifelse(is.na(idx), "충청남도", "충청남도... |
4db5713e3981d5a6f5f7a13df89709ae3838f71f | 154553c5d637755a8aebb29b681480714ad4c819 | /R/my_csv_reader.R | 31ff88b41215c02205a61502f4056459244c221c | [] | no_license | amirbenmahjoub/Package_DM | fb42cfc1e66c57af177e1e400dad0c09a91ee914 | 3b9749e80894e57160ab1dced41c01312534958a | refs/heads/master | 2021-05-08T08:31:11.217927 | 2017-11-24T15:36:32 | 2017-11-24T15:36:32 | 107,041,020 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 405 | r | my_csv_reader.R |
#' import multiple csv files
#'
#' @param folder path to the folder
#'
#' @return a list
#' @export
#' @importFrom utils read.csv2
#' @import assertthat
#' @examples
#' \dontrun{
#'
#' my_csv_reader("../../path/to/folder")
#'
#' }
#'
my_csv_reader <- function(folder){
assert_that(is.dir(file))
temp <- list.files(p... |
65afc5c073b13c301cba19d126645c5c6710ca3e | e6949144fd0304ab2cafaa4f62b90c406bcb4f0b | /tests/testthat/test-brms_tools.R | b53ec5b622849a0472fa766bf6416aaed8369273 | [
"Apache-2.0"
] | permissive | cas-bioinf/covid19retrospective | 12ca3bbeeaa9aeb2d38a88ea42026a39c45bf88e | cfdd018db6eef417771f9ee3f86209d536a372ba | refs/heads/master | 2023-07-15T23:02:44.219995 | 2021-09-07T07:21:28 | 2021-09-07T07:21:28 | 257,529,142 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,311 | r | test-brms_tools.R | test_that("normalize_stancode", {
expect_equal(
normalize_stancode("// a\nb;\n b + c = 4; // kde\ndata"),
normalize_stancode("// dasflkjldl\n // adsfadsfa\n b;\n\n \n \t\rb + c = 4;\ndata")
)
expect_equal(
normalize_stancode("data /* adfa */ {\nint a;\n /* asdddede \n asdfas \n asf */}\n"),
n... |
ab390b2efe3eee67291af8a60d31c55bb65141cb | 39431027afac67ebe79bf5058d7f54cb292a8bff | /rbasics/solution/step4.R | eaa9b1e775fdd9f588911243b0379c56167b28d9 | [] | no_license | shiyuangu/cloudera_hadoop | 6a4177e2f838f8c367b482a7c9bc61f2971b6942 | 09435d04ca30a7b3fb50c427b3d79b2827cf1893 | refs/heads/master | 2021-01-22T02:14:19.350499 | 2017-05-24T23:11:17 | 2017-05-24T23:11:17 | 92,344,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 95 | r | step4.R | # step 1
head(trees, 5)
# step 2
plot(trees$Girth, trees$Height)
# step 3
hist(trees$Height)
|
151b02efb5686ceb828128e351a2d99437d96aa4 | aece5f1e0c40de4bf0eea8a0f4e8914ac18702c4 | /R/ipc.R | df49a458aae1c1ffe05b93935601788c1f45c731 | [] | no_license | Johan-rosa/bcdata | 3ef6b1daa908b16fcd9e4031a4bac385ebf7aa20 | 2316b0fc795dd148db4321cf3744289f5454503f | refs/heads/main | 2023-03-15T11:43:04.193783 | 2022-06-11T11:51:21 | 2022-06-11T11:51:21 | 251,477,606 | 2 | 1 | null | 2023-03-11T13:10:57 | 2020-03-31T02:13:07 | R | UTF-8 | R | false | false | 9,926 | r | ipc.R | #' Descarga las series del IPC
#'
#' Descarga las series del IPC de la Republica Dominicana
#' con diferentes desagregaciones
#'
#' @param desagregacion string indicando la desagregacion deseada. opciones:
#' "general", "grupos", "regiones", "subyacente", "tnt" (transable y no transable),
#' "articulos"
#'
#' @return U... |
0f96696e1960601e9fa1f2b2a3c0dc135d956f56 | 888b76fabb8b490b2f92daa1e53b84940eaf83eb | /analysis/inundation_wooddensity_predicts_elevation/fsen_fden.R | 27811726854dcbbdb0d53c41a4535db6ff8de57b | [] | no_license | jmargrove/ForestFloodingSensitivityAnalysis | ba398074537f23c76264bb9ebffaf7390895866c | 43eaa322207aa8d8433ce42d359e72909406d1a5 | refs/heads/master | 2021-11-22T03:22:30.804283 | 2018-10-31T15:28:11 | 2018-10-31T15:28:11 | 120,295,376 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,575 | r | fsen_fden.R | ################################################################################
# title: flooding sensitivity response predicting species distributions
# author: James Margrove
# Clear work space
rm(list = ls())
# Import packages
require(ggplot2)
source('./functions/booter.R')
# Import data
rr_data ... |
8f82e992e8b29f90f666ac489e5b1cb12221245e | 21eada57e383078a1af917e9a3a31e049feb2c76 | /Shiny-App/R-shiny-ML/ui.R | 5cb18ef3fd52403da18f46586df2a8a7c969876b | [] | no_license | PHP-2560/final-project-mlhelper | a8252b5ce29d36485f40e285e8f7c65e2b5f7111 | f3898344dbeff0d4deeb2d9cdc88805a97ad6827 | refs/heads/master | 2020-04-11T05:26:43.883618 | 2018-12-16T18:24:33 | 2018-12-16T18:24:33 | 161,549,792 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,961 | r | ui.R | library(shiny)
library(htmltools)
shinyUI(
pageWithSidebar(
# Header:
headerPanel("Machine Learning Helper"),
# Input in sidepanel:
sidebarPanel(
## useless
tags$head(
tags$style(type="text/css", "select { max-width: 200px; }"),
tags$style(type="text/css... |
bdf506664af020420771e75173eb3bbb3961fb7d | d38b8fdda7bfdaf76621e20e60a381108c48f9e1 | /R/sloopoint.R | c1420cdfca90c9bf45431d819e212bbcf6019e52 | [
"HPND"
] | permissive | timcdlucas/INLAutils | e4425389d3003a9639a6e4f1e573c07717715c01 | 74d769a7279e55256d06f94e97344d702bbb8b1b | refs/heads/master | 2022-12-04T08:24:51.277408 | 2022-11-23T11:37:26 | 2022-11-23T11:37:26 | 61,026,905 | 25 | 10 | NOASSERTION | 2020-06-26T08:27:33 | 2016-06-13T10:19:39 | R | UTF-8 | R | false | false | 1,589 | r | sloopoint.R | #' A function to plot the left-out points during the spatial leave-one-out cross-validation in R using INLA.
#'
#' This function plots the left-out point(s) of a spatial leave-one-out cross-validation (SLOO-CV) of one or several models running on INLA.
#' @param points = cbind of longitude and latitude of the observed... |
e84dbaf8627d23639b949a0fb890c8be82642f92 | 132e56789f866a0d1fad6eb8839982b0822c8020 | /R/dostats.R | d3cd1e7a81407fb94c7a665654f988070fb2de5e | [] | no_license | halpo/dostats | beeac5e74790c7d78095293f24a3adc232954d08 | afd933128376cc1fb6a565ceba6967113586884b | refs/heads/master | 2022-06-09T03:21:33.485624 | 2022-05-10T19:07:50 | 2022-05-10T19:07:50 | 3,388,144 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,793 | r | dostats.R | {###############################################################################
# dostats.R
# This file is part of the R package dostats
#
# Copyright 2012 Andrew Redd
# Date: 5/30/2012
#
# DESCRIPTION
# ===========
# dostats is a helper function for computing descriptive tables.
#
# LICENSE
# ========
# ... |
ffd5c9fd838f75d74f8878294460421dcf1ac74d | 3c883c8e8f1aad9cfbaeff60998ec9b0df2b7ba0 | /inst/tests/esAnnotate_correct_classes.R | c4d3010acfa07514f658ea52b9eaa94534876911 | [] | no_license | genomelab/esFunctions | ec14979d03247120d54972f9b2b9213a5cbcc3cc | e721a3859ce29abdd50c930b213eebe503e6ad26 | refs/heads/master | 2023-05-13T11:23:07.544888 | 2023-05-01T04:51:05 | 2023-05-01T04:51:05 | 17,329,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 578 | r | esAnnotate_correct_classes.R | #this is a test for esAnnotate
setwd("/Users/anthonycolombo60/Dropbox/TARGET PROJECT/R Package/esFunctions/inst/tests")
library("testthat")
#now to test esAnnotate
test_that("Correct Class", {
Antd_eset<-esAnnotate(eset,anno) #these objects are generated from eset.R data
expect_that(Antd_eset, is_a("ExpressionSet"... |
7ed96855017bf3e1d32dc3ad522d4b83f44dcddd | bb0fb51530335b10a2e64557fb6c950be61b7968 | /Rscripts/MutationFreqSum.R | f1a5597078f6df7de90cf2467ac06f74daee4b87 | [] | no_license | kahot/HCV_project | bd0450d07c84906b13b3cf6b442de68cdc7f3e44 | 0047c945f9f1522ebbda2b1cb3adf7742ce01a9e | refs/heads/master | 2022-03-24T06:01:24.189668 | 2019-12-16T17:13:03 | 2019-12-16T17:13:03 | 187,297,639 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,645 | r | MutationFreqSum.R | ## prepare summary data for mutation frequenceis across all samples
library(plotrix)
source("Rscripts/CreateEmptyData.R")
CreateEmptyData()
for (i in 1:length(Overview_summary)){
dat<-Overview_summary[[i]]
filename<-names(Overview_summary)[i]
for (typeofsite in c("syn", "nonsyn")){
... |
379b40f18de576f2a7efec7292fe3b7101fab651 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /coga/inst/testfiles/pcoga_approx/libFuzzer_pcoga_approx/libfuzzer_logs/1610567672-inps.R | 72d5a597a833f5b5f32ad627457b45101f2493cc | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 449 | r | 1610567672-inps.R | list(rate = numeric(0), shape = c(0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0), x = numeric(0))
testlist <- list(rate = numeric(0), shape = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... |
6b0dd5ccdc0bee91c565f30aa0595f53c582c7ed | 8db1240915746d5fd2e7eafc2aa17eb468d9dc20 | /Statistika/tasu-analüüs.R | ac907ec1c608b216dc2ee55cf79570332568b596 | [] | no_license | RRisto/Riigteenuste_analyys | 4a2f8ecdcd7895044a3c3a6ccb0b16b45fa0f142 | 7ec758d797a498835112ee1f06627cc769834782 | refs/heads/master | 2021-01-10T16:10:45.017135 | 2016-01-06T12:12:49 | 2016-01-06T12:12:49 | 46,671,347 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,797 | r | tasu-analüüs.R | #########################################kui palju on tasulisi, tasuta teenuseid
#kanalite lõikes
#teen kohandatud funktsiooni metlimiseks et saaks ka muid muutujaid kaasata
meltimine2=function(kanal, data) {
library(reshape2)
#leiame ainult seda kanalit puudutavad muutujad
sub=data[, grepl(pa... |
3c3f8b46f793a930d3b2d57898982d67302510bb | f36014b74bd33b4967a70eeb7f2d59c48bf4882c | /plot1.R | 11b58c462e1a150e07c2dc0022c675580ae3072e | [] | no_license | JackieErbe/ExData_Plotting1 | 08a9293f1c47e5565e9bb3246a6ba70b5b27b970 | 87424b1b1719c0ed35a131c4b2787c88d75f8c42 | refs/heads/master | 2021-01-01T18:00:18.300295 | 2017-07-24T18:29:02 | 2017-07-24T18:29:02 | 98,221,504 | 0 | 0 | null | 2017-07-24T18:22:00 | 2017-07-24T18:22:00 | null | UTF-8 | R | false | false | 1,793 | r | plot1.R | plot1 <- function(filetype="png"){
## This function creates a histogram of "Global Active Power" in the
## specified bitmap format graphics devices "bmp", "jpeg", "png", or
## "tiff". If nothing is specified, a "png" file will be generated.
## Create temporary file an... |
870aeb25a4d4c89ca0507387cb7268d25f57de74 | 0f51f612697b612c5e3439a2fc907213fec08065 | /lib/validatePredict.R | bf5c62ab0266d73ee74231a2895d0ea41093c135 | [] | no_license | ISS-Analytics/orgvalues | 73ee9d70885d69625caeaf1ebcc36afb9f67d193 | 360bb7371ac20879ae9a4a4314e5bd17ea9b33e9 | refs/heads/master | 2021-07-07T07:25:31.790000 | 2017-10-04T03:03:13 | 2017-10-04T03:03:13 | 104,955,306 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,904 | r | validatePredict.R | # validatePredict
# Description: This library contains the function utilized to generate perform a k-fold validation
# and subsequent calculation of prediction metrics (RMSE, MAPE, MAD) for PLS & LM
#Function for Generating and Evaluating Out-of-sample predictions using 10-fold cross-validation
validatePredict <- fun... |
2dd6643475e6883147c26ccadc47cace16784074 | eb9374f38182a566512cb1c97cf6634ae28e271c | /man/map_gist.Rd | c34308fa380f7cd3d1273ed41d7aa31a0ee7d38b | [
"MIT"
] | permissive | Zwens/geojsonio | 1064b5ba3d02b11c4d3e0c2adfc267a96533947c | 50d99de0f5ec2f8a346d7af6da02ade5eef5abbf | refs/heads/master | 2020-08-16T08:14:07.786273 | 2019-10-14T18:14:27 | 2019-10-14T22:31:25 | 215,478,651 | 1 | 0 | NOASSERTION | 2019-10-16T06:57:04 | 2019-10-16T06:57:04 | null | UTF-8 | R | false | true | 5,100 | rd | map_gist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mapgist.R
\name{map_gist}
\alias{map_gist}
\title{Publish an interactive map as a GitHub gist}
\usage{
map_gist(input, lat = "lat", lon = "long", geometry = "point",
group = NULL, type = "FeatureCollection", file = "myfile.geojson",
descr... |
b7b1dca200ba0b9a63c5900d14def767901c465a | e0f0495031af791a7088ec84c55fa8bd00058761 | /tidyseq.R | cc355d2ad49245ad89cdff5ee95ae26723228356 | [] | no_license | sonicyyouth/snip | abe04cdfffe22aa51630f4a04eba6d0089aacd34 | 4d33f277e37c87a0b609d5edd005a3f8c26807c5 | refs/heads/master | 2021-01-20T06:59:48.596366 | 2015-09-20T15:15:14 | 2015-09-20T15:15:14 | 42,827,796 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,231 | r | tidyseq.R | setwd("~/Dropbox/Rworkspace/projects/snp")
library(survival)
library(tidyr)
library(dplyr)
library(limma)
genesurv = function(expset,entz,gene,set = "TCGA GBM"){
source("~/Dropbox/Rworkspace/r scripts/ggsurv.R")
gbmgene = exprs(expset)[entz,]
gbmgene1 = median(gbmgene)
gbmgene[gbmgene <= gbmgene1] = 1
... |
1829110778e8eca148aa6819581347e1d99f0482 | 257b5303c5276cf90bc5110c1785cc144076031f | /code/22_telomere_length_MR.R | 34887a6e13e616a4e9b70cb76c33901f9416762e | [] | no_license | xiaotianliao/mpn-gwas | 65bb7cc1f37b9c4af98a776128b7d91d06e4e5db | fb271abe98a43e140c2cdf8c200d556a477e00e0 | refs/heads/master | 2023-08-22T16:06:14.066422 | 2020-10-14T15:50:09 | 2020-10-14T15:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,060 | r | 22_telomere_length_MR.R | library(tidyverse)
library(data.table)
library(BuenColors)
library(cowplot)
library(TwoSampleMR)
library(MendelianRandomization)
library(MRPRESSO)
# Exposure data (pval < 1e-5)
sumstats <- "file path to telomere length summary statistics"
telo_sumstats <- as.data.frame(fread(sumstats)) %>%
mutate(Phenotype = "telome... |
7895c8b92311144318cc82d7b7410984526a68bc | 421366a39299a1a82bd0f2a42e667da7fc602b62 | /R/MergeFolderPredictions.R | 2136a17e552dadea7f9ad420199d4b8910eb0fc8 | [] | no_license | thomasferte/PredictCovidOpen | 363ef4cc9006696d5fa16c2ac4bdf9b58882a476 | 2468b0006a6f19310a9f8c7de6aa46979f19d627 | refs/heads/main | 2023-03-17T19:28:52.863817 | 2023-01-26T09:51:38 | 2023-01-26T09:51:38 | 496,952,863 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 817 | r | MergeFolderPredictions.R | #' MergeFolderPredictions
#'
#' @description Merge folder PredictCovid Data
#'
#' @param folder The folder path
#'
#' @return A list of predictions and features importance
#' @export
MergeFolderPredictions <- function(folder){
lsFolder <- PredVarimpFromFolder(folder = folder)
df_pred <- lsFolder$df_pred
df_varimp... |
6bd175dff4c476d8a03e8f3e4817361dd8cf0fc4 | 64a11deb0eb55a794d4da81ea7c8d8a52265755d | /tests/testthat/test_square.R | b3d3c30ceabd3281c6aef5bdd73ae8032b022d22 | [] | no_license | schivuku/travis-test | 681d5fce819279c13e319a569f9fa14bc0fcc435 | 4e52cb4fb74341fc90f621d5a21287b48fdd5352 | refs/heads/master | 2021-01-22T13:42:07.012023 | 2015-10-30T01:11:11 | 2015-10-30T01:11:11 | 45,220,588 | 0 | 0 | null | 2015-10-30T01:05:02 | 2015-10-30T01:05:02 | null | UTF-8 | R | false | false | 148 | r | test_square.R | context("square")
test_that("square", {
expect_equal(square(3), 9)
expect_equal(square(5), 25)
expect_error(square("a"), "number")
})
|
1df4fa18ef41cda069b6e9a78b97e71115871bbd | 5f992b73c05e4b2212e4e7ad62d7235747893bc1 | /run_analysis.R | 73126d52c6a1e92b29420cb972790a14a8193823 | [] | no_license | Subramania/CE_Data_Cleansing | 65c02640667d66dbc6f002888f393f6894be0330 | 93e98d53877cfaa65612c07258a2a1b48e6cda01 | refs/heads/master | 2020-04-23T15:17:40.304348 | 2015-02-11T13:01:22 | 2015-02-11T13:01:22 | 30,644,329 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,023 | r | run_analysis.R |
#Load all the required Libraries
library(dplyr)
#set all the path and file names
activityLabelFile<-"UCI HAR Dataset//activity_labels.txt"
featureFile<-"UCI HAR Dataset//features.txt"
trainX<-"UCI HAR Dataset//train//X_train.txt"
trainY<-"UCI HAR Dataset/train/y_train.txt"
trainSub<-"UCI HAR Dataset/train/subject_tra... |
fef02a5bc76947b95bc958c69f705927b4becc82 | 3fe1a27ecb52798609e99b5c7a2af1b95166c03d | /man/normalize.Rd | 765c80fc6f1f67285c8f46d3e6cce70115225827 | [] | no_license | mbedward/ecbtools | 6cbbfbe3c18734b75c42f0bd292aeab69f7bee69 | 16c5df2857f83fadfaac35447e21388daa69bfdb | refs/heads/master | 2023-02-16T19:29:39.773238 | 2021-01-17T20:26:25 | 2021-01-17T20:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,195 | rd | normalize.Rd | \name{normalize}
\alias{normalize}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Normalize a vector or matrix within a range.
}
\description{
Normalizes a vector or matrix values to spread between a minimum and maximum value. By default, it normalizes between zero and one.
}
\usage{
normalize(... |
0b92aa0a116ec89db1784895b5e46f5226d5d4f0 | 8cf5934012226d4e66914e4001d2b5ed7ff37d21 | /R/plannedparenthood.R | 625abbbff7c1e9a6363004d9575c83fa334b3aa6 | [] | no_license | aaronmams/R-spatial | e2e3d604ecf59920daa451364b24a3af54c7b347 | c992513a0ab23baabadcbc94b8a5f8a6d2989474 | refs/heads/master | 2021-01-22T05:00:44.407834 | 2017-03-02T17:37:21 | 2017-03-02T17:37:21 | 81,606,032 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,345 | r | plannedparenthood.R | library(data.table)
library(dplyr)
library(ggplot2)
#get the results of the
house2012 <- tbl_df(read.csv('data/HouseElectionResults2012.csv')) %>%
filter(GE.WINNER.INDICATOR=='W' & D!='S') %>%
filter(! STATE %in% c('American Samoa','Puerto Rico','Northern Mariana Islands','District of Colu... |
84421c175523d13c54e8d3fbfd08115e179c76c9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/modes/examples/bimodality_coefficient.Rd.R | 0d0d565d3d530a85b0e00d572ab96f125b33000d | [] | 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 | 284 | r | bimodality_coefficient.Rd.R | library(modes)
### Name: bimodality_coefficient
### Title: Bimodality Coefficient
### Aliases: bimodality_coefficient
### Keywords: bimodality, measure, modality nonparametric
### ** Examples
data<-c(rnorm(15,0,1),rnorm(21,5,1))
hist(data)
bimodality_coefficient(data,TRUE)
|
42664a199d5c83d95e130f0ab3e22c327c0f3337 | 0bb9a61ef4f65de46b86b501537c871547ae9ce3 | /Expert_Parcer/Script.R | 3ec212be7c79a148b82060e01ab2f07b02299c4d | [] | no_license | StepanSushko/TopInustrialCompanies | 2170770af8fd4e1bd9ec61084d8e9c8120d1e434 | 0c29d933dcc086e8ab06c30286262dbc99f15f3a | refs/heads/master | 2020-03-18T10:36:08.860326 | 2018-05-23T21:09:57 | 2018-05-23T21:09:57 | 134,622,153 | 0 | 0 | null | null | null | null | WINDOWS-1251 | R | false | false | 6,199 | r | Script.R | if (!require("XML")) { install.packages("XML"); require("XML") }
if (!require("ggplot2")) { install.packages("ggplot2"); require("ggplot2") }
if (!require("RCurl")) { install.packages("RCurl"); require("RCurl") }
if (!require("qdap")) { install.packages("qdap"); require("qdap") }
#if (!require("gridExtra")) { install.... |
f8b74cea6f6f53f323ebdbcb1cc6428635e0bbf4 | 872e9ddfecc5d9456142b7d98b4a067620c00ded | /script.R | 88b5c99511132208bf878a39ba90e4635bae4cdb | [] | no_license | rscherrer/egstools | 4d9b7042f25c37e6396925543c5eca4cb5bc80df | 90977be2ca98e50553847d7c80319b7bdf4a4dd4 | refs/heads/master | 2020-11-26T13:43:55.892998 | 2020-03-29T19:53:51 | 2020-03-29T19:53:51 | 229,089,402 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,563 | r | script.R |
#disassortment <- mrep(c(1,-1), sapply(d, nrow))
#d <- do.call(rbind, d)
#d$disassortment <- as.factor(disassortment)
d2 <- d %>%
filter(disassortment == 1) %>%
group_by(id) %>%
summarize(RI = RI[n()])
length(which(d2$RI < -0.2))
hist(d2$RI)
d <- egstools::collect(
dir = "/media/raphael/bigass/simula... |
ffa8175994a270a7a8d069cbceef3e31be25b013 | d4e84759fa1e0d22c9468fa53f1254cc024e0a3f | /R/ip_api.R | 72b5a00fa161f0d5d307a81f84301f1fe0b39bc8 | [
"Apache-2.0"
] | permissive | Ironholds/rgeolocate | 795c9174aca9102ac116f983a65284108c3a093b | d2f550ee9ec3bfe1a24449eae0f40c65b7ee0042 | refs/heads/master | 2023-05-12T13:02:14.751389 | 2023-01-30T20:55:03 | 2023-01-30T20:55:03 | 35,774,653 | 71 | 31 | NOASSERTION | 2023-04-26T08:24:08 | 2015-05-17T17:03:30 | C | UTF-8 | R | false | false | 2,023 | r | ip_api.R | query_ip_api <- function(ip, sleep){
if(sleep){
Sys.sleep(0.40)
}
url <- paste0("https://ip-api.com/json/", ip)
result <- httr::GET(url, user_agent("rgeolocate - https://github.com/Ironholds/rgeolocate"))
if(result$status > 300){
return("Error")
}
parsed_results <- httr::content(result, as =... |
59ced68c881881b628b359576098a6a0f1b07ce0 | 4e165402f4e3f7d161558d62e598fa1f7bb696cf | /codes/Train.R | 21795bfae0235e86b6629fca02f0350fab105063 | [] | no_license | BCEM-UniAndes/Reproducibility-Guidelines | 55acafbd77f6968f778846a90ce406db2e7d7c67 | 3f707e08c0507c701a3768cf789816dfe1442856 | refs/heads/main | 2023-08-10T16:41:05.437415 | 2021-09-30T13:19:37 | 2021-09-30T13:19:37 | 347,115,094 | 2 | 2 | null | 2021-04-07T21:38:11 | 2021-03-12T15:39:48 | null | UTF-8 | R | false | false | 1,793 | r | Train.R | #######################################
###### script description ######
#######################################
# To Test the random forest model, the train and test datasets must be loaded
#Written by Laura Carolina Camelo Valera
#Written by Laura Carolina Camelo Valera at Computational Biology and Microbial ... |
b857a55e6c12c192a3f14deb5393ae792a30ab95 | eb79f12e402744ae5ff3c66d5cc14bcaf8c3632f | /Datacleaning.R | 8d5eb35dfd8bcff5677111038d77d81da4acd41f | [] | no_license | Darki92/Whale-Analysis | ecbb098c28300cabfe9f884bf3a2143c5a0462cc | 530f944b348ac83523c844666b1bfde55b06fb4e | refs/heads/master | 2021-09-10T18:01:10.805019 | 2018-03-30T15:45:32 | 2018-03-30T15:45:32 | 110,442,059 | 0 | 1 | null | 2018-03-31T13:29:16 | 2017-11-12T15:04:30 | R | UTF-8 | R | false | false | 4,615 | r | Datacleaning.R | install.packages("CircStats")
install.packages("boot")
install.packages("MASS")
install.packages("reshape2")
install.packages("stats")
install.packages("moveHMM")
require(CircStats) # for von Mises distribution
require(boot) # for logit
require(MASS)
require(reshape2)
require(stats)
require(moveHMM)
setwd("~/Uni/(M.S... |
30bb7914b600647c5dd74fe6c5baf43a76e6c1b2 | 74453745dd2a15c8e310e8f4446ccada9702435e | /man/restore.Rd | 790f49002802f8f25505c14f32df0eba07494943 | [
"MIT"
] | permissive | rstudio/renv | ffba012525e8b1e42094899c3df9952b54ecb945 | 8c10553e700cad703ddf4dd086104f9d80178f3a | refs/heads/main | 2023-08-29T08:45:28.288471 | 2023-08-28T22:01:19 | 2023-08-28T22:01:19 | 159,560,389 | 958 | 169 | MIT | 2023-09-14T00:55:28 | 2018-11-28T20:25:39 | R | UTF-8 | R | false | true | 3,864 | rd | restore.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/restore.R
\name{restore}
\alias{restore}
\title{Restore project library from a lockfile}
\usage{
restore(
project = NULL,
...,
library = NULL,
lockfile = NULL,
packages = NULL,
exclude = NULL,
rebuild = FALSE,
repos = NULL,
... |
7ef0fde98dec5be5cb631a40b0450727d975babb | 0c8be292fd40767f10f28271088df34cb3027286 | /Solved/Problem39.R | b9dd313d36b2391a432d95f3d62a108b9dfb0320 | [] | no_license | RossiLorenzo/Project_Euler | 01a3feca7de0c72cc9d7a895b236f4350868e9b7 | d0329ee1e230874ccadb8e05ff84a49638f0e559 | refs/heads/master | 2021-01-10T15:32:17.856291 | 2015-12-06T19:07:34 | 2015-12-06T19:07:34 | 47,507,194 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,176 | r | Problem39.R | # If p is the perimeter of a right angle triangle
# with integral length sides, {a,b,c}, there are exactly three
# solutions for p = 120.
#
# {20,48,52}, {24,45,51}, {30,40,50}
#
# For which value of p ≤ 1000, is the
# number of solutions maximised?
# Libraries
library(parallel)
# Let's consider a triangle with si... |
c4b7774cb0dbd38234563af815521ef5f1b066cf | 899374f8aecd9427b6f1f945d91c60e647cb0c58 | /Valeria_Stavrova/Task4/task4.R | 418d1d373c092ce6fbf71962e55024ff95e67ab9 | [] | no_license | shulman0/M2019_4142 | a1e081a2441c8b9e2ff84878c4390aac97575dbe | d12e48d50efa84a2fa2d82b9a2745a045cd490ce | refs/heads/master | 2020-09-22T12:26:49.271898 | 2019-11-29T20:53:14 | 2019-11-29T20:53:14 | 225,193,826 | 0 | 0 | null | 2019-12-01T16:38:56 | 2019-12-01T16:38:55 | null | UTF-8 | R | false | false | 1,684 | r | task4.R | #EXPLORYING_DATA
class(weather)
dim(weather)
names(weather)
str(weather)
summary(weather)
head(weather)
tail(weather)
print(weather)
View(weather)
#TIDYING_DATA
library(tidyr)
library(dplyr)
newweather <-weather[,-1] %>% gather(key = day, value = val, X1 : X31) %>%
pivot_wider(names_from = measure, ... |
3313e872454e66d6ace8e17e597654b518e2570f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mrds/examples/plot.io.Rd.R | 9d493a114f3fdc9fd8149f02965df5a21383c056 | [] | 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 | 695 | r | plot.io.Rd.R | library(mrds)
### Name: plot.io
### Title: Plot fit of detection functions and histograms of data from
### distance sampling independent observer ('io') model
### Aliases: plot.io
### Keywords: plot
### ** Examples
## No test:
library(mrds)
data(book.tee.data)
egdata <- book.tee.data$book.tee.dataframe
result.io... |
9d6fa73abf9c2ae5e9977bcce5d9c24d4d72cad4 | f9d80df2d3108c24255c4c2ba0fbce25a3acfad5 | /code/examples/Example2.R | 0c22f35d643007b2e62fdd87d9e99c34fdcc9eda | [] | no_license | certifiedwaif/phd | 12ed3c3113a5f662cf14538776f02acecd11338b | 0f6f7b48917961f6821ff7aaf27357c1be1c6d5a | refs/heads/master | 2021-10-24T22:07:44.383587 | 2019-03-29T03:12:55 | 2019-03-29T03:12:55 | 11,830,694 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,499 | r | Example2.R |
set.seed(1)
###############################################################################
x <- seq(-5,5,,1000)
f <- dt(x,3)
plot(x,f,type="l",ylim=c(0,0.4))
h <- abs(x)
lines(x,f*h,col="blue")
g1 <- dt(x,1)
lines(x,g1,col="green3")
g2 <- dnorm(x)
lines(x,g2,col="red")
########################... |
10040399c0556a9c6f8f77d7c18a782ad0ea1ad5 | 0bf88d85ff253b7f364c8a97b4711f00f88cff6d | /openings.R | e54c639fed83d600f6b75471e7f90667a07a60c0 | [] | no_license | Georgits/web | ed8bd8904a95d440325e476bb3f7cca670e79c9a | 72dbc519fcce150f8f914a636d092d0664325639 | refs/heads/master | 2020-03-24T17:22:04.313505 | 2019-02-18T21:56:08 | 2019-02-18T21:56:08 | 142,857,231 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 889 | r | openings.R | url<- "https://www.bad-homburg.de/rathaus/arbeitgeber-stadt/stellenausschreibungen-Stadt.php"
library(stringr)
library(rvest)
library(RSelenium)
remDr <- remoteDriver(
remoteServerAddr = "localhost",
port = 4445L,
browserName = "firefox"
)
remDr$open()
remDr$navigate(url)
html <- read_html(remDr$getPageSource(... |
e15be6348404b7e855b3a517b6755aab914bdfcc | 27f5233f79c8cfd30d5eb027697e468ef0b1102a | /src/plot_many.R | 45ac9bd0b5b2492e6ba6412c43e577319490f85f | [] | no_license | jebyrnes/r-spatial_dc_workshop_2019-01-22 | b2ddf960c86b83c6c5bfa46cbc1f7e9a6efbf60a | 2cc5996aa3a0c086b0b286f490642f7d1e176fd3 | refs/heads/master | 2020-04-17T23:32:50.646154 | 2019-01-24T01:58:15 | 2019-01-24T01:58:15 | 167,039,731 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,110 | r | plot_many.R | #'-----------------------------
#' Plotting All the Things
#'
#'-----------------------------
#libraries
library(sf)
library(ggplot2)
library(dplyr)
#loading data
aoi_boundary_HARV <- st_read("data/NEON-DS-Site-Layout-Files/HARV/HarClip_UTMZ18.shp")
lines_HARV <- st_read("data/NEON-DS-Site-Layout-Files/HARV/HARV_r... |
e26f959c2d291c30ff2c9337460331365cdef8d4 | 67c2a90c7edfac3cfd891cb332c45e71cf4a6ad1 | /R/plot.slca.R | 3b27ab9eeea0f67a29bee5b2320d473e3cffaed3 | [] | no_license | alexanderrobitzsch/CDM | 48316397029327f213967dd6370a709dd1bd2e0a | 7fde48c9fe331b020ad9c7d8b0ec776acbff6a52 | refs/heads/master | 2022-09-28T18:09:22.491208 | 2022-08-26T11:36:31 | 2022-08-26T11:36:31 | 95,295,826 | 21 | 11 | null | 2019-06-19T09:40:01 | 2017-06-24T12:19:45 | R | UTF-8 | R | false | false | 393 | r | plot.slca.R | ## File Name: plot.slca.R
## File Version: 0.09
###################################################
# plot slca
plot.slca <- function( x, group=1, ... )
{
pi.k <- x$pi.k
TP <- nrow(pi.k)
xlabels <- seq(1, TP)
graphics::barplot( pi.k[,group], xlab="Class", ylab="Probability",
names.... |
b2859e18c04e0739f592e451f8bf7b18a03e641a | 672f1434b4dde4cad051e66994a90887656fad8b | /global.R | 1bd35a416e215e53f0bfcc322218aee9280c10dd | [
"MIT"
] | permissive | samuelbharti/sMAP | df527b56c6f5f240621056d4abffa77072c96408 | 5ef4d2629cfaa0b123de29c2d306ce80a8cbe12c | refs/heads/main | 2023-07-22T15:32:52.830315 | 2021-08-22T23:12:23 | 2021-08-22T23:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 827 | r | global.R | # Load the libraries and import function files here.
# Global.R is run one time at app initiallization.
library(bs4Dash)
library(shiny)
library(shinybusy)
library(fresh)
library(oligo)
library(GEOquery)
library(affy)
library(limma)
library(arrayQualityMetrics)
library(sva)
library(Biobase)
library(affyPLM)
library(En... |
e17534c08da41b3944f6132d80a59c052680c6c0 | 11e9f9ab4a752042a2c41ea6139cdd54a30b9724 | /cachematrix.R | 4ada1cde40a6c3a0344a88005865d46141b00ea9 | [] | no_license | ldriggen/ProgrammingAssignment2 | 4908bc5cb8408a74023bbc3bd9e07681f77d68ff | c23c7f59d8ce98b97b70679bf39a61baa71233d3 | refs/heads/master | 2021-01-17T21:35:25.629591 | 2015-08-21T19:10:23 | 2015-08-21T19:10:23 | 41,004,417 | 0 | 0 | null | 2015-08-19T00:31:44 | 2015-08-19T00:31:42 | null | UTF-8 | R | false | false | 2,091 | r | cachematrix.R | ## File: cachematrix.R
## Author: Larry Riggen
## Creation Date: 2015-08-20
## File Contents: functions makeCacheMatrix and cacheSolve
## Purpose:
##
## makeCacheMatrix and cacheSolve work in tandem to cache a matrix inverse and
## and reduce overhead by being able to recall the solution.
##
##
## Sample usage (note... |
e457b3eb91ca11e6ecb36e6f3b32b2ca0c13d6c4 | 505210587ef159312129478d0067e45d9fc5c997 | /man/subset_samples_safe.Rd | 16cb64936454752451cfd4bad8316dd9cb5116bc | [
"MIT"
] | permissive | mworkentine/mattsUtils | 5c0d4dd140eca3b252ecba61c70f04d034dbb1d8 | f09704d993398b2c6920c84fe1b61dbbee6542fa | refs/heads/master | 2021-01-19T12:00:18.865239 | 2019-02-25T19:59:39 | 2019-02-25T20:02:50 | 69,693,229 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 480 | rd | subset_samples_safe.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/microbiome_helpers.R
\name{subset_samples_safe}
\alias{subset_samples_safe}
\title{Subset samples 2}
\usage{
subset_samples_safe(physeq, var, value)
}
\arguments{
\item{physeq}{a valid phyloseq object}
\item{var}{variable (column name) of sa... |
38336cae397bbf419614c1f32fd8986e73b2f95a | 875ad4e5b8d6b03b0bb19794fb4678790530647b | /assignment2/hw2_104761501.R | 114456950282abf4ca81981059a698d2afdf5f17 | [] | no_license | chihming/1052DataScience | 5cc8a60a73e9af138aacf198b4589051b4aa97a1 | feba123b349d461138e744547f380b094b6341e3 | refs/heads/master | 2020-02-26T15:05:53.669548 | 2017-06-22T02:20:27 | 2017-06-22T02:20:27 | 83,531,085 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,315 | r | hw2_104761501.R | list.of.packages <- c("ROCR")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages, repos="http://cran.rstudio.com/")
library(ROCR)
eval_func<-function(query_m, name, pred, ref, score)
{
if(query_m == "male"){
... |
5568fafe3d20e79276bf4674c912f301a16b5524 | f2d3a834eb614c444e4c4d2f863577e804d9fb70 | /man/may.numeric.Rd | ec055658fb68c3a97f9cfab7b071f43d55268332 | [] | no_license | David-Hervas/clickR | 150669cc67575659258e2bb44f429544e52e809c | cb738e505375376d91ac37eb01813ac3fb0e1432 | refs/heads/master | 2023-08-14T05:06:15.095067 | 2023-08-07T17:01:53 | 2023-08-07T17:01:53 | 90,495,146 | 3 | 3 | null | null | null | null | UTF-8 | R | false | true | 332 | rd | may.numeric.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_quality.R
\name{may.numeric}
\alias{may.numeric}
\title{Checks if each value might be numeric}
\usage{
may.numeric(x)
}
\arguments{
\item{x}{A vector}
}
\value{
A logical vector
}
\description{
Checks if each value from a vector might b... |
3fa42fb2f82c568e76e40218703fd3c5e11dc57b | 3d5233d7cfc6d2426c600e4c612afb6cea2416c5 | /tests/testthat/test_local_convertOMLTaskToMlr.R | 823b132b99ba4feec3274430eeff809390c2f138 | [] | no_license | mutual-ai/openml-r | 72ecdc54b5e34f1eb31e8a93633f3d1f93c3a6d1 | 599a378dd67f37b06d23928d16b01bbd13102c4b | refs/heads/master | 2020-04-01T14:04:05.019082 | 2016-07-19T08:11:01 | 2016-07-19T08:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 364 | r | test_local_convertOMLTaskToMlr.R | context("convertOMLTaskToMlr")
test_that("convertOMLTaskToMlr", {
with_test_cache({
task = getOMLTask(59)
mlr.task = convertOMLTaskToMlr(task)
expect_is(mlr.task$mlr.task, "Task")
expect_is(mlr.task$mlr.rin, "ResampleInstance")
for (i in seq_along(mlr.task$mlr.measures))
expect_is(mlr... |
d80a1ebb927df5043d137ce87710c40a041c56a1 | 61ad1512559407a9b22823188c9984769d5da25e | /man/init_presta_manager.Rd | 0b08c93d18b0187ed0c36d8ba9868ad3efbc1039 | [
"MIT"
] | permissive | Cervangirard/todoist | 0e7cd0ed651744f1d843060527b50fd94c28d2f7 | 586b117e577c9cffde5149b7c329b4b0c7cfe970 | refs/heads/master | 2021-04-05T07:20:42.763590 | 2020-04-17T13:41:51 | 2020-04-17T13:41:51 | 248,532,463 | 0 | 0 | NOASSERTION | 2020-03-19T15:03:56 | 2020-03-19T15:03:55 | null | UTF-8 | R | false | true | 909 | rd | init_presta_manager.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/form_presta.R
\name{init_presta_manager}
\alias{init_presta_manager}
\title{Init presta manager}
\usage{
init_presta_manager(
project_id,
tasks_list = list("Proposition - Devis", "Gestion projet",
"S'assurer d'avoir un nom de projet c... |
f02e603bc4b1002b231b5d484f3a669276c5aff6 | 4515a918188cf18e299963f6c4d87202c7cd212f | /scripts/old/99_plot_slim_old.R | ebf958153235d7820f39963eaf413ceb4457f5ff | [] | no_license | mastoffel/sheep_roh | 94132c4531eaff49dc77555f0c9b6c132bebc115 | b39bb4e33a1362d9a58eebd4341e2a77c0c599e8 | refs/heads/master | 2023-07-06T00:33:51.772215 | 2021-08-06T10:41:33 | 2021-08-06T10:41:33 | 269,019,067 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,977 | r | 99_plot_slim_old.R | library(tidyverse)
library(ggplot2)
library(gghalves)
source("../sheep_ID/theme_simple.R")
mut_df1 <- read_delim("output/qm_slim/slim1000200/out/par_combs_popsize1_1000_popsize2_200.txt", " ") %>%
mutate(popsize = 1000)
mut_df2 <- read_delim("output/qm_slim/slim5000200/out/par_combs_popsize1_5000_popsize2_... |
6e0de75c52119205912505f42911f0b041258905 | b43718436c098a8088ff1329adac36e1e8063e54 | /man/xml_to_ds_spec.Rd | ba49407d10db1b668ef1b994dc98dcafcacf02df | [
"MIT"
] | permissive | thomas-neitmann/metacore | 658d6f20e7722db882a505a3eb60e5f89f8f576d | ec62d598f69d0b3a9f99e3cb24dbe6a8b222bbba | refs/heads/main | 2023-06-29T02:25:15.744144 | 2021-06-11T09:54:28 | 2021-06-11T09:54:28 | 390,272,220 | 0 | 0 | NOASSERTION | 2021-07-28T08:35:57 | 2021-07-28T08:22:34 | null | UTF-8 | R | false | true | 614 | rd | xml_to_ds_spec.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xml_builders.R
\name{xml_to_ds_spec}
\alias{xml_to_ds_spec}
\title{XML to Data Set Spec}
\usage{
xml_to_ds_spec(doc)
}
\arguments{
\item{doc}{xml document}
}
\value{
data frame with the data set specifications
}
\description{
Creates a datase... |
5c1a7250595ae35135fddee002f54a8f999dbba2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ncf/examples/spline.correlog.Rd.R | ba30de826b18e4eb46caec4820dab37e65051867 | [] | 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,042 | r | spline.correlog.Rd.R | library(ncf)
### Name: spline.correlog
### Title: Uni- and multivariate spline correlograms
### Aliases: spline.correlog
### Keywords: smooth spatial
### ** Examples
# first generate some sample data
x <- expand.grid(1:20, 1:5)[, 1]
y <- expand.grid(1:20, 1:5)[, 2]
# z data from an exponential random field
z <- cb... |
f2177272b1360350591d8806cbd84aa2a3f5b9fc | dfe2c8e283a4dcec74ed3511d214f014e21a15ea | /R/makeStats.R | a184b90e4b851a429fe10e889e5016f5d33a0b0e | [
"MIT"
] | permissive | JiaziChen111/modelconf | 0b8dabcb32056aaf701bc45ecef7605827e2f078 | e05eaad92e8499feb6f2befba54b226a979da8a7 | refs/heads/master | 2022-03-30T09:15:30.208959 | 2020-01-21T21:53:46 | 2020-01-21T21:53:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 530 | r | makeStats.R | makeStats <-
function(data, boot.index) {
data.mean <- colMeans(data)
n <- nrow(data)
B <- ncol(boot.index)
weights <- vapply(1L:B,
function(j) tabulate(boot.index[, j], nbins = n),
integer(n)) * (1 / n)
if (all(apply(weights, 1, function(x) length(unique(x)) == 1))){
... |
7f7e8836f944c0f186ab9fd847476bef69635a5e | cb57199836e5e5de9f597c13404e2a089285bc44 | /man/format_topics.Rd | 18de15420c6d363b3481e4de4885f07db5165496 | [
"MIT"
] | permissive | kevinrue/BiocChallenges | 57971f16cc828cfc657a52ab1291983adc595d7b | 8f1a9628b7816c69876b9ffa3610fd0109bb6fa5 | refs/heads/main | 2023-08-28T09:53:56.134237 | 2021-10-31T21:29:41 | 2021-10-31T21:29:41 | 294,656,697 | 0 | 0 | MIT | 2020-09-11T15:39:06 | 2020-09-11T09:50:25 | R | UTF-8 | R | false | true | 622 | rd | format_topics.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topics.R
\docType{data}
\name{topic_tags}
\alias{topic_tags}
\alias{format_topics}
\title{Challenge Topics}
\format{
\code{topic_tags} is a character vector of valid topic tags.
}
\usage{
topic_tags
format_topics(params)
}
\arguments{
\item{... |
eeb717c91ee4a88191609d2d6722d910a32e6115 | 4ce0cc121642cc9a3af8fd16e2c87280d4d6dc50 | /R/hello.R | 5149c454550c82dad782e6bccc88473a1c7e1f91 | [] | no_license | roberamo/daphnia | 38a26506456c852c88557690986235c146bcb66f | 629b4fc733c20d653778e8fa9df3dd2f5c1b7962 | refs/heads/master | 2020-04-06T17:52:49.091392 | 2018-11-15T09:38:32 | 2018-11-15T09:38:32 | 157,676,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 252 | r | hello.R | #' Say hello to someone.
#'
#' @param name A string of characters. (Default = "Robert")
#' @return Prints a friendly greeting.
#' @examples
#' hello(name = "Andreas")
#' @export
#'
hello <- function(name = "Robert") {
print(paste("Hello,", name))
}
|
50582452d49e7f752eb197fc91a75e4d1897bf50 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Rdimtools/examples/nonlinear_LAMP.Rd.R | 89fe8d4641e648ee47c5d2a36ba12f483d1e1823 | [] | 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 | 484 | r | nonlinear_LAMP.Rd.R | library(Rdimtools)
### Name: do.lamp
### Title: Local Affine Multidimensional Projection
### Aliases: do.lamp
### ** Examples
## Not run:
##D ## load iris data
##D data(iris)
##D X <- as.matrix(iris[,1:4])
##D
##D ## let's compare with PCA
##D out1 <- do.pca(X, ndim=2) # PCA
##D out2 <- do.lamp(X, ndim=2) ... |
642fb9603cdfebf483afd42c5701d4d3b8bbca0f | 10ba1d80002e305998364b1e46e744708ef89043 | /Naive Bay_Yulong Gong.R | e3016e3ec60a043df254b07f8dfe028353004008 | [] | no_license | AntonioMoralCevallos/BA810-Classification_of_Cellphone_Price_Ranges | 1c9eb53253275d9a70fd12d2b14d6bcf517112d9 | 6403a90983aec8221cd37934889f6b780e11af08 | refs/heads/main | 2023-08-07T00:16:34.496827 | 2021-08-28T05:54:40 | 2021-08-28T05:54:40 | 340,150,260 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,131 | r | Naive Bay_Yulong Gong.R | install.packages(c('tidyverse','caret','caretEnsemble','psych','Amelia','mice','GGally','rpart','randomForest'))
library(tidyverse)
library(ggplot2)
library(caret)
library(psych)
library(Amelia)
library(mice)
library(GGally)
library(rpart)
library(randomForest)
library(data.table)
# import the data
data <- fread('/Us... |
0e178b5163512df758b92897c773d5002754e9e9 | 70aeaefa7dccc959a192d46f659d9153cad62a5b | /R/add.cases.r | 9ff0044a3c6228e178ae22892e4ccbb1707fbc27 | [] | no_license | isubirana/rutinesPkg | ec5929925c6291f4d440b5e10c50e29f7ecad306 | 598f879321f7cbb8f753c1b80b1ee39810d3f3b6 | refs/heads/master | 2020-04-02T13:39:45.823880 | 2019-03-04T07:24:41 | 2019-03-04T07:24:41 | 154,490,840 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,909 | r | add.cases.r | #' FUNCIO QUE AFEGEIX CASOS
#' funcio que afegeix els casos de y sota dels de x.
#' @param x primera base de dades
#' @param y segona base de dades que es posara a sota
#' @param font NULL
#' @param all 1: posa les variables comunes de x i de y; 2: posa totes les variables de x; 3: posa totes les variables de x i totes... |
58f86d154fa867b15ae0708dfe3c4e5f94272abf | 628380401240c432584c9af7145c993e5d1ff740 | /R/check_fun.R | 23a1cc3efd3daaafe5343c1f6ac56f3780eae6d5 | [] | no_license | bamaecohydro/waterLevel_Demo | a3fa05a2edcd0b762d406db2e5669a5864c272c9 | 016934c0c77cbd5b084de939d978bfe6ccfaaf9d | refs/heads/master | 2023-03-09T09:52:17.518236 | 2021-02-17T18:25:28 | 2021-02-17T18:25:28 | 339,799,582 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,979 | r | check_fun.R | #Grab info from files
file_fun<-function(n){
#Download data
temp<-read_csv(pt_files[n], skip=1)
#Determine serial number
serial_number<-colnames(temp)[grep("LGR",colnames(temp))][1] #Find collumn name with serial number
serial_number<-substr(serial_number, #isolate serial number
... |
748ec69a226ef2ac81a4d6bfbfd8e3355665a33b | 684ecc2d505f5ba61b6f9bf93cc8f07971323c17 | /man/larkspur.Rd | a0e0f8583c3062a46a25fb88b05495453caaf7ff | [] | no_license | trobinj/trtools | 1997997ff220a355c911c6d3746ebfa5012cc919 | b6fcac2f13a4ab3c8a343c0ce5fc255fc16db779 | refs/heads/master | 2023-01-13T22:37:28.268364 | 2023-01-06T15:51:26 | 2023-01-06T15:51:26 | 67,811,702 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,079 | rd | larkspur.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/larkspur.R
\docType{data}
\name{larkspur}
\alias{larkspur}
\title{Sample of transects of pale white larkspur.}
\format{
A data frame with 20 observations and two variables:
\describe{
\item{plants}{abundance in a sampled transect}
\item... |
2c978423a117e9ebb8620a37a26f7b46117454cb | a8b6bfc9e1e34d5d260b833587b9fc7ff84215da | /man/nbss.Rd | 7bb304fddcf400c41f1f0a21e3d86d62a67c195b | [] | no_license | jiho/nbssr | d93d92efaa92fe3099187c74527eed22aa77844d | 838ddfe8829829aed2a0023d63798d377e5090b1 | refs/heads/master | 2022-07-26T15:18:55.354762 | 2020-05-14T23:40:21 | 2020-05-14T23:40:21 | 262,024,579 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,321 | rd | nbss.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nbss.R
\name{nbss}
\alias{nbss}
\title{Normalised Biomass Size Spectrum}
\usage{
nbss(x, w = rep(1, length(x)), type = c("biomass", "abundance"),
base = 10, binwidth = 0.1)
}
\arguments{
\item{x}{vector of biomasses, biovolumes, or lengths.... |
80492a9100f227ac1eeb09aec6dd477bb0e67b18 | 5434a6fc0d011064b575b321e93a3519db5e786a | /man/clearNodeOpacityBypass.Rd | 2d07142657f4ece3f36535e2fb94ba6615681d84 | [
"MIT"
] | permissive | cytoscape/RCy3 | 4813de06aacbaa9a3f0269c0ab8824a6e276bad9 | 18d5fac035e1f0701e870150c55231c75309bdb7 | refs/heads/devel | 2023-09-01T18:23:28.246389 | 2023-08-23T07:57:19 | 2023-08-23T07:57:19 | 118,533,442 | 47 | 22 | MIT | 2023-04-03T17:52:34 | 2018-01-23T00:21:43 | R | UTF-8 | R | false | true | 1,003 | rd | clearNodeOpacityBypass.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleBypasses.R
\name{clearNodeOpacityBypass}
\alias{clearNodeOpacityBypass}
\title{Clear Node Opacity Bypass}
\usage{
clearNodeOpacityBypass(node.names, network = NULL, base.url = .defaultBaseUrl)
}
\arguments{
\item{node.names}{List of node... |
796b77e0607234f3999cb031dda17dee87012c09 | 501221e119380024b9be0cb3259a98080212c50d | /cachematrix.R | e5232323964b314d8270098b6f77736bbee09483 | [] | no_license | apocalypsemeow/ProgrammingAssignment2 | 58535b294b759cd66490fc71aa82882d02102038 | d6bd8d9458f4e0ea313e0105d60909f7ea421016 | refs/heads/master | 2021-01-20T15:49:45.987447 | 2014-08-22T02:54:25 | 2014-08-22T02:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,258 | r | cachematrix.R | ## These functions compute the inverse of a matrix
## if it has not already been computed.
## makeCacheMatrix takes as input a matrix, and returns a list
## of functions that can modify and retrieve its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL ## Used to determine if inverse already set
set ... |
1fce6ff60f1cd01d9a8587e0fca252480ba2eb8f | e7eccb62a1ee411b0c9bc659b0bcc52c58eb6eb1 | /Neural_net_portion_Fred.R | 1a73f869782eebc9a21f555b111bbfc096aba9fc | [] | no_license | cmbrook/Big-Data-Spring-2017-USU | f639be516aa75f3f0f869c2babd3aa63dbb156ab | b073687d1218deb9a631d4663c500fab8143a4cd | refs/heads/master | 2021-01-11T16:41:33.365368 | 2017-04-25T04:29:04 | 2017-04-25T04:29:04 | 80,140,198 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,235 | r | Neural_net_portion_Fred.R |
train_dum<-encode_categorical_variables(train2)
ntrain<-1460
train_dum_reduced<-do_variable_selection(train_dum)
vrs<-names(train_dum_reduced)
train_dum_reduced_log<-mutate(train_dum_reduced,SalePrice=log(SalePrice+1))
nn_form<-as.formula(paste("SalePrice ~", paste(vrs[!vrs %in% "SalePrice"],collapse= " + ")))
... |
91c32412a0237c2f13af7335c336eaa54576246a | 29585dff702209dd446c0ab52ceea046c58e384e | /phytotools/R/fitEP.R | b4c4cea2ca85eafa1b6285f44500a59f93534b81 | [] | 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 | 2,134 | r | fitEP.R | fitEP <- function(x, #E
y, #Quantum Efficiency, rETR or P
normalize=FALSE, #Should curve be normalized to E (Default=TRUE for modeling Quantum Efficiency)
lowerlim=c(0,0,0), #Lower bounds ... |
2133e0ad9fd20e0abcd4042c93d4dde986388815 | 52f97cd52c3a4a06b52d5166083a377340adb114 | /JingFeng_ML_Thesis/mango/wheat_tSNE.R | 73904b0721a6c6bbd56f130b7bcab5a6faaa479f | [] | no_license | xiaoci12aa/Jing_Feng_ML_Thesis | fca032096b6747c48ac7258c29090d81b52f1226 | 401c59eb77b4eb256d41051346eac0e625ba743d | refs/heads/master | 2021-01-23T08:33:54.995827 | 2017-09-05T22:13:12 | 2017-09-05T22:13:12 | 102,534,344 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 760 | r | wheat_tSNE.R | library(tidyverse)
library(tsne)
wheat_data <- read_tsv(file = "/Users/XC/DOCUMENTS_COPY/UCL/Project/Final_Project/wheat/data sheet 1.csv")
X_wheat <- wheat_data[,-c(1:4,35)]
# Y <- wheat_data[,3]
tsne_wheat <- tsne(X_wheat, perplexity = 30, k = 2, max_iter = 500)
# add necessary variebles to data frame
tsne_wheat_... |
24dd793b0a8c67b98302fa0bf87a8e3dcc6faee1 | 1e899747d72292a3a205251602d420d4ffcb0abc | /workflow/shrinkage_plot.R | 7d78924137332da45af4b341b26288d96dc2348c | [] | no_license | emittman/BB_data_analysis | 21253c573aedb8fd28be4b55ff85d6ff99536b3f | 5c5ec61a9a316623873c3a7219d55d527bc353c3 | refs/heads/master | 2021-09-21T00:57:15.512850 | 2018-08-18T04:56:19 | 2018-08-18T04:56:19 | 69,043,249 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,254 | r | shrinkage_plot.R | setwd("workflow/")
dm=1
dat <- readRDS("../BB_data/clean_unit_summaries.rds")
dat$model <- as.integer(dat$model)
library(plyr)
library(dplyr)
library(rstan)
library(ggplot2)
overview <- ddply(dat, .(model), summarise,
n=length(model),
f=sum(failed>0),
... |
60f8be82c7d2704b042728b78695408ad8bf9f81 | b1ddc1aa692dd03a39c6eac2b88480e8f2c934d6 | /man/makeCustomRun.Rd | 5bd26b7ad59fb2aff1e8446c28fa07cc7d593b33 | [] | no_license | ekhco/LCsim | 73375ee41ecef7efb664a29011cbc6549a9a7f59 | 990030483962dddb28a25af86470b883f5f11f0e | refs/heads/master | 2022-02-15T09:25:00.706297 | 2019-07-28T01:58:45 | 2019-07-28T01:58:45 | 103,585,907 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 972 | rd | makeCustomRun.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runSHG.R
\name{makeCustomRun}
\alias{makeCustomRun}
\title{Custom SHG Call}
\usage{
makeCustomRun(birth_cohort)
}
\arguments{
\item{birth_cohort}{the year of birth for the cohort (ie: 1950)}
}
\description{
The SHG is written in Python and is... |
f6d5c5c872010a41a0f6fbe63f395c7412c68059 | 3e88ff6e452f3ea6e3b0f650d78fb317fe23cfe6 | /plot4.R | c99e485bbc8130b1a1c745e67e9dc504bf144afb | [] | no_license | izaakjephsonbw/ExData_Plotting1 | ba59ec3092f0f5d34cfb61ccaaa1dc0d9d5129a7 | c3381d7d8d4722d7ee2c93afcb11cef9b683aa3b | refs/heads/master | 2020-09-08T00:38:08.965818 | 2019-11-11T12:16:28 | 2019-11-11T12:16:28 | 220,959,148 | 0 | 0 | null | 2019-11-11T10:45:59 | 2019-11-11T10:45:58 | null | UTF-8 | R | false | false | 1,421 | r | plot4.R | ## Creates 4 plots of Global Active Power, Voltage, Energy Sub Metering and Global Reactive Power against time (Plot 4)
## Import libraries
library(tidyverse)
## Read data into R
colnames <- read.table("./data/household_power_consumption.txt", sep = ";", nrows = 1)
electric <- as.tbl(read.table("./data/household_powe... |
8611ca9b70e22b0eba9336326e15473477f48487 | 4b18c286684d30b23bc0b81ac6faff63167c7905 | /man/geneexpr.Rd | 6fc5f0b45fd1e4b730f73d718ca180bc6e0be508 | [] | no_license | smeister/test2 | 63169293554590460551b2aab2e53f36df8487b3 | 49e93d1af927559ea7197ce6dd405765443fa30c | refs/heads/master | 2020-03-11T09:24:28.283235 | 2018-04-17T13:44:21 | 2018-04-17T13:44:21 | 129,909,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 206 | rd | geneexpr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geneexpr.R
\name{geneexpr}
\alias{geneexpr}
\title{Geenexpr function}
\usage{
geneexpr(...)
}
\description{
Geenexpr function
}
|
0b7aaf180cbf0855577ccf6b6dd99928d7f02dc3 | d187f91ad1a76fb2118d537dfdaecab1f1483529 | /plot5.R | 94acc274ed13060e2046102127c40452220f1b7e | [] | no_license | IndC/Exploratory-Data-Analytics | 0aa1bf7b1c3ca47d2a6c606e20cd76182ee5f8f9 | 8e1c8fbf8df81d413ab86143a3b21b2a8ff29cb1 | refs/heads/master | 2020-03-26T20:18:30.792395 | 2015-01-26T03:15:31 | 2015-01-26T03:15:31 | 29,799,244 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 926 | r | plot5.R | # How have emissions from motor vehicle sources changed from 1999-2008 in Baltimore City?
library(reshape2)
library(ggplot2)
NEI <- readRDS("./exdata-data-NEI_data/summarySCC_PM25.rds")
SCC <- readRDS("./exdata-data-NEI_data/Source_Classification_Code.rds")
SMV <- SCC[grep("highway", SCC$SCC.Level.Two, ignore.case =... |
7a85cef5a9da64f099fb58dae4615c0a82a2557c | 29585dff702209dd446c0ab52ceea046c58e384e | /spatcounts/R/est.sc.R | 2a455631969954119464d072cd49b50996b49c95 | [] | 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 | 1,375 | r | est.sc.R | `est.sc` <-
function (Yin, fm.X, region, model = "Poi", gmat, nmat, totalit, fm.ga = TRUE, t.i = NULL, phi0 = 1, omega0 = 0, r0 = 1, beta0 = NULL, gamma0 = NULL, sigma0 = 1, psi0 = 1, Tau = 10, alpha = 2){
if (fm.X == ~1)
Xin <- matrix(1, length(Yin), 1)
else Xin <- model.matrix(fm.X)
Xin <- cbind(... |
e989ea1472737db1a5d2ff1fbec0d69cb50752eb | 410a2dfcbe74978eb10912a3dfe74bff3d136357 | /tests/testthat/testOneStructure.r | 8a54483601d1c542d907a858b85430560d240fb7 | [] | no_license | cran/dae | 7ee9c2ad4fcb3c97b846eb76ed560c20c591a977 | df5b45cc69b9984473f254891510687f2eb114ef | refs/heads/master | 2023-08-18T19:51:15.580290 | 2023-08-07T15:50:14 | 2023-08-07T17:30:45 | 17,695,368 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,642 | r | testOneStructure.r | #devtools::test("dae")
context("analysis")
cat("#### Test for designAnatomy with single structure\n")
test_that("OneStructure", {
skip_on_cran()
library(dae)
#'### Make a Latin square
ls.ran <- designRandomize(allocated = data.frame(Trt = factor(designLatinSqrSys(7))),
reci... |
a60fb66ef9c5291c1735147af6c0df59ccb11770 | 6c95b178376e0f406a4833296e57b84cb802e4b6 | /server.R | 9c6cf9195ae77aaed46fe36fffe318561da9ff64 | [
"MIT"
] | permissive | booleangabs/Airlines-Data-Dashboard | b4c98d1f71b1bbe92af848fee751925ce81bf9fe | fdd5ab6b97a8e2134a2d873406fb12975aa415e1 | refs/heads/main | 2023-07-20T13:42:05.749546 | 2021-08-18T00:40:58 | 2021-08-18T00:40:58 | 394,472,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,894 | r | server.R | getMode <- function(v) {
uniqv <- unique(v)
uniqv[which.max(tabulate(match(v, uniqv)))]
}
server <- function(input, output) {
################### INPUT ####################
# Empresa na aba simples
select_airline <- eventReactive(input$go, {
airline_name <- input$airline
return(airline_name)... |
5a2435d61471d801c8837ee1ceaa307cd1da4b25 | 36a745e91445b312088d2ec5beabbc10e4d14160 | /analysis_kim_adenocarcinoma/Kim_run_DM_package_version5.R | 21b36bd4d978b3d92f4076533226a112750e7213 | [] | no_license | gosianow/multinomial_project | a111be129f3790048f1f2c9baac5c39651c6605b | f5e5b96195fd99a8fe4aa80cdc0f12196e595823 | refs/heads/master | 2020-12-25T22:30:58.509784 | 2016-03-31T15:48:22 | 2016-03-31T15:48:22 | 28,908,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,956 | r | Kim_run_DM_package_version5.R | ######################################################
# BioC 2.14
# Created 04 Nov 2014
# Analysis of Kim_adenocarcinoma data
# Update 19 Nov 2014:
# plots of TREND dispersion vs. mean
#######################################################
setwd("/home/Shared/data/seq/Kim_adenocarcinoma/")
metadata <- read.t... |
7e31b5b06ca0f0181decce6debe43c88ec270701 | c459dd32d88158cb064c3af2bc2ea8c7ab77c667 | /sample_info/clinical/extract_cptac_discovery_ccRCC_survival_time.R | ffe0c75863daa36053ae0bb678aa1b2d3a55da1b | [] | no_license | ding-lab/ccRCC_snRNA_analysis | d06b8af60717779671debe3632cad744467a9668 | ac852b3209d2479a199aa96eed3096db0b5c66f4 | refs/heads/master | 2023-06-21T15:57:54.088257 | 2023-06-09T20:41:56 | 2023-06-09T20:41:56 | 203,657,413 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 9,909 | r | extract_cptac_discovery_ccRCC_survival_time.R | # Yige Wu @WashU Mar 2022
## reference: https://www.emilyzabor.com/tutorials/survival_analysis_in_r_tutorial.html
# set up libraries and output directory -----------------------------------
## set working directory
dir_base = "~/Library/CloudStorage/Box-Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA"
setwd(dir_base)
pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.