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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d8bd3308f192a8a14eb90929de6d93d0074edb4 | 7ec48368e8887b645d9274fe02e89d8d003624fb | /data/transforms/building_assignment.R | 5cb366fb17ff8a43f70eb89fa278e48cf171ca7c | [] | no_license | kurtis-s/ds_at_scale_capstone | 5b5c65bfd237f0e23396906ababa454d263f02cf | 56c9a8b792a64b2c0b948bbb02227d1757c12325 | refs/heads/master | 2020-09-28T04:17:30.434466 | 2016-10-09T20:40:03 | 2016-10-09T20:40:03 | 66,779,167 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 857 | r | building_assignment.R | rm(list=ls()[ls() != "datenv"])
library(sp)
library(rgdal)
library(RANN)
source("utilities.R")
if(!exists("datenv")) {
datenv <- new.env()
read_transformed_dat(datenv)
}
# Nearest neighbors -------------------------------------------------------
building_coords <- datenv$dat_parcels_transform %>% select(x, ... |
361a1d27a36cd88941dadc80edd3fcdc166b5c39 | b4c5cbf7ec7975aa5d5b4a7b5d7e9cfd0a9ca4ca | /process-data/03-regions-map.R | 1fabbb28bbbd2b41add37b32d5ff91a70c18ca3b | [
"CC0-1.0"
] | permissive | marioalbertod/chilemaps | 162774c2aab7224fa036dadc677d43efd123c353 | 9fd26010eb557290e281cd73a168d2d56b2c748c | refs/heads/master | 2020-07-01T23:40:20.036750 | 2019-05-17T19:11:47 | 2019-05-17T19:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,353 | r | 03-regions-map.R | # Packages and functions --------------------------------------------------
source("process-data/00-functions.R")
source("process-data/01-download-data.R")
source("process-data/02-communes-map.R")
# Merge comuna shapes -----------------------------------------------------
old_simplified_regions_map_file <- sprintf("... |
189478f478da3ca5b94c4bf0b4f905a9a9728ada | 26a5d277a197cf17b024f0ed24f93635dc27e294 | /R/write.R | ab6950b6142a0663041897c0bb5a4d1d9236403a | [
"MIT"
] | permissive | ricoperdiz/NIRtools | 152aacd154c7a13e3ecbe8a650438b697cb7b814 | 70ed6deea7dc9195bcebcdf3dd52e8bfa709d960 | refs/heads/master | 2023-06-07T19:12:23.666497 | 2022-12-15T18:44:28 | 2022-12-15T18:44:28 | 150,185,336 | 2 | 2 | null | 2021-02-17T21:45:45 | 2018-09-25T00:28:50 | R | UTF-8 | R | false | false | 4,968 | r | write.R | #' Write NIR parameters file to disk
#'
#' @param file Dataset name.
#' @param wd Location of working directory. If not provided, current working directory will be used one.
#' @param surface Which leaf surface (abaxial, adaxial, both).
#' @param reads Do all the reads will be taken into account (all, mean)?
#' @param ... |
ad8ab3f73d0eba36617750f4f48020e2123b43fa | 68ccdf6931c377c3922dea0d2fcc15a660002e09 | /R/seqFISH.R | 4c9f96f8fa8d5a466781e47ba8f507da2e1728ec | [] | no_license | waldronlab/SingleCellMultiModal | 476a71b9df8bdce939f47d84a7c34d1fe1088750 | 409a6e0d8a152449fbb92c206d22c41465995849 | refs/heads/devel | 2023-08-08T17:00:36.498649 | 2023-07-11T21:44:48 | 2023-07-11T21:44:48 | 222,560,510 | 15 | 9 | null | 2023-07-11T21:36:00 | 2019-11-18T22:53:03 | R | UTF-8 | R | false | false | 4,297 | r | seqFISH.R | #' Single-cell spatial + Gene Expression
#'
#' @description seqFISH function assembles data on-the-fly from `ExperimentHub`
#' to provide a \linkS4class{MultiAssayExperiment} container. Actually
#' the `DataType` argument provides access to the available datasets
#' associated to the package.
#' @details se... |
0436ed9b6221e4349fba88b04eff1c36c2e8570b | e96218d3634d77b11dabf9e115a47da93c022c03 | /man/date_between.Rd | d21e340d157e00fcac3ca26361291c7123cfaeaa | [] | no_license | cran/lazysql | 6f5114081eb5f1b858f909a1adcf69b1013e7334 | 6629882dd75cb02971c059c07aa8c062df114e57 | refs/heads/master | 2016-08-11T15:21:06.248953 | 2016-03-12T06:16:37 | 2016-03-12T06:16:37 | 53,720,064 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,415 | rd | date_between.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/date_between.R
\name{date_between}
\alias{date_between}
\title{Create SQL string to select date between two given dates}
\usage{
date_between(column_name, date_range)
}
\arguments{
\item{column_name}{[character(1)]\cr
Name of data b... |
97c79437b9e7821691e6048906aef2363f252068 | 066d9f452eb3e95295e7d84f3f87736a63550419 | /Models/Utils/R/poweRlaw.R | c7cf4ba8b756effee77e64725086fa02c063e173 | [] | no_license | JusteRaimbault/Organisation | c6d1bfdb833dc00b9208bf77672bf2b53bd085ca | 3e0a9e756670d7f85d15ec1a7b4c244c658ed130 | refs/heads/master | 2023-08-16T22:35:23.056590 | 2023-08-11T16:14:19 | 2023-08-11T16:14:19 | 123,956,655 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 329 | r | poweRlaw.R |
library("poweRlaw")
data("moby", package = "poweRlaw")
# Discrete power law
pl_m <- displ$new(moby)
estimate_pars(pl_m)
est_pl <- estimate_xmin(pl_m)
pl_m$setXmin(est_pl)
dd <- plot(pl_m)
fitted <- lines(pl_m)
# parameter uncertainty
bs <- bootstrap(pl_m,xmins = seq(2, 20, 2), no_of_sims = 5000, threads = 4, see... |
d6c39468ef37eaccf8a3a574ed2b5b2aef016c11 | 841e4586ca48ad1ffdcdd4e6091c550375000ef5 | /rankall.R | b1f06a6744696b784e1f34bd960e2db7c1bcc6f0 | [] | no_license | akhilag24/PA3 | 44344532ab48769c4e81805112fb5f4f6112b2e3 | 4af19217a649eeeecedf0b71dc2b8a1cdeba1b5c | refs/heads/master | 2021-01-19T17:31:20.319537 | 2017-04-15T05:26:12 | 2017-04-15T05:26:12 | 88,326,195 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,654 | r | rankall.R | rankall <- function(outcome, num = "best") {
## Read outcome data
## Check that state and outcome are valid
## For each state, find the hospital of the given rank
## Return a data frame with the hospital names and the
## (abbreviated) state name
d <- read.csv("outcome-of-care-measures.csv", colClasses = ... |
ed629a466823bb2628dead2d47a7541814b96a30 | 030c92064eee6308ff9efc985b6dd1aa750f9bb2 | /R/random_dna.R | 20162fdb9c5291cca97400db6c697a363a9aeb62 | [] | no_license | rforbiodatascience21/2021_group_04_rpackage | bf7aad22fd3e6d736d7d6a9f09fa4390cf041f94 | 8cdd7cc91b166660b3ac57c8daad5d1152b3e83f | refs/heads/main | 2023-03-24T16:11:14.243531 | 2021-03-24T13:52:32 | 2021-03-24T13:52:32 | 350,354,203 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 274 | r | random_dna.R | #' R/random_dna.R
#' @title random_dna
#' @description produce a random dna sequence
#' @usage random_dna(l = ...)
random_dna <- function(l){
nucleotides <- sample(c("A", "T", "G", "C"), size = l, replace = TRUE)
dna = paste0(nucleotides, collapse = "")
return(dna)
}
|
0d81c63bcde608d956854804c93494fcbffed3b3 | 305058652ab13e51510b20caf60b941889d45cbb | /ahp.R | 010ce8cc5ad0f40f0c9ea23fcc63de1845b412e9 | [] | no_license | MateusMacul/miscelanea | 728c2a0bca0b4e07caad2249ee18b0a5d4f07989 | 4d3fefb1f09ee30b4a19708227edb53649034815 | refs/heads/master | 2020-12-19T18:48:29.465869 | 2020-01-23T15:15:50 | 2020-01-23T15:15:50 | 235,818,641 | 0 | 0 | null | 2020-01-23T15:15:51 | 2020-01-23T15:02:27 | null | ISO-8859-1 | R | false | false | 3,641 | r | ahp.R |
### intalações ####
install.packages("xlsx")
### DEPENDENCIAS ####
require(xlsx)
library("xlsx")
#### APH ####
# Deletar colunas q não serão usadas --------------------------------------
drop = c("V80")
drop = c(names(dados.ahp@data[,c(80:length(names(dados.ahp)))]))
drop
dados.ahp <- dados.ahp[,!(n... |
c02aac1da930691666bf89ece7de308229975142 | 4fcff0d54bace980e71f9c39b6eb233712e60ccb | /plot1.R | c598862d0fdc5ff054bc5e7683aa87050e0bf9dd | [] | no_license | Kinshuk-9/ExData_Plotting1 | ddcacf92638881693efd94a0a7dedc93e31e79fd | ea1b4861659bdfb085b7acf0a6cd0da32ffc7544 | refs/heads/master | 2022-11-21T11:10:21.707559 | 2020-07-08T21:24:02 | 2020-07-08T21:24:02 | 278,063,762 | 0 | 0 | null | 2020-07-08T10:50:29 | 2020-07-08T10:50:28 | null | UTF-8 | R | false | false | 462 | r | plot1.R |
full_data <- read.csv('household_power_consumption.txt', header = TRUE, sep = ';', stringsAsFactors = FALSE, na.strings = '?')
head(full_data)
data1 <- subset(full_data, Date %in% c("1/2/2007","2/2/2007"))
data1$Date <- as.Date(data1$Date, format = '%d/%m/%Y')
png("plot1.png", width=480, height=480)
hist(data1$G... |
6e2c77839eb20e69edce8b8b1fce7e6cb998035c | 7a56db93111edd77ad7911c67ef9852db13eefab | /Rprogramming/ProgrammingAssignment1/Pollutantmean.R | d6063b64ba5c378fd4016e6f52425b10ea5c6dbb | [] | no_license | CarolinaBosch/DataScience | 15b533d0e3664de507f6f4afe0d82b85c874b145 | 7de1d47c8d1028e7082c750e0f51be67ea0087dc | refs/heads/master | 2022-11-27T21:35:59.607008 | 2016-06-21T16:21:08 | 2016-06-21T16:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 415 | r | Pollutantmean.R | pollutantmean <- function(directory,pollutant="sulfate",id=1:332){
temp = list.files(path=directory,pattern="*.csv")
dat = do.call(rbind,lapply(temp,function(x) read.csv(x)))
net = data.frame()
for (f in id) {
if(pollutant=="sulfate"){
get <-dat[dat$ID ==f,2]
} else {
get <-dat[dat$ID ==f,3]... |
efae240c8819cc9e793ae5bbf347ce8cb5985141 | b664fd3502722bbb78c92a9fab3d51d8239545b4 | /RCode/hist_scores.R | c6eecbb5834c1e2b16d94beca2aad804de10aa47 | [] | no_license | seninp-bioinfo/jKEGG | cb87fe598177895775660a80c11e90727666971e | 655cf4e298bd0ea35594018cded89e9810e10f63 | refs/heads/master | 2016-09-05T10:15:03.206686 | 2015-09-02T06:49:46 | 2015-09-02T06:49:46 | 24,708,987 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,094 | r | hist_scores.R | require(VennDiagram)
require(RMySQL)
require(ggplot2)
require(Cairo)
require(grid)
library(gridExtra)
session <- dbConnect(MySQL(), host="localhost",
db="funnymat",user="funnymat", password="XXX")
blast_hits = dbGetQuery(session, "select score from aligners_score where tag=\"BD\" order by hit_i... |
3ea497d1e6e371047a55da9251bdf9aaecec5738 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/928_0/rinput.R | f07321a16b02ebd32a9e60f50b0ebef96280fa8e | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 133 | r | rinput.R | library(ape)
testtree <- read.tree("928_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="928_0_unrooted.txt") |
913c9d4f0dcd80fe10eaa1ed708bd99bb047a75e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mvglmmRank/examples/game.pred.Rd.R | 6ca2364a025ed3477f00a1c00b0d1884af4479fc | [] | 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 | 421 | r | game.pred.Rd.R | library(mvglmmRank)
### Name: game.pred
### Title: Predict outcomes of games.
### Aliases: game.pred
### Keywords: regression
### ** Examples
data(nfl2012)
mvglmmRank(nfl2012,method="PB0",first.order=TRUE,verbose=TRUE,max.iter.EM=1)
## No test:
result <- mvglmmRank(nfl2012,method="PB0",first.order=TRUE,verbose=TRU... |
7d6c1a1d7cb86189c0883e20b79a0f93169d62cb | 8b61baaf434ac01887c7de451078d4d618db77e2 | /R/rbind.smart.R | 6e31cd84f82d60ca09bafb8d8a79fcb626628253 | [] | no_license | drmjc/mjcbase | d5c6100b6f2586f179ad3fc0acb07e2f26f5f517 | 96f707d07c0a473f97fd70ff1ff8053f34fa6488 | refs/heads/master | 2020-05-29T19:36:53.961692 | 2017-01-17T10:54:00 | 2017-01-17T10:54:00 | 12,447,080 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,561 | r | rbind.smart.R | #' A smarter rbind
#' \code{rbind} 2 matrix-like-objects even if they have different numbers of
#' columns. It's a bit like \code{merge()} but via rowbindings, not
#' colbindings. It produces a result which as \code{union(colnames(a),
#' colnames(b))}, and fills in missing data with \code{NA}. See details.
#'
#' The ... |
9bc4ae732ad8359954411a5ce02e715ac7bdfe82 | c6f8b268cdd35377a81c3e95953a8ea6aed2b3ae | /R/normalize_design.R | 790f2ef4a519c49ea9c36aa666a6d72208714269 | [] | no_license | cran/skpr | 66afcf4fb51a07d95a72e5ecf28db60c9de53937 | e34638d13253b7f82de9fcfee87f2c17f2619c37 | refs/heads/master | 2023-06-26T22:02:24.856196 | 2023-06-16T15:10:02 | 2023-06-16T15:10:02 | 100,655,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,924 | r | normalize_design.R | #'@title Normalize Design
#'
#'@description Normalizes the numeric columns in the design to -1 to 1. This is important to do if your model has interaction or polynomial terms,
#'as these terms can introduce multi-collinearity and standardizing the numeric columns can reduce this problem.
#'
#'@param design The des... |
0af827bf3146b4295f46de17e5b0324a4e481022 | 3d75826038af085d23c523d0c6fd9e643e8631c6 | /R/sample-exposures.R | 67425cdcb090999ab2692fba4c52d78883f96b49 | [] | no_license | bryanmayer/multdr | 6c5f669157941c55b4a01fd4f1c0978a6dd15a67 | 49e847663631b8587375920b517ba75f87c0f6c6 | refs/heads/master | 2021-01-23T14:05:30.332362 | 2015-08-26T19:12:52 | 2015-08-26T19:12:52 | 41,111,872 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 838 | r | sample-exposures.R | #' Takes a series of exposures and times and samples from them based on an exposure rate
#'
#' Effectively maps a continuum of exposure to a discrete set of actual exposures that could cause infection.
#'
#' @param raw_exposure_data The subsetted data.frame containing time (days) and exposure (count) for one subject
#'... |
9c467c2a4f3f61dc05d0674d8414367b3d124629 | c267b09529ad20ba29c23b9922cbb94ce5b2e2d8 | /R/events.R | 2fc58418ad03bb272b212a5a22a8eced59c46dc2 | [] | no_license | IlyaFinkelshteyn/psichomics | 7f004cffcdabf028ef3094b3a6a6b290fb377cd4 | a7f2db7954f6962ff7a487369c7b367a1d999daa | refs/heads/master | 2021-01-11T06:08:04.688256 | 2016-09-24T01:40:53 | 2016-09-24T01:40:53 | 69,070,120 | 0 | 0 | null | 2016-09-24T00:37:37 | 2016-09-24T00:37:36 | null | UTF-8 | R | false | false | 19,786 | r | events.R | #' @include events_mats.R
#' @include events_miso.R
#' @include events_vastTools.R
#' @include events_suppa.R
NULL
#' Creates a template of alternative splicing junctions
#'
#' @param nrow Integer: Number of rows
#' @param program Character: Program used to get the junctions
#' @param event.type Character: Event type... |
aa1c14a0770d6bd41c795bc6500717108232dd22 | 6a4593ac8bb196d85d58b2042aa3cca0fbde0eb7 | /R/NEWimputation_tsai_kNN_v1_doParallel and search_beta.R | 1c8a993746bcd592e2c59a6867db3e7bb8988044 | [] | no_license | whiteaegis/Imputation | 59883addc98378a736d96fea1f2ea6c3d3c9eb77 | f85be4a1f8f94db1e6c6bb847caeb1246e0998f8 | refs/heads/master | 2023-02-25T01:00:06.548131 | 2021-02-02T07:56:28 | 2021-02-02T07:56:28 | 335,208,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,990 | r | NEWimputation_tsai_kNN_v1_doParallel and search_beta.R | rm(list=ls())
xx=read.delim(file.choose(),header=T,sep=" ")
score.f <- function(target,train,match.score=1, miss.score=0.5, mismatch.score=-5){
m=length(target)
#x.tab=table(target,train)
#id.n = (row.names(x.tab)=="N")
n.allmiss = sum((train=="N") & (target=="N"))
n.match = sum(target==train) - n.allm... |
e5ab50e97518e18b3c540506529a18851bcde773 | 6bea005b164d6a5d5bb5d30efa700cf8976dd83e | /R_scripts/fct_analysis_2way_noNA.R | e858c39baf838c2680aabb9de76fc752cc5ee372 | [] | no_license | MagDub/MFNADA-analysis | e24c335dbdb2ea94d9c5766759737c535caf1a39 | 6a5bdd3c407308c45772eed994c2eada8fab7717 | refs/heads/master | 2022-12-31T06:15:13.924699 | 2020-10-23T16:11:41 | 2020-10-23T16:11:41 | 288,498,373 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,335 | r | fct_analysis_2way_noNA.R | # source and then on terminal ex:
# s<-rm_anova_MF('freq_D_picked_shortH', 'freq_D_picked_longH')
# From example: https://www.datanovia.com/en/lessons/repeated-measures-anova-in-r/
rm_anova_MF_noNA <- function(x1, x2) {
library(car)
library(tidyverse)
library(ggpubr)
library(rstatix)
library(readxl)
... |
e2821a6369bdcb130a822a9b590e070483855ecc | 496cc1b9d32d20ad125a2926bcc2c2c8bf7c8ad2 | /code/extinction.r | 8c22b57b8ffc7f97b0afd01b3941ef1c4280d6a9 | [] | no_license | guanjiahui/nested_bipartite_network | e60792d2a6a44a07cf64fb055b380a67452f8bac | 2563691964d66c9e458577e4b790476b33f33553 | refs/heads/master | 2020-04-18T14:53:11.499485 | 2019-01-25T22:47:51 | 2019-01-25T22:47:51 | 167,600,271 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 121 | r | extinction.r | rowdegree=apply(EZ,1,sum)
coldegree=apply(EZ,2,sum)
deg=c(rowdegree,coldegree)
target=min(deg)
remove=which(deg==target)
|
d8f4a8a618c0be1230176d60e56b708d3a522580 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/qad/examples/summary.qad.Rd.R | 4893bee5e786b31dac667056a4a93221be60441d | [] | 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 | 361 | r | summary.qad.Rd.R | library(qad)
### Name: summary.qad
### Title: Summarize a qad object
### Aliases: summary.qad coef.qad
### ** Examples
n <- 1000
x <- runif(n, 0, 1)
y <- runif(n, 0, 1)
sample <- data.frame(x, y)
##(Not Run)
# mod <- qad(sample, permutation = TRUE, nperm = 100, print = FALSE)
# summary(mod)
# coef(mod)
# coef(mod, ... |
46d034dcc836aa5954e76dbdb1c92abc17237222 | 68d99b83ba7b84348761004ca060f6f6fba90468 | /CCP India Create Network Matrices Men.R | 2151add7ded6857d65e5fc359558408f2708f9f7 | [] | no_license | LiamMcCafferty/IndiaCleanCooking | 8b642f6476a6b21c1eefa8f395f4a038e189985b | 3fe2a51b6722821f22f587b38049e2a867a83c45 | refs/heads/master | 2021-07-15T05:51:36.646913 | 2020-07-10T21:49:40 | 2020-07-10T21:49:40 | 181,076,843 | 0 | 0 | null | 2019-08-22T22:40:59 | 2019-04-12T20:10:06 | R | UTF-8 | R | false | false | 8,076 | r | CCP India Create Network Matrices Men.R | # Empties Global Environment cache
rm(list=ls())
#Set working directory to current file location
#To set to own working directory
# select "Session->Set Working Directory->To Source File Location"
# then copy result in console into current "setwd("")".
#Importing packages. If not yet installed, packages can be inst... |
3514aaf44d7d656113b6dc174294671fc4dad245 | 1e569b29b041afcd4acd7a6d6b97687cf4410f81 | /app.R | bb6c55fee13c78e2f31bfe5e3d31a25a6402a89c | [
"MIT"
] | permissive | ivelasq/ganttrrr | c96dfcc597378f59a7fb99f10f007c0a03bb8df9 | e5ef2f0c53dccb38eea7b39fd69ad142e9ecceb5 | refs/heads/master | 2020-06-30T22:12:42.199742 | 2020-03-08T01:52:30 | 2020-03-08T01:52:30 | 200,964,526 | 1 | 0 | null | 2020-03-08T01:52:31 | 2019-08-07T03:24:08 | JavaScript | UTF-8 | R | false | false | 12,771 | r | app.R | #########################
# Creating ganttrrr app #
#########################
# resources:
# https://stackoverflow.com/questions/22272571/data-input-via-shinytable-in-r-shiny-application
# https://rdrr.io/cran/DiagrammeR/man/grVizOutput.html
# https://shiny.rstudio.com/articles/action-buttons.html
# libraries ------... |
d7d68d726f85e303e48c6b0ec917935cc9f20010 | d9c865793a7585b64358337e8dc5c94d24f0d312 | /data_evictions_download.R | fddb4e3de6f824ac46ddb33fcad76100e9f64e4c | [] | no_license | a-aliseda/Evictions_moratorium_impact_AAA | 7b48cbb951c3852dccc543d2f2f144f129c46b62 | fd811693e48838db43059797ac64185bebb1eeff | refs/heads/master | 2022-12-03T22:03:39.868167 | 2020-08-08T02:04:31 | 2020-08-08T02:04:31 | 285,948,695 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,546 | r | data_evictions_download.R | ### Coronavirus Resource Center Excercise
## Part II: Data cleaning
## Angel Aliseda Alonso
#install.packages("aws.s3")
# Libraries used to clean the data
library(aws.s3)
library(tidyverse)
library(readxl)
# Download and merge data from The Eviction Lab
# Matthew Desmond, Ashley Gromis, Lavar Edmonds, ... |
e2b81b949ef9e260ac6f7e3e2eb91b5eae89b003 | 86e3513f8b3acb1427d0faa0ce41051c1e1c99da | /Retail-V2/LinReg2-red.R | c095fad475b6f719a15f0a0d022e336e239d1485 | [] | no_license | prithwis/BigRe | 476c0998c0414dc74363e03fd8bd8d4f3a8a9f14 | 4eff29a66bb75910239b7c00ae4cfce2f37f11e5 | refs/heads/master | 2023-06-11T03:35:31.033973 | 2023-05-29T05:07:32 | 2023-05-29T05:07:32 | 41,527,639 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,952 | r | LinReg2-red.R | #! /usr/bin/env Rscript
# Linear Regression Reducer Script - written by Prithwis Mukerjee
# Used in the Retail Sales Application
# EstValue is function called to implement the linear regression function of R
#
# Parameters are as follows
# pSKU - string - name of SKU
# pdays - list of days for which data is available... |
a6eb63a7ff7e610046d79b3ec8d8e39a9fbea971 | 95db9afbf74cc1513f665e1e92565d514093af52 | /src/R/evs_romopomics_pipeline.R | a17601cfc7d5e4d8216fdaed839032f99dda387c | [
"MIT"
] | permissive | ngiangre/GrOMOP | cb3c04f6ed0428bbcd07f5ee87ed1b526fab35e0 | 0eeb9aa7505949302553e44837389e85eaaccd9f | refs/heads/main | 2023-02-23T12:17:46.007405 | 2021-01-25T14:05:41 | 2021-01-25T14:05:41 | 332,530,238 | 0 | 0 | null | 2021-01-24T18:55:35 | 2021-01-24T18:55:35 | null | UTF-8 | R | false | false | 835 | r | evs_romopomics_pipeline.R | #install.packages("pacman")
library(pacman)
p_load(tidyverse,devtools,data.table,DBI,here)
#install_github("AndrewC160/ROMOPOmics",force=T)
library(ROMOPOmics)
#Data model.
dm_file <- system.file("extdata","OMOP_CDM_v6_0_custom.csv",package="ROMOPOmics",mustWork = TRUE)
dm <- loadDataModel(master_table_f... |
efa2c16c49ab67de99118f4fba2e0b02e88a8a44 | ee1af63213eaf268bf38a51e52883e43ca811937 | /create_amp_plot.r | 3c48824aba6117635e2463fb4249cd1c76ab16c8 | [] | no_license | geocarvalho/r-bioinfo-ds | 06ce4ae515981989274ade8f582988ea6fef6ffa | 596daf835f2d8c64055e96906e6f3bda7fa3d42b | refs/heads/master | 2023-05-11T14:45:41.841356 | 2023-04-28T08:02:47 | 2023-04-28T08:02:47 | 92,194,815 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 843 | r | create_amp_plot.r | library(ggplot2)
library(dplyr)
cov_bed <- read.table(file='amplicon_regions.bed', sep='\t', header=TRUE,
col.names=c("transcript", "start", "end", "source", "mean_cov", "samples"))
head(cov_bed)
# Take one sample as example 02MI214440581A
one_df <- filter(cov_bed, samples=="02MI214440581A")
# Change do... |
74a69ff0810ee015027a3122c0ebcada60648a77 | 0dbd60b634c090f2153f21f945fb306495a67df6 | /R/call_force_spinup.R | 455404e8d26d373e8a9221a3b57e26e49aed55e8 | [] | no_license | wechuli/large-pr | afa8ec8535dd3917f4f05476aa54ddac7a5e9741 | 5dea2a26fb71e9f996fd0b3ab6b069a31a44a43f | refs/heads/master | 2022-12-11T14:00:18.003421 | 2020-09-14T14:17:54 | 2020-09-14T14:17:54 | 295,407,336 | 0 | 0 | null | 2020-09-14T14:17:55 | 2020-09-14T12:20:52 | TypeScript | UTF-8 | R | false | false | 1,876 | r | call_force_spinup.R | # loop over all years from start year to 1979 (inclusive) to generate forcing files for gap
start.year = 1964
# years = seq(start.year,1980)
years = 1964:1992
source('C:/Users/joseph.caracappa/Documents/GitHub/neus-atlantis/R/make_force_spinup.R')
for(i in 1:length(years)){
out.dir = 'C:/Users/joseph.caracappa/Do... |
966949f940d1b80049a807c2b83de7183b9992da | f8b561f2fd65d7aa14be4da0a4594020639ec3bd | /man/massage_data.Rd | b8cc69e88e1325df554e4f461072317096f2395b | [
"MIT"
] | permissive | JonasMoss/straussR | eeba4bec3b886684673f2dc8c5c7aa71d20dd072 | 175eeea2c1ea39f9100e54ac9b995aa17db80092 | refs/heads/master | 2020-03-09T13:31:52.410069 | 2018-06-25T08:33:36 | 2018-06-25T08:33:36 | 127,399,219 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 781 | rd | massage_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prior_massage.R
\name{massage_data}
\alias{massage_data}
\title{Massages \code{formula}, \code{priors}, and \code{data} for \code{straussR}.}
\usage{
massage_data(formula, priors, data = NULL)
}
\arguments{
\item{formula}{A formula of the for... |
b88e483b3533a516113fdb39f0a8627b291f69c1 | 072a16fb4a4222c9d84cd1f2cb270a40fc29bca7 | /man/listBenchAnalysis.Rd | 3bb077176fe096d7bdd59f9b2a2884a3cf2ba220 | [] | no_license | venelin/benchtable | cc20302b916b5f6f910497ac351c1a0e3a2c8178 | 0f666b63a0c9a874cceb9527ca0e26ccd17bb390 | refs/heads/master | 2020-04-09T17:24:00.472251 | 2018-12-05T12:55:05 | 2018-12-05T12:55:05 | 160,479,895 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 774 | rd | listBenchAnalysis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analyse.R
\name{listBenchAnalysis}
\alias{listBenchAnalysis}
\title{Create a list of matrices with results from analyseBenchData as columns}
\usage{
listBenchAnalysis(benchdata, filter, what, levels)
}
\arguments{
\item{benchdata}{a data.tabl... |
baec3fa4195afc07c9a9a31d65d7d9dd21017678 | cf30dd1ddd002cc1475995a0e3bd00d0a5152b2b | /IBD/IBD_prediction/antibody_prediction_v10.R | 2f44d305f3c248e00167f0cdd684d29a3aaade61 | [
"MIT"
] | permissive | abourgonje/Phip-Seq_LLD-IBD | 5c4f226433a72adaa5bb030fd2a772325a59b761 | 00a6eb4c5fe8b0fa5d8d3b280f52794b8d2b8402 | refs/heads/main | 2023-05-10T02:51:24.648784 | 2023-04-29T08:06:27 | 2023-04-29T08:06:27 | 434,927,784 | 0 | 0 | MIT | 2021-12-04T14:46:23 | 2021-12-04T14:46:22 | null | UTF-8 | R | false | false | 27,401 | r | antibody_prediction_v10.R | # =========================================
# By: R.Gacesa (UMCG, 2021)
#
# prediction of UC, CD or CD vs UC
# using antibody panels
# =========================================
#
# load libraries
# =========================================
library(caret)
library(pROC)
library(plotROC)
library(foreach)
li... |
212105c26a0fc8bac4caf9a93eb738b6981b1b9a | 72c51dcbda3930b9a865c892161cd3f0b8b44b26 | /S4 L7 Forecasting With Predict.R | 4881fdc2006d327d487a2e31fe3f98c616f717fb | [] | no_license | richiedlon/Time-Series-Data-Analysis-R | eb37a406e7811a6b4c3e1bda54cab03225e13341 | c7ee42df81bb17b1f521a7456a4e9bf00b80d130 | refs/heads/main | 2023-06-02T05:08:40.767888 | 2021-06-18T15:13:41 | 2021-06-18T15:13:41 | 372,722,409 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 700 | r | S4 L7 Forecasting With Predict.R | library(prophet)
library(dplyr)
library(plotly)
setwd("F:\\Backup\\Youtube\\Videos\\Time series analysis")
StockValue=read.csv("S4 L7 Microsoft stock.csv")
head(StockValue)
tail(StockValue)
Microstock = StockValue[c("Date","Close.Last")]
colnames(Microstock) = c("ds","y") # Rename columns
head(Micr... |
514eeb297160be457714839a3865c95cca7b1881 | 9931e6439b5beae2e4c9d77c28850fce7d628780 | /man/pStars.Rd | c2deaa457caa65d19ee44e72208fbbbc6df4b696 | [] | no_license | PNorvaisas/PFun | b2703a2b75294e63b2dc506c82d6013981668902 | c65faa1d0fe17d239af9c9f678eaa6463434109c | refs/heads/master | 2020-12-30T14:33:37.679090 | 2018-10-02T18:35:53 | 2018-10-02T18:35:53 | 91,320,995 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 317 | rd | pStars.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pStars.R
\name{pStars}
\alias{pStars}
\title{Get clean significance stars}
\usage{
pStars(x)
}
\arguments{
\item{x}{Vector witg p values}
}
\description{
Get clean significance stars
}
\examples{
pStars(x)
}
\keyword{Stars}
\keyword{p,}
|
174d1628030262d6ab21f080d3b2e3c30836cfc1 | ef5a4a769dadaa61823d068b734c4073d59812b6 | /man/OR.Rd | 326f3fad2a3771e212db5f63cd624a1c1bcaf355 | [] | no_license | bbbruce/aepi | da795b0b0e5d04879e18cbc2ca5242a90806df84 | 931d23cd3c9e9ba3f4ce02db95931a781030eeae | refs/heads/master | 2016-09-05T22:10:28.170866 | 2015-09-09T17:49:40 | 2015-09-09T17:49:40 | 42,145,289 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 621 | rd | OR.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/OR.R
\name{OR}
\alias{OR}
\alias{OR.formula}
\alias{OR.table}
\title{Calculate OR}
\usage{
OR(x, ...)
\method{OR}{table}(table)
\method{OR}{formula}(formula, data)
}
\arguments{
\item{table}{a 2 x 2 table}
\item{formula}{a formula,... |
d55b395c45a63cbac1b78252118a0f5fe291fcc2 | 28030b5c66d124dd974b5398bf169c7fc13c74b8 | /man/SVM_predict.Rd | 65cbca06ae73d4d00b4c87182ecb8979c40d3b67 | [] | no_license | cran/DMTL | 96b1dbfd9bc066e804c16a0477b56ae754ab8ce0 | 17d4b002a96cf8100b141ef53b8d36bec0300536 | refs/heads/master | 2023-03-11T07:22:31.883182 | 2021-02-18T09:50:02 | 2021-02-18T09:50:02 | 340,095,052 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,401 | rd | SVM_predict.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predictive_modeling.R
\name{SVM_predict}
\alias{SVM_predict}
\title{Predictive Modeling using Support Vector Machine}
\usage{
SVM_predict(
x_train,
y_train,
x_test,
lims,
kernel = "rbf",
optimize = FALSE,
C = 2,
... |
142a4cc945cd35eb8022a14a470fed2c678589aa | de882c7604b62c5975274bf0e3027da96a2f7b4d | /R/sign.star.R | 113ede81cd7356624bf6df0162eae3641a431092 | [] | no_license | vincentgarin/mppR | bc061f2d0284adc6468619e162e8ffd45b641fb3 | 2fb0286257697f796c2c1b2590e9284ad281a939 | refs/heads/master | 2023-01-28T18:07:19.180068 | 2023-01-02T13:27:41 | 2023-01-02T13:27:41 | 75,842,226 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 499 | r | sign.star.R | #############
# sign.star #
#############
# function that convert significance of results in stars
sign.star <- function(x){
if(is.na(x)){
sign <- NA
} else {
if(x>=0.1){
sign <- ""
}else if((0.1>x) & (0.05<=x)){
sign <- "."
}else if((0.05>x) & (0.01<=x)){... |
962b5daa85e4e996b4a41f59f3b587aede1bbbb3 | 44cccc95ebf2b0dd822bd0b8c0eb6fb867bc3470 | /KNN_CleanData_Evaluation.R | a3593a979f85b7f3f910fdfdf51fdd5256abf46d | [] | no_license | kkoska/softwareprojekt | f2f8da3414fe10ae181f49e883f2a2fc8c48ab75 | 2befe3f31fdcd6c6cfa7d2ebffe1ec0b5499a981 | refs/heads/master | 2020-06-05T18:46:42.693991 | 2019-06-18T10:03:40 | 2019-06-18T10:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,383 | r | KNN_CleanData_Evaluation.R | #Librarys---------------------------------------------------------------
library(NLP)
library(tm)
library(sylly)
library(koRpus)
library(koRpus.lang.de)
library(textstem)
library(dplyr)
library(rebus)
library(stringr)
library(qdapTools)
library(qdapDictionaries)
library(qdapRegex)
library(RColorBrewer)
li... |
d7aae2bc36498b14ed6660cc203bf64295fbfc98 | e541a1a88fbcaa4ef67cb0864de2931f44693fba | /lect15_2.R | fff4da892c5acd0b07240d43099473631b264be9 | [] | no_license | rinkanrohitjena/rstudiocodes | 8e0346e59537259d1c7269938723c0419f3d8209 | 871e9bcb1a78a777dca4438550438e0aa49b9ca1 | refs/heads/master | 2020-07-06T01:07:28.492082 | 2019-08-17T05:48:34 | 2019-08-17T05:48:34 | 202,841,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 332 | r | lect15_2.R | library(MASS)
data(Pima.tr)
head(Pima.tr)
library(RColorBrewer)
pima = Pima.tr
lm3 <- lm(glu ~ bmi+npreg+bp+skin+ped+age+type, data=pima)
plot(lm3$fitted.values, pima$glu,pch=20,col=brewer.pal(2,"Set1"))
abline(lm3,col="red")
predict(lm3) #Compare to predicted value
lm.finalmodel= step(lm(glu~.,data = pima))
summary(lm... |
6039ad6c7eafb412fad26794042ed94b9d6c82a9 | 4e6f18e6feb01502f2cd15772b6c0cc2f7c0629d | /tests/testthat/test_treatment.R | a1a7751052cd9ce4ad53facfccc61421f9024b49 | [] | no_license | cancerpolicy/bcimodel | 8f76e9a64c79773c4e7058f1a71eb619a6496d8e | 219df7c778ce8388b661a83de45845b2b0f57815 | refs/heads/master | 2021-01-13T02:55:45.874682 | 2019-06-27T19:50:48 | 2019-06-27T19:50:48 | 77,089,332 | 6 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,338 | r | test_treatment.R |
################################################################################
# Tests for treatment.R
context('Assigning treatment')
################################################################################
test_that('shifttreatment_indicator works',
{
# First has no shift, second has... |
706a13b04f9ed4c3bf09438cc961d61fb522d455 | 7522f7268a18e834d0ea3fe203ccf6205c875b8e | /server.R | 015b5d29c38abc15cb9623267b8af2dedbbdc765 | [] | no_license | erowe/MoCo | 13114ad69b7a023096c8a0d3b4f1d9a59e4b2c94 | f0bcbdcf0e3af40165f07bc610679e60512db91f | refs/heads/master | 2020-04-14T18:52:54.448639 | 2014-12-18T03:53:57 | 2014-12-18T03:53:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,229 | r | server.R |
# This application prints the traffic stops from Montgomery County Maryland USA
# and can optionally highlight the stops that were alcohol related.
# The data is sourced from the Montgomery County Open Data Website 12/5/2014
# https://data.montgomerycountymd.gov/Public-Safety/Traffic-Violations/4mse-ku6q
#
# This is... |
bdfcfb8fa385465e15476129ccefc36c49830fd7 | 8cd2d5cd7bdcf74a72c04e98946189d2146a8ac2 | /NERP/02.script2run.r | 58ef0977c6e125b9cef6abec08f18860c38c0f0c | [] | no_license | LaurenHodgson/Projects | fe7383c9d054fccb964ee54fc8a495b3de0812db | 8935bc6f81bd173ed679552282cc7b32568c5fea | refs/heads/master | 2016-09-06T02:38:54.899728 | 2012-12-13T05:00:13 | 2012-12-13T05:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,506 | r | 02.script2run.r | #drafted by Jeremy VanDerWal ( jjvanderwal@gmail.com ... www.jjvanderwal.com )
#GNU General Public License .. feel free to use / distribute ... no warranties
################################################################################
##get the command line arguements
args=(commandArgs(TRUE))
#evaluate the argume... |
49cae7835e2475a8ae5deb2af10815fbf2340eef | 50066dae4216d17bd6f0dcb9a11d872e73246eb6 | /man/print.provenance.Rd | 0f7a4c8881ace603f46f15c582efbe26dbfb863d | [] | no_license | cran/PKNCA | 11de9db2cb98279c79d06022415b8772e7c1f5ea | 8f580da3e3c594e4e1be747cb2d8e35216784ed2 | refs/heads/master | 2023-05-10T16:54:19.131987 | 2023-04-29T18:30:02 | 2023-04-29T18:30:02 | 48,085,829 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 432 | rd | print.provenance.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/provenance.R
\name{print.provenance}
\alias{print.provenance}
\title{Print the summary of a provenance object}
\usage{
\method{print}{provenance}(x, ...)
}
\arguments{
\item{x}{The object to be printed}
\item{...}{Ignored}
}
\va... |
84193cb4fffebbae5b3ce7179b09b6ddaf920177 | 52494e8f969efb89d40afe477f9a9a29df22fff8 | /ChicagoCitySalary/ui.R | 835c5babedc69c4ce2230ff056ce7f2583f2debf | [] | no_license | manocodes/ChicagoCitySalary | 347c1696bf9922c0171fe21d30d168452fbc53ab | ff3846326847c947cd06557eca251a7b87c71860 | refs/heads/master | 2020-07-29T15:18:57.675231 | 2016-11-14T23:44:07 | 2016-11-14T23:44:57 | 73,663,011 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,307 | r | ui.R | library(shiny)
#shinyUI(fluidPage(
# tabsetPanel(
navbarPage("Chicago City",
tabPanel( "Salary",(
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel( h3("Chicago City Salary Info"),
... |
d5ea13c813cbdf7d77aec4840c579ae1a25c9944 | ebc0ee7cee315dfc59553162411691a185496d62 | /rankAll.R | 694b6fccb634e9dd0fe201cb213368333f92c976 | [] | no_license | kmenzies/datasciencecoursera | 57ed1dc9cd8120ba6f12fd3f0edd4538bb9b29b7 | b2e43b225caa3d80a845581604cea9061c483652 | refs/heads/master | 2021-01-10T08:32:19.839314 | 2016-01-21T16:44:52 | 2016-01-21T16:44:52 | 49,586,132 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,497 | r | rankAll.R | validOptions <- list(Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack="heart attack", Hospital.30.Day.Death..Mortality..Rates.from.Heart.Failure="heart failure", Hospital.30.Day.Death..Mortality..Rates.from.Pneumonia="pneumonia")
toOpen <- "~/Documents/Coursera/rprog-data-ProgAssignment3-data/outcome-of-care-m... |
0b65e68d58be36a23b2d38eeea2305688f8a25c7 | 9a76ce640ceb90d3a1e496f434600444090edce5 | /Server.R | 1857274266fe632172479a64981f0f869a08239f | [] | no_license | blockee/DataProducts | 9fb82c6d3504262173f9814109dc5495af1f3b12 | e69039c7455a05e1078e0d2cc9d2553b76a48a8f | refs/heads/master | 2021-01-13T01:27:33.674200 | 2014-10-26T23:15:45 | 2014-10-26T23:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 406 | r | Server.R | nfl <- read.csv("nfloffense2013.csv")
shinyServer(
function(input, output){
output$score <- renderPrint({nfl[nfl$TEAM == input$team, names(nfl) == input$stat ]})
output$ss <- renderPrint({(nfl[nfl$TEAM == input$team, names(nfl) == input$stat ] -
mean(nfl[... |
e0e5aa239d2e5e65c6a46d9f79500f53707f6809 | 4115c98348bf0e7fe944272d91fe351d58d22a96 | /tests/testthat/test-get_SDA_cosurfmorph.R | c9526f6094221f7161022ab6054a8ff33539442e | [] | no_license | ncss-tech/soilDB | a933bf98a674fd54b5e1073a4497ee38a177bdf2 | 380440fc7b804b495aa711c130ab914c673a54be | refs/heads/master | 2023-09-02T14:19:17.348412 | 2023-09-02T00:56:16 | 2023-09-02T00:56:16 | 54,595,470 | 68 | 20 | null | 2023-09-01T19:00:48 | 2016-03-23T21:51:10 | R | UTF-8 | R | false | false | 934 | r | test-get_SDA_cosurfmorph.R | test_that("get_SDA_cosurfmorph works", {
skip_on_cran()
skip_if_offline()
# Summarize by 3D geomorphic components by component name (default `by='compname'`)
x <- get_SDA_cosurfmorph(WHERE = "areasymbol = 'CA630'")
skip_if(is.null(x))
expect_true(inherits(x, 'data.frame'))
# Whole Soil Surve... |
3e2892948356446bca35c57a9688c36d91488b38 | ad67aec0b4bbc865465e37368b7660c0488c86a1 | /tests/testthat/test_c_or_1st.R | d8389da6a4d86d6f8bf45a88f2b49e7194a53717 | [] | no_license | fazetu/htable | b6dadc033fb2081a14236d18166aacb067347c7d | 8924560ba8ec6fa0e364db30ae2897b69ae6ef16 | refs/heads/master | 2021-07-19T09:42:55.501605 | 2020-02-07T21:48:50 | 2020-02-07T21:48:50 | 195,873,455 | 0 | 0 | null | 2019-11-12T15:36:30 | 2019-07-08T19:24:42 | R | UTF-8 | R | false | false | 756 | r | test_c_or_1st.R | test_that("test c_or_1st()", {
# both NULLs
expect_equal(c_or_1st(NULL, NULL), NULL)
# one is NULL
expect_equal(c_or_1st(NULL, 1), 1)
expect_equal(c_or_1st(1, NULL), 1)
expect_equal(c_or_1st(NULL, "a"), "a")
expect_equal(c_or_1st("a", NULL), "a")
expect_equal(c_or_1st(NULL, TRUE), TRUE)
expect_equa... |
276a85e074e8daf4b96fa3d189bdc92664dd31a2 | bf07e7f42e25dca0d84c70ca3b068c82bad196aa | /functions.r | 7453c5cd358fd7264b5fe03c3ced73eb2257b584 | [] | no_license | wesslen/social-media-workshop | bb773dde319a6183e969e639109cbc91b0cc801b | dfc051a721a719ed9e01fdbadc2fff91e88b0b7d | refs/heads/master | 2021-01-18T15:21:10.533924 | 2017-02-28T00:32:05 | 2017-02-28T00:32:05 | 55,739,408 | 1 | 1 | null | 2016-04-08T01:13:04 | 2016-04-08T01:13:04 | null | UTF-8 | R | false | false | 8,315 | r | functions.r | ################################################################################
# Extract hashtags from a character vector and return frequency table
################################################################################
getCommonHashtags <- function(text, n=20){
hashtags <- regmatches(text,gregexpr("#(... |
fa24aaf62e3cd23cdb303f1a5e6389029c825535 | ee1205428b0d18231b1af3603a96cbdedcfa6c8f | /R/THINSp.R | 2d3fa1255f6bd044a04157e918befbea3669e12f | [] | no_license | cicibauer/CM | 9eefc2506a9a0717bc9789866a9896a3a848a576 | d3947fa3c4b49fd3a700f6ced5ec258e7feab9ff | refs/heads/master | 2023-06-25T06:28:09.778915 | 2021-07-07T16:33:27 | 2021-07-07T16:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 960 | r | THINSp.R | #' Thin-Plate Spline
#'
#' This code computes the thin-plate spline function f(s) = s^2 log(s) for 1-dimensional spatial locations
#' @param locs n-dimensional vector of locations
#' @param knots r-dimensional vector of knots
#' @param tol thresholds small values of the elements of psi to be zero. Default is no th... |
ba75ff26009ae33751f203284d45be87502097e9 | 344614177666758a75a235966d5adbc2232987b6 | /tests/testthat/test-cfb_ratings_sp.R | 054bd67e20a8fb60e6c6078d9b324970518dfd96 | [
"MIT"
] | permissive | saiemgilani/cfbscrapR | 61d677496bac5053c07fac708f34092ce70e141d | 0a33650fb6e7e6768b2cc1318c8960dd291c73f4 | refs/heads/master | 2023-03-31T06:19:47.722785 | 2021-04-03T23:53:23 | 2021-04-03T23:53:23 | 274,903,057 | 28 | 8 | NOASSERTION | 2021-02-20T19:36:07 | 2020-06-25T11:49:29 | R | UTF-8 | R | false | false | 1,040 | r | test-cfb_ratings_sp.R | context("CFB Ratings - Bill C.'s SP+")
x <- cfb_ratings_sp(year = 2019)
y <- cfb_ratings_sp(team = 'Texas A&M')
z <- cfb_ratings_sp(year = 2019, team = 'LSU')
cols <- c('year','team',
'conference','rating','ranking','second_order_wins', 'sos','offense_ranking',
'offense_rating','offense_success'... |
1c976ea4754ee355bd8960501aea746c1b43243b | 4504e2c8fc4aefdaccaac740a9b82f29cd49e817 | /man/Rosling.bubbles.Rd | 43e7653ac5273a8c4103a418b219f5f0601311b7 | [] | no_license | dgrtwo/animation | 37daaf114583e548c2e569fa1f3b12183b12c15f | c7a3155a3544d80b94b5378f6ace8811774632de | refs/heads/master | 2021-01-09T05:25:47.116366 | 2016-02-14T02:57:17 | 2016-02-14T02:57:17 | 51,805,168 | 2 | 1 | null | 2016-02-16T03:29:58 | 2016-02-16T03:29:56 | R | UTF-8 | R | false | false | 3,204 | rd | Rosling.bubbles.Rd | % Please edit documentation in R/Rosling.bubbles.R
\name{Rosling.bubbles}
\alias{Rosling.bubbles}
\title{The bubbles animation in Hans Rosling's Talk}
\usage{
Rosling.bubbles(x, y, data, type = c("circles", "squares", "rectangles", "stars",
"thermometers", "boxplots"), bg, xlim = range(x), ylim = range(y), main = ... |
6f20038cdd18f56e4878b3a41a5c65c306fac112 | 8d657b14c43472f23bd8faaf0ed3aba9e151cea6 | /R/vertical_3party_logistic.R | 3d9ddfafb929028231f36a6cb3165f2b9a2e97f6 | [] | no_license | cran/vdra | 42a73738350a38c6c95af0a3156ec877829ae694 | 54c44c79831ea3407fc5cbf6fbc0301ce8c2cda2 | refs/heads/master | 2023-07-16T08:14:03.433005 | 2021-09-09T05:20:02 | 2021-09-09T05:20:02 | 404,778,003 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 46,481 | r | vertical_3party_logistic.R | ################### DISTRIBUTED LOGISTIC REGRESSION FUNCTIONS ##################
CheckColinearityLogistic.T3 = function(params) {
if (params$trace) cat(as.character(Sys.time()), "CheckColinearityLogistic.T3\n\n")
xtx = params$xtx
xty = params$xty
nrow = nrow(xtx)
indicies = c(1)
for (i in 2:nrow) {
... |
93498cbdf7f99b265ddc050133c6f161329af22c | e532a61e499e1e97740f1d0c642bc33e8e2426dc | /Measures comparison/Evaluation/ggplot_functions.R | 07ebdcb94739c2d763b29f70eab3dd4a2a8d27ce | [
"MIT"
] | permissive | mllg/stability-bioinf | 37d4cebdb10b03e2b21999db252c832e0f68f2e5 | bc282b31b09a211244880f095bd127c6438012f4 | refs/heads/master | 2020-12-24T21:11:37.046377 | 2017-06-07T12:46:16 | 2017-06-07T12:46:16 | 76,960,923 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,218 | r | ggplot_functions.R | ####################################################
# Functions for creating the correlation heatmaps
# and the plot of Pareto optimal models
# for the descriptive experiments using ggplot2
####################################################
heatmap_ggplot <- function(cor, names, title = "")
{
library(gplots)
l... |
e59446627364d709a138d2703c7675f76b1e2884 | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.analytics/man/elasticsearchservice_delete_outbound_cross_cluster_search_connection.Rd | c3be3e8974b5ca7946582a8cc09bc16e9dcf86c3 | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 1,504 | rd | elasticsearchservice_delete_outbound_cross_cluster_search_connection.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elasticsearchservice_operations.R
\name{elasticsearchservice_delete_outbound_cross_cluster_search_connection}
\alias{elasticsearchservice_delete_outbound_cross_cluster_search_connection}
\title{Allows the source domain owner to delete an exis... |
84a9a5b505c4f32b74258e5d369b5131353b0111 | a160305f979ade5ae5a0a8722d6de2e80ff3c666 | /R/fr_hollingsII.R | 20a8ca2fe05f3cbea88a412c82cd94e52102ae27 | [] | no_license | dpritchard/frair | 5e4249cf103891aad5943beaae5c8b8c3e45078a | a66a1733bc77eeb8372abeac4f2c218cd5a3c4df | refs/heads/master | 2020-04-12T01:36:52.817826 | 2017-03-25T21:24:31 | 2017-03-25T21:24:31 | 10,156,720 | 6 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,909 | r | fr_hollingsII.R | ## Holling's Orginal Type II pre-prey function.
# hollingsII: The guiding function...
hollingsII <- function(X, a, h, T) {
if(is.list(a)){
coefs <- a
a <- coefs[['a']]
h <- coefs[['h']]
T <- coefs[['T']]
}
return((a*X*T)/(1+a*X*h)) # Direct from Julliano 2001, pp 181
}
# holling... |
ed2d3a195a58e5e919e786b7488e548009cb9127 | bb903df45d84290980ca7fd18833893b2a1c1dbe | /src/data/gapminder/analysis1.R | d11655ef5e11b08d4ef5aaf21905d0dfbbea878e | [
"MIT",
"CC-BY-4.0"
] | permissive | billcook1951/2019-04-02-carpentries-mmc | 0f5b71e47f852b615980d5ee88f8347c739db12c | 65eeaec6157ab5647d619676a72cfcdda0ae219d | refs/heads/master | 2020-05-04T10:06:52.488949 | 2019-04-02T17:12:27 | 2019-04-02T17:12:27 | 179,081,948 | 0 | 0 | null | 2019-04-02T13:18:48 | 2019-04-02T13:18:48 | null | UTF-8 | R | false | false | 1,151 | r | analysis1.R | #
library(here)
library(tidyverse)
gapminder <- readr::read_csv(here("data/gapminder/raw/gapminder_data.csv"))
# oldschool
mean(gapminder$gdpPercap[gapminder$continent == "Africa"])
mean(gapminder$gdpPercap[gapminder$continent == "Americas"])
year_country_gdp <- select(gapminder,year, country, gdpPerca... |
4bb5a9bde36f933ff294dc440cb065727c50ffc6 | d1708275acd33034cee5cee27dc3dc7189e70f47 | /inst/examples/ex_test.R | 2e798f761e7f7250a8a2b7e8f9c92a095b130a34 | [] | no_license | stc04003/tranSurv | ae0ef34ea789a8f5bb03aa718749ea39b5e449fb | e9f23bf1ac11f12e745c32a91f23e1fcda336897 | refs/heads/master | 2021-07-19T17:05:00.055305 | 2021-07-17T17:33:17 | 2021-07-17T17:33:17 | 135,850,835 | 1 | 0 | null | 2019-10-29T21:01:53 | 2018-06-02T20:41:51 | R | UTF-8 | R | false | false | 2,045 | r | ex_test.R | ## ------------------------------------------------------------------------------------------
## Library and data
## ------------------------------------------------------------------------------------------
library(tranSurv)
data(channing, package = "boot")
chan <- subset(channing, entry < exit)
## -----------------... |
96469f90fac41374dfbcb3567dc84ccec8c28913 | 328fb6a9f41ebc505de13af7900d4c965d0636b8 | /test.R | f0e3bb5d74ea9147c39401132c39fce57dd1f084 | [] | no_license | davidgremminger/dspm_git_intro | 8ce282f75e80f4f00e0e1dd7fe7b6e3e0ef1902e | 38cdb229fbc6a20961d4ab14609be39a579d004d | refs/heads/master | 2020-04-15T10:51:47.696914 | 2020-01-06T18:05:17 | 2020-01-06T18:05:17 | 164,602,151 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 350 | r | test.R | # Loading relevant package
library(ggplot2)
# Creating plot
scatterplot <- ggplot(diamonds, aes(x = carat, y = price)) +
geom_point(size = 4) +
theme_minimal() +
ggtitle("Diamonds Scatterplot")
# Saving plot
ggsave("./plots/plot.jpg")
# My colleague adds a comme... |
b882a47513fe35bf5e0a391cade9a4e516d22da2 | 17464ae92bc82d5aa65320c47d98b2ed0028e977 | /dominance/dominance_switch_model_selection.R | 608bf3ee5d333f1e5d4aa815a42e31aba5ceec3b | [] | no_license | SallyKoerner/GEx_SEV2019 | 348ed1989061e47c7a2dba88063e5676d36e3de7 | 6570f850ee80e9987eaa0b5ddbdfa6cab45c627e | refs/heads/master | 2021-08-07T21:33:45.131718 | 2021-07-21T19:41:31 | 2021-07-21T19:41:31 | 182,826,141 | 1 | 1 | null | 2020-06-12T17:43:43 | 2019-04-22T16:29:23 | R | UTF-8 | R | false | false | 1,346 | r | dominance_switch_model_selection.R | # This script performs model selection on variables that affect dominant species switching
#
###########################################################################################
###########################################################################################
# Load libraries
library(tidyverse)
library... |
52b149eb793b44d7ae97ccdb4d318937ffb92b76 | 30f69e17253e3ccba7654766f790430a23dfd608 | /R/leontief-matrix.R | e77b3470271d6f432e5bbdc0a248190af86b87dc | [] | no_license | amrofi/GVCs-LICs | bd535ef059e70bd9e9fc9d20934937e303ffe871 | 47ac9e2ee56854d9163746bef4c7bf6b58d1331d | refs/heads/master | 2020-07-24T21:17:08.647680 | 2017-02-21T08:28:24 | 2017-02-21T08:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,257 | r | leontief-matrix.R | # leontief matrix form
# Bastiaan Quast
# bquast@gmail.com
library(decompr)
lm1995 <- load_tables_vectors(wid1995,
wfd1995,
countries,
sectors,
output1995)
lm2000 <- load_tables_vectors(wid2000,
... |
1984fd2ebab6531fd6dc84ce9e62d7fa23486b3d | f61339934b58e78decd99fd2f57533cd1389cde8 | /OxD_E_Params_LaTeX/Digitiziation/Analysis.R | 266542ee74e3a77ad0e2165ec0d778861f60ffd8 | [] | no_license | julianstanley/Ratiometric_Microscopy | 9010d90c943f90cc5700bda813017ff25389277a | 5eaa7c595552c652af56e99b78cd340fb349e29a | refs/heads/master | 2021-06-21T19:54:59.755633 | 2019-09-29T18:12:47 | 2019-09-29T18:12:47 | 149,372,411 | 0 | 1 | null | null | null | null | WINDOWS-1252 | R | false | false | 3,427 | r | Analysis.R |
# ----------- Spectra class definition
# Ox: Matrix of [X, Y] spectrum values in oxidized state
# Red: Matrix of [X, Y] spectrum values in reduced state
setClass("Spectra",
slots = list(ox = "matrix", red = "matrix"))
# ----------- Spectra constructors
# Main constructor
# ARGS: Two, 2-by-N matri... |
7fe97fb91755409543dd4378c9432310bf9d08ed | 753b32b49bfd7c9e3bb9ed7370e97a5bfbb62860 | /plot1.R | 3337ab62039986a6802c89f5f22aa877454098b5 | [] | no_license | rohitravishankar/ExploratoryDataAnalysis-CourseProject2 | 985e1dfabb2e24d52469457f77a9f318e7beb03c | 40d1b665a7da7c7b45cfbd5e3d0e88ade5af239d | refs/heads/master | 2021-01-15T11:12:08.529565 | 2015-07-21T10:50:18 | 2015-07-21T10:50:18 | 39,437,544 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 398 | r | plot1.R | ## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
aggregatedTotal <- aggregate(Emissions ~ year, NEI, sum)
png("plot1.png")
barplot(height=aggregatedTotal$Emissions, names.arg=aggregatedTotal$year, xlab="years", ylab="... |
6a8414e28c2996d0d1190bc91c03e97894345cbd | 95c158d8727c1877d95e8eac0daa08754c1c6f04 | /data/read_local_data.R | c428595ac12be538b7ced195eeffda51faa41f67 | [] | no_license | asRodelgo/shinyTCMN | bcbec537466b03dd46fea45ab7baa61318668beb | e938dd403735ccf7261819d443d397a8618a3c04 | refs/heads/master | 2021-05-04T11:14:13.651748 | 2017-01-24T01:55:47 | 2017-01-24T01:55:47 | 60,372,337 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,932 | r | read_local_data.R | # This scripts reads data for developing version of the app where data is stored in a different place
#
TCMN_data <- read.csv("/Users/asanchez3/srv/shiny-server/shinyTCMN-data/data/TCMN_data.csv", colClasses = c(rep("character",4),rep("numeric",2),rep("character",2)))
# country table ----------------------------
cou... |
cd4ab7a71761ca6a21b15563196475a505f786e8 | c56e17d02b242eb75a87725d34e870f11cd36e3a | /man/linebreak.Rd | 32cb1c56598dfa88106b82e611ba3b25c36bd74f | [] | no_license | isteves/kableExtra | 689fb470151249fd87d6e5dca0ae0bba4e4197e6 | b1caa27840a86eb17071dc8973b690650aee78f1 | refs/heads/master | 2020-03-11T11:27:52.385123 | 2018-04-14T18:19:46 | 2018-04-14T18:19:46 | 129,970,302 | 1 | 0 | null | 2018-04-17T22:03:56 | 2018-04-17T22:03:56 | null | UTF-8 | R | false | true | 534 | rd | linebreak.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linebreak.R
\name{linebreak}
\alias{linebreak}
\title{Make linebreak in LaTeX Table cells}
\usage{
linebreak(x, align = c("l", "c", "r"), double_escape = F)
}
\arguments{
\item{x}{A character vector}
\item{align}{Choose from "l", "c" or "r"}... |
b19ab427d404ff7c81e2384d32f37f09724dae0c | efb67b529095add05d77312f981305690655b45a | /ggplot2/Programming with ggplot2/print.ggplot/example1.R | ebb13d66b6a3cbf86bb67eed80698e91df27c11c | [] | no_license | plotly/ssim_baselines | 6d705b8346604004ae16efdf94e425a2989b2401 | 9d7bec64fc286fb69c76d8be5dc0899f6070773b | refs/heads/main | 2023-08-14T23:31:06.802931 | 2021-09-17T07:19:01 | 2021-09-17T07:19:01 | 396,965,062 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 176 | r | example1.R | colours <- list(~class, ~drv, ~fl)
p <-
# Doesn't seem to do anything!
for (colour in colours) {
ggplot(mpg, aes_(~ displ, ~ hwy, colour = colour)) +
geom_point()
}
|
9bb69a0adb561249e12c11b9f8699b13ce6e9b10 | 7472fc8576e1932c7d87e8a5792b11d82103f9ef | /marginal_mrp.R | 80e125e793d5233e36d14e91cd57ae87f00692c0 | [] | no_license | gabgilling/Bayesian-Blogs | 1b034f1dfcd1f9ec9823cbd9d5dd240915c747a6 | fde423fb5dd00eb799aafc835c99bf5223f8baac | refs/heads/main | 2023-07-22T01:27:51.155649 | 2021-09-07T14:18:24 | 2021-09-07T14:18:24 | 372,865,024 | 0 | 1 | null | 2021-07-13T13:44:34 | 2021-06-01T14:47:09 | Jupyter Notebook | UTF-8 | R | false | false | 8,386 | r | marginal_mrp.R | library(readr)
IFOP_21_04_2017 <- read_csv("Downloads/IFOP_21-04-2017.csv")
nuts_eb_dictionary <- read_csv("https://raw.githubusercontent.com/gabgilling/Thesis/master/Data/nuts_eb_dictionary.csv")
reg_preds <- read.csv("https://raw.githubusercontent.com/gabgilling/Thesis/master/Data/regional_predictors.csv")
census_a... |
0bf5d8a6d84a704ab7f1856d89908c14dc7840b5 | b9ebd05de9d31efc8097c1336f75aa4e14b1656b | /NoteBook_R/Book_Note_R语言编程艺术/002_unit_2_example_01_扩展案例_寻找连续出现1的流程.r | e85ea6b77c8d3258eea6a404d786ae1c4becac52 | [] | no_license | moss1225/R_practice_program_1 | 056b659f3e56c6cd7f532ded839ec665dc0591be | 5bbf9abcccd0e30655fc56080c687c2e807d7da1 | refs/heads/master | 2021-01-23T05:14:20.901857 | 2018-06-25T08:09:01 | 2018-06-25T08:09:01 | 86,286,838 | 1 | 0 | null | null | null | null | GB18030 | R | false | false | 611 | r | 002_unit_2_example_01_扩展案例_寻找连续出现1的流程.r | #假设一个向量由若干0和1构成,我们想找出其中连续出现1的游程。例如,对于向量
#(1,0,0,1,1,10,1,1),从它第4索引处开始又称为3的游程,而长度为2的游程分别开始于4,5,8处
#因此,用函数FindRuns(c(1,0,0,1,1,10,1,1),2)返回又成为2的开始索引
run_data=c(1,0,0,1,1,10,1,1)
#↑输入原始数据
FindRuns<-function(x,k){
#↑创建函数,x为检测数据,k为游程的长度
n<-length(x)
runs<-NULL
for(i in 1:n-k+1){
if(all(x[i:(i+k-1)]==1)... |
44520a71d20b9da8279b59b716a67f26fd174c38 | 7f489d03d1eec0cf181b2c50d18253ff0ad9e61a | /R/straineff_support.R | 9535254379cd9fefba862cdc14a69bab33d98468 | [] | no_license | gkeele/Diploffect.INLA | 4fa4b8bfc75b864f9b1b417ca0e95a25acf1ea9e | 8019dd58957d77f6445575d74978bf3c3bbf8411 | refs/heads/master | 2023-05-29T08:09:51.154878 | 2023-05-16T01:22:11 | 2023-05-16T01:22:11 | 86,735,774 | 3 | 1 | null | 2019-10-25T19:04:38 | 2017-03-30T18:32:47 | R | UTF-8 | R | false | false | 9,316 | r | straineff_support.R | ## Return the nearest marker name to the position at chromosome chr.
## position is in bp
get.nearest.marker <- function(h, chr, position) {
chromosomes = h$genotype$genome$chromosome
bps = h$genotype$genome$bp
markers = h$genotype$genome$marker
chr.idx = which(chromosomes == chr)
idx = which.min(abs(bps[chr.... |
052c3591ffa47dd116e91d94b5fc11e430f1bae2 | 64f45090c6858ba1d3c8a1cdd52078f22df04d9b | /CSE41097_Introduction_to_R/Assignment2_W5-7/assignment2_soln.R | 3a87094ce10b2cea548ac5f67909e6e8e88db1a7 | [] | no_license | anhnguyendepocen/UCSD_Data_Mining_Certificate | 556ccdcacb454c0ac48e44dda08d79fa127f6802 | 423a11cc4bead8696330683f1700243e5e52bd73 | refs/heads/master | 2021-06-07T15:30:38.072421 | 2016-11-15T22:02:26 | 2016-11-15T22:02:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,236 | r | assignment2_soln.R |
##
## Assignment 2 - Solution
##
##
## -----------------------------------------------------------
## Problem 1
## -----------------------------------------------------------
##
extreme=function(x){
extreme.t=abs(x-mean(x))>3*sd(x)
if (any(extreme.t))
print(paste("There are", sum(extreme.t), "extre... |
1e5e645ab1109bc2e65ffafb3c69f635e0fe1089 | 44eb2a73ee6ef5d7704d2676093d214bd27e989e | /2_spider_2_stream.r | 329d3fc88303f7ab7beaf45a7a05841ee01e570c | [] | no_license | DarrenTsungjenWu/Scrapping | 4db316b1037a718ad32d2b88080eda0f444c08f9 | 62bcbb9448d00a868eccc25b30b62eed0a9ac58d | refs/heads/master | 2023-01-31T10:50:59.958756 | 2020-12-13T14:59:44 | 2020-12-13T14:59:44 | 320,774,636 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 614 | r | 2_spider_2_stream.r | library(tidyverse)
library(rvest)
library(stringr)
setwd("d:/download")
url <- "http://www.miaopai.com/u/paike_8o7ugjvf5c"
pages <- read_html(url)
# CAN NOT WORK
# links <- pages %>% html_nodes("div.video-player") %>%
# html_nodes("video") %>% html_attr("src")
# THIS WORKS
links <- pages %>%... |
cae0fde0e11e5684e204fed39f3bb49931e206d2 | 49e5c20f6542bebcb82a24e5326943a2314526be | /02. Code/Codes for Performance Measures.r | c8e164875cfbfb412d4768553aeb574f4284962f | [] | no_license | jzhao0802/jassen | e11ab7f0967725fe945199403818f3580b0790b7 | 35144966476e80e2b1996f6981cda85842d5fac9 | refs/heads/master | 2021-05-10T15:20:07.394894 | 2018-01-23T02:55:01 | 2018-01-23T02:55:01 | 118,548,721 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,118 | r | Codes for Performance Measures.r | # Codes for Calculating performance measure, i.e.TPR, FPR, TNR, FNR, Sensitivity, Precision(PPV), rate_accuracy
# Developed by Hui, Jin
# Feb,9,2015
# Take a LR model as an example to show how to calculate performance measure
options(digits = 7)
library(glmnet)
#1. set up working folder and read in model data... |
7e46fb900f5424dd49852bead4054f7dede4fc75 | 0d49152a631649b54d78324b1fc4c32bc912ee42 | /R/0_get_file_info.R | 5ff4d3c287950966fb52b3d50fc53dc256e26e79 | [] | no_license | dfe-analytical-services/automated-data-qa | 5900e22e8db564e4315a1f2bd716c2f5d23b9626 | ad84a5dd977cff19e13129f5ae2ae6fdbc8a4522 | refs/heads/main | 2023-06-16T09:25:04.531317 | 2021-07-06T09:28:45 | 2021-07-06T09:28:45 | 365,194,193 | 1 | 0 | null | 2021-06-21T11:06:08 | 2021-05-07T10:14:44 | HTML | UTF-8 | R | false | false | 1,028 | r | 0_get_file_info.R | # RECOMMENDED BASIC AUTOMATED QA CHECKS -
library(dplyr)
library(data.table)
library(tidyr)
library(janitor)
library(plotly)
library(DT)
library(kableExtra)
# STEP 1: read in the data ------------------------------------------------
data <- data.table::fread("data/testing2.csv") #Your file path here
metadata <- data.... |
4b74401c66bb60e405b0d16d98b4132ad37efbde | 2e9fa21af79da31fc12d2867d2f06ad528327a37 | /Frontiers_ALR_supplementary.R | de4223f6751743267dfdffc151acf2a0f3e186d7 | [] | no_license | michaelgreenacre/CODAinPractice | 2872afe84e9a8c2c58e43bb0998abf0edaef30d4 | b12a80f316fe8b0b6e4e7c3594cbd55862ac817e | refs/heads/master | 2023-08-14T10:12:52.973238 | 2023-07-27T15:08:01 | 2023-07-27T15:08:01 | 146,437,698 | 26 | 8 | null | null | null | null | UTF-8 | R | false | false | 13,394 | r | Frontiers_ALR_supplementary.R | ### Cancer data set
### read data from github site
cancer <- read.table("https://raw.githubusercontent.com/michaelgreenacre/CODAinPractice/master/Baxter_OTU_table.txt",
header=TRUE, check.names=FALSE)
dim(cancer)
# [1] 490 338
### remove first three columns to get the OTU dataset
cancer <... |
e924f55d9f28a1e9cbdf33ea5f2f2eb125d23e54 | 68d2ba3f519597e2146f71080712c78d9f34647f | /R/run_app.R | 450bd96e3942bb75a7c74af70e48a8a9de6b3bc9 | [
"MIT"
] | permissive | igemsoftware2020/ClusteRsy-Linkoping | 5f040e282dbd2b163cef7be3902060f271121081 | 7399466a2e11e27087ce531357708b983fb365ec | refs/heads/master | 2023-01-02T13:03:44.125587 | 2020-10-27T22:29:01 | 2020-10-27T22:29:01 | 264,438,493 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 575 | r | run_app.R | #' Run the Shiny Application
#'
#' @param ... A series of options to be used inside the app.
#'
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_app <- function(db = NULL,...){
if (is.null(db)){
db <- system.file("database", "igem.db", package = "ClusteRsy")
}
db <<- db
... |
c3f4aba2cd17ac530dabf21e7d3dab560c42a077 | f47188d23c3fb491b42d80dcc1d9b7cbca8f146d | /DTL.R | 6328927ea737413631fbf59c743a18fff5b4d2fe | [] | no_license | nistara/Pablo | cd848ff5581ffa3b1e7b9f48f62f0f6b86724498 | ef515a9f8728ace801af078907e4ef1ac81b3cc8 | refs/heads/master | 2021-01-20T15:54:40.365848 | 2017-05-08T20:32:16 | 2017-05-08T20:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 70,745 | r | DTL.R | #Add colClasses for these to specify the types.
matrix <- read.csv("matrix_to_D.csv" )
Farms <- read.csv("Farms_to_D.csv" )
#library(deSolve)
library(ggplot2)
library(dplyr)
library(plyr)
library(reshape2)
library(base)
library(MASS)
library(FME)
library(lhs)
library(zoo)
library(igraph)
library(EpiContactTrace)
li... |
51bbe52625b4cf40448e62824959bb9b36080500 | 5e15a024c441bc9d5ee39c26c4c8ddf174a79a88 | /man/source_bigquery.Rd | c07f4fde25aee97a7e2ec38941b2a4acddd15354 | [] | no_license | bsletten/bigrquery | 75007cd2efd3b9274ffea8d4d44937e9f52ff132 | 4e3d91d64bf543c3ebe59037c40a710f48775166 | refs/heads/master | 2021-01-21T00:36:55.145972 | 2013-08-14T19:15:33 | 2013-08-14T19:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,413 | rd | source_bigquery.Rd | \name{source_bigquery}
\alias{arrange.source_bigquery}
\alias{filter.source_bigquery}
\alias{mutate.source_bigquery}
\alias{select.source_bigquery}
\alias{source_bigquery}
\alias{summarise.source_bigquery}
\title{A bigquery data source.}
\usage{
source_bigquery(project, dataset, table,
billing = project)
\meth... |
88fbf7a00890e8104f25591d1ac06e0bb0b160d5 | 7552fbd72df5278b75a50ff23c717fc0f991fbf9 | /𝚙𝚕𝚘𝚝3.R | 552937a063846e94172754fc9d99e3be1da3a821 | [] | no_license | ldhandley/ExData_Plotting1 | ed86b3278c7707384ba17d054d3cdeccc6003385 | d2d99cb88de6d440348e09bb5fae6ab1c387ce50 | refs/heads/master | 2021-05-11T00:07:36.220558 | 2018-01-21T05:48:14 | 2018-01-21T05:48:14 | 118,297,962 | 0 | 0 | null | 2018-01-21T02:28:53 | 2018-01-21T02:28:53 | null | UTF-8 | R | false | false | 959 | r | 𝚙𝚕𝚘𝚝3.R | library(dplyr)
##LOAD DATA AND SUBSET
data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?")
day1 <- subset(data, (as.character(data$Date) == "1/2/2007"))
day2 <- subset(data, (as.character(data$Date) == "2/2/2007"))
twodaydata <- rbind(day1, day2)
##TRANSFORM DATE AND TIME -> D... |
9e907c86f0671363de0b09fd63ce8c2b8b4cc2fc | 0d35749c4c44b101afc124d26380574d650fec3a | /man/make_grattan_pal_discrete.Rd | 3e7171d98b1003f70108e43a556f9ec5356fda36 | [
"MIT"
] | permissive | MattCowgill/grattantheme | 3b27ce0488907d46dc52eff65622aef0235d4965 | 0b1dfac4e19a38c8894c0556cc1ebd3f1ee991de | refs/heads/master | 2023-01-09T16:58:04.454028 | 2022-12-29T22:15:58 | 2022-12-29T22:15:58 | 351,668,681 | 0 | 0 | NOASSERTION | 2021-03-26T05:08:54 | 2021-03-26T05:08:54 | null | UTF-8 | R | false | true | 684 | rd | make_grattan_pal_discrete.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grattan_pal.R
\name{make_grattan_pal_discrete}
\alias{make_grattan_pal_discrete}
\title{Create a grattan colour palette}
\usage{
make_grattan_pal_discrete(n)
}
\arguments{
\item{n}{how many colours to return}
}
\description{
This function tak... |
1064273cd1b2008ded9be0ca1dbe77db9bb1f758 | 87b9fdfeb907d47f378750675c89471473850ab9 | /man/Tab.Rd | 5793bc37a09fb6ab08c30b3c8123539d1562dcad | [] | no_license | ayotoasset/LongMemoryTS | d9a77e49a0be7f1f91e61f244c39c4ffc5bf5d53 | 0ffefadd5ed237fdfa8d3adc93b79661b5827aa4 | refs/heads/master | 2020-04-30T01:45:05.850873 | 2019-02-09T12:46:03 | 2019-02-09T12:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 519 | rd | Tab.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cointegrating_rank_estimation.R
\name{Tab}
\alias{Tab}
\title{Test for equality of two elements d_a and d_b of estimated d vector.
This function should not be called directly. It is called as a helper by T.rho.}
\usage{
Tab(d.hat, G.est, m1,... |
169c5dcc5d9238d95ddc846edceadeacb273bbf2 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googlecivicinfov2.auto/man/Office.Rd | 293787bd8eeaa1877a1bb91db33783e17a6b583b | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 889 | rd | Office.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/civicinfo_objects.R
\name{Office}
\alias{Office}
\title{Office Object}
\usage{
Office(divisionId = NULL, levels = NULL, name = NULL,
officialIndices = NULL, roles = NULL, sources = NULL)
}
\arguments{
\item{divisionId}{The OCD ID of the div... |
060afbc13987a7d76e376a0f2344b73d670c5199 | c56cb5069a959a5e4d555c4eae307ac73198add9 | /man/design.cyclic.Rd | 6231adf68126c60fd6edc302e73e7fdd334fd1ec | [] | no_license | cran/agricolae | f7b6864aa681ed1304a07405392b73c2182f8950 | cad9b43db1fcd0f528fe60b8a416d65767c74607 | refs/heads/master | 2023-07-26T22:33:36.776659 | 2023-06-30T20:30:06 | 2023-06-30T20:30:06 | 17,694,321 | 7 | 9 | null | 2015-12-31T20:15:37 | 2014-03-13T03:53:58 | R | UTF-8 | R | false | false | 1,961 | rd | design.cyclic.Rd | \name{design.cyclic}
\alias{design.cyclic}
\title{ Cyclic designs }
\description{
The cyclic design is a incomplete blocks designs, it is generated from
a incomplete block initial of the size k, the plan is generated and
randomized. The efficient and robust cyclic designs for 6 to 30 treatments,
rep... |
d72176baafc6e9ec3305150b26e5f806fb81988c | 0944064ca4edcce0132789f5fe1464e3a14dc069 | /cachematrix.R | 97b59814e3246d4e44f7653d1f721ba63bec5f3e | [] | no_license | soorajviraat/ProgrammingAssignment2 | 0c61cd6524736fb47d82ee93bde181f66c72f880 | 4bee308e083f03ef64e7642df710954199a3aa9a | refs/heads/master | 2021-01-17T21:55:41.375325 | 2016-01-26T10:51:32 | 2016-01-26T10:51:32 | 50,215,416 | 0 | 0 | null | 2016-01-23T00:09:06 | 2016-01-23T00:09:05 | null | UTF-8 | R | false | false | 1,048 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix creates a vector of functions that
## gets and sets the value of the matrix,
## gets and sets the value of the inverse
## Call it in a matrix that we will store
makeCacheMatrix <- function(x = matrix()) {
inv... |
8a7125bd6ddf2374cc1e38c5d10322aaa9f9d692 | cc646c432a28fe246ae2cdea8ece6afa7f0b3723 | /R/get_bench.r | 4f48f4f6094510845a0fafb8129e33d316b85149 | [] | no_license | propellerpdx/bambooR | 17ab2bf1c21b4a4285fdbbf4a4572e5d590de3b6 | b97586679d603e37babd2755a80328ef984a6268 | refs/heads/master | 2023-06-23T03:30:51.203103 | 2023-06-15T22:19:01 | 2023-06-15T22:19:01 | 160,996,612 | 0 | 2 | null | 2020-08-03T15:33:16 | 2018-12-09T02:21:50 | R | UTF-8 | R | false | false | 3,074 | r | get_bench.r | #' Bamboo API get request wrapper
#'
#' Submits a get request to retrieve the custom bench table for all employees
#'
#' @param user Bamboo api user id, register in Bamboo "API Keys"
#' @param password Bamboo login password
#' @param employee_ids an optional list; specifies the employees for which bench
#' time is re... |
12f1c98152b1b836ca340a8101c4c27227bb863e | 9bd1486e9e0de0159cd21df9534a9f7ed220f398 | /run_analysis.R | d25368c21c8bc31370ac4081b2175cb800a958ed | [] | no_license | andrew7brown/Coursera-Getting-and-Cleaning-Wk4 | 4864539e3c724268bbcf2694fd2b5f721664176d | 90602f1fee6121793f717a76c04d94433d339544 | refs/heads/master | 2020-03-11T01:00:39.144662 | 2018-04-16T04:34:07 | 2018-04-16T04:34:07 | 129,678,565 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,725 | r | run_analysis.R | library(dplyr)
# reading data from UCI HAR Dataset
# First test data
xtest <- read.table("./UCI HAR Dataset/test/X_test.txt")
ytest <- read.table("./UCI HAR Dataset/test/Y_test.txt")
subjecttest <- read.table("./UCI HAR Dataset/test/subject_test.txt")
# Second train data
xtrain <- read.table("./UCI HAR Dataset/train... |
cc27979ea4708e0e1f050cd5c59f84c5b854b7da | 29585dff702209dd446c0ab52ceea046c58e384e | /kernDeepStackNet/tests/KDSNfineTuneTests.R | d6f266a7ae5b2f0f8842dc200eda0865328df95e | [] | 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,591 | r | KDSNfineTuneTests.R | library(caret)
library(kernDeepStackNet)
# Construct test cases with linear model
set.seed(0)
treeTestInd <- createDataPartition(y=trees$Volume, p = 0.8, list = TRUE, times=10)
# Fit linear model
err <- vector("numeric", 10)
for(i in 1:10) {
lmPart <- lm(Volume~Height+Girth, data=trees[treeTestInd[[i]], ]... |
79415a2bfc9e9899a94e82b87cdc5625da2b983f | 091518481f7e2d022c98ea16a45eb3491953671e | /R/getDetailedWeatherData.R | b17078b270bfbfed0c7602ba74afb0ecf19532d4 | [
"MIT"
] | permissive | stevenjoelbrey/SmokeInTheCity | 87625532edf1721a7deb5ab183d159b44d964e36 | 481a4d2b70fe380e14fe75e8e4fdecbf6b41001f | refs/heads/master | 2021-01-10T03:28:58.049008 | 2017-01-24T18:48:40 | 2017-01-24T18:48:40 | 50,605,479 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 6,673 | r | getDetailedWeatherData.R |
source("R/getWeatherData.R")
################################################################################
# function takes daily weather conditions and determines the ozone
# relevent weather type for a given monitors time series
################################################################################
d... |
b1df2607e85e6fd76876ae10d98bcdad4329bf8a | 6c476d63f50b62a226667e6f7128f4ecab2cc657 | /R/RobustRegression.R | 2465b4358750f7dccbbaa4e26b1389dd504ee04d | [] | no_license | guhjy/RobustRegression | 5f9e317b18413543b0a91fa45e90828ce818fc38 | 069d1e54c46303cce0320d16cc709ba4c017ed3c | refs/heads/master | 2021-06-10T11:49:53.556288 | 2017-01-25T22:03:51 | 2017-01-25T22:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,084 | r | RobustRegression.R | #' Runs robust regression
#'
#' \code{RobustRegression} runs a robust regression with
#' heteroskedastic robust standard errors
#' @param model a linear regression object of the form lm(a ~ b)
#' @param dat the data frame object used in the linear regression model
#' @param cluster_var a character indicating variables ... |
710ae1c01e57c18b5d8d029c862a0c86bb34d035 | 9096176d4a3a6305e08250fa1a7c9b5c2930f20f | /scripts/burkina.R | fdc95cead92a40d33fe937b0c2f8a239a2ae6618 | [] | no_license | cg0lden/subnational_distributions_BFA | 6c9ad7ff1be1ce39a34a6e60724ae3a659c54364 | 4a8e3fb69691ee9b85be3ab9a064df5dc998bd30 | refs/heads/master | 2023-05-05T11:33:42.087553 | 2021-05-25T19:39:35 | 2021-05-25T19:39:35 | 300,038,711 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,045 | r | burkina.R | # Clean burkina data for spade
library(tidyverse)
library(haven)
library(here)
library(janitor)
# Load the burkina data from the Stata file (coded with the food groups)
burkina <- read_dta(here( "data", "raw", "Burkina", "Burkina_omega.dta")) %>%
clean_names() %>%
select(id_subj, sample_weight, age_mother, ag... |
332f099221369fa35a5306f1c052aa03aaa39bdb | f70307f5abfd6d2cb7075d61e41bfdb242fde4eb | /run_analysis.R | 802084f2ea02cb81b8b4e6ae3e218900b66ae6ab | [] | no_license | yyzzll/getdata_project | ba3e06dc68bf320ed648186f7ee008f34e49483a | c355543c2af0f56484a81915643e735cdd2c31e3 | refs/heads/master | 2021-01-18T16:36:49.752947 | 2014-12-18T18:27:15 | 2014-12-18T18:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,488 | r | run_analysis.R |
##############################
#STEP 0 Preparation
############################
##set working directory
setwd("E:/temporary/coursera_videos/John Hopkins Data Science specialization/003 getting and cleaning data-v-ongoing/course project")
##verify working directory
getwd()
###download and extract zip files from the c... |
2e024c6d2795e6d9d8bdbcce3e63c0fdebd0395a | c81ff5da3b2645e7d8a19671703042c7b4c45455 | /tests/a.R | eb0ea6d90b7ba7fd3e4d4f482939bf8cae526a7b | [] | no_license | apoliakov/SciDBR | f4a193dc661bc5bf98e0dd3419091801cc5ecae2 | 2fb508ee32bb61aee24883f52143ac4fb8864d7c | refs/heads/master | 2021-01-13T06:38:36.283935 | 2017-03-30T22:24:54 | 2017-03-30T22:24:54 | 78,246,920 | 0 | 0 | null | 2017-03-30T22:24:54 | 2017-01-06T23:37:08 | R | UTF-8 | R | false | false | 2,421 | r | a.R | check = function(a, b)
{
print(match.call())
stopifnot(all.equal(a, b, check.attributes=FALSE, check.names=FALSE))
}
library("scidb")
host = Sys.getenv("SCIDB_TEST_HOST")
if (nchar(host) > 0)
{
db = scidbconnect(host)
# 1 Data movement tests
# upload data frame
x = as.scidb(db, iris)
a = schema(x, "attrib... |
a07c2a2b5755ea570b87ddca51b4c913809ffa0b | e0e807bc9a20bc37cca0a542d90b0cd7b30044e5 | /Club de lectura 2021/Clubdelectura_sesion 3.R | cee52ed721984dbdd82540864812d7c15384a0cf | [] | no_license | alexisrangelcalvo/meetup-presentations_barranquilla | de00741109b54c541a73b68196251d30b2332b38 | 2de764857c6940fe4cc5df70d1950ea60b65e8e5 | refs/heads/master | 2023-08-16T21:49:09.005970 | 2021-09-30T17:17:13 | 2021-09-30T17:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,094 | r | Clubdelectura_sesion 3.R | # Club de lectura
# Sesion 1 - Capitulo 19
# "R for Data Science" de Hadley Wickham y Garrett Grolemund
#Organiza: R-Ladies Galapagos, R-Ladies Barranquilla, R-Ladies Milagro, R-Ladies Guayaquil
# Expositora: Isabel Vasquez Alvarez (R-Ladies Barra... |
fc4c1789ec1fce54cbf39bbcc5476188c8951b6f | 3269b421d5d9f87d42cadbf515bdab47f3307890 | /man/trainSupv.Rd | f769e929d576d27c50dfd9bcdaae0d88b09dd199 | [] | no_license | cran/RecordLinkage | b544f1ddfe31a62d1900c8e81643ac266d52893a | b32452149857b15849e9c82fb81e812df6e921fc | refs/heads/master | 2023-04-09T12:36:45.116990 | 2022-11-08T13:10:15 | 2022-11-08T13:10:15 | 17,693,280 | 6 | 16 | null | 2020-04-21T13:09:49 | 2014-03-13T03:28:30 | C | UTF-8 | R | false | false | 4,414 | rd | trainSupv.Rd | \name{trainSupv}
\alias{trainSupv}
\title{Train a Classifier}
\description{
Trains a classifier for supervised classification of record pairs.
}
\usage{
trainSupv(rpairs, method, use.pred = FALSE, omit.possible = TRUE,
convert.na = TRUE, include.data = FALSE, ...)
}
\arguments{
\item{rpairs}{Object of class \c... |
1cb2c682e295101f9ec8a95719ab248b65d13362 | 03f2e7c67dfde0131c241e71f847e25f10dba1c6 | /man/hmHClust.Rd | 23b46a4fd4552cb08d7f9d0ee920fc526354c8a7 | [
"MIT"
] | permissive | jacobkimmel/hmR | 6e6384b3e8795b326b2cf287c1e189f409bfdb83 | 71bc2ceb3c980c014dfa82f1a024855efb6ea702 | refs/heads/master | 2020-03-11T06:09:58.676935 | 2020-01-05T00:24:28 | 2020-01-05T00:24:28 | 129,823,056 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 866 | rd | hmHClust.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hm_data.R
\name{hmHClust}
\alias{hmHClust}
\title{Performs hierarchical clustering and sets `meta.data$clust` in `hm`}
\usage{
hmHClust(hm, k = 2, linkage = "ward.D2", dist_method = "euclidean",
scalar = "data")
}
\arguments{
\item{hm}{: `h... |
808e69b62f0b8a0308208c38927424eb4a2cb8b1 | bc7c4ea7e7c8c70e3bbac2e4fd8fbcb8863fe055 | /plot4.R | 068f3ce0e5876774aa14eb9a47144af2528ea57b | [] | no_license | chrisbob12/ExData_Plotting1 | fed2396a7fba818b171a928a650a215473f24eea | 86c8712c96d85c642dafb6b0775f6a53f97e024b | refs/heads/master | 2021-01-18T05:47:10.510007 | 2015-01-11T00:55:22 | 2015-01-11T00:55:22 | 24,867,893 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,097 | r | plot4.R | ## this section downloads the data files from the web source
## unzips the data file and puts it in a subfolder called "NEI data"
## check to see if data folder has been created
if(!file.exists("NEI data")){
dir.create("NEI data")
}
URL <- "http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consum... |
81f5caba349de339badbfa4ebe6c522871eb69a0 | 86d8bea37018403148fe417644202dbac06a4c15 | /man/get.matchedsets.Rd | b5586f1b53ee50aa31b0c7e3f1ebbb8d96ac6af1 | [] | no_license | insongkim/PanelMatch | a8872cf283a360d845cc1331bc33b6d655525a01 | 6ff6a3cf5af105100b951a835fd478a3f73f280e | refs/heads/master | 2023-09-03T23:32:54.654820 | 2022-06-06T01:40:31 | 2022-06-06T01:40:31 | 124,099,147 | 96 | 34 | null | 2023-04-11T21:02:14 | 2018-03-06T15:33:56 | R | UTF-8 | R | false | true | 2,704 | rd | get.matchedsets.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matched_set_R.r
\name{get.matchedsets}
\alias{get.matchedsets}
\title{get.matchedsets}
\usage{
get.matchedsets(
t,
id,
data,
L,
t.column,
id.column,
treatedvar,
hasbeensorted = FALSE,
match.on.missingness = TRUE,
matching ... |
5e445140f983c5ce46ec0a32a9b8b58a17337ff5 | 2ba18c32e93ec1313f00776a6036ac197aa9d471 | /Level1/library/PerformDatabaseOperations.R | e4a7457958b5f436d4bde2084d40b2f580554714 | [] | no_license | accomer/Data-Quality-Analysis | 19ca44927718358ca857937d897deb0102cf0472 | 3b4dc46d60ca922aafcb52aaf521d5d1aef0dff5 | refs/heads/master | 2021-06-28T02:29:27.232166 | 2017-09-11T16:54:23 | 2017-09-11T16:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,229 | r | PerformDatabaseOperations.R | establish_database_connection<-function(config)
{
#initialize database connection parameters
driver <- config$db$driver;
# load the appropriate DB library
switch(driver,
PostgreSQL = library(RPostgreSQL),
Oracle = library(ROracle),
MySQL = library(RMySQL),
... |
975a7d375d6ad4b0661a3ce6bab6b20cc4ab3660 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/shadow/examples/shadowFootprint.Rd.R | c55d515d70c444c7f66f3bb1bd55678f0fb795f0 | [] | 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 | 863 | r | shadowFootprint.Rd.R | library(shadow)
### Name: shadowFootprint
### Title: Shadow footprint on the ground
### Aliases: shadowFootprint
### shadowFootprint,SpatialPolygonsDataFrame-method
### ** Examples
location = rgeos::gCentroid(build)
time = as.POSIXct("2004-12-24 13:30:00", tz = "Asia/Jerusalem")
solar_pos = maptools::solarpos(
... |
078dc607d83bc5d59ed504c5afa1622ee35b9be5 | 625c4159be5b9b4cc2d57f438228b5424423e38a | /R/piece.R | c749891b91fe8eea0559b73106ce248398ce56f8 | [] | no_license | tintinthong/chessR | e6d936e6cd51b2159a9d28c8b6683602367fd7bb | 60f8e254f30e1cce77d177a558ae26467144841a | refs/heads/master | 2020-04-20T21:52:30.082501 | 2019-02-08T06:32:01 | 2019-02-08T06:32:01 | 169,121,594 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 241 | r | piece.R | #
# piece <- setClass(
#
# "pawn",
#
# slots = c(
# colour="character"
# ),
#
# prototype=list(
# colour="white"
# )
# )
#
# setValidity("piece",
# function(object){
# NULL
# }
# )
#
#
# #,
# #contains="game"
|
6ee077f756fcefc11614b6a52785a4f430158410 | 053f4568fbcf754a01b083ed264803a606ced7fc | /07-R-Tutorials/R-Kush/Case Studies/Internet Poll/AnonymityPoll.R | 371fdea48093396b7887e2c6645d58c51ecfbc8d | [] | no_license | akiran1234/analyst-project | 0a3a1b713a8e170aca8e379f3274fcf89d1504b2 | b9adb769316139401aba99e3916f4a92d0f89b31 | refs/heads/master | 2020-04-10T20:53:11.438022 | 2019-01-14T06:20:24 | 2019-01-14T06:20:24 | 161,280,906 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,863 | r | AnonymityPoll.R | getwd()
#Problem 1.1 - Loading and Summarizing the Dataset
poll=read.csv("https://storage.googleapis.com/dimensionless/Analytics/AnonymityPoll.csv")
str(poll)
summary(poll)
#How many people participated in the poll?
#Ans:- 1002
# Problem 1.2 - Loading and Summarizing the Dataset
#How many interviewees responded that th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.