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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d78a6838578a72dcc83abf2a7af93577a4cd24fa | 6704f3fb2a8fe3b4ccd951c902cf0e0d84bb59ca | /archive/simulation.R | b1fe3581afabc6af9e17ea185b0bfbc49813ea28 | [] | no_license | tm-pham/covid-19_nosocomialtransmission | f5d04f987530d556c33a37eed7b98b017271eb7d | 67878b9feaf487404760dffac817025e7f4d05a8 | refs/heads/master | 2022-12-05T07:42:01.994047 | 2020-08-24T06:56:48 | 2020-08-24T06:56:48 | 265,420,009 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,751 | r | simulation.R | # =============================================================================#
# NOSOCOMIAL TRANSMISSION
# Simulate data
# =============================================================================#
# Libraries
library("TailRank") # for beta binomial distribution
# ============================#
# Parameters
# =... |
c0f2d749490ec8267b0e00cb2d562a954f76b816 | 226a24b0674571473ab80837987aaf7919682aaf | /interarrival.R | 3c6f31ec466463e96cce343026b7dad276e66c5d | [] | no_license | GlennMatias/ProgrammingAssignment2 | 3dd62d8b71f1f7d2fa78ee0ed8e1006f8a5ec734 | c8ffb5c3b23b53b39cd0fca8c18735ab6517ed37 | refs/heads/master | 2020-05-04T22:13:56.726249 | 2019-04-04T14:11:44 | 2019-04-04T14:11:44 | 179,504,341 | 0 | 0 | null | 2019-04-04T13:36:45 | 2019-04-04T13:36:44 | null | UTF-8 | R | false | false | 935 | r | interarrival.R | simulationdata =read.csv("Simulationdata.csv")
hist(simulationdata$Interarrival.Times, main = "Histogram of Interarrival Times")
hist(simulationdata$Machine.1, main = "Historgram of Machine 1 service times")
hist(simulationdata$Machine.2, main = "Histogram of Machine 2 Service Times")
install.packages("fitdistrplus")
... |
45693224550aae7f82c514bbd1a918cdeea0123d | da3a582e8ae13954765e5e020a499b82589a82c0 | /fastr-3.6.1-oracle-geospatial/scripts/check_packages.R | e84ce4367df938e27d2a2b6d6cb4c97d26892e9c | [] | no_license | ismailsunni/dockeRs | 0296b91b83650570e11dd89c11f0a7ccf6e9a419 | 9294b415ae895a6f5439782346f1bb40abdf2f31 | refs/heads/master | 2021-07-02T06:01:52.030239 | 2020-03-15T19:42:44 | 2020-03-15T19:42:44 | 213,689,521 | 2 | 1 | null | 2019-12-23T10:57:44 | 2019-10-08T16:01:55 | R | UTF-8 | R | false | false | 1,711 | r | check_packages.R | print("Checking Spatial and SpatioTemporal packages completeness")
# Ger list of available packages
spatial_packages <- readLines("./spatial_packages.txt")
spatiotemporal_packages <- readLines("./spatiotemporal_packages.txt")
# Get current installed pcakges
installed_packages <- installed.packages()[ ,1]
spatial_not... |
98060e52233080b582a2d774a378289eccbec2af | c4582ce899f30c1c094895bff9e6173106fd34a1 | /pairwise_correlation.R | 0efbdc923b890d3633cb5b592fdc8db623280f35 | [] | no_license | jcaguerri/media_representations_mena | 4f6ed3324139a49bf15b6d07d50f712e79d91019 | fc83faaab45b4dfa496bdbbe7160c40aa7f7527f | refs/heads/master | 2022-11-24T16:24:56.040644 | 2020-07-04T09:31:57 | 2020-07-04T09:31:57 | 277,078,426 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,449 | r | pairwise_correlation.R | #PAIRWISE CORRELATIONS
#correlations through news
#tokkenize and filter stopwords
#Stopwords:
stop_word <-stopwords(kind = "spanish")
stop_word <- c(stop_word, "según", "sin", "so", "sobre", "tras", "si", "ser", "dos")
#Tokenize
general_words <- news_1719 %>%
unnest_tokens(word, text) %>%
filte... |
80ee2c3eface157731ff7294fe1bb59bd4137e2f | 08cf8d05d798064a861d99fade04249f2f2988c9 | /ui.R | ab0bdf1d5054282cf179b4ab420cbcd216d113ee | [] | no_license | Parasdeepkohli/cs424-Project3 | 20a8f4acc26397018e9d59c44a967da9c3c58b60 | d71e4befa091654f3ff4a20f4c556e1fedbf6ba5 | refs/heads/main | 2023-04-25T08:07:13.992153 | 2021-04-30T17:33:27 | 2021-04-30T17:33:27 | 361,116,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,243 | r | ui.R | library(shiny)
library(leaflet)
library(mapview)
library(ggplot2)
library(DT)
communities <- sort(readLines("Communities.txt"))
fluidPage(title="Chicago power usage",
navbarPage(
title = "Navigation",
id = "nav",
position = "static-top",
... |
86123370af02acc4092c5f766080ad992f16ea0b | a8bd4a8d687b7a923bc82763a9d2e84a3235b186 | /man/CovarFARIMA.Rd | 8e2fc01073dbd4a4975f9a5efff483dd4d09df83 | [] | no_license | crbaek/lwglasso | 08e08c9d6091f5a7839ad50b7df36293c56c264f | 0be595bb514c498b3cd7028eeaee2a0b195b45b1 | refs/heads/master | 2022-12-06T03:51:29.511529 | 2022-12-01T03:46:49 | 2022-12-01T03:46:49 | 266,767,907 | 0 | 2 | null | null | null | null | UTF-8 | R | false | true | 453 | rd | CovarFARIMA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gencode.R
\name{CovarFARIMA}
\alias{CovarFARIMA}
\title{Covariance function in mlw paper (21)}
\usage{
CovarFARIMA(N, d, delta, Sigmae)
}
\arguments{
\item{N}{sample size}
\item{d}{LRD parameter}
\item{delta}{delta parameter}
}
\description... |
28e56d75596452010d99db761ee696955da469f9 | 8f3d6701c7a6c2d4e0e248c15d778ab6cd0801d0 | /tests/testthat/test_group.R | dc13cf9ed30d4787074954396d4b830e3b08fad3 | [
"MIT"
] | permissive | han-tun/groupdata2 | b9f00701832971bf9f491d81b3683119a5585a2a | b10aa53848a7b3558598f1965ca542b608ef93ae | refs/heads/master | 2022-10-11T04:12:02.155276 | 2020-06-15T18:50:32 | 2020-06-15T18:50:32 | 274,775,956 | 1 | 0 | NOASSERTION | 2020-06-24T21:48:02 | 2020-06-24T21:48:02 | null | UTF-8 | R | false | false | 18,702 | r | test_group.R | library(groupdata2)
context("group()")
# Needs testing of vector and factor as input
test_that("dimensions of data frame with group()", {
xpectr::set_test_seed(1)
df <- data.frame(
"x" = c(1:12),
"species" = factor(rep(c("cat", "pig", "human"), 4)),
"age" = c(5, 65, 34, 54, 32, 54, 23, 65, 23, 65, 87... |
6f1cadbc0e29d74480ce0767eff3945301437abe | afbc14ca3d89dbc736d2a984c905155e28b3bb11 | /BMI551_Homework_3_support.r | 078f8f1765419edda2c43a67894c2fe88c08f9b8 | [] | no_license | dannhek/BMI551 | c9188b9b7824d7d10aea2b3989e1f33481660256 | 1d96508762e0e8d5bdf53b3bb5eef67fab190b6a | refs/heads/master | 2020-08-22T02:11:34.264367 | 2019-10-31T03:32:01 | 2019-10-31T03:32:01 | 216,296,870 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,724 | r | BMI551_Homework_3_support.r | library(Hmisc)
library(knitr)
probability_range <- seq(0.000,1.000,0.001)
possible_bounds <- data.frame(
P = probability_range
,`P(k=0)` = round(dbinom(0,20,probability_range),6)
,`P(k=1)` = round(dbinom(1,20,probability_range),6)
,`P(k=2)` = round(dbinom(2,20,probability_range),6)
,`P(k... |
52d2491ac7e8718417f0826516927744e03fb66d | 140fb0b962691c7fbf071587e2b950ce3da121be | /docs/Code/comparative_analysis/clusters_heatmap/cluster_s_535.R | b8be753ae698a708032ca3eec2da5152229ad1f4 | [] | no_license | davidbmorse/SEEP | cb0f8d33ca01a741db50ebf21e0f56ab3c5bb372 | 357645a6beb428e4c091f45f278c5cdb4d4d3745 | refs/heads/main | 2023-04-09T10:55:01.267306 | 2023-03-24T02:53:21 | 2023-03-24T02:53:21 | 305,464,980 | 0 | 0 | null | 2020-10-31T16:15:55 | 2020-10-19T17:38:20 | R | UTF-8 | R | false | false | 31,981 | r | cluster_s_535.R | #generate a matrix and data frame that can be used to generate a heatmap showing correlation between clusters
library(RColorBrewer)
library(lattice)
library(latticeExtra)
library(grid)
library(gridExtra)
library(Seurat)
library(DT)
library(ComplexHeatmap)
library(tidyverse)
#define a function to change the name of an ... |
4088922f6375b9b2d7fccc91f637d34bff94eee2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/MLDS/examples/simu.6pt.Rd.R | 7915e22e536b4cb5e6aa1c4e781c57ae80826a13 | [] | 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 | 330 | r | simu.6pt.Rd.R | library(MLDS)
### Name: simu.6pt
### Title: Perform Bootstrap Test on 6-point Likelihood for MLDS FIT
### Aliases: simu.6pt
### Keywords: datagen misc
### ** Examples
data(kk1)
x.mlds <- mlds(SwapOrder(kk1))
#nsim should be near 10,000 for stability,
# but this will take a little time
simu.6pt(x.mlds, 100, nre... |
850b8536a02d4faf3ee317d495b776fd4a022a9a | c6a6b77f3b71ea68f1281b043dd60f17dd85381c | /inst/NEWS.Rd | d2c51539187b6fb80a8a2a61af95b53760ba3664 | [] | no_license | benilton/oligoClasses | df76a4ee4d755342ae32b07c9acb5355153e3f4f | be0e1088c52ee8827c86f061e80ffe9b44982a88 | refs/heads/master | 2021-01-10T21:40:35.903511 | 2019-11-23T12:22:08 | 2019-11-23T12:22:08 | 1,779,156 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,898 | rd | NEWS.Rd | \name{NEWS}
\title{News for Package 'oligoClasses'}
\section{Changes in version 1.18}{
\subsection{New class: GenomeAnnotatedDataFrame}{
\itemize{
\item GenomeAnnotatedDataFrame extends AnnotatedDataFrame but requires
columns 'isSnp', 'chromosome', and 'position'.
\item Accessors for the SNP indicator,... |
5004e32ed49998962e79cd4c26c3ac13fde27266 | eca592d4066d28063fa9c1e92347a4f270e5548f | /plot1.R | 824675e2829dfae453145fdcae75a1d5441b7737 | [] | no_license | llself/ExData_Plotting1 | 7cb95a728d5903cd9eb2c3e3c9522587cc9cb377 | c829a2f6809b19a07c446f6c07d14808a45d1233 | refs/heads/master | 2020-12-02T16:35:31.848401 | 2014-12-04T21:56:23 | 2014-12-04T21:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,576 | r | plot1.R | #Exploratory Data Analysis Class through Coursera
#Leslie Self
#December 2, 2014
#Plot1.R - creates a plot - histogram that is red displaying the frequency of the Global Active Power
# with main title "Global Active Power" and x-axis label as "Global Active Power(kilowatts)
library(sqldf)
library(lubridate)
#downloa... |
0873c80f2eef7be1862b70c884ed986d570293cc | 2852308e9a4b8790bcfaa0d2dc34682125747f1d | /UI/WW_Codon_Adapter_ui.R | 1d8e31b7dd1602d15a9f03fbfd48b6e7d8783bf6 | [
"MIT"
] | permissive | HallemLab/Wild_Worm_Codon_Adapter | c2bb05781704b6dd57ef45ab34c00095582c7470 | b1d92adb91aa2e9fa31145afe75df469f0426324 | refs/heads/master | 2023-04-06T23:14:59.268081 | 2022-07-29T23:36:13 | 2022-07-29T23:36:13 | 265,046,341 | 1 | 0 | MIT | 2021-04-22T00:18:46 | 2020-05-18T19:52:25 | R | UTF-8 | R | false | false | 19,266 | r | WW_Codon_Adapter_ui.R | # Header ----
navbarPage(h3("Wild Worm Codon Adapter"),
windowTitle = "WWCA",
theme = shinytheme("flatly"),
collapsible = F,
id = "tab",
# Optimize Sequence Mode Tab ----
tabPanel(h4("Optimize Sequences"),
value = "optimiz... |
042c711dd79b390f6fff8ea15fab51c53a53533e | 65ca8a525fc395d99648233b8f05d51b519404e9 | /R/runScrape.R | b41a641c308b858a419de78e9d1d587e74718edb | [] | no_license | isaactpetersen/ffanalytics | c3c21cd9e7209f0e511011eb1df4a62c4525c4a1 | b65b7c700d5c273bf6960f56be7858fdb78de746 | refs/heads/master | 2021-09-20T18:33:06.526322 | 2018-08-14T03:48:58 | 2018-08-14T03:48:58 | 85,698,645 | 6 | 5 | null | null | null | null | UTF-8 | R | false | false | 8,379 | r | runScrape.R | #' Scrape Projections
#'
#' Executes a scrape of players' fantasy football projections based on the selected
#' season, week, analysts, and positions. If no inputs are specified, the user is prompted.
#'
#' @note The function has the ability to include subscription based sources,
#' but you will need to either download... |
278267856d5525db72a9b7441c3cd71843e4021f | 685245043fd77c6a2f9a5fef80be742ed8022f29 | /cachematrix.R | 3cea0d13e23332ff6c1b8ae6617d256e87b89d87 | [] | no_license | bostrovsky/ProgrammingAssignment2 | 22c3aecbba8607e8bb5c3ef666592ea2deb9189d | bf5bf7bcb0b43f3b22cbfaafc147e87f2b8159f5 | refs/heads/master | 2021-01-21T19:28:03.131648 | 2014-10-21T19:32:09 | 2014-10-21T19:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,567 | r | cachematrix.R | ## The assignment was to write two functions to cache the inverse of a matrix(makeCacheMatrix)
## and one to invert a matrix unless it has already been done (cacheSolve). if is has already
## been solvved, cacheSolve should retrieve the already inverted matrix.
## makeCacheMatrix does the following:
## 1. sets ... |
22ef4bc8f65a857647ac5ffdbbde8722cdcf754d | d4451c85cbd4b4538aede88be9c2a1ec22ede530 | /man/graft.vs.host.Rd | c3bece21f4c1fb73ec8bbf647d1c69e24f89fedd | [] | no_license | cran/ISwR | db7d2287ba64cda7e72c41d1597bd729b2b0048d | 39c697c78bd35df51b1e4f96aeb20dda89c1b0d1 | refs/heads/master | 2021-06-02T22:10:53.526489 | 2020-01-20T08:50:02 | 2020-01-20T08:50:02 | 17,679,985 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,519 | rd | graft.vs.host.Rd | \name{graft.vs.host}
\alias{graft.vs.host}
\title{Graft versus host disease}
\description{
The \code{gvhd} data frame has 37 rows and 7 columns.
It contains data from patients receiving a nondepleted allogenic bone
marrow transplant with the purpose of finding variables associated with
the development of acute ... |
e9cdc4383cec5e678b99f382ae858f24f5d733dd | 1e0f4661062ee00a7b4b74301f3b672d8963a9bd | /Lecture_2_advanced_R/loop_server.R | 022e171956320a117ef8667f9164a5e9ae845bd6 | [] | no_license | jasonqiangguo/econ5170 | 290e59a1cb233e52ea7e3676ef28354d5e3408b5 | ee97466f3af7455aa248a044fbdb138d77501e56 | refs/heads/master | 2020-12-25T00:06:40.497804 | 2016-03-20T15:37:45 | 2016-03-20T15:37:45 | 60,931,462 | 1 | 0 | null | 2016-06-11T23:00:48 | 2016-06-11T23:00:48 | null | UTF-8 | R | false | false | 1,113 | r | loop_server.R | library(plyr)
library(foreach)
library(doParallel)
# prepare the functions
mu = 2
CI = function(x){
# x is a vector of random variables
n = length(x)
mu = mean(x)
sig = sd(x)
upper = mu + 1.96/sqrt(n) * sig
lower = mu - 1.96/sqrt(n) * sig
return( list( lower = lower, upper = upper) )
}
capture = func... |
b084492ad015c866a0f455f3f1487500cecb84b0 | ff65c1db4ef1db242fb24da4cc52e8359ca35a2f | /inst/app/make_in_situ_plot.R | 0b51f1c97957ea56e542dec3b8924e0f0a9c9d63 | [
"LicenseRef-scancode-public-domain"
] | permissive | whtns/plaeApp | 02ed8ab41978b2cf0ac51600719831f6eb2c0302 | c0b61494407ad763bddbc3e332ed0f6d18b608e5 | refs/heads/master | 2023-01-06T17:31:57.061373 | 2020-11-03T14:05:43 | 2020-11-03T14:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,305 | r | make_in_situ_plot.R | ## Function to read in original images
get_image <- function(file) {
image_read(file.path(paste0('www/insitu_layers/ret_',file, ".png")))
}
## Function to recolor each individual cell layer based on expression
recolor <- function(ret_layer, color){
if (length(color) == 0) {
recolored_layer <- ret_layer
} els... |
8b6eca09d10746e4ff5b7c645945dec14daf23c2 | 0c8d30f3ef99f0c68d21fb89bbee657e2114f7f0 | /FISH 552_Intro to R for Biologists/552_Homework1/fishPassage work.R | 3dfcf46defbef91bce974084e316d21c85f9a89e | [] | no_license | atchin/reference-scripts | 73654c53c9a145cf0fd7dc910df465ace4ab9227 | 5d0943ecdc596455435f6073dac1fbccd10456f6 | refs/heads/master | 2023-04-25T00:54:44.975789 | 2021-05-05T23:48:33 | 2021-05-05T23:48:33 | 298,167,442 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,695 | r | fishPassage work.R | # Name: Andrew Chin
# Homework 1, Part 2
fishPassage <- read.csv("fishPassage.csv", header=T)
labels(fishPassage)
#calculate the max and min of wild steelhead to pass Bonneville Dam, and specify in which year each occurred
fishPassage$Wild.Steelhead #NA's found
# fishPassage$Wild.Steelhead <- na.pass(fishPassage$Wil... |
7b56575f5e7525ef6023dd949a78ea6081bbd3f3 | 82967c8f2b6b219c5623713cbf466009055b2b6c | /code/genes/AlleleProportionsByCluster.R | 4377c20ed08f7acd53df45e082a1aeb46ad66d23 | [
"MIT"
] | permissive | ejcorn/neuropathcluster | f6c4517ba7e4c82913ade3b065af6a8e97205009 | 02dc1f07e6523cf6a3ad9e79e7d88a7d76891409 | refs/heads/master | 2022-11-30T12:34:23.599889 | 2020-08-03T21:50:29 | 2020-08-03T21:50:29 | 184,345,803 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,918 | r | AlleleProportionsByCluster.R | rm(list = setdiff(ls(), c("params")))
homedir <- params$homedir
setwd(homedir)
savedir <- paste(params$resultsdir,'genecluster/',sep='')
dir.create(savedir,recursive=T)
source('code/misc/fxns.R')
source('code/misc/plottingfxns.R')
microSample <- read.csv(paste(params$opdir,'processed/microSample.csv',sep=''),stringsAs... |
fe5084f9efcaa6d6371e506a2f45381eb7d9df4a | e5ebddef173d10c4722c68f0ac090e5ecc626b8b | /KIR/bin/HLA.R | 9e90a9e323157c89f1fd8211209be08875175cce | [] | no_license | pontikos/PhD_Projects | 1179d8f84c1d7a5e3c07943e61699eb3d91316ad | fe5cf169d4624cb18bdd09281efcf16ca2a0e397 | refs/heads/master | 2021-05-30T09:43:11.106394 | 2016-01-27T15:14:37 | 2016-01-27T15:14:37 | 31,047,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,434 | r | HLA.R | setwd('~nikolas/stats-archive/Papers/KIR/Data')
print(load('qPCR/MI-10-datasets.RData'))
# HLA data
head(hla.data <- read.table('Data/HLA/cc-hla-2013-06-21.tab',header=T))
dim( hla.data )
hla.data$t1d <- hla.data$t1d-1
hla.data$dil_subjectid <- hla.data$dil_subject
dim( hla.data <- subset(hla.data, t1d %in% 0:1) )
h... |
ff770859f89df98e9991db23d9b2a0f2b33380de | 3e473b1d46386499fc45c664fd5c3f9282636650 | /plot4.R | b4eef763b71bce9adccc5b5b3a3ea8c7e4185c21 | [] | no_license | Danlu0217/ExData_Plotting1 | 7437d558b4c3523fd8660cf995032921bdf25876 | b1b2be8a3cd425b81dfa102310c49924518b657f | refs/heads/master | 2020-07-17T19:03:03.265464 | 2019-09-10T17:18:54 | 2019-09-10T17:18:54 | 206,078,374 | 0 | 0 | null | 2019-09-03T13:01:03 | 2019-09-03T13:01:03 | null | UTF-8 | R | false | false | 1,745 | r | plot4.R | #Download and Read the file#
temp<-tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
datafile<-unzip(temp)
#Read file,file in table has 9 variables
data<-read.table(datafile,sep =";")
#Ajust time format in order to pick data based on time
time<-as.Dat... |
bd8c2e8f95a3b0570585dd764af757a9ea0364e8 | 90a4676f3d6994cfe02e06ce5899ab2fb222512d | /app.R | e7fa097973e5bfd5e49b490596f402bf13353557 | [
"MIT"
] | permissive | nuke504/ESA_Project_Electronic_Dice | 8f21cd61cf458b1cf3571d2c28b24349cbc5b047 | 7429b563fc14c1da849239d2237e39b36ceb31c9 | refs/heads/master | 2020-12-28T06:16:46.618760 | 2020-02-04T13:15:13 | 2020-02-04T13:15:13 | 238,208,633 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 31,937 | r | app.R | # Electronic Dice R Shiny App
library(shiny)
library(ggplot2)
library(stats)
library(bnlearn)
library(expm)
gen.pmf <- function(){
# Create a list of PMFs
pmf <- list()
# Generate Standard Dice PMF
pmf$standard <- data.frame(X=1:6,Y=rep(1/6,6))
# Generate Normal-Binom Approx PMF
sd1 <- (6-3.5)/3-0.5+... |
4e4235bb56a3340ef093e9aa11f4fb7e04cfa9d7 | cb9ee9a7732befaa609ad2b1ec031a40d53ff2da | /Analysis/Step3_analysis_Monocle_Droplet.R | 7620eed9abf39e0e07c1aaaba995da8f5def7f60 | [] | no_license | rhondabacher/scSpatialReconstructCompare-Paper | b247a13109b06067f38003c5209bf7e250df6b3c | 6fe728d40e50812f9284f43f3c1678b7b37f8ebc | refs/heads/master | 2022-10-07T13:44:30.576357 | 2020-06-06T22:37:53 | 2020-06-06T22:37:53 | 186,037,949 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,045 | r | Step3_analysis_Monocle_Droplet.R | setwd("scSpatialReconstructCompare-Paper")
load("RDATA/dataReady_DropletPaper.RData")
use.data <- droplet_liver_data
# Only keep genes that are not all zero for Monocle analysis:
use.data <- use.data[names(which(rowSums(use.data) > 0)),]
library(monocle)
pd <- new("AnnotatedDataFrame",
data = data.fram... |
e00a802c14902dff7e0e157eeef385ffe277070f | 65ad984f92fc48af3dec983d6996c5f24f6a43ec | /plot4.R | d3687f73591f2ab0bce7b9fd802e2961bfaae455 | [] | no_license | lpatzer/ExData_Plotting1 | c2d13979d642f28d909e8f5b85dfb1cef3b86278 | ee2177f8878127d3221112ed12b61db78d8383ed | refs/heads/master | 2021-01-17T05:17:00.928488 | 2015-05-07T20:29:30 | 2015-05-07T20:29:30 | 35,229,454 | 0 | 0 | null | 2015-05-07T15:55:32 | 2015-05-07T15:55:32 | null | UTF-8 | R | false | false | 1,664 | r | plot4.R | wd<-"C:/Users/patzerl/Documents/Coursera/EDA/Project 1/"
setwd(wd)
data<-read.table("household_power_consumption.txt", sep=";", header=T)
######## CLEAN COLUMNS ############
data$Clean_Date<-as.Date(data$Date, "%d/%m/%Y")
data$Clean_Global_active_power<-as.numeric(paste(data$Global_active_power))
data$Clean_Sub_meter... |
4ac1b58bdac73cc413e57a94510a22a8208c5dc4 | cd7962decce586dd068af18743a46705ede05660 | /man/isInsideConvexHull.Rd | f2ad65533ba0694e2007972a6991be79d9fce250 | [] | no_license | oshea-patrick/RSpatial | a6e103ae4da87783a38f1cb846e97c7d8de98a38 | 22a65f50618f7972f9c5bc203e7b8db0ed3900d4 | refs/heads/master | 2020-06-01T02:59:36.566504 | 2019-08-08T17:49:42 | 2019-08-08T17:49:42 | 190,607,270 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,249 | rd | isInsideConvexHull.Rd | \name{isInsideConvexHull}
\alias{isInsideConvexHull}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
isInsideConvexHull
}
\description{
Checks to see if a Point resides within a convex hull, which is presumably in clockwise order.
}
\usage{
isInsideConvexHull(hulls, checkx, checky, size)
}
%- may... |
ef9e4f07a16eccf420952a8e5677fda85c1a2e41 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/10899_0/rinput.R | d6cccb24927d0b5b5af9d8b50cf943e59dec6667 | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | rinput.R | library(ape)
testtree <- read.tree("10899_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10899_0_unrooted.txt") |
c6a60559d9fa413288c3a024b38b8998ae22049f | d6f307076775df59956b79395fa546bca1be5510 | /man/parse_salaries.Rd | a2ba59d59703796a3035b33dbc8b14ccf22e1664 | [
"MIT"
] | permissive | jimtheflash/dfstools | 7f893bfe0356a88052081d3c49ff77ecb2e88b45 | b76de925da20c1d26e8fd4784149b0eca166846b | refs/heads/master | 2021-07-04T10:24:43.340369 | 2020-12-15T20:26:05 | 2020-12-15T20:26:05 | 208,372,779 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 706 | rd | parse_salaries.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_salaries.R
\name{parse_salaries}
\alias{parse_salaries}
\title{Parse dfs player salary files}
\usage{
parse_salaries(
path = NULL,
sport = NULL,
platform = NULL,
remove_postponed_games = TRUE
)
}
\arguments{
\item{path}{characte... |
427ebde1c4c3b6722e9ed712f9eb55d3ed132d43 | 2b0e7454e2c87076f4f97d35000bf3426b7d9aaa | /man/lcfs.update.Rd | d05a41c8e6cbd91472e32e6ccae31a3db6628854 | [] | no_license | raphael210/QDataGet | 52df9d791d7d1d8933555dbdfa9d81e42558a5ee | 83531020e180fe8d07fdfa4a75413fd2b95cd6b4 | refs/heads/master | 2020-04-12T06:29:33.198718 | 2019-02-01T07:50:14 | 2019-02-01T07:50:14 | 64,194,185 | 0 | 5 | null | 2017-03-16T03:29:45 | 2016-07-26T06:00:12 | R | UTF-8 | R | false | true | 957 | rd | lcfs.update.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pub03_DatabaseOperationFuncs.R
\name{lcfs.update}
\alias{lcfs.update}
\title{lcfs.update}
\usage{
lcfs.update(factorID, begT, endT, stockID, splitNbin = "month")
}
\arguments{
\item{factorID}{a single charactor of factorID}
\item{begT}{the b... |
32ffb4217e59c36525b4ddedfcd18074379cd66a | 1dad0d0cc3555ae6373dc876e18071a849bf11a9 | /R/announced-prefixes.R | 9cc3fa85193f0f559201fd009f911428d53b19f9 | [] | no_license | firebitsbr/ripestat | 53dc9e9a2d87ff8154622f94a905b155da340c11 | 45f405f9021e08669bd7843e26936e8eadd35cfa | refs/heads/master | 2020-04-08T00:23:18.488402 | 2018-05-14T03:33:27 | 2018-05-14T03:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,065 | r | announced-prefixes.R | .get_announced_prefixes <- function(asn, starttime=NULL, endtime=NULL, min_peers_seeing=3) {
if (length(asn) > 1) {
warning("asn length > 1; Using first element.")
asn <- asn[1]
}
asn <- trimws(toupper(asn))
if (!grepl("^AS", asn)) asn <- sprintf("AS%s", asn)
if (!is.null(starttime)) {
startti... |
dd54262e355bb969fbf991e1b6ed53f0b8ebf60c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/phylosim/examples/UNREST.Rd.R | 9742565900077f0f0f7c021192bd9fd6f8c40ee8 | [] | 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 | 818 | r | UNREST.Rd.R | library(phylosim)
### Name: UNREST
### Title: The UNREST class
### Aliases: UNREST
### ** Examples
p<-UNREST(rate.list=list(
"T->C"=1, "T->A"=2, "T->G"=3, "C->T"=4, "C->A"=1,
"C->G"=2, "A->T"=3, "A->C"=4, "A->G"=1, "G->T"=2,
"G->C"=3, "G->A"=4
))
# get a summary
summary(p)
# display a b... |
40b1e184554a2035c56eea8d4b37a729f9b07840 | 1e87d5db6b12a90e11b0cfccbce02a640d0f0023 | /water_potential.R | 32f76387dc11c12c8b485945b0f4549482050807 | [] | no_license | haleybranch/Mimulus2018 | 8620431ae374991fc776b75837decfdbadd6f47e | b31e3b42ca50e98c30f38d5acd18b81fcfd12420 | refs/heads/master | 2020-03-25T22:10:46.307341 | 2019-10-08T21:57:25 | 2019-10-08T21:57:25 | 144,209,166 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,882 | r | water_potential.R | #### Water potential
wpotential <- na.omit(data.frame(read.csv("waterpotentialJuly2018.csv"))) # red sensor
head(wpotential)
tail(wpotential)
# orient data longwise
wpotential <- wpotential %>%
gather(Bench, WP, WP1:WP4)
head(wpotential)
# add AM/PM to time
wpotential <- wpotential %>%
mutate(Time2 = paste(Tim... |
877d763153045bb40b92f1e3f46a8273b0e48756 | bb176c57cf4372a02ce92fb2ddfbe391326c1d0e | /R/man/GMI.Rd | 68d0b62ca815f59854a0757fc295403e26a086ce | [
"MIT"
] | permissive | jbpauly/cgmquantify | da7cf310426ecf3332abf8c656ce6fe567076910 | 38772141e4fda9e452302874bd561433fcb61baa | refs/heads/master | 2023-03-01T17:02:56.888616 | 2021-02-10T03:16:33 | 2021-02-10T03:16:33 | 337,473,687 | 0 | 0 | MIT | 2021-02-10T03:16:34 | 2021-02-09T16:55:52 | null | UTF-8 | R | false | true | 329 | rd | GMI.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GMI.R
\name{GMI}
\alias{GMI}
\title{Compute Glycemic Management Indicator}
\usage{
GMI(df)
}
\arguments{
\item{df}{Data frame read through readfile}
}
\value{
A numeric value representing GMI
}
\description{
This function computes the estimat... |
4cf9d859fa5c35dc4e3554ff0e8c43488da617d4 | b6511f622e3f97ae7d75282bc697dd9c9e4cd089 | /cachematrix.R | 72006ed6889623f8bd40a56327197052f90c2be9 | [] | no_license | iamzog/ProgrammingAssignment2 | be6d29550e2f1db381d2891ba4c94b7a1b0cce8e | 67cd6c60502c5965d4ff5a074735476df4969281 | refs/heads/master | 2021-01-21T01:39:47.835395 | 2014-08-22T21:29:48 | 2014-08-22T21:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 904 | r | cachematrix.R | ## This function creates the matrix that is cached
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setsolve <- function(solve) m <<- solve
getsolve <- function() m
list(set = set, get = get,
setsolve = setsolve,
get... |
bd473c5659a2538fafef1cd67e6089172d75c480 | a66d2fa34cb3543597d2a9e35b268df245230ede | /tests/testthat/helper-round_dbl.R | 2e78a83c7eb2e00dc99404632fcd0d600f3bf61e | [
"MIT"
] | permissive | 2DegreesInvesting/r2dii.match | da6727f3da80ccd36110186c7ddf09bc10066484 | 87a10c8555bc0f7f6f667dfd132991ad2ac2c9b0 | refs/heads/main | 2023-03-16T13:04:21.769127 | 2022-09-07T11:37:46 | 2022-09-07T11:37:46 | 208,819,359 | 4 | 8 | null | null | null | null | UTF-8 | R | false | false | 203 | r | helper-round_dbl.R | round_dbl <- function(data, digits = 4L) {
data[detect_dbl(data)] <- lapply(data[detect_dbl(data)], round, digits = digits)
data
}
detect_dbl <- function(data) {
unlist(lapply(data, is.double))
}
|
5db0c410d349e6c908aabfa36f96d598d0a7f260 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/roptim/examples/example1_rosen_nograd_bfgs.Rd.R | 15050390b946bc3dcf722b0e368b00e7666b8cbe | [] | 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 | 437 | r | example1_rosen_nograd_bfgs.Rd.R | library(roptim)
### Name: example1_rosen_nograd_bfgs
### Title: Example 1: Minimize Rosenbrock function (with numerical
### gradient) using BFGS
### Aliases: example1_rosen_nograd_bfgs
### ** Examples
fr <- function(x) { ## Rosenbrock Banana function
x1 <- x[1]
x2 <- x[2]
100 * (x2 - x1 * x1)^2 + (1 - x1)^2
... |
2ef0313b39aa433bb16621a60920e30c333c6d4d | 3853c7c2aec2afda0e14bf57c76aae4408ee74d2 | /man/missing_count.Rd | be46ea7e638caa7cc19121b028388bb07077f5da | [] | no_license | lenamax2355/shinyr | 9342a439046517f4dd836f0b38dcc41b2d3dd6e0 | 5f1194b9ca6f39a2446aed166c31b68196bec108 | refs/heads/master | 2023-06-09T01:53:26.610183 | 2021-06-23T04:38:34 | 2021-06-23T04:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 471 | rd | missing_count.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/missing_count.R
\name{missing_count}
\alias{missing_count}
\title{Missing Count}
\usage{
missing_count(x)
}
\arguments{
\item{x}{vector}
}
\value{
Number of missing values in the given set of values
}
\description{
Count the number of missing... |
7130a254edb229252d589c3fcb1d05d06a09c917 | 9de3d1c1975c4f9a1a730cd732547d462bb79350 | /man/MSIGDB_Geneset_Small_Names.Rd | ac9ce9aa68f60cc8e6e25a98e5edc274abc6b49b | [] | no_license | millerh1/correlationAnalyzeR | c0dc804bca7a6307e104df90c4aa7d4032ee9b6e | 1869773b3b9370207667efa07953a80f0bf1b0fc | refs/heads/master | 2021-06-16T18:12:45.244298 | 2021-03-30T02:53:08 | 2021-03-30T02:53:08 | 183,645,303 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 502 | rd | MSIGDB_Geneset_Small_Names.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{MSIGDB_Geneset_Small_Names}
\alias{MSIGDB_Geneset_Small_Names}
\title{A vector of valid MSIGDB geneset names with fewer then 500 genes associated with them}
\format{
An object of class \code{character} of length 21... |
ff4c87cd04379ffa04c94759069105c717af9590 | 326758331e3577e5256dacfc3d9c76b34810d0ec | /Server/error-srv.R | 20f00a5853e3b75d560ad563f184c8de79f380b6 | [] | no_license | astrasb/Power_Analysis_App | 96e2e6afd3c02077192e75b42af18e1810b194ca | c336e3496b95cf11d317bc46f723df8f535c819e | refs/heads/master | 2022-12-16T10:45:00.096779 | 2020-09-11T18:55:31 | 2020-09-11T18:55:31 | 258,887,778 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 657 | r | error-srv.R | # Error Messages
output$error <- renderUI({
result<-dataOutput()
if (is.null(result)){
str1 <-c('<h5>Number of data columns or rows does
not match the selected statistical test. </h5>
<h5>Please pick another file.</h5>')
str2 <-c('... |
3164c80cacfc622bb75964183b2e565c92e94277 | 6eb0c9e95e7dc19d762fcf37da0b92e27eb212a5 | /DTU_ML_kursus/02450Toolbox_R/Scripts/ex5_1_7.R | 2172c69cd4624b9887d446051e43cb0931fb6201 | [] | no_license | AnnaLHansen/projects | 81b125e8789c2555c8a2b05c469193094e25610f | fb6fe1d268c81146fb819cf42722fe93f9af31f6 | refs/heads/master | 2021-07-19T15:29:46.507559 | 2020-09-04T12:23:31 | 2020-09-04T12:23:31 | 211,500,384 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 343 | r | ex5_1_7.R | # exercise 5.1.7
source("Scripts/ex5_1_6.R") # get data and tree model
library(rpart)
# Define a new data object with the attributes given in the text
x = data.frame(t(c(6.9, 1.09, .06, 2.1, .0061, 12, 31, .99, 3.5, .44, 12)))
colnames(x) <- attributeNames
# Evaluate the classification tree for the new data object
pre... |
94b91140af8318cd2d3147419d9f73278cdf4c43 | b57ef22a45544ea715e8c58a7bff4472e27ef47f | /powers-master/man/root_square.Rd | 22c1c72939f0c85e01923fb2b3fdc10492e50019 | [] | no_license | STAT545-UBC-hw-2018-19/hw07-lh563 | c1b3508f46c2bb3b4e8ac2962bb163ae38ca856d | 96dba6315c1255275a8e443d7e98215a0c7c074b | refs/heads/master | 2020-04-06T20:37:13.772110 | 2018-11-15T22:45:41 | 2018-11-15T22:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 216 | rd | root_square.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/square.R
\name{root_square}
\alias{root_square}
\title{root_square}
\usage{
root_square(x, plot_it = FALSE)
}
\description{
root_square
}
|
1b7b978dabda0ccd4a82e924d0b7c8974eb4ffe5 | a03534ec23df4282fa35a0e31dcf3e94734faa6d | /R/MeSH_DB_Update.R | 91688f468a24a2f10427bf2086f44e13e0c1c3c9 | [] | no_license | liulihe954/EnrichKit | 501beaf67c54b3d6bc94d261497ee58b140a4589 | febbce860477032cd050db9eb60cf5fa00af63ce | refs/heads/master | 2021-07-21T03:48:04.025631 | 2020-10-09T05:40:02 | 2020-10-09T05:40:02 | 222,389,799 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,973 | r | MeSH_DB_Update.R | #' Update/download new database - Mesh.
#' New database will be gathered and stored locally.
#'
#' @param keyword Keyword used for naming. Default \code{keyword = "MeSH_DB"}
#' @param DB_location Store path of the new database. Default is current working directory.
#'
#' @return NA. New dataset will be packed and store... |
571bdde7183db8ed77936f43549ffb5a0d04bba4 | 6a103070f0eff21ee7497559e3a96e26005f4961 | /R/Salvagecashflowtablelibraries.R | 7e0a2881bc62bec0b8c87fd290929afc979c0642 | [
"MIT"
] | permissive | tedfarry/spinozatest | f3719e2da0d8bc2b5371eeeb4e0c73154880801d | adaa0c98f10b435fc73805d785a460a25f687023 | refs/heads/master | 2021-06-12T12:35:32.113106 | 2021-03-26T01:05:08 | 2021-03-26T01:05:08 | 166,516,438 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 86 | r | Salvagecashflowtablelibraries.R | install.packages("flextable")
install.packages("FinCal")
install.packages("rjson")
|
3e1b3a57688e0b0896e0b264f1d132465aa260f6 | 8e531193fd089f7a0c10ad49891fd3f07f42a544 | /man/occdat_eg1.Rd | 40da322b544077db1bb9de02defa757829e8bff8 | [
"MIT"
] | permissive | corersky/mapr | e25c3fdc3868f3c1310ca2f7ad0837990619de8a | 8979429bd4a7a5ba8e4204accde5d38221d3a076 | refs/heads/master | 2020-12-28T09:20:38.564271 | 2019-12-09T13:32:01 | 2019-12-09T13:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 454 | rd | occdat_eg1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mapr-package.R
\docType{data}
\name{occdat_eg1}
\alias{occdat_eg1}
\title{Example dataset: output from call to \code{\link[spocc:occ]{spocc::occ()}}}
\format{A data frame with 25 rows and 62 variables}
\description{
A dataset with 25 rows, an... |
4fbc4a1ca1c62c44c9be4d7e5690d8ea1baff641 | e20dae6615dd906842fb6a7eeee3e41cb625cc51 | /R/utility_functions.R | 3a8c931c2a20a5444eee9e2486789a745d457b55 | [] | no_license | LenaCarel/nmfem | 1ba1f330569ced860425a149de5423ae14dee26a | 58b1b232277d597f0c24bfc415114a2aa30cf3f2 | refs/heads/master | 2020-05-02T22:08:32.791009 | 2019-12-01T21:39:48 | 2019-12-01T21:39:48 | 178,243,096 | 1 | 2 | null | 2019-04-01T14:02:31 | 2019-03-28T16:32:37 | R | UTF-8 | R | false | false | 4,538 | r | utility_functions.R | #' Extract log-likelihood from a mixture of multinomials
#'
#' @param X a matrix of dimension \code{N} (number of observation) \code{x M} (number of variables) containing multinomials observations.
#' @param Theta matrix of dimension \code{M x H}.
#' @param Lambda matrix of dimension \code{H x K}. Can be \code{NULL}.
#... |
f9c4c061657a32a4eff304374245d4301a931e52 | eb09acc1e170228d123eb713c79563c2f10d6f8d | /TwitterSentiment/R/waffle_func.R | 62344014056717fc6d8278004925f075157c353a | [] | no_license | PHP-2560/final-project-twittersentiment | 16f6fd3c423d3fcc5f5ad38272766e7d84063308 | 0244f0a00880b62ae0f68078fdcdd152892df336 | refs/heads/master | 2020-04-11T04:47:53.675453 | 2018-12-18T03:50:57 | 2018-12-18T03:50:57 | 161,526,369 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,791 | r | waffle_func.R | waffleFun <- function(data, lexicon = c("bing", "afinn", "nrc"), dropwords, num_Rows)
{
lexicon = match.arg(lexicon)
if(lexicon == "afinn")
{
lex <- get_sentiments(lexicon) %>% filter(!word %in% dropwords)
#Analysis of "bing" or "nrc lexicon
sent =
data %>%
inner_... |
aca1869fe343dc91463d56cfb9fa5991df054ec3 | a3c78700a65f10714471a0d307ab984e8a71644d | /models/linkages/man/read_restart.LINKAGES.Rd | 5599ca9ee148a0ce992458f2aac67d014e0f61df | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PecanProject/pecan | e42a8a6a0fc9c0bb624e0743ab891f6cf131ed3f | ce327b92bf14498fa32fcf4ef500a7a5db5c9c6c | refs/heads/develop | 2023-08-31T23:30:32.388665 | 2023-08-28T13:53:32 | 2023-08-28T13:53:32 | 6,857,384 | 187 | 217 | NOASSERTION | 2023-09-14T01:40:24 | 2012-11-25T23:48:26 | R | UTF-8 | R | false | true | 634 | rd | read_restart.LINKAGES.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_restart.LINKAGES.R
\name{read_restart.LINKAGES}
\alias{read_restart.LINKAGES}
\title{read_restart.LINKAGES}
\usage{
read_restart.LINKAGES(
outdir,
runid,
stop.time,
settings,
var.names = NULL,
params = NULL
)
}
\arguments{
\i... |
a71e25ecda3d801e1d65c77b918515854f87f1f5 | 96082676c6dfe8049111fb777229ca779272a411 | /R_code/other_code/MelbourneThomas13PLoS_code/community.r | 1f64007ce27ab78024216233f4a979aaf3e97c72 | [] | no_license | dietahanson/AustraliaLoopAnalysis | 8724b54ad034b20f9a179964dc6ab9dc9758d12b | abc3c56ece5c7e3cbc717d7993eb2393f50ce62e | refs/heads/master | 2023-07-06T18:03:25.613225 | 2023-06-21T22:41:51 | 2023-06-21T22:41:51 | 134,459,503 | 0 | 0 | null | 2023-06-21T22:41:52 | 2018-05-22T18:35:26 | R | UTF-8 | R | false | false | 4,874 | r | community.r | ## Functions to process and analyse community matrices
library(utils)
## Extract node labels
node.labels <- function(edges) {
levels(edges$From)
}
## Convert edge descriptions to an adjacency matrix. The
## required.groups argument determines which edge groups will appear
## in the matrix.
adjacency.matrix <- fu... |
8bf621c3ea4adc29014a5c77ce973282ca39d058 | 242737293b846c619d2aef6762d88c42bf6c8553 | /man/annotateCC.Rd | daea4f9d761d6c66dc5a3c36a75955541f7d4121 | [] | no_license | dtharvey/eChem | d95006456b06d8ce142b1e1fc683a9935b7f0a34 | 2811d48c1d47d591214c55ec1f1cb05aa81ac409 | refs/heads/master | 2020-03-21T09:30:26.450840 | 2019-07-06T12:23:44 | 2019-07-06T12:23:44 | 138,403,219 | 6 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,250 | rd | annotateCC.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotateCC.R
\name{annotateCC}
\alias{annotateCC}
\title{Annotate Chronocoulogram}
\usage{
annotateCC(filename, time.delay, scale.factor = 1, main_title = NULL)
}
\arguments{
\item{filename}{Name of the file that contains the results of a sim... |
852c89af81389edbc8f23d8e147be998cf5a929c | 82bbc478a9d2a54aba543a9551a1183c6acf8554 | /codes/unit09_onewayANOVA_repeated.R | 4904d4cc6475667309fe76f8a52aa187de23d7a6 | [] | no_license | SCgeeker/BasicStatistics | c085910ca110553510d05c2e050c36a590868777 | fa8a4c3b64241b488f74bebf178d3f4d1c2753fa | refs/heads/master | 2021-05-08T14:36:33.882512 | 2020-01-20T06:48:21 | 2020-01-20T06:48:21 | 120,090,750 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,783 | r | unit09_onewayANOVA_repeated.R | ## Sampling distribution of i repeated measures
mu <- sample(0:10,1) ## pick up one random number as mu
i <- 3 ## number of repeated measures
j <- 10 ## number of participants in each group
range_a <- 0 ## set up of group difference range
mean_s <- 3 ## set up of participants' effect
mean_res <- 0 ## set up the mean of... |
35a47c3bac1a0f45d92a1af69a4ca2bea6b3a9da | 02e46494362cf053a7c13d8dbfa4b2b018c8298e | /man/RegDiffTSPred.Rd | 71e17196a46b302c3ce246c3d48a2324978348eb | [] | no_license | david-salgado/TSPred | 5445ba75b5c96c94f6f38cc4a9409a1444efad75 | 66ba0d3d57bbe5519f5ef5f7cbb236f3df47cacd | refs/heads/master | 2022-04-26T03:44:30.782136 | 2020-04-25T10:31:22 | 2020-04-25T10:31:22 | 258,748,216 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,839 | rd | RegDiffTSPred.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RegDiffTSPred.R
\docType{methods}
\name{RegDiffTSPred}
\alias{RegDiffTSPred}
\alias{RegDiffTSPred,vector-method}
\alias{RegDiffTSPred,StQList-method}
\title{Method to predict according to the regular difference time series model.}
\usage{
Reg... |
fcb0ef2b4a92b989654ab029b4664e21f938f98a | a14132853e6eae96fc86408d31f3658f5581383e | /run_analysis.R | 2b03e43dffc6be66e1b696f3f9070968a6417574 | [] | no_license | AnyaRum/Getting_and_cleaning_data_Course_project | ed2923ef5aada48f12c26994435bf1edca7de69e | 69c2ccf3a6dc730d5b0fff5636853cb2711cb59c | refs/heads/master | 2020-05-31T06:49:15.580916 | 2015-06-21T13:12:10 | 2015-06-21T13:12:10 | 37,808,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,195 | r | run_analysis.R | ##########################################################################################################
## Coursera Getting and Cleaning Data Course Project
## by Anna Rumyantseva June 2015
##########################################################################################################
# Clean workspace... |
0d43d9ec130c646b8c25bbf4ff627b89a891bd58 | e8f175cc7948afd3c5576ddbec1edd5e027e7ffc | /code/clean_perm_data.R | cb8cc80a1318245fa9787904f5c4943b67943144 | [] | no_license | acforrester/PERM_data | dff6fab7c05e74edb70dcde5f5c31ddef107eff7 | 9b4e582c0785a4e4992ecfce14b7ae66a5df7f37 | refs/heads/main | 2023-06-26T09:19:22.939695 | 2021-07-23T18:44:58 | 2021-07-23T18:44:58 | 388,882,720 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,512 | r | clean_perm_data.R | ## Clean PERM data
# load packages
if (!require("pacman")) install.packages("pacman")
pacman::p_load(tidyverse, glue)
# PERM: clean 2000-2004 ---------------------------------------------------
lapply(2000:2004, function(year){
read_csv(glue("./data/raw/Perm_external_FY{year}.txt"),
col_names = T,
... |
7e087357dd06383b59a62e63ad17852c2b04c72f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/s2dverification/examples/Spread.Rd.R | 7f37af6318da424ccc6201a7ce12a1786ea13236 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,783 | r | Spread.Rd.R | library(s2dverification)
### Name: Spread
### Title: Computes InterQuartile Range, Maximum-Minimum, Standard
### Deviation and Median Absolute Deviation of the Ensemble Members
### Aliases: Spread
### Keywords: datagen
### ** Examples
# Load sample data as in Load() example:
example(Load)
clim <- Clim(sampleData$... |
1d6fc27aa984debc7fca501fb7d077681d4dbb54 | ab85982a5c86c4ccb866f98c6c253d4be28a6273 | /inv-create-script.R | ab9f717e018bb2655f6d3769038b843e879e06d0 | [] | no_license | welluc/inventory-processing | a3321188786ce2ed76d0d0db562979a480b60e21 | 267483e25cbc4b6f55a59a814a36b221e79ae81b | refs/heads/master | 2020-05-29T09:16:33.495172 | 2016-10-21T19:47:07 | 2016-10-21T19:47:07 | 69,494,392 | 0 | 0 | null | 2016-10-21T19:47:07 | 2016-09-28T19:00:39 | R | UTF-8 | R | false | false | 1,692 | r | inv-create-script.R | ##################################################
# Inventory Create Script
##################################################
# setwd and source inv-global-datapath.R
source('inv-pkgs.R')
source('inv-global-vars.R')
source('inv-functions.R')
source('invCreateWrapper.R')
invCreateWrapper(
w_evalid='01',
w_minfi... |
b07b4465caf0a9a7c0a8e5f17dfc138b596c9263 | c491aa065591acc508b31cb6dd6829603b8d11ee | /man/BudgetItaly.Rd | f88dd708a81384691c80f58d3f9d3b079eb28789 | [] | no_license | sbgraves237/Ecdat | 8ce323c1d334bcbd5549a5b3c63437a4ec638070 | 5982c446a147b4ee585aebe0f8053bb0f2d8dd1f | refs/heads/master | 2023-05-22T06:07:56.876130 | 2023-05-06T16:10:33 | 2023-05-06T16:10:33 | 193,949,304 | 2 | 1 | null | 2021-12-26T13:06:46 | 2019-06-26T17:26:16 | R | UTF-8 | R | false | false | 1,163 | rd | BudgetItaly.Rd | \name{BudgetItaly}
\docType{data}
\alias{BudgetItaly}
\title{Budget Shares for Italian Households }
\description{
a cross-section from 1973 to 1992
\emph{number of observations} : 1729
\emph{observation} : households
\emph{country} : Italy
}
\usage{data(BudgetItaly)}
\format{A dataframe containing :
\de... |
52e0ff43a43ad647163377627a6c480091d760ae | f5b8fb6e644a462279376fe14a53c625eae0e945 | /man/getForwardRates.Rd | 331b194c92ce893b74d5f8b55fc72e796c624307 | [] | no_license | cran/ESG | 42ac2dbfca49a471c2a0eb45f43bf21f6a705d6a | 8bd871cb5c421f6b31bcac64fa574ac0d985b673 | refs/heads/master | 2023-08-31T15:37:26.565993 | 2023-08-29T09:10:07 | 2023-08-29T11:30:33 | 17,678,957 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 621 | rd | getForwardRates.Rd | \name{getForwardRates}
\alias{getForwardRates}
\alias{getForwardRates,Scenarios-method}
\title{getForwardRates method}
\description{
Get the forward rates for a Scenarios object.
}
\examples{
scenarios1 <- new("Scenarios")
scenarios1 <- setParamsBaseScenarios(scenarios1, horizon=5, nScenarios=10)
scenarios1 <- scenar... |
3127d2191e4b0c612f1b91c8047faf26874d95e2 | f9189e1a57f733f0fc79f9453008377d4aaa5a3b | /R/selct.R | 2e4985532bc0028fc807d121003c9cb347dfbaad | [] | no_license | junruidi/actcool | 763df94e188f1bd1989432dee8b5ac21fd8cbbfe | 09d563e6f391290342a9cbba1ebbb899460399e0 | refs/heads/master | 2020-06-10T21:01:07.379576 | 2016-12-14T21:05:26 | 2016-12-14T21:05:26 | 75,874,984 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 499 | r | selct.R | #' selct
#'
#' This function selects a daily activity record given ID and day
#' @param data dataframe containing subject-day level activity count
#' @param id id of the subject
#' @param day day number of the subject
#' @return a vector containing daily activity record
#' @keywords selct
#' @export
#' @examples
#' dat... |
099c96be3bbcba90a8fc3383205973b69125b210 | 8949716b21f47957f0b572875ce34d8e46a5f33c | /Week6-SumSquares.R | 5ecaf0eab2a03ae805bbcfd4552ded6ad8aaf06c | [] | no_license | Ali93NY/Linear-Regression-Class | 1b1ada65ea046e934c2709da95e1df46d9634ece | 9eec1c5315dc1880b4b919065e71eac6057cc2bd | refs/heads/master | 2020-09-19T22:53:24.072917 | 2019-11-27T01:37:59 | 2019-11-27T01:37:59 | 224,317,163 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,403 | r | Week6-SumSquares.R | # Get data
data <- read.table("http://users.stat.ufl.edu/~rrandles/sta4210/Rclassnotes/data/textdatasets/KutnerData/Chapter%20%207%20Data%20Sets/CH07TA01.txt", header = FALSE)
data
# Changing the variables to have more meaningful names
names(data)[1]<-paste("X1")
names(data)[2]<-paste("X2")
names(data)[3]<-paste("... |
017538104eab6ff0907c3803eb2684e42dad2c84 | 8b0bd121bc542c9431dec1d385c3376ab4238d0b | /runDESeq2_transcriptomeGenesContrastGroups.R | 02731bde046134795234be63bc2c6df6b38bc92d | [] | no_license | USDA-ARS-GBRU/RNA-seq_JNV1 | 5e13481d53394c15d499905faa0473daf82f5356 | 10f5a1913ffb2cf23d0c5912c029b74190547ad7 | refs/heads/master | 2021-09-17T06:32:06.803104 | 2018-06-28T16:21:20 | 2018-06-28T16:21:20 | 126,068,873 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,128 | r | runDESeq2_transcriptomeGenesContrastGroups.R | args <- commandArgs(TRUE)
colData <- read.csv("experimentDesign_4level.txt",sep="\t",row.names=1)
summary(colData)
head(colData)
countData <- as.matrix(read.csv("geneskallistoNoRiboRNACounts.txt",sep="\t",row.names="geneID"))
summary(countData)
#countData["FVEG_10402","tg1b4hrOpen_42738000"]
all(rownames(colData) %in% ... |
2386b70d9341dda0fe973a8f1134d4cb29da1f8e | 3593fdf70b57effc2abff5004209220aac2c7f41 | /R/Stats_NPRatio.R | dfb43c703cbf486fc78ef64f6a3b320729286b78 | [] | no_license | ShunHasegawa/WTC_IEM | dcc00054709c59acf226044c5aa3ddcc09b6da16 | 3ffb6c0f306ac366e61d6a2e5de02c26da30501d | refs/heads/master | 2016-09-06T10:46:05.650853 | 2015-08-31T21:06:30 | 2015-08-31T21:06:30 | 20,788,741 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,792 | r | Stats_NPRatio.R | ## --------Stat_WTC_IEM_ChMean_NPRatio
#############
# N:P ratio #
#############
## ---- Stat_FACE_IEM_Analyse_NP
############
# NP ratio #
############
bxplts(value= "gmNP", data= IEM_DF)
bxplts(value= "NP", data= IEM_DF)
# use log (geometric mean)
Iml_NP <- lmer(sqrt(gmNP) ~ temp * Time + (1|Chamber)... |
06be10f3960cbf0668f7fbc2ba5000c57043175d | c3543b71b1914937d460ca7409da9653dbeff7d4 | /R/Rpostgis.R | 64ba74a7424af65dec1ec618f743b14406b0c2ca | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | jmlondon/Rpostgis | 655dc460eb3aa0246ab3b6a6c5165ff315643f5e | e79078dc997a2cedba0e8319a5c4b58e8da1b00c | refs/heads/master | 2021-01-01T17:22:03.107814 | 2015-05-19T02:20:37 | 2015-05-19T02:20:37 | 35,519,803 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 615 | r | Rpostgis.R | #' Rpostgis: A package for import/export of spatial data from PostGIS
#'
#' Rpostgis provides simple access to PostgreSQL/PostGIS spatial databases
#' without the need to build the rgdal packages from source (pre-built binaries
#' on CRAN are not built against the PostgreSQL/PostGIS libraries). Initially,
#' the focus ... |
3a3157d9ab1b476d5df5574b092736d845aa9028 | 29d87698c80e23cad4d31dafad48fee6a4e899fb | /R/models.R | 2fa2090542ce06c67848abe7b309672fb6aaf4f2 | [] | no_license | fostergeotech/Vs30_NZ | 56459df71b8d0148bf89cfe548a78b5f707c69bf | 2760af63199f48ed326e370ccfd9ec8a78891aa2 | refs/heads/master | 2020-04-10T15:42:52.496050 | 2020-01-16T22:39:57 | 2020-01-16T22:39:57 | 161,119,831 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,868 | r | models.R | # models.R
#
# all models - general functions for calling specific models
#
# the model lists are used by other functions to
# decide which models are applicable in a given context.
# For example, the geology map processing script assigns Vs30 on a
# per-polygon basis and therefore does not / cannot use slope.
# So i... |
666e851d4fd0e7afc9023a9b265fc2ca4ca9ef68 | 7c39da976f28af016e5b1f847e68473c659ea05d | /man/listFusionData.Rd | 8f85212f3fe7416f2365fa8d3742be10106fe70a | [] | no_license | cancer-genomics/trellis | b389d5e03959f8c6a4ee7f187f7749048e586e03 | 5d90b1c903c09386e239c01c10c0613bbd89bc5f | refs/heads/master | 2023-02-24T05:59:44.877181 | 2023-01-09T20:38:36 | 2023-01-09T20:38:36 | 59,804,763 | 3 | 1 | null | 2023-01-11T05:22:52 | 2016-05-27T04:45:14 | R | UTF-8 | R | false | true | 427 | rd | listFusionData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uniprot.R
\name{listFusionData}
\alias{listFusionData}
\title{Collect fusion-related data into a single list}
\usage{
listFusionData(rlist, fusions)
}
\arguments{
\item{rlist}{a \code{RearrangementList}}
\item{fusions}{an object returned by ... |
d753280d33a247b582fbf352880a8f26fd5e4e3c | 2ef9859dc1c051598bbce26fa88450d21567882e | /Code/2_Data_Analysis/table_figure_log_reg_model.R | 5001700286d6f75c304b8c7fa650f1d2ae29739a | [] | no_license | noispuc/Peres_etal_PublicHealth_Socio_demographic_COVID19_mortality | 745a636354f8dd06634c50229d6760b189930d5e | 62f0522fcad5fbaa37c265c1265f2d1f66ee6970 | refs/heads/main | 2023-03-01T20:53:33.095112 | 2021-02-04T21:42:08 | 2021-02-04T21:42:08 | 328,505,306 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,674 | r | table_figure_log_reg_model.R |
# Libraries ---------------------------------------------------------------
library(tidyverse)
library(lme4)
library(broom.mixed)
library(gtsummary)
# Data input --------------------------------------------------------------
srag_outcome <- vroom::vroom("Input/srag_filtrado_08_08_modelagem.csv.gz")
srag_descritiv... |
63a2d0e82c5ffee80d178b6a12005be28c6aa13c | b42f987b112121ca39d1bdc12e598028009f2a62 | /tutorial_follow.R | ca751bc1fd58eb195a65a84b3ccb447fbdfc8c4e | [] | no_license | marinereilly/herring2019 | c623b92485f48eed88f4f18b5ca19d770ee94d89 | ddab46d3f29c568176ac7b3ae019c650253bc5e6 | refs/heads/master | 2020-07-13T06:13:59.773141 | 2019-09-04T18:57:08 | 2019-09-04T18:57:08 | 205,013,403 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,484 | r | tutorial_follow.R | #Quick Analysis based off of https://rviews.rstudio.com/2017/09/25/survival-analysis-with-r/
library(survival)
library(dplyr)
library(ggplot2)
library(ggfortify)
library(ranger)
#Load and Prep data
herring<-read.csv("Herring_from_history.csv")
View(herring)
herring<-herring[,-1]
herring<-herring[,-c(15:16)]
herring<... |
a841ad2a76b83020555e0b941ba81fe57edd80c3 | 36f8dd36e5dae24e8dcabf6efcf6f94277c3e9d5 | /cachematrix.R | 7869fb1dd2afa611247dae05e446c7ff2c020f03 | [] | no_license | ZofiaProkop/Rprogramming | 30d6b107b646cadc50e06c7f22324cd4c080570a | 61bf6009f8a5878dabe50717d84b81dfc1ae489b | refs/heads/master | 2021-01-23T11:56:18.468449 | 2015-07-22T13:22:49 | 2015-07-22T13:22:49 | 39,502,915 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,066 | r | cachematrix.R | ## this pair of functions will work together to calculate and store the inverse of a matrix passed as an argument to the first of them
## makeCacheMatrix takes a matrix as an argument and creates a list containing 4 functions: set, get, setinv and getinv (see comments below)
makeCacheMatrix <- function(x = matrix()) ... |
7aad53476596490d71ac82971640c973bbc58221 | d153fbff4387eefdd765af1bf177294a18baeeaa | /data/raw-data/top_journals_for_cran_cites_articles_per_year.R | 509b82f26a9a836b66abf0f3ccafee663431550b | [] | no_license | benmarwick/March-2019-Cambridge-Big-Data-Archaeology | 36c764c5a8608012b6973fc91c5896731efd841e | 46e6c49b04f868b9625cb848f2952b512240f60f | refs/heads/master | 2020-04-29T23:02:05.489775 | 2019-03-28T08:16:25 | 2019-03-28T08:16:25 | 176,465,241 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,323 | r | top_journals_for_cran_cites_articles_per_year.R | # total number of articles per year
# copy-paste from WoS year filter
top_journals_for_cran_cites_articles_per_year <-
data_frame(year = 2007:2017,
total_number_articles_PLOSONE = c(1230,
2717,
4404,
... |
ba4c19d42512784b60a7ac18637eaa4513f890a3 | d7b37c417aa39d293fdea631f7f44acf6099861f | /tests/testthat/test-fetch_catalog.R | 17f7224454e6eec1ecbfeb5960b598ee97a9c666 | [
"MIT"
] | permissive | iecastro/healthdatacsv | b96c4af532b3bbfd57661aa77f59721423be0c75 | 03f7f854bf6e98cad4527ad3f84717fac2567ff9 | refs/heads/master | 2021-07-11T04:10:40.827369 | 2020-11-05T13:25:14 | 2020-11-05T13:25:14 | 217,180,336 | 11 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,088 | r | test-fetch_catalog.R |
test_that("output is tibble", {
skip_on_cran()
expect_is(fetch_catalog(), "tbl_df")
expect_is(fetch_catalog(agency = "Centers for Disease Control and Prevention"),
"tbl_df")
expect_is(fetch_catalog(keyword = "adopt"), "tbl_df")
expect_is(fetch_catalog(agency = "Centers for Disease Control and Pr... |
1813649ae9a45dd5a700482ffc07756ffc518053 | b07be4526114276ea7e874279336f7657289cee9 | /featureSelectors/RFE.R | 5843fd9634454b3e3237c5093feaf09918946791 | [] | no_license | mmwind/RPredictionTestingWorkbench | f8bd6c018b2e87489394e3e25bc2d9e782217cbf | 870643a4dc374e34068c9805795e4f4b2ea61e5a | refs/heads/master | 2021-01-11T21:37:16.861446 | 2017-01-13T05:58:34 | 2017-01-13T05:58:34 | 78,819,836 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 581 | r | RFE.R | #Select the most informative features using Random Feature Elimination
library(caret)
library(mlbench)
# function returns selected feature subset
RFE <- function(training){
targetIndex <- "Target"
xtrain <- training[,-length(training[1,])]
ytrain <- training[, targetIndex]
# define the control using a... |
30f57e1a0d928601ee3df780c811960ddbbe524c | 58f7e798793e68a9b22d767782d1e5e0bdde7755 | /src/01_pipeline/00_Quarterly_Census_of_Employment_and_Wages_TO_DISK.R | 0323b9e2a89a6c6c46910314fbc501f309b1a4df | [] | no_license | tjvananne/dataoftheunion | b661e1fb654738ddc5c6cdc8af3ad5928525abb7 | 6dd67de84532dcefdc8a5dd43c821164d2f6e3bb | refs/heads/master | 2022-01-20T05:53:11.141499 | 2021-12-30T19:39:31 | 2021-12-30T19:39:31 | 173,947,402 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,960 | r | 00_Quarterly_Census_of_Employment_and_Wages_TO_DISK.R |
# Quarterly Census of Employment and Wages
# download and unzip to DISK (low memory solution)
# I'm targeting a machine with ~8GB RAM so that
# most people can also run this code
# INFO ------------------
# This script has been built with the intention that it is
# entirely reproducible. No need to go download a... |
00879345333ca75e514638eed674f3a0d139bf55 | 0dfe50e7f553927442a27ed4b1cf366216b06727 | /examples/raw-material-outcome/process-troubleshooting.R | dd6bab8e0efd4fe76ed8c141a96b23d689b377a9 | [] | 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 | 4,753 | r | process-troubleshooting.R | rm <- read.csv('http://stats4.eng.mcmaster.ca/datasets/raw-materials-data-take-home.csv')
y <- as.numeric(as.factor(rm$Class))
X <- rm[,3:8]
library(car)
some(rm)
rm.pca <- prcomp(X, scale=TRUE)
rm.P <- rm.pca$rotation
rm.T <- rm.pca$x
rm.P
var(rm.T)
mean(rm[,3:8])
sd(rm[,3:8])
c1 = rm$Outcome == "Adequate"
c2 = rm$... |
9d5e0f5832fbe94aa40f79965e7648b13d9aa7a4 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/11122_0/rinput.R | 8ded2b598012b2b420569c62d09a9b178830ba8c | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | rinput.R | library(ape)
testtree <- read.tree("11122_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11122_0_unrooted.txt") |
e22ca040fc1176f7708b78efbf4627ca9a4bbd44 | b6348fac2cf708bfee8a395cedc04ec33df84e2f | /man/getFragments.Rd | 1e632377562ceedae98202151d1d05989c3b5eaa | [] | no_license | cpanse/uvpd | 51d1c369fe883ed064855eb1ace65b560099581f | 4dad6d8f2f1e4062c95625aeb78dbb405ae5fa5a | refs/heads/master | 2023-03-17T11:21:36.320033 | 2021-03-11T13:30:07 | 2021-03-11T13:30:07 | 119,033,863 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 666 | rd | getFragments.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uvpd.R
\name{getFragments}
\alias{getFragments}
\title{get all fragments of a SMILES code}
\usage{
getFragments(smiles = "CC(C)(C)C(O)C(OC1=CC=C(Cl)C=C1)N1C=NC=N1", ...)
}
\arguments{
\item{smiles}{}
}
\value{
a \code{data.frame} containing t... |
a56d53832e812fe4ff7709acad768853b9ecd7a7 | d65ef7502086af48cadc9a19e9c9b2c05bb2c37f | /tests/testthat.R | f9bdc5b4a00d92f3b9681fdf49d3dc1d456fd953 | [
"MIT"
] | permissive | kravitz-eli/metaRek | a72664370c7e5980096ad33577f93cc86aa77722 | 1176fbd864af862aabadcc7cf7a122155cf19708 | refs/heads/master | 2022-12-14T02:16:15.494468 | 2020-09-22T19:02:06 | 2020-09-22T19:02:06 | 297,743,256 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 58 | r | testthat.R | library(testthat)
library(metaRek)
test_check("metaRek")
|
3d6c16399d7a96175de36be6366a9498ab4d8594 | 5b55d8d4a1e6275605e7e740cfb3cec5528b485b | /R/modeG.R | 1179d1fa72fab4c04e63f129eb237e5b29aae675 | [] | no_license | cran/MasterBayes | 2103a6dfddb562c02b37f32c79ca51bce477a6e6 | a2bbdc296453f21114f7fd9e1a8d825ed6d86730 | refs/heads/master | 2022-07-23T18:11:50.598009 | 2022-06-22T12:00:10 | 2022-06-22T12:00:10 | 17,691,892 | 1 | 2 | null | 2017-09-27T20:22:15 | 2014-03-13T02:32:13 | C++ | UTF-8 | R | false | false | 404 | r | modeG.R | "modeG"<-function(postG, threshold=0){
id<-rownames(postG[[1]])
G<-as.list(1:length(postG))
names(G)<-names(postG)
n<-sum(postG[[1]][1,])
for(i in 1:length(G)){
an<-allele.names(as.genotype(colnames(postG[[i]])))
G[[i]]<-as.genotype(colnames(postG[[i]])[apply(postG[[i]],1,which.max)], alleles=an)
... |
af79be2bcc12c20dbd59d44536efc26a908f316b | e272e1a291f4ae00dc3f783a46daa383275403cb | /R/timeStackProbaV.R | f19040555d6bce35e2adb201637f1b874cd5c9c7 | [
"MIT"
] | permissive | johanez/probaV | 84a49a30ea8155e58a3c34bbdbabc1257faca8d8 | eea7c7ad91555bab7b02448e71a156917c5e5581 | refs/heads/master | 2021-01-10T09:53:18.362963 | 2016-12-12T13:31:58 | 2016-12-12T13:31:58 | 44,959,172 | 4 | 2 | null | 2016-11-02T16:23:23 | 2015-10-26T09:42:43 | R | UTF-8 | R | false | false | 1,341 | r | timeStackProbaV.R | #' @title Build time stack from probav images
#'
#' @description Stacks Prova-V layers.
#' @author J Eberenz
#' @param x Character. Directory of a Proba-V geotiffs or list of filenames.
#' @param patttern Character. As in \code{\link{list.files}}
#' @param orderChrono Logical. Wether to oder the stack chronologically. ... |
82c6597bdf630187d10b598b7a5fd9ead83c0009 | 80805e40084dd2b38bc988dfdfd821391848e293 | /man/getIsotopeAddList.Rd | 012dbd8e784848feb591540b5c8979845384545a | [] | no_license | AspirinCode/masstrixR | b7b685ced0446584aa7443972b7eb7bf449e754d | 844348cf0773f6548a838b1af64810384068698f | refs/heads/master | 2020-04-27T20:50:05.036069 | 2019-03-07T13:20:21 | 2019-03-07T13:20:21 | 174,672,525 | 0 | 1 | null | 2019-03-09T09:14:02 | 2019-03-09T09:14:01 | null | UTF-8 | R | false | true | 327 | rd | getIsotopeAddList.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Utils_Formula.R
\name{getIsotopeAddList}
\alias{getIsotopeAddList}
\title{function to get the differences between monoisotope and isotope}
\usage{
getIsotopeAddList()
}
\description{
function to get the differences between monoisotope and iso... |
9c64ada4fc4ae3e3d98055c4b3b551695f362de3 | 882384720aaad106f30d2893574483ec664c6ca9 | /jason/cubs.R | a60e048b0f8b2bc2c6d6c867ca0abdc64f573359 | [] | no_license | imouzon/dmc2015 | deb1bfb5a25955b289726e48723b7e736f71f8b6 | 8a1aa31a7a917501a9a1b5a96c313685591a31b7 | refs/heads/master | 2020-12-24T19:17:58.268371 | 2015-06-29T11:36:59 | 2015-06-29T11:36:59 | 33,014,468 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,912 | r | cubs.R | ## cubs stands for "coupon upper bounds". This function reads in the type of
## data we're using and outputs a data frame with columns:
## couponID: self-explanatory
## upper.bound: the smallest possible value of (product + coupon)
## num.orders: how many orders the coupon was used in
## unique.basket.vals: how many un... |
ba667ce868fb53500d8c498c982874ee6eace3fc | 1e2d95ba8862d5d8c596013539acb9f6d228f18e | /man/annotate_cna_seg.Rd | ad1a0e8d821bcfaf65078d00e1be3ce298bd906b | [
"MIT"
] | permissive | jmonlong/scCNAutils | 507501f12bad7fe2ce3f5af5b710169f814739e9 | 37028ecc7796b056976a9bf5c2b0e9a6882c1ba2 | refs/heads/master | 2022-05-01T15:27:58.414469 | 2022-04-26T03:08:34 | 2022-04-26T03:08:34 | 155,943,135 | 8 | 8 | MIT | 2022-04-21T06:30:28 | 2018-11-03T02:39:09 | R | UTF-8 | R | false | true | 623 | rd | annotate_cna_seg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotate_cna_seg.R
\name{annotate_cna_seg}
\alias{annotate_cna_seg}
\title{Annotate CN segments}
\usage{
annotate_cna_seg(seg.df, hmm.df)
}
\arguments{
\item{seg.df}{a data.frame with segment information}
\item{hmm.df}{a data.frame with bin ... |
5a26888479d81f02623c0495949c73daac6e7036 | bad7f450ff3647f6c4011ca4a1ef4dc0fbe21d87 | /Cluster_analysis/103_4_swing_histogram.R | 2318ded635b3d1c0a5e7a83c80dad81e78474a62 | [] | no_license | DominicOH/Research_Project_Analysis | eac1d5acff695dd12ed65b0d4c1fc45eec4c17c7 | 337b36aaabf0ce09e2b0c5f72702b18c7cbf1190 | refs/heads/master | 2023-08-04T04:12:12.417352 | 2021-09-18T11:09:02 | 2021-09-18T11:09:02 | 375,396,165 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,315 | r | 103_4_swing_histogram.R | # Packages ----
library('tidyverse')
library('factoextra')
# Source ----
load('Data/swing_dend_data.RData')
# Concept ----
# Making a histogram out of the swing data. Point is to show how much of the
# samples are apical swinging.
# Dataframe ----
# turning the swing dataframe with fold changes into just a dat... |
477bebaf9c226a3cf0c6f9505ae6f2c48eaa5046 | 8c9598a06fb0b1b7a00eb74e63a1ed2cd8329eb5 | /R/EventCountStat.R | e2e4e93738c64462ae85150abd2f44fc3942d304 | [] | no_license | gpaux/Mediana | 1653df59542b80cb3951ce453f8450261b48a752 | e3a7d7f49292f1f3e4b91e831d957353b798df36 | refs/heads/master | 2021-06-08T22:45:10.395261 | 2021-05-29T12:54:24 | 2021-05-29T12:54:24 | 39,732,450 | 22 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,307 | r | EventCountStat.R | ######################################################################################################################
# Compute the number of events based on non-missing values in the combined sample
EventCountStat = function(sample.list, parameter) {
# Determine the function call, either to generate the statisti... |
d9f4d37e255ce79bc956c5717e4ca15a8d2d27b1 | 362a6f84d689dec7eabdcdd3cf6be03b41141a82 | /start.R | f268bdf3537baa8d30f3a5cbfc132f8b0e60ea57 | [] | no_license | yship1002/use_infercnv_locally | 349dad229d6213f796c1ca22f8d4ab26c47dd467 | 28d63bc1c589f66ec881c4296defd9150a3f7d6f | refs/heads/main | 2023-06-03T04:32:16.955211 | 2021-06-14T18:20:59 | 2021-06-14T18:20:59 | 376,917,510 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,476 | r | start.R | #!/usr/bin/env Rscript
library(infercnv)
args <- commandArgs(trailingOnly=TRUE)
raw_counts_matrix <- args[1]
raw_counts_matrix <- "/lustre/project/wdeng7/R_LIB_Share/Library/infercnv/extdata/oligodendroglioma_expression_downsampled.counts.matrix.gz"
annotations_file <- args[2]
annotations_file <- "/lustre/project/wd... |
9a1cca4ac5fe9b7984ba02a028134d8b176fb0fa | 2f33e51b4937b0c5b9ed6ef12e60ce1d38f254c6 | /R/2020/2020_Week30_AusCatOutcomes.R | 7ed2abef502b69e137bc41af69843184e7aaca4e | [] | no_license | MaiaPelletier/tidytuesday | 54c384d5a631957e76af83ac9f734f87638536e6 | ed25cf98fbafaaedc76df729d6170f143d7ddc5e | refs/heads/master | 2021-10-12T00:13:01.730556 | 2021-09-27T20:28:35 | 2021-09-27T20:28:35 | 219,841,220 | 15 | 7 | null | 2020-12-04T14:23:40 | 2019-11-05T20:10:06 | R | UTF-8 | R | false | false | 2,907 | r | 2020_Week30_AusCatOutcomes.R | # Week 30: Australian Cat Outcomes --------------------------------------------
# Load libraries
library(dplyr)
library(ggplot2)
library(forcats)
library(wesanderson)
library(ggtext)
library(cowplot) # once again, {cowplot} saves the damn day
library(here)
library(mythemes) # my personal theme package
# Set my custom... |
2ecad1b2f8bec50443793236b42e2d545b920829 | 8f9a7f8a781e030178239e0153387f75ae1582f9 | /man/retrieve_gs_colnames.Rd | f8050f53c011a84cc915258f4050fe34ddf0bfe5 | [] | no_license | meerapatelmd/gUnit | fefe35524a76779a5fd24586d73f05f177b2d1ab | cbfe7309ceee4a7f30a4519f9fbffa910ec0ea65 | refs/heads/master | 2023-01-21T03:38:09.108929 | 2020-11-29T09:25:36 | 2020-11-29T09:25:36 | 211,777,544 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 377 | rd | retrieve_gs_colnames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/retrieve_gs_colnames.R
\name{retrieve_gs_colnames}
\alias{retrieve_gs_colnames}
\title{Get colnames every tab in Google Sheet}
\usage{
retrieve_gs_colnames(gsheet_name, system.sleep = 2)
}
\arguments{
\item{gsheet_name}{name of Google Sheet}
... |
22ffcb09d18164c989d853e9d36a1dde365072d5 | 7bb3f64824627ef179d5f341266a664fd0b69011 | /Probability_And_Statistics,_4th_Edition_by_Morris_H._Degroot,_Carnegie-Mellon_University_&_Mark_J._Schervish,_Carnegie-Mellon_University/CH3/EX3.3.9/Ex3_3_9.R | 3003fa0c8a97a18c7bdde82e7cdde75f06f4e03c | [
"MIT"
] | permissive | prashantsinalkar/R_TBC_Uploads | 8bd0f71834814b1d03df07ce90b2eae3b7d357f8 | b3f3a8ecd454359a2e992161844f2fb599f8238a | refs/heads/master | 2020-08-05T23:06:09.749051 | 2019-10-04T06:54:07 | 2019-10-04T06:54:07 | 212,746,586 | 0 | 0 | MIT | 2019-10-04T06:03:49 | 2019-10-04T06:03:48 | null | UTF-8 | R | false | false | 1,110 | r | Ex3_3_9.R | # Chapter 3 - Random Variables and Distributions, Section - 3.3 (The Cumulative Distribution Function), Page No. - 115
# A function 'C' is defined in order to calculate combination of 'n' items taken 'k' at a time.
# Variables 'N' and 'D' are declared in the function definition of 'C' for calculation operations.
... |
b0519d8164eed50b0ef37e5544a38e14e8789544 | f543f63fb9d310fb9d171f063ad4f89d0b119765 | /cachematrix.R | 36b8c3656179c0d16d3b343d47b1f326f1b80af7 | [] | no_license | manthaappu/ProgrammingAssignment2 | d0e664e216c045b9066b03eb04f0e5367f92bf9a | 91b361cf7ec720428028c7dba895a79c66ffa27c | refs/heads/master | 2020-12-30T23:22:27.351440 | 2014-11-22T08:00:34 | 2014-11-22T08:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 701 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inverse = NULL
get <- function() x
set <- function(new) {
x<<-new
inverse <<- NULL
}
getInverse <- function() inverse
setInverse <... |
0a2b087513347ceee45cd05f2fb64a6b3c527ffb | d1e1c9b25aebcea37927c08a8f344713562b3e42 | /man/F4-mu.GE.Rd | b6839970e5edf5b4e2b68f3a0301529d45f39271 | [] | no_license | cran/muStat | 43783938835cae3e7a5afb5f8285f9b36ec8b07d | a77f2af75558f6a558d1044945f6085281655361 | refs/heads/master | 2021-01-17T06:33:48.507309 | 2010-09-17T00:00:00 | 2010-09-17T00:00:00 | 17,697,709 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 989 | rd | F4-mu.GE.Rd | \name{mu.GE}
\alias{mu.GE}
\title{ GE Matrix }
\description{
\code{mu.GE} returns a matrix with each element denoting the logical
value if one value is greater than or equal to another.
}
\usage{
mu.GE(x, y=x)
}
\arguments{
\item{x}{ data matrix, variables as columns }
\item{y}{ second data m... |
7e561f1f9ed39f04da82a734b5b5eef59cac910d | e27b406119a999d6359e51c445413c6a41132ff2 | /cna_all_counties.R | 4300a97c2ab545af25d676f741de10de6623936e | [] | no_license | pcollin5/kingsport | ce1662d08f4cbdd5ec498bf051b37a523884d833 | 6e6c0bead01d41bf4a195e12ce564a6280ccfd0d | refs/heads/master | 2020-12-23T17:10:50.875217 | 2020-07-14T19:36:54 | 2020-07-14T19:36:54 | 237,213,361 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 129,734 | r | cna_all_counties.R | ####load packages####
pd_packages <- c("tidyverse", "tidycensus", "leaflet", "mapview", "DT", "sf", "report",
"knitr", "rmarkdown", "kableExtra", "RColorBrewer", "tigris",
"directlabels", "officer", "flextable")
lapply(packages, library, character.only = TRUE)
####load the data#####... |
2c68414e9e23dd3ea2d1df2b305a6211d6bd4531 | a85e536f8cbe2af99fab307509920955bd0fcf0a | /RBuildIgnore/removed-from-package/test-evalFormula.R | 7c0a1271fa94d9dd51ccd72157532710409736e6 | [] | 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 | 229 | r | test-evalFormula.R |
context('evalFormula()')
test_that("subset works ", {
expect_equivalent(
evalFormula( age ~ sex, data=mosaicData::HELPrct, age > 50 )[1:3],
evalFormula( age ~ sex, data=subset(mosaicData::HELPrct, age > 50))[1:3] )
})
|
b6217d1c98454dfee5e3a210aaceecd0037022a3 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /OTclust/man/otclust.Rd | a8b0577dc867ff7da05be9815be4e8e85945c4aa | [] | 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 | true | 1,598 | rd | otclust.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/otclust.R
\name{otclust}
\alias{otclust}
\title{Mean partition by optimal transport anlignment.}
\usage{
otclust(ensemble, idx = NULL)
}
\arguments{
\item{ensemble}{-- a matrix of ensemble partition. Use \code{ensemble()} to generate an ensem... |
46f731589bc275b7a6a44a13e7f402f554c97593 | 9745a42ad7584ccc68137f7bacf951d3c94016bc | /R/methodObjPredict.R | 335482829ddafb3616e1e50294d1eccad53abb57 | [] | no_license | cran/modelObj | b65383ed0619a835221280c102c5da9080a4bbf0 | 51d19b44de626ec114d6d9f0f019fb639ed60da7 | refs/heads/master | 2022-06-18T19:01:17.279906 | 2022-06-07T07:30:09 | 2022-06-07T07:30:09 | 37,216,508 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,634 | r | methodObjPredict.R | #' @include methodObj.R
#
# Class \code{methodObjPredict}
#
# Extends class \code{methodObj} to indicate that the method is a prediction
# method.
#
# @name methodObjPredict-class
#
# @slot newdataName A character giving the formal argument for input data.frame
# @slot objectName A character giving the formal argumen... |
6ef0252785e9daa40e574394599807033ff4091b | 022a0c5fe9106bb1c43db54e645abaad14193bf4 | /man/imageGreenhouse.Rd | 2be709e09b9927c9ea9eda256f3cc2ad485a1edb | [] | no_license | sanchezi/phisStatR | 98b58c71dd9ec9c28b9d4a07fa08417a6691f58e | 3bc7cb2d5a6e504eed6ac48a2f3060eaca1b5bbf | refs/heads/master | 2020-08-29T15:28:14.418532 | 2019-11-14T14:55:09 | 2019-11-14T14:55:09 | 218,074,545 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,447 | rd | imageGreenhouse.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphicalFunctions.R
\name{imageGreenhouse}
\alias{imageGreenhouse}
\title{a function for representing a trait in the phenoarch greenhouse}
\usage{
imageGreenhouse(datain, trait, xcol, ycol, numrow, numcol, typeD,
typeT = 1, ylim = NULL, ty... |
45444524ab88c4a22e722b0a87cac09825704369 | 5db4628e475e98b4980e932e1c707f5602b0572c | /week6_posc207_Sunny.R | 2df0b0a6623550c1caa473e823ad02c690f0f387 | [
"MIT"
] | permissive | Gabe1991/POSC_207 | 69a051bc99832da73364329234e12a1d0eb8701c | 1ea8e32ec3c76f63e72409e73b69e6abaa709329 | refs/heads/master | 2020-03-19T23:25:56.931186 | 2018-06-05T07:05:03 | 2018-06-05T07:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,968 | r | week6_posc207_Sunny.R | #############################
# Sunny Shao #
# Basic Classes and methods #
# Week 6 #
#############################
library(tidyverse)
rm(list=ls())
setClass("cmps_2016", representation(data = "data.frame",
groups="character"))
#################################... |
4eefcc6d004418185b70ff284384ecb53e2e6e9a | 427be10822d3cd82d1053c88b705366a29ecc346 | /scripts/community_stats_clemente.R | 42d71e092f6f6e754168dd6ec6af59c3c6ef6ed1 | [] | no_license | ajaybabu27/microbiome_pdb_pipeline | 3f6284af2d123096475a062e1eb195563a3ac8a2 | 34d1a8f79cd306bce5adb599d037e7df0434d1a3 | refs/heads/master | 2021-06-09T04:17:57.516140 | 2020-12-24T23:16:58 | 2020-12-24T23:16:58 | 139,446,230 | 0 | 1 | null | 2020-12-24T22:42:44 | 2018-07-02T13:17:52 | R | UTF-8 | R | false | false | 9,420 | r | community_stats_clemente.R | #Author: Ajay
#Date: 10/10/2017
#Description: Generate abundance charts for Clemente Lab Microbial Community libraries
args = commandArgs(trailingOnly=TRUE)
#Sets the directory containing abundance tables of Clemente MC libraries as working directory.
setwd(args[1])
#Read abundance file
summary_df=read.table(file='... |
c69f2d0fb6bebf4f7ac65a55c1d665be55ef7e41 | 6a8856f2818f3ee31060dde25fab1ef3003dc9ba | /plot5.R | 32824c5198c83f79025701507c0ca1043275e438 | [] | no_license | roundse/ExploratoryDataAnalysis-Project2 | 6bbb979d001c2ece41605ccf068d2cd104e7e631 | 199b6de8c4eebcd4dc8d7fed30bc0bd579edba69 | refs/heads/master | 2020-04-08T14:29:31.922864 | 2018-11-28T03:39:24 | 2018-11-28T03:39:24 | 159,439,070 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,043 | r | plot5.R | # Step 1: Load data and subset appropriately.
data <- readRDS("summarySCC_PM25.rds")
correct_years <- subset(data,year=="1999" | year == "2002" | year == "2005" | year == "2008")
balt <- subset(correct_years,fips=="24510")
# Step 2: Get all motor vehicles (i.e., those that
# are of type on-road.
mv <- subset(balt,balt... |
3a3c6d33f3cbe84433f6855d3ddb352454285bc9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/widals/examples/fun.load.Rd.R | b22c27ce6c66719b9256c2074bd93beff3520cea | [] | 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 | 2,739 | r | fun.load.Rd.R | library(widals)
### Name: fun.load
### Title: Stochastic Search Helper Functions
### Aliases: fun.load fun.load.hals.a fun.load.hals.fill fun.load.widals.a
### fun.load.widals.fill
### Keywords: ~kwd1 ~kwd2
### ** Examples
### Here's an itty bitty example:
### we use stochastic search to find the minimum number ... |
c92330c641a291b169d8a4124242b7d9c18f15ad | 87d40842a98dc8d752f0babe560c51f99ebbc47b | /R/Updated/dummy.R | e7a1afd1a9014015aca63e0dfc231905dd6e5247 | [] | no_license | Allisterh/SVARdoc | 83a2f6d30edd571d692a58c5279e6ffcdd0f1a40 | fc3eaa55bb4ebaf57f7f8c3ed8053df04a0e48bd | refs/heads/master | 2023-04-04T13:41:54.833426 | 2021-04-22T15:07:53 | 2021-04-22T15:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,462 | r | dummy.R | # Create dummay variables----------------------------------------
# Dummy Variables###########################################################
# D1
# Q386 to Q188 (55 to 61 in d) and 3 to 9 in da is an interest rate shock for
#spread 1. It does not happen with spread 2.
# is this needed ? d[120:121,]
da$D1=0
da$D1[... |
e59bc501a59f3cc4ee702dde8a44b07b4c8124cb | 7762a70d7bf436bf2349147134f97d61d5e9b492 | /counts/headTail.R | e522945a5f38837c1f84abf165ce816dbea52dbb | [] | no_license | ploverso/R-analysis-scripts | 41c7cde1315b7e32f344f50b39515d46c7c0f9f8 | f7466df7be1397c5bb01eff60fc64fd44d9da657 | refs/heads/master | 2021-01-02T09:34:10.282435 | 2015-06-26T03:14:11 | 2015-06-26T03:14:11 | 38,087,675 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 326 | r | headTail.R | # Some simple functions for more succiently returning heads and tails of strings
strtail <- function(s, n) {
if(n < 0){
return(substring(s, 1 - n))
}
else{
return(substring(s, nchar(s) - n + 1))
}
}
strhead <- function(s, n) {
if(n < 0){
return(substr(s, 1, nchar(s) + n))
}
else{
return(substr(s, 1, n))... |
c9fbe838e6a927fbb9ba10afa6a1e1532efc1ea0 | 855f1ee3fb2a694355652ce86a59134c110f834f | /src/structures.r | 47ed61408bbcd1131b7a4695afc13c6f97ab1452 | [
"CC0-1.0"
] | permissive | fvafrCU/programmieren_in_r | 9d59131460bb01096c40ceddfdbe96f4403c83c5 | 12ce454e66304ac7bf702d8b4305444d8b9e5b44 | refs/heads/master | 2021-01-10T11:06:52.122948 | 2018-07-20T06:16:01 | 2018-07-20T06:16:01 | 48,226,799 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,920 | r | structures.r | species_shares_1987 <-
structure(list(species_group_label = structure(c(8L, 17L, 4L,
10L, 11L, 16L, 3L, 5L, 13L,
7L, 1L, 9L, 14L, 2L, 6L,
12L, 15L),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.