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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b4246edf59f096db1bf7e1b2966b40fa12de2a8 | fd1dcaa81dc2344f7f63dc79ecd6451b5adbc973 | /lab5/l5p2.R | c472a6506f25cfdc6e8a64d867b8abf41d21cb29 | [] | no_license | Srinjoy-Santra/Advanced-Programming-Lab | b7ba6cdcdeb7f67c4073019c547dd27820e4ba52 | cbb99b60876af031ff5702cedd6cf43fdee57b2c | refs/heads/master | 2021-10-25T11:48:46.264588 | 2019-04-04T01:57:14 | 2019-04-04T01:57:14 | 170,554,562 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 231 | r | l5p2.R | #war to extract substring of 6 characters from given string and replace that substring with "Odisha"
linkin="Linkin Park is an American rock band from Agoura Hills"
part=substr(linkin,19,25)
print(sub(part,"Odisha",linkin))
|
ca0c4a0e56f4af0b5c595b6ec9e7507ae2a56309 | a040bdcfb00ebedfba5e35a463d16d43c9569387 | /information-retrieval-bow/test_information_retrieval_bow.R | 2e9ec15d95d1db3d3a91a828a5bf6d17a0e9eedf | [] | no_license | mpudil/projects | 6a9ab02668be9ad6f5e0c4e9690026c9e41baa8f | b9795489011068a262e3e24b76fa0cc482eb7210 | refs/heads/master | 2022-07-13T09:45:24.974556 | 2021-01-29T18:52:41 | 2021-01-29T18:52:41 | 158,999,291 | 1 | 1 | null | 2022-06-22T03:06:53 | 2018-11-25T04:58:22 | Jupyter Notebook | UTF-8 | R | false | false | 7,506 | r | test_information_retrieval_bow.R | #!/usr/bin/env Rscript
## Rscript test_information_retrieval_bow.R
library(testthat)
library(here)
source("information_retrieval_bow.R")
artfiles <- paste0("Data/nyt-collection-text/art/",
list.files(here("Data", "nyt-collection-text", "art")))
musicfiles <- paste0("Data/nyt-collection-te... |
65b4e83d7fbdbdc9b2dc7137bf52d9c4e16397e3 | a1bc3aeb3b1326408ae14864ba84fc44529705f0 | /R_Programming/Prog_Assign_4/ProramminAssignment3.R | a2bda78022cdf1aedc5474d144764d810333c8e6 | [] | no_license | vrindaprabhu/DataScience_Johns_Hopkins | fa1e7d28d11a0bea11626848561676b778e4161d | 0da47e3c9bbc86e5bbce1adbd2c9d0904beda2a6 | refs/heads/master | 2021-01-22T03:22:26.802940 | 2016-05-01T17:40:38 | 2016-05-01T17:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,055 | r | ProramminAssignment3.R | # http://dr-k-lo.blogspot.in/2013/11/in-in-r-underused-in-operator.html
trim <- function (x) gsub("^\\s+|\\s+$", "", x)
best <- function(state, outcome) {
## Read outcome data
outcome.data <- read.csv("outcome-of-care-measures.csv",na.strings = "Not Available",stringsAsFactors = F)
outcome.list <... |
966c9f6483eec0bf44493524efbfdc12e66fc699 | e370cb059339a541ae1b0b4a649eb5e43acf0609 | /sparseSingleCell.R | abd2fe055d94db1f0f497193b6a48c6dc2269e2e | [] | no_license | pmb59/sparseSingleCell | fa6fb9d8a9314a9fe625b56e5e4da3320ebf040b | 0937e0e622cdccf0bf2787b879857d80dccf2464 | refs/heads/master | 2023-04-13T16:20:38.787059 | 2023-04-01T18:21:52 | 2023-04-01T18:21:52 | 161,413,482 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,109 | r | sparseSingleCell.R | library(fdapace)
library(data.table)
# fgf4 (mm10), '+' strand
chr <- 7
start <- 144861386
end <- 144865243
EXT <- 500
# read chormatin accessibility scNMT-seq data
files <- list.files(
path = ".", pattern = "acc_processed.tsv", all.files = FALSE,
full.names = FALSE, recursive = FALSE,
ignore.case = FALSE, incl... |
3ded7a524b3390bc52ee68db55db5cc3ec24b2a2 | 2b3cbc05953d0502cfd03db9cc8818ceff5783c2 | /80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aV8MoC1aZQAmo.R | 43cfc893c876764546a0a4c729d0b2e7cd87a1f4 | [] | no_license | ayanmanna8/test | 89124aa702fba93a0b6a02dbe6914e9bc41c0d60 | 4f49ec6cc86d2b3d981940a39e07c0aeae064559 | refs/heads/master | 2023-03-11T19:23:17.704838 | 2021-02-22T18:46:13 | 2021-02-22T18:46:13 | 341,302,242 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 850 | r | aV8MoC1aZQAmo.R | with(a4155cdb4d45441a8925ebefb1984cbf9, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';source("D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/R/Recommendations/advanced_federation_blend.r");a2Hrpdwy3col1<- as... |
b90e9591ebebdf96ec7a3fb9ee30e3cf999ffa21 | e1986ad57cf85a086abb699dcb1a0ae23dd54be7 | /inst/examples/data/linreg/example_bptest.R | c003d42068d3396c78e478aaca8d9800a5ed5a97 | [] | no_license | Kale14/mmstat4 | 4fb108216f768bc404a7f353621f4f129258ba0a | 5ee81b9f5452e043b3a43708801997c72af3cda2 | refs/heads/main | 2023-03-29T22:25:45.841324 | 2021-04-07T09:15:41 | 2021-04-07T09:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 264 | r | example_bptest.R | library("rio")
x <- import("https://shinyapps.wiwi.hu-berlin.de/d/StaedteMietenR.sav")
x <- x[complete.cases(x),]
lm <- lm (Miete~Fläche, data=x)
summary(lm)
plot(x$Fläche, residuals(lm))
abline(h=0, col="red")
#
library("lmtest")
bptest(Miete~Fläche, data=x) |
5adb801e0280af8e5e38cd376e09d268b740f9eb | a4e9ab2f19e9858a6791072e0343fc13044a6053 | /cnv_histone_heatmap.R | 060757d30672e2cfe1412bafd2ca51afb5df9584 | [] | no_license | 18853857973/CRC_lncRNA | 02e617ec6c4386df6cfc8a68aec72c26e9a5532e | f3e3080ec1df743bf61b9d8cff20471f44152f26 | refs/heads/master | 2020-03-10T21:15:16.715549 | 2018-03-06T13:32:04 | 2018-03-06T13:32:04 | 129,589,228 | 0 | 1 | null | 2018-04-15T07:59:58 | 2018-04-15T07:59:57 | null | GB18030 | R | false | false | 25,420 | r | cnv_histone_heatmap.R | setwd('D:\\CRC_lncRNA\\cnv\\percentCNV')
############################
#全部lncRNA
all_novel=read.table('D:\\CRC_lncRNA\\filter\\lncRNA\\lncRNA.final.v2.novel.geneid.txt')
all_novel=all_novel[,1]
all_novel_num=length(all_novel)
all_known=read.table('D:\\CRC_lncRNA\\filter\\lncRNA\\lncRNA.final.v2.known.geneid.txt')
all... |
226bb483019f1de76dfb5dc5ff39bcad6460e3ac | f4a9cb3be91d66eacdd00fb693f1dabd2843ef40 | /MIdterm/easyRasch/R/Probability.R | b90c04b2685abbdc37435241f2afd42908c19916 | [] | no_license | domlockett/MIdterm | f36443cbb04eb8f1f3036cfa4f959124c2f8c174 | 983c5ddc0b69270abefe45f31ee54045dbaf0228 | refs/heads/master | 2021-04-06T06:27:07.258874 | 2018-03-14T23:15:04 | 2018-03-14T23:15:04 | 125,237,208 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,603 | r | Probability.R | #' Probability
#'
#' Returns probability that a student gets a question right given their ability, and the difficulty of the question
#'
#' @param raschObj An objecto of class Rasch
#' @param theta A proposed value representing a person's ability
#'
#' @return A vector of P and a vector of PQ
#' @author Dominique Locke... |
28abe0ca0f0052834c5c28890418adcc5faaca43 | 52a9cd42e569609451cf803f24caeb98902679ec | /scRNA-seq/codes/practice11_smart-seq2_mouse_hsc_26.R | aa4b1c31c6c6de4290a7753250e9b173f72624ac | [] | no_license | hsuh001/project | 478135d6b2aa27bb05f00a0b31b415a6fc9f172c | ebd1980e0d045488674821b7420ce05fc3066c39 | refs/heads/main | 2023-02-28T03:04:29.268325 | 2021-02-05T14:29:34 | 2021-02-05T14:29:34 | 326,706,671 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,725 | r | practice11_smart-seq2_mouse_hsc_26.R | ########################################
# practice 11, Smart-seq2, mouse haematopoietic stem cell
# date: 2021.02.04 - 02.04
# author: Jing Xiao
# ref: https://jieandze1314.osca.top/04/04-11
########################################
# rm all objects --------------------------------------------------------------
rm(li... |
196ae35bc94c5795eb2d26b72d74c6b6e3078808 | 7c93da7aba0814728b53cd2f0f307070d0260d44 | /man/my_lm.Rd | 88b401f62f2bd5f885f5f61014901f31c191d8fa | [] | no_license | ZhiqingYang/package302 | 738171326e54a00fa0a3511d137571f6a5c8b154 | 229d94a97c6f417020797f7bd725a0a57101daed | refs/heads/master | 2023-07-01T10:12:05.968289 | 2021-08-10T14:12:08 | 2021-08-10T14:12:08 | 373,801,783 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 484 | rd | my_lm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my_lm.R
\name{my_lm}
\alias{my_lm}
\title{linear models}
\usage{
my_lm(formula, data)
}
\arguments{
\item{formula}{A class object}
\item{data}{A set of data}
}
\value{
A dataframe of summary with rows for each coefficient and columns for the... |
0cf5089a629cccf798c77af730a941b98e68d007 | 898f6a55b8c3565ecf88e69c77a10e6e76872f53 | /src/31-dpi-reduction.R | e340a484f3939935f62a46900add3782f278b52c | [] | no_license | DIGI-VUB/HTR-tests | 93a47b578d656fc4844bb08b953f7b6ded86a8b7 | efa8fae88e4848c70a7828a8e724ecb96d421a7c | refs/heads/master | 2023-03-05T17:42:43.319745 | 2021-02-17T11:24:30 | 2021-02-17T11:24:30 | 283,727,132 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 685 | r | 31-dpi-reduction.R | library(zip)
library(magick)
setwd("/home/jwijffels/magick/imgs")
unzip("text_en_foto.zip", exdir = getwd())
setwd("/home/jwijffels/magick/imgs/text_en_foto")
x <- list.files(pattern = ".jpg$")
for(i in seq_along(x)){
cat(sprintf("%s/%s: %s ", i, length(x), x[i]), sep = "\n")
from <- x[i]
to <- sprintf("converted... |
61e0f4b8b864904ae1f89f6ae1e3d2b118da7cf8 | 0cc6e78c988fabb6e2e1eb8bfe7d2515bf1e4367 | /R/pbo-package.R | 194e4bad5c1013105af9eb2213ffbe414b68ade2 | [] | no_license | mrbcuda/pbo | 9f90799855ea80eab6ab75f1d49acdf3575a7c3a | b132dda7b29e573ba86bfb378798706f6a6a54c1 | refs/heads/master | 2022-07-03T10:37:25.975465 | 2022-05-26T14:19:44 | 2022-05-26T14:19:44 | 15,350,480 | 41 | 13 | null | 2016-08-25T21:23:44 | 2013-12-20T23:16:39 | R | UTF-8 | R | false | false | 870 | r | pbo-package.R | #' Probability of backtest overfitting.
#' @description Computes the probability of backtest overfitting
#' @details Implements algorithms for computing the probability of
#' backtest overfitting, performance degradation and probability of loss,
#' and first- and second-order stochastic dominance,
#' based on the appr... |
e6d8f70858b3eb32dc2d4b47de82c288a4e89fc1 | 74b3857116ff10aad01fcabeed10e84ee23ca918 | /Frecuencias/Graficos/Prueba_Sebastian.R | c5faa473da334c7a60f0e15c6f0733df51993df9 | [] | no_license | TBmex/baps_1177_linnage4 | b492591a636d47cb7cf8f6531fdff146d904e5d9 | 28f6bc89e4bc43e746745868a412eb0aac2b6c47 | refs/heads/master | 2023-04-17T00:57:06.228653 | 2021-04-27T08:17:33 | 2021-04-27T08:17:33 | 316,462,878 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,446 | r | Prueba_Sebastian.R | #Tabla de Sebastian
Tabla_Sebastian <- Transmission %>% select(Genotipo, N, N_incluster) %>%
mutate(N_NO_incluster = N - N_incluster)
Genotipos_Españoles_S <- Tabla_Sebastian %>%
filter(Genotipo %in% c(5,9,7,8,15,4,1)) %>%
select(-Genotipo) %>% summarise_all(funs(sum))
Genotipos_mixtos_S <- Tabla_Sebastian %... |
710b2942fc148540dc310a6270faeee23095e53b | 3d6ce5aeec4d36945cb1fbedcf4107425322358d | /code/protein_combine_single_model.R | 1530537b8d7302773b54b708425b8a7cadcb0a97 | [] | no_license | weidai00/SPNG | 1bcd398c4a3b19280819f34d9375880a12478b7e | 85aee84d693c72b1bb714351f4f40c427e10849a | refs/heads/main | 2023-04-09T10:04:02.439793 | 2021-04-19T00:36:21 | 2021-04-19T00:36:21 | 321,524,483 | 0 | 0 | null | 2021-04-14T11:18:22 | 2020-12-15T01:58:19 | null | UTF-8 | R | false | false | 1,087 | r | protein_combine_single_model.R |
Type = "SPNG"
#stacking_test
test_data = vector()
data1 = vector()
data2 = vector()
data3 = vector()
data4 = vector()
data5 = vector()
data6 = vector()
xgboost = vector()
svm = vector()
rf = vector()
nb = vector()
knn = vector()
lightgbm = vector()
data1 =read.csv(sprintf("result/%s_single_feature_xgboost_test_l... |
8ed1da9196ac4b696b530a194bc8272053ebc590 | a809165d0a0dc39e01b70f775f48c5d2032c4862 | /analysis/Figure-8E_Reprocess_Wang_2019.r | d4945c213d800c67fb1e1dff4f2ed58368bdeca3 | [] | no_license | malihhhh/su2c-gsc-scrna | cf22c5784da244cb9c12baa911155533ac2c052f | 4f3ba85d49d1d138553169f0c953a643e10da108 | refs/heads/master | 2023-04-02T00:28:22.424088 | 2023-03-18T16:31:06 | 2023-03-18T16:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,177 | r | Figure-8E_Reprocess_Wang_2019.r | ###############################################################################
library(Seurat)
library(biomaRt)
source('whitley_scRNA_helpers.R')
top_dir <- '~/projects/su2c_v2'
raw_data_dir <- file.path(top_dir, 'data/raw/scRNA/Wang_2019_CancerDiscov')
preproc_data_dir <- file.path(top_dir, 'data/preprocessed/scRNA/W... |
aaed5f2d30df542261a19ea38040b8ff8a2b5940 | 6088e2bb2b05dd8ab9f88e4873a18788d99d7a74 | /man/wavPacketBasis.Rd | 39efb1c8399f2bd5f3d10778a07900fb5ed76d46 | [] | no_license | wconstan/wmtsa | bb0c1ff3be00ef0d719bcd559945303a6949505c | 3329d400256153490f8e7015b3dee6a531ea348f | refs/heads/master | 2021-01-01T05:24:42.540549 | 2017-12-06T02:59:32 | 2017-12-06T02:59:32 | 58,664,317 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,594 | rd | wavPacketBasis.Rd | %% WARNING: This file was automatically generated from the associated
%% wav_xform.mid file. Do NOT edit this Rd file to make a change. Instead,
%% edit the wav_xform.mid file in the project MID directory. Once the
%% wav_xform.mid file has been updated, this Rd file, and all other
%% documentation (such as co... |
bbc76c3d48a996681a3f710cff1e1f8b4ce005c7 | d8963252a704cf30857e1cb43bc44bc14c468652 | /R/AdvancedData Analyis HW/HW06_MinxiangPan_mp3335.R | 1c0cc0dc22bde3d479818b3dc6dfab4aa8d6fd85 | [] | no_license | panda4869/My-Project | e2290ab8adb25b181885ae37a28e2c990059ee26 | 1ec0b1d77c0964793c980a95070b006795d369aa | refs/heads/master | 2021-01-10T05:24:06.427466 | 2018-02-27T01:39:53 | 2018-02-27T01:39:53 | 51,176,985 | 0 | 0 | null | 2017-08-16T17:00:40 | 2016-02-05T22:04:31 | R | UTF-8 | R | false | false | 2,318 | r | HW06_MinxiangPan_mp3335.R | #problem 1
data(ChickWeight)
View(ChickWeight)
class(ChickWeight$Diet)
#anova on original data
fit1<-lm(weight~Diet,data=ChickWeight[which(ChickWeight$Time==18),])
anova(fit1)
row.mat<-match(ChickWeight[which(ChickWeight$Time==18),]$Chick,ChickWeight[which(ChickWeight$Time==0),]$Chick)
#adjust for birthweight
#combine ... |
e34b3277ba5197eff4fc1d9c93110967b70356c4 | c5a439705bfeeab8c207e63b53f32e29ae2b81e5 | /Archive/code scraps from makePointsQuest().R | 25e76ac2cbed321d1193ff225458b4e48e63e208 | [] | no_license | Brent-Dickinson/estimation-package | e98b8de8db442170567aa7b099ea75c534d7ee05 | b53850d9d61853861ae21f9634efe1a21ad7d9b5 | refs/heads/master | 2021-01-22T09:47:41.915459 | 2013-04-10T13:41:05 | 2013-04-10T13:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,317 | r | code scraps from makePointsQuest().R | plot_su = read.csv(paste(datawd, 'delete me/sample_point.csv', sep = ''), stringsAsFactors = F)
quest_su = quest_extra
quest_su = quest_su[-which(quest_su$QUEST_NUMBER %in% int),]
quest_su = quest_su[-which(is.na(quest_su$OWNER)),]
quest_su = quest_su[quest_su$AC_WOOD >= 1,]
ref_su = read.csv(paste(datawd, 'state_coun... |
dea1809f311ce2ec2e1728edc38d978e570776a3 | c47a9dab242120ea05ad8877af7c7efdec48dcb8 | /egssimtools.Rcheck/00_pkg_src/egssimtools/R/read_arch_genome.R | b0abb5c68f0f291325e688906bc9ece57ebba489 | [] | no_license | rscherrer/ExplicitGenomeSpeciation | 4ee1b8fdf3c19a085d750e73ce94ae4f2b25a070 | 55b3d4cf79f97bf6c91d366ce7274e411d612510 | refs/heads/raph | 2021-08-10T20:54:15.903930 | 2021-04-14T14:12:54 | 2021-04-14T14:12:54 | 184,590,896 | 1 | 1 | null | 2021-04-14T14:12:55 | 2019-05-02T13:59:12 | C++ | UTF-8 | R | false | false | 804 | r | read_arch_genome.R | #' Read locus-specific genome architecture
#'
#' Make a table from locus-specific genetic architecture details
#'
#' @param folder Path to the simulation
#' @param filename Name of the architecture file
#'
#' @return A data frame with, for each locus, its location, trait, effect, dominance, chromosome and degree
#'
#' ... |
6f5c3a666f1ca294eef6f2723617f8c32baa5194 | 9c27c6dd264cc1699632f571a067a31419a67bac | /predictive graduation model.R | f49a10875ade36d2cee9d9ffd86ad7f1303b24a4 | [] | no_license | jasonmpfaff/Predictive-models-in-R | bf66b6c015eabd2663ff5e8e2aac1b4756f41d91 | b4251df7fecd1f57c2b4e532fe3ceb9001ae7bd0 | refs/heads/master | 2021-01-18T23:58:00.721864 | 2018-04-12T10:20:46 | 2018-04-12T10:20:46 | 47,942,926 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,819 | r | predictive graduation model.R | ##read in base data set##
boosted<-read.csv("modeldata.csv")
install.packages("xlsx")
install.packages("ada")
install.packages("lattice")
install.packages("caret")
install.packages("e1071")
##load the below packages and install any not already installed using install.packages##
library(xlsx)
library(ada)
library(lat... |
b1941b4a8dad82ea469b25eda8937f9ee8eca747 | bf1d60b316a9770810c18e29c33493533b80d039 | /PublicPlot.R | f0cd06f310d49f685011e56ac0a6995a7f08b610 | [] | no_license | dnbarron/PublicPrivatePay | f0b17d50386fdff62fa5d54046c022c0384965ad | 8b4dd84e5813aedba96bcb88e672c208f59b4a02 | refs/heads/master | 2020-12-24T15:49:28.094289 | 2012-09-11T09:47:36 | 2012-09-11T09:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,582 | r | PublicPlot.R | pl.segs <- c("Personal service","Unskilled manual","Semi-skilled, manual",
"Junior non-manual","Skilled manual","Int. non-man, foreman",
"Foreman manual","Managers, small","Int. non-manual",
"Professional empolyees","Managers, large")
b0 <- c(0.115,0.093,0.081,0.033,0.021,0.157,0.049,0.031,0.016,-0.114,0.002)
b0.se <-... |
6e6401416cb69a48ca17623a4ca0e7d54fdc3b6d | 244fa469814afd6b479247b48c746912b2b573d8 | /plot4.R | d418d308a0ef2d14e5c894fdcf80518e57f074a0 | [] | no_license | Glabenweek/ExData_Plotting1 | 3cf4bcdf5c1315e1cef7e580c8cbc58e5f8ed13e | b23e34e6882cc996c325fd83b0b08e30dfda1bfd | refs/heads/master | 2021-01-09T06:46:58.475082 | 2015-10-06T15:02:29 | 2015-10-06T15:02:29 | 35,348,321 | 0 | 0 | null | 2015-05-09T22:45:27 | 2015-05-09T22:45:26 | null | UTF-8 | R | false | false | 2,738 | r | plot4.R | ### 06/10/2015
### Script for plot 4
### Remark: The part up to line 44 is common to the 4 R code files
# Create the folder to save the original data
if (!file.exists("data")) {
dir.create("data")
}
# Download the original data in the data folder and unzip the file
download.file("https://d396qusza40orc.clou... |
e805263d4645e91e3ef243d1eb0d5125c3920c27 | 148a64186852c34c4d19d212f127fbe525f0e691 | /R/appendixA.R | bfb0f1b4cf2f0a93e8fc9934f6ccc516c04fad39 | [] | no_license | ppernot/2022_Tightness | ba34a093e0940569f56fdb2495ce28d769b89b15 | a83586dc700511b45dd42a2b86332db1ea1588c5 | refs/heads/main | 2023-04-12T14:37:32.937410 | 2022-09-08T07:33:56 | 2022-09-08T07:33:56 | 485,421,586 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,954 | r | appendixA.R | figDir = '../Figs'
library(ErrViewLib)
gPars = ErrViewLib::setgPars(type = 'publish')
scalePoints = 0.2
set.seed(123)
## Unit variance distributions ####
Normal = function(N)
rnorm(N)
T3 = function(N,df=3)
rt(N, df = 3) / sqrt(3)
Uniform = function(N)
runif(N, -sqrt(3), sqrt(3))
Laplace = function(N, df = 1)
n... |
1f73709a3453d171da600ac03ad7e74f59c79d31 | 0f532d15ddbcaa1f9e6ae7c6e72041348bde9807 | /devScripts/read_YujieHe2016.R | 45069f6b44f517a12f128a322586244a89b4fe6c | [] | no_license | xiajz/ISRaD | a4567e95d23bfea31a1ff032c700331f618ba501 | 203078df68da22d5d091cb82204f16047fc98e03 | refs/heads/master | 2020-12-08T15:01:46.769054 | 2019-12-21T06:45:51 | 2019-12-21T06:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,319 | r | read_YujieHe2016.R | #' Read He 2016
#'
#' Read in the data from Yujie He's 2016 Science paper as a raw csv file
#'
#' @param Yujie_file The raw csv data
#'
#' @return ISRaD compliant file structure with only columns that overlap with original data
#'
#' @importFrom rcrossref cr_citation
read_YujieHe2016 <- function(Yujie_file = NULL){
... |
34671796215c01819e2a4e1a0b9054b0bc3e18cb | e2ccff462a561b4de986c65897106600848fec89 | /plot3.R | a8371b4dca5825ab214a60cae6125b7f7027faa0 | [] | no_license | daviddamen/ExData_Plotting1 | 4f0bddab2c5be4bc4ea9c64328db9abddc34089b | d7f151a91af337dbd1db626f962cad0ca559c214 | refs/heads/master | 2021-01-09T20:55:22.547226 | 2014-06-07T16:38:49 | 2014-06-07T16:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,160 | r | plot3.R | #
# Read input file.
# We are only interested in data from the dates 2007-02-01 and 2007-02-02, hence data outside
# this range is skipped.
#
columns <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
data <- read.csv2("house... |
a9a3cb5325b853681a276455675a20e552c40768 | c1ac0e0d0ba41f7abf1c074b21b3fca225364509 | /plot3.R | b705f70dcce9277ca2f9cd5440cb7ac5a5662639 | [] | no_license | TPopo/ExData_Plotting1 | 5b8ec76989a46d8e3f72d452ffac551538d14e87 | c56f3c68e8247cca72de716df8dd08a18b84a4a0 | refs/heads/master | 2021-05-02T07:26:54.469844 | 2018-02-12T18:53:02 | 2018-02-12T18:53:02 | 120,828,366 | 0 | 0 | null | 2018-02-08T22:57:46 | 2018-02-08T22:57:45 | null | UTF-8 | R | false | false | 1,381 | r | plot3.R | ## set working directory with data
setwd("C:/Users/TonyP/Desktop/Coursera/elecpwrcons")
## read in data using read.table
data <- read.table("household_power_consumption.txt", header = TRUE, sep = ";",
colClasses = c("character","character", rep("numeric",7)),
na.strings = "... |
f645392e611c0f52fed59af1cdea50f4aa6e1617 | 412ba9126fc2145813ab7237cda0c5c6b1b89207 | /man/trt_paneldata.Rd | 4b3fe605749a92bbf5db7b87d234170b86dd670f | [] | no_license | PatrickPfeifferDSc/bite | a739b10904f56e9a2d5ff21c5437edca6b2b24b2 | 3e3f21c10386ad81746a1bd05c52dbd9387fd75b | refs/heads/master | 2020-03-08T03:26:52.619261 | 2019-08-21T21:04:28 | 2019-08-21T21:04:28 | 127,891,241 | 0 | 3 | null | null | null | null | UTF-8 | R | false | true | 1,068 | rd | trt_paneldata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trt_paneldata.R
\docType{data}
\name{trt_paneldata}
\alias{trt_paneldata}
\title{Example dataset containing the panel information}
\format{A data frame with subject related feature columns:
\describe{
\item{ID}{ID of subject/item}
\item{panel... |
f431b17adfc1b48128ddd945042a57b1cb64c5bb | 0877d83cdf78f6e3bb122c7d2c031791684506d3 | /man/pct_acid_tol.Rd | cabcaca5760e1acaaa966e8af6654babc72c6e24 | [] | no_license | BWAM/BAP | fec1dbe4475f3869f8007894e9ad9a5581cb1277 | 9dd041516b2f4c8a2269516c57d7ade41746d7e9 | refs/heads/master | 2023-04-30T00:25:15.586434 | 2023-04-26T16:17:49 | 2023-04-26T16:17:49 | 180,187,817 | 0 | 1 | null | 2023-04-17T16:54:43 | 2019-04-08T16:18:52 | R | UTF-8 | R | false | true | 364 | rd | pct_acid_tol.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/acid_tol_index.R
\name{pct_acid_tol}
\alias{pct_acid_tol}
\title{Acid Tolerance Index (ATI)}
\usage{
pct_acid_tol(Genus)
}
\arguments{
\item{Genus}{= Genus level taxa count data.}
}
\value{
The percentage of Acid Tolerant Individuals (ATI).
}... |
ffb5088c2fbb0a8563d146cfdda3d568d3f780ab | a546edb72260612a371847728a903f704cd15918 | /man/topmiRNA_toptarget.Rd | 231db29435c37ed6b3e1da38f0ffd24674a6a00a | [
"MIT"
] | permissive | wizbionet/wizbionet | adcf0366d002892a67209357a6802cd6a179348c | b5fe22074d770df36b3afc47805cf899c69a7bfa | refs/heads/master | 2022-12-08T07:18:00.668772 | 2020-09-02T21:20:01 | 2020-09-02T21:20:01 | 292,099,931 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,180 | rd | topmiRNA_toptarget.Rd | \name{topmiRNA_toptarget}
\alias{topmiRNA_toptarget}
\alias{topmiRNA_toptarget}
\alias{wizbionet::topmiRNA_toptarget}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Prioritizes microRNA-target interactions from the the multiMiR Package
}
\description{
This function retrieves miRNA-target intera... |
28ad61391d95c293be534774c06f76aa985c0ec4 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/OpenMx/man/mxComputeReportDeriv.Rd | 6e38f4ca3b071ee608818a0fcf16930043a3f4f7 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 405 | rd | mxComputeReportDeriv.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MxCompute.R
\name{mxComputeReportDeriv}
\alias{mxComputeReportDeriv}
\alias{MxComputeReportDeriv-class}
\title{Report derivatives}
\usage{
mxComputeReportDeriv(freeSet = NA_character_)
}
\arguments{
\item{freeSet}{names of matrices containing... |
d0df9cb98cf115b9dd33ee27c44660cc8a708cc8 | b332ef10b161db840062a087e917bdc549f8e768 | /utils_regex.R | d3919d83dbdf9aa84f982f5ccbc73ae2be4e0039 | [] | no_license | sdobbins/utils | b5551ad467874bce405fb1f598d31f9ca092a268 | b41322c1869f770e02ca247b7298aabc123b7f01 | refs/heads/master | 2021-05-05T23:49:13.447778 | 2018-02-20T00:44:21 | 2018-02-20T00:44:21 | 116,899,926 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,411 | r | utils_regex.R | # @author Scott Dobbins
# @version 0.9.9.6
# @date 2017-11-19 01:00
### Constants ---------------------------------------------------------------
regex_metacharacters <- c("$", "(", ")", "*", "+", ".", "?", "[", "\\", "]", "^", "{", "|", "}")
regex_metacharacters_escaped <- paste0("\\", regex_metacharacters)
regex_m... |
a3049aad16748db61dde93fd336080774efe79fe | 405ca64b0c4518cb40238e56ab7e65c55d1a648f | /R/grid_arrange_shared_legend.R | 145ceb6c535c62863d4eea7413a6c58bb3632436 | [] | no_license | jon-mellon/mellonMisc | 08b4cb332acd89f0f4fa88b6ee6a1c433e63be85 | bd8201370f037bddc24f57365d233c47573a6eeb | refs/heads/master | 2022-07-29T02:23:00.632699 | 2022-06-29T14:45:26 | 2022-06-29T14:45:26 | 33,554,731 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,321 | r | grid_arrange_shared_legend.R | #' @export grid_arrange_shared_legend
grid_arrange_shared_legend <- function (..., nrow = 1, ncol = length(plots),
position = c("bottom", "right"), legend.index = 1,
left = NULL, bottom = NULL, right = NULL, top = NULL) {
# browser()
plots <- list(...)
position <- matc... |
f20453e8b7a2ad805a2266e85f4dbb2a42d250e1 | e22a88797c78d37415711b114c3a161499468c01 | /KalmiaPollenKinematics_SensitivityAnalysis.R | eb3311b4fdf8f1cb5820c7455950607de11de6cd | [] | no_license | callinSwitzer/Kalmia | 704417b6819410a430c0c73fab084df3eb686032 | bd78fa268cd357f5df945c0c6e44503f100afefc | refs/heads/master | 2020-07-27T11:41:35.687372 | 2017-10-20T21:35:21 | 2017-10-20T21:35:21 | 73,429,437 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,980 | r | KalmiaPollenKinematics_SensitivityAnalysis.R | ## Callin Switzer
## 29 Nov 2016
## Kalmia pollen and anther kinematics
# 1. Read in digitized files
# 2. Smooth digitized points, and impute
# 3. Use imputed points to calculate velocity and acceleration (normal and tangential)
# 4.
## TODO:
# use cross-validation to decide smoothing parameters or plot noise/resol... |
38149430f8daf4c04ad66d79e55172c4f56a036d | def84d2fc19445079483f0d6afa54431a222f6be | /limerscript.R | 0ed2a0337fc2cabb11f5b6e1eb1b311851aa0a7e | [] | no_license | usaidoti/NCCI | f6a71dc6b0a6ff9bc0a17fb3a7dceb04e539ab44 | 7c98efcb56228cba4859773de71eb7bb1a33fef5 | refs/heads/master | 2021-01-14T06:22:05.187017 | 2017-01-26T19:15:20 | 2017-01-26T19:15:20 | 81,868,446 | 0 | 0 | null | 2017-02-13T20:29:54 | 2017-02-13T20:29:54 | null | UTF-8 | R | false | false | 10,931 | r | limerscript.R | #Use setwd('path/to/project') to set working directory
#Load packages
library(limer)
library(plyr)
library(reshape2)
#connect to limer, change api link, username and password where necessary
options(lime_api = 'http://survey.itechcenter.ne/index.php/admin/remotecontrol')
options(lime_username = 'your_username')
opt... |
f17a09d79ac24df9c67d65c2749339d42f786b90 | 18492b283f897173eea63670167c9cf217243b89 | /Part3_graph1.R | 2165dd7d478440cf6a1587ed5131b59dc39261dc | [] | no_license | cmm16/stat405_project | d28c8af47274a7e8815498df3f85004de8f181b2 | e462e46b679da200c24882ff78dbecb4cfe03613 | refs/heads/master | 2020-07-31T18:08:05.010594 | 2019-12-06T02:06:51 | 2019-12-06T02:06:51 | 210,705,210 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 427 | r | Part3_graph1.R | library(RSQLite)
dcon <- dbConnect(SQLite(), dbname = "group10.db")
dbListTables(dcon)
res <- dbSendQuery(conn = dcon, "
SELECT DAY_OF_WEEK, avg(DEP_DELAY)
FROM flights
WHERE ORIGIN = 'DFW'
GROUP BY DAY_OF_WEEK;")
avg_delays <- dbFetch(res, -1)
dbClearResult(res)
plot(avg_delays$DAY_OF_WEEK, avg_delays$`avg(DEP_DEL... |
8138c1b7f5a768a44d5a352066a2cc3669da7c91 | 2407690f9e04b517096a826cd63634b346e1770f | /changes.R | 71c80ac3d69cead1aa3ed1ecd4a99f7c8f943044 | [] | no_license | tylerlau07/romance_nominal_change | b9a94ff6b47056ed0f858a5fe61ec48dcce835c8 | 1c33aaf2cba7b045f162bde9008d65b53925098a | refs/heads/master | 2020-05-21T16:45:44.633613 | 2016-09-30T06:45:25 | 2016-09-30T06:45:25 | 61,847,094 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,058 | r | changes.R | # This program will look at which specific words changed to what classes
library(readr)
library(plyr)
library(ggplot2)
library(reshape2)
library(gtools)
### Read stats files ###
files = list.files(pattern = '\\.csv')
# We want to make a data frame showing what each word became, start with counts
df_wordcount <- data... |
cb43d66017a1d66318b420ea8fb9934a1ceb9f22 | b5955887c1a960b1e8dafb55590a606fd15cbfbb | /bloomrs/R/snap_points.R | 59f37bc58c3a980844e7a8066ac5a901e92b5d5c | [] | no_license | clarkwrks/cyanohabs | bddded0f90f08e4b9c653ce052c9c44f9b10fd32 | f33cf4d77a8c9b4130e027414346885110f39a24 | refs/heads/master | 2021-06-26T13:50:51.676216 | 2019-12-04T22:59:59 | 2019-12-04T22:59:59 | 225,966,570 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,448 | r | snap_points.R | library(sp)
library(rgdal)
library(raster)
library(rgeos)
#' Snaps an input location to the nearest availabile data. "snapping.cases"
#' dictate selection criteria and precision. See powerpoint.
#'
#' @param focal.point reported location of feature (intake). Required fields: unique_id, huc12, wb_comid
#' @p... |
59efd50ea810cc95ad84219f5ba69ca17a9a24db | 873e385bc941e28ca345ab1e0a1d4c925e79bdba | /run_analysis.R | a0c59a2dc09303e55cff622f5dbfb4d20d5b7420 | [] | no_license | reejoe/gettingcleaningdata | 3fef0d31bd73c05fa9970acbbcd13d023c0f1b51 | fbc5c65c51db6e44de74a0b66f1c7a5ef7579d7e | refs/heads/master | 2021-01-10T18:30:18.021272 | 2015-01-27T20:05:09 | 2015-01-27T20:05:09 | 29,832,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,359 | r | run_analysis.R | # run_analysis.R - source code
# set the working dir where the data is present
setwd("~/R/courseproj")
pathData <- file.path("./data","UCI HAR Dataset")
#read the activity, subject and feature data from files into variables
TestData <- read.table(file.path(pathData,"test","Y_test.txt"),header = ... |
f86e92b7938f771a73f7f5e7709d92a311d61301 | 9dc1278807d585d24cf5b9ba2f74b9b5f40d8c2d | /tests/testthat/test_addClusterCols.R | 308575d4e15a2064736a6a69b8a3371bcfff9555 | [
"MIT"
] | permissive | stephenwilliams22/Spaniel | b6387e686d9e280deeab89d63655a93bb5476f05 | 6dada98d8a9eddde4a4610457b8d4311f9ecb2ec | refs/heads/master | 2020-08-01T22:26:42.014191 | 2019-09-25T14:09:30 | 2019-09-25T14:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,104 | r | test_addClusterCols.R | # Tests for markClusterCol function
# ------------------------------------------------------------------------------
context("Testing markClusterCol")
# These tests were created to ensure that the markClusterCol functions works
# correctly and marks the correct column with Cluster_ prefix
# Test markClusterCol with S... |
60508f229d6be1c4b90b9721edde70d40927d8ff | 349f3040c82503673f11fecfa41c90664bd8b243 | /BasketAnalysis.R | 56c1413614b7fe6db22ef7a820364f94d65bf5e6 | [] | no_license | RasLillebo/BasketAnalysis | c5eb3af33eba782684e5f71f7de7b44ea959b9e5 | 82d0fdb0dcfae177e451a4468762d0a89bf4b91d | refs/heads/master | 2022-12-13T13:43:12.444985 | 2020-08-31T19:18:51 | 2020-08-31T19:18:51 | 289,509,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,174 | r | BasketAnalysis.R | #Basket Analysis
#Inspired by: https://www.datacamp.com/community/tutorials/market-basket-analysis-r
Packages <- c("arules", "arulesViz", "tidyverse", "readr", "knitr",
"ggplot2", "lubridate", "plyr", "dplyr")
#install.packages(Packages)
lapply(Packages, library, character.only=TRUE)
#InvoiceNo, ... |
1b80df83b3cf9b051cab8281a3e2a5c7e8a19a77 | c0c468863a8e46cb61a8eff37de1ffc4b7d4fd89 | /man/getAreaData.Rd | dec4b1a70326936dba81b818576fb72adbcde2d4 | [] | no_license | SWS-Methodology/faoswsSeed | 91357a1b56fdc452a3de975ff38092ac3ced6ae4 | 5d6d2d939bc66367c8d060a82fd1861848189149 | refs/heads/master | 2021-01-14T13:57:55.046420 | 2020-11-17T11:27:36 | 2020-11-17T11:27:36 | 29,237,978 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,381 | rd | getAreaData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAreaData.R
\name{getAreaData}
\alias{getAreaData}
\title{Function for obtaining the area harvested/sown data}
\usage{
getAreaData(dataContext, areaSownElementCode = "5025",
areaHarvestedElementCode = "5312", seedElementCode = "5525")
}
\... |
57376a29fcd8af6eeffa149e32ba46fcd93cfe44 | 1d85ea0fd495bbb892175f20676ae38f61baa475 | /R/compareAVHRRimages.R | 336fa67ca2f8818419329698d1e403d1b1f39884 | [] | no_license | steingod/R-mipolsat | e6a3ddedd31f0eaf26f6f56bb5b30219cc63968a | a19c0c34557cb81faa4f9297c44413af8e59488b | refs/heads/master | 2021-01-19T20:29:57.560832 | 2013-05-28T20:33:58 | 2013-05-28T20:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,622 | r | compareAVHRRimages.R | #
# NAME:
# NA
#
# PURPOSE:
# NA
#
# REQUIREMENTS:
# NA
#
# INPUT:
# NA
#
# OUTPUT:
# NA
#
# NOTES:
# NA
#
# BUGS:
# NA
#
# AUTHOR:
# Ãystein Godøy, METNO/FOU
#
# MODIFIED:
# NA
#
# CVS_ID:
# $Id: compareAVHRRimages.R,v 1.3 2013-04-11 20:29:04 steingod Exp $
compareAVHRRimages <- function(dataset1, dataset2, channel... |
8327b25d901bbe1bc027228290aa83d666b15e3b | d20511398fec50d8bfc5433c8903b5471da51f1d | /searchForWord3.R | 0cfa28560194789ba7005daba9290b3dd1decb0b | [] | no_license | TechyTrickster/GuttenbergPressAnalysisInR | 0c3bcab2b956ad8f8c8a846ec7cd80631e0664f4 | 2cb3b7fccb4fcec55a15385569a746604141840c | refs/heads/master | 2023-02-05T23:24:01.501873 | 2020-12-30T19:20:59 | 2020-12-30T19:20:59 | 318,933,322 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 982 | r | searchForWord3.R | options(warn = -1)
options(readr.num_columns = 0)
args = commandArgs(trailingOnly = T)
table = read.table(args[3], sep = ",")
titles = readr::read_delim(args[1], ":", escape_double = F, trim_ws = T, col_names = F)
searchWord = tolower(args[2])
fileName = tools::file_path_sans_ext(basename(args[3])) #calculate the numb... |
e8be5ba48a0a7a5604af033d6ebca5ee532a6e9a | 4c9d2d93b2fa8661cc959320bef1d31384f9e89a | /man/loadDatainEnvironment.Rd | 6bb231b8956799a4bda0c2c7df821188807e2ceb | [
"MIT"
] | permissive | abdala9512/dareML | 5a0d602fc28821e7f024543f4291bd172838ef16 | 9473f1eb81e277419e42cd1fdfef72b259c19c08 | refs/heads/main | 2023-06-20T08:22:04.492566 | 2021-07-09T02:49:12 | 2021-07-09T02:49:12 | 324,870,579 | 0 | 0 | null | 2020-12-28T00:43:49 | 2020-12-27T23:47:25 | null | UTF-8 | R | false | true | 275 | rd | loadDatainEnvironment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{loadDatainEnvironment}
\alias{loadDatainEnvironment}
\title{Title}
\usage{
loadDatainEnvironment(data, varname, ...)
}
\arguments{
\item{varname}{}
}
\value{
}
\description{
Title
}
|
829815bdd807b1537facd5a0240715fcd09018e0 | bfa627b1c454c7109b2db7aba6c0b8e0c0ec4518 | /unsupervised_learning.R | b840075701a0ff3da0c6fb97c6c55b229869bc05 | [] | no_license | noahhhhhh/IntroToStatsLearning_R | dbe85800982669ca55c6f665dac772dde75879db | 8135ebab79157571e75492edd1298fa8647850b7 | refs/heads/master | 2021-01-10T05:46:19.486130 | 2015-12-22T23:02:31 | 2015-12-22T23:02:31 | 48,078,465 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,604 | r | unsupervised_learning.R |
#####################################################
## principal component analysis (PCA) ###############
#####################################################
states <- row.names(USArrests)
states
# [1] "Alabama" "Alaska" "Arizona" "Arkansas" "California"
# [6] "Colorado" "Conn... |
2e059579a754ae5055755ff9a4f19afefc3bb311 | 20b53f6afe1e9e6f300e4b61153ce4ef19f07c4a | /man/BAtable.Rd | 64c324949a0cba2340c5ae61e90b88ff8742b54a | [] | no_license | MrConradHarrison/cleftqCATsim | 92f31a920fd7186fd40bee870cdb00c1d18040bb | 59685e68022d01f19e9b93d62737036f35fbcb5c | refs/heads/main | 2023-08-18T20:04:15.587322 | 2021-09-21T09:35:00 | 2021-09-21T09:35:00 | 315,989,002 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 500 | rd | BAtable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BAtable.R
\name{BAtable}
\alias{BAtable}
\title{BAtable}
\usage{
BAtable(x, y)
}
\arguments{
\item{x}{A vector of linear assessment scores}
\item{y}{A vector of CAT assessment scores}
}
\value{
A data frame
}
\description{
Creates a data fra... |
4173214bdb98729b241cc97bd6fc3d7dae48eb7d | 780ae51ce6f9450a65b6a16863f47f04bad82717 | /getTICs.V2.function.R | 361eadb8e25267ed0539e1375424ce9dd63e09db | [] | no_license | zyleeyang/Untargeted-metabolomics | 09a4fe07bbb035bdff77d5dcf9444290df7bb369 | 71d857a734632961aa00600a966188786c66032e | refs/heads/master | 2023-04-17T04:15:24.064390 | 2018-01-17T23:40:05 | 2018-01-17T23:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,196 | r | getTICs.V2.function.R | #getTIC---
getTIC <- function(file,rtcor=NULL) {
object <- xcmsRaw(file)
cbind(if (is.null(rtcor)) object@scantime else rtcor, rawEIC(object,mzrange=range(object@env$mz))$intensity)
}
#overlay TIC from all files in current folder or from xcmsSet, create pdf----
getTICs <- function(xcmsSet=NULL,files=NULL, pdfname... |
e72c54fefc2b641491cb30740aa29ce0594dce08 | d1a360fc9e6f2415d4b9c5a7964d2cb7b4c01e45 | /Bayesian Baseball 2016/Scripts/04- Conditional Model.r | 943ce48a9e047ebeb0a12314511ec99ac0afe77a | [] | no_license | blakeshurtz/Bayesian-Baseball | 8ea89ac5d191c9fb2558ef2776f5e6e71cc88ddc | 86d0cf8cd8fba05d108c0a7a677de6158f856b1a | refs/heads/master | 2022-01-30T00:14:25.207927 | 2019-07-02T19:34:25 | 2019-07-02T19:34:25 | 146,781,829 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,167 | r | 04- Conditional Model.r | library(rethinking)
library(tidyverse)
#Starting Fresh
urlfile<-'https://raw.githubusercontent.com/blakeobeans/Bayesian-Baseball/master/Cubs/Season/cubs.csv'
data<-read.csv(urlfile)
#Pitcher Stats
urlfile<-'https://raw.githubusercontent.com/blakeobeans/Bayesian-Baseball/master/Cubs/Pitching/pitching.csv'
pitcher<-read.... |
375de80577e2b756b93bdd252963b1c10c815426 | 2da85138f00ce42f78a27a323a48c2a41eee3576 | /tests/testthat/test_cindex.R | bddfab94cfb3e85ae18f5a2cbb7773c365c8be9b | [
"MIT"
] | permissive | Ppower123/survivalmodels | 91d6eef5a0f1565877f6b18578ffd69008c311f4 | aef24ed54cfebf6c8ffb43f6a0f54bdb57262ea1 | refs/heads/main | 2023-08-10T15:17:16.419503 | 2021-09-10T14:39:26 | 2021-09-10T14:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 179 | r | test_cindex.R | skip_if_not_installed("survival")
test_that("cindex", {
expect_equal(cindex(1:10, 10:1), 1)
expect_equal(cindex(1:10, 1:10), 0)
expect_error(cindex(1:5, 1:6), "length")
})
|
93effbb2c7220c9ee1211484db3b3cd9d592f278 | 2cc56a6341f179923977128ad90bb31419e033d0 | /man/find_terms.Rd | 1c22c31bd135007e6992f9d9e071f9c62c441e56 | [] | no_license | cran/insight | 5e1d2d1c46478c603b491f53aa80de57bc8f54b4 | 247206683ad374a1ba179356410d095f6861aede | refs/heads/master | 2023-07-19T11:33:37.490704 | 2023-06-29T13:30:02 | 2023-06-29T13:30:02 | 174,554,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,578 | rd | find_terms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find_terms.R
\name{find_terms}
\alias{find_terms}
\alias{find_terms.default}
\title{Find all model terms}
\usage{
find_terms(x, ...)
\method{find_terms}{default}(x, flatten = FALSE, as_term_labels = FALSE, verbose = TRUE, ...)
}
\... |
aec974359c317515935be9c9f4f8d052e5a7176a | e0a60bc74db826bf7071c24fa8ad5dc90bacbc4c | /20150322temp.R | 638243d6023f4d84dcdec3851777ade9112a7446 | [] | no_license | vstarkweather/RepRes_PA2 | f234bc6f67a6211705b66e35c4e6e87a0cc16254 | 2f4872cc21b935e58ac2d1b997b31f8b87a7c726 | refs/heads/master | 2020-05-17T05:19:14.812355 | 2015-05-28T21:33:47 | 2015-05-28T21:33:47 | 33,049,427 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,805 | r | 20150322temp.R | cropPrint <- print(data.frame(event = cropDamageSummary$event,
cropDamage_USD = format(cropDamageSummary$cropDamage,
big.mark = ",")))
propertyPrint <- print(data.frame(event = propertyDamageSummary$event,
... |
138670309ec4eb6ff0ca65a332da030d27591a6a | 72778c1b19a668cabba6969300276f6666bbbd63 | /R/merge.R | 80682446a16312760457808d4dd87642bf42cc80 | [] | no_license | AndreMikulec/xts | 3fb9cf89fc68eda31f8368f6a60b157ca9a7878a | 57b00a3fef07a6210c6b91fd9b5a46697ba0e75b | refs/heads/master | 2020-03-23T21:08:21.848900 | 2018-10-06T14:10:53 | 2018-10-06T14:10:53 | 142,084,302 | 0 | 0 | null | 2018-07-24T00:39:45 | 2018-07-24T00:39:44 | null | UTF-8 | R | false | false | 11,302 | r | merge.R | #
# xts: eXtensible time-series
#
# Copyright (C) 2008 Jeffrey A. Ryan jeff.a.ryan @ gmail.com
#
# Contributions from Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundat... |
bf91351c331aaa586c8ae241ab738f1cdc8ceb92 | efed85c519c7a02278315ca4a8cac26da48ac09f | /DIVERSITY_PCOA_BOX_PLOTS.R | 1acdea994878515368e94117bc3a299dc9294dc8 | [] | no_license | eertekin/gypsum_paper | fd0c31946bd5bbeb978ac1e386c71c01e1cf6b79 | c40961dd1633d9a884700184e8e0006a44b8be7e | refs/heads/master | 2022-11-16T01:35:40.289710 | 2020-07-13T01:56:36 | 2020-07-13T01:56:36 | 254,787,115 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,178 | r | DIVERSITY_PCOA_BOX_PLOTS.R | library(ggplot2) ; library(tidyr) ; library(dplyr) ; library(stringr) ; library(cowplot) ; library(gridExtra)
## OTU PCOA PLOT ##
OTU_pcoa = pcoa(bray_curtis_CSS_normalized_otu_table)
otu_vectors = as.data.frame(OTU_pcoa$vectors[,1:2])
otu_vectors$site = c(rep("CL" , 17) , rep("MTQ" , 8) , rep("KM" , 9))
site_color... |
a639f1eda2459cdde188b73dd1454158748148f3 | ec98d6494de23f1a71dc579379e84c817abe0a95 | /run_analysis.R | f4da70d50bfac9ad0fd7d0f05cccaff0b19fe02a | [] | no_license | jdmercado/getting-cleaning-data | 0b99a289a5b49386207e05fd793c038de537b703 | 369a3e758506b7a43fd5dc98ddcd0a630b8288ee | refs/heads/master | 2021-01-19T13:32:53.069599 | 2014-08-24T23:27:51 | 2014-08-24T23:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,976 | r | run_analysis.R | # run_analysis -- Based on data downloaded from a Human Activity Recognition
# data set using smartphones (see readme for credit information), the
# script merges some tables, extracts variables related to mean and
# standard deviation of different measurements, reshapes them, and
# generates a tidy data set... |
b1b03ca66882bf680baa3cc0114ad4e1b648c17d | 284160a67638e032ec00c4591e9d56b733eaa3a2 | /ui.R | d9f9b4178dd31b1c796bf834e032e42d6e637124 | [] | no_license | alexplocik/PicoGreen | f80a4dc9ea0dacb3d240a63fdabb9533af6912c3 | 86d3221eb5b4a89d055275c1e2a8c78d11ff14d3 | refs/heads/master | 2016-08-12T06:22:55.572334 | 2015-12-28T22:54:50 | 2015-12-28T22:54:50 | 48,707,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,164 | r | ui.R | library(shiny)
shinyUI(
# titlePanel("Tecan PicoGreen GUI"),
navbarPage("Tecan PicoGreen GUI",
tabPanel('Measurements',
wellPanel(fluidRow(column(12,
column(2, textInput(inputId = "measurements", label = "Measurements (96-well pla... |
9fcf91f285409eb65ffa5d4f1f7c7e404c05ee84 | cba10b84d2cc708dd66148a4511451d77a92a7c5 | /R/SS_output.R | 7db04f4a8605a945768ca5a287df03d4b15baf0b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | r4ss/r4ss | 03e626ae535ab959ff8109a1de37e3e8b44fe7ad | 0ef80c1a57e4a05e6172338ddcb0cda49530fa93 | refs/heads/main | 2023-08-17T08:36:58.041402 | 2023-08-15T21:42:05 | 2023-08-15T21:42:05 | 19,840,143 | 35 | 57 | null | 2023-07-24T20:28:49 | 2014-05-16T00:51:48 | R | UTF-8 | R | false | false | 159,683 | r | SS_output.R | #' A function to create a list object for the output from Stock Synthesis
#'
#' Reads the Report.sso and (optionally) the covar.sso, CompReport.sso and
#' other files produced by Stock Synthesis and formats the important
#' content of these files into a list in the R workspace. A few statistics
#' unavailable elsewhere... |
da40b1d3e5d3143f62828d7878edb0899e22af50 | 936382417fd1a2fc071e004a2da206cfba62bff2 | /man/scale_color_vatech.Rd | cef3d3d7ebad0920dc96ef50e11ad53740accfa0 | [] | no_license | McCartneyAC/university | 7f2575868abe45ec87bfefc361aa5a3709f16424 | 7770fe7c9de6226056929c2f7e747d1d6c124fa2 | refs/heads/master | 2021-06-30T08:38:24.535591 | 2020-10-05T18:30:29 | 2020-10-05T18:30:29 | 171,352,272 | 6 | 0 | null | null | null | null | UTF-8 | R | false | true | 329 | rd | scale_color_vatech.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scale_color_vatech.R
\name{scale_color_vatech}
\alias{scale_color_vatech}
\title{Scale Colors as Virginia Polytechnic}
\usage{
scale_color_vatech(palette = c("vatech"), alpha = 1, ...)
}
\description{
Scale Colors as Virginia Polytec... |
9e7fe94d5abcb535baf5f9a8575bd9e0fc9b8823 | 40176bf2c09c491aef2492be832fa31b9fc3f4a2 | /helpers/save_as_geotiff.R | a851272e7b3da6e2512d2b22458a994ca8b6ba93 | [] | no_license | ihough/temperature-france | 1b5dadccf0bbcfc801a8b31f7a443c7e1d743867 | 97dec45db3d7b620f8e0da93540064df9ab461e5 | refs/heads/master | 2021-01-19T22:46:41.639349 | 2018-02-21T10:18:58 | 2018-02-21T10:18:58 | 88,866,625 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,096 | r | save_as_geotiff.R | library(raster)
source("helpers/report.R")
save_as_geotiff <- function(extracted_data, grid_pixels, tif_path) {
# Confirm the extracted data is in the same order as the grid pixels
if (identical(grid_pixels$index, extracted_data$index)) {
char_cols <- function(dt) {
cols <- colnames(dt)[sapply(dt, class... |
9cba95ebb9b1d14149f04c19a3141109050534e4 | 292913980173140e473e5d79159f0a632014d339 | /baser/plot4.R | b826aa4730f0b181d487a2452c8d1f371862116d | [] | no_license | robertncrampton/ExData_Plotting1 | 6b8932dbb6f51e27969f05c249450701b1caff55 | 366d51601c7b774f4296e2cdc6f0305b1f46af2d | refs/heads/master | 2020-12-25T04:53:30.272765 | 2016-02-28T18:39:29 | 2016-02-28T18:39:29 | 52,730,633 | 0 | 0 | null | 2016-02-28T16:23:23 | 2016-02-28T16:23:23 | null | UTF-8 | R | false | false | 979 | r | plot4.R | ##Read the data from the text file into R
hp <- readtable("hp.txt", header = TRUE, sep = ";")
##Subset to only the rows that are over the time period we're looking at
hpnew <- hp[66637:69516,]
##Create a new column that combines the date and Time variables
hpnew$Date.Time <- paste(hpnew$Date, hpnew$Time)
## Format the ... |
3895c909d56a866435c696d89c1b0c05e9686de3 | 02ba845f08038f1b0fb6d8d03d2affc6c820a7a3 | /man/subset_focals.Rd | 578d63992fccc289bf3210b374f0bbacac202a25 | [] | no_license | amboseli/ramboseli | 21b238dd61b2f1d63b3e19abaec2cb6ea58eb2af | 2b0bcc264d08f0dfef3f97e801382dee6da78f8b | refs/heads/master | 2023-03-16T06:31:27.022772 | 2021-03-12T01:14:11 | 2021-03-12T01:14:11 | 103,771,434 | 0 | 3 | null | null | null | null | UTF-8 | R | false | true | 621 | rd | subset_focals.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biographical-data.R
\name{subset_focals}
\alias{subset_focals}
\title{Obtain a subset of adult female focal samples that excludes behavioral observation gaps.}
\usage{
subset_focals(babase, members_l)
}
\arguments{
\item{babase}{A DBI connect... |
7dd3d9b2a3d72dbdc48d524618c4a61c466c4aa7 | 9262e777f0812773af7c841cd582a63f92d398a4 | /inst/userguide/figures/CS7--Cs25_prep-covariates.R | bd93d3f82e986b6321ca9ecf2919c7d287ef3004 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | nwfsc-timeseries/MARSS | f0124f9ba414a28ecac1f50c4596caaab796fdd2 | a9d662e880cb6d003ddfbd32d2e1231d132c3b7e | refs/heads/master | 2023-06-07T11:50:43.479197 | 2023-06-02T19:20:17 | 2023-06-02T19:20:17 | 438,764,790 | 1 | 2 | NOASSERTION | 2023-06-02T19:17:41 | 2021-12-15T20:32:14 | R | UTF-8 | R | false | false | 368 | r | CS7--Cs25_prep-covariates.R | ###################################################
### code chunk number 28: Cs25_prep-covariates
###################################################
# transpose to make time go across columns
# drop=FALSE so that R doesn't change our matrix to a vector
phos <- t(log(ivesDataByWeek[, "Phosph", drop = FALSE]))
d.phos <... |
3ad4c843d04c2e078032081aa21eda7be3544139 | a85e536f8cbe2af99fab307509920955bd0fcf0a | /R/mplot.R | cbd70ca46963f969dc83c62db7b569fb8d130758 | [] | no_license | ProjectMOSAIC/mosaic | 87ea45d46fb50ee1fc7088e42bd35263e3bda45f | a64f2422667bc5f0a65667693fcf86d921ac7696 | refs/heads/master | 2022-12-13T12:19:40.946670 | 2022-12-07T16:52:46 | 2022-12-07T16:52:46 | 3,154,501 | 71 | 27 | null | 2021-02-17T21:52:00 | 2012-01-11T14:58:31 | HTML | UTF-8 | R | false | false | 25,293 | r | mplot.R | utils::globalVariables(c('pair','lwr','upr','fitted','.resid',
'.std.resid', '.cooksd', '.fitted',
'lower', 'upper',
'fcoef', 'density', 'probability',
'.hat', 'grid.arrange', 'estimate','se'))
#' @importFrom ggplot2... |
b7201a8f81aff1414c14247bacb250dc62e26088 | a18669233ba8da5bb14eff99a7efb49d0822f1e4 | /man/li_powell.Rd | b326d547ca851b88ef9512f201950c76d6cc04c7 | [] | no_license | cran/AdjBQR | dd4ffecc9cbf7432cf08414a430f5c78dd243b48 | 892f239ff2cbf52a22e151fc654fda1c916fdf7f | refs/heads/master | 2021-01-13T12:46:49.517358 | 2016-10-30T16:58:03 | 2016-10-30T16:58:03 | 72,359,434 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,226 | rd | li_powell.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/AdjBQR.R
\name{li_powell}
\alias{li_powell}
\title{Asymmetric-Laplace-type Working Likelihood For Cenaored Quantile Regression}
\usage{
li_powell(pars, y, x, tau, sig)
}
\arguments{
\item{pars}{regression coefficient vector}
\item{y}... |
dd7600e274724778f35d1cbb6a6e368c765f98eb | 862c4bca74786b462929176b28f2f54c4021c5ec | /man/compute.atac.network.Rd | 6e7fad2bc6cfaf999e21031d17bd60a367a7bb81 | [] | no_license | iaconogi/bigSCale2 | 1d94d232781f08e28ee2a0c43214798a10cc9301 | e47f0cd4b6374e5bcc52d99f4c50d0671aada811 | refs/heads/master | 2023-07-06T21:52:31.163393 | 2020-07-12T08:52:34 | 2020-07-12T08:52:34 | 169,756,139 | 109 | 42 | null | 2023-07-03T12:18:59 | 2019-02-08T15:31:16 | R | UTF-8 | R | false | true | 3,621 | rd | compute.atac.network.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{compute.atac.network}
\alias{compute.atac.network}
\title{ATAC-seq Gene regulatory network}
\usage{
compute.atac.network(expr.data, feature.file, quantile.p = 0.998)
}
\arguments{
\item{expr.data}{matrix of expression counts... |
c7176532d70ba4c93f9e2927930ce14f26efe93e | eb59d9f92cd907aaad4881992f323cc1529b39fa | /R/testing_prior.R | 31f58483494aa5592bed17fc636d7f46b6c9bb98 | [] | no_license | cran/TeachBayes | a20021b9fd698140185aeb5916a9f5e42b901826 | 47f45100474dd8e8288b06386ca91a16288b5922 | refs/heads/master | 2021-01-11T22:12:37.681770 | 2017-03-25T09:58:44 | 2017-03-25T09:58:44 | 78,935,724 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 460 | r | testing_prior.R | testing_prior <- function(lo=.1, hi=.9, n_values=9,
pequal=0.5, uniform=FALSE){
p1 <- seq(lo, hi, length = n_values)
p2 <- p1
n_diagonal <- n_values
n_off_diag <- n_values ^ 2 - n_values
prior <- matrix(0, n_values, n_values) +
(1 - pequal) / n_off_diag
diag(prior) <- pequal /... |
dbd0ccaf610cb2b5501f0569639b563719054b70 | b3c39d9bc7cdd82f225cc1707c69c55513519a1d | /R/zzz.R | b3cdb1144f34d877694a16f84b6123277929a44f | [] | no_license | teyden/MiRKC | d81e02a0e2b349635faea46102b5ee69fbafe740 | 7de32668537ff68d7cbebadafb8d70a338525de9 | refs/heads/master | 2020-12-27T09:21:48.191058 | 2020-06-21T08:22:56 | 2020-06-21T08:22:56 | 237,850,361 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 81 | r | zzz.R | .onLoad <- function(libname, pkg){
library.dynam("MiRKC", pkg, libname)
}
|
228da81481d799db89342c5908c0818aeb697a3a | 9bbdcb3936c5063edf237fe550fba4f5bf0a9b49 | /man/cpBodyGetCenterOfGravity.Rd | 6b53ee54e6945f47bec90da83cbb453e0b5a3e1e | [
"MIT"
] | permissive | coolbutuseless/chipmunkcore | b2281f89683e0b9268f26967496f560ea1b5bb99 | 97cc78ad3a68192f9c99cee93203510e20151dde | refs/heads/master | 2022-12-10T17:56:15.459688 | 2020-09-08T22:40:10 | 2020-09-08T22:40:10 | 288,990,789 | 17 | 1 | null | null | null | null | UTF-8 | R | false | true | 528 | rd | cpBodyGetCenterOfGravity.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpBody.R
\name{cpBodyGetCenterOfGravity}
\alias{cpBodyGetCenterOfGravity}
\title{Get the offset of the center of gravity in body local coordinates.}
\usage{
cpBodyGetCenterOfGravity(body)
}
\arguments{
\item{body}{[\code{cpBody *}]}
}
\value{... |
d08617fe3a502c0df03652b9acd872c4818a723e | 75c27c5ae72919555352c9b7585723f530edc096 | /manual/KSSL-snapshot-tutorial.R | 3ff12d8d366341330f48d65fa175547f54da4849 | [] | no_license | ncss-tech/lab-data-delivery | d641944c9dc27639e2d30440e7d8d1a3f5419ac7 | a1f22d17a5aa610e30bd256d9ba6bbefe1969e34 | refs/heads/master | 2023-07-28T03:27:36.045632 | 2023-07-08T02:45:05 | 2023-07-08T02:45:05 | 97,866,682 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,996 | r | KSSL-snapshot-tutorial.R | library(DBI)
library(RSQLite)
# connect
db <- dbConnect(RSQLite::SQLite(), 'E:/NASIS-KSSL-LDM/LDM/LDM-compact.sqlite')
# list tables
dbListTables(db)
# list fields
dbListFields(db, 'nasis_ncss')
dbListFields(db, 'physical')
# get data
dbGetQuery(db, "SELECT site_key, user_site_id from nasis_site WHERE user_site_id... |
307e31f142756c47fa1ccbf099f10c8be87fe85b | 5a9beb9f519afb900b0329ace2d0f132c2848cc8 | /Using R, tidyverse and mlr/Chapter #3 KNN.R | df5d95e20745e36105780be1e56b03c0f47079d2 | [] | no_license | ZehongZ/R-Studio | d6d8525d29c4fc005f07a6db252f427f844ad3b1 | 1c06ea907552e8958f476e1ad3e9a9efe31e8549 | refs/heads/master | 2021-07-09T10:58:00.965761 | 2020-08-28T07:54:16 | 2020-08-28T07:54:16 | 173,672,330 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,180 | r | Chapter #3 KNN.R | #Build KNN model
library(mlr)
library(tidyverse)
#Loading the diabetes data
data(diabetes, package="mclust")
diabetesTib<-as_tibble(diabetes)
summary(diabetesTib)
#Plotting the diabetes
library(ggplot2)
ggplot(diabetes, aes(x=glucose, y=insulin, col=class))+
geom_point()+
theme_bw()
ggplot(diabetesTib, aes(sspg, ... |
f1928ac254326b217b34757cc5f7a119961847a8 | 856153d54cc9110b94417c7ac62502cda5afd21f | /BFX/AGGA/HW2.R | 4a3e28669c360545a9a6c06988835a47fcde8833 | [] | no_license | drsaeva/JHU-Course-Code | c63cc5fea63988dab2b5fb9cd4179cc12fc883be | 17a29d9e22588b62c46ee9530ae9e94dfc241546 | refs/heads/master | 2020-04-05T22:57:00.684524 | 2017-11-05T21:42:36 | 2017-11-05T21:42:36 | 68,043,538 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,478 | r | HW2.R | ## Plink code
# filtering by <10% missing rate per snp (geno)
# maf > 10% (maf)
# <30% missing rate per individual (mind)
# hwe at signficance <0.001 (hwe)
plink --map subjects_153.map --ped subjects_153.ped --geno 0.1 --maf 0.1 -hwe 0.001 --mind 0.3 --recode --out m_p_1
# genome file, MDS
plink --ped subjects_153.pe... |
52d231db0f34f2bd739bc6ff85cb58cbdcfc3f29 | 696db476049ebf1c61606c29208bba638eb1d952 | /code/xx_scratch.R | 47cb4a38dc2780e29d53037333934c9312c0c770 | [] | no_license | bcjaeger/INTERMACS-Conditional-RPEs | d71a49910bc0b41d39ee9e5612281307b2291263 | e432640944c09b8847a193dcd6e562ff6cedcbd8 | refs/heads/master | 2020-08-30T13:04:14.072793 | 2019-10-30T01:16:25 | 2019-10-30T01:16:25 | 218,389,450 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,137 | r | xx_scratch.R |
# factor: m0_primary_dgn?
# mdl_full <- xgboost(
# params = params,
# data = as.matrix(trn_mat),
# label = trn_lab,
# nrounds = cv_full$best_iteration,
# print_every_n = 50
# )
#
# ftr_rdcd <- xgb.importance(model = mdl_full) %>%
# pull(Feature) %>%
# .[1:50]
#
# trn_mat_rdcd <- select_at(trn_mat,... |
896ac59559335e4a846e0ba3125358f53ad363fd | a99306823f0fc75efccc0ddcf826e7e958117f13 | /man/limit.Rd | 81c3e44c3daaea7c5770270417abbb6aa1e62799 | [] | no_license | shearer/PropCIs | 57890579b8a12674e7a489fcb2d6a8090f7e5358 | b9ee93571772eed551c184d1d86269ec44f4a610 | refs/heads/master | 2022-12-19T08:48:30.438508 | 2018-08-23T19:01:15 | 2018-08-23T19:01:20 | 11,749,170 | 7 | 1 | null | 2018-08-23T18:47:36 | 2013-07-29T20:33:25 | R | UTF-8 | R | false | false | 112 | rd | limit.Rd | \name{limit}
\alias{limit}
\title{
internal function
}
\description{
internal function of orscoreci
}
|
fd8ad12b5fd11bcb2c9f7eb255127d48c4a62d48 | 0084280ad5d1400c280c110c402d3018b7a129af | /R/manifest/nested-list-example.R | 9918ee24c0f1d2597f3735d93bff645106739470 | [
"MIT"
] | permissive | fpbarthel/GLASS | 457626861206a5b6a6f1c9541a5a7c032a55987a | 333d5d01477e49bb2cf87be459d4161d4cde4483 | refs/heads/master | 2022-09-22T00:45:41.045137 | 2020-06-01T19:12:30 | 2020-06-01T19:12:47 | 131,726,642 | 24 | 10 | null | null | null | null | UTF-8 | R | false | false | 2,733 | r | nested-list-example.R |
## Working with nested lists in R/tidyverse example code
## Related to question asked on stackoverflow
## URL: https://stackoverflow.com/questions/50477156/convert-a-tidy-table-to-deeply-nested-list-using-r-and-tidyverse
## @Author FLoris Barthel
library(tidyverse)
library(gapminder)
# json = gapminder %>%
# filt... |
e118122056823c2416efca19977a4444eb17d45b | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/gbp/man/gbp3d_solver_dpp_filt.Rd | 24bb65ca91831fac8a40497c17c223343d80cd64 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,172 | rd | gbp3d_solver_dpp_filt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gbp3d_cpp_rd.r
\name{gbp3d_solver_dpp_filt}
\alias{gbp3d_solver_dpp_filt}
\title{gbp3d_solver_dpp_filt}
\usage{
gbp3d_solver_dpp_filt(ldh, m)
}
\arguments{
\item{ldh}{it scale <matrix>
- l, d, h it scale along x, y, z <numeric>}
... |
fb89704759ca96fbe99516f54cf65a890f0dc0f4 | b4d2b30c3a97b82757b3bb4c1846a9d953aedf86 | /Sports-Analytics/college_shooting/scraping.R | b4798b0b4048a340d8da5b081da78799d2093025 | [] | no_license | CoderShubham2000/MLH-Local-HackDay | e2a1aeac5f7a89c9ecf0c3c4d1e9fa296672ca25 | 51fa6d2d07c581501b631dd0fb62bc3fea7119d8 | refs/heads/main | 2023-04-06T23:45:00.990516 | 2021-04-04T06:22:29 | 2021-04-04T06:22:29 | 352,527,995 | 3 | 8 | null | null | null | null | UTF-8 | R | false | false | 838 | r | scraping.R | # Change working directory
setwd("C:/Users/hashi/basketball_ref")
# Install the package to do our analysis
devtools::install_github("mbjoseph/bbr")
# Activate the package
library(bbr)
# Create an empty data frame
seasons<- data.frame(Data=as.Date(character()),
File = character(),
... |
99971c118a46244b63eb4ff3ed1f8755bdb00a6c | ace27a97e2012c2c3c275e78f3394fc5ca11b736 | /R/igc.R | e09f9eb77a4114179c070da254bb3a1788b5f44d | [] | no_license | pem725/MRES | 6a27ed4884d2ea31524307b0703ee0d097097f14 | 01b0d92577a344614b04a357a820357082896e84 | refs/heads/master | 2016-09-05T10:40:03.284385 | 2013-09-16T15:42:34 | 2013-09-16T15:42:34 | 4,679,282 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,431 | r | igc.R |
#################################################################
### igc - compute individual growth curve parameters using lm
### updated: 11/05/2008
###
### usage igc(dat,idvar="",ivar="",dvar="",parms=2 or 3
igc <- function(x,...){
UseMethod("igc")
}
igc.default <- function(x,idvar,ivar,dvar,byvar=NULL,cvar=N... |
56f49f7190c1b30914d1c3d989185cd865bd1f5f | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.game.development/tests/testthat/test_gamelift.R | eab4f4c6f031c8f93758ee37aa4213cdbfc2a031 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | false | 1,344 | r | test_gamelift.R | svc <- paws::gamelift()
test_that("describe_ec2_instance_limits", {
expect_error(svc$describe_ec2_instance_limits(), NA)
})
test_that("describe_fleet_attributes", {
expect_error(svc$describe_fleet_attributes(), NA)
})
test_that("describe_fleet_capacity", {
expect_error(svc$describe_fleet_capacity(), NA)
})
te... |
d41f9a7958e378f62a13f4e1b7b829700c0b389c | f16b7412963b61d5f5412714ae4ef0a9cac90578 | /R/write_league_history.R | ed8e8d2217cc98ba2dfee66bca34764b632c0bce | [] | no_license | tjconstant/ffs.query | 50d69e065793ee65f8337a789a853ed3314b6a9b | a37179419380170c45fef02af1dae9373c16986a | refs/heads/master | 2020-03-26T07:10:34.125290 | 2018-08-28T19:43:42 | 2018-08-28T19:43:42 | 144,639,807 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 271 | r | write_league_history.R | write_league_history <- function(league_ids, filename = "data-raw/master.csv"){
history <- tibble::tibble()
for(leage_id in league_ids){
history <- dplyr::bind_rows(history, get_league_history(leage_id))
}
readr::write_csv(x = history, path = filename)
}
|
45aca089bd46b400d269987768545cfa22d2c0e5 | 34711b0d14ec3da4118109de00b19eff88d12eb1 | /Luciano Bicaku/Lidhja midis Moshes dhe masave te marra/LIdhjaMidisMoshesMasave.r | 4dd59d70a750adf243874f9e810116baefdd318a | [] | no_license | LucianoBicaku/projektSatistike | b3694600c8360519395c6c9c08f48afe21d115ed | 3a26f423495c1ba709010d3d8250f1e58df3912c | refs/heads/master | 2022-07-31T23:52:39.528334 | 2020-05-25T17:20:39 | 2020-05-25T17:20:39 | 266,548,739 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 347 | r | LIdhjaMidisMoshesMasave.r | png(file = "LidhjaMosheMasa.png")
color <- c(
"#f17bc7",
"#6d194b",
"#796bb6",
"#7d6e8d",
"#6c5a9b",
"#d7c7d8",
"#8f8f8f"
)
with(dataset, Barplot(Masat.Parandaluese,
by = Mosha, style = "divided",
legend.pos = "above", xlab = "",
ylab = "Nr i personve", main = "", col = color, bo... |
b0f8b2ea5be1c951202c65d039279e47639f6670 | c00bab3c856df375472c5ea86c37b0c9d85583fb | /man/fars_summarize_years.Rd | 28c7f70294bf6373c2ab762ceeed0aa57c6220c1 | [] | no_license | adrHuerta/hw_coursera | 623dc0677f072a84c3540243884e97f46295f7b3 | a29ce3d1050a3e405c144ca13bbb5d47b64fd0b8 | refs/heads/master | 2021-01-22T05:10:55.130130 | 2017-02-12T09:22:17 | 2017-02-12T09:22:17 | 81,631,255 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 498 | rd | fars_summarize_years.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_functions_files.R
\name{fars_summarize_years}
\alias{fars_summarize_years}
\title{Read information of specific year giving summarize information}
\usage{
fars_summarize_years(years)
}
\arguments{
\item{years}{an character or integer value t... |
40068350d5a4b0adf2e7c41e5951e8a67dd04433 | 7fd36ab86277d0e9ff157b723fcb8ab82b3b9488 | /tests/test1.R | d777e5f5f0149d9cbce941c64e85f0243cf47c2e | [] | no_license | JoeHarkness/FARS | 2cbfaa4261b7d3b154a164957500e5d2f94e80ef | 3e33f9a5c418ecabd98c51bb047bacd2a6f74c1b | refs/heads/master | 2021-01-21T14:35:56.220258 | 2017-06-24T19:47:45 | 2017-06-24T19:47:45 | 95,312,221 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 66 | r | test1.R | expect_that(make_filename(2012),matches("accident_2012.csv.bz2"))
|
39b2aaf2730fc1e981f7b2f081e4a9de3d631be7 | c8668c41f68a561a78ce6e0baace051147d50a40 | /R/getStdVars.R | b4f1fd58ef96467532ecaf093eadbf9fff8a766c | [
"MIT"
] | permissive | wStockhausen/wtsDisMELSConn | fb3f7dfcccd71aaf72c95548cec9f4d5781b3907 | 57f9c18bccb0679eadf7b99bc946f63a206d3dd8 | refs/heads/master | 2021-01-18T23:10:10.632878 | 2017-04-04T16:10:08 | 2017-04-04T16:10:08 | 19,750,888 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,718 | r | getStdVars.R | #'
#'@title Get standard variable names for DisMELS output
#'
#'@description Function to get standard variable names for DisMELS output.
#'
#'@param newResType - flag ("NEW" or "OLD") indicating if results are based on the new or old DisMELS results format.
#'
#'@return data frame with columns for names of standard var... |
4c480f674fd9bc2ba93c26b09fd02f7028bdfda5 | 1f2386bf37e4442ed70adb41ce4a744230acd08e | /R/data_transformation2.R | cda82080e41ffba075353e84d11475dd459d4518 | [] | no_license | limbo1996/R_and_statics | 804ccbc77db9eb41d9de6589c2ebe776ea89f868 | 747fb50b6fbfd71ae4516e2c240202957e7f124b | refs/heads/master | 2022-09-21T08:39:17.599797 | 2020-06-01T13:30:13 | 2020-06-01T13:30:13 | 218,050,333 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,236 | r | data_transformation2.R | library(nycflights13)
library(tidyverse)
library(dplyr)
filght <- flights
by_day <- group_by(flights, year, month, day)
a <- summarise(by_day, delay = mean(dep_delay, na.rm = T))
#非管道操作
by_dest <- group_by(flights, dest)
delay <- summarise(by_dest,
count = n(),
dist = mean(dista... |
d081e03a58a7d54f7146964322936ce9ee7636f6 | ebc7589f4f894059d84253e3f394b243bea05049 | /LD_project/RDist.R | d997ebc9a839a218da6641ab8bfdc7be97439cbc | [] | no_license | reworkhow/MPI | 2eb993c8e18309eb7b35c4dfc726f0804823082c | 2fce76d891972c1b7d4bc4c34e9245b8568533bf | refs/heads/master | 2020-06-23T23:05:57.430870 | 2016-12-08T07:29:16 | 2016-12-08T07:29:16 | 74,638,345 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,972 | r | RDist.R | # Input parameters
Ne = 5 #effective population size
u = 0.0025 #mutation rate
r = 0.01 #recombination rate
nGenerations = 400 #number of generations of random mating
interval = 50 #output frequency
# Setting up the matrices
n = 2*Ne #there are 2*Ne gamets in the po... |
58d489e7a83782c4da0654fd70b7a4ed8e0eeab9 | 692a5ee984fa4fdb1c7d797e722ecd94687f9e4d | /1_3_sock_pair_count.R | e0e5617bf266fbd32d506792a7a805efa29f2d03 | [] | no_license | saajanrajak/hacker_rank | cae4f628fc6d45bea1c30f2b7d270543e36ca1b1 | 6fd47742eb8cfb9d5dfbad5bb84e333be25319f8 | refs/heads/main | 2023-01-30T14:28:00.652271 | 2020-12-18T18:26:27 | 2020-12-18T18:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 394 | r | 1_3_sock_pair_count.R | # Sock pair Count
# https://www.hackerrank.com/challenges/sock-merchant/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=warmup
pair_function <- function(n_col,arr) {
df <- data.frame(socks = arr)
df %>%
count(socks) %>%
mutate(pairs_count = n%/%2) %>%
selec... |
0d6be712e46de4e9b1d3c025857eca7e53c2b5ed | 830f467753e1a4ae9b6306cd10259624c3b40281 | /met_aq_merged.R | e93eee809bf6f6a71a552e954da242f64bdfbe09 | [] | no_license | kobajuluwa-eq/AirQualityScripts | d6c13b56704c7c5558fd5542a77ac4631b690324 | d1b58bd1cf906eab0700037611282c227d61fea4 | refs/heads/main | 2023-03-18T22:40:19.624188 | 2021-03-13T06:36:54 | 2021-03-13T06:36:54 | 347,293,685 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 124,810 | r | met_aq_merged.R | library(tidyverse);library(plyr);library(data.table)
library(openair);library(sqldf);library(ggplot2);library(dplyr)
library(openxlsx);library(readxl);library(ggpubr);library(lubridate)
#function to replace all NaN with NA
is.nan.data.frame <- function(x)
do.call(cbind, lapply(x, is.nan))
# import AQ data ###... |
9ef4ad73787bdbd6f9cdbd9f3dd4bfcd55a72c2c | 4e263337af30425e2bfc61284f45f611cec6cd0e | /Analysis/0_clean_data.R | c3483c205a030042568b63967fe1de994ea32803 | [] | no_license | yeatmanlab/Parametric_speech_public | c9ce4f443783c11355a07d4d5c3c87f5a0936bb6 | 8df268acda5c9e425c6df43291191207082d91a4 | refs/heads/master | 2020-04-23T17:47:01.871970 | 2019-02-18T19:39:35 | 2019-02-18T19:39:35 | 171,344,531 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,214 | r | 0_clean_data.R | # Process data
#!/usr/bin/env Rscript
## prep_data.R
## loads, cleans, aggregates, and saves raw response data and psychometric fits.
library(dplyr)
#setwd('/home/eobrien/bde/Projects/Parametric_Speech_public/Speech')
## When loading/saving, this script assumes the working directory is set to the
## root directory of... |
7ab832323b44f99af298a9b53767930fbb97309c | 4a2c6f223ff6063640475840209927bf85a9f33b | /medicago/compare-parameter-runs.R | 4f350aaca9e7031f5b5cd24938766b251abb2734 | [] | no_license | petrelharp/local_pca | d69cc4122c381bf981af65a8beb8914fabede4d5 | abf0c31da5cd74a1de62083580d482f5bd08d7de | refs/heads/master | 2023-06-25T18:12:39.355780 | 2023-06-14T04:39:12 | 2023-06-14T04:39:12 | 47,361,457 | 61 | 13 | null | 2021-02-25T17:20:18 | 2015-12-03T21:23:41 | HTML | UTF-8 | R | false | false | 4,601 | r | compare-parameter-runs.R | #/bin/env Rscript
usage <- "
Gets some summary statistics comparing the results (MDS coordinates)
across runs of the algorithm with different parameters.
"
library(jsonlite)
dirs <- c("./lostruct_results/type_snp_size_10000_weights_none_jobid_278544",
"./lostruct_results/type_snp_size_1000_weights_none_... |
513f80792b0adaca1ec49f01dd37a82729f01d38 | 68a9979822adbf0ab71997e4c0bec88cc2845249 | /data-raw/g_nongradient.R | 5d5295b17912abe949f86637fc269f6676c3a5ae | [
"MIT"
] | permissive | edwindj/hodgedecompose | 21cdaa722c0b8ac0c63c7b16028f0dcc4e90e6ba | c6e3d1f40b8031ea66fd2c1f96ecef5c64cf7732 | refs/heads/main | 2023-07-29T17:40:11.769612 | 2021-09-01T10:08:54 | 2021-09-01T10:08:54 | 364,612,103 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 231 | r | g_nongradient.R | "from,to,weight
2,1,1
1,8,4.2
3,2,2
2,6,8.1
3,4,3.1
3,5,5.9
3,6,9.8
3,8,7.1
4,5,3.1
4,6,6.9
5,6,4.1
7,6,1
8,7,2
" -> csv
g_nongradient <- read.csv(text = csv, strip.white = TRUE)
usethis::use_data(g_nongradient, overwrite = TRUE)
|
80e0369e05f718554d049c18a2192a5609eec5b1 | 509d648580adfb17d0a33157ca1dd551320b7112 | /R/validate_geos.R | d27c24b53bbea176b43f7e3b9dde99154b49e1db | [
"MIT"
] | permissive | CT-Data-Haven/cwi | 55beb8668edffba5c46314dcb8b9e7f8e6d3e96e | 8dabdd8bbcfad40db8969bfc37ea4fc557281002 | refs/heads/main | 2023-09-04T15:17:01.766095 | 2023-08-25T18:27:12 | 2023-08-25T18:27:12 | 138,631,910 | 7 | 4 | NOASSERTION | 2023-02-12T17:53:16 | 2018-06-25T18:03:54 | R | UTF-8 | R | false | false | 2,807 | r | validate_geos.R | # this should still work even for null counties--that should just mean erasing counties out of returned data
county_x_state <- function(st, counties) {
if (is.null(counties)) {
counties <- "all"
}
# take state code, name, or abbrev
out <- dplyr::filter(tidycensus::fips_codes, state_code == st | state_name =... |
819686952c05f1f3430305e4f5db0966068609df | f36b2ad1dc17ec05278f13c7fa72a1fd8343ee19 | /R/chk-character-or-factor.R | 16cae65e73a9b2a988f2675f5285d1f4501f6e08 | [
"MIT"
] | permissive | poissonconsulting/chk | 45f5d81df8a967aad6e148f0bff9a9f5b89a51ac | c2545f04b23e918444d4758e4362d20dfaa8350b | refs/heads/main | 2023-06-14T19:32:17.452025 | 2023-05-27T23:53:25 | 2023-05-27T23:53:25 | 199,894,184 | 43 | 3 | NOASSERTION | 2023-01-05T18:50:23 | 2019-07-31T16:42:59 | R | UTF-8 | R | false | false | 1,069 | r | chk-character-or-factor.R | #' Check Character or Factor
#'
#' @description
#' Checks if character or factor using
#'
#' `is.character(x) || is.factor(x)`
#'
#' @inheritParams params
#' @inherit params return
#'
#' @family chk_typeof
#'
#' @examples
#' # chk_character_or_factor
#' chk_character_or_factor("1")
#' chk_character_or_factor(factor("1"... |
84a6cbda92cb713f42fbce641a4d314bed54e427 | 4da94238447c5ed5188163d9a4b2098de09bfa9a | /RandomizedMatrx.R | d9ceb6f2d3352a0024183a8baf62296abf3038f7 | [] | no_license | ShawnQin/OlfactoryCode | d3b7847ad62f9eb76bdfb96a4c0e181081de54d3 | 39454887000de44c1b6b8e646c78dcc18a584378 | refs/heads/master | 2020-12-24T09:56:50.864823 | 2017-05-19T07:44:31 | 2017-05-19T07:44:31 | 73,254,572 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,772 | r | RandomizedMatrx.R | RandomizedMatrx <- function(OldMatrix,method="switch",...){
# this function return randomized interaction network
# matrix old interaction network
# method mathod used to randomize the matrix, can be "switch","bnOdorWise" and "bngloble"
# ====================================
if(method=='switch'){
... |
d99971cdf80f707364d8e041dd82c1858da3ab73 | 0dfe50e7f553927442a27ed4b1cf366216b06727 | /univariate/check-if-normal.R | 78860d7812f018b321e35c38dc4387a0cde7674c | [] | no_license | kgdunn/figures | 3543d2bcb96cc61cc9c2217da3a4210dd23b1103 | 662076362df316069ba9c903a0a71344da887142 | refs/heads/main | 2021-07-06T06:59:34.977099 | 2021-06-14T20:47:11 | 2021-06-14T20:47:11 | 244,129,830 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 292 | r | check-if-normal.R | N = 100
bitmap('check-if-normal.png', type="png256", width=10, height=7, res=300, pointsize=14)
s1 <- rf(N, 20, 20)
plot(s1, main="", xlab="A sequence of normal values?", ylab="", cex.lab=1.5, cex.main=1.8, lwd=2, cex.sub=1.8, cex.axis=1.8)
write.table(s1, 'check-if-normal.dat')
dev.off() |
8fc1d89894110e52f87c86822050f9fbb3dd7384 | c3826e89c7c78acdcc4596820d03fa96c8710b38 | /R/MathGenerics.R | 907046234f3487b1f148dc7cd7c7bcc47a56d5f8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | chen496/SomaDataIO | 7b393fad010774e17e086555a026c2a38de06415 | b8f00329aaa283f8243d1064a7bda19b873fdd67 | refs/heads/master | 2023-06-24T21:22:02.222540 | 2021-07-27T20:45:52 | 2021-07-27T20:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,355 | r | MathGenerics.R | #' Mathematical Group Generics for ADAT Object
#'
#' This is the S3 group generic method to apply mathematical functions
#' to the RFU data of `soma_adat` objects.
#' The clinical meta data is *not* transformed and remains in
#' the returned object. Typical generic functions include:
#' * `log()`
#' * `abs()`
#' ... |
2240f32a53510b8cc1446d1c83bf769b3561d0f1 | 14c3d1d0f0859cd48eef9725ccd7c18dd128288a | /Analysis.R | 637f5cedaef61ea23e5d28c492336ffd02bf4262 | [] | no_license | vishmaram/RepData_PeerAssessment1 | 9968d047045b279d5f674c69992692c76595231f | a7e81499a1b6f22ffbcd4e2a83cbb706cc6f08a7 | refs/heads/master | 2021-01-22T21:32:59.664270 | 2016-04-25T04:58:17 | 2016-04-25T04:58:17 | 57,007,287 | 0 | 0 | null | 2016-04-25T02:54:57 | 2016-04-25T02:54:57 | null | UTF-8 | R | false | false | 2,472 | r | Analysis.R | unzip("activity.zip", exdir = "data/", overwrite = TRUE)
activity <- read.csv("data/activity.csv")
head(activity)
naLogical <- !is.na(activity$steps)
activityEdited <- activity[naLogical,]
sum(is.na(activity$steps))
activityByDay <- aggregate(activityEdited$steps,list(activityEdited$date), sum)
names(activityByDay... |
5b1368482adf018bd9a20ca8b8366b4b9ada24d7 | 983fc432d61023469f68452de3e5b1fa3e0dd5d2 | /bayesian_immigration_estimates.R | 53cca831a714b6dd6194342bf8f57c580fdbd127 | [] | no_license | guittarj/MS_TraitsTransplants | 00127715eae477960e50f243362a41d9f4868ab3 | 0f849a0b4e22809637e3287b2da5da9a266f63c6 | refs/heads/master | 2021-06-05T08:24:56.479628 | 2016-10-24T14:21:14 | 2016-10-24T14:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,751 | r | bayesian_immigration_estimates.R | # A script that estimates immigration rates using JAGS, given the rates of turnover
# we observe in local controls, and the composition of controls at the site level
setwd(wd)
#load packages
loadpax(c("scales","R2jags", "lattice"))
# round cover to nearest unit
cover0 <- round((cover * 100) / rowSums(cover))
# init... |
fa371db95e9acae1f351dd851861cde21720beb2 | 4bf6efaf2507ad57a4c79ebf90a837d2cae70527 | /man/jonckheere.Rd | e4e5050ea81f4981d1c7ecedba0518d9a1320b73 | [] | no_license | kloke/npsm | c340a40a54cc852fc5c938128ae181e6603838bc | 2d47c5c6352a46eaae2dfbd3ab833ab2b6637805 | refs/heads/master | 2021-12-02T11:27:11.446950 | 2021-11-29T22:22:49 | 2021-11-29T22:22:49 | 25,049,501 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 996 | rd | jonckheere.Rd | \name{jonckheere}
\alias{jonckheere}
\title{ Jonckheere's Test for Ordered Alternatives}
\description{
Computes Jonckheere's Test for Ordered Alternatives; see Section 5.6 of Kloke and McKean (2014).
}
\usage{
jonckheere(y, groups)
}
\arguments{
\item{y}{vector of responses}
\item{groups}{vector of associated group... |
837422cfe8047c46efc50fab6b4e7e7b16b8a964 | d2682a3d2004a473456b95019af095397063645e | /man/clean_data.Rd | 627baee6fc6ab9ea6c76719e8683577a45cf969e | [] | no_license | kattaoa/oktennis | dbb6879713d7c5450008f9cb9c63ff1d1c32a083 | 9c0868714d907e650c7694691ad85304bef03247 | refs/heads/master | 2020-06-19T06:58:35.014913 | 2018-12-08T10:11:11 | 2018-12-08T10:11:11 | 160,927,133 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,957 | rd | clean_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_clean_functions.R
\name{clean_data}
\alias{clean_data}
\title{Cleans data extracted from ATP player stats website}
\usage{
clean_data(x)
}
\arguments{
\item{x}{Data from ATP site}
}
\value{
Cleans the data to have the following columns:
... |
a05b586ec5bd9a3e55dbbc90a8c1860d2b385ed5 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /HardyWeinberg/R/HWGenotypePlot.R | 62642f6db163744cf3723301dfc263cce3e18615 | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,518 | r | HWGenotypePlot.R | HWGenotypePlot <- function(X,plottype=1,xlab=expression(f[AA]),ylab=ifelse(plottype==1,expression(f[AB]),
expression(f[BB])),asp=1,pch=19,xlim=c(0,1),ylim=c(0,1),cex=1,cex.axis=2,cex.lab=2,...) {
# Makes a scatter plot of genotype frequencies.
if (is.vector(X)) {
if (length(X) != 3) {
stop("X must h... |
d2148ba2e5057315fc0336ca653d09d9d5cdaae1 | 9ca1c15ff4731aa0abcf8197f7c6e496db4ea9fa | /man/MetaQC.Rd | 33a734d67161de22e1426943925b5690c8d6c5d3 | [] | no_license | donkang75/MetaQC | f1337b35ab2c91443ba6500cd1e5111658a768f4 | 854fc1cb4098e85ef7e8a8fb98a444fbe26265eb | refs/heads/master | 2020-04-10T22:47:57.561805 | 2013-02-22T04:42:10 | 2013-02-22T04:42:10 | 1,641,558 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,830 | rd | MetaQC.Rd | \name{MetaQC}
\alias{MetaQC}
\title{
MetaQC: Objective Quality Control and Inclusion/Exclusion Criteria for Genomic Meta-Analysis
}
\description{
MetaQC implements our proposed quantitative quality control measures: (1) internal homogeneity of co-expression structure among studies (internal quality control; IQC); (2)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.