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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93ea88f5a3b86e5233956d332e1573832175fb2e | dc91ac28c59fb0b32dcc37b7eb9ad0793a3ad477 | /man/linegraph.Rd | 69588f014debb13f01b963863ac8d3d307660923 | [] | no_license | cran/RnavGraph | 8b28b07c627898a52400614006aadb99ded99c7c | 9fabc38aa5aa107a4b4f4e1aa8e16df12a8bb7f8 | refs/heads/master | 2021-01-25T06:05:38.377635 | 2014-10-21T00:00:00 | 2014-10-21T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,203 | rd | linegraph.Rd | \name{linegraph}
\alias{linegraph}
\title{Linegraph of a graph}
\description{
(From Wikipedia) The line graph L(G) of an undirected graph G is another graph L(G) that represents the adjacencies between edges of G. By definition, each vertex of L(G) represents an edge of G, and two vertices of L(G) are adjacent if a... |
0fb0dc904cb2d5b1b7182270f5213d444aedeb90 | 282883571acb7e92e3c82034f1ddc61e1ca74b9a | /R/make_monthly_stack.R | 50d0f36231d0114cc9a7ff129d7e274588f01048 | [] | no_license | Tomhigg/TamsatTools | 69f767a9b7d5271ce2859a0afd154b22d4914b50 | 6a8e8cc17bf6b138d3b075f72e1fce95d826faed | refs/heads/master | 2021-01-13T15:12:09.246735 | 2017-02-07T12:31:40 | 2017-02-07T12:31:40 | 76,252,562 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,253 | r | make_monthly_stack.R | #' Make complete one-month time step raster time series
#'
#' Read and stack raster layers, fill missing months with predefined averages, will crop to extent of fill_with
#'
#' @param download_folder Folder containing the downloaded monthly estimate from tamsat_download_all()
#' @param fill_with raster brick output fro... |
b38faef17cf4dc3a8d3276b3c34bf94e0060a824 | 208ee466968b34e689f6803ca5fdf26ddae15a78 | /man/rpaired.contaminated.Rd | 5d1843d1d8e9c4aad8480e9e8cb802c5c7f2b965 | [] | no_license | cran/PairedData | 3a95b91071e7dd31a74171cedcbda9251889d715 | 7076f81a19dde00a613727ea2a6f7679b782f9eb | refs/heads/master | 2020-05-16T17:05:29.893811 | 2018-06-02T21:57:15 | 2018-06-02T21:57:15 | 17,681,475 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,128 | rd | rpaired.contaminated.Rd | \name{rpaired.contaminated}
\alias{rpaired.contaminated}
\title{Simulate paired samples}
\description{
Simulate paired data with a given correlation (Kendall's tau=(2/pi)arcsine(r)) and
marginals being contaminated normal distributions: (1-eps)*F(x)+eps*F(x/K) where F is the cumulative standard normal distribut... |
d30c8e8278254bc2df70629ecd1f25c27228a2a1 | 9cf19f034db895c65f258f76da35cc4e5a9d5076 | /percrptron/perceptron.R | 81d5a89dd6eb51fdef534ae09b4ab55639f9b769 | [] | no_license | kurobaneHITOMI/exercise-in-university | 454d918cb7c25ede3acba4f176b5ae2370d121dc | c7872a75a43144ecb5d65a04d75be61924b9c2c4 | refs/heads/master | 2020-03-13T04:50:18.617439 | 2018-07-13T16:17:26 | 2018-07-13T16:17:26 | 130,970,878 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,149 | r | perceptron.R | ld <- cbind(c(0.8293776,1.5344731,-2.2012117,-2.8104603),c(0.02410215,2.16452123,-0.93192121,2.83918785))
iris.data <- as.matrix(subset(iris,select=c(1:4)))
iris.data <- iris.data%*%ld
iris.data <- cbind(iris.data,c(rep(-1,50),rep(1,100)))
colnames(iris.data) <- c("LD1","LD2","Species")
iris.data = iris.data[sam... |
1c924ff390f2c93bfe19baebdb7e244a54442256 | 686800c5ddb65505335f30ded6fcf96a6afe66e2 | /R/Survdiff.R | d0385f5f20837eb48863e69bfa4e823d34a7df86 | [] | no_license | cran/RcmdrPlugin.survival | 2b9e889c64e788a4fb0e6bb96b89293d0c8b7bbd | 86f846e93563d94ceb23c89ac08eb8ae129f92a4 | refs/heads/master | 2022-09-25T09:24:11.554730 | 2022-09-20T16:00:02 | 2022-09-20T16:00:02 | 17,693,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,873 | r | Survdiff.R | # last modified 2011-08-03 by J. Fox
Survdiff <- function(){
# require(survival)
defaults <- list(time1=NULL, event=NULL, strata=NULL, rho="0", subset=NULL)
dialog.values <- getDialog("Survdiff", defaults)
if (!activeDataSetP()) return()
currentModel <- FALSE
initializeDialog(title=gettext("Compare Survival Func... |
7b33001ad2602e54a5450bbe7a1391de17dfa4b2 | b8d865f013c357dcef54e16168b08441f282c5f7 | /R/svydbrepdesign.R | e89765600dcd4fec5c77c050f9aa3c8812b2bd9d | [] | no_license | anhnguyendepocen/svydb | e8289dcf8879780dd6fa69628bdc018e8077a86d | 06dc1a1fe42c0b4d030c6430316f46ab6226b49a | refs/heads/master | 2022-02-24T16:25:54.908700 | 2019-10-05T05:17:41 | 2019-10-05T05:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,648 | r | svydbrepdesign.R | makesvydbrepdesign <- R6Class("svydb.repdesign",
public = list(
dataOg = NULL,
data = NULL,
vars = NULL,
st = NULL,
id = NULL,
... |
73c0f5e66a654c08a8023e713d272502dc2d85b1 | a364ac971591832545bd083de5f0054ec538b932 | /man/find_series.Rd | f1fce4f9064e0e99c7e10ba15c96a94e944bd430 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | randall-romero/bccr-r | 9bd4d5f5119ecbde91d1cd7c7d4a7f99804a4466 | 3dad451c9842ab3adc3eb88096c26aad24d6f75b | refs/heads/master | 2021-05-31T10:33:04.737104 | 2016-05-07T01:03:11 | 2016-05-07T01:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 441 | rd | find_series.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import_data.R
\name{find_series}
\alias{find_series}
\title{Find indicators by name}
\usage{
find_series(name)
}
\arguments{
\item{name}{A string text with part of the indicator name}
}
\value{
A data.frame with indicators whose names match t... |
bcfa6cad7e65ff34dc3a7cc8c8c6b157abce8e29 | efc2cda5525312640065de5c8cd53b208342cbf8 | /R/geospatial.R | eee2343f41e03d6fbafb1dde3b974bf59e10f4e2 | [
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MLBartley/nabatr | 68ad577f57d6d37adc2965fd099693df4ba092ee | c805012e54081ba45497e294863d4a5f26aaa7bd | refs/heads/master | 2023-04-20T22:11:14.092346 | 2021-04-07T14:40:48 | 2021-04-07T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,916 | r | geospatial.R | #############################################################################
# _ _____ ____ __ ____
# / | / / | / __ )____ _/ /_/ __ \
# / |/ / /| | / __ / __ `/ __/ /_/ /
# / /| / ___ |/ /_/ / /_/ / /_/ _, _/
# /_/ |_/_/ |_/_____/\__,_/\__/_/ |_|
#
# R Tools for accessing and manipulatin... |
3c1ebfa7bc311bdfae485435f695f515cbe69d60 | bc9b42cd4cb22cd3eccd5d27838f48fec54f9d1e | /Rcode/WaveMarkovCheck.R | 432bcef7091bda0ff382144c1bff53761a924856 | [] | no_license | mbh038/Waves | 61dd0a0a3334dae6314899fa1d6c08b58ca0411c | ec829db267f17bf2477748be3cd7cad2fef54287 | refs/heads/master | 2021-01-19T03:59:46.710943 | 2017-05-24T15:25:08 | 2017-05-24T15:25:08 | 84,421,038 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,654 | r | WaveMarkovCheck.R | ## Wave Markov
library(dplyr)
##Get example real data
## read in tidy data
path<-"../data/cleaned/wave/"
filehandle<-"wave001.csv"
fullname<-paste0(path,filehandle)
data<-read.csv(fullname,stringsAsFactors=FALSE,sep=",")
#rename columns
colnames(data)<-c("date","time","SWH","wavePeriod")
# convert time to POSIXct
tim... |
a6c799c6c75b2a19adb600cdaa4dfcefb383bf87 | a69681cb68a5edb6195e6a3f219efa529d05b533 | /Cálculo das Probabilidades/distribuicoes_de_probabilidade_discretas_bernoulli_binomial.R | 0341a49df0064217676699cfd0e48f364f76a86d | [] | no_license | brunatoloti/estatistica | 1cb7735a7bc109d9ef0a008654c4957980f34cec | c33ff474cf9c7336bed527675e42c9b2d457e531 | refs/heads/main | 2023-04-02T13:01:37.858983 | 2021-04-17T13:06:04 | 2021-04-17T13:06:04 | 332,253,350 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,204 | r | distribuicoes_de_probabilidade_discretas_bernoulli_binomial.R | #Distribuições de Probabilidade Discretas - Bernoulli e Binomial
#Exemplo Bernoulli
#Suponha que X="O aluno acertar uma questão na prova", sendo que a prova só tem uma questão, contendo certo ou errado.
#Portanto, podemos entender que o aluno tem uma resposta favorável em duas possíveis, ou seja, 50% de chance de... |
f76b07f4b02140cbbae1844cba5cb78e31e44318 | c892b24af15e4ca31a72137b3c9ab1db056dfdcc | /man/dist_mat.Rd | 1fd33184750c4447326c05a2f779f1641fe18b48 | [] | no_license | melimore86/nestR | 4ac72ca0856aac03cfa5117aaf66fbfe23ee25c4 | 51b094927fbca2b63e357bb71c9d35501c3af835 | refs/heads/master | 2020-08-05T03:59:57.996812 | 2019-08-20T15:58:16 | 2019-08-20T15:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 812 | rd | dist_mat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial_funs.R
\name{dist_mat}
\alias{dist_mat}
\title{Calculate distance matrix between points in the data}
\usage{
dist_mat(dat)
}
\arguments{
\item{dat}{\code{data.frame} of movement data for a single burst. Needs to
include burst, date, l... |
cb5af07ce49765db9e204cf85ca1e330898ace7b | 75c141688ae9c52cfe302ff04a00f0f89b89e3a1 | /R/V2_T2.5.R | d1fb82026e8284fd03d3afcc5753f53980806df2 | [
"MIT"
] | permissive | johnmutiso/rKenyaCensus | 84e9e6c90a1892b05910a27001a1b12dc3320dba | e0d2242edd63df6f9e9d9c3b34b389d1f8f993a3 | refs/heads/master | 2022-04-23T03:04:18.114831 | 2020-04-25T13:26:46 | 2020-04-25T13:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 442 | r | V2_T2.5.R | #' Volume 2: Table 2.5
#'
#'Distribution of Population by Urban Centres, Sex* and County
#' @docType data
#'
#' @usage data(V2_T2.5)
#'
#' @format A data frame with 13 variables:
#' \describe{
#' \item{\code{Urban Center}}{Urban Center}
#' \item{\code{County}}{County}
#' \item{\code{Total}}{Total number of individuals}... |
35e49f48d701b90603bca90c5899ea2d6263778d | 2bf497fe5f5d1e5baaba86d7934885106c6c6554 | /Scripts/topGOEnrichment.R | d594e349e7deb54f7aada2ddd619f1326a436830 | [] | no_license | ericfournier2/EMAP | 25b33cc001f6f5cb96e5009c879729d295ee7251 | 3bcfe1adbf1c7f618332856016362c89d4b72210 | refs/heads/master | 2022-09-30T20:14:33.518223 | 2020-06-04T18:42:35 | 2020-06-04T18:42:35 | 269,433,749 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,973 | r | topGOEnrichment.R | # Functions used to perform GO enrichment using the topGO library.
library(GO.db)
library(topGO)
probe2goEpi <- readMappings(file.path(annotationFolder, "GO_Filtered.map"))
probe2goTrans <- readMappings(file.path(speciesFolder, "probe2go.map"))
epiSymbols <- read.table(file.path(annotationFolder, "ProbeSymbol.mapping... |
e6a48f148ebc1dc151a7d51a8890b65e4cd42646 | c52872637e281477f9a2916037e677594138df2f | /Model202003-Blog/code/load_cbr_icr_data.R | d3cccf0da6248f66390b8e38c85af552ae954fc7 | [] | no_license | scox3/RUBUSD | 1dacd237b836048d52cff60063171f10a0c9ad01 | ce23ec6e5f6f4e74658a4667428ceccdfbb4ed58 | refs/heads/master | 2022-08-29T08:26:54.506690 | 2020-05-26T15:41:51 | 2020-05-26T15:41:51 | 265,825,949 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,026 | r | load_cbr_icr_data.R |
make_rus_colnames <- function( v1 ) {
v2 <- stri_trans_general(v1, "Russian-Latin/BGN")
v2 <- str_replace_all( v2, "[[:cntrl:]]", " ")
v2 <- str_replace_all(v2, "[^[:alnum:]]", " ")
v2 <- iconv(v2, "latin1", "ASCII", sub="_")
return(v2)
}
data_folder = "Data/"
get_cbr_CR_table <- function() {
###Grab C... |
de8c938fb5d339f8a847179b1bfda2172c0b4ce9 | 5c551b43a32451d14254c5ccffef277a246d2709 | /Week4/Code/rodents.R | 79c97ce3ea31f009ff1833b48f45d6c434a78ccb | [
"Apache-2.0"
] | permissive | ph-u/CMEE_ph-u | 8e20a2b1269dc21a860a5827dbd1d84e03340dd3 | 8d52d4dcc3a643da7d55874e350c18f3bf377138 | refs/heads/master | 2023-01-22T07:29:46.118897 | 2020-12-02T10:31:51 | 2020-12-02T10:31:51 | 212,303,395 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,249 | r | rodents.R | #!/bin/env Rscript
# Author: ph-u
# Script: rodents.R
# Desc: data analysis of rodent dataset
# Input: none -- run in R console line-by-line
# Output: R terminal output
# Arguments: 0
# Date: Oct 2019
## lib
library(car)
library(PMCMR)
library(dplyr)
{## data-scanning
oo<-read.csv("../Data/rodents.csv", header = T... |
62c33b93e1598808bc575a44b2e567e5fef9ea21 | 41138fdeb7ad88ff3f6977d0c34e43cc9de0b096 | /R/plot.statcheck.R | 65a64c0a8cc16895bd8fde3bd5261a0fdf550f9d | [] | no_license | cran/statcheck | ec0c27682e12ec21b1d2c567787a783ca89fb0c1 | 9989710949d3fbb8237aacc5a8c5e85b16773dca | refs/heads/master | 2023-01-25T04:22:21.640588 | 2023-01-23T12:30:02 | 2023-01-23T12:30:02 | 26,909,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,792 | r | plot.statcheck.R | #' Plot method for statcheck
#'
#' Function for plotting of \code{statcheck} objects. Reported p values are
#' plotted against recalculated p values, which allows the user to easily spot
#' if articles contain miscalculations of statistical results.
#'
#' If APAstyle = FALSE, inconsistencies between the repor... |
90cdb24504a675b1292565bf3989a241fecb5924 | 24d4b46bf87a1f49adb3af46f58c8d6c6fc7dcf7 | /scripts/plotter_stacked_bar.R | 1d8ca0f354d5c3192ba486060682e9574a98e08d | [] | no_license | SunnyYShao/plotter | a0c17b60b6f3db6f413500d82f58edcf1d354493 | d7865577b7d1f8ff1287fbf1f572962f85f313d3 | refs/heads/master | 2022-12-02T17:29:14.993101 | 2020-08-13T19:23:05 | 2020-08-13T19:23:05 | 169,467,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,345 | r | plotter_stacked_bar.R | # plotter stacked bar -----------------------------------------------------
#percent
plotter_stacked_pct <- function(data, color_type, style_function, logo_image_path, label_color, label_size, subtitle, footnote, directory, file_name){
title <- data[1,4]
plot <- data %>%
ggplot(aes(x = reorder(group, key_orde... |
6b4a04e74ed3590949055c2c988d9144d544f626 | 923876b86f83b74cf3f5c472e05ee05b41354b79 | /cvičení 6/skript5.R | b8f12a9d4e3fb0d76b8c3a440d65511bfd2a7551 | [] | no_license | dreryos/biostatistika | afa3bbda36c17c940b3effcefc64b639c7d4d017 | a744a900bbbae7305298d4d54b7d6e7000f68954 | refs/heads/master | 2023-04-29T20:33:07.387834 | 2021-05-17T11:40:57 | 2021-05-17T11:40:57 | 343,724,723 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,401 | r | skript5.R | #přesměrujte se do složky biostat
setwd("C:/biostat")
#nebo file-change dir
#vyzkoušejte, kde pracujete teď
getwd()
#spustte Rcommander
library(Rcmdr)
#vyvolejte skript jménem skript5.R
file-open script file
#Načtěte data Kojení
data(Kojeni)
#pokud jsou jinde, použijeme celou adresu souboru
load("C:/home/monika/přf... |
7454604dfc293fd2d8e1e75c30aba6637ea1fcf7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/soundecology/examples/sound_raster.Rd.R | ca10e60ce2dabd3c77413f53dee86c288e7a8cde | [] | 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 | 394 | r | sound_raster.Rd.R | library(soundecology)
### Name: sound_raster
### Title: ASCII raster from sound file
### Aliases: sound_raster
### Keywords: soundecology sound_raster
### ** Examples
## Not run:
##D sound_raster(wavfile = "file1.wav")
##D
##D sound_raster(wav_directory = "/home/user/wavdirectory")
##D
##D sound_raster(wav_direc... |
b7cf0fab06a982e63091d718114d7d80ead6951f | 8847282f697f1bf9da75feabe758307b72712e54 | /dataAnalysisCodes/watchERP/02-ter-p3Classification/createDataFrameCount.R | fffe50bd24e21d4c7b733011f4abd35ce04ab44d | [] | no_license | adriencombaz/HybBciCode | a17b48a8a01fcf76e8c22d00732b8ceb1e642dce | 755432a2a06c2abe2eb5adbca33d1348bcf9ac68 | refs/heads/master | 2020-05-19T17:49:50.102762 | 2013-10-02T13:54:34 | 2013-10-02T13:54:34 | 6,388,055 | 2 | 1 | null | 2016-01-20T10:42:13 | 2012-10-25T13:57:07 | Matlab | UTF-8 | R | false | false | 5,167 | r | createDataFrameCount.R | setwd("d:/KULeuven/PhD/Work/Hybrid-BCI/HybBciCode/dataAnalysisCodes/watchERP/02-ter-p3Classification/")
rm(list = ls())
source("createDataFrame.R")
source("cleanPlot.R")
#################################################################################################################
allSubs <- levels(accData$subje... |
d5dcbaef604fe821f2975bc7d862290b97e767ae | 2fd6208ee163b1f959d9960c7fad4c64da96d649 | /tests/testthat/test-bold_identify.R | f3ac4870ac092347c1cf2412c9b2cbc425fe0cc3 | [
"MIT"
] | permissive | ropensci/bold | c1d661c27e8a44e5ec5f8b123e9d8b8ab3b25fd0 | dc46f3be5f0dc5404e9288a9836739d12d127207 | refs/heads/master | 2023-07-22T16:04:23.257812 | 2023-06-13T16:19:44 | 2023-06-13T16:19:44 | 1,950,836 | 17 | 16 | NOASSERTION | 2023-09-08T19:49:36 | 2011-06-25T03:23:46 | R | UTF-8 | R | false | false | 2,485 | r | test-bold_identify.R | context("bold_identify")
test_that("bold_identify returns the correct object", {
skip_on_cran()
vcr::use_cassette("bold_identify", {
test <- bold_identify(sequences = sequences$seq1)
})
expect_is(test, 'list')
expect_is(test[[1]], 'data.frame')
expect_is(test[[1]]$ID, 'character')
})
test_that("bold_i... |
76b2b3304d2b4da6e4b4013663ffc22846ec016b | cf62c1acac62cc4bf102447f0fc4285977782612 | /R/summary.scam.R | 3404839d76eea6b3fb7fd0ffde9746f960525f93 | [] | no_license | cran/scam | d6d00a723a0462416a79178038d61cd30fbe793e | cc080df129f3611eadf93cef7259324def3f83dd | refs/heads/master | 2023-04-30T11:29:17.031975 | 2023-04-14T09:00:08 | 2023-04-14T09:00:08 | 17,699,475 | 4 | 6 | null | null | null | null | UTF-8 | R | false | false | 28,315 | r | summary.scam.R | ############################################################
## summary functions for scam() (clone of summary.gam())...
## of mgcv version 1.7-22,
## but without p.type=0,1,...,5 as summary input variable,
## only with freq=T/F....
###########################################################
##### mgcv::: smoo... |
54b80ae0a54ff56c6855134320e39f458d930510 | 1207b078e3918e8b9378158f0aab180b847fb4c4 | /tests/testthat/test-screen_aov.R | f84352d94be87007d0c6e334b3abe66c84e3e918 | [] | no_license | mimikwang/screenr | 1ac82ad7c54e476ae5ea2020512ac84a6439f2bf | 3484f586e89914e08575ee3e8e8c0f7655772ae0 | refs/heads/master | 2020-07-18T10:37:56.283779 | 2019-09-21T07:26:13 | 2019-09-21T07:26:13 | 206,230,803 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,019 | r | test-screen_aov.R | # Normal
test_that("Normal", {
expect_silent(screen_aov(mtcars, c("cyl", "mpg"), c("disp")))
out <- screen_aov(mtcars, c("cyl"), c("disp", "mpg"))
expect_s3_class(out, "screen_aov")
expect_equal(nrow(out$results), 2)
expect_equal(ncol(out$results), 12)
expect_error(screen_aov(data.frame(x = as.numeric(), y... |
ba769aca1ab5e94ff734f7e1ce07e04bb3e1fc1c | 83ce3b39e88c03e2c98ef2f05174195708ac3dbe | /inst/shotGroups_AnalyzeGroups_bs4Dash_05/app_ui_tab_group_accuracy.R | 2066dac3478dd4686c9b1b8f9b4a9e047db4758e | [] | no_license | cran/shotGroups | e02467ffb36b8e528fa1c230b2a718512159fc19 | ae04a8371aa1cc18af598413d1bc41d389762acb | refs/heads/master | 2022-10-01T18:19:20.943958 | 2022-09-17T18:06:04 | 2022-09-17T18:06:04 | 17,699,651 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,422 | r | app_ui_tab_group_accuracy.R | fluidPage(
fluidRow(
bs4Box(
title="Settings for group accuracy",
width=4,
uiOutput("locGroups"),
sliderInput("locLevel", label=h5("Confidence interval width"),
min=0.5, max=1, value=0.95, step=0.01),
checkboxGroupIn... |
476df843daa935b43cc91e7c857af60db1a67a2a | 558b5af88e52057276d703452d73d31c0f40c77a | /man/tn.th.Rd | c66bd24100e49f858483a65b7f9999f25ab46d45 | [] | no_license | SantanderMetGroup/climate4R.indices | 9096786d329675f493c5bc1df796d3ec222aa240 | 3d5b6ee1c62b2c4b9341742db5d0bf8255958cdd | refs/heads/master | 2023-07-14T15:17:11.398428 | 2023-06-22T12:58:57 | 2023-06-22T12:58:57 | 183,474,178 | 5 | 6 | null | 2019-10-10T11:46:48 | 2019-04-25T16:45:35 | R | UTF-8 | R | false | true | 419 | rd | tn.th.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indices.R
\name{tn.th}
\alias{tn.th}
\title{Days with minimum temperature below a given threshold}
\usage{
tn.th(tn, th = 0)
}
\arguments{
\item{tn}{Vector with minimum temperature data}
\item{th}{Threshold value (Default is 0)}
}
\descripti... |
f65f828a7b046c652d2c0836a0cfec756f3d600f | 064ec5e18fe8fbd99823b08fd757a7ea2da33155 | /Rlov/wordcloud/noh_wordcloud.R | 485d1dbd58c645fb0a1611b50992fd11e5d5a7eb | [] | no_license | korea7030/R | 2a75aeffde4898b82a913e50652eb34dc5ec5a0c | d3319d041539d43b0a1f268a7b926aa51fe13eee | refs/heads/master | 2020-12-12T12:06:10.161092 | 2017-07-08T10:13:22 | 2017-07-08T10:13:22 | 54,616,555 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,718 | r | noh_wordcloud.R | getwd()
noh <- readLines("noh.txt")
noh
noh_sentence <- sapply(noh, extractNoun, USE.NAMES=F)
noh_sentence
noh_sentence1 <- unlist(noh_sentence)
noh_sentence1 <- Filter(function(x) { nchar(x) >= 2}, noh_sentence1)
noh_sentence1
res <- gsub("\\d+","",noh_sentence1 )
res <- gsub("이번","",res )
res <- gsub("최초","",res ... |
f6376d591f68d10063b756f9cab3add5d304d70d | c8674dc53aa778b3d8c0759f117b8872196d3009 | /R/GenerateTumorCharacterCat.R | 2bd6421af48e8bbf7f8f940fb2e5a4165ff8e0e6 | [] | no_license | andrewhaoyu/TOP | d8acae9cd8668d70f424997cc6c91b21bf5b5dce | 0de8cd088754079b9b9a11ee785fc6a34f3bab29 | refs/heads/master | 2022-10-04T21:39:09.104998 | 2022-08-25T21:19:01 | 2022-08-25T21:19:01 | 148,667,732 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 613 | r | GenerateTumorCharacterCat.R | ### Generate the potential tumor characteristic category(binary or categorical)
#' Title
#'
#' @param y.pheno.complete
#'
#' @return
#' @export
#'
#' @examples
GenerateTumorCharacterCat <- function(y.pheno.complete){
tumor.number = ncol(y.pheno.complete)-1
y.tumor.complete = y.pheno.complete[,2:(tumor.number+1),dro... |
5fb6b73ead0bde26b1e302df90303b42422aca4c | 188fdc152f41fb470aade8a3d034830f5e241264 | /man/post_model.Rd | fd04ce8fc994c630d25fdf7b9473aaafa810f162 | [] | no_license | navigate-cgalvao/trelloR | 703796227570dd02bef66b56877aee92a1572569 | 21a039f7f7a8e611b9dfe828ca37b4ea2161794d | refs/heads/master | 2020-08-26T20:40:01.233918 | 2019-10-13T16:35:56 | 2019-10-13T16:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,904 | rd | post_model.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/post_model.R
\name{post_model}
\alias{post_model}
\title{POST data to Trello API}
\usage{
post_model(model, id = NULL, path = NULL, body = list(name = "New"),
token = NULL, response = "content", on.error = "warning",
encode = "json", hand... |
bd22f85cfe06c07e1abe6c1ba4bbba2197586483 | 7f083ac85aa3eedf47e159192907d0fc7a46b23d | /Shiny-Flights/app.R | b9ac6a71d384207ac310a204f7e857679be126f8 | [] | no_license | franciscodelval/Visualizacion | d2632ce40afeaad71067546c3973a914402268f4 | 0ff58aa443d9c7ee58b17a330d058991f4dba4ba | refs/heads/main | 2023-02-05T16:05:24.715130 | 2020-12-23T17:12:19 | 2020-12-23T17:12:19 | 323,959,481 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,832 | r | app.R | #------------------------------------------------------------------------------
# FLIGHT EXPLORER
#------------------------------------------------------------------------------
# GRUPO 9:
# Carlos Rodriguez
# Francisco del Val
# Jose Lopez
# Octavio del Sueldo
# Iñigo Martiarena
#-----------------------------... |
381ffedd710dd9c072549c24571cad1fba28332b | 885d8760545b21f3b85ae05c8d0aaf710d699942 | /R/rampFastQueryTab3.R | 5fd0f6cbb4084f2797762bc41308f32e1f2c93f3 | [] | no_license | Mathelab/RaMP-DB | 313e2c855db416b84ba1e62351a133ef27f9b676 | 5acaded46849b713acef8686b07d5fac2b56c8ba | refs/heads/master | 2021-06-02T09:57:46.848784 | 2021-04-19T12:22:21 | 2021-04-19T12:22:21 | 114,416,614 | 15 | 4 | null | 2021-04-19T12:16:23 | 2017-12-15T22:34:46 | R | UTF-8 | R | false | false | 35,444 | r | rampFastQueryTab3.R | #' Do fisher test for only one pathway from search result
#' clicked on highchart
#' @param pathwaydf a data frame resulting from getPathwayFromAnalyte
#' @param total_metabolites number of metabolites analyzed in the experiment (e.g. background) (default is 1000; set to 'NULL' to retrieve total number of metabolites t... |
43dd96ef6f14e6c87cee358d5da72ed31370f871 | cba292795ae57c1e058b1112af78c8fb10ec8269 | /search_pubmed.R | 31a1562abcfa315500fead482b5f9995c45cc5d4 | [] | no_license | joebrew/pubmed | 9c23eeb1972f8cf4130252a12e7f119e36b91bb1 | 4f93cfa0426fdc90be4e09eafe056af8461a4c59 | refs/heads/master | 2021-01-20T19:15:38.152816 | 2016-07-18T12:12:50 | 2016-07-18T12:12:50 | 60,718,720 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,155 | r | search_pubmed.R | library(RISmed)
library(dplyr)
library(ggplot2)
library(tidyr)
# http://amunategui.github.io/pubmed-query/
# Define function for getting results from pubmed
pubmed <- function(start_year = 2014,
end_year = 2016,
search_topic = 'malaria',
counts_only = TRUE){
... |
15ba4982f4f13e742055ac2c62704bd05b0c208c | b696ca1a14b4e4f49d299298acdc5dbfc94063c7 | /energy_consumption/currentcost_idle_1h.r | bf955ed9eb736b875ed41d396d1a9dcfa1ce59a0 | [
"Apache-2.0"
] | permissive | jvilaplana/openstack-greenc | 7af677806b6c90eb42cfb3ba569f2d0bbef98dca | 5f6fd37e80d60fa9a9bcc28d456fe48d1f8aafc5 | refs/heads/master | 2021-01-20T12:00:42.738231 | 2014-07-25T11:24:41 | 2014-07-25T11:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,691 | r | currentcost_idle_1h.r | data <- read.csv("currentcost_idle_1h.csv", header=FALSE)
compute01 <- data[data$V5 == '1',]
compute02 <- data[data$V5 == '2',]
compute03 <- data[data$V5 == '3',]
compute04 <- data[data$V5 == '4',]
postscript("currentcost_idle_1h.eps")
plot(compute01$V8, ylab="", xlab="", type="l",col="blue",ylim=c(110,180), lwd=1,x... |
70d2e062cd55f9b12cb96414c6b284f90d749aa8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/castor/examples/get_tree_traversal_root_to_tips.Rd.R | b2207d2134551c4411fa846c8a911f8bec6dbaf1 | [] | 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 | 284 | r | get_tree_traversal_root_to_tips.Rd.R | library(castor)
### Name: get_tree_traversal_root_to_tips
### Title: Traverse tree from root to tips.
### Aliases: get_tree_traversal_root_to_tips
### Keywords: traversal
### ** Examples
## Not run:
##D get_tree_traversal_root_to_tips(tree, include_tips=TRUE)
## End(Not run)
|
72cb87ed42979f40df4847c7c877dfb2524c4e72 | 40f4cb44ab742a168ca3f82d36a3e38dcaa6f844 | /R/getRelevantIds.R | 7c62fabcf650bf3692f39000bf3081435d7a1651 | [] | no_license | sankleta/BED | 34e3f91fceffbb1164e65ab8a4cb24e6431b898b | 85c5c5ba4bbc927155d454dc6612512c7b197805 | refs/heads/master | 2021-04-30T05:55:28.535605 | 2018-02-06T11:18:59 | 2018-02-06T11:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,786 | r | getRelevantIds.R | #' Get relevant IDs for a formerly identified BE in a context of interest
#'
#' This function is meant to be used with \code{\link{searchId}} in order
#' to implement a dictonary of identifiers of interest. First
#' the \code{\link{searchId}} function is used to search a term.
#' Then the \code{\link{getRelevantIds}} f... |
631cff91b868bb6dbf5ca7b9867fd70b02251300 | dcc6db13df6c4f0f22985b0380ac1d9e1c28d758 | /man/sort_matrix.Rd | f36cbb378e806d969e55afe7f5a303776a6a6b2c | [
"MIT"
] | permissive | MyersGroup/testisAtlas | b6f247756f2ec0a7c77665592c7f93378a9d285f | 53ed0d70ee7d06fe739cbbf7135907ac8999bd79 | refs/heads/master | 2021-06-23T05:56:26.949219 | 2020-11-28T13:17:19 | 2020-11-28T13:17:19 | 140,632,831 | 13 | 0 | null | null | null | null | UTF-8 | R | false | true | 582 | rd | sort_matrix.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_single_cell.R
\name{sort_matrix}
\alias{sort_matrix}
\title{Sort matrix to highest correlations are along the diagonal}
\usage{
sort_matrix(mat = cross_cor, order1 = max_cor_per_compoent)
}
\arguments{
\item{mat}{numeric matrix to b... |
b051072d4a4107667019856488ab4f3785d8ce12 | dbc6954f25fb1fa4f584eb3e6c7f6b90d1766fbb | /MVE_BASED/species_exposure_calculate.r | a0ce4217d935455b5ef1be60224dacf37e16b14b | [] | no_license | RannieWan/diversity_in_e | 05da7390903972e3574861d61fa3344f3c668611 | 72649009420c0ebc068ecd81c2f36a4dc6f3b6a6 | refs/heads/master | 2023-03-10T17:07:20.147042 | 2021-03-01T08:54:23 | 2021-03-01T08:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,957 | r | species_exposure_calculate.r | library(raster)
library(rgdal)
library(rgeos)
library(MASS)
library(cluster)
library(dplyr)
source("functions.r")
fun_exposure<-function(t_mask_index, t_year, t_GCM, t_SSP, t_is_out, df, exposure_year){
if (t_is_out==0){
return(0)
}else{
sub_item<-df%>%dplyr::filter((mask_index==t_mask_index)&
... |
a3543f15b62b648f91d21044264d2abfba898eb5 | e5a1e0780d2b93689dbb153e5ab733c4049f8839 | /R/V1_T2.1.R | deba2ad65def9a307e60e8cc875e8e74828974e4 | [
"MIT"
] | permissive | LucyNjoki/rKenyaCensus | 5b86efcdb7604067500087be68c463587daf362d | 6db00e5b1b71a781e6def15dd98a4828b6d960bc | refs/heads/master | 2022-11-06T17:58:34.520255 | 2020-06-29T11:34:02 | 2020-06-29T11:34:02 | 276,578,774 | 0 | 1 | NOASSERTION | 2020-07-02T07:30:50 | 2020-07-02T07:30:49 | null | UTF-8 | R | false | false | 276 | r | V1_T2.1.R | #' Volume I: Table 2.1
#'
#' Census Indicators at a Glance, 2019
#' @docType data
#'
#' @usage data(V1_T2.1)
#'
#' @format A data frame with 2 variables:
#' \describe{
#' \item{\code{Indicator}}{Indicator}
#' \item{\code{Value}}{Value}
#'}
#' @keywords datasets
#'
"V1_T2.1"
|
27861656c8112fb97bcd79dda2b6bd995fcc8031 | 1b86aeca71da56029575093fb47a16cac881a04d | /plot3.R | c90dc91c3d78cadc36d06496e04f7ec1ed9bf050 | [] | no_license | edzai/ExData_Plotting1 | ff470f6381feb7ac7c5bc0e3ee04d194836feeea | 48fe2e3abaf586a459649a439569515bb819d837 | refs/heads/master | 2021-01-11T02:38:14.204419 | 2016-10-20T13:54:50 | 2016-10-20T13:54:50 | 70,948,498 | 0 | 0 | null | 2016-10-14T21:27:57 | 2016-10-14T21:27:56 | null | UTF-8 | R | false | false | 682 | r | plot3.R | edata = read.table("C:/Users/Edzai/Downloads/electricity/power.txt", header=T, sep=";", na.strings="?")
edata <- edata[edata$Date %in% c("1/2/2007","2/2/2007"),]
Time <-strptime(paste(edata$Date, edata$Time, sep=" "),"%d/%m/%Y %H:%M:%S")
edata <- cbind(Time, edata)
#Plot 3
columnlines <- c("black", "red", "blue"... |
0d2e30f3d06ca96ced07148c60a9e19d7ffc1a9f | 29585dff702209dd446c0ab52ceea046c58e384e | /spartan/R/efast_sd.R | e9edcad0ccdecd7921d172bcd396c88512270612 | [] | 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 | 6,027 | r | efast_sd.R | efast_sd <-
function(RESULTSARRAY,OMi,MI,OUTMEASURES,NUMPARAMS,NUMCURVES)
{
# RESULTSMAT FORMAT - FIRST: PARAM SET NUMBER,2ND: TIMEPOINT (NOT USED BUT IS IN EXAMPLE),3RD: RESULT VALUE ARRAY,4TH:PARAMETER,5TH: CURVE
#[a b c NUMPARAMS NUMCURVES]=size(RESULTSMAT);
#if nargin<5
# display(['ERROR = Choose one or more... |
5f81b8e458418a5f08f5f6a458528067eff11308 | 799f2e7659b5d3e9957f724f9b22567f489884f6 | /R/ContactWorker.R | d0fe21f347db33f252c2066f8cbc928aedbe26a5 | [] | no_license | cloudyr/pyMTurkR | 1843d3e7b97c32e5249dd94c110e5a131b8637a2 | 17ec76724f019bf82d43537d8b19d3d210ed7e7e | refs/heads/master | 2022-01-27T00:59:50.066624 | 2022-01-19T19:24:12 | 2022-01-19T19:24:12 | 186,131,921 | 15 | 10 | null | 2022-01-19T19:24:13 | 2019-05-11T12:45:41 | R | UTF-8 | R | false | false | 9,827 | r | ContactWorker.R | #' Contact Worker(s)
#'
#' Contact one or more workers. This sends an email with specified subject line
#' and body text to one or more workers. This can be used to recontact workers
#' in panel/longitudinal research or to send follow-up work.
#'
#' Send an email to one or more workers, either with a common subject and... |
099ac3043d49b5783d4d97fbcb245abd32f6182f | c9e23795383f95c595785369c8e76b697d1c9358 | /man/rci.Rd | a85ab036e1c9eab9312603791852be074eb2596a | [] | no_license | zieglema/ClinicalSig | fdebfbaf709c9c56d3a8a543fe156ae8cb72e552 | cf8441c134b5c634d9175b750dce547ead786e77 | refs/heads/master | 2021-01-20T18:16:06.840865 | 2019-05-14T10:17:57 | 2019-05-14T10:17:57 | 60,799,620 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 923 | rd | rci.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Code_for_ClinicalSig.R
\name{rci}
\alias{rci}
\title{Function for the reliable change index}
\usage{
rci(pre, post, data, rtt, sdNorm)
}
\arguments{
\item{pre}{The variable containing the values from before the intervention}
\item{post}{The ... |
a5fab4d98479be4b7b2dd1ba8acee19da903cdc7 | e8b4e0b6c7d61d9eccc723280f05bd3765076b78 | /man/ConservatismPermTest.Rd | 7fe80a85e8127efa862715eaac518c9af45e0284 | [
"MIT"
] | permissive | SimmonsBI/RolePredict | f00630ef912ec49439a181bfe3c0bfa82d539708 | f8f67510d51fc15b068b10cd26dd37524e864fdc | refs/heads/master | 2023-01-22T09:27:12.563284 | 2020-12-01T17:22:51 | 2020-12-01T17:22:51 | 291,089,758 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 407 | rd | ConservatismPermTest.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ConservatismPermTest.R
\name{ConservatismPermTest}
\alias{ConservatismPermTest}
\title{placeholder}
\usage{
ConservatismPermTest(roles, n_it, species)
}
\arguments{
\item{roles}{A number.}
\item{n_it}{A number.}
\item{species}{A number.}
}
... |
27bba6859e552ce365db5ebc188ced3a42f330e5 | a41bd0086c12624bff1fd6661d140075f87d5229 | /man/mosaic.Rd | 007fd206d85f46582540ca0fb18e766e3a13bbf4 | [] | no_license | cran/regclass | e0e019d36dbc15d05fda4965e0dc26ff5cf1ffc1 | 548f2ed1dc66fbf1a58b86f9ada26f9da05483c4 | refs/heads/master | 2021-01-11T23:18:12.857264 | 2020-02-21T17:00:07 | 2020-02-21T17:00:07 | 78,563,828 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,740 | rd | mosaic.Rd | \name{mosaic}
\alias{mosaic}
\title{
Mosaic plot
}
\description{
Provides a mosaic plot to visualize the association between two categorical variables }
\usage{
mosaic(formula,data,color=TRUE,labelat=c(),xlab=c(),ylab=c(),
magnification=1,equal=FALSE,inside=FALSE,ordered=FALSE)
}
\argum... |
b74d87f17a3e2df6f6b422e5ebfc6bf80fa79f25 | 1fa222b5df3214b040da125f8b19290eb355b940 | /VennDiagram_CancerPanels/VennDiagramPackage_Script.R | 9708dba43297b6431a16e324085d805e4da91644 | [] | no_license | bl24/R_scripts | 6b520f6a7580312e3a8e601038fbf2f958f3848b | 9591a202b39fa147686809e0f15790218c59d21b | refs/heads/master | 2021-01-10T14:18:47.102101 | 2016-03-08T18:12:43 | 2016-03-08T18:12:43 | 53,434,318 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,399 | r | VennDiagramPackage_Script.R | install.packages('VennDiagram')
library(VennDiagram)
# Alex's version
# Written for 3 datasets
venn.diagram(
x = list(
'Foundation\nMedicine\n(315 genes)' = c(1:3,4:26,27:117,135:332),
'TruSight\nTumor\n(26 genes)' = c(1:3,4:26),
'NGS\nGateway\n(131 genes)' = c(4:26,27:117,118:134)
),
filename = "VennDiagTes... |
82bc3cfee8f3ca76ccef845c487d7c79d30f4df3 | c3336c90567e9232ed60bd6bd6ea2a35195a0ef3 | /data-raw/nextrain.R | 25ce1764fd5fb8c2dc858723ee98180c1f561c0e | [] | no_license | khvorov45/ab-landscape | f7c2005772273cfef8ee30fa284340e0f14c9e9e | 92f49b37b5605452e01a1c8a88e0bb411e9eb05b | refs/heads/master | 2023-06-28T09:38:29.403664 | 2021-07-30T04:40:06 | 2021-07-30T04:40:06 | 283,342,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,295 | r | nextrain.R | library(tidyverse)
nextstrain_tree <- httr::GET(
"https://nextstrain.org/charon/getDataset?prefix=/flu/seasonal/h3n2/ha/12y"
) %>%
httr::content()
process_child <- function(child) {
children <- tibble()
if (!is.null(child$children)) {
children <- map_dfr(child$children, process_child)
}
bind_rows(
... |
f7d6b977cda7993c512a4b1b5ba38793081adc35 | 19ca3425955df745d43deca7bf1b67801566a199 | /run_analysis.R | 2eb14de637e5ff3184b1ee9cf14e0601e8e33c1a | [] | no_license | BillSeliger/gettingandcleaningdata | 2311d328a92c7177fed102712763c3a974182857 | ba36f82d94b6826ff1e13c37decdda919a754871 | refs/heads/master | 2016-09-10T00:46:20.753757 | 2015-05-03T12:54:08 | 2015-05-03T12:54:08 | 28,794,750 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,444 | r | run_analysis.R | ## R Script file for Coursera_Getting and Cleaning Data
## You should create one R script called run_analysis.R that does the following.
## 1. Merges the training and the test sets to create one data set.
## 2. Extracts only the measurements on the mean and standard deviation for each measurement.
## 3. Uses descr... |
961af7a5e19fb19eed4e803909998175ea87c866 | dd1102ed8f681e5dfb675075b870ee948f017ccc | /LjAt_SC_invasion.R | 6e90e919cf92fc54c963f1456aaebc8f95eb7ceb | [] | 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 | 5,197 | r | LjAt_SC_invasion.R |
# originally by Ruben Garrido-Oter
# garridoo@mpipz.mpg.de
source("LjAt_SC_invasion_load_data.R")
at_strains_ra <- colSums(otu_table[rownames(otu_table) %in% at_strains, ])
lj_strains_ra <- colSums(otu_table[rownames(otu_table) %in% lj_strains, ])
otu_table <- rbind(otu_table, at_strains_ra, lj_strains_ra)
df <- me... |
2462131e4ba9e89668a0b895d48080c6e294722b | 344176ee0f52389607d968b228ef086745a2d349 | /R/scz/create_gtex_adapt_results.R | 3b46c492dd1cb30b93122e603646a5b5ac79dace | [] | no_license | SitaZhou/AdaPT-GWAS-manuscript-code | a1aface75adf00c41050ebff990cbfce9f9ba611 | 1f789b51a93e33fad0ba3b2174ad5dd768883066 | refs/heads/master | 2022-04-13T12:24:09.087633 | 2020-03-29T01:23:31 | 2020-03-29T01:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,418 | r | create_gtex_adapt_results.R | # PURPOSE: Generate the AdaPT CV results using the GTEx eSNPs with all variables
# and then the intercept-only results
# Author: Ron Yurko
# Access necessary packages:
library(tidyverse)
library(future)
# Use the development version of furrr:
# devtools::install_github("DavisVaughan/furrr")
library(furrr)
# ... |
d6bca2242bd44ba5c51e1007496eaeb2e46cdc1b | 0ebc9231a21649753eb0546fbc3554570d1dfd17 | /data-raw/SRP073808/SRP073808_generate_pheno.R | ab4e1dc18d7ec8c3134c8c296f373e9f215939e7 | [
"MIT"
] | permissive | markrobinsonuzh/conquer | 917765c151751ae7ae539b0b2e320093ab25b99b | 670872217b646c56e460616fc243ff30bbe32cf4 | refs/heads/master | 2020-12-26T00:26:46.908398 | 2018-05-26T14:53:28 | 2018-05-26T14:53:28 | 63,949,425 | 52 | 14 | MIT | 2018-04-11T06:00:04 | 2016-07-22T11:47:31 | HTML | UTF-8 | R | false | false | 482 | r | SRP073808_generate_pheno.R | library(dplyr)
x <- read.delim("SRP073808_SraRunInfo.csv", header = TRUE, as.is = TRUE,
sep = ",")
xp <- x[, c("Run", "LibraryName"), drop = FALSE]
xp$LibraryName <- gsub("_single-cell: In vitro cultured H7 human embryonic stem cells \\(WiCell\\) and H7-derived downstream early mesoderm progenitors", ""... |
84eb7d555f6e710be82257aab9387a6fd44d617f | 788e8885cf3db8c340d2ad01e0b05e9f8eb011a5 | /man/Total_Deaths_Country_Stats.Rd | c4a35bce88018ec8c97b4193f6734ffe377e3d67 | [
"MIT"
] | permissive | oonyechi123/CovidAPIWrapper | 59cbdc2be752e3ca87fecdef93ef42054fb9b37f | ab19ede9ea6b47a576379540c641deaaef607458 | refs/heads/main | 2023-01-22T02:35:26.083929 | 2020-12-02T23:56:21 | 2020-12-02T23:56:21 | 318,020,148 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 991 | rd | Total_Deaths_Country_Stats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Total_Deaths_Country_Stats.R
\name{Total_Deaths_Country_Stats}
\alias{Total_Deaths_Country_Stats}
\title{Total Deaths Country Statistics}
\usage{
Total_Deaths_Country_Stats(stat)
}
\arguments{
\item{stat}{This should be the statistic the end ... |
afdf4deaeb8838943ebede667b5dd1638ae0b802 | 5264913a140ee3230721e06d399b9841a3053224 | /Figure3_CES.R | 473e5959fd3cbcfe577ce05de84e032e855e9a90 | [] | no_license | alexander-y-yang/PRAD | 7d884d4bf37df11eb9299fde6a58b08b68721239 | 5e57943690c30380dd6b1e19e20863a3cf7869cb | refs/heads/main | 2023-03-14T05:54:55.328311 | 2021-03-06T22:33:24 | 2021-03-06T22:33:24 | 342,624,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,307 | r | Figure3_CES.R | library(cancereffectsizeR)
library(scales)
library(stringr)
library(dplyr)
library(ggplot2)
library(cowplot)
scientific <- function(x){
ifelse(x==0, "0", parse(text=gsub("[+]", "", gsub("e", " %*% 10^", label_scientific()(x)))))
}
#Load in your file
threestage_final <- load_cesa("threestage_final.rds"... |
d77a949677635db6ea616de6c60402c136053ca0 | 08e7c9be71d6186fae233b8b2f03d4b269d5c5ea | /post-processing/4_BitExtractionAlgorithms/Sadzadi/Sadzadi_RSSQuantization_bak.R | 5f609abc9bd7903a5cdf044e796cdf34ada09fb6 | [] | no_license | surendra060/KeyDerivationWirelessChannel | da54f39cf2537e69e60aab29320e0819d38c3d4c | 07e48609fbeee44c787ae259cb48212bcd12a3ee | refs/heads/master | 2021-08-23T08:42:04.876558 | 2017-12-04T10:32:19 | 2017-12-04T10:32:19 | 112,205,445 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,282 | r | Sadzadi_RSSQuantization_bak.R | ##### ************************* SADZADI ****************************************************************
# BitString Generation using Sadzadi et al
nodeData_Sadzadi = function(nodeRSSA, infileA, outfileBitStringA,outfileDataA, nodeRSSB, infileB, outfileBitStringB,outfileDataB, entropyTestFile){
nodeRSSA = read.tabl... |
55c61a6266c4afec6fe3ecb2e1ae360c19568cd7 | fc94030dcfae022fe0ae372b250dcaf541525a7c | /man/cast_font_sf.Rd | ca3ef3249a30a433f2455c47275d07fdcc17592b | [
"MIT"
] | permissive | njtierney/ishihara | fc31bf451686111079b29624a508026edd8dcfe4 | a95654b3514c94900e3ded05a82702f32c906bdb | refs/heads/master | 2022-09-07T03:10:00.368574 | 2020-05-31T05:57:02 | 2020-05-31T05:57:02 | 262,525,820 | 12 | 1 | null | null | null | null | UTF-8 | R | false | true | 446 | rd | cast_font_sf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cast-sf.R
\name{cast_font_sf}
\alias{cast_font_sf}
\title{Convert font into Spatial SF object}
\usage{
cast_font_sf(font_df)
}
\arguments{
\item{font_df}{font created by \code{\link[=glyph]{glyph()}}}
}
\value{
font polygon as an SF object
}
... |
bb5c98e1cb6716bfcc1d7276a1b69a2fa21a7d68 | b957b00776e912ef5c28f2c4e1dd88c29d9dcda8 | /Plot_null_cycle.R | b5fa7f60fa1f2e1c01a6474bb56d45fd386be77e | [] | no_license | lauren-baugh/LLM-Prot-Data | d4a040079de0162a254b4511f2d2c19d2db1ddaa | 0028febe3a7fd4e8fdd341fd0af19b8748431f2b | refs/heads/main | 2023-06-18T00:09:53.849500 | 2021-07-13T18:12:40 | 2021-07-13T18:12:40 | 385,692,639 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,098 | r | Plot_null_cycle.R | #Run a PCA for proteomics data
#Lauren Baugh 12/12/19
#uses http://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/
#http://www.sthda.com/english/wiki/fviz-pca-quick-principal-component-analysis-data-visualization-r-software-and-data-... |
1b5a7a7edc77371c9f7be33b1f5925e581b87d09 | 728315d8c5d09e13c67641030b92d59c5e7e2222 | /easy/compare_points.r | 83243bd7c20887344bb1c8ebba2305c2503bc7f5 | [
"MIT"
] | permissive | shortthirdman/code-eval-challenges | 88ea93c0e9385b2a0db95a05b1f3f753c900a62d | cf2197927830326539399fdd3e16c9b8a4468f7d | refs/heads/master | 2023-03-06T19:34:44.607154 | 2023-02-26T13:30:56 | 2023-02-26T13:30:56 | 92,970,178 | 4 | 0 | MIT | 2023-02-26T13:30:57 | 2017-05-31T17:14:59 | Go | UTF-8 | R | false | false | 394 | r | compare_points.r | cat(sapply(lapply(strsplit(readLines(tail(commandArgs(), n=1)), " ", fixed=TRUE), as.integer), function(s) {
ifelse(s[1] == s[3], ifelse(s[2] == s[4], "here", ifelse(s[2] < s[4], "N", "S")),
ifelse(s[2] == s[4], ifelse(s[1] < s[3], "E", "W"),
ifelse(s[1] < s[3], ifelse(s[2] < s[4], "NE", "SE"),
... |
090bc506f431ec121cd1b0ca8baee7aa6b0f0a6e | 59f8189cebe437a3771ae473a9493385382a32cf | /server.R | b42df5c732790577a9546f46efcb27e5053b57f3 | [] | no_license | jdeneumostier/rshiny1 | d853245db4b84fe6eb66f17dbe9541831ca4382f | 5711dffbb6269c7c247ab2afce18338055044cbd | refs/heads/master | 2021-01-08T21:23:18.453176 | 2020-02-28T16:12:13 | 2020-02-28T16:12:13 | 242,146,942 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,221 | r | server.R | source("utils.R")
server <- function(input, output, session) {
# Tests de normalite (Kolmorogorov, Shapiro)
normCheck <- reactiveVal(FALSE);
normality <- reactive( {
# Ne pas afficher le warning: ties should not be present for the Kolmogorov-Smirnov test
values <- getData()
kTest = suppressWarnings(k... |
bcf3776e9f1d103d1c233359c4a9e9d21011a3ac | d642254d4cc5b1ee5c45a2a56b4546adc06871b5 | /lecture_note/huber.R | 6ce79536e9fdccc3d6c7fe47edd500483c7d7f1b | [] | no_license | Chad4545/datamining | ba52c1992a44e8113a1277e7e39c250133ce6d38 | 2f4858489ac8500636a62881c5b46bd33439f4dc | refs/heads/master | 2020-04-28T08:39:34.505789 | 2019-05-08T10:21:37 | 2019-05-08T10:21:37 | 175,136,657 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 642 | r | huber.R | rm(list=ls())
getwd()
setwd("/Users/sungjinpark/Desktop/OneDrive - konkuk.ac.kr/datamining/lecture_note")
'''
library(MASS)#huber , rlm
library(robustreg)#robustRegH()
library(quantreg)#L1 , rq
'''
# huberized loss function
huber_loss = function(y,x.vec,b,del){
x.mat = cbind(1,x.vec)
r.vec = y - x.mat%*%b
yes_or... |
284bb323ed9984d674aeee1aebcc3668510ba947 | da5d74f9895e2c00947a42805f2af73d209082a1 | /Fig2_SheepClocks.R | 0ba72906d96ce2296c19f67f9a393c33f7bf459d | [
"MIT"
] | permissive | xuefenfei712/sheepclock | b3321bdbee158f249af153d38599e75eeaf68ee2 | b0eaec0b96afcc35f0d60982eb3d1215ea329d64 | refs/heads/main | 2023-06-03T08:50:48.750018 | 2021-06-24T00:49:17 | 2021-06-24T00:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,149 | r | Fig2_SheepClocks.R | library(ggplot2)
library("cowplot")
setwd("/Users/victoriasugrue/Dropbox/N18.2018-9300-1SheepSkinBloodTimHoreRussellSnell/Subset_Sheep_PredictionResultsJosephZoller/")
#figure A: sheep pan tissue, sheep clock
sheepA <- read.csv("datPredictedAgeN18FinalJosephZoller.csv")
#figure B: sheep blood
sheepB <- read.csv("datP... |
02e14cd03beea97cdf0e1340edd05942d9ba749d | c2073992efdb252ffca0bb25e1458889fcd31491 | /man/rollup.pct.Rd | 767377d0f7221770060f9891e03c0b55e47448aa | [
"MIT"
] | permissive | HKCaesar/ejanalysis | 36d834e969a040716cafd57d8ac5a78c4821a860 | 258237c0489b68a080c1c9bd6859df21511bb78c | refs/heads/master | 2021-07-24T12:26:00.232791 | 2017-11-04T23:10:24 | 2017-11-04T23:10:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 766 | rd | rollup.pct.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rollup.pct.R
\name{rollup.pct}
\alias{rollup.pct}
\title{Calculate a/b for each Subset}
\usage{
rollup.pct(a, b, zone)
}
\arguments{
\item{a}{Required numeric vector, numerator}
\item{b}{Required numeric vector, denominator. Same length as a... |
e8d5d37ee1dacce54ecd5e8023173f5ab53f3eb3 | 1aac8eda0a0453555fd141a4e280fbbb42e2a45f | /man/population.Rd | 8ed2a7d0d278eedcb612e6fce87499908272713f | [] | no_license | cran/edpclient | 9d299cf54391dfe0694c3fbe81b30acc150d63b4 | 97f16945da7ab31aac6d776e18386917ebecc1cc | refs/heads/master | 2021-01-22T10:27:12.548768 | 2018-04-25T02:11:01 | 2018-04-25T02:11:01 | 92,644,478 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 728 | rd | population.Rd | \name{population}
\alias{population}
\alias{is.population}
\title{EDP population objects}
\description{Create or test for \code{population} objects.}
\usage{
population(sess, pid)
is.population(x)
}
\arguments{
\item{sess}{an \code{edp_session} from \code{edp_session(...)}}
\item{pid}{a population id, a length-one ... |
6e196ea6dcafb0a4fc146be10bc11a43a4fa3493 | 005d2558b95d14b8829eb612e2446b5e420501cb | /plot3.R | 6044a59721f52387b227bc1c143e0df9ce88e658 | [] | no_license | kzellman/ExData_Plotting1 | 6b5ba6134f055217090f76d611f9c529a454022b | 0f708d6ae0babbdcee4a59b38d44842c3e2cafbe | refs/heads/master | 2021-01-17T23:13:39.272148 | 2014-08-10T19:10:46 | 2014-08-10T19:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 849 | r | plot3.R | #read in and subset power using sqldf package
require("sqldf")
sql <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'"
txt <- "household_power_consumption.txt"
power <- read.csv2.sql(txt, sql)
#reformat date and time
power$DateTime <- paste(power$Date, power$Time)
power$Date <- as.Date(power$Date, for... |
53f81c6380fcfdcca996f4f04382ee4a5191f1da | a2c4863bc45b4bf9e0a0f08f8b612fd40aca6a53 | /R/zzz.R | 3a1c5c912de48e582da1754f2a19e24b11c54254 | [
"MIT"
] | permissive | pfistfl/mlr3learners | 69bed845a414a0c51ffa848f8f4167f4e47270bb | 88ee2b85a057fc6f764880631c14d7b9fac46930 | refs/heads/master | 2020-06-14T05:25:55.601031 | 2019-07-02T11:42:49 | 2019-07-02T11:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,388 | r | zzz.R | #' @rawNamespace import(data.table, except = transpose)
#' @import paradox
#' @import mlr3misc
#' @importFrom R6 R6Class
#' @importFrom mlr3 mlr_learners LearnerClassif LearnerRegr
"_PACKAGE"
register_mlr3 = function() {
x = utils::getFromNamespace("mlr_learners", ns = "mlr3")
# classification learners
x$add("... |
441abd745ae4a02be85925f9ab3b9a834c432b08 | 04c1a390bd446417d62ac8ec36d0d33b3b1d8445 | /Modell Evaluation.R | 0db3c1f271399beafb74fd9b1c2acb4e8b8d3fcb | [] | no_license | dschradick/R-Toolbox | 3a54990b7901066245160358c94b6a0f33bd80e2 | 01a207f788e191c164ac469772dfd328afcf564e | refs/heads/master | 2021-10-23T19:15:37.493508 | 2018-06-08T05:38:53 | 2018-06-08T05:38:53 | 93,675,461 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,133 | r | Modell Evaluation.R | ########## MODELL EVALUATION
# Drei grundsätzliche Ansätze:
# 1. Validation-set
# 2. LOOCV
# 3. k-fold Cross-Validation
library(ISLR) # datasets
library(dplyr)
library(boot) # cv.glm
## Valdiation-Set Ansatz
attach(Auto)
set.seed(1)
number_of_observations = nrow(Auto)
train = sample(number_of_observations,number_of_... |
de8a31eeb3431d91596cbb05c623b4dbbb2e2067 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/VGAM/examples/vsmooth.spline.Rd.R | 02ae553195edda69366f400c80913a2d8f4e08a6 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,353 | r | vsmooth.spline.Rd.R | library(VGAM)
### Name: vsmooth.spline
### Title: Vector Cubic Smoothing Spline
### Aliases: vsmooth.spline
### Keywords: regression smooth
### ** Examples
nn <- 20; x <- 2 + 5*(nn:1)/nn
x[2:4] <- x[5:7] # Allow duplication
y1 <- sin(x) + rnorm(nn, sd = 0.13)
y2 <- cos(x) + rnorm(nn, sd = 0.13)
y3 <- 1 + sin(x) + ... |
a218a07bf05150ba7d0eb0441a327efbf72ba3b3 | 8238d31d16c0ce7737c598ca1dec688531e29098 | /run_analysis.R | 511dea1411980ebcb4347948a45270f618303dcc | [] | no_license | dimuthuat/GettingandCleaning- | 9db3ea93213f9bbe520c95b3f9bbb0cf7cafda50 | 5cd6ec0a5d114780a4671701d704126bb635bfa6 | refs/heads/master | 2020-07-10T10:48:47.087534 | 2019-08-25T12:40:14 | 2019-08-25T12:40:14 | 204,245,065 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,242 | r | run_analysis.R | #Getting and Cleaning Data final project - JHU on Coursera
#Author: Dimuthu Attanayake
#The objective of the assignment is to collect and clean a wearable computing data set collected from the accelerometers from the Samsung Galaxy S smartphone to create a R script.
# The script:
# 1. Merges the training and th... |
d1b8287c139342af17130e80d6ec236bad424073 | 47d95656f7bc9789823557111875421162b99025 | /Misk_shiny_intro/ui.R | 15b722eeae0a7f084f9f41b57058ab31b1d7de89 | [] | no_license | Safa721/Misk_Shiny | bb5d88dffe09f566be8ecc5e9a1e0a8b8ad2c33d | cf22c6c1a5ea8332eb7a0d50d5ed115bf10e3448 | refs/heads/main | 2023-01-28T05:01:01.814899 | 2020-12-03T13:48:15 | 2020-12-03T13:48:15 | 318,205,164 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,544 | r | ui.R | shinyUI(
navbarPage(theme = shinytheme("yeti"),
id = 'main',
title = "Developing Data Products",
fluidRow(title = 'Start', width=12, align = "center",
tags$body(tags$p(style = "padding: 30px; width:822px",
align = 'le... |
becb0c8cd0f3d9c652f01a675eab668caa7c5295 | da7f013d52e65313d25798d075b29733b218a64c | /1_Bollywood_Dataset_study.R | e451192dfb400af0af51c09d53c44c6f2b3a338b | [] | no_license | KrishnaKuyate/Bollywood-Movies-Data-Analysis | 6b1a0af39853f6fea213a66fac90ab736be79644 | 3d2239ca7b4b79ea86f4a5bc1e44b2423ccf558f | refs/heads/master | 2020-04-04T16:22:55.919791 | 2018-11-22T19:30:08 | 2018-11-22T19:30:08 | 156,075,256 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,080 | r | 1_Bollywood_Dataset_study.R | #$$$$$$$$$$$$$$$$Bollywood Movie Data Analysis -2015 $$$$$$$$$$$$$$$#
#%Part:1
###Add image
library(magick)
image_read("Wallpaper.jpg")->img1
image_resize(img1, "800x800")->img1
image_oilpaint(img1,radius = 2)
##@Import Package and data file
library(readr)
Bollywood_Movie_Data <- read_csv("Bollywood_Movie_Da... |
5a8864da799056e390d9e655ffa8b8f644f252c2 | c9ad372b911661fbc32815ae3732661d6e0b78fe | /analysis/Brook Trout Project/Occupancy/RMark/Brown Trout/BRT_RMark_DF_construct.R | 63643b0c295abda45b23cb57b6603f9e2e83f154 | [] | no_license | EEOB590A-Fall-2019/BKelly_Fishes | 79348981dc04a094915e249db30864b806b0eae9 | 1379021c4fb52358bcc07e0963f2a052febb3f75 | refs/heads/master | 2021-06-25T17:09:20.996152 | 2021-03-29T03:18:53 | 2021-03-29T03:18:53 | 205,415,420 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,531 | r | BRT_RMark_DF_construct.R | ##############################################################################################################################
# Create an RMARK ready dataframe for Brown Trout
# Combine current Environmental Covariates and Brown Trout Encounter history
# > trim covariates to those with biologically/ecologically rel... |
fa5a7b14ab98f53dac357a13885feb23b4583fbc | 4acd07427b91a4d867a72be4d97f36acbb00ca3b | /Scripts/Wilcox_LogReg.R | 404a7439ea86d7d6d3b08adb55d529d455c2cc67 | [
"MIT"
] | permissive | JonathanVSV/Conserved-vs-Degraded-Forest | 94c4d1a69129403e4217a819f7d7235ebd981141 | 549dcb0144f32bf5582f9d6abb92823d3df969b8 | refs/heads/master | 2022-12-28T00:25:35.103927 | 2020-09-29T03:38:51 | 2020-09-29T03:38:51 | 285,399,591 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,957 | r | Wilcox_LogReg.R | # Packages that are needed--------------------------------
library(epade)
library(MASS) # Check out for conflict with tidyverse::select
library(tidyverse)
library(rstatix)
library(broom)
# Read and prepare data------------------------------------
df <- read.csv("plots_data.csv", stringsAsFactors = T)
## Change data... |
20c63de1ab60d5166b4251253048047f8c51cd9c | 4ee9d7179b4af02d1b2efcb0f0f43f03cabc1164 | /man/buildDotPlotDataFrame.Rd | 183bcb3799a33314cfd79b5cee15f333dd8569ad | [] | no_license | FrankD/NetHet_old | 78795a58d8a0484f4773230d391c0b99b0a4e0a8 | 38a55860acd636410c98ef30b51756776455be08 | refs/heads/master | 2020-04-16T07:10:05.290938 | 2015-08-18T12:07:48 | 2015-08-18T12:07:48 | 21,828,742 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 952 | rd | buildDotPlotDataFrame.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/netplot.R
\name{buildDotPlotDataFrame}
\alias{buildDotPlotDataFrame}
\title{Build up dataframe for plotting dot plot with ggplot2}
\usage{
buildDotPlotDataFrame(net.clustering, cluster.names, node.names)
}
\arguments{
\item{net.cluste... |
8b674b5f660ec523179dd032816b94cacd1d3185 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/brms/examples/gp.Rd.R | 36089a76270a42761a2dbf1a216f0bcdbde36648 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,239 | r | gp.Rd.R | library(brms)
### Name: gp
### Title: Set up Gaussian process terms in 'brms'
### Aliases: gp
### ** Examples
## Not run:
##D # simulate data using the mgcv package
##D dat <- mgcv::gamSim(1, n = 30, scale = 2)
##D
##D # fit a simple GP model
##D fit1 <- brm(y ~ gp(x2), dat, chains = 2)
##D summary(fit1)
##D me1 ... |
13b49f5e58303de00cfec3abecdec7811f8431c5 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sparkTable/examples/plot.Rd.R | 6fe3ddaeb30d1a0351e72e88518188adf4a3974f | [] | 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 | 380 | r | plot.Rd.R | library(sparkTable)
### Name: plot-methods
### Title: Plot objects of class 'sparkline', 'sparkbar', 'sparkhist' or
### 'sparkbox'
### Aliases: plot plot-methods plot,sparkbar-method plot,sparkbox-method
### plot,sparkline-method plot,sparkhist-method
### ** Examples
data(pop)
x <- pop[pop[,2]=="Insgesamt",... |
f148f843e776139e8ccf3c2b63b973f4d06ad999 | 346ee713e87ffdfe87c7b5b7d611d98da47b0f0b | /R/Funcs/genColors.r | 75a53b8f1bd481f3d9faed649ce778ad62465650 | [] | no_license | s7minhas/tensor | e705a86008d728cac235afd6138981c91b6fc99f | 61a94612ce8b7a227e9062cd9eed06d16b13f614 | refs/heads/master | 2021-01-17T15:23:38.496614 | 2019-08-23T04:03:37 | 2019-08-23T04:03:37 | 41,993,828 | 2 | 3 | null | null | null | null | UTF-8 | R | false | false | 786 | r | genColors.r | ####
if(!'Y' %in% ls()){ load(paste0(inPath, "YXsm.rda")) }
cntries=dimnames(Y)[[1]]
loadPkg('cshapes')
cmap = wmap = cshp(date=as.Date('2001-1-1'))
wmap = wmap[which(as.character(wmap$ISO1AL3) %in% cntries),]
coords=coordinates(wmap)
rownames(coords)=wmap$ISO1AL3
coords=coords[cntries,]
# Create colors
rlon = pi*coor... |
a59c54689f0d4c752020c8cc8d2215960deb7c18 | fb4b378a10e6a909b64402571d5ed37ee5aec9ed | /source/code/STK3100 H2017 Exercise 8.14.R | f2c92a930c846ce6dad93c79cd9db7b842cd8cfb | [] | no_license | JonasMoss/Exercises-in-GLM | c2282c0b908af036e3c554c3679636be58cf6fc2 | 23ee928522173125a878455e41e52023ddb85aba | refs/heads/master | 2023-07-08T23:37:07.394922 | 2021-08-19T11:44:42 | 2021-08-19T11:44:42 | 294,111,545 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 774 | r | STK3100 H2017 Exercise 8.14.R |
# STK 3100, fall 2017
# Exercise 8.14
# Clean up the memory before we start.
rm(list=ls(all=TRUE))
# Load packages
library(MASS)
# Read data
homicide.data = read.table("http://www.stat.ufl.edu/~aa/glm/data/Homicides.dat", header = T)
homicide.data[,"race"] = as.factor(homicide.data[,"race"])
head(homic... |
e4809a13fdb7f071497a4b15bc56ef029a0cbdcd | 08a6e8e2b86a015fe6f847102bf244fc1ce18d6a | /4-Demography/FastStructure/plotFaststructure.rails.R | 1c7c2f5f52e5b6a0b0d6b0cbbe187d15e3f50769 | [] | no_license | dechavezv/2nd.paper | 40d5578aef8dfdaa07a5d9eb27c9f632f0750cd3 | ffa6506ec062bc1442e3d0ee7325f60087ac53e1 | refs/heads/master | 2020-12-19T21:31:43.317719 | 2020-08-07T05:46:59 | 2020-08-07T05:46:59 | 235,857,029 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,116 | r | plotFaststructure.rails.R | require(ggplot2)
require(reshape2)
require(RColorBrewer)
colorPal=RColorBrewer::brewer.pal(n=12,name = "Paired")
colors=list(CA=colorPal[1],BAJ=colorPal[1],AK=colorPal[2],AL=colorPal[3],COM=colorPal[4],KUR=colorPal[5])
calldate="20200517"
data.dir="/u/home/d/dechavez/project-rwayne/rails.project/FASTSTRUCTURE/20200517_... |
db6ea9302ac93d7d7ad5350796210c8ff177b52f | 7e991fa8c111f28084beeb9ea2d3141f8d66ec39 | /man/cropFeaturesToBBox.Rd | 16f3a9b450743ac257c73be866ce34897752ef35 | [
"MIT"
] | permissive | wStockhausen/wtsGIS | 0809ec66cdb9ec8bc189184bec79ee5528ec84d4 | 5d868b31bbd7639af3fb9871b355f5531f934f50 | refs/heads/master | 2023-09-01T05:18:40.003523 | 2023-08-05T00:10:22 | 2023-08-05T00:10:22 | 124,290,835 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 935 | rd | cropFeaturesToBBox.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cropFeaturesToBBox.R
\name{cropFeaturesToBBox}
\alias{cropFeaturesToBBox}
\title{Crop features (a \code{sf::sf} or \code{sf::sfc} object) to a bounding box}
\usage{
cropFeaturesToBBox(obj, bbx)
}
\arguments{
\item{obj}{\itemize{
\item object ... |
14b8ffc3ad777618ced9afa6620b089a84068dd3 | 89bd53b22672cbe74e727e8e45defc891af1052d | /EM/test_em.R | 2404891d452949fa79db0b4de3ee94f78ddb6b75 | [] | no_license | hbhat4000/sdeinference | a62e8f5ddc6bbc913dbc8dc4c210ff30cf16143f | 14db858c43a1b50001818399ef16e74ae926f51b | refs/heads/master | 2020-04-04T05:30:05.922893 | 2018-07-11T22:59:38 | 2018-07-11T22:59:38 | 54,491,406 | 8 | 5 | null | null | null | null | UTF-8 | R | false | false | 1,844 | r | test_em.R | rm(list = ls(all = TRUE))
library("matrixcalc")
# xtraj = matrix(nrow = 1, ncol = 2)
# load necessary functions
source('dtq_main.R')
source('Dtheta.R')
k = 0.01
M = 800
deltat = 1
numsteps = 50
h = deltat/numsteps
theta = c(1, 0, 2)
init = 1
final = 3
source('kolmogorov_compare.R')
if(numsteps >= 1)
{
complete... |
f845f74d47b33e61576b86b25c414e8cb214bd7a | 7158cf060cccddf8c8c923f2d08e0c0c02a152bf | /practica01/practica02.R | f56ec4666a2ee86145c1eccffea166cd81a592b1 | [] | no_license | JCFlores93/math-statistics | 661a50e2ea4366f7555f6299100b60d76848a548 | 70301283f268a1487a6688b0c8b10cc4d7b29f44 | refs/heads/master | 2020-05-19T14:40:49.875797 | 2019-06-09T19:50:25 | 2019-06-09T19:50:25 | 185,065,485 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,086 | r | practica02.R | library(Hmisc)
library(ggplot2)
library(scatterplot3d)
library(rgl)
library(aplpack)
library(corrplot)
library(PerformanceAnalytics)
library(fBasics)
library(gmodels)
library(rpart.plot)
library(partykit)
library(caret)
library(e1071)
library(mlr)
library(rpart)
train<-read.csv("Morosidad.csv",sep = ';',encoding="UTF-... |
ee04ee06bb75f4785026ebf63805cb8dab484531 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.developer.tools/R/codepipeline_interfaces.R | 0f27e1d91a7ab15e777c169db812ec8a563d05c7 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | false | 70,352 | r | codepipeline_interfaces.R | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include codepipeline_service.R
NULL
.codepipeline$acknowledge_job_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(jobId = structure(logical(0), tags = list(type = "s... |
3eefe07e59088de2ec391a3a32344ba945172c0c | 4a8bddea17619eeb7ee0cee872531288365e8b5f | /Assignment 11.1.R | ebd97742ef3cba4eebf672f9292f84804044f23c | [] | no_license | Tejassingh1010/Assignment-11.1. | b3a201563e704a2e9ef3957a7b14e27d684e34ae | 63038ca4202c5667b80b63fa22cc51758b2ccc61 | refs/heads/master | 2020-03-30T17:18:05.634405 | 2018-10-03T17:05:36 | 2018-10-03T17:05:36 | 151,449,458 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,300 | r | Assignment 11.1.R | View(bank.additional.full)
dim(bank.additional.full)
#There are 41188 oberservations wtih 21 attributes in this data file.
str(bank.additional.full)
# All of them are in different format like int, numberic, factor .
psych::describe(bank.additional.full)
# This is a wondeful commnad to get the whole overvi... |
81de96690ba4e3616b826dd56953a09535326b6c | ffdece4a2168f3487e966f980cf486c97198fe18 | /step-function.R | c1840c0f421cfa2816c716e2927d9a82e3d8886b | [] | no_license | gpapadog/RJ-MCMC-examples | 971d33e547b3518f3f4945b617bd66042b14802d | 3fd95ec9d32d165973872cf2334910fa618147f0 | refs/heads/master | 2021-01-12T17:08:23.265664 | 2017-09-05T17:34:03 | 2017-09-05T17:34:03 | 69,982,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,303 | r | step-function.R | CalcLogLike <- function(Y, X, cutoffs, heights, sigma) {
if (length(heights) != length(cutoffs) + 1) {
stop('Error: heights should be one element longer than cutoffs.')
}
mean_function <- rep(heights[1], length(X))
for (ii in 2:length(heights)) {
wh <- which(X >= cutoffs[ii - 1])
mean_function[wh] <... |
b0538f216637b8d0e3f94da240649e766cece310 | e45aca549a2df39c9158b73b78015db58f7832ec | /sandbox/sentiment_graphs.R | 12eff6ee87f3d28ffdc81e53528c1480a4869b33 | [] | no_license | andrewheiss/Media-and-NGOs | 5e502f4dd7209c3247df05e2f95011e18a92968f | f4ae14869f1d9183d47123fd3b1779a12ae3cbdf | refs/heads/master | 2020-06-03T19:05:48.132168 | 2014-03-26T16:04:20 | 2014-03-26T16:04:20 | 10,343,784 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 459 | r | sentiment_graphs.R | library(ggplot2)
library(reshape2)
ahram_sentiment$publication <- "ahram"
dne_sentiment$publication <- "dne"
egind_sentiment$publication <- "egind"
plot.data <- data.frame(rbind(ahram_sentiment, dne_sentiment, egind_sentiment))
plot.data$publication <- factor(plot.data$publication)
plot.data <- melt(plot.data, id=c("... |
55b27ca430ae4afe9cafeea5995a32148c3d329a | ded254a14f62f6705715c719f126ff6b557a661e | /R/sequence_tools.R | 35ebb2e13cf01f23a8b6a916f5d0873bca794be7 | [] | no_license | pedroivo000/lambdaPrimeR | 9a2269fc967242ed79b3a032e0c2cb1b33db1898 | 0a40261fabea18075fc953a2c62e26620c57b65a | refs/heads/master | 2021-06-04T07:57:45.801757 | 2020-01-20T05:34:36 | 2020-01-20T05:34:36 | 119,300,044 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 742 | r | sequence_tools.R | ################
#Sequence tools
################
complement <- function(sequence) {
seq <- toupper(sequence)
complement <- chartr('ATCG', 'TAGC', seq)
}
reverse_complement <- function(sequence) {
complement <- complement(sequence)
revcomp <- stringi::stri_reverse(complement)
}
simulate_pcr <- function(seque... |
35715ba7038d8ea2b9b99756382ce2944f4a35f1 | 27a4b400cacbe8bf9958bae8b6b126640bc9e6d7 | /R/search.R | 04db4314b9cdf8831f47f104a5390032030bd151 | [] | no_license | dhersz/replr | e3ea52aac32dbec5725fb9b5fb6ce8c2920594ba | 95e4915cf9a3f455a47b4f336cbf6ffb4b2dd200 | refs/heads/master | 2023-05-09T23:58:20.252248 | 2021-06-09T22:23:24 | 2021-06-09T22:23:24 | 374,838,597 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 308 | r | search.R | custom_search <- function(){
env <- parent.frame()
packages <- character()
while (!identical(env, emptyenv())) {
packages <- c(packages, environmentName(env))
env <- parent.env(env)
}
# base -> package:base
packages <- sub("^base$", "package:base", packages)
return(packages)
}
|
9d0d6b96a464193c44ac30596568e8353db228c1 | 2bf9a12e1d07eb63d89a74df4659f9bb3cab5be6 | /JSCORES.R | c58a5e1e773f695408ad58eff990163cb789d854 | [] | no_license | rdolia/All-my-codes | bac39b6f46ab5a4407cc3b9fc40bbc28485de0c8 | 30f5ded6f6d6a981798faf226879a94efaad578b | refs/heads/master | 2020-04-09T18:01:17.598378 | 2019-03-12T09:50:07 | 2019-03-12T09:50:07 | 160,499,222 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 599 | r | JSCORES.R |
# DATA JSCORE FILE
library(xlsx)
DATAJSCORES <- read.xlsx("D:/Rachit/7. Workforce Transformation/DATA Jscores.xlsx",1)
View(DATAJSCORES)
library(sqldf)
#modify this to do searches.
# FOR PEOPLE WITH FOUNDATION SCORE
sqldf("SELECT `EMP.Name`
FROM DATAJSCORES
WHERE `Skill` = 'Foundation Co... |
d4c209a709fc2a317ec0e79997be9f3769f33eae | 8091ad65b820e9d33a32f368d3316be84e8f686e | /app_allinone.R | 89efc01461d59862b60cc2eacd9a5970460a084b | [] | no_license | rachelss/ShinyTreeCompare | 336dae2b7c9eb96b24ec7eeb3a13f00117076529 | ade531389676174c02dd61ac4054b2708d9f1926 | refs/heads/master | 2020-04-25T05:36:09.632865 | 2019-03-21T12:54:50 | 2019-03-21T12:54:50 | 172,548,585 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,819 | r | app_allinone.R | library(shiny)
library(magrittr)
library(ape)
library(ggtree)
library(gridExtra)
library(cowplot)
library(shinyBS)
library(shinyLP)
library(shinythemes)
#mammals <- read.tree("mammal_raxml_bmc_paper_data/alltrees.tre")
#get species list
#species <- sort(as.character(mammals[[1]]["tip.label"][[1]]))
#set root for eac... |
2660dc5ca45ea4f204bb11f016962d6d935b0295 | d1a62fa02626e48a354d409662270fd42f2d38cc | /quizzes.r | ea5b0e73e93d89cfd8f2cbea85496de191f903ea | [] | no_license | ACHANGWA/PracticalMachineLearningAssignment | 64ac766628be1eb5fae6a7abf44be0abb9e1ebb6 | 36ac9c711645facd046a5fea2c84e961f0c7a91a | refs/heads/master | 2021-01-16T18:38:42.336480 | 2017-08-18T04:36:50 | 2017-08-18T04:36:50 | 100,105,508 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,724 | r | quizzes.r | # Quiz 2
# Question 1
library(AppliedPredictiveModeling)
library(caret)
data(AlzheimerDisease)
adData = data.frame(diagnosis,predictors)
trainIndex = createDataPartition(diagnosis, p = 0.50,list=FALSE)
training = adData[trainIndex,]
testing = adData[-trainIndex,]
# Question 2
library(AppliedPredictiveModeling)
data(con... |
a7160e10a8f0cb246bcef53f3d531ffdc060ac64 | d1852a229192aa890f4e7b242c9d06b7b69bfefb | /Assignment_5_TimeSeries_Predictions/timeseries_predictions.r | 27a97591af9dc69a2e526e093dcf831b3e520e60 | [] | no_license | nandakrishna75/Data-Analytics-Assignments | a52e746020e124422496cd02dd31b28e68e8f329 | 65f017f17918c2c3d076206efc2bc7dbee301b33 | refs/heads/master | 2020-07-16T11:10:44.129970 | 2019-12-01T06:57:02 | 2019-12-01T06:57:02 | 205,778,502 | 1 | 3 | null | 2019-11-19T12:47:19 | 2019-09-02T04:46:02 | Jupyter Notebook | UTF-8 | R | false | false | 2,394 | r | timeseries_predictions.r | library("fpp2")
# MOVING AVERAGES
# using the electicity sales of south australia as the dataset
autoplot(elecsales) + xlab("Year") + ylab("GWh") + ggtitle("Annual electricity sales: South Australia")
# plotting and using 2 Moving Average as the prediction model
ma(elecsales, 2)
autoplot(elecsales, series="Data... |
374eb2c1164b30b8aa7ebe8f8099ea15524edb50 | 9d27bab3a73f7238b864f483f5f409bc156b270d | /Unsupervised_Learning_Project.R | 6296c561c3e85a87515df9b2e5c1ae6c028bd175 | [] | no_license | aModernExplorer/College_Projects | ff8af95341785f87116bcdde0f68b31b15826874 | e1b8f2c83bdadc747eff0034122589389d217574 | refs/heads/master | 2022-12-22T23:29:46.538392 | 2020-09-26T03:17:11 | 2020-09-26T03:17:11 | 295,476,623 | 0 | 0 | null | 2020-09-26T03:17:12 | 2020-09-14T16:35:33 | R | UTF-8 | R | false | false | 11,091 | r | Unsupervised_Learning_Project.R | ############################################################################################
Imports
############################################################################################
library(plyr)
library(psych)
library(fpc)
library(ggplot2)
library(tidyverse) # data manipulation
library(cluster) # clus... |
da8bf5cb9145ac692d1f8fc2b752446c0296f0b2 | 2b59fe5ace08b332c7d8d486772401f7f1ac16e0 | /R/design.R | 7e6a44d36e60ef32d740dd4c3bcb32210d66ad40 | [] | no_license | neraunzaran/flipMaxDiff | 5dc04d5408582bf0f712d00cd9e38a51f2861ae4 | 0573ebbb5e0fdaa53933974a2462914d787bf448 | refs/heads/master | 2022-12-09T15:45:09.495248 | 2020-09-10T19:33:13 | 2020-09-10T19:33:13 | 288,797,569 | 0 | 0 | null | 2020-08-19T17:41:46 | 2020-08-19T17:41:46 | null | UTF-8 | R | false | false | 8,732 | r | design.R | #' \code{MaxDiffDesign}
#' @description Creates an experimental design for a MaxDiff experiment.
#' @param number.alternatives The number of alternatives in the experiment. For example, if you are doing a study investigating preferences for 10 brands, then 10 is the number of alternatives.
#' @param number.questions Th... |
21f2cc220ce3c30b75859cde36a6271beaffa424 | 15b4217a06d73b3dc946df4e26704bf1b597cd91 | /scripts/foredrag-tromso-feb-2015.R | 852cf20c5c4179308e47a37a4725073aec664f09 | [] | no_license | hegemb/first-test | 8c1c14cd12db39e60d57cbe2c59d931fb1ffda0c | 395bfcccc4ac43f8fd0695efd95324a94e93e423 | refs/heads/master | 2021-01-10T11:38:55.274259 | 2016-02-24T14:20:56 | 2016-02-24T14:20:56 | 52,445,919 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,363 | r | foredrag-tromso-feb-2015.R | ## -------- FUNCTION ------------
## Make plots, function:
## Pick out gene to investigate:
set.seed(1)
gene <- featureNames(eset.noNorm)[sample(1:nrow(eset.noNorm),1)] ## Randomly chosen number..
## "cl36CSOeh6ule_H8uE"
geneWiseMDSplots <- function(aeset, name, gene=gene){
pdf(file.path(resultPath,paste0("geneWiseP... |
cc4308aea629ee2f518f8dd5f6180e92660493dd | 91b8791e9338a8e561a1f49e369c5188b8b45c30 | /Documents/CleanData/run_analysis.R | 1412cc4cbdc919f90950c3051767f2ce7eb45be3 | [] | no_license | hiladg/ExData_Plotting1 | be9546a569df32a6a7e093a4d5cba23b74fddc1e | 35d94b7bca5ffb8676a6e428d5c71c1a5c52d3c4 | refs/heads/master | 2020-12-31T03:02:48.443658 | 2015-04-12T16:47:54 | 2015-04-12T16:47:54 | 33,824,337 | 0 | 0 | null | 2015-04-12T16:29:14 | 2015-04-12T16:29:14 | null | UTF-8 | R | false | false | 3,888 | r | run_analysis.R | ## first we load the data into R
## These are the folders' names
## Please note that the operating system is Windows! (clause 1)
wd_train<-"./getdata-projectfiles-UCI HAR Dataset/UCI HAR Dataset/train/Inertial Signals"
wd_test<-"./getdata-projectfiles-UCI HAR Dataset/UCI HAR Dataset/test/Inertial Signals"
##Fo... |
838bd8465286fa9354f7e51b6111eb59b4998cbb | 1eeaa7b3dc0411d3788c3cdf8da57b97cb93d5ab | /single-extract.R | d1d4f3021263cea0b194514a4c4fb421414a5f9e | [] | no_license | CBUFLM/topographic-distance | d174c508318df84c2f743302736b277373a5817c | 74b84286e7147f592b2d361a2235c4ac254e28b3 | refs/heads/master | 2020-03-28T04:26:35.045116 | 2011-03-08T19:18:56 | 2011-03-08T19:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,089 | r | single-extract.R | #!/usr/bin/env Rscript
require('raster')
require('rgdal')
# the original data they sent on is all in NAD27, may want to check if they're
# measuring things in a different datum for consistency
setwd("~/d/education/frog-pathogen")
r <- raster("data/seki/dem/elev_met/hdr.adf")
# Read in the polygon shapefile, reshape... |
1ab8b749fdcbe9b4f4245ebaddfeb198f8aa1fa4 | d92c025b8495184365b4555c270abfda69473c2b | /man/mat2coords.Rd | 59e75ac1a3cfe52cbcaa18da913ba58ef3e3dae5 | [] | no_license | npetraco/feature2 | 9877ff6117edd173ea432c17ef273f3c6d84437f | 09c113fdb31b9a3ba3fd3570bb3013b7a191c8d6 | refs/heads/master | 2021-03-30T15:47:02.853302 | 2017-06-26T02:57:29 | 2017-06-26T02:57:29 | 40,421,436 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 639 | rd | mat2coords.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/mat2coords.R
\name{mat2coords}
\alias{mat2coords}
\title{mat2coords}
\usage{
mat2coords(dmat, x.phys.max = NULL, y.phys.max = NULL)
}
\arguments{
\item{dmat}{A matrix of points.}
\item{x.phys.max}{XXXX}
\item{y.phys.max}{XXXX}
\ite... |
2e4ff85cd24e8877d9389d85e2a5beef36020f38 | 3f90e417415a4b2808bbe4f4cff7601c2272a94e | /expanding(1).R | f162cd00fca8645b4422878fcf072b0379fc54da | [] | no_license | nuke705/MiscR | f977dcca8ce89e8e73c3b9bef8b5c0c8dd4f6a31 | 8c6005ed053925de0434c084ab5456ea26b6a22f | refs/heads/master | 2020-04-03T07:57:22.358605 | 2018-10-28T21:49:52 | 2018-10-28T21:49:52 | 155,118,918 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,932 | r | expanding(1).R | #expanding
library(rpart)
library(readxl)
library(plyr)
setwd("/Users/admin/Desktop/msfe/principal practicum/week11/hw11")
ndata<-read_excel("final_data.xlsx")
pretotal=NA
return=rep(0,48)
cutoff=matrix(data=0,nrow=48,ncol=4)
for (i in 1:48) {
ndata_train = ndata[1:(384 + 4*(i-1)),]
ndata_test = ndata[(385 + 4*(i... |
d9c5de9170a4eacc2180a2ea867eec16bfeb9b41 | 99037a80c2ec155aba772b778ac3b7c814d97d22 | /ui.R | 343dff9d6964705afe025debcaf4a6e247e69b8b | [] | no_license | miharanGitHub/DataProducts | a6be8847057bedb39cbe26bd3ededd440e5e6dce | 0912ac995178438e62a2aacaeb15e5ddec45dfee | refs/heads/master | 2021-01-23T19:46:24.687383 | 2015-04-18T14:45:16 | 2015-04-18T14:45:16 | 34,169,320 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,021 | r | ui.R | library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Randoms with defined correlation"),
sidebarPanel(
sliderInput("n", "Number of simulations:",
min=50, max=10000, value=500),
p("Define the number of simulations"),
br(),
... |
7be00e95d50a310401e6b6b76ad2ea28626e4071 | 179e29245509e1b61709eba0502eeac6de10ea60 | /man/dist.Rd | e80471daf90431126760a25102c810405579a987 | [
"MIT"
] | permissive | jacquesattack/kmeanspp | 8081999e03e745967a3da983f5673edda2483242 | 4a218ea3c3e4d680f765de04cb818da1c82158cc | refs/heads/master | 2020-12-29T07:18:42.638123 | 2020-02-08T17:40:09 | 2020-02-08T17:40:09 | 238,508,118 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 351 | rd | dist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kpp.R
\name{dist}
\alias{dist}
\title{Calculate Euclidean distance between two vectors}
\usage{
dist(v1, v2)
}
\arguments{
\item{v1}{First vector}
\item{v2}{Second vector}
}
\value{
The Euclidean distance
}
\description{
Calculate Euclidean ... |
e27d6d2d857dcebe5f915a7030dc4eb201ba6bcf | cc7124ca13f2daee8120960334452e655b22d301 | /plot1.R | 12e9d763880b9032f1313f51cc74d8772f6b22e5 | [] | no_license | liyunchao/ExData_Plotting1 | 9f4aba27fe3dc933dcf1d368fd48d33565c7d651 | 131c2d4a13f32da0223ac1f336c97ad57a8fc963 | refs/heads/master | 2021-01-18T00:44:35.123150 | 2016-09-18T16:10:18 | 2016-09-18T16:10:18 | 68,445,586 | 0 | 0 | null | 2016-09-17T10:22:21 | 2016-09-17T10:22:21 | null | UTF-8 | R | false | false | 161 | r | plot1.R | source("data.R")
png("plot1.png")
hist(target.house$Global_active_power,col="red",main="Global Active Power",xlab = "Global Active Power (kilowatts)")
dev.off()
|
9a049931f6241c2e5697facfed054d466f4fe37f | 050854230a7cead95b117237c43e1c8ff1bddcaa | /demo/pub_code/R.Figures/grl.figure1.1.R | 969fbc18719e38137d7586b8bcdb3781c0487f10 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | USGS-R/mda.lakes | 7b829d347e711416cbadbf50f8ac52c20546e7bc | eba6ddfba4d52c74e7b09fb1222772630dfa7f30 | refs/heads/main | 2023-04-15T18:10:46.043228 | 2020-11-13T18:43:09 | 2020-11-13T18:43:09 | 7,429,212 | 1 | 11 | null | 2023-04-07T22:44:55 | 2013-01-03T19:50:59 | R | UTF-8 | R | false | false | 2,448 | r | grl.figure1.1.R |
#all.slopes = fread('all.slopes.csv')
library(data.table)
library(plyr)
library(fields)
library(mda.lakes)
#source('../R/Libraries/GLM.functions.R')
source('luke.legend.R')
source('sens.confint.mod.R')
all.slopes = fread('all.slopes.csv')
wi = fread('../../../inst/supporting_files/WI_boundary_lat_lon.tsv')
... |
5e37b7ddcf6a016b14dcdafc4c769ea5e18ee829 | 42a3f11d0de26fa754b4388f31570bc0a6dd5179 | /shiny/shiny_wqdi/server.R | 80262f3193c110feab5d6e6b216d584a7e1d307a | [] | no_license | InterstateCommissionPotomacRiverBasin/wq_data_inventory | e0b7aa4a01a14e6b85a951f9d634d09c34d0c120 | 674824a955628d0bc859b7f427b9656246f53625 | refs/heads/master | 2021-07-25T09:10:43.851314 | 2018-08-09T19:22:09 | 2018-08-09T19:22:09 | 133,057,365 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,087 | r | server.R | server <- function(input, output, session) {
# Loading Page (Server) ---------------------------------------------------
load_data()
hide(id = "loading_content",
anim = TRUE,
animType = "fade")
show("app_content")
# Information Tab (Server) ------------------------------------------------
output... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.