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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1a482bcea609cf5300020d8992f7eef1344d070 | 809754c7533aaa3e19d327f3bc7fd57ba5e6c082 | /man/STRAH.Rd | f8a0d3985b669f281ea028bfc827d98dcc7112d3 | [] | no_license | cran/STRAH | cb72112f9dbb4551762356ba4b587a26e7389683 | 0954be0ce19ffd2f0a65a83e049db598277d2fb3 | refs/heads/master | 2020-12-22T19:10:48.560514 | 2019-04-09T14:05:25 | 2019-04-09T14:05:25 | 236,902,944 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,191 | rd | STRAH.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/STRAH.R
\docType{package}
\name{STRAH}
\alias{STRAH}
\alias{STRAH-package}
\title{STRAH: A package to detect DNA-motifs or short tandem repeats (STRs) in reference genomes}
\description{
The STRAH package provides functions to extract... |
cbb5c4e302b96167ce1d9fbff91d3a20da523fb4 | ec71eb91e46069f5e2b4b64244a1b17b5aae27cd | /Questao2.R | 95a8b7980e911b4dcdc48407d720838df033e391 | [
"MIT"
] | permissive | NandoBispo/Resolucao-Atividade-Sem7 | 41356b4ebad05b669b47ec835e4da8b5decfbf1e | e8d4bcab2b814a2871ae601c0a2aa6e69ed08273 | refs/heads/main | 2023-08-31T21:19:52.007281 | 2021-09-27T11:55:35 | 2021-09-27T11:55:35 | 410,545,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,539 | r | Questao2.R | if(!require(pacman)) install.packages("pacman")
library(pacman)
pacman::p_load(tidyverse, car, rstatix, ggpubr,
RVAideMemoire, psych, DescTools, patchwork,
knitr, kableExtra, janitor, xtable)
#Vídeo de ajuda:
# https://www.youtube.com/watch?v=E2bYIb81q4A&list=PLOw62cBQ5j9VE9X4cCCfFMjW_h... |
d78d2e4298b06116e316b4b1ad39f3de850df811 | 22e8e2539f05609aa407f4d62fad7ab2fa9702e3 | /run_analysis.R | 4f0fd2cb6fdf44107a886de56699ec55f05d1040 | [] | no_license | Stockalper/Coursera-Getting-and-Cleaning-Data-Course-Project | 8f9943c5022177bae33617f383276223ea802d6a | 01fb362446343947ff5372c29dd9c459ec0e11cb | refs/heads/master | 2021-01-10T15:49:39.567149 | 2015-11-22T18:55:04 | 2015-11-22T18:55:04 | 46,672,398 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,903 | r | run_analysis.R | # Coursera Johns Hopkins University Data Science
# Getting and Cleaning Data
# 21.11.2015
# Course Project
# 0 ----------------------------------------------------------------------------
library(reshape2)
# expected folder structure
# ./UCI HAR Dataset/
# ./run_analysis.R
# ./DataSet_Tidy.txt
# setwd("")
# DataS... |
383fd74fb1d885ccae88a70060802d2584900d62 | f1b2ebb62ec542f3a998425bd3d3480fde109be3 | /cachematrix.R | 43a0dd77bcb66c939ca49fe536e2c314e4c6872d | [] | no_license | ptumu/ProgrammingAssignment2 | 5d7dadedb4c2a7693143f2388da1a65cdca76528 | 4cecfc0701d791964c6a2b5471584328438f6b9f | refs/heads/master | 2021-01-13T16:20:31.533641 | 2017-01-26T12:43:23 | 2017-01-26T12:43:23 | 80,021,623 | 0 | 0 | null | 2017-01-25T14:24:53 | 2017-01-25T14:24:52 | null | UTF-8 | R | false | false | 1,323 | r | cachematrix.R | ## Matrix inversion is usually a costly computation and there may be
## some benefit to caching the inverse of a matrix rather than computing
## it repeatedly. Here a pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- f... |
b7ca0154d42c53addf5ff54decc3597741f970f9 | 38b5f53a32527a91f87b5429ed15e6e2be095b95 | /20200212/20200212.R | befc2c20622a0acc70f05680c5a5237deda10eb0 | [] | no_license | RyanYip-Kat/CovID2019 | 5adeaef60d773f380faca4f6747ca524434911a7 | 0275c84ba470381d4df0e73f97a286b43071142c | refs/heads/master | 2022-04-15T10:01:16.025093 | 2020-03-23T07:40:27 | 2020-03-23T07:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,586 | r | 20200212.R | library(Seurat)
library(argparse)
print("### configure parameters ###")
parser <- ArgumentParser(description='Process some tasks')
parser$add_argument("--seurat",
type="character",
default="",
help="seurat path")
parser$add_argument("--outdir",
... |
0758177757a5c9ebffb4c13801d17ecbd6634dee | 0662ba611c00aa49c3afca318a7f3ea16c83ba5d | /man/use_tic_badge.Rd | 86d24d9d9bd9e1ccf4e62253980f87d2ee98f4d1 | [] | no_license | ropensci/tic | 38e06d7675e6820801edf74daa904d6ceea1a804 | 379cf98787e924a68e47792462fafca03f148d5f | refs/heads/main | 2023-09-01T19:28:37.862973 | 2023-05-22T14:07:38 | 2023-05-22T14:07:38 | 72,775,037 | 50 | 10 | null | 2023-01-18T18:03:44 | 2016-11-03T18:31:22 | R | UTF-8 | R | false | true | 927 | rd | use_tic_badge.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use-badge.R
\name{use_tic_badge}
\alias{use_tic_badge}
\title{Add a CI Status Badge to README files}
\usage{
use_tic_badge(provider, branch = NULL, label = "tic")
}
\arguments{
\item{provider}{\code{character(1)}\cr
The CI provider ... |
ef31113996792a4dbb008e26c86539f5db23aa23 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /PoissonBinomial/inst/doc/intro.R | fbf5612afa66b1717426063de1da2214f5b1017e | [] | 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 | 3,109 | r | intro.R | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup, echo = FALSE------------------------------------------------------
library(PoissonBinomial)
## ----ex-opdb-----------------------------------------------... |
a1b94df283b85a77adab768ae935f4315e5d950f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/UBCRM/examples/simCrm.Rd.R | 21373a4b41607fa4b981d0880456a470da99dd39 | [] | 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 | 228 | r | simCrm.Rd.R | library(UBCRM)
### Name: simCrm
### Title: Simulation of one dose-escalation study with the Continual
### Reassessment Method
### Aliases: simCrm
### ** Examples
simCrm(c(0.1,0.2,0.3,0.35,0.45),firstdose=1,target=0.33)
|
6f8d91c7eac263762cbbcd543d35a9b2ae9fd28e | 8c527910717c2917564ef79b820a25c19d7a8218 | /R/load.R | 723576358517754595f0d3973e98cd6a90058c19 | [
"MIT"
] | permissive | sbw78/deepbach | 3b79893cc39375571a9b2bff8fa984ae4d191b02 | 5be777bbab25ae5276b69d24e888a9a60acc7e13 | refs/heads/master | 2022-01-31T03:32:09.133310 | 2018-07-28T19:23:06 | 2018-07-28T19:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 454 | r | load.R | read_midi <- function() {
reticulate::use_condaenv('deepbach')
m <- reticulate::import_from_path('DeepBach', '.')
d <- reticulate::py_run_file('script.py')
X <- d$X
X_metadatas <- d$X_metadatas
voice_ids <- d$voice_ids
index2notes <- d$index2notes
note2indexes <- d$note2indexes
metadatas <- d$metadat... |
a2207d1025f224cc6ef07a1d56fb05f8ea102fdb | 1426883f97254d58108b126caddf0e1784b18604 | /train_tree.R | 830e0c6af556b3de3fa99f0f5d7e4d26310e50d5 | [] | no_license | anaandmac/Train-Tree | c1130477a3e77f4ef8dd3b10fa26afceb1cec151 | 63505e698272eaecf28ad20aa4d32a6c5def40c3 | refs/heads/master | 2020-06-18T10:15:28.576458 | 2019-07-10T20:07:11 | 2019-07-10T20:07:11 | 196,267,977 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,117 | r | train_tree.R | #install.packages("caret")
library(caret)
library(tidyverse)
#Load the dataset into memory using load("segmentationOriginal.RData")
#Usar setwd()->definir o diretorio que esta o arquivo "segmentationOriginal.RData"
load("segmentationOriginal.RData")
#Interrogate the dataset. Remove the first two columns of th... |
b95dd74512ea5105a3842f0a50a8df6f858c3c77 | 444f3c8d23eb64df031a1c39b2d3b704218dade9 | /Aula 1.R | 33143bac35c17cfbab3e7cf7d58466f1a0edf3f5 | [] | no_license | hugonbgg/Psicometristas | 6a8a40f2b79cfe66a07bbc99ec0efe6bcb504a8b | ff61399bf5fd293640b2cacab0dc80615228282c | refs/heads/master | 2023-08-28T00:38:01.353550 | 2021-10-14T00:49:08 | 2021-10-14T00:49:08 | 416,929,052 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,025 | r | Aula 1.R | #dados
dados <- read.csv("dados/Pesquisa-Brasil-e-Espanha-fusionado.csv", encoding = "UTF-8")
backup <- dados
#pacotes
library("tidyverse")
dados %>%
glimpse() %>%
names()
dados <- dados %>%
mutate(eat_soma = rowSums(.[19:44], na.rm=TRUE))
dados <- dados %>%
mutate(bsq_soma = rowSums(.[45:78], na.rm = TR... |
6ddc9952d993b5adab74e6e584053964bdf139f8 | ae36c8508a663373f7894566c05e705b73a91137 | /data.R | 9eab80d03aa705872e2e4622e032f70650f9336b | [] | no_license | vinod00725/Bank-data | 13fab141aee97329d87a13db75ead046d449b12d | 542eed5df58c5a14b9ad4c6e1bfd0606b8fd8366 | refs/heads/master | 2020-06-11T16:35:11.726191 | 2019-06-27T04:58:37 | 2019-06-27T04:58:37 | 194,025,418 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,197 | r | data.R | rm(list=ls(all=TRUE))
setwd("D:/AI/ML/logisticlab/Data.csv")
data=read.csv("data.csv")
str(data)
summary(data)
table(data$Target)
table(data$FD_ind1)
table(data$FD_ind3)
table(data$FD_ind5)
table(data$NumberOfDependents)
data$Target=as.factor(data$Target)
data$FD_ind1=as.factor(data$FD_ind1)
data$FD_ind3=as... |
410e07d56988b48c792495f077ce155bd9a5fe76 | fbe8bcf0431b5f83cea29bc4530e508095004115 | /Tutorial 3 - Web Scrapping with R.R | 67fa8b8a5e137203517828024cf04e12fc19bcf4 | [] | no_license | lihui-han/Tutorial3_Web-scraping-with-R | 34844a1f3d05cf0f4daa7a947487726961eb2b2b | f6fe6d8243bfe5d1715e82f1f7f5868098d067db | refs/heads/main | 2023-09-05T22:34:57.665259 | 2021-11-18T17:01:08 | 2021-11-18T17:01:08 | 429,509,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 607 | r | Tutorial 3 - Web Scrapping with R.R | install.packages('rvest')
install.packages('dplyr')
library(rvest)
library(dplyr)
url <- 'https://www.imdb.com/search/title/?groups=top_250&sort=user_rating'
webpage <- read_html(url)
title = webpage %>% html_nodes('.lister-item-header a') %>% html_text()
head(title)
year = webpage %>% html_nodes('.text-muted.unbold... |
3442153a802ac34eb5c92cfee8fe3d09421dbd1c | 5693d3497d8d4e61f5ffa0becca905a1074de569 | /Practice/Section 4/Matrix basics.R | 422ff451bcfcc1629a2de1d042e87533f2eb551c | [] | no_license | souviksamanta95/R_Personal | 65a6272253792839c3b44cfab3cf934227609ae8 | 56597d51b620a587e097c8b669d014a807481f39 | refs/heads/master | 2023-02-16T11:10:15.966371 | 2021-01-20T11:12:20 | 2021-01-20T11:12:20 | 260,390,124 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 832 | r | Matrix basics.R | # Basic Matrix formation :
my.data <- 1:30
mat <- matrix(my.data, 5, 6) # By default, matrix is filled up by column
mat
mat <- matrix(my.data, 5, 6, byrow = T) # Manually enforcing for entry by row
mat
v1 <- 1:6
v2 <- 7:12
v3 <- 13:18
# Matrix by binding ROWS
mat2 <- rbind(v1,v2,v3)
mat2
# Matrix b... |
f88b1257f862a5147b7c97f15654498efc2f53e5 | 13b21646937de87022c30c8512c0151d5bb3f03f | /openintro/man/ball.bearing.Rd | 402423cd8791f5d5af1d383c0feb6b8ac3a0db46 | [] | no_license | mine-cetinkaya-rundel/openintro-r-package | 374a104b4241eec05fb4688a5231ba8979e59ad0 | 099da5b776784462f4ff384434cd7a517dfe37d6 | refs/heads/master | 2020-03-28T09:40:40.626621 | 2018-09-01T03:20:39 | 2018-09-01T03:20:39 | 148,051,227 | 2 | 0 | null | 2018-09-09T17:54:34 | 2018-09-09T17:54:34 | null | UTF-8 | R | false | false | 594 | rd | ball.bearing.Rd | \name{ball.bearing}
\alias{ball.bearing}
\alias{ball_bearing}
\alias{ballBearing}
\docType{data}
\title{
Lifespan of ball bearings
}
\description{
A simulated data set on lifespan of ball bearings.
}
\usage{data(ball.bearing)}
\format{
A data frame with 75 observations on the following variable.
\describe{
\ite... |
398a7605918720eb07ed64625369785140cb94ac | 32ecc21d18da95b8f3b328892d9cd75d23b6cd70 | /R/gnmf.R | 1e2e6d73cdec8fff9b1be7ba5b0d037405bf61a7 | [] | no_license | cran/gnmf | 993c9287d6b160c0bd5c19ad03ffe7ed02984c42 | c54285f256d5a355b450e4ff82be7a8af869b022 | refs/heads/master | 2021-01-17T15:10:53.026083 | 2016-07-11T18:46:46 | 2016-07-11T18:46:46 | 17,696,469 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,491 | r | gnmf.R | # These usage instructions are from the stand-alone binary.
# They are kept here for informational purposes only,
# but the R implementation should be similar.
#
# Usage: hpcNMF -i input_data_matrix
#
# General suggestion: For an input matrix containing no zero entries, it's recommended that idealization be set t... |
2a6ff34afadba31d1ae9e0f7eac74b44865deb7b | 73022f9cb90da64cb0434c331e37df61e93cd81e | /p3.r | b04acd8f4e8afd844f000994bead604bc0323edf | [] | no_license | linas-p/projecteuler | c63b6e3ec28b08622aca207197aa68afac4405b8 | 06c3fd25926a8377ab1e8b2add54a5e683d215e9 | refs/heads/master | 2020-07-28T15:00:06.168850 | 2016-09-02T17:13:04 | 2016-09-02T17:13:04 | 66,860,495 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 558 | r | p3.r | prime <- function(n){
if(n < 3){
return(TRUE)
}
result <- TRUE;
for(k in 2:(n-1)){
if ((n %% k) == 0){
result <- FALSE;
return(result)
}
}
return(TRUE);
}
find_div <- function(n){
result <- c()
tmp <- n;
k <- 2;
while(k != n){
if(k > tmp){ # It's a tricky one ... |
38fcc7c15480a7aa8f9364d5bfa7ee28692f3022 | 6708664aff0690afcf4472fdd427c781257a6661 | /server.R | 3d09da615f8b2e72b87329de436b30731b580b3b | [] | no_license | darko295/book_rec | 34b2d6b49b8299d5cbf8bca67ce8a54df4d86e86 | c5887ccb237467ec19529c3a0558e3689854213c | refs/heads/master | 2020-04-22T21:57:36.083892 | 2019-02-27T21:43:24 | 2019-02-27T21:43:24 | 170,590,749 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 650 | r | server.R | library(shiny)
source('functions/cf_algorithm.R') # collaborative filtering
source('functions/similarity_measures.R') # similarity measures
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
output$table <- renderTable({
book_recommendation(input$book1, input$book2, ... |
fbdb95e531e6b181b46eb74afd67c9232e7f9434 | e2ecbae6733ba2c9246b0f6f1d889340d3460137 | /GeneBook/man/genecard_description_summary.Rd | e109b2a5efa6c193cef7c3aaeae1fcf8a26b89c5 | [] | no_license | siyanc/GeneBook-Package | 628e95ed226359dac9a8f41688514dc97fb77f27 | e2f4ec6246f417bf1cacd90b45981da156302275 | refs/heads/master | 2020-06-15T15:19:34.300338 | 2020-06-05T20:11:55 | 2020-06-05T20:11:55 | 195,330,228 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 187 | rd | genecard_description_summary.Rd | \name{genecard_description_summary}
\alias{genecard_description_summary}
\title{Gene Description}
\description{
A dataset containing the consistent gene symbol, type and description
}
|
f7870c599df0f37deb09dd9a556dbba3b639ab5d | 22f12b14a04ab0b2aa1681603831e4b02af127c0 | /man/validate_taxmap_data.Rd | bde1eaa986146d9c19bd41456f19fb8157ac6b29 | [
"MIT"
] | permissive | nemochina2008/taxa | 973e0c786ec8a5874d6fc45a59c40efee7fa1d12 | 7d939b015ed0e6547e26c212f96e5d87367f2d6c | refs/heads/master | 2021-05-13T14:08:54.127484 | 2018-01-05T19:53:21 | 2018-01-05T19:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 598 | rd | validate_taxmap_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxmap--internal.R
\name{validate_taxmap_data}
\alias{validate_taxmap_data}
\title{Convert \code{data} input for Taxamp}
\usage{
validate_taxmap_data(data, input_ids)
}
\arguments{
\item{data}{The \code{data} variable passed to the \code{Taxm... |
caeaf9605e89f7014ae46c0e342038f5a49ffb14 | 7c85ac963476e9c481c82969842317db3456a41f | /src/housing.R | 3d7c11a94f38d9bcf5daa7a9f0c7946d91d20176 | [] | no_license | SY428/Kaggle-House-Prices | 65baca904f14c6a5f24de32f408545c92ab9c844 | f770a4d2f2ed6778cee132b475072ba1b3eec82a | refs/heads/master | 2020-12-03T02:24:29.452269 | 2017-07-10T21:53:01 | 2017-07-10T21:53:01 | 95,934,571 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 38,427 | r | housing.R | ### House Prices: Advanced Regression Techniques
# Set workdir
setwd("/Users/sophieyang/Documents/Kaggle/HousePrices")
# Set seed
set.seed(428)
# Load Libraries
library(randomForest)
library(caret)
library(neuralnet)
library(MASS)
library(Metrics)
# Get files
train <- read.csv("train.csv")
test <- read.csv("test.csv... |
fdec118366ccf64cc31bbaef87ad3c18d2b94d54 | d17ad7c93655edf7c9dffc431a66d6f1aa08875d | /DRM.R | 178cde6826c0bc14c8c277dcf9339b6f1391e6db | [] | no_license | fdelaend/data-analysis | 4de0951691c3bf50de9659cc4b96c94b59723803 | 7b20f6243130d2c4f40530dfc844b6332d729dbc | refs/heads/master | 2021-01-11T00:16:18.340030 | 2017-07-04T12:00:08 | 2017-07-04T12:00:08 | 70,568,241 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,215 | r | DRM.R | #try DRMs for all endpoints
#length of concentration vector to simulate effect for with gams
LengthNewConcs <- 1000
#allocate empty objects for dose-response models and data
#*3 because you want to store mean, low, and upper limits
DoseResp<- mat.or.vec(LengthNewConcs, length(endpoints)*3)*NA
DoseRespData <- mat.or.v... |
9328357a8a59fa6feb4e3577a2415204808b8930 | a4bd67048a821548d9b73d9064d7518589f81a81 | /code/analysis.r | 26fd6529d86eb2be971d2ed20121427c20170fb9 | [] | no_license | magrossi/news_n_stocks | db62ff1f38db9f0e797b7641f30e986d1ae9cbc4 | 9eceff6d89b909f3240c02a52ac675d0b6fafc58 | refs/heads/master | 2020-04-06T06:55:25.398291 | 2016-09-01T19:45:36 | 2016-09-01T19:45:36 | 61,725,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,565 | r | analysis.r | require(zoo)
require(xts)
require(scales)
require(forecast)
require(tseries)
require(caret)
# read term csv
bank <- read.csv('term_bank_ts.csv', header = FALSE)
bank_df <- data.frame(date=as.Date(bank[, 1], format="%Y-%m-%d"), value=bank[, 2])
bank_ts <- ts(bank_df$value, start=min(bank_df$date), frequency = 1)
# rea... |
cc82cb83f5a7e57b9223d8fcd6a262f6705caf0c | 27674239c0da0b7afc6ad9dc2622e084c3f5c004 | /man/bezier_find_length.Rd | 2c992738c24525b9d4098b4c6fff52b3ee8bbc85 | [] | no_license | RobinHankin/knotR | 112248605c8a89a21641be35f2363c19db1c3783 | 0a5a6015a51340faa1ee43066d76be8f39adb499 | refs/heads/master | 2023-05-15T03:19:57.311824 | 2023-05-14T09:03:35 | 2023-05-14T09:03:35 | 99,854,849 | 5 | 0 | null | 2017-10-15T04:48:05 | 2017-08-09T21:37:28 | R | UTF-8 | R | false | false | 1,167 | rd | bezier_find_length.Rd | \name{bezier_find_length}
\alias{bezier_find_length}
\title{Solve for arclength}
\description{
Finds the value of the Bezier parameter \eqn{t} that corresponds to a
given arclength from the start of a Bezier curve
}
\usage{
bezier_find_length(P, len, from = 0, increasing = TRUE, give = FALSE, ...)
}
\arguments{
\item... |
fa9f5e6e1da9099a5f996ad5ece59ae2ff9d36a2 | 4050c25b8aa1bd07808af59300bf8058c7890949 | /Scripts/iii.LineageAnalyses/Use/PhyloTrees.R | fc9755d4c1e0bd4174ffb27bb8a06fa752480bf0 | [] | no_license | KerkhoffLab/Bryophytes | 6faf03b9f73be24eeff7017f092451e824ac15ca | 9bb7a8e4c0fa5a9f16e4dbfc937b643da0a69ab4 | refs/heads/master | 2021-07-23T17:12:46.284440 | 2021-07-22T16:26:02 | 2021-07-22T16:26:02 | 193,754,056 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 32,128 | r | PhyloTrees.R | #Figuring out how to make phylogenetic trees with our maps
#Using Liu et al. 2019 tree data
#Kathryn Dawdy and Hailey Napier, July 2020
#Install ggtree
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("ggtree")
#install treeio (I don't think we need this but... |
d82c5896b299de86eedae84f1ba01587943316f1 | c13a611e62aae28e1f7d422abbc248b655a75bc3 | /cachematrix.R | c7bc32679730328a11e8bf1f2c8f980a0e672324 | [] | no_license | imsunil/ProgrammingAssignment2 | 0e9aba1a26c2f5fd9f9b542dd22717dfd45753bb | de089c2945682f442f7fae8dfa9afcfd2f4d9e9e | refs/heads/master | 2021-01-17T22:31:34.267872 | 2016-01-25T03:40:51 | 2016-01-25T03:40:51 | 50,316,489 | 0 | 0 | null | 2016-01-25T00:56:32 | 2016-01-25T00:56:31 | null | UTF-8 | R | false | false | 1,155 | r | cachematrix.R | ## Along the lines of the make vector assignment makeCacheMatric function returns a list of 4 functions.
## And cachesolve function returns the inverse of the matrix from cache if its already comuted or calculates it if the matrix changes)
## MakeCacheMatrix function take a matrix as an argument and generates 4 functi... |
ef5cc5b505f6b7a825ee261eaaadcdb288deac2b | 2e2e9c19893d00a492baf306a17e75842a2a8896 | /leading_eigenvector_community.R | 0b057e05a1c9b80e13c7a0952583c7eb5e769b44 | [] | no_license | jacoblevitt/eigen-communities | 0bf4652d1d18621767ee753bbca641b7b15c93a4 | d2e9ee3b19245e76327e98e8177a2d00c743e52d | refs/heads/master | 2020-07-01T23:14:15.551334 | 2019-08-08T21:11:47 | 2019-08-08T21:11:47 | 201,337,582 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,433 | r | leading_eigenvector_community.R | # import libraries
library(igraph)
library(reticulate)
library(readr)
library(ggplot2)
library(plyr)
library(ggpubr)
library(gridExtra)
library(ggraph)
# make edgelists
source_python('06122019_1.py')
# measure eigenvector centralities
files = dir(pattern = '*.csv')
files = files[file.size(files) > 0]
x = c('df_')
files... |
6a13c672d410e3c4d110d24e774f170050c02719 | 8b31e76a0aa4addad607f86820af5312ba1e9a45 | /RulesGeneratorexp1.R | 3ccbb7668b28d34e5111f280bc429d0dcdad1977 | [] | no_license | mdaniluk/DecisionTree | 87478bfe18c3e20d3ce264d05cbc341f77e6d4f7 | 7925301752e7549feb13607c39acbe630885b266 | refs/heads/master | 2016-09-05T18:44:41.043663 | 2015-12-01T16:29:27 | 2015-12-01T16:29:27 | 34,896,749 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 6,490 | r | RulesGeneratorexp1.R | #clean workspace
rm(list = ls())
# Classification Tree with rpart
library(rpart)
#include files
source("extractRules.R")
source("treeClasses.R")
source("predict.R")
source("ComputeErrorRate.R")
source("Prune.R")
# load datasets
letters <- read.table(file = "wine.data", sep = ",")
#letters <- read.table(file = "tran... |
3578cc3e3eea15bc295a07effeb9100ca5a0657b | 35cb86be9bd4ff806cca33302a78e6ad8a2bb257 | /cachematrix.R | 9b26e06682bd333b98eb42c103cf27270fb59e35 | [] | no_license | ColumbiaMancera/ProgrammingAssignment2 | 8e6bd3e63e1e357b06d931ea5b0098b1cb909a31 | 754d35ee4ba0cbf45ff5c9acf8f4d7bb771a68ec | refs/heads/master | 2022-09-10T20:09:47.540167 | 2020-05-30T22:04:21 | 2020-05-30T22:04:21 | 268,161,344 | 0 | 0 | null | 2020-05-30T21:18:42 | 2020-05-30T21:18:41 | null | UTF-8 | R | false | false | 815 | r | cachematrix.R | ## This project takes in a matrix, we first run the makeCacheMatrix function
## to create the special matrix and then the cacheSolve function to return
## the inverse of the original.
## This function will create a matrix object that caches the inverse.
makeCacheMatrix <- function(x = matrix()) {
z <- NULL
s... |
db9aad4963e745d178570fdef72bca0ea1506675 | 025fbca741152e847871d18f14ebfc45b6f51d5c | /example.R | 3cd5bd479b78030b3e09cb70a654dd24cf1fb5aa | [] | no_license | sydeaka/pairs2 | 50da9ce50dc416d53f952ea38468437b2535774c | 78ba11fbba3e41844aea9fa61030fc7e8243f6bb | refs/heads/master | 2021-01-19T02:52:43.250617 | 2016-06-28T01:21:49 | 2016-06-28T01:21:49 | 62,098,616 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,639 | r | example.R |
## Generate sample dataset
set.seed(100)
n = 40
x1 = rnorm(n, 1, 1)
x2 = rnorm(n, 25, 4.7)
factor.names = c('A', 'B', 'C', 'D')
factor1 = numeric(n)
for (i in 1:n) factor1[i] =
if (x1[i] + rnorm(1) < median(x1)) sample(factor.names[1:2], 1) else sample(factor.names[3:4], 1)
factor1 = factor(factor1)
c... |
b921d59a5cacbb91aad420c891e5954f6e85211e | 541fff10228b07c9b54437c7e5f8e674eb7a3211 | /R/NMFSeed-class.R | 2b77c40fcf7fe5007fbcb7e16fa74b564e7bc5c4 | [] | no_license | cran/NMF | 8d125625278b93f52bdcc646e382a969d6ea717d | 14e3f913b2de158149bf1fc869952cf6bb3d0561 | refs/heads/master | 2023-06-28T00:46:53.707046 | 2023-03-20T14:30:02 | 2023-03-20T14:30:02 | 17,692,093 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,008 | r | NMFSeed-class.R | #' @include registry.R
#' @include NMFStrategy-class.R
NULL
#' Base class that defines the interface for NMF seeding methods.
#'
#' This class implements a simple wrapper strategy object that defines a unified
#' interface to seeding methods, that are used to initialise NMF models before
#' fitting them with any NMF... |
4956b7f0ca4ad1b6161d1058e2c8c5ba73824b3f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/attrCUSUM/examples/getContl_binomial.Rd.R | 3ab0a1c435210c40bfe45b2fa13590d1ca884209 | [] | 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 | 369 | r | getContl_binomial.Rd.R | library(attrCUSUM)
### Name: getContl_binomial
### Title: Compute Control Limits for FSI binomial CUSUM Control Chart
### Aliases: getContl_binom getContl_binomial getContl_zibinom
### ** Examples
# Example 1: zero-inflated binomial distribution
getContl_zibinom(rho = 0.9, size = 100, prob = 0.01,
... |
f7f14edc348fa48ced8127caf1c6f036284d1cc6 | b574e0d448589a975e57f6134e3caa799dcce834 | /examples/bptest.R | 2055225122775b125eba0eb3282ea2bb716244c1 | [
"CC0-1.0"
] | permissive | mbannert/exploring-stats-2015 | 303b6df10b28af977a793003271792227d166980 | 2de62f17dceaf161659f974e55b88656353597ba | refs/heads/master | 2021-01-10T07:26:36.255409 | 2015-12-09T12:16:26 | 2015-12-09T12:16:26 | 46,133,599 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 433 | r | bptest.R | # Programming can help to improve understanding
## generate a regressor
x <- rep(c(-1,1), 50)
## generate heteroskedastic and homoskedastic disturbances
err1 <- rnorm(100, sd=rep(c(1,10), 50))
err2 <- rnorm(100)
# whatch the labels of the axes !
hist(err1,breaks=15)
hist(err2,breaks=15)
## generate a linear relatio... |
88c89591471a1c68a1bd426d978ba8c9a44bae62 | 7679f049a406b760ce93e31068a784c33276941b | /R/print.mcmc.list.R | 07c0ac07dc5162b69b3a09fc405a85766d26f083 | [] | no_license | datacloning/dclone | e5ec61ea3d3cc484bd4df1a8e3efa0cae882fc57 | b17d9a663e92ff935ce6b130ce6c1c30ed6e2909 | refs/heads/master | 2023-07-10T10:09:29.324647 | 2023-07-03T17:52:36 | 2023-07-03T17:52:36 | 25,499,525 | 6 | 2 | null | 2018-02-27T06:27:27 | 2014-10-21T03:14:14 | R | UTF-8 | R | false | false | 115 | r | print.mcmc.list.R | print.mcmc.list <-
function(x, ...)
{
y <- x
attributes(y) <- NULL
print(y)
invisible(x)
}
|
6535045910df4d229696a0ad88a943e136338954 | c5e1e24dce8cca92461188204c0a823c8cefe5c2 | /Project Rcode.R | 134ed500522f14ab3e4d57a172ea3bbcfd760a5e | [] | no_license | ggourab/women-track-record-multivariate-analysis- | bac04eb2c58a778c01b82ef638c96890a47bfafa | 20d12fd343e04d8948ff94bde1277c75a5f7f628 | refs/heads/main | 2023-01-08T21:11:57.336359 | 2020-11-07T12:30:36 | 2020-11-07T12:30:36 | 310,839,943 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,246 | r | Project Rcode.R | t = read.table("Project Data.txt", sep = "\t", header = F)
colnames(t) = c("country", "sp100", "sp200", "sp400", "sp800", "sp1500", "sp3000",
"marathon")
t
rownames(t) = t$country
(t1 = t[, -1])
###draw box plot for each one
boxplot(t1$sp100,main = "Track Record for 100m",xlab = "sec", ylab = ... |
3cb56cae389c2b7de4218697afef75b5c683bd2b | d78e882a60a6fdc7b9b84fcc9a1b3100bd001a30 | /Prep_tabls.R | 795e44b58bf49db7af86d840b79d2304c06eb867 | [] | no_license | PhilSmith26/SEPHbrowser | 39e2f5b28c799dce6658582caf97267719d6fda0 | 1c8a69a662783b6f8554036ca3d669a50c906b16 | refs/heads/main | 2023-07-08T04:32:56.416391 | 2021-08-16T00:41:45 | 2021-08-16T00:41:45 | 392,786,994 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,817 | r | Prep_tabls.R | # Code to set up the SEPH table data frames and save them as rds files
# July 30, 2021.
# Make sure the working directory is where the Table_specs.R file is
setwd("/Users/philipsmith/Documents/R/SEPHbrowser")
savespot <- "/Users/philipsmith/Documents/R/SEPHbrowser/"
pkgs <- c("cansim","tidyverse","stringr","gt","rli... |
89922646e7f55a0937781685821f6bf258c25fe8 | f619a650c5334aed2de4a47329d69e1a24426376 | /man/delta.many2.Rd | d2fbc01b1f07170414a1c16a9953d5b77a6d0b93 | [] | no_license | svanbelle/multiagree | 449eba2e0ecaa8c08699ceaa2fdc07f1fdbdf720 | e39cbbfbb26aabcbbf2ef1826e2b28d875843b52 | refs/heads/master | 2023-02-07T20:50:20.527141 | 2023-01-30T14:42:08 | 2023-01-30T14:42:08 | 120,898,759 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,066 | rd | delta.many2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multiagree.R
\name{delta.many2}
\alias{delta.many2}
\title{Compare many (multilevel) Conger kappa coefficients using the delta method}
\usage{
delta.many2(data, cluster_id, nrat = c(6, 6), multilevel = T,
a.level = 0.05)
}
\arguments{
\item... |
17fcf59752a188805152ac2788d14abb66b5b624 | 13895420920703501ab66c28a3927089a2de042e | /R/print.factor.pa.R | 46d07e0c1c6903389d9e04d1fb6f001b5ae4fa0a | [] | no_license | cran/psych | 3349b3d562221bb8284c45a3cdd239f54c0348a7 | ee72f0cc2aa7c85a844e3ef63c8629096f22c35d | refs/heads/master | 2023-07-06T08:33:13.414758 | 2023-06-21T15:50:02 | 2023-06-21T15:50:02 | 17,698,795 | 43 | 42 | null | 2023-06-29T05:31:57 | 2014-03-13T05:54:20 | R | UTF-8 | R | false | false | 3,110 | r | print.factor.pa.R | "print_factor.pa" <-
function(x,digits=2,all=FALSE,cutoff=NULL,sort=FALSE,...) {
if(is.null(cutoff)) cutoff <- .3
load <- x$loadings
nitems <- dim(load)[1]
nfactors <- dim(load)[2]
loads <- data.frame(item=seq(1:nitems),cluster=rep(0,nitems),unclass(load))
if(sort) {
#first sort them into clusters
#... |
338a2cb28776ec2127055ec2f6de4df23dcf6a4e | 06907527e335f43b451ac70a658b80ed0225a4de | /man/plotNumHaplo.Rd | 419953958b13ec2dbbb4e4262feb345f0ca67c17 | [
"Apache-2.0"
] | permissive | maize-genetics/rPHG | 2903a747644961080d0086b7ba0f075228307857 | 397e404bf5eb91346ae1ca7aca8781bcf1130e67 | refs/heads/master | 2023-08-31T00:10:55.203304 | 2023-08-15T15:17:52 | 2023-08-15T15:17:52 | 198,724,611 | 4 | 0 | null | null | null | null | UTF-8 | R | false | true | 429 | rd | plotNumHaplo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats_and_visualization.R
\name{plotNumHaplo}
\alias{plotNumHaplo}
\title{Plot the number of haplotypes}
\usage{
plotNumHaplo(haploData)
}
\arguments{
\item{haploData}{The output of \code{numHaploPerRange()}}
}
\description{
This function wil... |
046a4bcca5fb71d811815fefe548da9cef8bf17b | 0083a97a02b243b2ea51f541a2f39c078ccfcde4 | /plot_fst.R | 7681c43f8628256ed48cef80bd0c4b91679a768f | [] | no_license | markravinet/CEES_workshop_2017 | 8545dfd2329a410901ce269c5fbed19e5f4ff01f | 3a47038cf384cfcb706324eb5279259ff57d1993 | refs/heads/master | 2021-08-26T03:52:13.291016 | 2017-11-21T14:08:46 | 2017-11-21T14:08:46 | 110,574,909 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 881 | r | plot_fst.R | rm(list = ls())
library(tidyverse)
# read in point data
fst <- read_delim("./house_spanish.weir.fst", delim = '\t')
fst <- rename(fst, chr = CHROM, bp = POS, fst = WEIR_AND_COCKERHAM_FST)
# plot using ggplot
a <- ggplot(fst, aes(bp/10^6, fst))
a <- a + geom_point(alpha = 0.1)
a <- a + xlab("Position (Mb)") + ylab(exp... |
2a938d673ddf984270c70a839e92a3475fbc96a7 | 6855ac1106597ae48483e129fda6510354efa2bd | /man/household_column_get.Rd | c97f7a585137d1b0c8f7e30c9fea667c9d72fc03 | [
"MIT"
] | permissive | rOpenGov/iotables | ad73aae57b410396995635d1c432744c06db32db | 91cfdbc1d29ac6fe606d3a0deecdb4c90e7016b9 | refs/heads/master | 2022-10-02T13:03:54.563374 | 2022-09-24T11:47:20 | 2022-09-24T11:47:20 | 108,267,715 | 19 | 8 | NOASSERTION | 2021-12-17T15:09:35 | 2017-10-25T12:35:47 | R | UTF-8 | R | false | true | 1,029 | rd | household_column_get.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/household_column_get.R
\name{household_column_get}
\alias{household_column_get}
\title{Return Final Household Expenditure}
\usage{
household_column_get(data_table)
}
\arguments{
\item{data_table}{A symmetric input output table, a use table or... |
6512b164b111e908c3fb0b7e028db986db88dab8 | 3d63d1ec4d25fabcb91300a205ab7a5642399c59 | /man/summarize_accuracy_metrics.Rd | 50d4037026ef229713ac7f32af979d572c57aa1f | [
"MIT"
] | permissive | silverf62/modeltime | c98e702fc0af63c814119393b7c701886d474614 | 61eed2bfc996191cb91c0416bbfeaa62587573e1 | refs/heads/master | 2023-09-02T05:50:26.266276 | 2021-10-27T15:35:32 | 2021-10-27T15:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,201 | rd | summarize_accuracy_metrics.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yardstick-metric-sets.R
\name{summarize_accuracy_metrics}
\alias{summarize_accuracy_metrics}
\title{Summarize Accuracy Metrics}
\usage{
summarize_accuracy_metrics(data, truth, estimate, metric_set)
}
\arguments{
\item{data}{A \code{data.frame... |
5f4ce77a23e0e79fed27f7d3da589c327358ba2f | 5cb35644d325f2bfca33813adf86448c27af94c6 | /plot1.R | bc1bcb62a46474cca257c0ceea2cd6d5a5a1a043 | [] | no_license | Puneetmehta91/Exploratory-Data-Analysis---Course-Project-1 | 1d483a036bd357fc21630d023ad1f4645327636e | 98959d7551fd45704eb907c7c72164f96063b45b | refs/heads/master | 2022-11-25T12:18:07.608316 | 2020-08-03T06:41:02 | 2020-08-03T06:41:02 | 284,586,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 498 | r | plot1.R | # Importing data
EPC_data = read.table("~/Desktop/Coursera/R/Course4/household_power_consumption.txt", sep = ";", header = TRUE)
View(EPC_data)
dim(EPC_data)
# Subsetting data for the given dates
EPC_sub <- subset(EPC_data,EPC_data$Date=="1/2/2007" | EPC_data$Date =="2/2/2007")
View(EPC_sub)
# Global Active Power plo... |
f00f1b071779587d4d6e5b1828418a22458b3916 | 7622e144ac5196eab93a451b7178de4097b21c3d | /man/as.sentiment.Rd | 00a3077de6f5a6d7fe3abdd6d1248f7b0c73d6fb | [] | no_license | kbenoit/sentometrics | 6ed0d4bbeddc1732528e3c6e6d9157e252de0f3f | 41a4806911da38a799b23218918935dc09ef39a6 | refs/heads/master | 2021-06-13T22:17:04.756279 | 2021-03-03T16:34:54 | 2021-03-03T16:34:54 | 171,403,511 | 1 | 0 | null | 2019-02-19T04:12:49 | 2019-02-19T04:12:49 | null | UTF-8 | R | false | true | 2,422 | rd | as.sentiment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sentiment_engines.R
\name{as.sentiment}
\alias{as.sentiment}
\title{Convert a sentiment table to a sentiment object}
\usage{
as.sentiment(s)
}
\arguments{
\item{s}{a \code{data.table} or \code{data.frame} that can be converted into a \code{se... |
ec5515d849fb3911f36096441abcef70d1a678b7 | 22703abb7c9d4277085cdddf2594fc95cece1e0e | /session-4-databases/exercises_w_solutions.R | ec122b985f106369f00635d6258ea31afa0bdc6e | [
"MIT"
] | permissive | AnnaWeronikaMatysiak/labs | 1693c16b65a75e39e246793998f0c74001184a8e | 60284789a50759289758a3ec8bf14919f6497609 | refs/heads/main | 2023-08-25T05:49:53.608652 | 2021-11-03T07:01:11 | 2021-11-03T07:01:11 | 411,560,274 | 0 | 0 | null | 2021-09-29T06:44:48 | 2021-09-29T06:44:47 | null | UTF-8 | R | false | false | 1,903 | r | exercises_w_solutions.R | pacman::p_load(tidyverse)
# Prep for exercises ------------------------------------------------------
study <- read_csv("study.csv")
names(study)
# Question 0: Write a mean function and apply it to the bmi variable ---
### Answer:
# clean data
my_mean <- function(x){
sum(x)/length(x)
}
my_vec <- c(1,2,3,4,5)
my... |
ea5e2922b3769be5daaec851e30d3de325491a2a | 29585dff702209dd446c0ab52ceea046c58e384e | /stilt/R/make.emulator.R | b443422287a49fdec09ce95e56dcc9f4615854ba | [] | 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,055 | r | make.emulator.R | make.emulator <-
function(parvec, Theta.mat, t.vec, Y.mat, X.mat, par.reg, time.reg,
beta.vec=NULL) {
# Main matrices #!+
emul <- list()
emul$Theta.mat <- Theta.mat
emul$t.vec <- t.vec
emul$Y.mat <- Y.mat
emul$X.mat <- X.mat
# Beta parameters #!+
beta.ind <- na... |
254b388ef34f86f60d411024ca17afc16b87fcd1 | 1cfa7646b67e200bcf0112872103d3c28eb3cbbe | /R/flywire_tracing.R | 662843c9097852514711f40e1176a8a39e1228f9 | [] | no_license | natverse/hemibrainr | 7e3fbf0739cbd09ba2547d9d644cd31991c3ae7a | bff971819e913d1076aac85995c87db314e07804 | refs/heads/master | 2023-09-03T20:45:19.747478 | 2023-08-31T07:13:23 | 2023-08-31T07:13:23 | 238,347,959 | 2 | 4 | null | 2022-01-25T23:05:47 | 2020-02-05T02:02:42 | R | UTF-8 | R | false | false | 48,109 | r | flywire_tracing.R | # lineage google sheets
#' @title Retrieve or go to a specific google sheet describing flywire neurons.
#'
#' @description These functions can help you
#' either go to or read the right tab (\code{flywire_tracing_sheet}) on a large google sheet, or read the whole sheet and all of its tabs ((\code{flywire_tracing_sheet... |
70a5db77a95fc819f3bf9e539e67a62ed59a2365 | 08fb381e3c7d4e84ced057f8785ac2007f5cb74b | /run_analysis.R | 97da53e9be6371050c2d64d2775505e9366cf5bc | [] | no_license | MelanieBergeron/coursera-getting-cleaning-data | 5f138cafe3e0e8736ab6f13d5ce696b0e6cd3abe | 28502d108df931727a381f5ede86949a1e88858b | refs/heads/master | 2016-08-12T17:07:41.473037 | 2015-10-22T01:11:23 | 2015-10-22T01:11:23 | 43,786,883 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 580 | r | run_analysis.R | run_analysis <- function() {
library(dplyr)
train_x <- read.table("UCI HAR Dataset/train/X_train.txt")
train_y <- read.table("UCI HAR Dataset/train/y_train.txt")
train_subject <- read.table("UCI HAR Dataset/train/subject_train.txt")
train_data <- cbind(train_x, train_y, train_subject)
test_x <- read.table(... |
e0d89ba34f91141d3c17b1c10a964ad6bdb859fe | 7f281671e06d9a44398f3591f8f84558bfe402f5 | /server.R | a9c3873577e8d10560c73dce20b53ea13165aedf | [] | no_license | RobbertHardin/DevelopingDataProducts | 418e4b5828a19dc7939acd175026950f128314c3 | e5f2821d9e24c0047befb21f423e68144872048a | refs/heads/master | 2021-01-10T16:14:23.806565 | 2016-02-14T16:34:13 | 2016-02-14T16:34:13 | 51,702,539 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,282 | r | server.R | subject_distance <- function(near_distance,
far_distance){
round(2*near_distance*far_distance/(near_distance + far_distance), 1)
}
aperture <- function(focal_length,
circle_of_confusion,
near_distance,
far_distance){
ap... |
9e03eb55d4ed16bba363b53cadf3df58a6031e2c | a2eb2b22ade75b14880911654665c6b3e389bb40 | /man/Age.Rd | a916d7c08c40b2f4473f3dc9f514412a0d960afa | [] | no_license | minceb/Stats2Labs | bbb4eaafb2dbe7ae86fa13b6f93a8f227133bba5 | b35d1172ea3b7fa24fcfd030e251bb67f152dc4d | refs/heads/master | 2023-03-28T03:42:09.905966 | 2021-03-24T22:16:12 | 2021-03-24T22:16:12 | 329,954,096 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 674 | rd | Age.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/C1.R
\docType{data}
\name{Age}
\alias{Age}
\title{Chapter 1 Age data}
\format{
A data frame with 10 rows and two columns (age and layoff)
}
\usage{
Age
}
\description{
This data comes from a lawsuit involving Robert Martin and the company he ... |
d0e760599a9127dc4ddc6983c510ba82b2a1dcde | 892f81809d08f4901fc90a7301514bb8b5d8bb36 | /R/upsetplot.R | c7a164e7e028671fdc27e338bef4aa203a012a4b | [] | no_license | GuangchuangYu/enrichplot | 97cf95f43f7974f69b71dfd791fbe3648496997e | d11b60bb6e9bc52dade57df5578b65e2522aa5d2 | refs/heads/master | 2021-12-02T12:22:30.107839 | 2021-08-28T08:19:14 | 2021-08-28T08:19:14 | 111,790,417 | 29 | 14 | null | null | null | null | UTF-8 | R | false | false | 2,608 | r | upsetplot.R | ##' upsetplot
##'
##'
##' @rdname upsetplot-methods
##' @aliases upsetplot,enrichResult,ANY-method
##' @param n number of categories to be plotted
##' @author Guangchuang Yu
##' @exportMethod upsetplot
##' @examples
##' require(DOSE)
##' data(geneList)
##' de=names(geneList)[1:100]
##' x <- enrichDO(de)
##' upsetplot(x... |
2231a9a0b76d2f2dfd05411d8d5b6b7cba3c3dd6 | 3cfa8a29d52ee4d79b70c3e4e2ef669ae6c27829 | /legacy_scripts/1_game_1_kick_1_goal.R | dcac6604463a36a67815a29bbe54a39ab8a90fab | [] | no_license | liam-crow/AFL_scripts | 8fe352ad5b899edee11d61fc874bef30403dd55a | 4787d28e1a86325c7a83d19cdfe298b251100671 | refs/heads/master | 2022-08-21T05:12:48.341377 | 2022-08-17T14:49:00 | 2022-08-17T14:49:00 | 219,985,329 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 479 | r | 1_game_1_kick_1_goal.R |
library(dplyr)
library(tidyr)
library(lubridate)
library(snakecase)
library(stringr)
library(fitzRoy)
source("load_afltables.R")
afltables %>%
select(date, id, first_name, surname, playing_for, goals, kicks) %>%
group_by(id, first_name, surname, playing_for) %>%
arrange(date) %>%
mutate(games_clu... |
56aa256cad768f48723c2dbb15bac1498279fa62 | 0dab8d6bba0e6e26fb08b00ba5cc15b99546c726 | /man/plotGroup.Rd | dd71b4ad9ef67511ccbaa0008ecf283715e00ab1 | [] | no_license | fpsanz/gcProfileMakeR | ec131408f5c01be249fe26417394928f814b6e4a | 7808103b2a8a02d9ebf23c23035095c7e0a242f7 | refs/heads/master | 2021-06-21T08:55:45.302181 | 2021-03-29T12:22:04 | 2021-03-29T12:22:04 | 200,673,600 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,357 | rd | plotGroup.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotGroup.R
\name{plotGroup}
\alias{plotGroup}
\title{plotGroup}
\usage{
plotGroup(data, compoundType = "profile", maxBars = NA)
}
\arguments{
\item{data}{Output object from getGroups() function}
\item{compoundType}{Set of compounds to be pl... |
de26d9f3b75238fb74d65f94094244a5c9890b09 | 41636e7aa6b11190150c68bfce5327921672b745 | /.Rprofile | 4a71bb9254323d8ea3cf7f936e83adfb50eebdfa | [] | no_license | jcvdav/recovery_time | 06dc1b45d398f3aa31ea0bde84b63af90c3d5d27 | e1dd71b0853636401f244ff6b8903fdaba80d2cc | refs/heads/master | 2023-06-08T08:08:37.726684 | 2023-06-05T18:05:33 | 2023-06-05T18:05:33 | 196,472,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 152 | rprofile | .Rprofile | # source("renv/activate.R")
source("scripts/01_functions/grow.R")
source("scripts/01_functions/sim_mhw.R")
source("scripts/01_functions/sim_reserve.R")
|
2a67622ac8cb8db4017c0db4fe1d65c06efed7c9 | c85471f60e9d5c462de6c60c880d05898ec81411 | /cache/wvictor14|tidytuesday|week27_soccer.R | b16a30359a1470eb32ae1ed39f3323931a806a7c | [
"CC-BY-4.0",
"MIT"
] | permissive | a-rosenberg/github-content-scraper | 2416d644ea58403beacba33349ee127e4eb42afe | ed3340610a20bb3bd569f5e19db56008365e7ffa | refs/heads/master | 2020-09-06T08:34:58.186945 | 2019-11-15T05:14:37 | 2019-11-15T05:14:37 | 220,376,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,809 | r | wvictor14|tidytuesday|week27_soccer.R | ## ------------------------------------------------------------------------
library(tidyverse)
library(RColorBrewer)
library(LaCroixColoR)
library(extrafont)
# Read in data
wwc_outcomes <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-07-09/wwc_outcomes.csv")
squa... |
386be9440abedad7fb23fde03f7b0a0901863ba5 | 8e5be801fa768016f58224275192e5c70c2558e1 | /man/check_dates.Rd | 17e2129cb69ac84858d0e91f744b888dd148ee56 | [] | no_license | bilnash/CSE | 4dec2329b55fdb81e966934dde36c4e2367ce2ef | 9e4170bccc2334bb5ff7e3c72a786eb763caf127 | refs/heads/master | 2023-08-05T14:36:29.639279 | 2021-09-29T19:53:31 | 2021-09-29T19:53:31 | 297,733,860 | 4 | 0 | null | null | null | null | UTF-8 | R | false | true | 585 | rd | check_dates.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_dates.R
\name{check_dates}
\alias{check_dates}
\title{Check Dates}
\usage{
check_dates(from, to)
}
\arguments{
\item{from}{String specifying the start date. Format: YYYY MM DD (any separator)}
\item{to}{String specifying the end date. ... |
174b683938958eca0945bb28e291653650689828 | 23617caf7005786cd089b7f73f7da604b5ae3d6f | /man/is.lex_data.Rd | 9514cfdb010cbf28730b481be0d1254fb68556b4 | [] | no_license | poissonconsulting/lexr | bedc665d09be4856a92a982d3cd912af5975a025 | 8d6cdd07af61a2ef7b8bf635500ecccb52700e92 | refs/heads/master | 2021-07-19T13:11:13.160924 | 2021-02-16T20:37:35 | 2021-02-16T20:37:35 | 48,457,451 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 290 | rd | is.lex_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is.R
\name{is.lex_data}
\alias{is.lex_data}
\title{Is Lex Data}
\usage{
is.lex_data(x)
}
\arguments{
\item{x}{The object to test}
}
\value{
A flag indicating whether x is lex data.
}
\description{
Is Lex Data
}
|
466e95118ed36da2b31d1bb6f9e5ca93840bc57c | 23fb0e03f0e26d0aaa9c7eb57b12a5dcc89425be | /inst/doc/mclust.R | dbeb9a5d2dd5c6bf75d8fd8a8a2f78f780733a35 | [] | no_license | cran/condvis2 | 346862ba0b6d03b20a9aecba51d3f49af672c404 | 72d447e9d1d2dac7e7337506e5555ecccddc53f7 | refs/heads/master | 2022-10-01T02:47:25.885402 | 2022-09-14T12:30:02 | 2022-09-14T12:30:02 | 236,575,067 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,666 | r | mclust.R | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.width=5, fig.height=5 ,fig.align="center"
)
fpath <- ""
## -----------------------------------------------------------------------------
library(condvis2)
library(mclust)
... |
384d547d84787f2bae19bbf129b6e895d2f40060 | d2ffbcaee3c7ff9abf26ebc08a7fd535e058dc25 | /Mode_Benchmark/submit.r | a77c86efe252fedbd7773e7729347abbbfe0560b | [
"MIT"
] | permissive | aayush26/Integer_Sequence_Learning | 82ea008823c652651bc7235d0f80f7eb88201e15 | 06121529f4947c29580b30078d14955f9ccd46b6 | refs/heads/master | 2020-04-02T05:24:29.465532 | 2016-06-10T01:50:08 | 2016-06-10T01:50:08 | 60,818,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 588 | r | submit.r | library(dplyr)
options(scipen=999)
Mode <- function(x){
ux <- unique(x)
return(ux[which.max(tabulate(match(x, ux)))])
}
parse <- function(str){
return(as.numeric(strsplit(str, split=",")[[1]]))
}
test = read.csv("test.csv", stringsAsFactors=FALSE)
# print(head(test))
# for(i in 1:nrow(test)){
# print(test$Sequen... |
3ca3bcd16d6b52dd455141397c478bb690e58b7e | 69c1617dde52c2ffb483737b857fa94a99d97126 | /Formatting for Satscan.R | d9c57251dffc89cb769ea54b148099b14d970683 | [] | no_license | EllieSherrardSmith/Trachoma | 979ffa42567ea467b06f34c9734ce27e4b5f465c | 265d48d807a8364307eb1929fc72eb962931dbd1 | refs/heads/master | 2020-04-19T05:48:49.785325 | 2015-05-20T15:35:36 | 2015-05-20T15:35:36 | 35,602,026 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,516 | r | Formatting for Satscan.R | ###################################
##
## REFORMATING FOR SATSCAN
##
## Load the data
library(foreign)
library(plyr)
library(rgdal)
library(MASS)
data_points <- read.dta("C:\\Users\\Ellie\\Documents\\RStudioProjects\\Trachoma\\Data\\20150514 Individual level Clean data with RFs for Ellie.dta") ##ensure xy are first... |
d483b9f019ffb85771929ca83869b4c8f6a8f894 | 7fdf1439039bf8e8f7c2c47b8bf6f5301aaae12d | /model_trying.R | dbdef40498c76e0333db3afc046ff0b116032e3a | [] | no_license | mhlarusso/Summer-Practicum | 99bdce14157323e7df752621415239dab7bc3f0a | 9e31f18b9513a39fec04e12ede1e5cfb8526fa3e | refs/heads/main | 2023-06-29T07:13:22.758120 | 2021-07-27T17:06:13 | 2021-07-27T17:06:13 | 390,031,071 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,261 | r | model_trying.R |
#full
logit <- glm(default ~ collections_12_mths_ex_med + delinq_2yrs + dti +
earliest_cr_line_month + earliest_cr_line_year + inq_last_6mths +
open_acc + pub_rec + revol_bal + revol_util + total_acc + verification_status +
addr_state + annual_inc + emp_length + home... |
96ccc7b7c58bbde53867c79fa0eba69c766c0548 | 0cff50065d26a7ea4c01117af5f79043278217ab | /latex/_index/_make_index.R | 38410af1373871bcf33fbf86a45270071d9ba797 | [] | no_license | fatelist82/basic | 3fa4b900896486ccb68fe6234cc7170f9bc06eae | b35f6fb7ae2308af162b026226796c81850cd2ff | refs/heads/master | 2023-06-02T20:11:41.507850 | 2021-06-17T08:30:10 | 2021-06-17T08:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,042 | r | _make_index.R | # en ----
library(dplyr)
library(readxl)
raw_index <- read_excel('_index/index.xlsx') %>%
print()
#index_cmd_en <- raw_index %>%
# filter(en_commit == 0) %>%
# mutate(cmd = sprintf("grep -rl '%s' ./*.Rmd | xargs sed -i '/%s/ s/$/\\\\index{%s \\/ %s}/' ",
# en_raw, en_raw, en_official, k... |
0a6a248b21aa376809a9fae8274f8a23c659c931 | 1dfec10ac8e51f63947f35ae42bbfead6ed8ce4c | /Walmart_Trip_Type/scripts/xgboost_single.R | bab2c71d711e4dd147f01b6b08a3fccd712cf422 | [] | no_license | jothiprakash/Kaggle_Challenges | 6f84109e5523d2afbe7eca678565be80985fb8e1 | e5d5f815b0b52ecd5b3157596387d2184613dd8f | refs/heads/master | 2021-08-23T02:22:21.383158 | 2017-12-02T13:40:39 | 2017-12-02T13:40:39 | 110,996,753 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,764 | r | xgboost_single.R | setwd("D:/Git/Useful Repos/Walmart_TripType_Classification_raj2014")
#Single Xgboost Checks
library(xgboost)
library(data.table)
#Read train and testset from feature vectors
train_matrix<-read.csv(file="featureVectors/train_matrix.csv",
header=TRUE)
trainCluster<-read.csv(file="featureVectors/t... |
0309be4cc9493e9159834a8783b34f619049500b | 12499f173ba030d444d11e3884c0bb538f8a136c | /man/cemtpm.Rd | bddb0ff9d985808768b368a25801b338903fc111 | [
"Apache-2.0"
] | permissive | StanWijn/cemtool | 7ff5b451fa689f44fb2f41e5aba2271793ad1fb5 | 8d7e277c7f5a263d28407a57c5fb81b16f4ce95a | refs/heads/master | 2020-05-29T14:03:27.703471 | 2020-04-07T09:36:24 | 2020-04-07T09:36:24 | 189,181,805 | 1 | 0 | null | 2020-04-07T09:36:25 | 2019-05-29T08:18:40 | HTML | UTF-8 | R | false | true | 3,766 | rd | cemtpm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cemprob.R
\name{cemtpm}
\alias{cemtpm}
\title{OPTIONAL: Third step of the cemtool: Alter the transition probability matrix}
\usage{
cemtpm(HS = cemtool.env$HS, HS1 = cemtool.env$HS1,
HS2 = cemtool.env$HS2, HS3 = cemtool.env$HS3,
HS4 = cem... |
eaa45a6a7426d1544608e0f6a75d1625358893d5 | ee0689132c92cf0ea3e82c65b20f85a2d6127bb8 | /96-mtcars/16b-mtcars-cluster1.R | 223f5355b81ccf7a9307601007335c9d25ea9737 | [] | no_license | DUanalytics/rAnalytics | f98d34d324e1611c8c0924fbd499a5fdac0e0911 | 07242250a702631c0d6a31d3ad8568daf9256099 | refs/heads/master | 2023-08-08T14:48:13.210501 | 2023-07-30T12:27:26 | 2023-07-30T12:27:26 | 201,704,509 | 203 | 29 | null | null | null | null | UTF-8 | R | false | false | 903 | r | 16b-mtcars-cluster1.R | #Clustering on mtcars
head(mtcars)
#kmeans - select only few column to group them
df = mtcars[, c('mpg', 'cyl', 'wt')]
head(df)
km3 = kmeans(df, centers=3)
km3
km3$centers #average of each cluster
km3$size #how many into each cluster
#Plotting Clusters
library(cluster)
library(fpc)
plotcluster(df, km3$cluster)
... |
35759e1493301a1053ed09855fd07f2b0f798811 | 2d5461cbc4d27a4fbbbcb24d38b23b9cca128cfe | /LeafletApp/server.R | ef11f659ed90855da90965ba30dc4e6b4ce9e16d | [] | no_license | delanst/AssigmentMarkdownLeaflet | f1b5c71a63d0b2fed29b75ae176b70387d537a08 | 7129dd06eda9f2f2894d84326defd640a7582b5f | refs/heads/master | 2021-01-17T18:14:19.621847 | 2016-10-19T14:45:17 | 2016-10-19T14:45:17 | 71,272,468 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 759 | r | server.R | library(shiny)
library(leaflet)
library(plyr)
airports <- read.csv("be-airports.csv", header = T)
shinyServer(function(input, output) {
airportNames <- c("longitude_deg", "latitude_deg", "name")
col.num <- which(colnames(airports) %in% airportNames)
airportMarkers <- data.frame(airports[,col.num])
... |
0045907a6dc395d39b56a89b18ccf1529fda245f | 5d4a3cd2b852da7134631c2540b4f500bb1baa13 | /electricity/elecAux.R | 327261193daa2fe66a5ac18e30cd90aff2b451dc | [] | no_license | NTomasetti/UVB | 23b46b1f659ef54f7b5925ce5f9822ec032b79bf | 0bcfaa41f2b2468aa601ae2df214afb9100c570b | refs/heads/master | 2020-03-09T16:13:49.763912 | 2018-10-05T01:54:09 | 2018-10-05T01:54:09 | 128,879,286 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,848 | r | elecAux.R | updatePrior <- function(fit, var, switch, K, dim){
# Calculate updated priors for theta parameters
if(var){
updateMean <- updateSd <- array(0, dim = c(dim, 48, K + switch))
updateLinv <- array(0, dim = c(48, 48, K * (dim + switch)))
updateL <- array(0, dim = c(4, 2, K))
if(switch){
updateMean[... |
e631feaae574a1b7b72056d76c3540425b1f6584 | 48aea1547fb612b127d5b5def716d48398236159 | /inst/analysis/MGAB.analysis.colon/scripts/bulkAnalysis.C.R | 647a9b3753ca57d30ddd1fefe134edd2ab430dcd | [] | no_license | jasonserviss/CIMseq.testing | 6a1951a5d1cd53a22704df631138050bc4e057c6 | 7039f9b52fb9280bb811662aa19d4fe7f7bf8398 | refs/heads/master | 2021-03-30T17:46:24.443721 | 2020-01-27T09:55:25 | 2020-01-27T09:55:25 | 76,064,214 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,659 | r | bulkAnalysis.C.R | #PACKAGES
packages <- c("CIMseq", "CIMseq.data", "tidyverse", "future.apply", "pso")
purrr::walk(packages, library, character.only = TRUE)
rm(packages)
currPath <- getwd()
#FUNCTIONS
#Calculates counts per million
cpm <- CIMseq:::.norm.counts
#Calculates the mean expression of each gene in each class
averageGroupExp... |
d55805b454694dfce11218bf8eb18e2ca8740dcf | ddd877e4cf2df00596dbcd4c01411b48ebf6da3c | /1_data_and_scripts/Fig3_data_and_code/Fig3A/0_code_Fig3A.R | 5dbb287b80be7fb95df73e534f12a4eba579992b | [
"MIT"
] | permissive | PLeeLab/methane_oxidation_genetic_trait | 5b5ee719d82df2316de0fdfdfca6281094748fd4 | 0d76cf1276d6a26f95ce930dad1cb2955bacc976 | refs/heads/master | 2020-04-10T20:42:34.643222 | 2019-07-25T07:59:57 | 2019-07-25T07:59:57 | 161,276,280 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,850 | r | 0_code_Fig3A.R | #install.packages("gplots")
#install.packages("RColorBrewer")
library("gplots")
library("RColorBrewer")
#library("ggplot2")
trna_matrix <- as.matrix(read.delim("1_tRNA_anticodon_CH4.txt", header = TRUE, row.names = 1))
my_palette <- colorRampPalette(c("white", "#b3cde3", "#8c96c6", "#8856a7", "#810f7c"))
col_breaks ... |
4c31bd99d4eb0ed70b001698bf7653b0de897a6d | d4cabc0de77cf53a01acc4923c18b7b92f0a4a84 | /01 Data/titanicAnalysis.R | 3b05aed18cc85306195ac0d679c33114286eff2d | [] | no_license | agent509/DV_RProject1 | 81f283d7b4f6702de424955165b296a7372b93ea | 37f1bd917597bb55891540ea51c6da52a8748a74 | refs/heads/master | 2020-12-24T15:22:27.778305 | 2015-09-10T01:41:18 | 2015-09-10T01:41:18 | 42,386,647 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 410 | r | titanicAnalysis.R | query1 = '"select * from titanic where 1 = 1"'
user = 'cs329e_atn657'
pass = 'orcl_atn657'
df <- data.frame(fromJSON(getURL(URLencode(paste('129.152.144.84:5001/rest/native/?query=',query1)),httpheader=c(DB='jdbc:oracle:thin:@sayonara.microlab.cs.utexas.edu:1521:orcl', USER=paste('C##',user), PASS=pass, MODE='native_m... |
feb54d4e614367ec970cef978db5a386e167da9d | 8edf7d31c755bc1fd81e1254c80be025c5306980 | /.Rprofile | d0d235511344b693f1f9d0c6c6e80be968c1217c | [] | no_license | yahiaelgamal/dotfiles | 282160ecdbd51c236b9b3bf77c4f76e0e7c63d5a | a1b682eb5fd2c725bd6a3d1b253f0f2c8fd3e7c1 | refs/heads/master | 2023-06-07T04:29:47.122842 | 2023-06-05T21:39:21 | 2023-06-05T21:39:32 | 67,951,847 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 348 | rprofile | .Rprofile | library(stats) # to avoid it masking anything
options(max.print=1000) # maximum character to print
#source('~/dotfiles/common.R')
#install.packages("ggvis", dependencies=TRUE, repos='http://cran.rstudio.com/')
#library(devtools)
#install_github("ggobi/ggally")
#
#
library(readr)
library(dplyr)
library(ggplot2)
libra... |
311d20e6914fef92ceeff2533e2676bd6bdf6564 | 3abfe1b48cf5edebfd581909097ce796da92c007 | /man/diffDistTruckCarBatch.Rd | 0f449d883db467b83545d9f65f7db36b46042c05 | [
"MIT"
] | permissive | jersme/connectHERE | 6049bb30da5b6d635943e6fa3775cfac3308b9c5 | f7427f182c8d2045bce29cc20acf9df405be737e | refs/heads/master | 2020-04-10T09:25:08.866481 | 2018-12-21T10:48:31 | 2018-12-21T10:48:31 | 160,935,702 | 0 | 0 | NOASSERTION | 2018-12-21T10:48:31 | 2018-12-08T12:12:14 | R | UTF-8 | R | false | true | 1,343 | rd | diffDistTruckCarBatch.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getRoutes.R
\name{diffDistTruckCarBatch}
\alias{diffDistTruckCarBatch}
\title{Batch input (data.frame) for the diffDistTruckCar() function.}
\usage{
diffDistTruckCarBatch(url = setURL(type = "routing"), app_id, app_code,
df, waypoint0 = "wa... |
308c709cceb11805fdbc0f98ef58d053c5c584d7 | fc7476839b870e69aae46279615684dd1f0e5e85 | /man/ClosedNetwork.Rd | 7bccb3502a01ef813c0397ddf7aeaf397ed57edd | [] | no_license | vishkey/arqas | 194f472cc08fa21bdccde31ddf2639105eef995e | 85ec37540fd008229adb662e1a1b5adf4d48f212 | refs/heads/master | 2020-03-31T08:35:35.711433 | 2015-09-16T15:54:08 | 2015-09-16T15:54:08 | 14,345,407 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,438 | rd | ClosedNetwork.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/5_SimulateModels.R
\name{ClosedNetwork}
\alias{ClosedNetwork}
\title{Obtains the main characteristics of a Closed Network model by simulation}
\usage{
ClosedNetwork(serviceDistribution = c(Exp(5), Exp(5), Exp(10), Exp(15)),
s = c(2,... |
9a815d31b4b976bcd6887de4df1f4eeb43c94fe8 | a77ec80fa67a70de127469941a6a59cfadeb234b | /full_join_n_function.R | 8519e60f570de83cbc8f71f0482e17e77105a96f | [] | no_license | MalcolmMashig/cavalytics-comp | 0108b82e90f3e52cc047d623e12e690bcdb9f68e | 5398bf9a2ed7472649fc956657a10469ca4756aa | refs/heads/master | 2020-04-24T17:15:28.354295 | 2019-03-11T21:57:50 | 2019-03-11T21:57:50 | 172,140,442 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 474 | r | full_join_n_function.R | full_join_n <- function(a, b, c, d, e, f, g, h, i, j) {
merge1 <- full_join(a, b)
merge2 <- full_join(c, d)
merge3 <- full_join(e, f)
merge4 <- full_join(g, h)
merge5 <- full_join(i, j)
merge6 <- full_join(merge1, merge2)
merge7 <- full_join(merge3, merge4)
merge8 <- full_join(merge6, merge7)
merge9 <... |
fa168e6d0d7e36c16be5a2684b0a90d491067343 | 67214bbd451824ab2eebfd91e20f3025097dfe1a | /figurecode.R | cb1511bc002078115fc7227b35b91b902ea7b5fe | [] | no_license | wxl1379457192/Vaccine-NPIs-in-Europe | 10940bf279783909bf8770056e3692ea8f495b20 | dede27c91e6d1fdafa5b315cbbc0330dd0bd6c8c | refs/heads/main | 2023-09-02T20:58:36.640879 | 2021-10-25T11:28:23 | 2021-10-25T11:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 32,907 | r | figurecode.R |
fig1a1plot<-function(DatasetV2,figpath){
D<-subset(DatasetV2,DatasetV2$Date>="2020-08-01")
D<-D[,c("Date","iso_code","New_cases_smoothed")]
D$id<-1:nrow(D)
angle<-90-360*(D$id-0.5)/nrow(D)
basean <- do.call(rbind,lapply(split(D,D$iso_code),FUN = function(v){
f<-data.frame(start=min(v$id),end=max(v... |
f15a79373fa290a8f94a17c4c16cf172fce2258d | 5de2c79ff0444d490db7b558f126592e66a61e41 | /Script/00_import_dataset.R | 6ad373dfd61be2681ab75defedfd2b23a37a0103 | [
"MIT"
] | permissive | Data815/background_music | 54c7d3323128af7b85c176a46b233772c144c43e | e4b77785a3851b8988daa0dc1432860696d2d66e | refs/heads/main | 2023-04-08T21:50:43.081175 | 2021-04-25T05:23:36 | 2021-04-25T05:23:36 | 360,655,229 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 987 | r | 00_import_dataset.R | #### Preamble ####
# Purpose: Import raw datasets from OSF
# Author: Hong Pan
# Date: "`r format(Sys.time(), '%d %B %Y')`"
# Contact: hong.pan@mail.utoronto.ca
# License: MIT
# Pre-requisites:
#-install.packages("osfr")
#### Workspace setup ####
library(osfr)
library(readxl)
#### Get Data ####
project<- osf_retr... |
8515ddd29c6af7f45feae837defa5ddd4b18459d | 651fc2884e1c6210b9c3e57dba7ed9b4dab0f903 | /lecture_slides/FRE7241_HW1.R | 17323e96633a035a95b5b3333139ff4190d59554 | [] | no_license | fdoperezi/lecture_slides | da38e909f792e8fd417c833437f2df73473b6a58 | 64a2d38793cbe38f6101a34a18057042c1b61a08 | refs/heads/master | 2020-11-30T14:07:39.344412 | 2016-06-23T20:31:55 | 2016-06-23T20:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,660 | r | FRE7241_HW1.R | #################################
### FRE7241 HW #1 due Sep 22, 2015
#################################
# Max score 55 pts
# Please write in this file the R code needed to perform the tasks below,
# rename it to your_name_hw1.R
# and upload the file to NYU Classes
##################################
# 1. (15pts) crea... |
80caa16149243b7d52a1223d8f66eaa52346ed26 | 7c29741d09385971c4aa3c99c90979e1b919737a | /scan_data_test.R | d2a0687a2c20bb65d2fb8b07fab6130e1068c19e | [] | no_license | brunj7/lter-climdb | 83ef95b531a721fa437afb6b6e907c43ff9ae73a | cc17b15bc013410ec4078e41ce6434184df315ca | refs/heads/master | 2020-04-28T19:24:08.719733 | 2019-03-14T22:54:00 | 2019-03-14T22:54:00 | 175,509,529 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,055 | r | scan_data_test.R | #### testing WaterML R package to extract data from CUAHSI Hydrologic Information System (HIS)
### URL: https://cran.r-project.org/web/packages/WaterML/
library(tidyverse)
library(stringr)
library(WaterML)
#get the list of supported CUAHSI HIS services
services <- GetServices()
# point to an CUAHSI HIS service and g... |
2c8b25e20b7367ddb2de6854a97ab87fde29c99f | 1a54dc14065b4469e003c5a8c32f63ee235fa57c | /R/zzz.R | 236763b50f78ee54144275896bae7a703551df37 | [] | no_license | Candlelight-XYJ/TPDAinfer | c664a7a881457b31da0ad93cbde66293f9cf796d | 6edefd168678a6cf85130a0b2f2a80b9fd45f80b | refs/heads/master | 2023-06-08T11:33:39.173841 | 2023-05-27T06:15:24 | 2023-05-27T06:15:24 | 149,766,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 320 | r | zzz.R | ##' @importFrom utils packageDescription
.onAttach <- function(libname, pkgname) {
pkgVersion <- packageDescription(pkgname, fields="Version")
msg <- paste0(pkgname, " v", pkgVersion, " ",
"For help: https://github.com/Candlelight-XYJ/", pkgname, "\n")
packageStartupMessage(paste0(msg))
}
|
400fde40df09538917753fc671ad97eaab43d36b | b219d76ddba14f29475c8daaf58cbb56d0efca69 | /R/chain.R | 2e8578621e621c8451e3f031161678ba4b21381d | [] | no_license | ajsteele/r-bioc-rtracklayer | 41ba8fcab7825fc6edf2cda4633688fa9ffcf167 | 5555a9c4265f5e18d92d873794fbc94177a45467 | refs/heads/master | 2021-01-16T21:40:31.925662 | 2013-02-14T17:04:27 | 2013-02-14T17:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,547 | r | chain.R | ### =========================================================================
### Chain file parsing and lift over
### -------------------------------------------------------------------------
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Classes
###
setClass("ChainBlock",
... |
9194e7492d57e7f01072eadfc0945121b389626e | fba4e96cf489090d460bb0792e72b3dd7bdbb0c6 | /tests/testthat/test-utils.R | d173e1cbc84a40e6707c23eb68c118d47133bf18 | [] | no_license | johnypark/R_package_zeallot | adf7fa9e3c2973a36aefd1bc29d5076d60140761 | fd62567d0a733f7b5884b62a5dabd49d58bc7819 | refs/heads/master | 2021-01-06T04:01:23.475726 | 2017-07-28T13:39:34 | 2017-07-28T13:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 716 | r | test-utils.R | context(" * testing utils")
test_that("is_Date returns TRUE for date objects", {
expect_true(is_Date(Sys.Date()))
})
test_that("is_list returns TRUE for list object", {
expect_true(is_list(list(1, 2, 3)))
})
test_that("is_list returns FALSE for S3 objects", {
sumry <- summary(lm(mpg ~ disp, data = mtcars))
e... |
1e596f7f4eb94650736ccd88b1653cdaeb5614bd | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/FSAdata/examples/WhiteGrunt2.Rd.R | 2efdf5a423ea1bf955019d2b198ee0c40c9914ba | [] | 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 | 381 | r | WhiteGrunt2.Rd.R | library(FSAdata)
### Name: WhiteGrunt2
### Title: Ages, lengths, and sexes of White Grunt.
### Aliases: WhiteGrunt2
### Keywords: datasets
### ** Examples
data(WhiteGrunt2)
str(WhiteGrunt2)
head(WhiteGrunt2)
op <- par(mfrow=c(1,2),pch=19)
plot(tl~age,data=WhiteGrunt2,subset=sex=="female",main="Female")
plot(tl~age,... |
1dc4a91bb40443ad443f037cf71c9e876636d8fe | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/SurvBoost/man/inference.boosting.Rd | 752df5055828c12bb32405fb4d4f71d0c27b8548 | [] | 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 | 684 | rd | inference.boosting.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boosting_function.R
\name{inference.boosting}
\alias{inference.boosting}
\title{Boosting inference function}
\usage{
inference.boosting(x)
}
\arguments{
\item{x}{output from boosting_core function.}
}
\description{
This function provides post... |
1ef3fbdb1fe71ab74610c37730befdf1088d7ba4 | 85f1e2e43d70a1543fadabd00f264c893b19e998 | /cachematrix.R | cbe84fd90e6044eea5c9e320d9102a1c01916d1a | [] | no_license | cpencille/ProgrammingAssignment2 | 350da8daca8e54332a0a25b9d7d47f6f1f3049f1 | f75b71d38747a06bc406b67d788dd55169121376 | refs/heads/master | 2021-01-14T14:15:34.065696 | 2016-05-28T16:19:32 | 2016-05-28T16:19:32 | 59,902,881 | 0 | 0 | null | 2016-05-28T16:06:43 | 2016-05-28T16:06:43 | null | UTF-8 | R | false | false | 1,026 | r | cachematrix.R | ## These functions will create a matrix, calculate the inverse,
## and then cache the inversed matrix
## The first function creates a matrix out of the provided data
## and then caches the inverse of that matrix
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set<-function(y){
x<<-y
... |
95d490a56341903b20d047266fd4a43838cd6415 | 936a91fcf3b844d5e3a1d1a8a4d6d0801f3457c0 | /resurants_inspection.R | 2400de03f14fd3dccd9f2dbc18ffdafa34abc87a | [] | no_license | davidjayjackson/TidyTuesday-NYC-Restaurant-Inspections | 03c80908d224af94e327dc726a1f2becf35c710b | e6c424dfd23e7447387b26d66bf777fa17b2bc7a | refs/heads/master | 2023-08-14T12:24:16.644141 | 2021-10-15T01:46:42 | 2021-10-15T01:46:42 | 415,483,053 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 496 | r | resurants_inspection.R | library(tidyverse)
library(janitor)
# library(readODS)
library(readxl)
resturants <- read_excel("./nyc_restaurantsXLS.xlsx")
janitor::clean_names(resturants)
resturants <- na.omit(resturants)
resturants$inspection_date <- lubridate::mdy(resturants$inspection_date)
resturants %>% count(boro,sort =TRUE) %>%
ggplot(ae... |
0cdb87fe81ba6b357907fcbb5f2ac7da6d31e1f2 | 9d6de760182030c39dff23d052ddd4140078e413 | /R/titrate.R | 57d0f462cefaca460acd8363a53f719e9a6183a3 | [] | no_license | cran/DTAT | 036ce83521daf7817f523c0518561eb0a6169c9b | 98b13e64d9777ce4d76674091b69f9a504fcbb40 | refs/heads/master | 2023-04-14T17:35:54.530766 | 2023-03-29T18:40:02 | 2023-03-29T18:40:02 | 171,301,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,121 | r | titrate.R | #' Perform neutrophil-guided dose titration of a chemotherapy drug.
#'
#' This is included in package DTAT mainly for archival purposes, with the aim
#' to document a reproduction of Figure 5 from the 2017 \emph{F1000Research}
#' paper (referenced below), using a clearer and more general software design
#' than is foun... |
853d30bc983c2c78e7e3ab9067071aa62d29f493 | b01299f1d8972949863b3862ac6b83da580d443f | /lib/stockquote/downloads/quantmod/R/tools.R | b83c4c32a1be03dc691283b0fb672ea4bd6aa360 | [] | no_license | neophytos-sk/phigita-star | daf170f29212f601270c8182ffb1835163485efe | dd48dc5f5768acb199c3ee2866d01efb4ef98f8a | refs/heads/master | 2021-01-25T10:21:12.039782 | 2016-02-24T09:50:28 | 2016-02-24T09:50:28 | 35,161,947 | 3 | 2 | null | 2023-03-20T11:47:34 | 2015-05-06T14:01:52 | HTML | UTF-8 | R | false | false | 302 | r | tools.R | `quantmodVersion` <- function() {
return(list(Version='0.3-7', Revision=433))
}
`quantmodNews` <- function() {
}
`quantmodChanges` <- function() {
}
`quantmodBugs` <- function() {
}
`quantmodComment` <- function() {
}
`quantmod.com` <- function() {
browseURL('http://www.quantmod.com')
}
|
5a1c6a68386e72cb750446f9020064772cd82a42 | 431b43cba515d47b21b3409c882e17371e80a02b | /R-Shiny Project.R | 489346d3c6adf2d950cc7fe3356ea0230782211c | [] | no_license | gari-sha/GapMinder-Rshiny | c7f4e40220d385d97c61e5d257bd1a9131b28993 | 3be27120e8fcdf82426a865a898e4855a835cb8c | refs/heads/master | 2021-03-16T20:55:41.879376 | 2020-05-03T01:17:40 | 2020-05-03T01:17:40 | 246,942,578 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,868 | r | R-Shiny Project.R | install.packages("gganimate")
install.packages("ggplot2")
install.packages("shiny")
install.packages("plotly")
install.packages("plyr")
install.packages("dplyr")
install.packages("shinydashboard")
library(ggplot2)
library(shiny)
library(gganimate)
library(plyr)
library(plotly)
library(dplyr)
library(shin... |
a233891112567c3246f553231b7cf4dff000b8a0 | 94adc0b1c4b2304d4fe99d90a7e6f1126d6a8795 | /inst/doc/inlineBVP/reactor_inline_2nd order.r | b8d9604dafbe86117bf38dab03c6eec70cbd6df8 | [
"Minpack"
] | permissive | karlines/ccSolve | 0cb2788e33846a09ecb1d9da2b4f5c9c5d4e26db | 60108e2451db58b6bbee62b9b9fa62486c759a53 | refs/heads/master | 2020-04-29T17:12:18.124295 | 2015-04-18T08:44:28 | 2015-04-18T08:44:28 | 33,730,033 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,149 | r | reactor_inline_2nd order.r | ## ================== tubular reactor with axial dispersion ===================
## y''=Pe(y'+Ry^n) Pe=1,R=2,n=2
## y'(0) = Pe (y(0)-1),
## y'(1)=0
##
## dy=y2
## dy2=Pe(dy-Ry^n)
##
## The initial condition y'(0) is a function of y(0)
## =============================================================================
requ... |
08330f0729c667bdaf8a6bc866d7820219179a3c | a3e7e519942e2644900110d27c3e1464e869a95a | /phackR/man/dot-out.cook.Rd | 1b8a419156db42d02273100df66140978f9bea63 | [
"MIT"
] | permissive | astefan1/phacking_compendium | 6f396d604b71be20758379d03c895ac24291890d | 630aca19603df76e869e4949a94416c3df0f651e | refs/heads/master | 2023-04-18T00:02:06.766624 | 2023-01-06T16:09:31 | 2023-01-06T16:09:31 | 179,492,751 | 9 | 3 | null | null | null | null | UTF-8 | R | false | true | 546 | rd | dot-out.cook.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outlierExclusion.R
\name{.out.cook}
\alias{.out.cook}
\title{Cook's Distance outlier definition}
\usage{
.out.cook(x, y)
}
\arguments{
\item{x}{Vector of x values (predictor in linear regression)}
\item{y}{Vector of y values (criterion in li... |
137f38025b291c8f43cfccc1e8a4b6f18f8c7244 | 37a6217e5cb8990597f833d2fd22b2fe5e422e20 | /R/bed_subtract.r | 15004b47a38190eba26fa3483a85b289597bc107 | [
"MIT"
] | permissive | rnabioco/valr | 5c03f1733a125d507500acd7cb446694259ca2e2 | 7a8a35936e2f23fe91c4c672e7e73b67d833f764 | refs/heads/main | 2023-06-22T16:26:04.207895 | 2023-06-14T20:34:58 | 2023-06-14T20:34:58 | 49,370,633 | 87 | 36 | NOASSERTION | 2023-06-14T20:34:59 | 2016-01-10T14:38:43 | R | UTF-8 | R | false | false | 2,276 | r | bed_subtract.r | #' Subtract two sets of intervals.
#'
#' Subtract `y` intervals from `x` intervals.
#'
#' @param x [ivl_df]
#' @param y [ivl_df]
#' @param any remove any `x` intervals that overlap `y`
#'
#' @template groups
#'
#' @family multiple set operations
#'
#' @seealso \url{https://bedtools.readthedocs.io/en/latest/content/tool... |
2193debcd1425bc1ba42c604f48eca4b310f4ac0 | 946ee68030584a153c39c6c99c5101b8d2cae2dc | /ModelConstruction/FAO56_dualcropcoeff.R | 6fcf06ddfa39a1f40ca0c7a9e04020d7e966f3cd | [] | no_license | dsidavis/GreenWater | 613a645fe52619185477659a0c4c8af208692f98 | 0be339d86a29af676a08e148ccfd94f61d454f75 | refs/heads/master | 2021-07-18T02:07:02.672488 | 2017-10-26T20:32:50 | 2017-10-26T20:32:50 | 107,836,376 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31,967 | r | FAO56_dualcropcoeff.R | #TO-DO:
#1. Re-run all 30% and 80% allowable depletion scenarios because of correction of KsCalc function.
#2. Correct Ei and Ep functions such that TEW cannot be exceeded by Dei or Dep, respectively, in the upper layer [DONE].
#3. Re-run all almond and walnut scenarios, since model codes were changed when t... |
887b66c61fc160e8a2c3eb52978b34e20c1a07ec | 282ac16ff6949a187f0d56249c61a5d947fe6cd1 | /R/ggmanhattan.R | 9dc8cc25cece36caeaf10ba0709b01a76d6c8f8f | [
"MIT"
] | permissive | MoisesExpositoAlonso/genemaps | 7d34baa05299131c467b9327a5917c991308bcf8 | eb4ae3dd247e682a60b92c6fae748ee5a75dc0b4 | refs/heads/master | 2021-12-14T02:10:01.680107 | 2021-12-06T21:50:18 | 2021-12-06T21:50:18 | 225,255,931 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 10,648 | r | ggmanhattan.R |
#' Quick scatter plot with points colored by a 3rd variable
#'
#' @param df data frame with the data to be plotted
#' @param chr.col the name of the column where the chromosome numer is found
#' @param pos.col the name of the column where the position of the SNP is found
#' @param stat.col the name of the column to be... |
1498da3ee47fe033944015f1f99f06bf5634989e | e5e1d23548035c232f85ffa1cb82b26a2e854770 | /FinalProject/fish_supp.R | f7811ede6e0964bd898e1dd423fda8a1750143e3 | [] | no_license | erarsena/Arsenault_dcei | 306d6932b18cbefe92c4b6deca47c70b3b80f60c | 5885a28371ab71a6b0820f04f5b2e59af97e60f5 | refs/heads/master | 2021-04-27T21:12:28.342096 | 2018-05-06T21:28:58 | 2018-05-06T21:28:58 | 122,395,954 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 296 | r | fish_supp.R | fish_supp <- function(fish) {
species <- levels(fish$species)
count <- vector(mode = "numeric")
for(i in species) {
count[i] <- nrow(fish[fish$species==i,])
}
fishsupp <- data.frame(species, count, row.names = NULL)
colnames(fishsupp) <- c("Species", "Count")
return(fishsupp)
} |
ef575c34341468398ed92b0782f881f07e26e8a0 | e0a7544fd06aa2908dabfef0c565a6743b23d307 | /Analysis_example_challenge.R | 032b7ee201762aeed2845d9583857e355c79710b | [] | no_license | sprocketsullivan/BoxStorre | 136c14eb34ea572d78cd906eb4b05f5eee28e201 | f95a6bd43493ab3a93d076e90f94f5324b2c4d57 | refs/heads/master | 2020-03-28T23:18:37.057591 | 2018-09-19T12:17:45 | 2018-09-19T12:17:45 | 149,285,689 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 487 | r | Analysis_example_challenge.R | library(knitr)
library(tidyverse)
library(httr)
library(oai)
library(xml2)
#this reads in the data frame from an osf project
my_data<-read.csv("https://osf.io/4zbx2/download")
#calculate the mean Brain Volume size and sd for each gender
#plotting
#create two boxplots for brain volume for males and females
#calc... |
afe2b160442676e25b2ed4c8dcba1ee803766b2f | d7ccf7e70ad18a68b788e9bfe485bfd9c332b1ef | /test/huge/Books/1_6QOAJJ/18_6897GH.rd | bbf4f2bb50233fb39870a956b5fc02d972c1e018 | [
"MIT"
] | permissive | lsp-implementaions/rel | d47ae4f618ee730bea659bab0349cef50f04ed6f | d9e6815012334dfc4c99b8020ae42a9ca9860458 | refs/heads/main | 2023-04-03T10:46:15.484422 | 2021-04-16T18:18:57 | 2021-04-16T18:18:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,150,862 | rd | 18_6897GH.rd | SystemRequirement {
Identifier : uid34571,
Text : "62M2WN6TRCVAKGTH444H8K2NWMNQ5ZRME607VJ4INUOCEY82VX8EGAFURTYHG9W0QA4Z0SXZQBYJASG10M6W78ASGKAL0GHRY8OVWLJBEG5AZWMMG1MY6KET64MXJBDWEH0NJS2Y1HS78BTU8J10LTNK7NS7FB8CFOPC2WNCHYZZOD6OMBRP3ITV6EKAMLDK1G6XJB87HUI4IAL8WG5SEUB30AR9I04NALYKBK8C332S6TKBXA939QXJD256ECB8RH3BXJKCC... |
f5a0f39a38e409f70487c751fb66b939281150fb | 387df2ef56aec161c1d835fe9dec44c265c8698d | /man/data_type_long.Rd | d377adef041ae8d3adcd1a4934f1eb27754128c3 | [
"MIT"
] | permissive | Azure/azureml-sdk-for-r | 072d4e72ad7667a848fc61d50655f7632b6c69cf | 19301e106c0cec69dac0931e98af7e3f713b7bf7 | refs/heads/master | 2023-08-16T16:01:25.257198 | 2022-09-14T16:35:20 | 2022-09-14T16:35:20 | 199,087,253 | 102 | 47 | NOASSERTION | 2022-07-25T19:03:47 | 2019-07-26T22:29:14 | R | UTF-8 | R | false | true | 302 | rd | data_type_long.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\name{data_type_long}
\alias{data_type_long}
\title{Configure conversion to 64-bit integer.}
\usage{
data_type_long()
}
\value{
Converted DataType object.
}
\description{
Configure conversion to 64-bit integer.
}
|
65504e32ae3e3da35b8a6127c60c94ed0859e189 | cafcb617a5f9b5914362b0dea9c29a247532ee9f | /man/LIHC.Rd | 0aa442a251dd7d3555e0ed478af632780d1acc63 | [] | no_license | huzheng16/curatedTCGAData | 454f30ff72319aaa4e076e7655f6fd5ae86bd855 | 9b6fff665847ad1993c21ce620d720d092aec3be | refs/heads/master | 2020-03-16T17:20:04.105530 | 2017-10-18T20:06:26 | 2017-10-18T20:06:26 | 132,827,245 | 1 | 0 | null | 2018-05-10T00:28:55 | 2018-05-10T00:28:55 | null | UTF-8 | R | false | false | 157,846 | rd | LIHC.Rd | \name{ LIHC }
\alias{ LIHC }
\docType{data}
\title{ Liver hepatocellular carcinoma }
\description{
A document describing the TCGA cancer code
}
\details{
\preformatted{
> experiments( LIHC )
ExperimentList class object of length 10:
[1] CNASNP-20160128: RaggedExperiment with 363628 rows and 760 columns
[2] CNVSNP-... |
a43b3462824bb1bffa52f2a7d3668e05ab3772f5 | 7b3389755018027cfc74b86bddbb62fdcb1f0ef1 | /Week 1 - Clustering/plotClusters.R | bbb4b1d837dc4825d8702fea2c6fc48d136dd3b5 | [] | no_license | Merlijn-van-Breugel/Machine-Learning | 81d3eb96c375ad5bfc3c61ae24ec80d15bad86d2 | e110a44ea8ae77051adabf3f905a68147670a9bf | refs/heads/master | 2021-01-12T11:44:00.632472 | 2016-12-20T10:39:09 | 2016-12-20T10:39:09 | 72,281,785 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,260 | r | plotClusters.R | #Loop over number of iterations
plotClusters <- function(objectscores,centroids,clusters,plotcentroids.YN,labels){
dfplot <- as.data.frame(cbind(objectscores,clusters))
if (plotcentroids.YN==TRUE){
#Make centroids
conf.rgn <- as.data.frame(do.call(rbind,lapply(unique(dfplot$clusters),fun... |
ad1e94a58163cdd2b2675c758c6c1c4d7e053aac | ccbb0b70874ac382e948d940a178793d263eb68c | /genuary/2021/2021-23/2021-23e.R | a28ce10ca4f1ddb24ca771d757807cd29cf13326 | [
"MIT"
] | permissive | joelfishbein/aRtist | 125f6b96031e64a819eb8330645bd3a7b98d8b63 | 5da0d46d0c618d28243f69d67e22cfa10e911cbd | refs/heads/main | 2023-08-20T19:51:15.859878 | 2021-10-21T02:54:15 | 2021-10-21T02:54:15 | 360,969,255 | 0 | 0 | MIT | 2021-04-23T18:11:26 | 2021-04-23T18:11:25 | null | UTF-8 | R | false | false | 1,618 | r | 2021-23e.R | library(ggplot2)
library(dplyr)
library(magick)
library(ggridges)
# polygon hatch group by color
# Read in image and convert to grayscale
img_url <- "https://images.unsplash.com/photo-1521119989659-a83eee488004?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1264&q=80"
img ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.