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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da1c32131ca39777aae69fcae686ac3e954c1f2f | e92f5c95c8c17f4b2dc8d754fd212fd4fcc4c8b4 | /data-raw/oraciones.R | 6580a98f31a8ed8acf92a59583c20cc194dae5dd | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cienciadedatos/datos | de1cab523ce46ed1b1d86dbb4f947ba9e58ff432 | 6008b75bfc68e2e8332fe92c37f5ec59361fa4f4 | refs/heads/main | 2023-07-20T12:01:18.032448 | 2023-07-17T12:50:37 | 2023-07-17T15:10:53 | 140,963,726 | 37 | 34 | CC0-1.0 | 2023-07-17T12:52:14 | 2018-07-14T17:07:44 | R | UTF-8 | R | false | false | 3,200 | r | oraciones.R | # From `dput(datos::oraciones)` (245b4af)
# Googling "latin small letter a with acute" and so on
# a "\u00e1"
# e "\u00e9"
# E "\u00c9"
# i "\u00ed"
# o "\u00f3"
# u "\u00fa"
#
# n \u00f1
oraciones <- c(
"Las casas est\u00e1n construidas de ladrillos de arcilla roja.",
"La caja fue arrojada al lado del cami\u00f3... |
1e0cc38d24e84ef9d55d6db4bad81026c02387ac | d8abe01116e043544cbb198ad054c7969da022eb | /readyData.R | f1791f959466e85fc1d2382137a3c3f727e775ae | [] | no_license | rpsoft/POPMI | 0b9478f1dc3f647c240acfb4280bf75f76e9e261 | 6acfa0ecf9aeb40357c40317a0afe899b86bd764 | refs/heads/master | 2023-01-21T22:54:24.921825 | 2020-12-04T23:42:46 | 2020-12-04T23:42:46 | 318,381,158 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,600 | r | readyData.R | library(tidyverse)
library(plumber)
library(future)
options(future.globals.maxSize= 891289600)
joint_probs <- readRDS("data/joint/joint_probs.rds")
joint_cvd_pop <- read_csv("data/pops/simPop2.cvd.cvd.500.14nov20.csv")
joint_mi_pop <- read_csv("data/pops/simPop2.mi.mi.500.12nov20.csv")
cvd = readRDS(file = 'data/con... |
ed4ed99c003d7bf798d16dfb4c64aff6e06123da | f78c451bc1d7892e6684f92413b20515fddc8936 | /R/get.adjacency.norm.R | e40e1d41d392acf1abf74fbc7a473793e724fc03 | [] | no_license | alexjcornish/DiseaseCellTypes | 3336f0bd93406ddad021c1ee2d6c467cc834080f | ea5d62898549eacf653f3c388d86ceb4af05eef0 | refs/heads/master | 2021-01-19T08:46:26.242215 | 2015-09-02T09:03:56 | 2015-09-02T09:03:56 | 27,534,586 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,049 | r | get.adjacency.norm.R | get.adjacency.norm <- function(
g,
edge.attr
) {
# compute a column-normalised adjacency matrix to be used to compute the RWR distance
# function outputs a row for each vertex in g and a column for each vertex in g
# a sparse matrix is always output
# g should be an undirected igraph object and ... |
e3bc4c84f106e0a4d317f6a1a70da5aa5b4fe702 | 364c91054852403d0f124b7349e030b4bda407a1 | /dev/matchingAlgo/correlation.R | b3d18f5135e9cb448129fa8c5e4df982fd25f9ec | [] | no_license | sanathkumarbs/gradscout | d54e5ff7b6388dc3240c80fda5a130123e910735 | 9a8aca269aa10ceaadff5aa8d30064d7dc97e15b | refs/heads/master | 2021-01-11T19:05:11.470698 | 2017-05-31T05:25:26 | 2017-05-31T05:25:26 | 79,312,168 | 2 | 1 | null | 2017-04-06T01:33:21 | 2017-01-18T06:51:58 | HTML | UTF-8 | R | false | false | 432 | r | correlation.R | library(data.table) #loading data.table library in my R workspace
library(ggplot2) #loading ggplot2 library in my R workspace
library(corrplot) #loading corrplot library in my R workspace
GS <- data.table(University.Quantitative.Data) #loading dataset University.Quantitative.Data
summary(GS) #summarizing the dataframe... |
2de49ffb9505c322c6599d4b8e24e54dc46fd5fc | af656e348cf17aaaa54ee2ec3fe83b5e7a927b39 | /Challenge_3/makeAdmixturePlot.R | 604ef5db538446daf0dd7e8e7688ae45fbd9e54d | [] | no_license | sivasubramanics/Julich_PhD | 891322a13c9d2c8e010bb386a814f56f2f4d2efd | bfb04e13ad5416ff9cfddabe36cea248b64fd68d | refs/heads/master | 2023-04-05T21:42:58.635800 | 2021-04-11T19:51:10 | 2021-04-11T19:51:10 | 356,939,155 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,565 | r | makeAdmixturePlot.R | #! /usr/bin/env Rscript
# title :makeAdmixturePlot.R
# description :This script will generate Plot for Admixture Qmatrix.
# author :c.s.sivasubramani@gmail.com
# date :11042021
# version :0.1
# usage :Rscript makeAdmixturePlot.R
# notes : This script expects... |
f7b12813a994b9e550ca8db3bd4fcab7e0c1d0cb | 4a0426ecc2d49c81f990d3ddc34b401f2893694f | /R/grad_descent.R | cedd78cc517b3924fc95039af1d5a152b38ccb35 | [] | no_license | Yannuo10/bis557 | 2d90922e5a05b9d3b5dae4e88cbfc666a670c867 | 913885913db2691871102904f2fcb3b24664a9f0 | refs/heads/master | 2023-02-01T05:43:09.501516 | 2020-12-19T05:05:45 | 2020-12-19T05:05:45 | 296,765,930 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 976 | r | grad_descent.R | #' @title grad_descent() function
#' @description another way to build a linear model. gradient descent for ordinary least squares
#' @param form a formula;
#' @param data a data frame used for the function;
#' @param contrasts a list of contrasts for factor variables
#' @param itr number of iteration
#' @examples
#' d... |
94d1163f0aca3a00ef6a67019fba111375e3a30a | d57bfd5bbefab86d21ed46b4e15f1d489c61bcbc | /man/shypo.Rd | 85cf2b4cd036976b9601be4e12c852bdec068766 | [] | no_license | cran/smovie | 553d3d6441a762a4b538699c47d028ad4e5c995a | 9a05f94188335a1b79a98bdfa4011bbcbc3033e8 | refs/heads/master | 2021-11-24T16:55:00.478591 | 2021-10-31T04:30:02 | 2021-10-31T04:30:02 | 123,954,735 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,538 | rd | shypo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_hypotheses.R
\name{shypo}
\alias{shypo}
\title{Testing simple hypotheses}
\usage{
shypo(
mu0 = 0,
sd = 6,
eff = sd,
n = 10,
a = mu0 + eff/2,
target_alpha = 0.05,
target_beta = 0.1,
panel_plot = TRUE,
hs... |
e89f0df18a1a456eb3ca87c09a2e7a877630a555 | 958cdec963f4e7ed6f2e7f264613809898ce2971 | /scripts/make_mutspec.R | 826152b13e0bc7ce8e8d8846fadba16361dd6a07 | [
"MIT"
] | permissive | merckey/mc3_icgc_variant_pipeline | 642f671a2a0e6d0d4fe93170bfff4d6a7014de17 | b01eb4b9c678467e29b899c2ed602d37d41575dc | refs/heads/master | 2020-11-24T01:22:25.745657 | 2019-10-22T17:56:49 | 2019-10-22T17:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,861 | r | make_mutspec.R | library(data.table)
library(UpSetR)
library(dplyr)
library(ggplot2)
library(reshape2)
library(RColorBrewer)
library(scales)
library(gplots)
#DEVELOPMENT ONLY######
#args <- c("processed_data/exome.broadbed.gaf.maf","processed_data/genome_broadbed.gaf.maf", "figures/mc3_mutspec.pdf","figures/pcawg_mutspec.pdf","process... |
00d30285617f3f666aa35dc8918582da19576195 | 2444432aa75e2a6340420a44ac91d88f204537ce | /man/gibbs_sampler.Rd | f97544ef340bfd57e2faa8ad56d9bf2684dc0a46 | [] | no_license | guhjy/bcfbma | 03bbe6aafdce9cff39722f817b90c9b9b0116e4b | fe7911143a30c49d919d7048f7646856ec8a8f82 | refs/heads/master | 2020-08-08T14:48:06.976746 | 2019-10-07T11:27:19 | 2019-10-07T11:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 537 | rd | gibbs_sampler.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{gibbs_sampler}
\alias{gibbs_sampler}
\title{Obtain draws from gibbs sampler}
\usage{
gibbs_sampler(overall_sum_trees_mu, overall_sum_trees_tau,
overall_sum_mat_mu, overall_sum_mat_tau, y, BIC_weights, num_iter,
burnin,... |
6d3fa7c034391717ca15faecb51e42e8a30ff9c0 | 7f2f9299ced47b047fd38491c5a49992afd3fd0e | /run_analysis.R | 2a5e484988b262c2162cc5e73f581c474b07269e | [] | no_license | hamish222/Coursera-Course-3 | edf381b5492d59e65578eb9f17bd91e22b4eaf55 | e811968f641732935c117146c54c40bb142ec49d | refs/heads/master | 2021-01-10T11:33:53.029442 | 2016-02-29T02:46:07 | 2016-02-29T02:46:07 | 52,757,817 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,580 | r | run_analysis.R | ## Set the working directory.
## setwd("C:\\Users\\Hamish\\Documents\\Educational Materials\\Coursera Data Science\\Course 3\\")
## Use source("run_analysis.R") at the command line to run this script .
## Available at https://github.com/hamish222/Coursera-Course-3/tree/master.
## Part 1
# Load test data.
testda... |
b0da84074d860f45426abe91edd87de46a8a0e58 | 73cbe254a53b69f07c32721a28be92970f25f758 | /load_project_data.R | c4b38b09ea745906e28e20bfecf91c20df30d092 | [] | no_license | pradhyu/ExData_Plotting1 | cd4d207696bf6d0acba2684dfd99f4034752270d | 3cdf115c040e86e5c8349af1e8cf4cead033028e | refs/heads/master | 2020-12-31T03:03:58.626195 | 2016-05-08T15:05:51 | 2016-05-08T15:05:51 | 56,355,812 | 0 | 0 | null | 2016-04-15T23:43:10 | 2016-04-15T23:43:10 | null | UTF-8 | R | false | false | 1,365 | r | load_project_data.R | # current working directory should be the repo which has the R files for this project
library(httr)
data.Url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
# create data directory if it doesn't exists.
data.folder <- "data"
if(!file.exists(data.folder)){
dir.create(data... |
6e790314905189f5143c15c6120e87aa836a7219 | f010762b3f997669ba84738fcec95e8cb5b23f60 | /allele_freqs/distance_from_H.r | ee1cdbc6f3931c5f6f8d6f38174553fedf5f17b1 | [] | no_license | nriddiford/Investigating-structural-variation-in-cancer-genomes | 7f9d26ebfad3449adee1fe6ac40ef24ca7b133b3 | 51d208f8b5e245027b31aa1e6aad4e61815e4dcb | refs/heads/master | 2021-09-05T10:17:07.740646 | 2018-01-26T10:14:21 | 2018-01-26T10:14:21 | 72,754,078 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,740 | r | distance_from_H.r | library(plotly)
library(ggplot2)
library(scales)
#setwd("/Users/Nick/iCloud/Desktop/snp_data/data")
setwd("/Users/Nick_curie/Desktop/script_test/snp_data")
path = getwd()
file.names <- dir(path, pattern =".txt")
for(i in 1:length(file.names)){
cat("Processing", file.names[i])
snps<-read.delim(file.names[i], h... |
1e1b43fe43275698afc6902cbf8f097c02842797 | 37c17847af9fff4d45272b81560cdbb71f7a9135 | /Kurstag4_rskript.R | c0dd462a09ac56dfbbdba688eb3e96181f2bea0e | [] | no_license | LSBurchardt/Kurs-Statistiksoftware_R | 1df617adee82a603e4fa3f73131b80f5ddd93b6c | 6afa75454caef92d620c6cf2c8bbf13dbe2789c1 | refs/heads/master | 2020-05-24T10:09:24.695575 | 2020-05-04T14:15:04 | 2020-05-04T14:15:04 | 187,221,640 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,990 | r | Kurstag4_rskript.R | #################################################################
#Statistiksoftware R
#Dozentin: Lara S. Burchardt, l.s.burchardt@gmx.de
#
#24.05/25.05
#21.06/22.06
#
################################################################
#4. Kurstag
# 00: Pakete laden -----------------------------------------------------... |
c429eecdb1fc75700def1cd15ff6bc1959194c02 | 6ac9cab2e20f60a877a88a7e85998240a1a13b32 | /exercises/EDA/CHIS.R | a2416e24f42b101d6a32087746c6d552848d2a6b | [] | no_license | ankit-sharma90/SpringboardDSCourse | 365b632efc1d44c94f0cf040a573d96be1f35c78 | a5cad3b0639055becda04b2ddb464c315f43bf95 | refs/heads/master | 2023-03-01T19:46:47.188840 | 2021-02-09T19:30:37 | 2021-02-09T19:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 711 | r | CHIS.R | # Plot so far
p
# Position for labels on y axis (don't change)
index <- DF_all$xmax == max(DF_all$xmax)
DF_all$yposn <- DF_all$ymin[index] + (DF_all$ymax[index] - DF_all$ymin[index])/2
# Plot 1: geom_text for BMI (i.e. the fill axis)
p1 <- p %+% DF_all +
geom_text(aes(x = max(xmax),
y = yposn,
... |
143960dfc4a0c1a87d5546c3bbf514cc640d05d0 | 1b13ba6821b4d9780cf8faceccb465c9e1255b08 | /R/Scripts/get_saker.R | 835eb91e0662f952b4da86dee588d442a42e8e5a | [] | no_license | emanlapponi/storting | 7213ad63f3a5868dc2e0f686780e393545b34b16 | b043d54ca25b4956c120580267e9b227c88f0fd0 | refs/heads/master | 2021-01-19T03:00:20.578031 | 2017-06-19T11:50:26 | 2017-06-19T11:50:26 | 54,019,041 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 552 | r | get_saker.R | rm(list = ls());gc();cat("\014")
library(dplyr); library(pbmcapply)
# Loading data ######
dagsorden <- read.csv2("./Data/dagsorden.csv", stringsAsFactors = FALSE)
url_base <- "https://data.stortinget.no/eksport/sak?sakid="
path <- "/media/martin/Data/saker_raw/"
done <- sort(gsub("[^0-9]", "", list.files(path)))
sak_... |
767fd649d538c14085381fe0f7acccf3947691c1 | 276bd8306aeb9fc90c5a63f57ef21407a59dddd1 | /plot6.R | 9fad0d44b182c385a35cfc3fde45a9eeae2f28d7 | [] | no_license | MichaelSzczepaniak/ParticulateMatterStudy1999to2008 | cbcd61fc4d62994903d2b217843e5e4c2dc4bacc | 2003f8f8d6acad8edcf05bcf835d5544aa93d117 | refs/heads/master | 2016-09-06T00:55:18.122313 | 2015-08-23T23:16:48 | 2015-08-23T23:16:48 | 40,325,000 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,018 | r | plot6.R | ##
## Generates a 1 x 2 panel plot of the PM25 motor vehicle emissions
## normalized by 1999 Emissions levels for Baltimore city and Los Angeles
## county from 1999 to 2008. For details see:
## https://github.com/MichaelSzczepaniak/ParticulateMatterStudy1999to2008
##
## The criteria used for determine which records a... |
91dab45f8d450fe4427138bc47a70ed87d32fef7 | 0e0fb77df671d38ab424ac14d9fc91b7fd0d1318 | /R/rrna.R | f716aefae920c571b183b1aa7e071eb1381e0fb4 | [] | no_license | giraola/taxxo | 7d30f52474d6113e288dfa42297365c0e5ecd5ef | ba9a33a357b6267e11857659b28156f7540d92b1 | refs/heads/master | 2021-01-13T16:56:52.251231 | 2017-09-13T20:58:41 | 2017-09-13T20:58:41 | 77,538,782 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,753 | r | rrna.R | #' rrna
#'
#' Outputs a individual rRNA gene sequences and a multiple sequence alignment.
#' @param path is the full path to where genomes in fasta format are placed.
#' @param pattern a pattern (like '.fasta') for recognizing the genome files.
#' @param outdir a name for the output directory that will be created for r... |
b40583aa54a76098aceb2afcf544acfe396d207a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/GPareto/examples/crit_EMI.Rd.R | 3684e95d533f0d9c2904d965e8c8eb7414b9a100 | [] | 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,503 | r | crit_EMI.Rd.R | library(GPareto)
### Name: crit_EMI
### Title: Expected Maximin Improvement with m objectives
### Aliases: crit_EMI
### ** Examples
#---------------------------------------------------------------------------
# Expected Maximin Improvement surface associated with the "P1" problem at a 15 points design
#------------... |
bd2d858fa76beb70204eadb68c2cd4963c9c713c | 5bd4b82811be11bcf9dd855e871ce8a77af7442f | /gap/man/LD22.Rd | a8a1d539c814cd8bbce44a375db108611577b273 | [] | no_license | jinghuazhao/R | a1de5df9edd46e53b9dc90090dec0bd06ee10c52 | 8269532031fd57097674a9539493d418a342907c | refs/heads/master | 2023-08-27T07:14:59.397913 | 2023-08-21T16:35:51 | 2023-08-21T16:35:51 | 61,349,892 | 10 | 8 | null | 2022-11-24T11:25:51 | 2016-06-17T06:11:36 | R | UTF-8 | R | false | true | 1,505 | rd | LD22.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/2ld.R
\name{LD22}
\alias{LD22}
\title{LD statistics for two diallelic markers}
\usage{
LD22(h, n)
}
\arguments{
\item{h}{a vector of haplotype frequencies.}
\item{n}{number of haplotypes.}
}
\value{
The returned value is a list containing:
\... |
e95c0a9ee76cf6d7f958b0def87cd518906e8209 | 68fbefe55a62483086fb54bb516b069cef3229f9 | /global.R | fbb481469092bb713ec78142b823e3867f7f1336 | [] | no_license | Argaadya/shiny_covid | f9ee81527662d5fbb77a11761520882403fa01a9 | a2afc1acee1ec54beb343989e3b67975756549dc | refs/heads/master | 2022-12-19T02:31:40.571583 | 2020-09-18T08:05:06 | 2020-09-18T08:05:06 | 292,202,042 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,309 | r | global.R | library(shiny)
library(shinydashboard)
library(dashboardthemes)
# data wrangling
library(dplyr)
library(tidyr)
library(lubridate)
# visualization
library(ggplot2)
library(plotly)
library(scales)
library(glue)
library(leaflet)
# Import Data from John Hopkins University
case_confirmed <- read.csv("h... |
9fb815b392a4149ec01eae8948a33671f9bd846e | e6366e79d87ff74e54e73776690265b49c0c74fa | /cachematrix.R | 3968c54afeaad9fcaa28ffb804be1057179d9303 | [] | no_license | Nicbars/ProgrammingAssignment2 | c4d90aa0b4ed40b027155263fbae05574e4fad08 | 0db75fc440504381290a6302aea09620a97d964b | refs/heads/master | 2023-08-24T07:52:59.726355 | 2021-10-27T13:02:43 | 2021-10-27T13:02:43 | 414,578,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 820 | r | cachematrix.R | ## The goal in this repository is to write functions
## using "makeCacheMatrix" to get the inverse of the matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setmatrixinverse <- function(inverse) m <<- inverse
getmatrixinve... |
528a853c46888690c6531c63c3242b605d5f10ba | 40418557df079d403dcbbd0840711e6a924cafda | /deepsolar.R | 35400e19b1e04d8caf99c6e65290cf5bc1c1a889 | [] | no_license | Angel-GM/deepsolar | 4041ef9ab99559fffcd43fe0d659dcd93d15aa5d | e5802c8b697c71dd0a797af376a062b7b5c11364 | refs/heads/master | 2022-08-03T08:27:19.942354 | 2020-05-19T10:04:26 | 2020-05-19T10:04:26 | 265,210,632 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,258 | r | deepsolar.R |
library(dplyr)
library(glmnet)
library(randomForest)
library(ggplot2)
library(reshape2)
library(gridExtra)
library(cowplot)
solar = read.csv('deepsolar_ny.csv' )
set.seed(0)
# Excluding targer var and other nonfeature vars.
X = solar %>% select(-solar_system_count,-county, -state) %>% data.matrix()
y... |
ff34d55868bf21519055c0c31d39a9b9ed95820e | 356a111876127015ba131f1ff4891901016f1ad9 | /STATISTICAL_INFERENCE/ScrptR_examples_sampling distribution.R | b12991f103e379c9dcb27ff2456e0f193ce97ff1 | [] | no_license | htnani/IBSTATB | 0deb7c07b6f64861732e717c1ab0455dcc13efe0 | bd92145ed906f88db33240fe75de6da92767ca7b | refs/heads/master | 2020-04-01T20:08:21.206493 | 2017-09-12T13:52:33 | 2017-09-12T13:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,343 | r | ScrptR_examples_sampling distribution.R | library(lattice)
# Example: Sampling distribution of the variance
install.packages("lattice")
library(lattice)
n<-5
vec.var<-c(rep(0,500))
for(i in 1:500)
{x<-rnorm(n,mean=5,sd=2)
vec.var[i]<-var(x)*(n-1)/(2^2)}
qqmath(vec.var,distribution=function(p)qchisq(p,n-1),main=paste('Q-QPlot
Chi-Square,n=',n... |
b251fc8ed150128be83e1a198b4bd2f67ed6b2e1 | 126053dbd6fae0697106d6c6ef9d33430e27848e | /Basics of Language/whileloop.R | b9bf394d67c9acbce08c00b90ee19f7d289175ed | [] | no_license | 777shipra/R-Beginners | 7cff5c02b7fe61bfcba9667f69cd894d992ee1f0 | cee55837a0fec006544a4d5aa01e3c7fc31efe8b | refs/heads/master | 2020-03-31T02:14:03.206678 | 2018-10-20T13:52:58 | 2018-10-20T13:52:58 | 151,814,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 268 | r | whileloop.R | #<-------------------Structure----------->
while(condition){
statements
}
#<-----------------Examples------------------->
while(TRUE){
print("hello")
}
#press esc for terminating infinite loop
counter<-1
while (counter<12){
print(counter)
counter<-counter+1
} |
38855280e8ca8cd8fd43b5b49cc6162b5ca7ea6b | 266fd6d604513251119fc891f4b389fca9b73ed0 | /R/theme.R | 70deb8bb49707f84c5e545c6cb4c9acc59f1a1c5 | [] | no_license | christopherkenny/ei | 58b511984556d4cf71d56e56333c3a83eae0d7b2 | c28b8eb59e6a2ce5fb1cbedacc770b478b1a6a06 | refs/heads/master | 2023-09-01T11:35:47.665557 | 2021-09-09T16:28:13 | 2021-09-09T16:28:13 | 400,650,628 | 0 | 0 | null | 2021-09-09T16:28:14 | 2021-08-27T22:39:11 | R | UTF-8 | R | false | false | 118 | r | theme.R | theme_ei <- function() {
ggplot2::theme_bw() +
ggplot2::theme(text = ggplot2::element_text(family = "Times"))
}
|
771767a40483dbbbfb451b4d9362b02645f06fb2 | e21e28dcbe64bff4766b3b8607ceb48e7d8727ac | /run_analysis.R | e57d39780250557c0ef1d1a54f2a810c307fb2d6 | [] | no_license | darrenredmond/getting_cleaning_data_project | 29187877a748b19bf0a6e5f0494750f9c544a9b6 | 9b1694fe8cca6d16f66e7a5bf00c38982df4b17b | refs/heads/master | 2021-01-11T09:15:59.258612 | 2016-12-22T23:43:58 | 2016-12-22T23:43:58 | 77,176,413 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,706 | r | run_analysis.R | # set the working directory.
setwd("~/dev/coursera/johns_hopkins/getting_cleaning_data_project")
# read in the feature
feature_data <- read.table('UCI HAR Dataset/features.txt')
# read in the activity data
activity_data <- read.table('UCI HAR Dataset/activity_labels.txt')
names(activity_data) <- c('y', 'activity')
#... |
f3792ac5613dac656a9cd82cb0946c1a1abf87c9 | 7db7ca4aea3b8d0557248beb1b4f559e6eb10809 | /R/onLoad.R | 4ee90abfe5cda01ae36d205cacd8e42cc67dcf61 | [] | no_license | tera-insights/gtBase | aabbbb7ec58bf1beb75879decf35832e628874d9 | bfbc7459923456895ab99143a5020bdfdf536720 | refs/heads/master | 2020-05-22T00:03:44.268580 | 2017-06-06T14:42:37 | 2017-06-06T14:42:37 | 25,822,663 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,869 | r | onLoad.R | .onAttach <- function(libname, pkgname) {
grokit <<- new.env()
## A list of alias names that have been generated. It is kept in the form of
## type -> vector pairs. Tame should be the type of name being generated, such
## as waypoint, input, output, etc. Each vector should be named and numeric,
## where a gi... |
f720ed14a161634e7899b47a588cf6fcedaf83f8 | 81780d7000220293b9cecb54d4def069faa7d649 | /R/define_observation_periods.R | 6d1dd7badf034a1b625b376b466f4406159a730b | [
"Apache-2.0"
] | permissive | pwatrick/DrugRepurposingToolKit | 8ef405a602e6e100306365e3c9acf9d4cd56bc2a | 8c0f8c26013b8efec5c89afb68f182e98794bc3c | refs/heads/main | 2023-04-18T10:57:15.211297 | 2022-08-09T11:14:26 | 2022-08-09T11:14:26 | 352,338,175 | 2 | 5 | null | null | null | null | UTF-8 | R | false | false | 1,710 | r | define_observation_periods.R | #' Define baseline and treatment periods
#'
#'
#' @description
#' \code{define_observation_periods} creates baseline and treatment period columns
#'
#' @details
#' This function defines the baseline and treatment period columns from
#' clinical data from electronic health record (EHR) databases that have
#' adopted the... |
dbe2763c3124167f889d994021ba7bc8cee893ff | c5e0e4f054c443978b44e5d78bdf670b131164a9 | /Recreate_geneLenDataBase.R | 1bf2020e4a5076510f9ebe37dbd5963a1bcc88ec | [] | no_license | Quarkins/goseq_dev | 82defe34641dc3c34c0fab0594589bbcf862a6c7 | af0906a6350b9ab6101a71cb26dc7cc5fdbec060 | refs/heads/master | 2021-01-10T16:08:26.360434 | 2016-03-09T21:10:24 | 2016-03-09T21:10:24 | 53,532,080 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 651 | r | Recreate_geneLenDataBase.R | ###################################
# Description: A little script to reproduce the dataset used for geneLenDataBase
# Author: Anthony Hawkins
# Date last mdoified: 07/03/16
####################################
source("downloadLengthfromUCSC.R")
library(limma)
#Read in file with common tables
common = read.table("m... |
b74cf0d00966e05b5b3323453f74fb47120a16c9 | 7be2f6044afbbf654bebca5caa7a7e34b0e75d42 | /R/random_paths.R | bbd34a134e14311380ab49ad60c63fd56a1eae7e | [
"MIT"
] | permissive | KWB-R/kwb.pathdict | b6228fd423dbc6de33094e997644e0a6ed86dd33 | b107485e18408a1bfb0346c785ce28d90fa6b087 | refs/heads/master | 2022-06-16T01:50:12.815755 | 2020-01-10T13:53:33 | 2020-01-10T13:53:33 | 175,963,892 | 0 | 0 | MIT | 2019-03-17T17:17:06 | 2019-03-16T11:33:35 | R | UTF-8 | R | false | false | 2,907 | r | random_paths.R | # random_paths -----------------------------------------------------------------
#' Create Random File Paths Using English Words
#'
#' @param max_depth maximum path depth
#' @param min_chars least number of characters per folder or file name
#' @param max_elements maximum number of elements (files or subfolders) in a
... |
6b00c425a0da7c7468916bbce4c5b133a324167a | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610052252-test.R | 9752b5c3abfa932d61b1cbbf83fa0e46a8cbd536 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 635 | r | 1610052252-test.R | testlist <- list(rates = numeric(0), thresholds = c(-2.30331110816477e-156, -2.30331110816477e-156, NaN, 2.81199605989981e-312, NaN, -8.22918610319053e+303, 4.46108959687689e-140, 3.60297094497336e-306, -1.06556334613796e-314, 9.7020880290895e-310, -1.72138794739967e-296, 2.81199605863994e-312, NaN, -8.229186103190... |
ac06f3325611e3160189dba0cd28d652910e9940 | 41ba1d5e55d42ae9acc5ef3a25b964ef6762d066 | /man/wind.dl_2.Rd | bee65aed0d8237bcd6b8904539c964a00f503780 | [] | no_license | jabiologo/rWind | 81c4b8b92435c7eded44f08e8e12f5cda91b8f3b | 5df183cd7776ec9370c857e57afe3de2b48d1d48 | refs/heads/master | 2022-02-08T04:15:08.014617 | 2022-01-24T14:56:45 | 2022-01-24T14:56:45 | 99,371,080 | 26 | 12 | null | 2021-12-21T16:09:14 | 2017-08-04T18:46:25 | R | UTF-8 | R | false | true | 3,388 | rd | wind.dl_2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wind_functions2.R
\name{wind.dl_2}
\alias{wind.dl_2}
\alias{[[.rWind_series}
\title{Wind-data download}
\usage{
wind.dl_2(time, lon1, lon2, lat1, lat2, type = "read-data", trace = 1)
\method{[[}{rWind_series}(x, i, exact = TRUE)
}
\arguments... |
a9233cf6fd9330737ec5963a2f78dde609773464 | 1b7e5fae2c969553d2d0a8c4e01e09f295595704 | /plot2.R | 1da8392baa244b131796e97936863ae9b3db8ed5 | [] | no_license | kmaratus/ExData_Plotting1 | d839f573a5b0ef199cf61f5226e0d20fbd91294e | fa27d0d81fb44deb97463a018abc18b32bb02e54 | refs/heads/master | 2021-01-12T06:19:44.609703 | 2016-12-25T22:49:52 | 2016-12-25T22:49:52 | 77,341,737 | 0 | 0 | null | 2016-12-25T20:27:59 | 2016-12-25T20:27:58 | null | UTF-8 | R | false | false | 1,044 | r | plot2.R | ##read data header into R
filename<-"household_power_consumption.txt"
header<-read.table(filename,header=TRUE,sep=";",na.strings = "?",nrow=1)
columnnames<-names(header)
ncolumn<-length(columnnames)
##read first column to find start and end date number rows
data<-read.table(filename,header=TRUE,sep=";",na.strings = "?... |
52a7b99868a9c6d91266e61f940ed4127397310d | 61c07605275b7d4d407a40c3bd754b2e686c4be3 | /fechas y tiempo.R | 46c8cc3e91cd12f500ddf2f77d37f91fdd200694 | [] | no_license | sauc117/Programacion_Actuarial_lll | 419b06660d301b0eadcc6b996425fa6c1cb78e9a | d176b02d635505f11a312baab9fa946ea37c185e | refs/heads/master | 2021-09-14T23:12:45.966516 | 2018-05-22T01:37:36 | 2018-05-22T01:37:36 | 119,411,262 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 431 | r | fechas y tiempo.R |
x <- as.Date("1970-01-01")
x
unclass(x)
unclass(as.Date("1970-01-02"))
#POSIXct es un entero muy grande, util para guardar datos en un data frame
#POSIXlt es como una lista y guarda un conjunto de informacion util como dia
# de la semana,dia del aoń, dia del mes, etc.
weekdays(as.Date("1998-07-23"))
weekdays(as.Dat... |
1564a682be664f1a6d8bd3a97b954e7f87a79adc | 86920ac8061f5b29b86733ec332469bf83761202 | /rethinking/rethinking_var_sd_test.R | ddff2ea6d93c04847abac34e4ff9e796e95ce4a1 | [] | no_license | jebyrnes/temp_kelp_change | 64b5c54dd58213d51b356017e2512867ef156e5e | b8891d25038ffab02410e5afd4b81d0f0c4d4cea | refs/heads/master | 2021-10-11T14:11:31.283204 | 2021-10-04T19:53:09 | 2021-10-04T19:53:09 | 51,555,573 | 0 | 0 | null | 2021-10-04T19:53:10 | 2016-02-11T23:36:10 | R | UTF-8 | R | false | false | 815 | r | rethinking_var_sd_test.R | library(rethinking)
make_data <- function(slope =1, int = 1, sd_e = 5, group=1, x=1:20){
ret <- data.frame(x=x)
ret <- within(ret, {
y <- rnorm(length(x), int + slope*x, sd_e)
group <- group
})
ret
}
set.seed(31415)
my_df <- rbind(make_data(),
make_data(slope=5, sd_e=15, group=2),
... |
e89666f3d7a451f325d2e8c7dad5765e09e93270 | 4f88e0337d3374fcf643717e41c8ac3d76f9709a | /R/search.R | 6ca8951bb5db551a90c2bd155c6525e2328d1a9d | [] | no_license | att/rcloud.solr | bc1283b2f50a6e68832b5132518803228bffa3e3 | af3d5d9f3d7d6b7bc1c26a7e03afee13a8ad457e | refs/heads/develop | 2022-03-26T23:26:05.358352 | 2019-12-20T16:04:15 | 2019-12-20T16:04:15 | 80,539,919 | 4 | 7 | null | 2018-02-15T14:18:53 | 2017-01-31T16:43:43 | R | UTF-8 | R | false | false | 2,712 | r | search.R |
#' Search RCloud Notebooks
#'
#' Main search function exposed as an OCAP to the client.
#'
#' @param query Search string
#' @param all_sources Logical: Search single or multiple solr instances?
#' @param sortby Passed to solr for sorting
#' @param orderby Passed to solr for sorting
#' @param start Passed to solr
#' @... |
007cb0d2e6492f12e4ba9a52b0005bea87489e34 | 4c6647e21d6015b2729bc4c2f6e4c9e0ee8a13ab | /man/dictHomerMotifs.Rd | dc31ebeac5c205b7b710695b433fb1921bc7f053 | [] | no_license | mireia-bioinfo/maRge | 67cfd91807e605fce540d4c4f96e55b80e179446 | 99f5823cfb61fe0b0d5700a473f067817fa87595 | refs/heads/master | 2021-06-24T18:00:24.226520 | 2017-08-31T10:23:23 | 2017-08-31T10:23:23 | 94,434,545 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 766 | rd | dictHomerMotifs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dictHomerMotifs.R
\docType{data}
\name{dictHomerMotifs}
\alias{dictHomerMotifs}
\title{Dictionary of Homer Motifs}
\format{A data frame with 53940 rows and 10 variables:
\describe{
\item{Motif.Name}{Name of the motif, as outputed by HOMER.}... |
96c5bfd31bb7d219d2e3eb1c5406432bcafd1bac | 826cc17cd51ccbceeb0b33ee23cab81ccee3932f | /tests/testthat/test-plot_indel_contexts.R | 0bde8c251427d56f02412eb0e7bcd3b6afd32c84 | [
"MIT"
] | permissive | UMCUGenetics/MutationalPatterns | 9b9d38a7ab69d7e29d8900f11fa9fb7ef328cfb9 | ca9caf0d0ba3cd1e13cb909009dc5b3b27b84631 | refs/heads/master | 2023-04-14T23:28:50.852559 | 2022-11-22T11:37:17 | 2022-11-22T11:37:17 | 53,409,261 | 86 | 37 | MIT | 2022-11-22T11:37:18 | 2016-03-08T12:10:11 | R | UTF-8 | R | false | false | 678 | r | test-plot_indel_contexts.R | context("test-plot_indel_contexts")
## Get indel counts
indel_counts <- readRDS(system.file("states/blood_indel_counts.rds",
package = "MutationalPatterns"
))
## Plot contexts
output <- plot_indel_contexts(indel_counts)
output_same_y <- plot_indel_contexts(indel_counts, same_y = TRUE)
output_extra_labels <- plot_in... |
5875d40220aab9f14c8448aa399ae30b0dc8607f | 44cf65e7ab4c487535d8ba91086b66b0b9523af6 | /data/Newspapers/2000.04.29.editorial.23713.0325.r | 63f2024791d2aaa1cf18455d55f5efe4a1365eaa | [] | no_license | narcis96/decrypting-alpha | f14a746ca47088ec3182d610bfb68d0d4d3b504e | 5c665107017922d0f74106c13d097bfca0516e66 | refs/heads/master | 2021-08-22T07:27:31.764027 | 2017-11-29T12:00:20 | 2017-11-29T12:00:20 | 111,142,761 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,252 | r | 2000.04.29.editorial.23713.0325.r | exista o traditie ca de sarbatori oamenii sa isi trimita felicitari .
cu timpul , s - au adaugat si mici atentii . De cind au aparut privatizatii , acestia trimit urarile de bine insotite de o ciocolata , de o cutie cu sucuri , de o sticla cu vin , de o sticla cu sampanie , de un pachet cu cafea .
uneori si obiecte p... |
f9d0a586cb18c340a9fc92297003f271b59e4d30 | 29585dff702209dd446c0ab52ceea046c58e384e | /lifecontingencies/inst/doc/introToLifecontingencies.R | 203d7f281c35a8d9a3e1b035d4911f097e037f6e | [] | 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 | 7,198 | r | introToLifecontingencies.R | ## ----setup, include=FALSE------------------------------------------------
library(knitr)
rm(list=ls())
## ----load, echo=TRUE, warning=FALSE, message=FALSE-----------------------
library(lifecontingencies) #load the package
## ----finmat1, echo=TRUE, warning=FALSE, message=FALSE--------------------
capitals... |
ae45bd86a774a50fb8363bf1bb699c9e40171b6d | fb3ab9e1dd466ec076b5dcba19fe4419a1116656 | /Day 1/1.3.R | 4478001182c60a13ecf9fce267c9e6fbf8d1317f | [] | no_license | eElec/DALab | f4e67a034467286e5d7ee12f6dcbf7ac18b8c77a | 33c1ca7a5e91beded8c6b76264f8342295b0fbe4 | refs/heads/master | 2023-02-16T14:38:45.665532 | 2021-01-14T08:15:23 | 2021-01-14T08:15:23 | 329,549,595 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 134 | r | 1.3.R | roll=1806188
name="Adrish Aditya"
branch="IT"
print("Roll: ")
print(roll)
print("Name: ")
print(name)
print("Branch: ")
print(branch) |
5ee64d20fd48dae2855e76043c79a473a2564313 | de6c16a929ddc7b6d5e212203d62d5e8151d3037 | /Tutorial4_31.R | 2459efb9b9ae7e68fb46846a8db9e377f3796f00 | [] | no_license | arthurnovello/r_course | cea600f4c08b726f73d332703bc30be6bdb2d99d | 8acfebdbf6ac660a71c0553fd17c5827a8066174 | refs/heads/master | 2021-05-05T05:32:50.772137 | 2018-02-03T14:22:42 | 2018-02-03T14:22:42 | 118,685,522 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 262 | r | Tutorial4_31.R | # ------------ Operations with matrices ------------
Games
rownames(Games)
colnames(Games)
Games["LeBronJames", "2012"]
FieldGoals
FieldGoals/Games
round(FieldGoals/Games, 1)
round(MinutesPlayed/Games)
MinutesPlayed
round(FieldGoalAttempts/FieldGoals, 3)
|
969bfce72a95d1b58340d15d8b5afa3c394d8b90 | e434c2f582adcc781e9fd0b7183899aba48e5dde | /scripts/prepdata/ausplots_sites.R | d8315ea4b916df36efa828f58ce4a50a6dcab0ce | [
"MIT"
] | permissive | rubysaltbush/flowering-period-climate | fa87156deebc524ea89fd26dc04776b6d603ecfd | b384e5f95df81dbf40f4d2f4f86dd268ea925a4b | refs/heads/main | 2023-04-17T20:07:30.215796 | 2022-05-12T06:32:51 | 2022-05-12T06:32:51 | 389,864,707 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 260 | r | ausplots_sites.R | # using ausplotsR package access site data from AusPlots and cache csv
# requires internet connection
ausplots_sites <- cache_csv("data_cache/ausplots_sites.csv", function() {
get_ausplots(site_info = TRUE, veg.vouchers = FALSE, veg.PI = FALSE)$site.info
}) |
bb2df86fe73174367710b11a0abb70666016b59f | b50cbb8ef475fbed1f4f808b619ed63297aa8de4 | /PacketMetrics/Tests.R | 940bf17d01846e9f9d122f4d39254dcdef2f00e1 | [] | no_license | jac50/FinalYearProject | 49a7826814cd10996ed16e50aed479e92bf1bfb5 | fbc314d39083fb1442f03c39c7092925f11e34b3 | refs/heads/master | 2021-01-21T12:39:37.414929 | 2014-05-05T18:18:58 | 2014-05-05T18:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,112 | r | Tests.R | # Tests for RunHead
- Sample Size < 0
- Sample Size Too Big
- Sample Size non number
- Directory not valid
- Original File not found
# Tests for createArguments
- argparse not compatible or not found ?
# Tests for initLogger
- Input Tests:
+ Quiet - TRUE Verbose - FALSE . Expected Result: Set to Quiet Mode (lvl ... |
088e47dda78471f97b996f2b437d1ff91895afc5 | 8ad7f68413ee9a4ec8bd868bcb3566755833b56a | /generar_tipo_cambio_trimestral_anual.r | b4d7e1ee3eb38b850e64e9eeaec4bac7a275e028 | [] | no_license | droper/scriptsthesis | 124ce67c7083f022e21063a4135af797503a12aa | e16f8721b2ff5e60dff08445bd9eb3b3677df121 | refs/heads/master | 2021-01-25T08:48:12.036983 | 2015-06-13T01:51:43 | 2015-06-13T01:51:43 | 37,352,260 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,233 | r | generar_tipo_cambio_trimestral_anual.r | # Directorios origen de la data
DATA_TIPO_CAMBIO = "/home/pedro/univs/doctorado/tesis/tesis/material tesis/data_economica/"
TIPO_CAMBIO_CSV = "tipo_cambio.csv"
TIPO_CAMBIO_TRIM_CSV = "tipo_cambio_trimestral.csv"
TIPO_CAMBIO_ANUAL_CSV = "tipo_cambio_anual.csv"
# Se lee un archivo de información financiera
tipo_cambio... |
437e7cba4e4420da82efebc66c8eab847977e801 | 68562f46424bf312d5fe070990243ae03ed1454e | /R/binarizeSNPs.R | 6ac42179eea1795a977fc4b2242080d8f589b9f1 | [
"Apache-2.0"
] | permissive | ANTsX/ANTsR | edb12114bc3d143c59ebd3947301de705ec51b63 | 8deb4d897fdb295a0213ca59e3bf1846f62ce99a | refs/heads/master | 2023-06-24T14:48:05.362501 | 2023-06-24T11:15:10 | 2023-06-24T11:15:10 | 5,782,626 | 86 | 32 | Apache-2.0 | 2023-06-17T12:15:50 | 2012-09-12T16:28:03 | R | UTF-8 | R | false | false | 836 | r | binarizeSNPs.R | .binarizeSNPs <- function(snps) {
if (nargs() == 0) {
print("Usage: x_b<-.binarizeSNPs( x ) ")
return(1)
}
nrep <- 2
binsnps <- (matrix(rep(NA, nrow(snps) * ncol(snps) * nrep), nrow = nrow(snps),
ncol = ncol(snps) * nrep))
binsnpsdf <- data.frame(matrix(rep(NA, nrow(snps) * ncol(snps) * nrep), n... |
fa22f2d7609387ab14bbc30fddad121aed0dd640 | 55af8a760323f6a8f5e3542e404f23e87ebbbdca | /render_rmd.R | d813da084e8aa63f1e5195cc52fea229c4f0bbbf | [] | no_license | petermeissner/ecprwsmt16adcr | 79b8227f762d4960abe2a3417e76fc48032af28d | 03dc54c2cfa34eb5804bfec2ea29b9e24ee40ff7 | refs/heads/master | 2021-01-10T05:33:22.315542 | 2016-03-06T13:08:27 | 2016-03-06T13:08:27 | 53,254,841 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,010 | r | render_rmd.R | #!/usr/bin/env Rscript
# necessary package
library(stringr)
# extracting argument
file <- commandArgs()[grep("--args", commandArgs())+1]
# worker-function
render_rmd <- function(file, try=FALSE){
if( length(file) == 0 ) return("nothing to do")
if( length(file) > 1 ){
lapply(file, render_rmd, try=try )
}el... |
22c40c554ed648a5fd46fa5f3e087f124c24d2f9 | f33eb8d7112fcbc3ca78e0fa1eeb613364bc430c | /R/Orify.R | ae105c00f3eb08c63d06d65e53e357e6b1840abc | [] | no_license | paulhendricks/functools | d49d084b903735d95ec3624186d026cc1afc07fd | 63eb95d538864a953f13cb612359dfa9a8e365d5 | refs/heads/master | 2021-01-10T05:25:45.035861 | 2017-07-01T20:22:57 | 2017-07-01T20:22:57 | 36,077,427 | 13 | 1 | null | null | null | null | UTF-8 | R | false | false | 827 | r | Orify.R | #' Predicate function operator that creates new predicate functions linked by the || operator.
#'
#' @param ... n functions to apply in order from left to right
#' @return A predicate function linked by the || operator.
#' @family predicate function operators
#' @seealso \code{\link{Andify}} to create new predicate fun... |
c4c210ac3b755d8f9d55802c231c65142bbe466a | b8be9f57f05c5e279ff38ff1d0bb7efeb26b4308 | /man/consumption_vis.Rd | ab7b91724b4ed28185329ba57d2c6a0670c63da3 | [] | no_license | Ozeidi/water | aa96f8e451b008f0224da000e8e389a6df492273 | 9aa62d17b217d00346fac920e2d02c66798c2786 | refs/heads/master | 2020-06-17T08:02:26.012796 | 2019-07-08T16:36:39 | 2019-07-08T16:36:39 | 195,854,634 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,167 | rd | consumption_vis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/01.Visualisation.R
\name{consumption_vis}
\alias{consumption_vis}
\title{consumption_vis}
\usage{
consumption_vis(df, contracts_list = NA, scale = "discrete",
fixed_scale = TRUE, file_name = "p", path = getwd(),
output_format = c("png", "... |
4631c101222cfa8da3090c1ffd88888769477fff | b2318f37b16834b822fd946b0586737cfeb45090 | /Clean data EC & PS - no join.R | 55913d067dc87567eae6f2cc7d30e3707b65e72d | [] | no_license | philipjxg/Scrape-Goats | fa0d89abbf54c656f480ab518f48d3d9a062d31c | 0a5dc61aa70431773f9c4d84a378fcfaea962f9c | refs/heads/master | 2020-04-06T06:59:42.681078 | 2016-08-23T13:41:39 | 2016-08-23T13:41:39 | 65,821,193 | 0 | 2 | null | 2016-08-19T13:55:25 | 2016-08-16T13:08:25 | null | UTF-8 | R | false | false | 7,025 | r | Clean data EC & PS - no join.R | library("readr")
library("purrr")
library("dplyr")
library("tidyr")
library("ggplot2")
library("stringr")
library("plyr")
##########################################################################################
##### Political Science ##################################################################
... |
1899476b1578f3bb9bf2a6da96d3393121618918 | f0b63c76d1221a7a859b2692327bbc809b9015f9 | /AES_R/AES+SHA1_sign.R | 779e3a1331b58a6d4045ece0d385805c7f5f9279 | [] | no_license | K-subin/R_Cipher | df5aed824da80cb513cb5f0fdd0d248f2cbeb729 | 7e479eb348a08217d02200fbe8f454551dfbb7a3 | refs/heads/main | 2023-02-19T21:38:44.854572 | 2021-01-18T09:06:54 | 2021-01-18T09:06:54 | 312,599,342 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 893 | r | AES+SHA1_sign.R | #=========================================
# AES (using digest built-in function)
#=========================================
library("digest")
msg_chr <- "Hello! Our Team name is 4. This is LEA Encrypt !"
msg_raw <- charToRaw(msg_chr)
msg_raw
#AES Algoritm Setup
aes_key <- as.raw(0:15)
aes <- AES(aes_key... |
486f335a5b546b8b985a5665625f62a0a72ecb3d | dcc2229cce6a8737f3a8d8e367547a365fcf066f | /man/remove_edges.Rd | 68a99d1546cdb7940a7fd951531b7147f5fbea11 | [
"Apache-2.0"
] | permissive | synalogik-mike/arango-driver | 335090183c67f0f6ca9d7f84fc540072a1f58a97 | 488e8e128ea94131f276a20b1ee605d232ad171d | refs/heads/master | 2022-12-25T04:18:20.366591 | 2019-07-08T06:58:42 | 2019-07-08T06:58:42 | 295,026,977 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 527 | rd | remove_edges.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arango_graph.R
\name{remove_edges}
\alias{remove_edges}
\title{Edges removal}
\usage{
remove_edges(.graph, listOfEdges)
}
\arguments{
\item{.graph}{the graph affected by the deletion}
\item{listOfEdges}{a list of lists containing edges infor... |
95a0165aa344c94125bc5b35abef4e50d8819dcf | 9bf1f830525f8aa8b2f56a95d9f2bf762d773dd3 | /run_analysis.R | f2e9a321f99038d839f66acc3398a34673099b5d | [] | no_license | tynesjo/getcleandata | 0443d08d91beb99f2c18e98d929bb81af358a036 | 77da5ff8e36845b29d7c259b817b993fec15ae6e | refs/heads/master | 2021-01-19T09:57:30.654519 | 2015-06-21T22:54:56 | 2015-06-21T22:54:56 | 37,828,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,316 | r | run_analysis.R | # Script to Acquire and Organize Wearable Tech Machine Learning Data
# ==============================================================================
# Settings.
# ------------------------------------------------------------------------------
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI... |
d28d5c75b49e8a9254685d119a92336855c169d2 | ca2802548f8a961ca6e0fe57d7906f912eb3f221 | /man/order_matchdata.Rd | b68ac5a0c884fa93a39ef30f82c4d2ef76a4589c | [] | no_license | O1sims/FootballStats | 4dca2ebb135922f5ca3beafa7c3206022faea490 | 266d476f5f15d57960f8715d33a766f8fa091daa | refs/heads/master | 2023-06-08T08:48:39.646688 | 2021-06-29T09:07:44 | 2021-06-29T09:07:44 | 381,303,716 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 670 | rd | order_matchdata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classify_utils.R
\name{order_matchdata}
\alias{order_matchdata}
\title{Order Match Dataset}
\usage{
order_matchdata(matchData, formatter = "\%d.\%m.\%Y")
}
\arguments{
\item{matchData}{A data frame that contains rows of single matches
that ha... |
089e416e07582b550d272428c648c8e12515782a | d6a831acab0f09e1292de90f33cbad86fe6ab0e9 | /code/6_R2R_R1_grouped.R | ee9b00d823bea3ff6dbf86f8dbe36e3769b009c0 | [
"CC0-1.0"
] | permissive | yangclaraliu/covid_vac_africa | 1a42f79205ab543d172fbafd13f56ab896a24428 | 5400d14f43cfdd73251621c4de0107ec73509a8c | refs/heads/main | 2023-04-10T20:06:44.570204 | 2023-02-07T21:36:14 | 2023-02-07T21:36:14 | 426,681,664 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,552 | r | 6_R2R_R1_grouped.R | merge_novac_grouped <- function(tmp){
require(magrittr)
tmp$pfizer$non_fatal %<>%
left_join(res_novac_grouped$pfizer[[1]] %>%
rename(novac = value),
by = c("name", "population", "group","year"))
tmp$pfizer$fatal %<>%
left_join(res_novac_grouped$pfizer[[2]],
... |
2de291c4a2a267cebdc9a493946511a679c539f5 | 1ec5ef3b45a275980230031720f98d7878dc5e97 | /plot1.R | 34dd47890a78e95f41720823c2d4af8c7b7876b8 | [] | no_license | courseraRR/ExData_Plotting1 | 67bd55e62590d9b3c3e1459c056ecffb9bd8353b | 99eff103c9cfc1910f515b8371aea7b14ba4a487 | refs/heads/master | 2021-01-14T14:27:52.038785 | 2014-05-10T22:57:11 | 2014-05-10T22:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,029 | r | plot1.R |
#' Script to plot Global Active Power frequence dist
#if necessary download and unzip the data file to current directory
if(!file.exists("household_power_consumption.txt")){
require(utils)
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
"hous... |
26357137a3044d1b596438ccc3a05af195fff500 | d3a83275ed27bf445f2d6ddf967f3c3013dac89e | /NCAA/project/src/features/FeatureManipulation.R | 16187949a3ec01f36fbc8239fd63ade604511cad | [
"MIT"
] | permissive | paridhi1603/NCAA-Prediction | e67cd657f3bada155f3e0afa6b2cb4e0664247f4 | 8236c74831641df7e311d6c680b7f15c28970478 | refs/heads/main | 2023-06-19T04:11:39.745347 | 2021-07-15T20:43:38 | 2021-07-15T20:43:38 | 379,400,771 | 0 | 0 | null | 2021-06-25T18:42:13 | 2021-06-22T21:06:30 | R | UTF-8 | R | false | false | 6,553 | r | FeatureManipulation.R | rm(list = ls())
library(data.table)
library(caret)
library(reshape2)
library(tidyr)
test <- fread('./project/volume/data/raw/MSampleSubmissionStage2.csv')
season <- fread('./project/volume/data/raw/MRegularSeasonDetailedResults.csv')
tourney <- fread('./project/volume/data/raw/MNCAATourneyDetailedResults.csv')
ranks ... |
1976180af646ccad917ce81201e753be6cbaecfe | a5d4010a57f0703d915652d6ff08191b654e1d3a | /cachematrix.R.bak | 1d6faef628e4e53e31903d6fe27089b4c5d6ebfa | [] | no_license | githubds/ProgrammingAssignment2 | be92bd8267b6f2b8221aefd40421e11020faef74 | a7ea2551aad88c2ab9334b4ec99c045a0f0ab515 | refs/heads/master | 2021-04-09T13:50:15.071525 | 2015-03-19T07:56:25 | 2015-03-19T07:56:25 | 32,507,008 | 0 | 0 | null | 2015-03-19T07:28:21 | 2015-03-19T07:28:20 | null | UTF-8 | R | false | false | 1,208 | bak | cachematrix.R.bak | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
##makeCacheMatrix
## input param--1. a square matrix; returns a list of functions
## this function creates an enviornment and initalizes x_inv variable
## enclosing functions
## set --a... |
3702b57e3e0a1c43ab3993059ae842dc45329206 | 0969a8a76b2361bd1301b61503392debe2e454e3 | /Rproject/archive/R/GR_clustering_1.R | 7fe19dbb3ad33ce8a3e0c8940ff7fc0eacc75a5c | [] | no_license | daliagachc/GR_chc | 9a85b133919863769e9d655c2e7c63fa3676177a | c40d7a28e18f1cea4c940af44151e48c8926bf55 | refs/heads/master | 2020-06-01T04:00:06.653784 | 2019-06-13T05:33:04 | 2019-06-13T05:33:04 | 190,622,843 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,015 | r | GR_clustering_1.R | #GR_clustering
minR=0.8
wd=event_GR_wide %>%
mutate(R_00_03=NULL,GR_00_03=NULL,GR_total=NULL,R_total=NULL)
wd=wd %>%
mutate(GR_03_07=ifelse(R_03_07>=minR,GR_03_07,NA),
GR_07_20=ifelse(R_07_20>=minR,GR_07_20,NA),
GR_20_80=ifelse(R_20_80>=minR,GR_20_80,NA),
special=NULL)
wd=na.omit(wd)
... |
f9512951782f6e50339a93406e8ee6cde4f46059 | d810f1775139ce2fc0392d860fdbb85637aec357 | /data-raw/loadExampleData.R | b0da87b1301c67eb5ea2b70508f84fd5007725ab | [] | no_license | SusannaPagni/knitauthors | bc509a0ac406d8909d3d42c59967cf79d60574a0 | 15f87cf98f561cc097d47f463905b2ca5b4ab35b | refs/heads/master | 2023-05-31T14:36:02.528889 | 2016-06-16T15:18:32 | 2016-06-16T15:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 108 | r | loadExampleData.R | exampleInput <- read.delim("data-raw/authors.tab", sep="\t",)
devtools::use_data(exampleInput, overwrite=T)
|
0c1851a84c145e68e3d2f09665c4314eb46d8f39 | 40cf390f349297ad4b12cdcef20577b0ff2d0340 | /R/system.R | f83843b724a307b231c79e7095034591ac58d7e2 | [] | no_license | omegahat/RTimingTools | 2fa1742fb5ddf3f6f4d1555a2ebe50dec4be16b0 | cfcdf8dae2b2303a93cc0cbdb3618145ee682fad | refs/heads/master | 2016-09-06T00:45:11.588514 | 2012-02-22T01:54:38 | 2012-02-22T01:54:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 473 | r | system.R | # Alternatives:
# C code http://gwenole.beauchesne.info/projects/cpuinfo/
cpuInfo.Linux =
function()
{
txt = system("cat /proc/cpuinfo", intern = TRUE)
m = read.dcf(textConnection(txt))
colnames(m) = gsub("\\s*$", "", colnames(m))
structure(
list(mhz = m[,"cpu MHz"],
cache = m[, 'cache size'],
core... |
8e13aa69fc62ceb0c0ea10db2b77c5644f4294e6 | 88e00382da404a7929f346ad82818d5986d3c667 | /run_analysis.R | e7d23feba37e10dbac4574f88b39ab8e0bdb92ba | [] | no_license | jjc0965/getting_and_cleaning_data | 0d4b49203213fdba3f87b46f4a3551b1f5ba87ec | 48c5abe5b930cca5b04d181462f700020919bc01 | refs/heads/master | 2021-01-10T22:13:45.460664 | 2015-03-20T17:18:53 | 2015-03-20T17:18:53 | 32,487,780 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,083 | r | run_analysis.R | ## 1) READS DATA INTO R
activity_labels<-read.table("UCI HAR Dataset/activity_labels.txt") ## Imports the different types of activities into R
features<-read.table("UCI HAR Dataset/features.txt") ## Reads the features data (i.e., "tBodyAcc-mean()-X") into R
train_set<-read.table("UCI HAR Dataset/train/X_train.txt"... |
79c8be389c05b3de40e7532082060e836f541bda | 8572f31d31d0ea012b1b5625e6efb9b944df113b | /2020/week13/R/analysis.R | 4fc7cac3cb9714e06f4c2f9fb845c51306e883f7 | [] | no_license | larsbrenta/tidyt_jkaupp | 0bf5572c230ad4d2d8bc40fd83d0803c8e541681 | 7ce8ae0df2f58b62794a45c90405b5aa561fcc93 | refs/heads/master | 2023-06-12T17:24:52.896620 | 2021-07-06T16:23:03 | 2021-07-06T16:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,209 | r | analysis.R | library(tidyverse)
library(here)
library(jkmisc)
library(janitor)
library(waffle)
library(glue)
library(scales)
tbi_age <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-03-24/tbi_age.csv')
injury_mechanisms <- set_names(unique(tbi_age$injury_mechanism), c("Motor ... |
cb0ae5875366a8dfc90dde5631b50510262135c9 | 79eb7c6958b247770731ee20a5d9be525d8f5ed0 | /exercises/concept/lasagna/lasagna.R | cafa7c4b4a395a03ff0320574eda074fcbc09a21 | [
"CC-BY-SA-4.0",
"CC-BY-3.0",
"CC-BY-4.0",
"MIT"
] | permissive | exercism/r | 345781f314b8a66be047abd889238cba2630a20c | 566676cca76019e3e6a602f8f4d8086c54a51e1e | refs/heads/main | 2023-08-03T09:30:59.027153 | 2023-07-28T00:18:31 | 2023-07-28T00:18:31 | 24,401,761 | 22 | 37 | MIT | 2023-09-05T11:19:45 | 2014-09-24T05:22:10 | R | UTF-8 | R | false | false | 227 | r | lasagna.R | # TODO: define the 'expected_minutes_in_oven()' function
# TODO: define the 'remaining_time_in_minutes()' function
# TODO: define the 'prep_time_in_minutes()' function
# TODO: define the 'elapsed_time_in_minutes()' function
|
8382313196b1b54d0f5076f9b1f9a03e0e24119f | f3244f77367f735f30833a5b6e2b69321a28dfb5 | /man/chronique.figure.preferendums.Rd | 873d67e00d71c48d8d38b934859fbdffdf555950 | [] | no_license | jbfagotfede39/aquatools | 3f36367668c6848ddd53950708222fd79f0e3b7a | 9c12f80919790ec3d0c1ee7f495e9c15cc2c9652 | refs/heads/master | 2023-08-03T09:10:17.314655 | 2023-07-25T08:32:45 | 2023-07-25T08:32:45 | 46,334,983 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,055 | rd | chronique.figure.preferendums.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chronique.figure.preferendums.R
\name{chronique.figure.preferendums}
\alias{chronique.figure.preferendums}
\title{Vues des préférendums thermiques des especes piscicoles}
\usage{
chronique.figure.preferendums(
staderecherche = c("Adulte", "... |
549457eb0d4ad9e300e7b89ad061bb1521a05f90 | 5f684a2c4d0360faf50fe055c1147af80527c6cb | /2020/2020-week38/kids.R | a114660755e392caa7419a3cc5d76e477001fb65 | [
"MIT"
] | permissive | gkaramanis/tidytuesday | 5e553f895e0a038e4ab4d484ee4ea0505eebd6d5 | dbdada3c6cf022243f2c3058363e0ef3394bd618 | refs/heads/master | 2023-08-03T12:16:30.875503 | 2023-08-02T18:18:21 | 2023-08-02T18:18:21 | 174,157,655 | 630 | 117 | MIT | 2020-12-27T21:41:00 | 2019-03-06T14:11:15 | R | UTF-8 | R | false | false | 2,676 | r | kids.R | library(tidyverse)
library(geofacet)
library(colorspace)
kids <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-09-15/kids.csv')
states_abbr <- read_csv(here::here("2020-week38", "data", "us-states-abbr-AP.csv")) %>%
select(state = title_case, ap_style)
libr... |
c1f6c7a51e6ded825bb4aba0c952a80bd936e58b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/paleotree/examples/unitLengthTree.Rd.R | 6f3e08da1ff6edfa38e9db59fea375d971d913e8 | [] | 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 | 226 | r | unitLengthTree.Rd.R | library(paleotree)
### Name: unitLengthTree
### Title: Scale Tree to Unit-Length
### Aliases: unitLengthTree
### ** Examples
set.seed(444)
tree <- rtree(10)
layout(1:2)
plot(tree)
plot(unitLengthTree(tree))
layout(1)
|
077dfe6aa8ffb31a98739987875d0a271ec147d0 | 5be5469a64c3c6a26f7bbda0d6b2d996755396f3 | /plot4.R | 2ef901a5ac350959b839530371919be93a6fb37d | [] | no_license | Slak60/ExData_Plotting1 | c29efd984b0f2c6c0809dbe72e26d5666ff8a986 | 5bde35c4d3a6152fac2cfbdc5233b0d6be2dbe16 | refs/heads/master | 2022-10-26T15:39:45.398905 | 2020-06-16T17:46:18 | 2020-06-16T17:46:18 | 272,774,053 | 0 | 0 | null | 2020-06-16T17:43:19 | 2020-06-16T17:43:18 | null | UTF-8 | R | false | false | 1,442 | r | plot4.R | temp <- tempfile() ## create a temp file to download the .zip file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp)##download zip file
power_consumption <- unzip(temp)## unzip file
## read the .txt file
mydata<- read.table("./household_power_consumption.tx... |
da70d1e7b8d0ec2a97e6021621b0b0341da77bc3 | 7224813a0f5d032aed634a637328e87030dd070d | /R/prepare_models.R | 6ab767f8d08309f6a8de7971b7d64cd6d54d3705 | [
"MIT"
] | permissive | ethanwhite/portalcasting | 3d164472a54e5ae746a668cc848e813e4b795eaf | 03bd42b5a01536a9178e9aeb47046847acda9984 | refs/heads/master | 2023-04-30T20:59:54.178447 | 2022-06-01T00:13:25 | 2022-06-01T00:13:25 | 157,772,725 | 0 | 0 | MIT | 2018-11-15T21:06:31 | 2018-11-15T21:06:31 | null | UTF-8 | R | false | false | 7,968 | r | prepare_models.R | #' @title Read and Write Model Control Lists
#'
#' @description Input/output functions for model control lists.
#'
#' @param quiet \code{logical} indicator controlling if messages are printed.
#'
#' @param main \code{character} value of the name of the main component of the directory tree.
#'
#' @param models \code{ch... |
97f82e3e771548ea9f0b5473c01595758aa6a308 | 6d70e865c21e483f74dd6085fa0cb01f91b04729 | /man/cytoband.col.Rd | 26db63cc4c09130c04a06b9ca905c5122d1db63a | [
"MIT"
] | permissive | dgabbe/circlize | 8eb53ec62425033b46cb9ca652e7c5cc2dec4f61 | a01d0015e1ccd60f6ff2f7a8d568c32f873063f4 | refs/heads/master | 2022-07-17T08:37:49.032202 | 2020-11-23T18:07:17 | 2020-11-23T18:07:17 | 232,622,670 | 0 | 0 | NOASSERTION | 2020-01-08T17:42:35 | 2020-01-08T17:42:34 | null | UTF-8 | R | false | false | 473 | rd | cytoband.col.Rd | \name{cytoband.col}
\alias{cytoband.col}
\title{
Assign colors to cytogenetic band (hg19) according to the Giemsa stain results
}
\description{
Assign colors to cytogenetic band (hg19) according to the Giemsa stain results
}
\usage{
cytoband.col(x)
}
\arguments{
\item{x}{A vector containing the Giemsa stain results
... |
4c9f7b32004dd9d96bccc94607c51a0aff00b5fd | 29ce175254b27a361714074b99fe5644ca2c3158 | /man/data_wings.Rd | 6da340dbafae16e4ca6602eae629919495ea9238 | [] | no_license | raz1/Momocs | 148903d3f05428e72d7cef8ede46c0bba7f80f04 | 09a817bb0720d87969d48dd9e0f16516e042e13e | refs/heads/master | 2021-01-17T18:09:55.724182 | 2014-08-15T14:49:17 | 2014-08-15T14:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 425 | rd | data_wings.Rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\docType{data}
\name{wings}
\alias{wings}
\title{Data: Landmarks coordinates of mosquito wings}
\format{A \link{Ldk} object containing 18 (x; y) landmarks from 127 mosquito wings, from}
\source{
Rohlf and Slice 1990 and \url{http://life.bio.sunysb.edu/morph/data/Roh... |
6151107fd63e57ca653739bbdb8ad939a4c0c4df | c3e7dcf4ac8688519084710e5eb6ec7c557dbfdf | /examples/FH.frac.cal_example.R | ada132007c1fb71cea44b0b96cb35774ee2b16c1 | [] | no_license | lilywang1988/IAfrac | e24df17c15d314cc98257740435236138a154277 | 2c9e5329174937c0a418b93d2cc6f467f1dd20f1 | refs/heads/master | 2021-06-24T19:29:02.958609 | 2021-03-07T07:59:48 | 2021-03-07T07:59:48 | 202,036,400 | 1 | 1 | null | 2021-03-07T07:59:48 | 2019-08-13T01:16:18 | R | UTF-8 | R | false | false | 2,036 | r | FH.frac.cal_example.R | # Examples for FH.frac.cal
# install.packages("devtools")
# library(devtools)
# install_github("keaven/nphsim")
library(nphsim)
eps<-2 # delayed effect
p<-0.5 #treatment assignment
b<-30 # an intrinsic parameter to decide the number of intervals per time unit
tau<- 18 # end of the study
R<-14 # accrual period [0,R]
ome... |
0ec3c71d4f411425302d2ff37c4fdbd74a554c09 | 9f63b0971eda98e020bb8ba3edeba5d3332cda16 | /scripts/create_inflow_files_sunapee/MergeFlowNutrients_Sunapee_Make1Inflow.R | d36b7810fb347d2f77c2e7d65102bdd2f794acb1 | [] | no_license | tadhg-moore/Sunapee-GLM | c2664404660712267587ee1a95d3a6ae615345af | 083ff8ef04cdba3d05aa5999ea51dad3ba6ccc4a | refs/heads/master | 2023-05-08T14:03:19.041890 | 2021-06-01T20:53:47 | 2021-06-01T20:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,143 | r | MergeFlowNutrients_Sunapee_Make1Inflow.R | rm(list=ls())
#options(scipen = 999)
nuts<-read.csv("./data/individual_inflows/TN_TP_Inflow_conc_fracNP_boot_2021-03-16.csv")
files<-list.files("./data/individual_inflows/", pattern = "*totalinflow_temp_2021-03-17.csv")
alldata <- do.call(rbind,lapply(paste0("./data/individual_inflows/", files), read.csv))
alldata$d... |
48702b58e038be4cadb781cc8cc20d8b98872234 | 6df5c96f99b722b3cd5cd0b1f44f122072fad24b | /code/Unchecked/function_ah2sp.R | ca876b3f37224bcd443585e7c88e61317679e41d | [
"MIT"
] | permissive | Otoliths/Floristic-Kingdoms | 95d2cc6caaa25200eee3427819bf5c37f2394fc1 | 7cb66545dffac44150f292dea482a6ed99213dda | refs/heads/main | 2023-04-09T01:12:42.893686 | 2021-04-22T19:17:01 | 2021-04-22T19:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,520 | r | function_ah2sp.R | ah2sp <- function(x, increment=360, rnd=10, proj4string=CRS(as.character(NA)),tol=1e-4) {
if (!inherits(x, "ahull")) {
stop("x needs to be an ahull class object")
}
# Extract the edges from the ahull object as a dataframe
xdf <- as.data.frame(x$arcs)
#correct for possible arc order strangeness (P... |
f4e97f28e8d553b76578df0fc86efb42552c5d8d | 028d02e227415930b1e42ac363a98e7ecba8a493 | /Text_Word_Vec_Analysis.R | ead4922bdf1f99b7a5eef1da041b97daa31e2f9a | [] | no_license | SaraJKerr/Letters_1916_Internship | 8dc3f7dba97013a4f916ab5eac4693e0ec12a52c | 90a6f1f70f13791154a76be7b6d4129a7999b672 | refs/heads/master | 2021-01-24T11:18:29.122999 | 2017-07-05T15:40:49 | 2017-07-05T15:40:49 | 70,236,628 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,041 | r | Text_Word_Vec_Analysis.R | ################################################################################
# File-Name: Text_Word_Vec_Analysis.R #
# Date: 1 September 2016 #
# Author: Sara J Kerr ... |
4d99c4dc7320850f835fdc5d2048c33f3cf769a6 | ebbe08d58a57ae2e9d308a12df500e1e0ef8d098 | /wgk/AllSample.R | 8e854561f81e0c315d71ed54a7d1dde4c55b5b64 | [] | no_license | Drizzle-Zhang/bioinformatics | a20b8b01e3c6807a9b6b605394b400daf1a848a3 | 9a24fc1107d42ac4e2bc37b1c866324b766c4a86 | refs/heads/master | 2022-02-19T15:57:43.723344 | 2022-02-14T02:32:47 | 2022-02-14T02:32:47 | 171,384,799 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,291 | r | AllSample.R | setwd('/home/zy/my_git/bioinformatics/wgk')
.libPaths('/home/yzj/R/x86_64-pc-linux-gnu-library/4.0')
library(Seurat)
library(ggplot2)
require("RColorBrewer")
file.all <- '/home/yzj/JingMA_NEW/res/Harmony/ALL/RDS/PBMC_harmony.RDS'
seurat.all <- readRDS(file.all)
path.data <- '/home/disk/drizzle/wgk/data/AllSample_2_me... |
ccbdb91734d68709d8a30504765c9851f988d1a4 | 4059f892c51304bb8af43d90105da02f49fa263a | /storetrackeR/global.R | 85b779590152d0448dc79927d0434204ce5bcd83 | [] | no_license | martinSchneiderEoda/storetracker | 49fbc350feed0f2c2744a94d0dd6f142b6d4fbe9 | 47982c735c450d25224ab04369ae6ad502aac75b | refs/heads/master | 2021-04-09T07:31:04.518342 | 2020-03-22T17:24:56 | 2020-03-22T17:24:56 | 248,850,995 | 0 | 1 | null | 2020-03-21T13:02:13 | 2020-03-20T20:59:21 | R | UTF-8 | R | false | false | 915 | r | global.R |
# libraries ---------------------------------------------------------------
library(shiny)
library(shinyMobile)
library(leaflet)
library(DT)
library(DBI)
library(lubridate)
library(geosphere)
library(dplyr)
library(ggplot2)
library(tidyr)
library(stringr)
library(geoloc)
library(revgeo)
library(osmdata)
library(sf)
... |
693c1721b79ca3ccac10a24e60e6fc89c5277309 | 11bd69f4cc83ac6ea62eb3118072fc22c667cf76 | /correlation.R | 45c2fedb473f655efeee1b9a6d6990b834c3af5d | [] | no_license | VarSriv/Firefight | c482c11638e15e733fdf39f394050781a7184149 | 02936d2bf66e321f2ac542ba5a255f72d2a70519 | refs/heads/master | 2021-08-16T01:20:25.976253 | 2017-11-18T14:48:13 | 2017-11-18T14:48:13 | 111,216,984 | 0 | 0 | null | 2017-11-18T15:37:14 | 2017-11-18T15:37:13 | null | UTF-8 | R | false | false | 922 | r | correlation.R | library('RSQLite')
conn <- dbConnect(SQLite(), 'C:/Users/User/Downloads/FPA_FOD_20170508.sqlite')
# pull the fires table into RAM
fires <- dbReadTable(conn,"Fires")
# disconnect from db
dbDisconnect(conn)
ctrl <- fires[is.na(fires$CONT_DATE) == FALSE,"CONT_DATE"]-fires[is.na(fires$CONT_DATE) == FALSE,"D... |
3756f79772e703349f7f5fb5c8546be644de60e5 | 4d66d82231c7f9218538ca62fd15f366b2b2d8a2 | /src/analysis/calculate_k_from_hall_eq.R | 9353d79b83d8d73c7336d0688a90ce197521537f | [] | no_license | amcarter/nhc_50yl_sandbox | 78f12f2ee3175f165f0e12fe2c567526d476c585 | 3cd8a25fa8279b88c80be04c2a42a730e274dcdb | refs/heads/master | 2023-06-24T13:02:50.673995 | 2021-07-23T04:01:11 | 2021-07-23T04:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,978 | r | calculate_k_from_hall_eq.R | # Calculate k values for NHC based on the equation in Hall 1970
# Appendix
# Equation 4
# k2 = 5.026 * V ^ 0.969 * R(ft) ^ -1.673 at 20 C (day-1, per volume)
# Hall approximates R, hydraulic radius as Depth
# k2(T) = k2(T=20) * 1.0241^(T-20)
# k (g/m3/d) = 2.3 * k2 * DO.sat / 24hr
# K (g/m2/d) = k * d
library(stream... |
a2c225d68d548fb0782b3c9a6c794e6720528937 | 96e82189064bacbc7d032ff4937332902cda649e | /skeleton.R | 576a78fbc399372fd509d7f38f7589f6f0fa8542 | [] | no_license | tonyshenyy/Stat-133 | 87b07274c18200f7d8e83ce30b97ebb9ef2cb4c6 | d98c3b4e99041dd9e9261967507551948918172d | refs/heads/master | 2020-05-24T12:37:19.021817 | 2015-08-15T20:17:32 | 2015-08-15T20:17:32 | 40,556,295 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,412 | r | skeleton.R | # =============================================================================
# Skeleton.R
# Description: This file contains all the commands to create folders and files
# as well as commands to download resource files.
# Name: Yiyang Shen and Caylie Marie Connelly
# =====================================... |
e9be02c5ffef95bcc17ca60332f95a43b16eeee6 | 6b49bd4cd7728144ba7d2acf2f0c40d347fdac26 | /Final.Project.Script.R | ea14ddb7349dd3783d5a5f380f623a70d98c7ae4 | [] | no_license | sbordena/BD_final_assignment | ac25c044224a440b8e6e2d40293078cca35afd73 | 3ec0a8cca37910e67cfa4dc41c7c3ffbbd17efa0 | refs/heads/master | 2021-01-10T04:08:55.038725 | 2016-03-02T19:04:29 | 2016-03-02T19:04:29 | 52,987,815 | 0 | 1 | null | 2016-03-05T20:22:48 | 2016-03-02T18:53:35 | R | UTF-8 | R | false | false | 7,078 | r | Final.Project.Script.R | ## Final Project Script
## Load libraries
library(tree)
library(rpart)
library(randomForest)
library(gbm)
library(data.table)
library(caret)
library(doParallel)
library(glmnet)
library(e1071)
library(pROC)
library(curl)
library(dismo)
library(distrom)
library(gamlr)
library(dplyr)
library(Matrix)
##... |
2bb69888fe535e2c5a9389cd43abafd51329f25b | 1623d0f14bec8e9813b75a29e4dd549462000ab2 | /man/getXMLFromWebService.Rd | c7e482d72c87c298092b17f9e2450820c2faf82d | [
"MIT"
] | permissive | jbracher/epi_forecasting_DE | e410827f10b64fb7ea59a6bad093d4f75f79af1e | 4f88974beb2b2a3c84f54982553f780f6d91b193 | refs/heads/master | 2023-09-04T12:13:14.788907 | 2021-10-27T08:11:18 | 2021-10-27T08:11:18 | 239,568,850 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 432 | rd | getXMLFromWebService.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survstat_webservice.R
\name{getXMLFromWebService}
\alias{getXMLFromWebService}
\title{method to recieve the xml from the WebService}
\usage{
getXMLFromWebService(body_, service_)
}
\arguments{
\item{body_}{the xml request}
\item{service_}{th... |
71c4facaf6af9377d7d507a1e3bbbb750d26fa6a | b77b91dd5ee0f13a73c6225fabc7e588b953842b | /11_run_all_analyze_plot_scripts.R | 63648746f94bcf27152b638604fdd54a39e32e7b | [
"MIT"
] | permissive | ksamuk/gene_flow_linkage | a1264979e28b61f09808f864d5fa6c75568147b0 | 6182c3d591a362407e624b3ba87403a307315f2d | refs/heads/master | 2021-01-18T09:18:02.904770 | 2017-04-02T16:51:40 | 2017-04-02T16:51:40 | 47,041,898 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 834 | r | 11_run_all_analyze_plot_scripts.R | ################################################################################
# This script performs the following functions:
# 1. Plots all the raw figures for the manuscript
# 3. Performs permutations on fitted model ouput
# 2. Creates all the supplementary data files
##############################################... |
ce1e31ecfc4da45d10d656cb9d6aa0dfc1d65852 | d9b3b9a18b1151bd5613d5302afa32ef92a5b219 | /share/R/CI.R | aedcbfd8ec64933c61c38f266ddae7a453e7f571 | [
"MIT"
] | permissive | Rbbt-Workflows/combination_index | f56f3019b69ecc6355f1950768e4b0b7febed6af | abb72987f105ae1073c6e68e06ca6c669d168636 | refs/heads/master | 2022-06-27T21:57:57.586452 | 2022-06-20T07:50:40 | 2022-06-20T07:50:40 | 51,080,222 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 17,531 | r | CI.R | rbbt.require('drc')
rbbt.require('ggplot2')
CI.eff_ratio = function(x){
return(x / (1-x));
}
CI.misc.seq <- function(){
res = seq(0, 0.1, length.out=50)
res = c(res, seq(0.1, 0.9, length.out=50))
res = c(res, seq(0.9, 1, length.out=50))
return(res)
}
CI.misc.log_seq <- function(center.point){... |
abe1647784377f4664eb8aab678a19e55106126c | 5065f337e3ffb1793b855e6b2264dfde4467fb97 | /[archive from before 11-2018]/R code/05 code split plot variety nitrogen [Splitplot 2Way ANOVA].R | fe59169043a3f6e6cf146c2b99475940165ad82a | [] | no_license | Reicharf/R-SAS.Introductory.Courses | faed787ec5c0eaa76d55dc476e6142f27c24ce6f | 69ec001f8961d5f1c4d1387f80249daa4cbc159b | refs/heads/master | 2022-06-16T23:21:33.677994 | 2020-04-26T13:50:08 | 2020-04-26T13:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,498 | r | 05 code split plot variety nitrogen [Splitplot 2Way ANOVA].R | rm(list=ls())
setwd("D:/Hohenheim/R-SAS.Introductory.Courses/Datasets")
library(data.table)
dt <- fread("05 split plot variety nitrogen.txt") # directly import as data.table format via fread()
dt$Block <- as.factor(dt$Block)
dt$N <- as.factor(dt$N)
dt$Var <- as.factor(dt$Var)
dt$Yield <- as.numeric(dt$Yield)
#... |
2ed038142a7a5b785cc838a42d708fe49b2521e5 | 1ed93f1491f02dc355dbbe0cbe5e6931134f7a7d | /R/pcorstarsl.R | a12d6367ccf5147697ce7e8f7cbafd105cd9ff02 | [] | no_license | GiulioCostantini/markerIndex | b346ed40f13fa385d4e232687eda01116a33e02e | febb6fba8f538ee48698085f3f3a810d4ccc0e23 | refs/heads/master | 2021-07-13T02:28:41.310778 | 2021-02-23T11:31:20 | 2021-02-23T11:31:20 | 237,241,394 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,487 | r | pcorstarsl.R | # adapted from here to include partial correlation matrix
# https://github.com/kyuni22/ksmv/blob/master/functions/corstarsl.R
pcorstarsl <- function(pcm, n, np, digits = 2, full = FALSE){
# pcm = partial correlation matrix
# n = sample size
# np = number of variables partialled out
if(is.null(rownames(pcm)))... |
9556fd0f837fd6be7dff163b3a22579d5a4017e1 | 1d0465c228a1e8fd4e1c271fbde2262bf24ccb59 | /Data Analysis in R. Part 2/1.4.1.r | ce225f2591e02ade103fea98a362afc2ea8dd46e | [] | no_license | framirov/R-course | 536ab92111a2a54c0160f82fab960ed8047877a9 | a01439fa0b1e530385c303bedf7f44af239a6683 | refs/heads/main | 2023-01-27T20:38:50.428334 | 2020-12-04T08:26:30 | 2020-12-04T08:26:30 | 312,372,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 81 | r | 1.4.1.r | positive_sum <- function(x){
lapply(x, function(x) sum(x[x>0], na.rm = T))
} |
bc9a57b404d34bd11caf8f915c4978d54b13afff | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/kzs/examples/kzs.2d.Rd.R | 8708e337f47e21858b995ed665b27f59471de060 | [] | 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,501 | r | kzs.2d.Rd.R | library(kzs)
### Name: kzs.2d
### Title: Spatial Kolmogorov-Zurbenko Spline
### Aliases: kzs.2d
### Keywords: smooth ts nonparametric
### ** Examples
# EXAMPLE - Estimating the Sinc function in the interval (-3pi, 3pi)
# Load the LATTICE package
# Gridded data for X = (x1, x2) input variables
x1 <- seq... |
058aefb10cca6d9d609a98adc8fe1247b543112f | 761d9b095dd97a9fe0aa25db0966087cea34963d | /Section IV - Distance, Knn, Cross Validation, and Generative Models, Part 3 Generative Models.R | e1e536b19406826ab0cedf773a79fb6b69ee84ec | [] | no_license | mike-tex/machine-learning | 776e478ab2b01f837be762751985212e3e67a796 | c76c177a7d5550002dde5faa23a03471145966c9 | refs/heads/master | 2022-11-17T04:26:32.101227 | 2020-07-09T21:39:07 | 2020-07-09T21:39:07 | 271,375,389 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,918 | r | Section IV - Distance, Knn, Cross Validation, and Generative Models, Part 3 Generative Models.R | ## Section 4: Distance, Knn, Cross-validation,
## and Generative Models
## 4.3: Generative Models
## Generative Models
## Naive Bayes
# Generating train and test set
library(dslabs)
library(tidyverse)
library("caret")
data("heights")
y <- heights$height
set.seed(2, sample.kind = "Rounding")
test_index <-
crea... |
8d76ab192d61c71612974b4f7e97ef4d7e8f01d2 | 30ad23d2b71cb8a59866fda53676f1dfe6b99cc0 | /Prediction.R | a825abe2bc2957714eeb7b629ff6d1a06bb187b3 | [
"MIT"
] | permissive | kaswani29/RestaurantRevenuePrediction | 35e1b0fb9a305b177272b5a6741c594e136005df | 25d7c9dbeb308f2bf8fd4f5c9eb95139693d06f2 | refs/heads/master | 2021-06-09T13:22:36.364427 | 2016-11-10T01:29:16 | 2016-11-10T01:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,783 | r | Prediction.R | library(caret)
library(doParallel)
set.seed(54321)
# 5/8/2015
#Revenue Prediction competition
#To download data visit:
# https://www.kaggle.com/c/restaurant-revenue-prediction/data
# Data Processing ---------------------------------------------------------
#download the files from
train <- read.csv("train.csv")
tes... |
c6f29c9dfa16b32b441206a999c80a345a4d2c2f | eb836d0d03b1f50f8cd7524cbeaf0b839a58c774 | /hw1/hw1_prob3_try2.R | 6e485ef789ece88e074a513b1c18149455ac18a5 | [] | no_license | nquist/R-Class | af65be1dd2a5bd8132c7dd4a91308448e15e32bc | 45d57366cabc89a0e284cbd494231b545852fafa | refs/heads/master | 2020-04-22T07:32:20.946866 | 2019-09-05T19:32:19 | 2019-09-05T19:32:19 | 170,219,810 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 180 | r | hw1_prob3_try2.R | # Regrade: 5/5
# Excellent!
print("This is an edit to the code for a second try.")
rm(list = ls())
print("Hello world!")
samp <- rnorm(100, mean = 10, sd = 3)
print(mean(samp))
|
edfd3dbccfad754c74bcee6733eb19eec4479b48 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/codemetar/examples/write_codemeta.Rd.R | 345c57861cef2724fe95ca38138544f1e6210638 | [] | 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 | 220 | r | write_codemeta.Rd.R | library(codemetar)
### Name: write_codemeta
### Title: write_codemeta
### Aliases: write_codemeta
### ** Examples
## No test:
write_codemeta("codemetar", path = "example_codemetar_codemeta.json")
## End(No test)
|
0e0063a56f1718c4891e4ac985487b105c3a9459 | cbdeccd83cc91da4b9da37e858617dc6ab4c5a41 | /man/simplexample-package.Rd | 05f5acc08043fc1232a47ee95fcf6a7e43b8213e | [] | no_license | Sleepingwell/SimpleCInterfaceRPackage | 223fc644034da791af227a8bf918b4bdb91f6943 | 2045651a6167467337465a9da220ee1a9047266a | refs/heads/master | 2021-01-01T19:10:32.677467 | 2012-08-16T15:41:51 | 2012-08-16T15:41:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 746 | rd | simplexample-package.Rd | \name{simplexample-package}
\alias{simplexample-package}
\alias{simplexample}
\docType{package}
\title{Demonstrate calls to a .C, .Call and .External functions.}
\description{
A package that shows how one might use the .C .Call and .External interfaces for calculating a dot product.
}
\details{
\tabular{ll}{
Packa... |
5baaa41318979bd0466e47615b2fc6ab9f6aaa6d | ec843d0167f14b8f70faf6d9223b94fd6e1f3491 | /Programi/cor_analisys_number_of_days_to_peak_deaths_and_proportion_of_infected.R | 8a4732650255998dbc7255facb391eed8f9b3fe6 | [] | no_license | KalcMatej99/Seminarska-VS-Covid-19 | c6757885d16d50c6a0f6ad2999cdfe45df1de05d | e592a3142afa96660d6938e69385fb74e169ba92 | refs/heads/master | 2022-12-19T11:08:59.724253 | 2020-09-10T10:58:43 | 2020-09-10T10:58:43 | 281,406,020 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 807 | r | cor_analisys_number_of_days_to_peak_deaths_and_proportion_of_infected.R | library(pracma)
fileDB <- './../Podatki/db.csv'
db<- read.csv(fileDB, header=TRUE, sep=",")
dataFrameDates <- data.frame(date=db$Date_of_peak_of_deaths,tx_start=db$Date_of_first_death)
dataFrameDates$date_diff <- as.Date(as.character(dataFrameDates$date), format="%Y-%m-%d")-
as.Date(as.character(dataFrameDates$tx_st... |
3ce1291b4abcdf0cb3c5cda8adf1968478436f35 | a6ecdfb7028b10fadff7fdc9fc7110c51814761c | /day4/lineplots.R | c398df70ed97fff033b14d702c63bb00a46596b2 | [] | no_license | C-MOOR/jhu-intersession-2017 | 7ac21ecc3c1d0e20b2ae86e3396515b20651b80a | 7610aff9b622ba697fe43f49b221769a3c14493d | refs/heads/master | 2020-04-01T18:25:00.840344 | 2018-10-17T18:52:12 | 2018-10-17T18:52:12 | 153,491,047 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,326 | r | lineplots.R | selected_genes <- c(2:5)
library( "DESeq" )
# Use DESeq to normalize the read counts for each sample so they can be averaged
gut_metadata <- read.table( "/home/intro-rna/2017/midgut.tsv", header=TRUE )
cds <- newCountDataSetFromHTSeqCount( gut_metadata, directory="/home/intro-rna/2017" )
cds <- estimateSizeFactors( c... |
3a035d0055c1c7c0339a86c75d4a80054a8eba7a | 88c0b70954bd568717719b01b20d090c475e29c5 | /plot1.R | 84167f97e51d908b536f75dd18b1ebf4d75cadaf | [] | no_license | fish515/ExData_Plotting1 | fc249ec6051c7455cb4ec465b9591a3ab4e0c99b | bcd349fc6daf0941a65acb8c07ce6442b5189081 | refs/heads/master | 2020-12-26T21:37:52.770221 | 2016-03-07T07:02:01 | 2016-03-07T07:02:01 | 53,297,145 | 0 | 0 | null | 2016-03-07T05:02:47 | 2016-03-07T05:02:47 | null | UTF-8 | R | false | false | 334 | r | plot1.R | data<-read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings = "?")
subsetdata<- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
png("plot1.png", width=480, height=480)
hist(subsetdata$Global_active_power,col="red",xlab="Global Active Power(kilowatts)",ylab = "Frequency",main="Global Active Powe... |
12d11fa23cf66cef9fb7a2febef858930d730ba6 | 23e87af56a0d581c32532fadb463913b55d3deb5 | /首日基線/predict.R | fe20814b24f2b5170861f973f5308e33453e1a98 | [] | no_license | ji1ai1/201907-AT | 15fb66ccc4840db6546929892e5dd41dfafaf294 | 22d13287a9b6d9967849021ebf55a2f4eeb7ac23 | refs/heads/master | 2023-01-14T02:47:04.882158 | 2020-11-07T16:04:18 | 2020-11-07T16:04:18 | 232,135,787 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 917 | r | predict.R | #R version 3.6.1 (2019-07-05) -- "Action of the Toes"
#R package data.table 1.12.2
#输入:
# Antai_AE_round2_item_attr_20190813.csv
# Antai_AE_round2_test_20190813.csv
# Antai_AE_round2_train_20190813.csv
#输出:
# result.csv
#0.1606
library(data.table)
Testing = fread("Antai_AE_round1_test_20190626.csv")
Testing$si = as.do... |
f74151c6b0768028646f95cda33b06c5c41a3add | accc3c168b0f9d6973b44a9a19211899b69384a6 | /fcbmmo/R/transform_log.R | 5a049a63069c91117a24aafb4c0a854057afccf9 | [] | no_license | fcbny/fcbmmo | f54d77a34ff3fcd99a15b5176beab553629159c5 | 6bdc4e1742a973fd55c72d4354ea9dc4f0424589 | refs/heads/master | 2021-01-10T19:47:10.368161 | 2014-10-31T18:54:54 | 2014-10-31T18:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 98 | r | transform_log.R | transform_log <-
function(x,base=exp(1),add=0) {
r <- log((x + add),base=base)
return(r)
}
|
a05a337e78fe6895b9ea77bf243e107f32520cc1 | 92e828aeed0eb4203cd1890fbdcee430d6cc9773 | /src/API_pathways_KEGG.R | d1a056da12cb5abbb383cd8d7cb1e1d5bfbf7c5b | [
"MIT"
] | permissive | dy-lin/stat540-project | 46d9ee4f4638dbe933bdb607f3f8232e872a6847 | 20f040d9399ab5b9df0341b317e0f22eefafe5e8 | refs/heads/master | 2022-11-18T03:27:53.049420 | 2020-07-19T22:47:39 | 2020-07-19T22:47:39 | 259,114,940 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,879 | r | API_pathways_KEGG.R | # Script for performance of pathway enrichment analysis in KEGG using PathDIP portal (Rahmati et al., 2016) API
# For more information: http://ophid.utoronto.ca/pathDIP/API.jsp
library(httr)
library(tidyverse)
library(here)
# const values
url <- "http://ophid.utoronto.ca/pathDIP/Http_API"
searchOnGenesymbols <... |
a7a65fc736fbb1742dbb2ead45c2517b2db66549 | 3d0787d24620c700303ecdc4453325b6235c0e5d | /01-variables_constants_operators/arithmetic.R | 507c7fbe77d819c80c71e52f662c494ddd87aab0 | [] | no_license | lincolnbrito/r-examples | 2244e0160944f65c276a58c9e97b5a4ead8923b4 | ab75c88576026ee839befb0f9acccf52ec6f2e4e | refs/heads/master | 2020-03-08T10:55:10.518422 | 2018-04-05T03:21:00 | 2018-04-05T03:21:00 | 128,084,946 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 190 | r | arithmetic.R | "
+ addition
- subtraction
* multiplication
/ division
^ exponent
%% modulus (remainder from division)
%/% integer division
"
x <- 5
y <- 16
x+y
x-y
x*y
y%/%x
y%%x
y^x |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.