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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ba7e4e6d62e0830211240037f774a02f401808b | d0e1f6bd7b270363e9e68e4b6f684c384ba8aa51 | /2. Scripts/Overzicht_Soorten.R | ad38266988b68b223713243fbc5057a5472ca6cf | [] | no_license | WimKo/Avifauna | a7b67903a6586ed6c385279cd242a08ec7a7e1ef | 50dbddfb43825275ace6c060f028923d58df447c | refs/heads/master | 2021-01-10T14:40:20.609520 | 2017-01-29T19:11:59 | 2017-01-29T19:11:59 | 45,529,468 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,192 | r | Overzicht_Soorten.R | require(data.table)
load(paste(getwd(), "/1. Data/Cleaned Data/Waarnemingen.RData", sep=""))
load(paste(getwd(), "/1. Data/Cleaned Data/Avifauna.RData", sep=""))
Avifauna$Datum=as.Date(Avifauna$Datum, "%d/%m/%Y")
Waarnemingen=as.data.frame(Waarnemingen)
Waarnemingen=data.table(Waarnemingen)
Avifauna=data.table(Avifa... |
b18f8ab8721ff357fc299a9353cf4fb80eb7f5c7 | adda2343e80a2df8c95f432e3b928dcd7828b5d1 | /code.R | 4b531b2c0f976251eab25683e951fcb449a4eb23 | [] | no_license | underthecurve/city-county | 542a1e0172cbe468cae02d697cf853ef9f7489af | d52dc28c3b26b3072ab34dede1a795452c8af5d9 | refs/heads/master | 2020-03-25T05:00:10.609572 | 2018-08-11T19:33:29 | 2018-08-11T19:33:29 | 143,424,264 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,479 | r | code.R | library('dplyr')
library('ggplot2')
library('reshape2')
library('ggalt')
library('rgdal')
library('maptools')
gpclibPermit()
# a helfpul reference guide: https://www.census.gov/geo/reference/geoguide.html
## all usa states
usa.states <- readOGR("cb_2017_us_state_500k/cb_2017_us_state_500k.shp")
usa.states2 <- usa.s... |
6efc0b941d201518e708168b4604a2470d80fd86 | d7c2bf3c38957ac432c53eb4aa3811f5eb37d877 | /02_lists_matrices.R | 59406dc8e90d22fc5042518ed4b2df503cc4ff46 | [] | no_license | milonaityte13/intro_to_R | 6a23996b64a8f2e46379e8a771bf3d32bc23573c | 9783bc32544d825dfc5cf867324acfb3265d4a21 | refs/heads/master | 2021-05-05T20:07:41.446015 | 2018-01-24T16:06:40 | 2018-01-24T16:06:40 | 117,838,415 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 765 | r | 02_lists_matrices.R | #Lists and Matrices
#Lists
list_example <- list(1, "A", TRUE, "hello", 12.53, -12.53)
list_example
www.github.com
second_list <- list(title = "Numbers", numbers = 1:10, data = TRUE)
second_list
#What "type" is a list?
typeof(second_list)
typeof(second_list$title)
print(second_list$numbers[3])
#Matrices
#A zero fil... |
6a8fba409dc35cabc6464cf540a8d50bdac420c6 | c09e219ce81fa8dc4e3ebe50dbdcf9d8787d5ef0 | /sastuit/app.R | cec7e18364aeeb90dbb96b22e7766a98d36b0969 | [] | no_license | anibalhc/sastuit | 06b35ba3167bb49aa0e527c79cf10e5a766c1666 | 74e483a0f9b4167730e913b38f0a3fa23364b965 | refs/heads/master | 2023-01-23T18:09:12.046996 | 2020-12-08T06:06:38 | 2020-12-08T06:06:38 | 282,161,995 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 42,826 | r | app.R |
# libraries
source("www/files/libraries.R")
source("www/files/indicator/helpers.R")
# Define UI for application
body <- dashboardBody(fluidRow(
column(
width = 12,
box(
title = "Tweets",
width = NULL,
status = "primary",
hr(),
textOutput("nowRegistrosTui... |
2e7571225491e81713a9a7c96be3a2cc36cb3bdc | 8b441f592a6deb9b0a515cbd92bb4663ad79ffe4 | /convergence/src/main/R/02_compute_historical_campaign_variables.R | c81e0442ffd5e41628022be3e0b36e8cc72ac4e1 | [] | no_license | carnaum2/use-cases | 0d391a6a10bb70b60a4025152a278b0e4c595d01 | 24920e3828234da691ab643b6dd9a0aa0a5c0df5 | refs/heads/master | 2022-12-07T03:41:34.299274 | 2020-09-07T10:20:32 | 2020-09-07T10:20:32 | 293,249,567 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,456 | r | 02_compute_historical_campaign_variables.R | source("configuration.R")
init.month <- "201605" # FIXME
# FIXME: No sobreescribir el último mes, usar un nombre diferente
main_02_compute_historical_campaign_variables <- function(curr.month) {
cat ("\n[MAIN] 02_compute_historical_campaign_variables", curr.month, "\n")
if (curr.month == init.month) {
ofol... |
9e3ff852441d4703e16106735cb88972dee21d28 | 9a5cd516300be561dc627ebb3fc07ead2707b502 | /tests/testthat/test-exceed_threshold.R | 17d347674069ec3c79e56d29e79194073aaf3a84 | [] | no_license | cran/incadata | 11535f59e08977e5cb0dca961ea16f5e723e4b2e | a80e811b5d22ae44d39231b5ed1994653dc01d27 | refs/heads/master | 2021-05-23T02:43:52.314286 | 2020-04-09T07:20:02 | 2020-04-09T07:20:02 | 82,063,922 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 926 | r | test-exceed_threshold.R | context("exceed_threshold")
x <- c(rep("2012-01-01", 9), "foo")
test_that("exced_threshold", {
expect_message(exceed_threshold(x, as.Date(x)))
expect_message(expect_equal(exceed_threshold(x, as.Date(x)), x))
expect_warning(exceed_threshold(x, as.Date(x), force = TRUE),
"the input vector coerced ... |
3ccbf18b09e9695360c34123e4a712abd5960f49 | 0272d8f561df3fd8ac1c2df6f62c1d9901168245 | /PP_kammer_hartheim/P_roll_lateral_Versuch.R | 1233be7fa01fcd17034e2d836d54a236e44f8fcc | [] | no_license | laurin-f/WWM | bb54f33b7292f9eb34b4058bf4df78fd5db7b5e2 | 4b06e6eaf80c4cb02dd8ada937d9aa1ce4cfcb33 | refs/heads/master | 2023-08-07T15:51:50.428553 | 2023-07-19T13:56:01 | 2023-07-19T13:56:01 | 248,497,735 | 0 | 0 | null | 2021-01-26T14:29:35 | 2020-03-19T12:29:31 | R | UTF-8 | R | false | false | 22,910 | r | P_roll_lateral_Versuch.R | hauptpfad <- "C:/Users/ThinkPad/Documents/FVA/P01677_WindWaldMethan/"
metapfad<- paste0(hauptpfad,"Daten/Metadaten/")
metapfad_harth<- paste0(metapfad,"Hartheim/")
metapfad_comsol<- paste0(metapfad,"COMSOL/")
datapfad<- paste0(hauptpfad,"Daten/Urdaten/Dynament/")
plotpfad_PPchamber <- paste0(hauptpfad,"Dokumentation/Be... |
4373590a858d3b5e143498dd930d81f193d3b9e2 | ea82c804eba4fed67e37093a5dd47dd82b0b1459 | /figure_scripts/Supp._Table_1._trait_N_table.r | 23423d337ac7efd6d3ab29d957459fb8a4e1dd8a | [] | no_license | colinaverill/Averill_et_al_2019_myco.traits | f8159f50d7ddcc3aa7a44981b5999b163cd2872e | ac72a187b2d84ef3de2e63b3656243de3c19934e | refs/heads/master | 2020-07-30T08:28:49.711202 | 2019-09-22T14:52:20 | 2019-09-22T14:52:20 | 210,155,388 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,280 | r | Supp._Table_1._trait_N_table.r | #counting number of observations by trait.
#Using MCMCglmm to fit PGLS models.
#zero model selection performed, just straight up sending model structures based on apriori hypotheses.
rm(list=ls())
source('paths.r')
source('functions/pgls_glmm_no_selection.r')
source('functions/tic_toc.r')
library(data.table)
library(ph... |
58da5c2d315bf198ccc5386cc7d62c56541fe954 | 2219f7988e07df1d78f09e2bd3ce2feb6c87fc51 | /tests/testthat/test-rrd.R | 210f5331d80255f2551a5c8826d94cafcfd0cb54 | [] | no_license | rtdists/rtdists | d1374c0e57fdbe05c0bdd3ce7d2b71d53a4f84e8 | 99a226f750c22de61e8e4899d2776104c316f03d | refs/heads/master | 2022-01-19T10:51:30.547103 | 2022-01-04T09:00:15 | 2022-01-04T09:00:15 | 23,277,437 | 41 | 14 | null | 2023-08-12T02:39:35 | 2014-08-24T09:20:45 | R | UTF-8 | R | false | false | 1,949 | r | test-rrd.R |
context("diffusion parameter input (via rdiffusion)")
test_that("check individual parameters:", {
expect_that(rdiffusion(10, a=1, z=0.5, v=2, t0=0.5, d=0, sz = 0, sv = 0, st0 = 0), is_a("data.frame"))
expect_that(suppressWarnings(rdiffusion(10, a=1, z=0.5, v=2, t0=0.5, d=0, sz = 0, sv = 0, st0 = NULL)), throws_er... |
8f37057c3550965f7a67475c31527d0c14ec0f4f | 962f5656d8c91a1d5220a4fb80a972f723b67c1d | /Discussion Code/Christopher Discussion 1 - Homework 1.R | c0a62a6d525e99b77697b2b03ac2dd7489a68ce8 | [
"Apache-2.0"
] | permissive | christopheraden/Nonparametric-Statistics | 292b616a59ccdb1fc6a90e945c75e2cb68165566 | 15fb5ec1cbae0e00649237a944602932f6ebaedf | refs/heads/master | 2020-04-29T03:26:08.749755 | 2015-06-11T02:26:02 | 2015-06-11T02:26:02 | 34,493,459 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,588 | r | Christopher Discussion 1 - Homework 1.R | #Intro to R:
x = 10 #Assigning variables
x #Printing the value of the variable
x = c(1, 2, 11, 24) #A vector of values
x #Value changed. "x" is no longer 10.
x > 5 #Tests if EACH value is greater than 5.
as.numeric(x>5) #If true, makes value 1, else, false.
sum(x>5) #Number of values where x > 5.
mean(x) #Tak... |
8a3982925cdc965afcfe663ac552321988c22e00 | 8b0d730a24b664f19eff71b2871fdeb3a70391f3 | /predictor/Prep_Analysis.R | e8ac5da95572316dc02e4ea59b09b65cb5b52298 | [] | no_license | REMAR-Project/Predictor-Tool | 07076e00094dfb93b8311d0b31784b8815880b29 | c4d1ebdcbf2fdf22721703c3475cdc631f3275f6 | refs/heads/main | 2023-02-06T16:44:32.274792 | 2020-12-18T14:32:15 | 2020-12-18T14:32:15 | 322,615,883 | 1 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 29,111 | r | Prep_Analysis.R | prep_analysis = function(fileNumber=0, tides=NULL, svg=FALSE, n=1){
if (n==2){
cat(yellow("\nInfo: Prep Analysis has not run (n=2)\n"))
return(1)
}
library(ggplot2)
cat(yellow("\nStarting Prep_Analysis.R\n"))
state = tides$station$ID.state
# Convert UTC time to local time
tides$tide... |
ab2a45e3592e3ea1633a7ca6fdf3d476be0f0073 | e31dfbbd67f70384ee6f44c760c9b1b2c7c184ff | /hw/hw5/dieroller/test/testthat/test-check-die.R | a7a24119cec8d56a74c5e305e4a216503ca46274 | [] | no_license | rlaehddo/stat133-spring2018 | 7ce49bfe4b91d953aef9ded03bd985940dca1bb6 | 31a845b3eafb7d8495e345a9875a11c9f96e1e10 | refs/heads/master | 2023-08-27T07:37:39.940101 | 2021-10-23T10:44:20 | 2021-10-23T10:44:20 | 410,713,592 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,031 | r | test-check-die.R | context("Check die arguments")
test_that("check_sides with ok vectors", {
expect_true(check_sides(c(1, 2, 3, 4, 5, 6)))
expect_true(check_sides(letters[1:6]))
})
test_that("check_sides fails with invalid lengths", {
expect_error(check_sides(c('one', 'two', 'three')))
expect_error(check_sides(c('one')))... |
e2af8d39730caceff1f8c513a926cca7032d4aa8 | 4541733f4089ba0ca8727a999062cdab178b70ed | /man/GE_annot.Rd | 6cd64dc2e6a9f3e1bda88b4be4ac80706f91b218 | [] | no_license | llrs/gliomaData | 5f2257077b054f78a251605dbae9e12dfeb8f398 | d86901558a42c2fc5fa76aef62f438d509e1675e | refs/heads/master | 2021-09-26T05:24:28.209641 | 2021-09-24T08:17:40 | 2021-09-24T08:17:40 | 139,417,841 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 443 | rd | GE_annot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GE_annot.R
\docType{data}
\name{GE_annot}
\alias{GE_annot}
\title{Gene expression annotations}
\format{
one instance, 1 row per probe
}
\source{
IGR, Villejuif, France
}
\usage{
GE_annot
}
\description{
This data set contains annotations on t... |
84cb7e2640a9474946928ce9d183d2280f3b6987 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/BIOMASS/examples/latlong2UTM.Rd.R | a7bd4494e78f6ad53b6199b060e68083d05b9c7f | [] | 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 | 303 | r | latlong2UTM.Rd.R | library(BIOMASS)
### Name: latlong2UTM
### Title: Translate the long lat coordinate in UTM coordinate
### Aliases: latlong2UTM
### ** Examples
long <- c(-52.68, -51.12, -53.11)
lat <- c(4.08, 3.98, 4.12)
coord <- cbind(long, lat)
## Not run:
##D UTMcoord <- latlong2UTM(coord)
## End(Not run)
|
cf6713e769a8098ca8163ffb31d9a4e390568875 | c731f04dff3ba52af528311ad3451d9f4f1fdc10 | /R_cmd_line/dada2_dereplicate_seqs.R | cfa0d721d31314fa202b84d26df2e0ec6dee8164 | [] | no_license | leffj/dada2helper | 592dcf81a801115bba2c324a526c9b69037014ea | 9dbca778a1d8aeb13a8e59ea5826e2fda6761b59 | refs/heads/master | 2020-12-25T05:47:02.295576 | 2016-08-10T06:53:09 | 2016-08-10T06:53:09 | 61,908,282 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,919 | r | dada2_dereplicate_seqs.R | #!/usr/bin/env Rscript
library(optparse)
## Quality filter sequences in fastq files
description = "Dereplicate sequences using dada2"
option_list = list(
make_option(c("-i", "--input_dir"), type = "character", default = NULL,
help = "Directory with filtered sequences in fastq format",
... |
dafc5241a8f2b481441eb2cc9982478ae8e5d134 | 069aa0fd5037224d8d960108fa4c2d8ac620fae5 | /src/basisDecomposition.r | 06f23ef13f1463ce2b8be128cf504bcce2212d8c | [
"MIT"
] | permissive | waternk/Hypoxia_Lake_Erie | d7cf7775a850ef5ad5bca6ef394c15ed08aeb5d4 | cae9a846a187e44b508b9e6e6a8fc5db2fb303e6 | refs/heads/master | 2020-06-14T23:57:14.684718 | 2019-03-22T10:46:18 | 2019-03-22T10:46:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,944 | r | basisDecomposition.r | # This is the script to represent data with basis functions
# Available basis: B-Spline and temporal basis function through SVD
source("./src/database.R")
source("./src/plot.R")
source("./src/helper.R")
#source("./src/interpolation.R")
require(sp)
require(gstat)
require(dplyr)
require(reshape2)
require(geoR)
coeff2... |
7b74c7b2b15191d5faccf9538227709081ba729f | 29585dff702209dd446c0ab52ceea046c58e384e | /pid/R/paretoPlot.R | 4894589f25eb47bd9070713c8f9f0490423053ff | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,352 | r | paretoPlot.R | # (c) Kevin Dunn, 2014-2015.
paretoPlot <- function(lsmodel, xlab="Effect name", ylab="Magnitude of effect",
main="Pareto plot", legendtitle="Sign of coefficient",
negative=c("Negative", "grey"),
positive=c("Positive", "black")){
# This code draws ... |
2428eaef37fcab4db30f5b3bff4cc5a2cc099f20 | 1d9a00050221646d4569d9a5196ba604aaab644d | /plot4.R | df63b9a33a80f9c0706f41a78ecf5a89918b1b75 | [] | no_license | gayathriganesan/ExData_Plotting1 | b870f07156e8c79794282585f2135c5f0d5d32ea | e63bc91573b8484ad7b8eacfb0ac7b6b1c9b6c7c | refs/heads/master | 2021-04-15T18:59:10.502569 | 2015-03-06T15:25:10 | 2015-03-06T15:25:10 | 31,579,451 | 0 | 0 | null | 2015-03-03T04:33:22 | 2015-03-03T04:33:22 | null | UTF-8 | R | false | false | 1,755 | r | plot4.R | ## Exploratory Data Analysis -Course Project 1 - Plot4
# the source text file is at data/CourseProj1/household_power_consumption.txt under the working directory
filename<-file("data/CourseProj1/household_power_consumption.txt")
library(sqldf)
# only loads the data from the text file for Feb 1, 2007 & Feb 2, 2007;
# pr... |
718411d57f550a1354dd7511c85511bc6550fd40 | 025efda207669f89f482340b816eff4668a32d98 | /plot4.R | 74b2d16cb770735e968d250bcc8656598459c5b8 | [] | no_license | jsqwe/ExData_Plotting1 | 4d8d190a65a920e4b56b57794f375f248f1c9d70 | 7e4e13f38328daf0cd9c0e9e2b2eed77d373c5b1 | refs/heads/master | 2021-01-17T23:50:58.875589 | 2014-06-06T03:51:34 | 2014-06-06T03:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,335 | r | plot4.R | ## Read data
data <- read.csv2("household_power_consumption.txt", na.strings = "?",
colClasses = c(rep("character",2), rep("numeric", 7)),
dec = ".")
## Filter data to only 1/2/2007 and 2/22007
fd <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007",]
## Change Date and Time c... |
5ec59b68ae55b76c308f3f1ef959b8e2f487937f | ea51c94187b198c7ecc1f54d59e6c31c147343c2 | /merge_species.R | 368ad5c505b2747182625d7611fdc809fd64a651 | [] | no_license | ashiklom/preprocess-try | 80f653a07da966b8575c0fca9c9b8bdb62696204 | abba92233156d72b894e427adbb2e596bccd4dbe | refs/heads/master | 2021-01-22T06:23:05.873132 | 2018-01-04T21:26:01 | 2018-01-04T21:26:01 | 92,546,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,919 | r | merge_species.R | source('common.R')
species <- collect(species)
tpl_proc <- readRDS('pfts_species/theplantlist.rds')
#count(species)
#semi_join(species, tpl_proc) %>% count()
#anti_join(species, tpl_proc) %>% count()
message('Fixing species name encoding...')
species_fixenc <- species %>%
mutate(AccSpeciesName = stringi::stri_... |
90ff6a02c9cc592a862ca71784c542f72b0cefa8 | 2426cc47e952f6da7b9411937d8fd16a710132b0 | /inst/code_examples/kapittel_10-logistisk-regresjon.R | e948e09797252fd935adc1850f7d70273343304f | [
"MIT"
] | permissive | ihrke/rnorsk | 8c510c61436e3b71d013eba4ec2870ac04d17711 | c4c8a2c0c9b98c1f046561a8cc54ad2d421ebc60 | refs/heads/master | 2021-07-11T01:47:56.640575 | 2020-07-03T12:31:46 | 2020-07-03T12:31:46 | 159,663,510 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,285 | r | kapittel_10-logistisk-regresjon.R |
## kapittel_10-logistisk-regresjon.R
#
# Denne filen inneholder alle kildekoder fra kapittel 10 i
# Mehmetoglu & Mittner (2020). Innføring i R for statistiske dataanalyser. Universitetsforlaget.
##
## setup
library(tidyverse)
library(rnorsk)
theme_set(theme_rnorsk())
## -- Eksempel 1
#
prob <- seq(0,1,by=0.001)
... |
36090d58a52e14e9a22e3765b54f8e1292c44a77 | f330087d8a5a0c7b67eeff0e7eebf66275fae98a | /make_ratings.R | 82de921cd0b86f9902a65544606b9efb9fd4621a | [] | no_license | suziebrown/ratings | 5eddd826851b2bbbfcc4ea7f83a3a9a0cc1e8911 | 2717dd0bfa7625a458be0232fe3526b5a7fb3958 | refs/heads/master | 2021-08-22T10:55:47.304500 | 2017-11-30T01:49:22 | 2017-11-30T01:49:25 | 111,672,231 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,027 | r | make_ratings.R | #' Simulate ratings data
#'
#' @param n.alts number of alternatives to be rated
#' @param n.raters number of people assigning ratings
#' @param strengths a vector of length n.alts containing the underlying strengths; if NULL strengths are chosen at random
#' @param sd.strengths standard deviation for randomly assignin... |
a9bd310b023c1ae622ab24f4a06f67bd1c00f774 | c287bcd8eb4cc723787454b15442f0a4e4f0db0d | /R/benchmark.getDTeval.R | 171a8dcd9191db8ceadd4c19f708c6cbadbc831e | [] | no_license | Zoe0409/getDTeval | f0fbb7e4b4e45be7e39ea905ded58964eba26e53 | d26d32f56d7362bd169c8c92a49879148fb44915 | refs/heads/master | 2020-11-30T20:36:22.495031 | 2020-07-24T01:46:30 | 2020-07-24T01:46:30 | 230,473,930 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,425 | r | benchmark.getDTeval.R | #' benchmark.getDTeval
#'
#' @description Performs a benchmarking experiment for data.table coding statements that use get() or eval() for programmatic designs. The a) original statement is compared to b)passing the original statement through getDTeval and also to c) an optimized coding statement. The results can demo... |
8f6174f19cdad2203254c51811d322c7c43f21ae | 911115a9acec8000c9ddba12c8ecfca55f684ec5 | /run_analysis.R | cf1809f56ec7178d37b631425d7a24e3852ee214 | [] | no_license | manjicar/GettingCleaningData | 2584df730eaafe62836bef2e01ff4775a99cdbb3 | 32256ff78954e3dc2d79376698f9180f6ee2414b | refs/heads/master | 2020-07-03T16:40:03.413581 | 2016-11-21T03:03:53 | 2016-11-21T03:03:53 | 74,246,909 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,037 | r | run_analysis.R | # Read the data sets
xTrain <- read.table("X_train.txt")
yTrain <- read.table("y_train.txt")
subjectTrain <- read.table("subject_train.txt")
xTest <- read.table("X_test.txt")
yTest <- read.table("y_test.txt")
subjectTest <- read.table("subject_test.txt")
features <- read.table("features.txt")
activityLabels <- ... |
80abf94b60d711ad85e39218df0ed8d4eab0ac07 | fd34554dc7416c67491e519019ec57331a835c91 | /binomial/man/bin_variable.Rd | 0fdcc6afe496f3c26c0776f7d36cb12b764d8cd7 | [] | no_license | stat133-sp19/hw-stat133-alanvaldez02 | 252d2f7bec7b90be7cf3342fc967c84e87a3a740 | ba41f6aa7d70fa8b2f87ba5bcf2753eb2be3de13 | refs/heads/master | 2020-04-28T20:39:50.541157 | 2019-05-04T00:22:28 | 2019-05-04T00:22:28 | 175,552,306 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 314 | rd | bin_variable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin_variable.R
\name{bin_variable}
\alias{bin_variable}
\title{bin_variable}
\usage{
bin_variable(trials, prob)
}
\arguments{
\item{trials}{number of trials}
\item{prob}{probability}
}
\value{
variables
}
\description{
calculates...
}
|
5c970163014e857d35bf7425a8fa7769d5ebec99 | 3841eb5fbed3bba2490b9c8b0bf4193f55b16bbc | /man/Valid.correlation.Rd | adc89b714b2a72162afad4c75ea219a6f470f7d6 | [] | no_license | cran/PoisNor | aa906efef068fe5a37a63bb3c89ec23230245864 | fd45a990c7fdafa9b16a98f718f7a29038b58585 | refs/heads/master | 2021-06-20T01:57:02.974526 | 2021-03-21T21:50:02 | 2021-03-21T21:50:02 | 17,928,742 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 876 | rd | Valid.correlation.Rd | \name{Valid.correlation}
\alias{Valid.correlation}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Computes the lower and upper correlation bounds in the form of two matrices
}
\description{
The function computes the lower and upper bounds for the target correlations based on the marginal rates.
... |
b3103a38322037cf78fbd4442ca8171a9c9adf94 | 738da2690597f09ea30eab5cacb639618df3b152 | /man/correlateReads.Rd | f8d1b323c8977ebb38eb8417f937ee21c576d425 | [] | no_license | LTLA/csaw | 2ba04325357ac6027a5f246a66a2bcb47e5c2822 | cac071b818458ae19b091c20b4bea9f477ec80a9 | refs/heads/master | 2023-03-23T01:07:46.995530 | 2023-03-14T05:46:54 | 2023-03-14T05:46:54 | 102,946,148 | 5 | 4 | null | 2020-11-02T18:30:29 | 2017-09-09T10:10:50 | R | UTF-8 | R | false | false | 4,316 | rd | correlateReads.Rd | \name{correlateReads}
\alias{correlateReads}
\title{Compute correlation coefficients between reads}
\description{Computes the auto- or cross-correlation coefficients between read positions across a set of delay intervals.}
\usage{
correlateReads(bam.files, max.dist=1000, cross=TRUE, param=readParam(),
BPPARAM=Se... |
5e8c8f455e663d42d0d248003f2da7ba8bddb4b5 | bacdafc215720beab30760b35cb74c447ada8a92 | /Ecological-Modeling/Rpplane-SimpleCoralMucus.R | a2095934447080cef29c27dcff00d505802d32ed | [] | no_license | jlmorano/Reference-R-scripts | 38f5aaf44ad854d29c667e0279c3b84654bf1a28 | dd67863c506fa8adbcd848df9c81491775768bce | refs/heads/master | 2023-07-03T04:06:27.045859 | 2021-08-09T18:56:32 | 2021-08-09T18:56:32 | 90,040,998 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 522 | r | Rpplane-SimpleCoralMucus.R | rm(list=ls(all=TRUE))
require(Rpplane);
# Function to compute state variable derivatives.
# Note that the state variables are sent in as two separate arguments,
# not as a vector, and that time t is not an argument.
coralmucus=function(B,P,parms) {
r.B=parms[1]; r.P=parms[2]; lambda=parms[3];
S=1-B-P;... |
795588c30becaf41a1a7277feba2c99ffe3219c8 | 155f0b41ac738e2c9671299da0e094e69fca5939 | /man/cal_proxy_toggle.Rd | 09a2b6753ba3d32c62a40f68ce3625b95361693b | [
"MIT"
] | permissive | jeanantoinedasilva/toastui | dd8fa04519c5822966abffffb1b9b23ea0e25a3a | 7dfa548d11c2df13d3c7317047862079f8e5d07d | refs/heads/master | 2023-09-02T08:47:47.501078 | 2021-11-03T15:45:55 | 2021-11-03T15:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,567 | rd | cal_proxy_toggle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calendar-proxy.R
\name{cal_proxy_toggle}
\alias{cal_proxy_toggle}
\title{Toggle schedules visibility with Proxy}
\usage{
cal_proxy_toggle(proxy, calendarId, toHide = TRUE)
}
\arguments{
\item{proxy}{A \code{\link[=calendar_proxy]{calendar_pro... |
774f18d826bff0a499d918f5986675327378996e | 2a6f2e9519ec64b8a19593fb8e9d4f40f4d2920d | /R Scripts/CpG Context LOLA Enrichment Analysis.R | 85db8fcc3b7aefed7725fc5753e9d048785da3ea | [
"MIT"
] | permissive | cemordaunt/AutismCordBloodMethylation | ff839065a1c1824aa8b02dea37de6f0306e60c7d | 5b1a4101a7b1d8bc3cfcb1df693d842fa887d12f | refs/heads/master | 2022-01-31T21:26:43.924461 | 2022-01-12T23:24:15 | 2022-01-12T23:24:15 | 149,683,492 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 49,143 | r | CpG Context LOLA Enrichment Analysis.R | # CpG Context LOLA Enrichment Analysis ---------------------------------------------
# Autism Cord Blood Methylation
# Charles Mordaunt
# 7/8/19
# Packages ####
.libPaths("/share/lasallelab/Charles/R")
sapply(c("tidyverse", "LOLA", "simpleCache", "GenomicRanges", "qvalue", "annotatr", "scales", "reshape2"), require, c... |
a89d33e4cbcd8ed70e441bbe671db73f3ac0db6a | 7f6ebeae15924e7aa0ce463859c8122e438c62aa | /chap04/APS.R | 1b3a6983102cdf1f04bed4c414ad03189d2e598d | [] | no_license | leetschau/app-of-rlang-in-stats | fd9d67f69e4c9f1373beb66a9dcebc7be3e1e51d | fb3c01873167f87944c7d35cb42cd5ada52dd483 | refs/heads/master | 2021-09-06T06:47:24.250126 | 2018-02-03T11:58:31 | 2018-02-03T11:58:31 | 120,087,020 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 125 | r | APS.R | ## (1)
pbinom(6, size = 30, prob = 0.4)
## (2)
1 - ppois(6, lambda = 2.4)
## (3)
phyper(q=3, m=10, n=52-10, k=34) |
71bdae1f1e9ff69cfef866a9465c35f31e3fd9a1 | eb46831a43d55a348e29989d827401f2eb49e30a | /Functions/mandateData_exposure.R | e8dd46019cc441edccb957d52c6aa12e0288e533 | [] | no_license | bplloyd/R-risk-mgmt | 32a0315bdd95790acb4c98cc87c52993a1cd8f9a | ad0e0f3596e5588fb4c483486e271fb98ad942cc | refs/heads/master | 2020-12-13T09:19:32.536834 | 2016-08-03T22:08:14 | 2016-08-03T22:08:14 | 49,309,816 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 534 | r | mandateData_exposure.R | mandateData_exposure = function(id, deltaAdj = 0)
{
#library(RODBC)
library(data.table)
library(xts)
library(PerformanceAnalytics)
#cn = odbcDriverConnect("driver={SQL Server}; server=HAT-SQL-01; database=Hatteras_Sandbox_Tools; trusted_connection=true")
parID = paste0("@id = ", id)
parDA = paste0("@expo... |
23b3016ad921b833d6a3d11ce45b84fac661d57a | 8abffdffea71532e93618d622e8efd8bf831332b | /veterans-0-import.R | afb85e6db79c6907b883b2026eabbe863f3ff6bc | [] | no_license | andrie/veterans | 34577d46b5dc014aa39918f538092495bcd464ce | 265ef2abbb144e017e4c45cede75c5fc9df015b9 | refs/heads/master | 2021-01-23T13:48:45.184065 | 2013-10-28T10:35:57 | 2013-10-28T10:35:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 128 | r | veterans-0-import.R | datafile <- "data/cup98LRN.txt"
rdsfile <- "data/cup98LRN.rds"
dat <- read.csv(datafile)
dim(dat)
saveRDS(dat, file=rdsfile)
|
4316b00c423b9f5ee051aaa25498bae0fa04ac40 | 2efd6577c2fa013630ba2c319ae6f7a898e5226c | /man/plot.CoreModel.Rd | 7bd350d9491ec2f80289d15b35950c05f7fb93eb | [] | no_license | rmarko/CORElearn | 983ea2d727798cbe6980b78584475190e968c6ab | fc696cb021a6117b0a4cd289e7dd8ce893e04e7b | refs/heads/master | 2022-11-19T03:04:22.661883 | 2022-11-06T11:38:21 | 2022-11-06T11:38:21 | 76,198,397 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,822 | rd | plot.CoreModel.Rd | \name{plot.CoreModel}
\alias{plot.CoreModel}
\title{ Visualization of CoreModel models }
\description{
The method \code{plot} visualizes the models returned by CoreModel()
function or summaries obtained by applying these models to data.
Different plots can be produced depending on the type of the model.
}
\... |
4ff091cd81413c5b81bde3d8fcc7414207ddd9ef | 35de14603463a45028bd2aca76fa336c41186577 | /man/NOTT_2019.bigwig_metadata.Rd | 0fbade29c1b168f2b0980476cda47c471fa62e06 | [
"MIT"
] | permissive | UKDRI/echolocatoR | e3cf1d65cc7113d02b2403960d6793b9249892de | 0ccf40d2f126f755074e731f82386e4e01d6f6bb | refs/heads/master | 2023-07-14T21:55:27.825635 | 2021-08-28T17:02:33 | 2021-08-28T17:02:33 | 416,442,683 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,492 | rd | NOTT_2019.bigwig_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{NOTT_2019.bigwig_metadata}
\alias{NOTT_2019.bigwig_metadata}
\title{Metadata and links to data}
\format{
An object of class \code{data.table} (inherits from \code{data.frame}) with 18 rows and 14 columns.
}
\source... |
c59e23644f14652b41d861785665c770a7e157b4 | 5d24927b8ea91179106f2f4055334c7ebdeb6ecb | /server.R | c18fac0ab804dacf319c8f29a64288d709de33c2 | [] | no_license | victorabelmurcia/UDE-APP | 4b6bc2176d237d3852673cd6cf67f4296ba02e48 | 30bb0f21f709ccc9a5bc2899e1742b1571b5fdf4 | refs/heads/master | 2021-01-14T09:36:41.144350 | 2016-01-08T16:59:42 | 2016-01-08T16:59:42 | 49,276,521 | 0 | 0 | null | 2016-01-08T14:28:34 | 2016-01-08T14:28:34 | null | UTF-8 | R | false | false | 530 | r | server.R | # server.R --- defines the logic of the application
# Logic
shinyServer(function(input, output) {
# Load user data
datasetInput <- reactive({
inputData <- input$data
if (is.null(inputData)) return(NULL)
data <- read.csv(inputData$datapath, header=input$header, sep=i... |
af3d0ec658631035efa15bde20c0202b05542277 | 994861903a0f4ccd5e180ba351cd803a66274313 | /shinyapps/app1/server.R | d33dfc92f9f45e0f9ed5a7e300b46fc79a5c7e98 | [] | no_license | arminakvn/philips-data-shiny | b40f4c9c94fe619f6cf0653205fe4628158b981c | d59e9e467c42edeacdaf68e07fc78a748bd913ac | refs/heads/master | 2020-02-26T17:08:00.437388 | 2016-10-23T19:34:46 | 2016-10-23T19:34:46 | 71,647,372 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,445 | r | server.R | library(shiny)
# install.packages("ggthemes")
# install.packages("lubridate")
# install.packages("gstat")
# install.packages("sp")
# install.packages("maptools")
# install.packages("ggmap")
library(ggthemes)
library(lubridate)
library(gstat)
library(sp)
library(maptools)
li... |
4f2a8c41a3ec7d73bf14c46ea72262b4bb98a226 | 6874d2514172b9e809dccf1e4879e0edfaabb050 | /R/check_sen2r_deps.R | 1d9acf40cc477edf230c4b455d537598960f7393 | [] | no_license | cran/sen2r | 27e59e874a36d30b02f319b1e77fcd66f54d3f2e | 3720d77a025fc9f8d9e04825910e830f35ffa61b | refs/heads/master | 2023-06-29T11:44:40.672296 | 2023-06-16T06:10:02 | 2023-06-16T06:10:02 | 216,648,730 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 45,483 | r | check_sen2r_deps.R | #' @title Check package dependencies
#' @description The function allows to graphically check that all the
#' optional runtime dependencies are installed.
#' @return NULL (the function is called for its side effects)
#' @details This package needs some external dependencies in order to run
#' specific actions:
... |
4bbcc66aa6cc3fef75dc9a5420e0e2fb1ee95ce3 | 0fb33ca8eef07fcb5d3687f4cf2793ef187f79f4 | /R/sx-scoreFACIT_AI.R | c0937aa8aa85c118b12d35d6964aadcf69f08607 | [
"MIT"
] | permissive | raybaser/FACTscorer | e3c10b9a065cb5b6290b211519b72ed9171a1fc2 | 070a1cf479ee8c1f19bf6a295c2ed0d544ff6406 | refs/heads/master | 2022-03-16T20:20:29.198088 | 2022-03-12T09:42:36 | 2022-03-12T09:42:36 | 61,918,573 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,188 | r | sx-scoreFACIT_AI.R | #' @title Score the FACIT-AI
#'
#' @description
#' Scores the Functional Assessment of Chronic Illness Therapy-Ascites Index
#' (FACIT-AI) from item responses.
#'
#'
#' @template paramsFACTG
#'
#'
#' @templateVar MEASURE FACIT-AI
#' @templateVar NAMESUB FACIT_AI
#' @templateVar SCORENAME FACIT Ascites Index
#' @templat... |
adc0f5eec9036e397304f7594dd538b7c6299366 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/MGDrivE/man/oneDay_pupation_stochastic_Patch.Rd | 4b3a2dbcaa1f3028cd148e95d6aef73c9114bb8b | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 736 | rd | oneDay_pupation_stochastic_Patch.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Patch-Simulation.R
\name{oneDay_pupation_stochastic_Patch}
\alias{oneDay_pupation_stochastic_Patch}
\title{Stochastic Pupation}
\usage{
oneDay_pupation_stochastic_Patch()
}
\description{
Pupa first undergo one extra day of survival, calculate... |
38e3afb8295231268cc9ce87f41675fb42fae701 | 6b943275756eee4b359cdd92ad1f940313b98fad | /R/functions_other_output.R | cb60f9dda072f6945409f97b10a6ecaa5564884b | [] | no_license | antonkalen/basketball-reselection | 48d7605892c2536f3a54b4c7b3b446d5beea7bd8 | 54dc448f77871e5eaa6fe71c7805ac6c12e2143a | refs/heads/master | 2022-12-31T02:53:33.617243 | 2020-07-09T15:01:51 | 2020-07-09T15:01:51 | 234,495,074 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,440 | r | functions_other_output.R |
# Birth quarter text results ----------------------------------------------
create_quarter_results <- function(draws, .width) {
# Filter and prepare data
draws <- prepare_quarter_draws(draws = draws)
# Calculate probabilities for top and bottom ranks
probabilities <- caclulate_quarter_reselection(draws = dra... |
0170c1e25c3eaf5ae7f1957665b6de5188158270 | e3e93deab30e5a660bd78570f821061b66d99c2d | /exercise-2/exercise.R | 22492c994e9aec22a980198437f16aaffed4dfa8 | [
"MIT"
] | permissive | zubinchopra/m7-functions | c7c829dd1d0c49144c9c67b24daffd9565e924c2 | 26a9a18dbe07081caab79fc1bcb67785d4062588 | refs/heads/master | 2021-01-19T01:19:01.635077 | 2017-04-06T01:16:23 | 2017-04-06T01:16:23 | 87,237,997 | 0 | 0 | null | 2017-04-04T21:43:39 | 2017-04-04T21:43:38 | null | UTF-8 | R | false | false | 1,265 | r | exercise.R | # Exercise 2: writing and executing functions (II)
# Write a function `CompareLength` that takes in 2 vectors, and returns the sentence:
x# "The difference in lengths is N"
CompareLength <- function(v1, v2){
difference <- abs(length(v1) - length(v2))
difference.string <- paste("The difference in lengths is", diff... |
495ec21677cf4f3c3fa1274671554cde995f9825 | be6e0a5b11fe08b1ff89468821cf121bfbe34877 | /Quiz4-4.R | 7c6be72746dc8129a0581a5d9d4999709d08c996 | [] | no_license | jguerra000/Coursera-GCLD | b5e374106071feb6048572638bd882ee6c7ef388 | ff2154d0ae2de62465f0992b1c2259c22edc7cb5 | refs/heads/master | 2016-09-06T01:21:22.230891 | 2014-08-25T09:56:13 | 2014-08-25T09:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,339 | r | Quiz4-4.R | # Question 4
# Load the Gross Domestic Product data for the 190 ranked countries in this data set:
#
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv
#
# Load the educational data from this data set:
#
# https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv
#
# Match... |
553b36b336f8cdbb2fb052b410a35d313a0667b6 | c7da4f8328e9af42899256479e47db23dbf83677 | /render_report.R | 07d4b2e49d37a2d347c6adb865388d89fb58dbd2 | [] | no_license | UW-GAC/tagging_data_analysis | 6faec7d0dcc328c06a0d85fd8d668937f4b66a4a | 690dc7cf0f90b689252488a69b587f9fe26f2cce | refs/heads/master | 2020-09-23T09:01:05.110619 | 2019-12-24T01:40:14 | 2019-12-24T01:40:14 | 225,459,878 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 70 | r | render_report.R | #!/usr/bin/env Rscript
rmarkdown::render('analyze_tagging_data.Rmd')
|
3b4cf1f2bfccf6169c5b477fde4f9a3d10730c61 | 35b9530d0bd20b69e2508954183d6e52db45826f | /R/qrVersionInfo.R | 7764b77327d153c2597e4741a5906d30ddf788ef | [] | no_license | victorteh/qrcode | fd67c312d0465ddf70fc6ef35d70c443dd5eb496 | 7d3305d3fa134afced8f48d13a5b4c4540ddb2e9 | refs/heads/master | 2021-01-01T05:38:18.649874 | 2015-08-24T00:12:36 | 2015-08-24T00:12:36 | 41,254,512 | 3 | 3 | null | 2018-06-19T12:33:44 | 2015-08-23T15:12:48 | R | UTF-8 | R | false | false | 1,177 | r | qrVersionInfo.R | #' Function to identify the version of the QRcode based on input string
#'
#' @param dataString dataString is the input string
#' @param ECLevel Error Correction Level. In QRcode standard, the are 4 levels \"L\",\"M\",\"Q\" and \"H\" which represent 7\%, 15\%, 20\% and 30\% data recovery capability.
#'
#' @return 1 row... |
7c6d5ea8c5d4f68d800b9af44cce218dc4311472 | bbb13d6e632191b6844053d897fb4a76d2063710 | /Bootstrapping-Consolidated.R | 7fc87b359172d92eb63a153d5ab8d6ff59dfd1c3 | [] | no_license | sabreenaabedin/SYS4021 | 94e8fa8aec0e214a791a935dabc9f4ec68171151 | 43d6821f99fe3835d9c4c14c4924d5763c46151b | refs/heads/master | 2020-03-23T13:23:50.235075 | 2018-07-19T18:34:20 | 2018-07-19T18:34:20 | 141,615,785 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,652 | r | Bootstrapping-Consolidated.R | #***************************************************************
# Transplant Center
# Observational Analysis
#***************************************************************
#***************************
# Load the transplant data
#***************************
setwd("/Users/sabreenaabedin/Desktop/class/SYS4021... |
d2187dc641320af15ffbd39bcfa70507388fdbfc | ce3bc493274116150497e73aa7539fef1c07442a | /R/model_functions.R | 9b8adc18f368dd3da64deabab9d0dedb2aebe3bb | [] | no_license | laresbernardo/lares | 6c67ff84a60efd53be98d05784a697357bd66626 | 8883d6ef3c3f41d092599ffbdd4c9c352a9becef | refs/heads/main | 2023-08-10T06:26:45.114342 | 2023-07-27T23:47:30 | 2023-07-27T23:48:57 | 141,465,288 | 235 | 61 | null | 2023-07-27T15:58:31 | 2018-07-18T17:04:39 | R | UTF-8 | R | false | false | 33,055 | r | model_functions.R | ####################################################################
#' Automated H2O's AutoML
#'
#' This function lets the user create a robust and fast model, using
#' H2O's AutoML function. The result is a list with the best model,
#' its parameters, datasets, performance metrics, variables
#' importance, and plots.... |
e37e2f9984211eba7bd37ca8474b6966cd7d1563 | 4e0a47f3995d3c7834270a06479cee615468aa5a | /lab programs/1(a).R | 3161f740e3793759c31c155cb547eb7ba27e93b0 | [] | no_license | madhuri-n/DSR | 0f9d53ffa75cba3a184c3813ed2dde102aa3c263 | 5e3fb63b2356ca8742959e25b3a57f07e13bee41 | refs/heads/master | 2020-09-13T04:00:26.508233 | 2019-11-19T19:33:05 | 2019-11-19T19:33:05 | 222,649,502 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 176 | r | 1(a).R | path="C:/Users/Sangu/Desktop/DATA_SET"
setwd(path)
datav=read.csv("iris.csv")
plot(datav$sepal.length,datav$sepal.width)
#length and width are taken as paarmeters here to plot
|
9ab8d05bdff11dc3baf58dd941c5493e563ed190 | c6d4151982154b9ffead267e10e00bc8b847a0bd | /datafest_analyse.R | 00ca424b6c062bb5590261ec4df4ccdf72455c40 | [] | no_license | pauschae/RSquaredDatafest | 1a5e8849bab1e86f71c63fbd50c9bda48425a4ce | 8409b3e04efa2e76f2ab1a2fcf1cfc916113867c | refs/heads/master | 2021-01-10T05:31:00.077261 | 2019-06-16T19:59:33 | 2019-06-16T19:59:33 | 55,712,993 | 0 | 1 | null | 2019-06-16T19:59:34 | 2016-04-07T17:08:26 | R | UTF-8 | R | false | false | 6,967 | r | datafest_analyse.R | library(rjags)
library(dplyr)
library(lme4)
library(MCMCpack)
library(superdiag)
#source("https://bioconductor.org/biocLite.R")
#biocLite("Rgraphviz")
#biocLite("graph")
#library(memisc)
#library(Hmisc)
#library(stringr)
#library(rvest)
## ---- load data ----
#library(data.table)
# adwords <- fread("./data and codeb... |
4cf9abf4545069a7dbb3f7638b21e987363a7f9a | 5a69a5598becead1d00e3cc34e5b04269d92392d | /odmsRater/hindcastGames.R | 9345dc0692651fe391b466e16885dfe345201a63 | [] | no_license | thezane/soccer-predictions | 22fdb9cf01b13b726bade2455db4b1dd80521665 | bab14c90491260443387b24c55ceabafd508d41e | refs/heads/master | 2020-12-02T17:40:13.130011 | 2018-07-06T03:43:33 | 2018-07-06T03:43:33 | 58,686,755 | 22 | 5 | null | null | null | null | UTF-8 | R | false | false | 829 | r | hindcastGames.R | hindcastGames <- function(rOptions) {
library(MASS)
library(hash)
library(parallel)
library(skellam)
regexRFiles <- ".*\\.R"
inputPath <- "../input/"
outputPath <- "../output/"
srcFiles <- list.files(".", regexRFiles,
full.names=TRUE, recursive=TRUE)
sapply(srcFiles, source)
readsData <- readD... |
022dfb901f5a055b52ef9156bbe48c9b82707e61 | c174e265381f3924de8aadf3da0c498abf74f257 | /tests/testthat/test_SETRED.R | 437293e0bd376fd2614e2c1b24cc4b2ec879eb87 | [] | no_license | mabelc/SSC | 4cde0c396784e17a5412de2c94b27e264f5a975f | 4565f07e0f197e823bcea8442ed9ea82b0c94712 | refs/heads/master | 2022-04-05T12:12:36.306805 | 2019-12-16T20:06:18 | 2019-12-16T20:06:18 | 119,087,635 | 10 | 5 | null | 2019-12-16T20:06:19 | 2018-01-26T18:24:37 | R | UTF-8 | R | false | false | 3,909 | r | test_SETRED.R | context("Testing SETRED")
source("wine.R")
require(caret)
test_that(
desc = "setred works",
code = {
m <- setred(x = wine$xtrain, y = wine$ytrain, learner = knn3)
expect_is(m, "setred")
p <- predict(m, wine$xitest)
expect_is(p, "factor")
expect_equal(length(p), length(wine$ytrain))
... |
bb1c79ba4b6c01e40b6f216d9c581bf2e79ee207 | 3d17a1ee10cfded91925d9129aac73cc1ccf0610 | /run_analysis.R | f73cdc594b92a619a54fae2efb1c4cb64b82956a | [] | no_license | sanderlings/CleanData_Assignment | 89982a7454929132b02e76858fc0206ea30b9a96 | 90ba6bc7d08cf7fa272f42da3d252030eef5034f | refs/heads/master | 2021-01-10T19:44:49.626161 | 2014-09-17T19:27:12 | 2014-09-17T19:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,760 | r | run_analysis.R | setwd("C:/Users/Joanna/Documents/Z-Study/Coursera/DS3-Clean/CleanData_Assignment/")
library(reshape2)
library(plyr)
# read the test measurement data
testdata <- read.table("./UCI HAR Dataset/test/X_test.txt")
# read the measurements names, then trim only the text column
colname <- read.table("./UCI HAR Dataset/featur... |
fdaad2fb2bc4ea1640d02ae62f4b8352e80c25d2 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610130913-test.R | 5016c7209990898c2aa0de62aff142ed17cf928f | [] | 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 | 359 | r | 1610130913-test.R | testlist <- list(a = 0L, b = 0L, x = c(-117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -117901064L, -121046792L, -117901064L, -117901312L, -171L, -1L, -16777216L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(gra... |
20b3131bc88883b0939e7a23d7ffa47062b6778f | 09cfd76986efe97a4395657c74fd9611f070316c | /cachematrix.R | 47d929c3a84697bf2035fd8f0a5ecc9ac0ce8d14 | [] | no_license | mdnaveed91/ProgrammingAssignment2 | 11c55e953469e5b476a6be6750a3f07410b07aa7 | a10085200b3d7948d0bd8e1226a7f0426c7b6ea0 | refs/heads/master | 2021-01-17T05:30:41.557452 | 2015-02-21T20:47:43 | 2015-02-21T20:47:43 | 31,137,494 | 0 | 0 | null | 2015-02-21T19:20:51 | 2015-02-21T19:20:51 | null | UTF-8 | R | false | false | 1,158 | 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()) {
m<-NULL
set<-function(y){
x<<-y
m<<-NULL
}
get<-function() x
setmatrix<-function(solve) m<<- solve
getmatrix<-function() m
list(set=set... |
1e1b59da68294e1330cb12f200355f97672712b8 | 57b64b96a84935739474b18dd783183b74765960 | /man/build.paths.Rd | d7ce7df291cedb42f75fef62c657cdae69506340 | [] | no_license | erikbjohn/pkg.data.paths | 800439ab30b5ec1292eb242756e9a4117197415e | f34054d119e5f92d657339d42964d72e9d8e624b | refs/heads/master | 2021-01-01T15:34:50.656006 | 2017-08-15T15:17:38 | 2017-08-15T15:17:38 | 97,653,138 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 446 | rd | build.paths.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkg.data.paths.R
\name{build.paths}
\alias{build.paths}
\title{build.paths}
\usage{
build.paths(path.root, str.pkg.name)
}
\arguments{
\item{path.root}{root local dropbox directory}
\item{str.pkg.name}{package name of files}
}
\description{
... |
051420a60242e1abfae71f542167a5d8af514af7 | e2c7181ed4e32ad6375160811fc1e13a6c5c1752 | /R/class_statistics.R | 9a6bac5a7a69150581c568441b55a9f305b4a343 | [] | no_license | mauricioromero86/teamlucc | c6bbef6beff5bb19ba068db500e6c6e483086507 | b41fdd3135dd58c45a0a76c8c568768104267eaa | refs/heads/master | 2020-12-24T11:33:13.644455 | 2015-09-10T14:14:44 | 2015-09-10T14:14:44 | 40,678,059 | 0 | 2 | null | 2015-08-13T19:33:49 | 2015-08-13T19:33:48 | R | UTF-8 | R | false | false | 1,495 | r | class_statistics.R | #' Exports statistics on pixels within each of a set of land cover classes
#'
#' @export
#' @import raster
#' @importFrom dplyr group_by summarize
#' @importFrom reshape2 melt
#' @param x A \code{RasterLayer} from which class statistics will be
#' calculated.
#' @param y A \code{SpatialPolygonsDataFrame} with cover cl... |
c51e47fef24e4659933927073c260a1e71a20f5a | 8357f04a0a50e10697a650ad319b37738dcc2cf8 | /man/github-package.Rd | be9260385a8b8851bf05d1b23149e39fb2ec6c7b | [
"MIT"
] | permissive | prateek05/rgithub | 2a7114a8262cd6abefc8d31f03a907b75f127ba2 | 153bde1466252952e21c1fdb2ff0b452b9c8de99 | refs/heads/master | 2021-01-17T04:24:00.180261 | 2014-07-14T17:24:43 | 2014-07-14T17:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 861 | rd | github-package.Rd | \name{github-package}
\alias{github-package}
\alias{github}
\docType{package}
\title{
Use the Github API from R
~~ package title ~~
}
\description{
This package wraps the Github web service API so you can make R calls
against the Github API (to get information about repositories, or even
to create new content)
~~ A con... |
4a769cd87362f6e6c94d9f2dda0cc1a792cfcce1 | 0d0d0a8baa83af3ad38ea2e419544db094d4b9fd | /man/fm_checkdesign.Rd | e63aa8b2102be67f86ede681d4dc0ca286632b38 | [] | no_license | cran/fishmethods | 81162cf5bf35201c7ce85dd6e9815c4bca6b7646 | ac49e77d9f2b5ee892eb5eae1807e802cddd4ac8 | refs/heads/master | 2023-05-17T13:53:37.128033 | 2023-04-27T07:33:01 | 2023-04-27T07:33:01 | 17,696,062 | 5 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,532 | rd | fm_checkdesign.Rd | \name{fm_checkdesign}
\alias{fm_checkdesign}
\title{Check parameter structure of Hightower et al. (2001) models}
\description{
Check design of parameter structure before use in function \code{fm_telemetry}.
}
\usage{
fm_checkdesign(occasions = NULL, design = NULL, type = "F" )
}
\arguments{
\item{occasions}... |
8b0c7c4dd7bc3cf262a7be251b1f666c20c8f182 | 0380705740a297a32860ba83cbb8869464c40123 | /var.R | 1882e82a2f674d684f15c858af4c40b2d4909433 | [] | no_license | cwalenciak/WindApp | 527630082c1148ad8fbac1d2fb4baec4b8a09ea3 | f50fd3b668cc2bd3128d71c9998ade5e7702b20a | refs/heads/master | 2022-11-13T19:02:31.535634 | 2020-07-11T12:42:29 | 2020-07-11T12:42:29 | 264,351,771 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 557 | r | var.R |
var_page <- tabPanel(
"VAR",
sidebarLayout(
sidebarPanel(
width = 3,
var_data_select_ui("var_data_select")
),
mainPanel(
width = 9,
includeCSS("www/custom.css"),
tabBox(
width= 12,
... |
09383e14f0ec661928e6a8af7b3d96f826956051 | 18a55611ad5aa3145c7b49cee1ff84ebf8fd95a8 | /man/limit_cq.Rd | 8cf8e0ce7fd5c1e9418bffa1b5c02625d20ca5e8 | [] | no_license | michbur/dpcR | eb55969b0702ce7da9f2fe09b779c3145960118b | 741846b6a0f5febf682b03367b1b18c87cdb4c85 | refs/heads/master | 2022-11-21T10:29:31.475295 | 2022-11-07T20:26:50 | 2022-11-07T20:26:50 | 12,669,549 | 7 | 2 | null | 2014-04-25T07:51:33 | 2013-09-07T18:32:06 | R | UTF-8 | R | false | true | 3,670 | rd | limit_cq.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/limit_cq.R
\name{limit_cq}
\alias{limit_cq}
\title{Limit Cy0 values}
\usage{
limit_cq(
data,
cyc = 1,
fluo = NULL,
Cq_range = c(1, max(data[cyc])),
model = l5,
SDM = TRUE,
pb = FALSE
)
}
\arguments{
\item{data}{a dataframe conta... |
d997ce8392a1135a9a2bdd8399c870a5832162fb | fbe4928c7d1c78ee436b5aec4b1d6a3c89da5385 | /run_analysis.R | 9c3443c37ff4461768f827d613d89ec9bc7e0029 | [] | no_license | biswassubrata/Coursera-Course-3-Project-Work | d22a6f32f1ca499888aefe6aa3672c330310e970 | 595a8a9df9f013cc7666cdb7a38045b102ead4b6 | refs/heads/master | 2021-05-11T22:41:48.393438 | 2018-01-15T06:25:59 | 2018-01-15T06:25:59 | 117,497,119 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,783 | r | run_analysis.R | #
# Download and unzip the data file, if they are not available already
#
if (!file.exists("datafile.zip")) {
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", "datafile.zip")
}
if (file.exists("UCI HAR Dataset")) {
unlink("UCI HAR Dataset")
}
unzip("datafil... |
dfa2ed47bfcb908d49b332a24ffda3df5a60704a | ce6317a8de3fe10f2b3eea8e4a5b68d2841c6e24 | /man/PhylogeneticH2.Rd | cd5ec49ba14ba5da55bb6fd339a1f833f1813cd1 | [] | no_license | gtonkinhill/POUMM | 8fc55e702a28b6ff9e383481613c4cd64aa1d5d4 | 5199370f088b33e6f8bb3c216f29feb485576ee7 | refs/heads/master | 2020-04-05T05:09:03.474985 | 2017-07-02T13:23:35 | 2017-07-02T13:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,369 | rd | PhylogeneticH2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paramsPOUMM.R
\name{PhylogeneticH2}
\alias{H2e}
\alias{PhylogeneticH2}
\alias{alpha}
\alias{sigmaOU}
\alias{sigmae}
\title{Phylogenetic Heritability}
\usage{
alpha(H2, sigma, sigmae, t = Inf)
sigmaOU(H2, alpha, sigmae, t = Inf)
sigmae(H2, a... |
c014aaefb699054c1d551656847e1318dfb5d7d6 | 4f871a504b17ac92fd8cef3764f182a4416f6f72 | /man/getGObiomaRt.Rd | 0339c6dc074b0bedcf013ea029b6cc2be728cd44 | [
"MIT"
] | permissive | martaint/InterCellar | 9227bd44f120fffecdc05adc0e75cb52315e3186 | d9483f7df8eb5168fc8660a73483572a12ca35cb | refs/heads/main | 2023-04-07T06:15:39.023654 | 2022-04-06T08:46:25 | 2022-04-06T08:46:25 | 326,775,859 | 7 | 3 | null | null | null | null | UTF-8 | R | false | true | 465 | rd | getGObiomaRt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_annotation.R
\name{getGObiomaRt}
\alias{getGObiomaRt}
\title{Connection to Ensembl via biomaRt to get GO terms}
\usage{
getGObiomaRt(input_select_ensembl, input.data)
}
\arguments{
\item{input_select_ensembl}{chosen version of Ensembl}
\... |
06b134b21ca7fa211b1a7e4f55551ceda59b9948 | 598d36d24e3ae40e6422d8b5216f6018c1bc3ceb | /man/polynomial2.Rd | 9ff576cbea919a08e1e13827e4b5d35c7ed9eb2a | [] | no_license | femeunier/LianaHydro | b55244322fdac9fe5b98d607abe0615912ea83dc | 32d4050bff949dc96e7a6c58dfa689fbadfd40b4 | refs/heads/master | 2020-09-01T20:44:33.932223 | 2020-07-02T16:04:49 | 2020-07-02T16:04:49 | 219,051,562 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 335 | rd | polynomial2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/polynomial2.R
\name{polynomial2}
\alias{polynomial2}
\title{polynomial2}
\usage{
polynomial2(psi, a = 2, b = -2)
}
\arguments{
\item{psi}{water potential}
\item{a}{a}
\item{b}{b (P50)}
}
\description{
Returns polynomial PLC
}
\author{
Félic... |
f4937bda50f6adfc8ebec03a6d2d1b3f35b231a8 | 1aef9a9bae3c784239a35aac9f3d2d0422964193 | /alhe.R | 187a10af4e6c2cca67136ee3beacfa759431fe0e | [] | no_license | pawello2222/ALHE_TabuSearch | 989223a3cc864acb0df0ea7c8c44635f0eb28218 | 4fe789e5b60ae44566cade6d7653a29a196e38f1 | refs/heads/master | 2021-01-15T23:22:39.825629 | 2016-06-05T14:41:33 | 2016-06-05T14:41:33 | 61,218,871 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,046 | r | alhe.R | library(foreach)
source("TabuSearch.R")
source("MealsLogic.R")
source("ConfigVariables.R")
generateRandomPoint <- function()
{
randomPoint <- vector(mode = "list", length = mealsPerDay)
mealsSize <- nrow(dishes)
for (mealNo in 1:mealsPerDay)
{
randomMeal <- vector(mode = "list", length = dishesPerMeal)
... |
19fd5d572295365c526d73029f6bb903b4b2e23e | 3f355008d1e128b783097dba39eced1a5ff366ee | /man/drop_levels.Rd | 3594ef5ed6574f418a81db772edaf164485b8854 | [] | no_license | ghowoo/Wu | 94c19372874b14dae24edbebd5081e0035b8c1be | 87a786c117492f7ddddcc69112b370d76f7b8620 | refs/heads/master | 2022-06-03T05:48:14.576333 | 2022-05-25T22:22:26 | 2022-05-25T22:22:26 | 179,358,646 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 307 | rd | drop_levels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/drop_levels.R
\name{drop_levels}
\alias{drop_levels}
\title{The Drop Levels Functions}
\usage{
drop_levels(df)
}
\description{
This function allows you to drop all unused levels in a data.frame.
}
\keyword{drop}
\keyword{levels}
|
459a0776f547e4116ca3c5736083f3f3a5c3a8be | 14a05292970e84d53b8456dd8cd0a2b89b053fc0 | /Misc_SA_Plots/plot_age_length_fit.r | 622d4554d6f36a813e45c8b794915745f5536325 | [] | no_license | tetemouton/GGP | 479d0c86727fd14e6fd55c57bdcb23647c880208 | d0f8061b85cf7d9fbdb66980ded03474be75570d | refs/heads/master | 2021-01-10T03:00:05.154877 | 2015-12-15T05:04:05 | 2015-12-15T05:04:05 | 46,684,946 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,436 | r | plot_age_length_fit.r | plot.age.length.fit <- function(alfile="path", frqfile=read.frq("path"), inifile=read.ini("path"), plotfile=read.rep("path"),
parfile=read.par("path"), fixlog=FALSE, fix_pars=NA, sdmult=1, ylims=c(30,130), xlbl="Age (quarters)")
{
require(reshape2)
require(scales)
require(grid)
theme... |
852ff996a25bcbd7674f80200fb02452e950c8ec | a317fe63879cf1e9a2cbc4d54af2bdf3e3d3ac3e | /course_project_2/plot4.R | 2ec43fedbce14191162606cb0a552c944d63401b | [] | no_license | siavash9000/ExData_Plotting1 | a9323f2df5ee3ebc9c5a674490e4913c6c418a0e | 688dd2d0c6284557c25f55559a8f07b7ac1502a1 | refs/heads/master | 2021-01-18T06:05:16.550743 | 2014-06-17T19:49:04 | 2014-06-17T19:49:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 688 | r | plot4.R | library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
NEI$type <- factor(NEI$type)
coal_types <- merge(SCC[grep("Comb",SCC$Short.Name),],SCC[grep("Coal",SCC$Short.Name),])
coal_observations <- merge(NEI,coal_types,by="SCC")
sumByYears <- aggregate(Emissions~year, data=c... |
9662f86cecdb3deb330ed175fce04a86747c98aa | eb008c70bccc5b8868d588d3ac5c94e2b285878d | /R/bland-altman_with_proportional_bias.R | 6cf0cb5171ea8bb055d0c7b1b17e5edcba93e989 | [] | no_license | JamesHMcKay/bland_altman_plots | 01865c6b506c79617e61d4f7aeb41a5e47e91626 | d6fe0b8e12c01d087f4fac5fa16adcf7266d1343 | refs/heads/master | 2023-04-09T05:21:04.054349 | 2021-04-19T11:27:10 | 2021-04-19T11:27:10 | 338,759,666 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 823 | r | bland-altman_with_proportional_bias.R | plot_reliability <- function(measured_value_1, measured_value_2, label_1, label_2, range, filename = NULL) {
real_data = 0.5 * (measured_value_1 + measured_value_2)
difference = measured_value_1 - measured_value_2
#plot_differences(measured_value_1, measured_value_2)
#plot_differences_wrt_data(real_data, dif... |
68e550770d034a4b594fd5330f304d55a227197d | 178282a8db55ece8e011a265983c286ffedfa2f8 | /cleaning/6-fuentes-producccion-energia-es/ext/script.R | 78c8d7ac92c1f2915cf18a58da7f3d312cc80637 | [] | no_license | IlanReinstein/Portfolio | 8dc113c7ed527dfe59b30eaa6360398425068ffd | 6053c5645e7227f14afefb202dc2c2f60d6029f5 | refs/heads/master | 2020-07-07T08:43:32.230551 | 2017-08-24T16:47:04 | 2017-08-24T16:47:04 | 74,037,915 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,303 | r | script.R | library(reshape2)
library(plyr)
library(datapackager)
#Production
p <- read.csv('production/eg.egy.prod.kt.oe_Indicator_es_csv_v2.csv')
p1 <- read.csv('production/MetaData_Country_eg.egy.prod.kt.oe_Indicator_es_csv_v2.csv')
p1 <- p1[,1:4]
names(p) <- c('country', 'code', 'indicator', 'indicatorCode',seq(1960,2014,1))... |
0b9573f5cc9d01fea7cfe47ffda8cf1c49b22510 | 794b3436024b60a5e2a15923010e7406243a1321 | /Lectures/lec7/snails.R | ed1321c8437feecbfe2a3c4dd1da6b2fbad5a399 | [] | no_license | stel-nik/ADSM | 710a7d88952c1dc1d4391d3adc1c4d37fdbebe60 | b5280a7b74264b26a94fe22cb7b10052a19227ce | refs/heads/master | 2021-09-14T12:05:25.239445 | 2018-05-09T06:47:59 | 2018-05-09T06:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,195 | r | snails.R |
##################################################
# Snails
##################################################
setwd("~/Kurser/02424/2016/slides/week08")
snails <- read.table("snails.txt",header=TRUE)
head(snails)
snails$p <- snails$death/snails$n
library(scatterplot3d)
col <- numeric(dim(snails)[1])
pch <- numeric(d... |
f04512182cc7d29e86c543f6bb9392b70036695e | dd1102ed8f681e5dfb675075b870ee948f017ccc | /plotting_parameters.R | 43d732d5da1177791ae38e3ea48bd2070bc6c43b | [] | no_license | garridoo/ljsphere | a726ec88922bd967bcee1c44ff13f73de8e146dc | 647a1bc7d6a8ae15f50a4f751c94baae89727771 | refs/heads/master | 2021-06-12T19:59:49.903325 | 2021-05-20T11:25:13 | 2021-05-20T11:25:13 | 254,386,539 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 944 | r | plotting_parameters.R |
pcoa_width <- 8
pcoa_height <- 6
pcoa_size <- 2
pcoa_alpha <- 0.7
shannon_width <- 4
shannon_height <- pcoa_height
shannon_alpha <- 0.7
boxplot_size <- 1
boxplot_width <- 0.75
boxplot_jitter_size <- 1
width_rec_barplot <- 5
height_rec_barplot <- 3
size_rec_barplot <- 0.35
size_cumsum <- 0.75
at_color <- "#f8766c"... |
cc2849338c886674293d7454a33bdb85fcb5e94c | b4266044694a4b07a888f0b72c78381d7983b885 | /plot3.R | 46b2baa216b9483ae2b138dc84d5d7b3781961a5 | [] | no_license | RobinSmithCA/ExData_Plotting1 | d38b2ca45db8d0950b17bb04ca59738e2127aa71 | 825251c9766953ce394804541db6d254db1cebf4 | refs/heads/master | 2021-01-21T05:43:47.756310 | 2014-05-15T07:12:48 | 2014-05-15T07:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 707 | r | plot3.R | source( "assignmentLibrary.R" )
targetFile <- "plot3.png"
# start by initializing the data and directories (from assignmentLibrary.R)
initializeData()
# Open the PNG file for writing
openTarget( targetFile )
# output a comparative plot of the sub metering values
plot( rawData$TimeStamp , rawData$Sub_metering_1, typ... |
69dc5044cbb81c1b71470d2414cb98b911f11498 | 7dab5664e3b5d55b8975209651b2ba06a67b1b65 | /drivendata/nepal-earthquake/model.R | 23e97e4c2de2407d20307ff27a7cc004edfdbd4d | [] | no_license | rodrigorsdc/ML-competitions | 51b5759e431ffd232664f123d387cbbd0af68b94 | b4caaa5125257fff65344b2691c820b544470d6d | refs/heads/master | 2020-09-02T13:32:28.462184 | 2020-02-17T04:27:54 | 2020-02-17T04:27:54 | 219,232,660 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,920 | r | model.R | library(keras)
library(corrplot)
library(dummies)
library(nnet)
TEST_MOD = FALSE
f1_micro <- function(y_true, y_pred) {
confusion <- table(y_true, y_pred)
TP1 <- confusion[1, 1]
TP2 <- confusion[2, 2]
TP3 <- confusion[3, 3]
FP1 <- sum(confusion[, 1]) - TP1
FP2 <- sum(confusion[, 2]) - TP2
F... |
597dc0052207702ef4fe54e162f82a61f8024714 | af0c4e189164afa4a3a68e0d5abd916089cfd121 | /R/crim4.R | fd24a87c07b8ee51b2b1916a953799119ea05613 | [] | no_license | kkleinke/countimp | 72669d42ff799c318ed6c75bb388e9643afca7ab | db6baeb5cd3e59640791eb4d00175cfa12d2918a | refs/heads/master | 2022-03-09T14:11:02.159270 | 2022-02-14T16:26:39 | 2022-02-14T16:26:39 | 10,684,949 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 932 | r | crim4.R | #' The CRIMOC data set in wide format
#'
#' Dataset in wide format, see Reinecke and Weins (2013) for details.
#'
#' \describe{
#' \item{\code{id}}{participant identifier}
#' \item{\code{FEMALE}}{Gender indicator}
#' \item{\code{RE}}{school type dummy (intermediate branch)}
#' \item{\code{GY}}{school type dummy (to... |
2bbe98b71f85db5c540ca7befbc12e1e99203bf8 | aab045571a5d48845e8167ae4eec63549ff31945 | /file4_Clustering.R | cc91c82c38aff1df0cb7322fb7033f9e99cd3374 | [] | no_license | ManikantaDakoju/analytics | 38ccc74b783c0709a9bf7e58f68310773342e1c0 | a6aba423122bcfec6da8228ff41ca6547b1be23e | refs/heads/master | 2021-01-07T06:28:18.970714 | 2020-03-08T10:30:49 | 2020-03-08T10:30:49 | 241,606,705 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,544 | r | file4_Clustering.R | #association rule-----
library(arules)
library(arulesViz)
#clustering-----
ibrary(tidyverse) # data manipulation
library(cluster) # clustering algorithms
library(factoextra) # clustering visualization
library(dendextend) # for comparing two dendrograms
library(fpc)
library(NbClust) # finding the optimal number o... |
9b2bceb339425724d69109ccc7090b8f9b50b8b4 | bf3d44d21e0a367b7b7e0ed72c18dd2dee748de7 | /R/mergeENDDAT.r | 7c2523ea4d66cc5499a8b8d0b673dfffd1fb1815 | [
"CC0-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | ldecicco-USGS/rEnddat | 4dac635ba49659a908fc283fe0a43dad86436eb0 | a5622085436fba137790be3093afecd8247b0b69 | refs/heads/master | 2021-01-21T01:16:06.455089 | 2016-02-17T22:01:26 | 2016-02-17T22:01:26 | 51,953,576 | 0 | 0 | null | 2016-02-17T20:37:12 | 2016-02-17T20:37:12 | null | UTF-8 | R | false | false | 417 | r | mergeENDDAT.r | #' Merge EnDDaT dataframes
#'
#' Merge EnDDaT dataframes
#'
#' @param DF1 dataframe
#' @param DF2 dataframe
#' @return mergedDF dataframe
#' @export
#' @examples
#' DF1 <- data.frame(time=c(1,2,3), a=c(1,4,8), b=c(2,6,9))
#' DF2 <- data.frame(time=c(1,2,4), a=c(1,4,8), c=c(2,6,9))
#' mergedDF <- mergeENDDAT(DF1,DF2)
me... |
ebfe23a2e951030f11a3a0f4f25921f0d4febc6e | 50ef4a7b4048d0460460b0e3acdc0a5402d9ac8c | /mtx_to_rds.R | e49ddbcfbd90158ac57f3a47dfc0732331c78afd | [] | no_license | valavro/Bulk2SC | 24d77639ae23bb314f9efe4913651210339bbace | e1d0a36b6eb6fe23cf3f768ccfacdb5d7d43473d | refs/heads/main | 2023-05-24T13:03:55.663445 | 2021-06-13T22:50:34 | 2021-06-13T22:50:34 | 372,216,759 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,036 | r | mtx_to_rds.R | library(Matrix)
args <- commandArgs(trailingOnly=TRUE)
dataset = args[1]
### Load expression matrix, cell IDs (barcode.names) and gene names (feature.names)
path = paste0("Datasets/", dataset, "/Deconvolution/raw_matrix")
print("Reading expression matrix:")
exp_mat <- readMM(paste0(path, "/exp_matrix.mtx"))... |
2782314a103ba53266993246cce1e351d3551f0c | 880c65fd982c6931e143258c49fedd2f98d9f756 | /dye_transfer_dilger.R | 7e95a66bc23d85f49bf3fc10947e1df7da660b31 | [] | no_license | MaxMenssen/Dilger_et_al_2020 | 1b0de054c8824041d41c44a8d6d14e6727498969 | e399529714bcca9650212fe51c3f38257fd953cd | refs/heads/master | 2022-04-27T00:43:05.686868 | 2020-04-21T11:50:21 | 2020-04-21T11:50:21 | 256,220,247 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,180 | r | dye_transfer_dilger.R | #------------------------------------------------------------------------------
#--------------------------- Dye Transfer -------------------------------------
#------------------------------------------------------------------------------
# Loading required packages
library(hnp)
library(tidyverse)
library(lubridate)
... |
b14b2273c8311cbd023d63c27c5dfd33a34dab82 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/DCEM/examples/sd_uv.Rd.R | 8f31743c29e83a235a9e872cb1e57198d6c69fef | [] | 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 | 182 | r | sd_uv.Rd.R | library(DCEM)
### Name: sd_uv
### Title: sd_uv: Part of DCEM package.
### Aliases: sd_uv
### ** Examples
# Standard deviation of a random sample.
sd_uv(rnorm(100,20,10), 2)
|
13b5f91db02a47c1e366a54ffa79f83ac925a7e6 | f1532f6d61badcbbb1cfeb6f616fb2faac69ce9b | /shiny/NGS_cost/server.R | 82e295ee955e908764bc3ff3961e56d1b83edc2c | [
"MIT"
] | permissive | leylabmpi/leylab_pipelines | 16d70890df23324721160a2408831d6788c71e95 | 1c94b2ba55d877c489143a105c72c963e1e9ce51 | refs/heads/master | 2021-01-11T23:55:45.645801 | 2017-04-29T15:45:53 | 2017-04-29T15:45:53 | 78,647,037 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,601 | r | server.R | # Shiny server
library(shiny)
library(dplyr)
library(propagate)
library(rhandsontable)
library(readxl)
#-- functions --#
prop_total_GB = function(N_lanes, GB_per_run,
Lanes_per_run, alpha=0.05){
# N_lanes = numeric
# GB_per_run = vector(numeric...)
# CALC: Total_GB = GB_per_run / Lanes_... |
27c1e3f2e4304420c61c2ab9f5c547d8215ef1e2 | 9b2f64f9265a279f1e3784d7f741a59089a51ce9 | /modules/tools_tab/tools/pco2_tool.R | 18a39330e3da0383a9163f9d6ade9976f254e0c1 | [
"MIT"
] | permissive | jfontestad/SBER-METALP-data-portal | c7d29eb2f7660094c78dbebae0ab0e6bc69b798e | fe2da14658261b3844c331e09a7489788ca5718d | refs/heads/master | 2023-02-27T23:05:10.356685 | 2021-02-02T17:10:42 | 2021-02-02T17:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,427 | r | pco2_tool.R | ## This module contains the UI and server code for the pCO2 tool
## Create module UI function ######################################################
pCO2ToolUI <- function(id, ...) {
# Create the UI for the pCO2Tool module
# Parameters:
# - id: String, the module id
#
# Returns a div containing the layout
# Cr... |
30bcbebe97456bf3f1d7e55e495a0658be10a5a8 | 00042f5bad50f8e0ff84b25bb04c5b26c0e44864 | /R Programming/week_2.R | 82abcf9884857fc3891e4bde9fa546c5f945b3ee | [] | no_license | guddu75/datasciencecoursera | 48fdef5677e86e495290de21223416d4dcabd84c | 50ed752378cf451a8756afe4978ec569d2fa9988 | refs/heads/master | 2023-01-19T02:41:51.963031 | 2020-11-20T20:05:56 | 2020-11-20T20:05:56 | 313,021,095 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,285 | r | week_2.R | ######## CONTROL STRUCTURE OF R ###############
######### IF-ELSE##############
if(x>3){
y<-10
} else{
y<-0
}
y <- if(x>3){
10
}else{
0
}
###both are same
### FoR LOOPS
for(i in 1:10){
print(i)
}
x<- c('a','b','c','d')
for(i in 1:4){
print(x[i])
}
for(i in seq_along(x)){ # seq_along takes a vector ... |
e70f1dd77ec2e5539d298feac2f56831a46773c4 | 71375d6e5c8b3ad5f49d2d689a7588ef686c10be | /cachematrix.R | de9a4c372bc20294a6a6dab4b1fb1466710db7a6 | [] | no_license | shadimari/ProgrammingAssignment2 | a375e5e997794213cf21cb9cf4f24509ec757b56 | 155f2de576284be24502cd799a15ea3e0e264f3a | refs/heads/master | 2021-01-18T10:36:52.583138 | 2015-02-22T14:49:38 | 2015-02-22T14:49:38 | 31,165,923 | 0 | 0 | null | 2015-02-22T14:43:56 | 2015-02-22T14:43:55 | null | UTF-8 | R | false | false | 1,328 | r | cachematrix.R | ## Below are two functions that are used to create a special object that stores a matrix and
## cache's its inverse.
## This function creates a special "matrix" which is really a list containing a function to:
## set the value of the matrix (set_matrix)
## get the value of the matrix (get_matrix)
## set the value of ... |
84a3f81e8a5b361b89e5749216b97feb12315a95 | b42b4404acbde3775c1de3eed457a7bd6e150b8b | /man/isValidDateTime.Rd | 61537bccdb047f7d130a25359defae79b907e0e4 | [
"MIT"
] | permissive | fabarca/reutiles | 3f886308ff87d754fd49af4dda4dcbf92db63fc8 | bdcfd0d79cbd2b1dceec3efb0edd4c4d38e93ae1 | refs/heads/master | 2020-05-21T17:57:15.518053 | 2018-04-10T12:12:07 | 2018-04-10T12:12:07 | 62,224,272 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 434 | rd | isValidDateTime.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isValidFunctions.R
\name{isValidDateTime}
\alias{isValidDateTime}
\title{Check Datetime String Format}
\usage{
isValidDateTime(datetime, format = "\%Y-\%m-\%d \%H:\%M:\%S")
}
\arguments{
\item{format}{By default equals to "\%Y-\%m-\%d \%H:\%M... |
5fa74b6a2b20ca670abc07cfa7b206d36d927fab | c73fe63e316fc0733f37d9052f37198b3b0c5bda | /simulations_imitation.R | e73c816c424aedf26cdba72912c2a987eab58f00 | [] | no_license | alescia/CS2-Simulations | a6fc28e3712d06fdc86536127936135485bab3aa | 042325dd4f85aa32b132c3a91e6f27a08408dec6 | refs/heads/master | 2021-05-04T10:47:50.037488 | 2018-03-01T13:19:53 | 2018-03-01T13:19:53 | 47,568,951 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,024 | r | simulations_imitation.R | # DISTRIBUTION FUNCTION; FOR DRAW OF RANDOM PRICES
library(distr)
library(ggplot2)
pricesA<-seq(from=0, to=5,by=0.1)
pricesBC<-c(pricesA,pricesA+5) # in second place, the CS prices --> identified as CS by adding 5
# to draw starting points
distA <-DiscreteDistribution(supp = pricesA, prob = rep(1/length(pricesA),l... |
77c040a90751ac7c91ebda96ce14a0c2f7e98c6c | 8eb72c67300a9ac0af4eff99820dba7fb2197441 | /scripts/tims_phangorn_tree_functions.R | 39e1d44987a915e316e94c41aa8a31d3bad69a78 | [] | no_license | CoolEvilgenius/phyc | e97c00477889ffe27f6293107e093cd610ece0f4 | 5e44389b3fbff2261c3240bb6de448c7563ed3ee | refs/heads/master | 2021-05-17T21:45:15.810412 | 2020-03-29T11:00:41 | 2020-03-29T11:00:41 | 250,965,565 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,354 | r | tims_phangorn_tree_functions.R | edges_of_trees<-function(tree,strains,plotname = "Strains")
{
outlst <- list()
e_labs <- rep("black", length(tree$edge[,1]))
n_labs <- NULL
for (st in strains){
tlab <- which(tree$tip.label == st)
te <- which(tree$edge[,2] == tlab)
t_internal <-tree$edge[te,1]
e_labs[[te]] <- "red"
n_labs <-... |
a6ed6ac58f6ca1e28dd92c3a28a8591767683fd6 | 464f120f045b4da176822e12814dbc1c62612f4a | /analysis/src/ESM_utils.R | 459e061084c8df46b07185409fc7704b3fffa9a2 | [
"MIT"
] | permissive | soyowoo/ExploringSocialMetacognition | 1c62f2caa94a306e2d6de517b9037035da670f1b | e802991f8b9f5a912b6f3a0671b21485610025f6 | refs/heads/master | 2023-07-31T09:22:46.023655 | 2021-05-11T11:40:32 | 2021-05-11T11:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,274 | r | ESM_utils.R | # Exploring Social Metacognition support functions and variables ----------
# Libraries ---------------------------------------------------------------
# Load the dependencies for the main scripts
# Parsing JSON files
if(!require(jsonlite)) {
install.packages("jsonlite")
library(jsonlite)
}
# Calculating Bayes f... |
d6cfcd8a7d8ae665d02044c6717612c838d64a13 | 3178860d26781702ca94412669f49c45c2a26275 | /R/varSelect.R | 396aeb8bb48190cdbd534b4b3f9e67c0f6839902 | [] | no_license | cran/modnets | 08f1fea424212bcf851972de068c62434fb196f3 | 81983f2b895c53602ccb44c989d6692594439568 | refs/heads/master | 2023-08-10T18:19:43.907567 | 2021-10-01T07:20:02 | 2021-10-01T07:20:02 | 412,522,956 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 34,371 | r | varSelect.R | #' Variable selection for moderated networks
#'
#' Perform variable selection via the LASSO, best subsets selection, forward
#' selection, backward selection, or sequential replacement on unmoderated
#' networks. Or, perform variable selection via the hierarchical LASSO for
#' moderated networks. Can be used for both G... |
9729268cbe0af06d0ee5e626ffb7d47ab30cd20e | 2ff52d00245ba3fa0668380ec6519052458ff3a0 | /scripts/COMP.modeling2.R | 9650bce62810f263670720f744873d207a67ac3e | [] | no_license | dnemens/black-oak | 1f5fdf20a0c9959ed3f941daf94ce0e5ba4dbbee | 723e6416c375e8560a048622dbb3e1a633e03eb0 | refs/heads/master | 2021-05-09T20:23:26.204832 | 2019-12-19T01:21:40 | 2019-12-19T01:21:40 | 118,685,094 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 962 | r | COMP.modeling2.R | library(tidyverse)
wide <- read.csv(file = "C:/Users/debne/Dropbox/CBO/black-oak/data sheets/mean.import.over.csv")
rdnbr <- read.csv(file = "C:/Users/debne/Dropbox/CBO/black-oak/data sheets/rdnbr.csv")
#combines dataframes for rdnbr values
import.wide <- data.frame(wide, rdnbr)
#selects only post-chips importance ... |
85fb36765c6fc97086c7c62940595459e021f90c | e55a80a875a694cf18027a92ea8714d5070335db | /TCGA_COAD_4_TOP1&CES2_compare.R | 39d9ff66d42880c142b2859cc77cb74fe96e8cef | [] | no_license | leeym950/CMS4_Irinotecan | 79f48d975f19ad0fb4f510f6cbb38748a41c7f01 | 85825493687aa8af7e28db740361694ee0ec51c1 | refs/heads/master | 2020-05-23T12:14:44.191788 | 2019-05-29T14:26:54 | 2019-05-29T14:26:54 | 186,753,602 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 963 | r | TCGA_COAD_4_TOP1&CES2_compare.R | ##
## CMS4 vs others : TOP1, CES2
##
##
##
library(ggplot2)
library(ggpubr)
subset <- cbind(t(expression.data), ntp.result)
CMS4 <- subset[ ,"prediction"] == "CMS4"
subset <- cbind(subset, CMS4)
ggboxplot(data=subset, "prediction", "TOP1")
ggboxplot(data=subset, "prediction", "CES2")
p <- ggboxplot(data=subset, "C... |
495f3ca2107869c9978648b77321ac5c4d8f6e16 | b111b2cab6d52c3a5480820af36a8e363305f3cb | /demo/SNA - Correios.R | 96069c410bad04a9cb6578736617ca2bc29aac70 | [] | no_license | rommelnc/hudar | 240cb22226802de0241d2d95095d09bd3b60bba0 | 257b6360f2e8d5d7d642c8a9a5cb8b73f48ba4f2 | refs/heads/master | 2020-05-09T14:58:06.410576 | 2015-08-19T02:58:21 | 2015-08-19T02:58:21 | 40,375,394 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,366 | r | SNA - Correios.R | ## Correios
source('funcoesTwitter.R', encoding='UTF-8')
arquivos = list.files('../data', pattern='politics.*2014-1(0-3|1-)[[:digit:]]*.json', full.names=TRUE)
arquivos = list.files('../data', pattern='politics.*2014-11-08-0[[:digit:]]*.json', full.names=TRUE)
arquivos = list.files('../data', pattern='politics.*2014-1... |
8f510b677b7dff0e6cba1ecd43594a8cc2cca59e | 86a93c2e665fc296cd7d2c6e9242e80cf50259e3 | /R/plotwindserie.R | 4c2dead50f6374f40ba346b31088b73a2033ec3f | [] | no_license | mbonoli/WindResource | eb40ce3418b1e8768d1f2acfa4c3c98bba5f600d | 21a8c1648d17378e2f2753b48d584d10bfec9cb5 | refs/heads/master | 2020-05-20T13:15:44.225895 | 2018-09-19T04:24:58 | 2018-09-19T04:24:58 | 13,712,635 | 0 | 0 | null | 2014-03-20T04:42:13 | 2013-10-20T02:52:06 | R | UTF-8 | R | false | false | 4,446 | r | plotwindserie.R | #' @title Conversion of dataframe in class \code{windata}
#'
#' @description
#' Shape a dataframe in a class 'windata'
#'
#' @details
#' The object windata is a list with the parameters that were mencionated before.
#'
#' @param wdata a dataframe to be converted
#' @param var interval of time betwen two registers.... |
e724e3569f8afead788c564d7a20d2f4f39c8e3d | 16d00df419d17a6e222e53342344fe89e67b096d | /code/singleDecisions.R | 7115eb5b15e5d2862f17cc356068ba271a0edfe0 | [] | no_license | mattia-cai/SICOMA_2020 | f35b3d9a2677bc583db7b7646489dda8e374842b | de31feb7da697ab6c40e84345ae4a224542bd927 | refs/heads/master | 2023-05-04T19:55:06.828982 | 2021-05-26T13:54:45 | 2021-05-26T13:54:45 | 292,814,843 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,216 | r | singleDecisions.R | rm( list = ls( ) )
# Compute the price impacts using the leontief price model
# In this case I am only interested in two cases: trucks in 2016 and finance in 2013
# author: mattia cai
##############################################
### Warning: XLConnect conflicts with xlsx ###
######################################... |
349e704862d77112c584981597ba965e073ad362 | 4aaad46c2e1f999d14b08edffa1105e541277804 | /Plot1.R | ee8d39361a64502f9603fd47d28913070b371a66 | [] | no_license | Pietersgithub/ExData_Plotting1 | 1241e1d3cf3feb1efcea7461f3e19d766cbe3ce4 | 2dada1c8da09d89594e60a6a3f35dca4825d9a01 | refs/heads/master | 2020-12-11T05:46:32.888467 | 2015-06-07T16:50:47 | 2015-06-07T16:50:47 | 36,806,653 | 0 | 0 | null | 2015-06-03T13:49:03 | 2015-06-03T13:49:02 | null | UTF-8 | R | false | false | 686 | r | Plot1.R | ##Plot1
## Load data frame into variable
full_data_set <- read.table("household_power_consumption.txt", header = TRUE, sep = ';', na.strings = "?", dec=".", colClasses=c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
## Make a subset
data_2_days <- full_data_set... |
b525bea41e66d266b42be9d16b238a7e7815fbc5 | 18a6a2dd2e9054e102dc97d3a9aacad4350aa647 | /cachematrix.R | ff7ac0f004b696d92b5b3aa7166dfba173b14f09 | [] | no_license | ChandralekhaGhosh/ProgrammingAssignment2 | c53df512880b08cc73656ec6d4b3cd6260b91356 | 08c3f8341a6028fe7d21f94c82ec4c60b723769d | refs/heads/master | 2022-12-24T12:53:53.917029 | 2020-10-06T15:17:37 | 2020-10-06T15:17:37 | 301,461,475 | 0 | 0 | null | 2020-10-05T15:51:14 | 2020-10-05T15:51:13 | null | UTF-8 | R | false | false | 1,703 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
#In this assignment we're writing a function to cache the inverse of a square matrix.
#Caching is an efficient way to avoid re-eval long intensive computations.
## Write a short comment describing this function
#makeCacheMatrix:create... |
29560f6d59b61af69e40b709e1dd22a4d018efe7 | 6151a16653d8462debb34d414f83ef8cd57d5fbc | /fhitings_Anu.R | 9449ead5aaac09fe6c759829e75e98885acd5f5e | [] | no_license | anusurendra/ITS | fed61b14aac00218405959af9995f000c1e4c3d4 | c445830a3f00864a3b726d6df9053c82a4eb393b | refs/heads/master | 2016-09-06T13:08:29.712252 | 2015-06-29T19:00:44 | 2015-06-29T19:00:44 | 37,540,588 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,154 | r | fhitings_Anu.R | #!/usr/bin/Rscript
#check to see if pacages are installed and install if needed
ch1<-require(reshape)
ch2<-require(plyr)
ch3<-require(gtools)
if(ch1){
library(reshape)
}else{
install.packages("reshape")
}
if(ch2){
library(plyr)
}else{
install.packages("plyr")
}
if(ch3){
library(gtools)
}else{
install.p... |
9830ffa0360bd42ff17b86bd9788b192f7b31426 | 4d85af4fb11e841eb5c5cd9517fd4e8b2dc9b377 | /tpch/tpch-2.R | ebdc5f68d231514ce4a70b972e168bd56220b606 | [
"Apache-2.0"
] | permissive | jonathanmclaus/grokit-queries | ea3916839f81b79751dd435d5f4548e1cf2059d7 | 7c4de5365c289923871a325df9ffe2e3b16e7f86 | refs/heads/master | 2021-01-25T06:05:46.276977 | 2014-09-02T19:15:08 | 2014-09-02T19:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 939 | r | tpch-2.R | library(gtBase)
part <- Read(part1t)
supplier <- Read(supplier1t)
partsupp <- Read(partsupp1t)
nation <- Read(nation1t)
region <- Read(region1t)
selpart <- part[match(p_type$ToString(), ".*BRASS") && p_size == 15]
selregion <- region[r_name == "EUROPE"]
j1 <- Join(nation, n_regionkey, selregion, r_regionkey)
j2 <- J... |
0bdb883d99daa8e14d98e8ce9f0f451eae00520f | 482bfd01497367b8ece31ee8ff42e020bf609b70 | /plot4.R | 808bde92ef8c4915ace199c3bf7b634129f1d93a | [] | no_license | dds63b/Coursera_Exploratory_Data_Analysis | f00d0c2066a38a06bdd559245fc67c7b58481209 | 5358fd715a1f05d767ccd13f7fe67ddb525bdfb2 | refs/heads/master | 2020-03-30T18:53:43.755330 | 2015-02-22T11:54:29 | 2015-02-22T11:54:29 | 31,161,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,272 | r | plot4.R | # Preparing environment
## Set working directory
setwd('./Coursera/Exploratory_Data_Analysis')
## Download file if it doesn't already exist
data <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip'
local.data <- 'ExDA_project2.zip'
if (! file.exists(local.data)) {
download.file(data,
... |
eb77f1a9414ae2d71c74fdfbc11272586f0d2783 | 904e56e7fe5aa46080bfa23673cc453252b96cad | /R/mdm_ica_functions.R | 7f11f6d52329e619b8567a7aba5f2da4dab21baf | [] | no_license | zejin/EDMeasure | 77151fd0aba036ab108ff6353677b49ba944732c | 9f2373b238bec3764656e01a9b59306221835863 | refs/heads/master | 2021-04-26T16:42:23.629233 | 2018-02-25T22:26:56 | 2018-02-25T22:26:56 | 121,260,463 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,285 | r | mdm_ica_functions.R | asym_obj <- function(S) {
S <- as.matrix(S)
return(mdm(X = S, type = 'asym_dcov')$stat)
}
sym_obj <- function(S) {
S <- as.matrix(S)
return(mdm(X = S, type = 'sym_dcov')$stat)
}
comp_obj <- function(S) {
S <- as.matrix(S)
return(mdm(X = S, type = 'comp_simp')$stat)
}
dhsic_obj <- function(S) {
S <- as.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.