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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a80ea44d0a7de279d0e0699a6a326cc2f0d8611e | f860a2ddbebe96ad25f2347823d1ad31a5ae949e | /R/inclass/class_5.R | 5e577869d59c232fad11fb8e2075e7d932cf20b6 | [
"MIT"
] | permissive | mespe/STS198 | edd0e966a329b8701048e2c8371a57b0a261f2fa | 4dd8184e67689ff9d0af3dab1813973e46f59df3 | refs/heads/master | 2021-01-22T18:51:06.426391 | 2017-09-15T23:10:34 | 2017-09-15T23:10:34 | 85,125,705 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,917 | r | class_5.R | # Plotting with ggplot2
# Apr 17, 2017
# STS 198
# Load the package we need with the library command
# Remember, the package has to be installed first,
# and will need to be reloaded each new R session
library(ggplot2)
load("../data/health_costs.rda")
# The basic structure of ggplot is:
ggplot(health, aes(x = Averag... |
a937860b9fe954c13611820db6e7bd3719e1a6ac | 525ae71105cf4e428dcdf7f991b5a930e7e50c77 | /doc/figures/kernel-expt-extra.R | 3835c30100bc6fc7bc40cef74d5e5ded7336724a | [] | no_license | rmcclosk/thesis | 3e6d04d767fb31da2dc01ae9911d57dfcb6d414a | 1dfaece42f34ad63741e04199fbebd6ed79c88cf | refs/heads/master | 2021-01-21T18:46:17.045602 | 2016-07-27T17:43:26 | 2016-07-27T17:43:26 | 44,255,896 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,839 | r | kernel-expt-extra.R | #!/usr/bin/env Rscript
library(igraph)
library(ape)
nnode <- 7
ninf <- 4
set.seed(0)
pow <- c(0.5, 1, 1.5)
col <- c("red", "blue", "green")
inf.col <- "black"
for (i in 1:3) {
g <- sample_pa(nnode, m=2, power=pow[i], directed=FALSE)
png(sprintf("tinynet%d.png", i), bg="transparent", width=100, height=100)
... |
cee547a2f39e69daf3b6449167ec917d2b5527b9 | 9d34bd30b0396a15cd4ba9bd853dd44c5ff24939 | /Chapter03/7_keras_mnist_vae_outlier.R | 4d14aff61ff49d563cb9bc62dc3fc4522ed0a479 | [
"MIT"
] | permissive | leetschau/R-Deep-Learning-Projects | 1db7edcf4adf50ab399a40e8e8864f62698584a8 | 162902e51c873ad1b6cbb95d32ba4e49684a53e0 | refs/heads/master | 2020-03-26T23:25:46.872402 | 2018-08-27T02:12:05 | 2018-08-27T02:12:05 | 145,541,565 | 0 | 0 | MIT | 2018-08-21T09:34:59 | 2018-08-21T09:34:58 | null | UTF-8 | R | false | false | 3,266 | r | 7_keras_mnist_vae_outlier.R | library(keras)
# Switch to the 1-based indexing from R
options(tensorflow.one_based_extract = FALSE)
K <- keras::backend()
mnist <- dataset_mnist()
X_train <- mnist$train$x
y_train <- mnist$train$y
X_test <- mnist$test$x
y_test <- mnist$test$y
## Exclude "0" from the training set. "0" will be the outli... |
d82c82e261eda6ddd678d4edfd9477d7f02b4818 | 7f3b374a7b55239d572950f7e4e255e85bfeb98e | /tests/testthat/test-goslim.R | 3ec54ad35f7414997d71687c4cd8bb1630f4fa61 | [
"Apache-2.0"
] | permissive | lianos/msigdb.data | be31b676676eeb694afb6dc58b3c7f38d73295c1 | 68db424ae9a617e4856487733df3d43dad4aed86 | refs/heads/master | 2020-07-23T16:49:24.592068 | 2020-06-15T15:47:57 | 2020-06-15T15:47:57 | 207,635,979 | 0 | 0 | NOASSERTION | 2020-02-13T00:12:58 | 2019-09-10T18:39:18 | R | UTF-8 | R | false | false | 642 | r | test-goslim.R | context("GO slim")
test_that("go_slim = 'generic' returns slim ontology", {
c5.all <- msigdb_retrieve("C5", go_slim = FALSE)
c5.slim <- msigdb_retrieve("C5", go_slim = TRUE)
sum.all <- c5.all %>%
group_by(name) %>%
summarize(gs_id = gs_id[1], subcategory = subcategory[1], n = n()) %>%
ungroup() %>%
... |
22ec42a50d8f783a15334b085d52530870081160 | 7ef89cac1d731432e4b3e741920a8e13aa793b13 | /man/saveXLworkbook.Rd | f6c617e854a2ea59140fdcf2220a38d25d85f5a6 | [] | no_license | cran/xlsimple | 70d8a6285f07082dbbe8c49e0dbac70627278a4c | 3f8a8f3454ef8a1c169de070f45b28594e8680bd | refs/heads/master | 2021-01-18T03:14:35.446704 | 2020-07-31T23:50:03 | 2020-07-31T23:50:03 | 85,837,170 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,300 | rd | saveXLworkbook.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/saveXLworkbook.R
\name{saveXLworkbook}
\alias{saveXLworkbook}
\title{Save 'Excel' Workbook to disk}
\usage{
saveXLworkbook(wbList, fname = "xl.Out.xlsx", timeStamp = FALSE, clean = TRUE)
}
\arguments{
\item{wbList}{list with workbook and defa... |
aeb9c9cea212b8a7ddd98ae299a886f012caf287 | 32d68b278e9ef10d76e78acd1cef62407826f9dc | /cfl/server.R | f0c1d9a99df868bf88716f69682053bab92af120 | [
"MIT"
] | permissive | ycalvinner/shiny-server | 78b2c978f72a0f0a2aeeca8793469758de7ee233 | ebbc091535197dada1b14afa87e2cd12f832f797 | refs/heads/master | 2021-02-07T17:33:11.686108 | 2020-02-29T23:57:52 | 2020-02-29T23:57:52 | 244,057,426 | 0 | 0 | MIT | 2020-02-29T23:34:38 | 2020-02-29T23:34:37 | null | UTF-8 | R | false | false | 7,762 | r | server.R | library(shiny)
library(shinyjs)
library(dplyr)
library(ggvis)
library(reshape2)
TEST_GAMEPAGE <- FALSE
demo_clips <- list(
list(videoId = "snwanVaPMys", startSeconds = 126, endSeconds = 135),
list(videoId = "snwanVaPMys", startSeconds = 145, endSeconds = 153),
list(videoId = "snwanVaPMys", startSeconds = 196, e... |
e3d8e44495f39c504dfc66043c61ec9a978974ff | cbf36503e046f03f25e54411352ba25ab872fba9 | /R/tvvarGAM.R | 11beb797ed300f1df7209f01d33a3870f05801e5 | [] | no_license | LauraBringmann/tvvarGAM | f3d618ae93d9971dea1747bb7a1ed55f8775f3f3 | 099f68a69c842f88d3be75a72db9a884d0686756 | refs/heads/master | 2023-09-01T03:56:34.587239 | 2023-08-27T16:54:05 | 2023-08-27T16:54:05 | 99,564,430 | 4 | 2 | null | null | null | null | UTF-8 | R | false | false | 6,397 | r | tvvarGAM.R | #' @import stats graphics utils mgcv mvtnorm
#' @title Fit the xxx model (gam)
#'
#' @description \code{tvvarGAM} xxx.
#'
#' @param data An \eqn{(nt\times nv)}{(nt x nv)} data matrix, or an object of
#' class 'tvvarSIM'.
#' @param nb xxx (default = 10).
#' @param consec xxx (default = \code{NULL}).
#' @param scale ... |
1eb87be44231070680e293bdb5bdf13ad9593826 | 534184299c941fce365c0f8b9bdc9689f1e7ebc5 | /tests/testthat/test_fclean.R | 304707bd9b0344dad2960ae3822bbff1321b63f2 | [] | no_license | schignel/foofactors | a41d9a47d80a0d0a7040d8ceb72d0001af1d81d6 | 14873d2f64bccb447a81fbe7cae0f04162eef5eb | refs/heads/master | 2020-04-06T07:24:43.776916 | 2018-11-16T02:11:23 | 2018-11-16T02:11:23 | 157,271,487 | 0 | 0 | null | 2018-11-12T20:20:53 | 2018-11-12T20:20:53 | null | UTF-8 | R | false | false | 1,209 | r | test_fclean.R | context("Cleaning factors")
# test that various types of inconsistencies (mimicking common data entry errors) are all cleaned as expected.
test_that("fclean cleans factor (or character)", {
production_leftgap <- factor(c(" HIGH production", " MED production ", " MED production ", " low Production"))
pr... |
cba1da52d6c76eeaaebe6a69335953fe97fe17a7 | 9b71957ad9a560abb9caaadaf002a6d3454b7f52 | /UniProj/prac.R | 5ed58d0571f41f09c8102b85925afc0023f29964 | [] | no_license | akersh1996/RWork | ba463b083b182368e120c225282a824a292bb17f | 14760f365734707bcf477f3b333fefbb228a57e2 | refs/heads/master | 2021-05-04T13:53:05.259411 | 2018-03-16T20:56:24 | 2018-03-16T20:56:24 | 120,324,216 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,551 | r | prac.R | cat("Some routines for the Math3733 practical\n")
cat("Version 1.4\n")
# updated Nov 2002
bmsim=function(nsim,ntime) {
wn=matrix(rnorm(nsim*ntime),nrow=nsim,ncol=ntime)/sqrt(ntime)
bm=matrix(0, nrow=nsim,ncol=ntime+1)
for(i in 1:nsim) bm[i,]=cumsum(c(0,wn[i,]))
bm
}
stoch.int=function(fun1=fun.null,fun2=fun.nul... |
0400c58ea4fda13f0748ca990c7f6dd927684383 | fa905c9b9d21e30e49dac046ee3b6577b78d883c | /web_illumina_custom.R | 38f3b6b7b77702cb18422eb510bfb31ce15ba57a | [] | no_license | timplab/timp_illumina | 3ac1d79c8a844ea8666e6bd51e974e9f7077a0f6 | fc0b06a02629a3b28b5b03be3edcd14e5b8203ee | refs/heads/master | 2021-07-26T23:51:55.612355 | 2012-09-07T13:59:15 | 2012-09-07T13:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,257 | r | web_illumina_custom.R | ##Ok - make some plots specific for webpage
##Adding mds and dot plot
setwd("~/Data/Illumina_Bead/Analysis/")
load("predata.rda")
library(RColorBrewer)
library(plotrix)
hector=read.csv("~/Data/Illumina_Bead/Analysis/ordered_cpgs.csv", stringsAsFactors=F)
top25=hector$X[1:25]
##PCA
p=prcomp(t(data$fqbeta[top25,]... |
bfee71731e18ffa1a6e6c4d0801e39a6aa67996e | e5ee4cb735ceda3e28d0c7f759bfc63857ca30f6 | /scripts/secondchart.R | 14f0dc4e20e682ddbeed8eda2911072116ed7545 | [
"MIT"
] | permissive | yiuchungcheung/INFO201-Fast-Food-Restaurants-in-America | c78d1d34293f84d7fa35438617c5cd8ed6047bde | 9aed85e8ffed48d87f84c942ecdac318e9a9909b | refs/heads/master | 2022-04-22T04:19:23.224437 | 2020-03-11T15:28:18 | 2020-03-11T15:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 855 | r | secondchart.R | library(dplyr)
library(lintr)
library(styler)
library(tidyr)
library(leaflet)
library(ggplot2)
library(plotly)
library(stringr)
data <- read.csv(file = "data/Datafiniti_Fast_Food_Restaurants_May19.csv", stringsAsFactors = FALSE)
second_new_chart <- function(df, number, colour_bar) {
number <- as.numeric(number)... |
c74cf90bd679c96d5098ad18a2a4f88258e784b6 | 331e7816d55b9d3de50253d1b096e8707859a11c | /R/calmarFunctions.R | c5afafa81f43108dc60a65722028c4870f3f3477 | [] | no_license | haroine/icarus | e515732a69d82614bb248807f882559188d291a7 | bd51ecf29bc7f07111219534dbd401f78c1daa84 | refs/heads/master | 2023-06-09T19:41:26.432469 | 2023-05-27T15:42:26 | 2023-05-27T15:42:26 | 38,872,499 | 10 | 5 | null | null | null | null | UTF-8 | R | false | false | 25,159 | r | calmarFunctions.R | # copyright (C) 2014-2023 A.Rebecq
# Functions designed so that calibration can be made in a familiar
# setting for Calmar and Calmar2 users
nModalities <- function(col)
{
return(length(unique(col)))
}
calibrationMatrix <- function(entryMatrix, popVector=TRUE, isQuantitative=NULL)
{
if(is.null(isQuantitative)) {
... |
627937f64d7767a6432205be04926092de542f7a | 1da1269745b6ce6806ffd7a15668fc27470cd921 | /R/ghg_q_subpart_level_information.R | c903eb6d55d5f343ebf7ed849be72b2ff2a2fb52 | [] | no_license | markwh/envirofacts | d0c3bb7495060fd00b825c1e72602479f8a92b72 | 815ba95808a37f552d9a7041be532817e4766b90 | refs/heads/master | 2021-01-10T07:14:32.874354 | 2019-03-27T02:28:15 | 2019-03-27T02:28:15 | 50,798,175 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 638 | r | ghg_q_subpart_level_information.R | #' Retrieve q subpart level information data from ghg database
#'
#' @param FACILITY_ID e.g. '1000029'. See Details.
#' @param REPORTING_YEAR e.g. '2010'. See Details.
#' @param GHG_NAME e.g. 'Biogenic Carbon dioxide'. See Details.
#' @param GHG_QUANTITY e.g. '0'. See Details.
#' @export
ghg_q_subpart_level_informati... |
b6b5f0973303271aa6b88927da40f74adcfea458 | ceb3918a00d69ea84b6a0057cf84da1ccb736c7c | /man/shrink_env.Rd | b9918578f10990638ed8fe9fc876536492cbc539 | [] | no_license | zsmith27/CHESSIE | 3006d6f7b4b49f1bf846837d597fd31c5d87996b | 785192be00e1b4713fa00238b93996f8d365f9f2 | refs/heads/master | 2020-05-25T22:14:07.599940 | 2018-08-20T16:09:42 | 2018-08-20T16:09:42 | 84,974,122 | 1 | 2 | null | null | null | null | UTF-8 | R | false | true | 409 | rd | shrink_env.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/site_classification.R
\name{shrink_env}
\alias{shrink_env}
\title{Just Important Environmental Parameters}
\usage{
shrink_env(prep.data)
}
\arguments{
\item{prep.data}{= the output of the prep_data function.}
}
\value{
A data frame of environ... |
6e6ba2469164d1caf0e8f8f8112f9cdf2972a1b5 | 55dc28128b9e6f4c9aed24d48b82f0aec1b6b8d0 | /run_analysis.R | ed8423c9351d3f9d9d31ef7d3deab9ffc9f570d3 | [] | no_license | gwpjp/JH3---Project | 8e628a1feffdf55278d179e7e9ac3a406813602f | 12f698e337faf65d6cfc7e38b267abfb015fd980 | refs/heads/master | 2021-03-12T20:25:55.680463 | 2015-04-24T13:35:09 | 2015-04-24T13:35:09 | 34,496,298 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,327 | r | run_analysis.R | #Assuming that the working directory is the UCI HAR Dataset, the following
#steps read the data into R.
Xtrain <- read.table("./train/X_train.txt") #reads the 561 variable training set
subtrain <- read.table("./train/subject_train.txt") #reads the subject training set
Ytrain<- read.table("./train/Y_train.txt") #reads ... |
2bbefb8365b995510c1e08bf9a60ca1878ebd2a6 | a7b6719bd2d2337538dda259cbfae4d815366dee | /pollutantmean.r | acfdc67fd99478d2a6bdbd037edcdc2dffc20909 | [] | no_license | iamShashi/data-science-Coursera-using-R | 5bfe203a7d3798326869c13c680050292f1fcfaf | 2ba27bccfb43decbe6745c4c252d994e5ffa8f55 | refs/heads/master | 2021-01-20T19:39:19.350854 | 2016-07-01T17:01:16 | 2016-07-01T17:01:16 | 62,407,567 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 396 | r | pollutantmean.r | pollutantmean<-function(directory,pollutant,id=1:332){
e<-0
colb<-integer(length(1))
for( i in id){
i<-formatC(i,width = 3, format="d",flag="0")
dirr<-paste(directory,i,sep ="/")
dirr<-paste(dirr,"csv",sep=".")
a<-read.csv(dirr)
b<-a[pollutant]
b<-as.numeric(unlist(b))
... |
5a8a8c14451a2f69547a56b8fc6fe62cd69cb275 | 6d93b620bba520d574f5d4c7842d76af49b8c3b2 | /Deprecated/21_01_Format_Reviews_Data(deprecated3).R | ff18b5ea64549d4aab3a76aabbc7dc0f11c31e8f | [] | no_license | agrajg/Paper2_Code | 48301641107ddef25f892d7056798505781c7e5c | 11f431580c8769182435ca9a2d5d1e3c1134fa5b | refs/heads/master | 2020-05-01T01:42:42.418713 | 2019-06-14T16:22:16 | 2019-06-14T16:22:16 | 177,200,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,025 | r | 21_01_Format_Reviews_Data(deprecated3).R | cat('Begin Running file : ', "Loading_the_data_file.R", " ...", '\n')
cat('--------------------------------------------------------', '\n')
file.time <- Sys.time()
cat('Clearing up workspace.', '\n')
cat('----------------------', '\n')
{
rm(list = ls())
source(file = "00_00_Preamble.R")
packages<-c("ggplot2", "fo... |
8ba4af1f57c6e2db262db9e1e224487d80508b54 | 289b57556cc13cdb4780d6f6cce1d1f0fbb315a6 | /R Programming/polutant.R | de176fbd9b06aa27725eeecb6a1eaedbfff34333 | [] | no_license | Kibrom1/datasciencecoursera | 83c592811e47738c8be12374a260ab0f6cf85d8b | 3aa3e9f69b75b98f0643bc136fb75f2100750adf | refs/heads/master | 2021-06-13T07:18:36.872907 | 2017-04-17T00:47:54 | 2017-04-17T01:12:42 | 81,401,744 | 0 | 0 | null | 2017-02-11T23:02:34 | 2017-02-09T02:53:46 | null | UTF-8 | R | false | false | 1,128 | r | polutant.R | polutantmean <- function(directory, polutant, id = 1:332){
setwd(directory)
result_data <- list()
allfiles <- list.files()
for(f in id){
my_dataset <- read.csv(allfiles[f], encoding = "r")
result_data <- rbind(result_data, my_dataset)
}
setwd('..')
meanResult <- result_data
}
complete <- function(... |
ccb76d61aa17f9b672354ac1baa03d39665cecf0 | 5957f68dcf465daf2046d577ab25b42d3bb5427a | /R/sinlogr.R | efac90d21ab714e2d6e794316e6a0ff13b10184d | [] | no_license | nunesmatt/binhf | 64467133ada0f50335dad4696d0e16da4f9f19a1 | e8bb971a703b07cd5f5962d6644fe3db9a7b728a | refs/heads/master | 2018-09-21T08:21:52.284925 | 2018-07-19T08:16:55 | 2018-07-19T08:16:55 | 126,087,430 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 119 | r | sinlogr.R | `sinlogr` <-
function (t)
{
y<-sinlog(t)
y <- c(y, rev(y))
n <- length(y)
y[seq(from=1, to=n, by=2)]
}
|
823d439df664a1824582b290edf159a1d62db361 | 75625daae0fc6b9f40995244b98f4dd3197335b9 | /Trees/Trees_Assignment_Voting.R | 42709b1cb3b3895b53ef54997c216d7bd5265188 | [] | no_license | sharathlives/MIT-edx-AnalyticsEdge-StatsiticalModeling | e92c44d31c81bce1e17b167b7967d4e208b300fa | 01b1654feaf2dcd4ab96e3eac79a52a2f951fa53 | refs/heads/master | 2021-01-10T04:21:14.580867 | 2015-05-30T05:37:34 | 2015-05-30T05:37:34 | 36,544,928 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,362 | r | Trees_Assignment_Voting.R | #Load the dataset
gerber <- read.csv("gerber.csv")
#Exploration
str(gerber)
table(gerber$voting); 1- mean(gerber$voting) #proportion of voters in the election; baseline accuracy
tapply(gerber$voting, gerber$hawthorne, mean)
tapply(gerber$voting, gerber$civicduty, mean)
tapply(gerber$voting, gerber$neighbors, mean)
tap... |
91638cad4fccf1ed64970f4001ef8bea8a264fc4 | 7d7866a55e03f5b0d669028d45ad5606f2d3d561 | /man/hist.Rd | f10b107dedd9157d8e7724a9ad563a26891349eb | [
"MIT"
] | permissive | ndhutso/geneSummary | beb6d65d7d9e7bd9b40a130cf01a72f82cdd76ad | 687ddc8c8f90d41ec563bf92b9e59d5d92e917fc | refs/heads/master | 2020-07-05T21:34:55.116152 | 2019-08-16T19:20:05 | 2019-08-16T19:20:05 | 202,784,950 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 342 | rd | hist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hist.R
\name{hist}
\alias{hist}
\title{Histogram of Data}
\usage{
hist(D1a,D2a)
}
\description{
Compares the data in a histogram
}
\examples{
data <- getGEO("GSE43452")
D2a <- extExp(data)[[2]]
D1a <- extGene(data)[[2]]
hist(D1a,D2a)
}
\auth... |
1029a1d8bfd434d0d2f3b1d8d1793360659220d8 | be7ab4febfd096b722ab7843f89b473efb3c13bc | /R_code/learning.R | 4af78a2a204a7fe3c340ff433b13b59d6cdb09a3 | [] | no_license | bgossage/bys602 | 011ddb3f0585b2aa7228c6e921af5bff977908d3 | 46e50189a8460db4e8c1bf1411213a1f83705216 | refs/heads/master | 2021-01-11T18:55:07.396279 | 2017-05-10T21:45:35 | 2017-05-10T21:45:35 | 79,656,310 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 352 | r | learning.R | #
# Learning R
#
# Clear R's brain...
rm( list = ls() )
library(dplyr)
library(ggplot2)
x <- seq( from=-10, to=10, by=0.1 )
y <- x*x
z = y * y
qplot( x, y, geom="line")
die = 1:6
generate = function()
{
s = sample( die, size=2, replace=TRUE )
return(sum(s))
}
Toss = replicate( 10000, generate()... |
f373dd9f260f0a6e2b8872dad6ca3b60aaf8bf85 | 64fa69a9d2ec2eff2e11086821655631884d7a54 | /online_results_viewer/server.R | 57762f7c8cc06efd89ed3fb6beb4ff2366ca4ad0 | [] | no_license | mkiang/opioid_geographic | 0e4466ac94ba3fbb7b3707382b4e07a0ec5df9e8 | b464ede6bccfa42caea7cb591dc23e7a17b39e6f | refs/heads/master | 2020-04-16T21:25:36.169096 | 2019-03-23T16:36:25 | 2019-03-23T16:36:25 | 165,925,172 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,318 | r | server.R | ## Imports ----
library(shiny)
library(geofacet)
library(tidyverse)
library(DT)
library(statebins)
library(viridis)
library(here)
## Load additional code ----
source(here("shiny_helpers", "mk_nytimes.R"))
source(here("shiny_helpers", "gen_aapc_trends_plot.R"))
source(here("shiny_helpers", "gen_aapc_summary_table.R"))
... |
efe887a78c7d54180b7d1aa22fb36a3cbf6ae15e | 907aaa2ef40dd8beeb9d533fa519fac0afaf8e37 | /R/plotXY.r | 614400111f0192777e379a6192031b38e84f3f8b | [] | no_license | AndreasFischer1985/qqBaseX | eaee341155d66d4ff92ca00d6b4d419c3bf1f28a | 98bec0ce041666d09d2c89a4ddc6b84a2349fa53 | refs/heads/master | 2022-09-14T18:58:05.493380 | 2022-08-26T11:52:38 | 2022-08-26T11:52:38 | 189,703,556 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,450 | r | plotXY.r | #' Function plotXY
#'
#' Plots bivariate correlation based on two numeric vectors.
#' @param x Numeric vector.
#' @param y Numeric vector of the same length as x.
#' @param complexity Numeric value specifying the amount of nonlinearity modelled. Defaults to 0 (i.e., a linear model).
#' @param rep.nnet Numeric value sp... |
f0e7a038f40204ff3d57b327671486e74636b124 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sampling/examples/inclusionprobabilities.Rd.R | c6a860d915077830041df7be8b8df536c42075e7 | [] | 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 | 799 | r | inclusionprobabilities.Rd.R | library(sampling)
### Name: inclusionprobabilities
### Title: Inclusion probabilities
### Aliases: inclusionprobabilities
### Keywords: survey
### ** Examples
############
## Example 1
############
# a vector of positive numbers
a=1:20
# computation of the inclusion probabilities for a sample size n=12
pik=inclusio... |
92cb72deec31a66a7fff42583b31f2a0e923f252 | 018a481574caece2e71b95ebc4c53b26090faf26 | /12_4_fitting_mlm_in_R.R | 3dc3fa28a478b5b73219b04f07fe97a654066529 | [] | no_license | davidpupovac/multilevel_modelling_gelman_hill | 408f887f3180cad8d5a54194170d2b6f1e0b4a88 | 7bc38d746246b93a42aff2baf65a21b47c3a8f68 | refs/heads/master | 2021-01-12T11:36:45.255770 | 2016-05-21T16:09:59 | 2016-05-21T16:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,537 | r | 12_4_fitting_mlm_in_R.R | # Chapter 12.2
# Repeated measurements, time-series cross sections, and other
# non-nested structures
# Page 253
# dependencies
library ("arm")
library("dplyr")
# get radon data
# Data are at http://www.stat.columbia.edu/~gelman/arm/examples/radon
srrs2 <- read.table ("~/llibres/llibres_tecnics/regression_multileve... |
cd9e7c87e7d4d6558c01795cb82ed2a7d3ebc7e8 | 4fa1216d26cf678ecd9468d53bac585c29496cef | /SIS_Workshops.R | 08b9ba855668bae4c63477f2dc070acf344fa3fd | [] | no_license | christrudeaumtl/SIS-Seminar-series-2019 | 0b820e1c39ce1e584118ba916c23b7efac806ed0 | 5311a8d1e32cf187c25a0a1a085be1afd586737c | refs/heads/master | 2020-08-23T11:47:45.308107 | 2019-10-28T18:30:05 | 2019-10-28T18:30:05 | 216,609,116 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,244 | r | SIS_Workshops.R | # Basic concepts
1 + 2
x <- 1 + 2
y <- c(1, 2, 3, 4)
# Set working directory and load libraries
setwd("Research communication/Workshops/R SIS Seminar 2019/")
library(tidyverse)
library(plyr)
library(janitor)
library(reshape2)
# Importing data
raw.data <- read_csv("library stats.csv", locale=local... |
2f4366f6179fc563c3d6b5249cdf10a6c11fbe65 | 5b8a20546eb0912651ea4c5102e0f2d569ef9554 | /man/get_teams.Rd | 428bcb30675c246137d3a2b66b2df9e8ab6affe9 | [] | no_license | zmalosh/NhlDataHelpR | b83d73db227bc171c8030f4c6bc65904cee9f0bc | 15ddd93c93589534d55b718444d277a091b5f4a8 | refs/heads/master | 2020-09-01T05:01:52.815000 | 2019-11-01T02:17:56 | 2019-11-01T02:17:56 | 218,886,194 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 339 | rd | get_teams.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_teams.R
\name{get_teams}
\alias{get_teams}
\title{Title}
\usage{
get_teams(includeRoster = TRUE)
}
\arguments{
\item{includeRoster}{flag to enable rosters for each team}
}
\value{
all teams from the NHL API
}
\description{
Title
}
\exampl... |
5897b0b460f785ecdde8595678a09a4cb47f2829 | d795d03a39b08dbeb85a1a3c38909ecf8f6bd986 | /General_LDFA.R | f86484411021b1599f985945c373d7ebcb44024f | [] | no_license | PhDMattyB/LDFA_GeometricData | 2eaaa61d10ce4a7b3e872c5f2030a31495d36deb | d607635aaf899c898ae4dadceec2b715c3c034a4 | refs/heads/master | 2020-05-18T07:49:51.182694 | 2019-04-30T14:32:01 | 2019-04-30T14:32:01 | 184,277,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,817 | r | General_LDFA.R | ##############################
## Linear discriminant function analysis body shape data
##
## Matt Brachmann (PhDMattyB)
##
## 2019-03-13
##
##############################
setwd('~/PhD/Morphometrics/Working Directory')
library(tidyverse)
library(wesanderson)
library(patchwork)
library(janitor)
library(devtools)
libra... |
9a29dd06d14400ab450e74f780073ddcab2a33d4 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/themetagenomics/tests/testthat/test-topic-effects.R | fdbcbd5eb4d5902d4904966ff1f59edc10b1c489 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,474 | r | test-topic-effects.R | context('estimate topic effects')
test_that('est.topics returns correct results for different formulae',{
skip_on_cran()
skip_on_travis()
DAT <- readRDS(system.file('testdata','otudata.rds',package='themetagenomics'))
set.seed(23)
x <- prepare_data(otu_table=DAT$OTU,
rows_are_taxa=FAL... |
41521eddb72f3a8a5d20b47f0a2f735e045791be | 89904aad1e489f936a03f44a8f96a709a27ac0d7 | /MFDFA_toolbox/Error_Bars.R | 81d4eaec1e52f3dfb8da8afcd4402b6370f104d0 | [] | no_license | tehrandavis/usefulR | d77629ac186a25c69fc93b3030ef14c62e60117e | 31fb94127b7fc6d407b280d856c56c242d094bb1 | refs/heads/master | 2021-01-23T05:44:34.918507 | 2019-06-21T14:51:59 | 2019-06-21T14:51:59 | 92,980,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 589 | r | Error_Bars.R |
prepanel.ci <- function(x, y, ly, uy, subscripts, ...)
{
y <- as.numeric(y)
ly <- as.numeric(ly[subscripts])
uy <- as.numeric(uy[subscripts])
list(ylim = range(y, uy, ly, finite = TRUE))
}
panel.ci <- function(x, y, ly, uy, subscripts, pch = 16, ...)
{
x <- as.numeric(x)
y <- as.n... |
c040df1d67e9084c015c5fd9c75c6d98059cbfdc | 6d5a7d0a5f55520fceb0a2868bc6b7fb7903075a | /man/lca-tree-method.Rd | 1183af478780ac3dc5615ad85830e9330352611e | [] | no_license | meta-QSAR/simple-tree | 7dbb617aff4e637d1fcce202890f322b99364494 | 28ff7bf591d3330498a3c8a85d8ae5a3d27b37d5 | refs/heads/master | 2016-09-14T07:08:33.743705 | 2015-08-04T09:31:24 | 2015-08-04T09:31:24 | 58,349,277 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 532 | rd | lca-tree-method.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/class-tree.R
\docType{methods}
\name{lca,tree-method}
\alias{lca,tree-method}
\title{Find the lowest common ancestor.}
\usage{
\S4method{lca}{tree}(object, node1.id, node2.id)
}
\arguments{
\item{object}{A tree object.}
\item{node1.i... |
1bff49da52d187160dbad0d95f4b5e72c1774d18 | 3eb2711c70ad29c4625dec5f572253511afcab71 | /man/cwm.Rd | ec81db6608717c4e6d4f0d1ca9fc91baee17f022 | [] | no_license | cran/vegdata | 5b3609cb51cc56f3b5b1b7a2e765f4039fc1ab8f | a5681ac219367a2b883225b2df720c7e51bd59d9 | refs/heads/master | 2022-12-21T03:25:11.693116 | 2022-12-17T14:50:02 | 2022-12-17T14:50:02 | 17,700,792 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,408 | rd | cwm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cwm.r
\name{cwm}
\alias{cwm}
\title{Indicate site conditions with community weighted mean values of traits or with mode of gradient classes (sum of species amplitudes).}
\usage{
cwm(veg, refl, trait.db = 'ecodbase.dbf', ivname, keyname = 'LET... |
97a941416ba94df2a0919a930fd46c5d9839af7e | 87e3533a33d8c698d3d8eb65b90152ec7258858e | /cachematrix.R | 7f9638fba427047b1ec0d840e99912db35962870 | [] | no_license | gpmerwe/ProgrammingAssignment2 | 678e1d6317cd06dec6a34b579536d78493b1a3f8 | 709220f0973f6c11bab54892cd0bc4b924d32867 | refs/heads/master | 2021-01-22T05:16:09.696697 | 2017-02-11T10:15:32 | 2017-02-11T10:15:32 | 81,642,322 | 0 | 0 | null | 2017-02-11T09:07:33 | 2017-02-11T09:07:33 | null | UTF-8 | R | false | false | 1,370 | r | cachematrix.R | ## The first function creates a list that contains
## the matrix itself and its inverse
## The second function looks up the list to retrieve
## the inverse of the matrix
## The makeCacheMatrix function consists of 4 functions,
## setmatrix sets the contained matrix to that of your matrix
## getmatrix just retrieves t... |
9dce1dc94cf57582c37b5a18a2c084a88c222105 | f2afad9842782cd02c4bf04d6ecac12aa6af51b9 | /complete.r | 7addc0d9b88dd782481c66f703cdea6408179f6e | [] | no_license | shashank-krr/datasciencecoursera | cf1f7ed57d3b3380c4211e745fb916cd94bfb10b | 2149e1ca2944c2ce060a380c4a97fade0b287fdf | refs/heads/master | 2021-01-20T02:41:23.228359 | 2017-08-30T01:45:53 | 2017-08-30T01:45:53 | 101,330,166 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 291 | r | complete.r | complete = function(directory, id= 1:332){
nobs = numeric()
files = list.files(directory , pattern = ".csv", full.names = TRUE)
for(i in id){
values = sum(complete.cases(read.csv(files[i])))
nobs = c(nobs, values )
}
data.frame(id, nobs)
}
|
7b09b024621a93525229ae800f18ac5803ec9c35 | ef572bd2b0515892d1f59a073b8bf99f81d6a734 | /man/createAnalytics.Rd | 6a9d33df2d1e3a8dd8017e3c85b19640002d167e | [
"CC0-1.0"
] | permissive | pepfar-datim/datapackr | 5bc604caa1ae001b6c04e1d934c0c613c59df1e6 | 9275632673e45948db6846513a53c1436cfc0e47 | refs/heads/master | 2023-08-30T23:26:48.454382 | 2023-08-11T13:01:57 | 2023-08-11T13:01:57 | 170,350,211 | 9 | 7 | CC0-1.0 | 2023-09-11T21:53:24 | 2019-02-12T16:19:47 | R | UTF-8 | R | false | true | 563 | rd | createAnalytics.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createAnalytics.R
\name{createAnalytics}
\alias{createAnalytics}
\title{createAnalytics(d)}
\usage{
createAnalytics(d, d2_session = dynGet("d2_default_session", inherits = TRUE))
}
\arguments{
\item{d}{Datapackr object}
\item{d2_session}{R6 ... |
2566600091873d28e3a2a77359562d08248ddf31 | 5bca27d00ed15100b3524386a90e488bfb3e1e80 | /ConsumerExpenditures.R | c26779fde1afffecd151480e6d8de47058796de4 | [] | no_license | whelanh/WorldValueSurveyRCode | 07d5359089e4d70c82b6b1ba0b0deb3fe4016b84 | 032268e7c41d7a9b398ca0050dae584ce7f4510e | refs/heads/master | 2021-07-25T18:02:59.671991 | 2020-07-03T10:40:21 | 2020-07-03T10:40:21 | 74,976,183 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,361 | r | ConsumerExpenditures.R | # analyze survey data for free (http://asdfree.com) with the r language
# consumer expenditure survey
# replication of the output of various macros stored in the "CE macros.sas" example program
# using 2011 public use microdata
# # # # # # # # # # # # # # # # #
# # block of code to run this # #
# # # # # # # # # # # #... |
3344985bca4707134d6345b90de1b33a1d3e8571 | 3f4d651c3d7431db4da76e7b89031911dc6eb913 | /man/dfe_acad_year.Rd | 95d4cc1ec02ac4613069a1457e8f4c46a29aa60f | [] | no_license | TomFranklin/dferap | 394ada7b7b28da2a761b8016d97c2a0e8fd30c6d | a43e34e4d7f1ee1808028c32f4f369eef716bfc1 | refs/heads/master | 2020-04-03T10:40:30.294751 | 2018-10-29T16:05:58 | 2018-10-29T16:05:58 | 155,199,335 | 0 | 0 | null | 2018-10-29T16:05:59 | 2018-10-29T11:19:09 | R | UTF-8 | R | false | true | 762 | rd | dfe_acad_year.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfe_acad_year.R
\name{dfe_acad_year}
\alias{dfe_acad_year}
\title{Change the style of academic year}
\usage{
dfe_acad_year(year)
}
\arguments{
\item{year}{is the acadmic year we'll input, e.g. 201213 which will be converted into 2012/13}
}
\v... |
f7d6137cfa6b40206c4ca515a2b1bb438e8f728e | b39b3bceeb9a56925d61c0e4f928a3455e9a7336 | /plot2.R | e8032b7741a0c75b65c5ec84c417beda065bf93f | [] | no_license | sulaksh555/exploratory-data-analysis-project-1 | 3a081ca00f6bf2d2ed3fbc5e66cb7ce44c12f911 | ffe41370930c8c3035c4eadfacd52d4f36461716 | refs/heads/main | 2023-05-12T08:25:25.216559 | 2021-05-30T19:11:39 | 2021-05-30T19:11:39 | 372,284,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 624 | r | plot2.R | # Read in the dataset
fileName<-"household_power_consumption.txt"
df<-read.table(file=fileName, header=TRUE, sep=";")
# Subset the dataset to the dates of interest
dfSubset<-df[df$Date %in% c("1/2/2007", "2/2/2007"), ]
# Create vectors for the x-variable and the y-variable
activePower<-as.numeric(dfSubset$Global_acti... |
f0219461acbbd53c025d862b6bd3dc78fac8d4c1 | 928e156654ecfbac540efded61829ac360de49e0 | /R/overfitRR.R | 8127bb10710a6cb65353fdb59e3d6040cdaf9f75 | [] | no_license | cran/RRphylo | a8e77bc72a1abad5e1e193faa7d6cc1c241bbab6 | 12611ed837148f9958f47d168fe9936e0d8c5114 | refs/heads/master | 2023-06-09T07:21:52.536620 | 2023-06-04T11:10:02 | 2023-06-04T11:10:02 | 128,387,796 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 45,925 | r | overfitRR.R | #' @title Testing RRphylo methods overfit
#' @description Testing the robustness of \code{\link{search.trend}}
#' (\cite{Castiglione et al. 2019a}), \code{\link{search.shift}}
#' (\cite{Castiglione et al. 2018}), \code{\link{search.conv}}
#' (\cite{Castiglione et al. 2019b}), and \code{\link{PGLS_fossil}} re... |
4e2a4708facfe43a2e72c76b46d9133119a6d749 | 571ab7a18fc1a77db70166d558e12c0a2e1f75f4 | /Walmart_Trees.R | da0f980d8d58a789d654fb5a7464c6ab3800b738 | [] | no_license | 5l1v3r1/R-walmartKaggle | dc1713c7aeeb77f0626e07211bf0ba3667f9c955 | 784eb4841b82708fb99eb4f571a75104eeae8099 | refs/heads/master | 2021-04-03T21:18:18.775213 | 2014-04-06T16:01:59 | 2014-04-06T16:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,837 | r | Walmart_Trees.R | library(lubridate)
library(plyr)
library(tree)
library(sqldf)
#Import data
import = read.csv("/Users/kylehundman/Desktop/Walmart/train.csv", header=T)
#Create month variable
import$Date = as.Date(import$Date, "%m/%d/%y") #convert to date
import$month = month(import$Date) #grab month (using lubridate)
import$week = we... |
be97d8b216c065234aa3e062542edaa184f0f52a | 893ad18460bfa6a8cef47084e047473152c8c8cc | /man/calc_fc.Rd | d036e1592c03c6af2db60fc7e765095198a4d676 | [] | no_license | cran/BayesianPower | 8d3f5d7a078b0779fa09480e4e3f251f0fdcd1e9 | 566367a630767911aa227d4715a701449c41ebe7 | refs/heads/master | 2020-12-21T20:59:30.367732 | 2020-06-22T07:40:16 | 2020-06-22T07:40:16 | 236,558,700 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 828 | rd | calc_fc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{calc_fc}
\alias{calc_fc}
\title{Compute the complexity or fit for two hypotheses.}
\usage{
calc_fc(hyp, hyp2, means, sds, nsamp = 1000)
}
\arguments{
\item{hyp}{A constraint matrix defining H1.}
\item{hyp2}{A constra... |
e27b1d954fe1a44fcce788c4cb53c228b48de86b | 46e27718fdfed55fa0973c6b693af237ad742bca | /R/reads_per_gene_distribution.R | e94c9118b945197bf81d739232791bd5a9f539c0 | [] | no_license | urhonenh/PN0079_DVL3_RNA-seq | 15df32469f9df8146889c4e01b74891af37aff7c | bd388285976d4bb5967ba70e14c783e003b2f73a | refs/heads/main | 2023-08-14T14:55:20.746119 | 2021-10-15T11:32:57 | 2021-10-15T11:32:57 | 364,518,653 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,693 | r | reads_per_gene_distribution.R | #!/usr/bin/env Rscript
# A script for plotting distribution of reads per gene in the dataset.
# Written by: Henna Urhonen
# E-mail: henna.urhonen@tuni.fi
suppressPackageStartupMessages({
library(DESeq2)
library(dplyr)
library(ggplot2)
})
dedir = "/bmt-data/genomics/projects/dvl3_mouse_rna-seq/04_DE_a... |
a65b88ac3e8b4393b22964de2b6055bf8e722174 | cbc215b281e6a300538206ea28bfc47c0a4923b8 | /URBACT_Network_Report/STEP1_BasicTextMining_URBACTreport.R | 05ab918db2e5f7d8478d91933915605b622f1d2e | [] | no_license | pgourdongeo/Chap5_TextMining | 11d7dcb8231e8643b028d3c21fee4d6de7b1aca6 | 4745ab8eab81faaaf02f791591d084c2f0ea7d8a | refs/heads/master | 2023-09-02T06:54:04.478372 | 2021-11-02T10:18:17 | 2021-11-02T10:18:29 | 295,954,411 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 29,070 | r | STEP1_BasicTextMining_URBACTreport.R | ############################### URBACT Networks reports ##################################
#
#
# DESCRIPTION : Analyse textuelle des rapports de projets URBACT
#
#
############################################################################## PG novembre 2020
... |
884a0bc5fa02a20a73d291025d0ce3a2181af8cf | f41f8070765c20819f2c5faa5421cb52353459c2 | /oficina_Parte_3.R | 1cfcdc5d4d68d008a1f50785e1bc59cf809333a8 | [] | no_license | Kratochwill/Oficina-Estatistica-basica-com-R-RStudio- | 2013cc9e09461255661c63daf1213a54bf97fd9f | 539636943e8dc68e48e635be0778418d1464886f | refs/heads/master | 2021-01-19T03:04:46.606842 | 2017-03-23T20:00:55 | 2017-03-23T20:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,766 | r | oficina_Parte_3.R | # ---
# title: "Introdução a Estatística Básica e R(RStudio) - 3a. Parte"
# author: "Walter Humberto Subiza Pina"
# date: "11 de janeiro de 2017"
# ---
## Gráficos com a função genérica plot
# O objetivo é mostrar como usar a função plot do pacote base
# para fazer plotagens básicas, como gráfi... |
e8cf273737f4ca5c73dc812efb3e0c50d0a68c04 | bfe4fa7d35d25dbd4749c7db18284630743f943b | /for channels/make_permutation_test_data.R | e1f05b4f7be24a3cf1401cdf43722d89142ce242 | [] | no_license | innertron/REU_Kam | 0ccfe2d4e178b241cdf836d9c066188dbbd65e82 | bf4028b193f13cc202f66cd28963290722b312ac | refs/heads/master | 2021-01-17T20:16:07.187792 | 2016-08-02T21:29:38 | 2016-08-02T21:29:38 | 61,396,055 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,800 | r | make_permutation_test_data.R | #This script plots the causality measure for each pair of regions and saves
#them to a folder
#Import the rEDM library
library(rEDM)
library(scales)
#you need to import the neural_data.txt file by hand.
#neural_data <- dget(...) or press import above
#select the data and the time span of the experiment
time_span <- ... |
17955ef8141b5b8ae55908a89be3e5b0a28840c5 | 0049e7ad328d4de263fcba5e6049b35d3a3c1452 | /ICSAP 01.R | df0ef75e333f8fa4faa1557a6190b6eb51309627 | [] | no_license | azous-nomar85/ICSAP | 3ddba6ef5681ae1603d717bc050d27cdd8f25091 | bf81738170ef582c2dc4672493e4d73e1f8d864d | refs/heads/master | 2023-05-02T01:00:18.417581 | 2021-05-26T12:26:58 | 2021-05-26T12:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,382 | r | ICSAP 01.R |
# download dataset
library("readxl")
AtlasBr <- read_excel("./Banco de dados/Atlas Desenvolvimento Humano/Registro Administrativo Total 2012 2017.xlsx",
sheet = "BRASIL", col_names = TRUE)
AtlasRegiao <- read_excel("./Banco de dados/Atlas Desenvolvimento Humano/Registro Administrativo Total 2012 ... |
2fed69c24b20c6b0c8d6b61d51ca78b792c7023a | c677dc67f698061557a7fa2622f72478fcd28cbc | /VIS1 (2).R | 2b7e907f0a6a41639b45725ec3a26840b28ee2a5 | [] | no_license | pSwitakowski/RDataVisualization | 4cae903d4335dcb00cc18e99f07e96356af2b68a | 149d04b69a65c577d4641b4aa526eada89d90d8e | refs/heads/main | 2023-06-07T09:35:36.226667 | 2021-07-08T21:33:48 | 2021-07-08T21:33:48 | 384,252,857 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,823 | r | VIS1 (2).R | library(BCA)
library(car)
library(corrplot)
data(Eggs)
# 1. Próbka danych
head(Eggs)
# 2. Macierz korelacji
data_Eggs <- data.frame(as.numeric(Eggs$Month), as.numeric(Eggs$First.Week), as.numeric(Eggs$Easter), Eggs$Cases, Eggs$Egg.Pr, Eggs$Beef.Pr, Eggs$Pork.Pr, Eggs$Chicken.Pr, Eggs$Cereal.Pr)
colnames(d... |
a2c2b5b4fb1d2312330e47c00be0127388ddd42a | a911cc443ac6df89fc920d1ad9d5b1248f3d327d | /man/BeersFlashProfile.Rd | 896dc584e06fc387e54a8871bed7c844661067f9 | [] | no_license | cran/DistatisR | 79190e558faed5e02ac7d65addae94c6c0e5d9f2 | 6ce918849afcc7ab960656ae4ed7d1fdac0d826c | refs/heads/master | 2022-12-09T18:42:30.376327 | 2022-12-05T07:32:43 | 2022-12-05T07:32:43 | 17,678,844 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,180 | rd | BeersFlashProfile.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BeersFlashProfile.R
\docType{data}
\name{BeersFlashProfile}
\alias{BeersFlashProfile}
\title{An example of an excel file
storing the Flash Profile of 6 (fictitious) assessors
evaluating 7 (imaginary) beers.
This excel file can be read... |
ae8c886f3116d6c0af2b628e57baf6c2182bdbeb | f6f2017240539aba3698896ebaecec7782de28e7 | /psm&iptw.R | 44bc34f284d71ea80b49a5719a75f5bd94f3f43f | [] | no_license | alaskaguo/R | 48c43cef83c3b6ccbaeab66751f6572d3f6c1318 | 368825e0c7ee2f207e75a87323612aedb9b1ef11 | refs/heads/master | 2021-10-10T00:59:03.233836 | 2021-09-29T14:46:50 | 2021-09-29T14:46:50 | 213,532,773 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,724 | r | psm&iptw.R | rm(list=ls())
library(readxl)
library(readr)
library(stringr)
library(ggplot2)
library(survival)
library(survminer)
library(dplyr)
library(Hmisc)
library(tableone)
library(Matching)
library(survey)
library(MatchIt)
path = 'f:\\myresearch\\房颤数据挖掘'
setwd(path)
data = read.csv('data_filled.csv',row.name... |
65b787b171d027e634a1bc13712fd0f190022036 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/9126_0/rinput.R | 14ee056d37c0ca1a81343316f3af0d2f0d17326b | [] | 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 | 135 | r | rinput.R | library(ape)
testtree <- read.tree("9126_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9126_0_unrooted.txt") |
ee8cc966b35fd41a1ff8954f16d80e2234a32933 | 0d7702f9e21eace56dc305889f81871a5434c3e9 | /hdc/aggrPlots_nucl.R | 5b9fbccb086b51976d7c13d5b10f9ba16a57730f | [] | no_license | sowmyaiyer/new_repo | 71f37b48fd502960488462a94b789ec21fd9482e | 6fe37a6abbb5e339793710eb04c5f9e017ceb072 | refs/heads/master | 2021-01-10T03:35:13.789393 | 2016-03-10T18:40:40 | 2016-03-10T18:40:40 | 53,608,144 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,504 | r | aggrPlots_nucl.R | f_0h <- commandArgs(TRUE)[1]
f_30min <- commandArgs(TRUE)[2]
f_2h <- commandArgs(TRUE)[3]
f_4h <- commandArgs(TRUE)[4]
f_24h <- commandArgs(TRUE)[5]
outfile <- commandArgs(TRUE)[6]
title <- commandArgs(TRUE)[7]
motif_length <- as.numeric(commandArgs(TRUE)[7])
df_0h <- as.data.frame(read.table(f_0h, row.names=1, sep="\t... |
5b1b552cc1dfafed7cfcc08ee9035de3d5dcda00 | 90930d9c512ffc52217fc75cc9c8b9443dc20665 | /LogReg_hw3_stocks.R | d9fa81f87977f7266a35ce95abe448e0f36a09bc | [] | no_license | awasthi-swapnil/RcodeProjects | ad15a998274686ea6c06022737bf4cad3339ab34 | afc98a6ebbb8c6f273c3655b93b793e0662de8b1 | refs/heads/master | 2020-04-26T19:30:33.570311 | 2017-06-01T09:06:29 | 2017-06-01T09:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,165 | r | LogReg_hw3_stocks.R | #read source file
data <- read.csv(file='SP500.csv')
head(data, 10)
colnames(data)
data <- data[7:nrow(data),7:length(data)]
stocksdb1 <- stocksdb
stocksdb <- data[,2:length(data)]
#creating a new column
for (i in 1:nrow(stocksdb))
{
stocksdb$PriceDirection[i] <- ifelse(data$Adj.Close[i+1] > data$Adj.Close[i],1,0)
}
... |
9208241db534d0665394766395c12803bcf6f095 | 4b4fd76faaa7235684bb724848078dd91c7716cf | /Code/BodyCountPlots.R | 27fb6a4476913cc0aab29716e741164f0c8e96c7 | [] | no_license | AchalSuresh/R-coding | 3d190ad99516d34c82e63171785fbf4ac30a2b81 | 50a6793f81c94dfc6b2363e75c91f6a354522c4d | refs/heads/master | 2021-03-23T23:15:59.586706 | 2020-04-01T21:44:29 | 2020-04-01T21:44:29 | 247,491,309 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,878 | r | BodyCountPlots.R | # BU510.650 Data Analytics Week 1
# Plotting data using R
# Example: Film death counts
# Set your working directory. In my case, it is "C:/R-Work".
setwd("./R-coding/Data")
# Read the data from the file "filmdeathcounts.csv" into a data frame called "BodyCountData".
BodyCountData = read.csv("filmdeathcounts.csv")
# Le... |
7c8e4d0850bc5b0efe2a36bb528bdb34b99b00a2 | 07424c50c8d808296c11c8d01bf9bffc1f1d63a1 | /src/old_code/organism_modeling.R | 6afb4517e9fa55afef5a3fd00add84f9ccad8f76 | [] | no_license | colebrookson/microplastics-daphnia-dynamics | 13519c29181fce0f2f1285e0cf9f547a65d146f7 | a2c93ca1f3397cc39de4bf255cd42b24d22e575b | refs/heads/master | 2023-08-21T12:36:15.861808 | 2021-09-15T22:02:52 | 2021-09-15T22:02:52 | 265,033,816 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 549 | r | organism_modeling.R | ##########
##########
# This code contains the analysis for the fitting of the the individual component as a
# part of the larger analysis of the effect of microplastics on daphnia
##########
##########
# AUTHOR: Cole B. Brookson
# DATE OF CREATION: 2020-08-25
##########
##########
# set-up ==========================... |
bf26703aa44cc0ea027f05d02f4b297a6de343cb | 7b73406c16269f514e7690aaf73e9bb35dbaf125 | /R/sharpen.R | a0bb73f71a423728b5d15b1aca9a4188a009e5f0 | [] | no_license | macressler/dull | 0c1dcab9f3f9a1651a0d17c46722daff1b7f13fd | b7b074ed59ae900861ef01bc73153a0fe328ee50 | refs/heads/master | 2021-01-17T21:57:09.619694 | 2015-09-10T03:57:08 | 2015-09-10T03:57:08 | 42,360,637 | 1 | 0 | null | 2015-09-12T14:52:40 | 2015-09-12T14:52:40 | null | UTF-8 | R | false | false | 1,774 | r | sharpen.R | #' Test a dull application
#'
#' A set of functions to expand upon the \code{expect_*} functions of the
#' \code{testthat} package.
#'
#' @param .app A dull application
#' @param method A character vector of the HTTP method with which to query
#' \code{url}
#' @param uri A character vector of the resource path to... |
32fd0c27414707ab9884dfa08ebd8e6f0601986b | aec457c82864482b8a9b849520855d499ed923ee | /man/LAR.property.Rd | 2600c69ac2f4952289fe61f5dc0aec280347d9cb | [] | no_license | smisaleh/STROMA4 | 2a9d6921b197be69425802a01f02bd0f0970ad1c | 9a07eab67b4d7ca9cea70f58d77205854d2c0a00 | refs/heads/master | 2020-12-24T11:52:24.849482 | 2017-03-24T03:29:53 | 2017-03-24T03:29:53 | 73,111,711 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 698 | rd | LAR.property.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LAR.property.R
\docType{data}
\name{LAR.property}
\alias{LAR.property}
\title{Genelist for LAR.property}
\format{An object of class \code{data.frame} with 1205 rows and 2 columns.
\itemize{
\item{Gene.Symbol: }{ID of transcript (HGNC where ... |
36f14cf92ec9884e3c3a18f39fb5a16ac4bd7dc0 | 29de97c348ea6ca6b0e3ad69fba1cb7319802c8f | /week_05/weekend_homework/shiny_weekend_homework/app.R | a369f7cdc8318bee0b3e5f54eb7c0b9d90953050 | [] | no_license | Sid-Rodrigues/codeclan_homework_sid | ddaa76ecbbde0fcbfa697983f4c56b556faaf2ad | fa63de8743667ba59f3003ae8ec096e602537592 | refs/heads/master | 2022-12-25T21:24:55.705175 | 2020-10-10T12:03:22 | 2020-10-10T12:03:22 | 275,930,815 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,187 | r | app.R | library(shiny)
library(dplyr)
library(ggplot2)
library(shinythemes)
library(CodeClanData)
library(datasets)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Game Sales Info"),
tabsetPanel(
tabPanel(
"Search",
... |
39da7a6dc6958870319dda7b28be5eb91f0b7bff | 6872e8b5d8ff34d9c4447feddbe45f0306a8b1b4 | /Caso1/mediacontaminante.R | 89887b8775328ddd5615d9d300b69fd011ed17cb | [] | no_license | SebDelEs/Programacion_Actuarial_III_OT16 | 4197403ced669b00f8141e6b492a52da9a6d6330 | b9f553d455c7bb8717ff767350d6a207cb2fc018 | refs/heads/master | 2020-12-06T04:59:37.774455 | 2016-12-14T14:08:17 | 2016-12-14T14:08:17 | 65,914,613 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,732 | r | mediacontaminante.R | mediacontaminante <- function(directorio="~/Actuaria/Tercer Semestre/Programacion III/specdata",contaminante="sulfate",id=1:332){
sumaProm <- 0
restar <- 0
totaldatos <-0
if (contaminante == "sulfate"){
for (i in id) {
if (i < 10){
j <- paste("00",i,".csv",sep = "")
}else{
if ((... |
8338d3a61cad90e0de5b6b0bb1e94f24d419c7ab | 2d9fd1240c58b315583d7b43797b6f81061b35f6 | /Gasolina/main.R | a3f5e982b17c95abd1ae3d0cbe876f4c83dcb782 | [] | no_license | Gabovillayzan/R_workspace_01 | f6200bcd1bcf5307b213bee700a5b7a0d4b60b9e | fb28f2ebfc3df6c432d847c910aabf101e9cec57 | refs/heads/master | 2020-07-31T20:57:25.634141 | 2019-09-25T04:46:00 | 2019-09-25T04:46:00 | 210,751,396 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,563 | r | main.R | # URL para hacer ranking de gadolinas
# http://m.facilito.gob.pe/facilito-mobile/pages/public/buscarCombustible?idsCombustible=74&idsCombustible=78&idsCombustible=73&idsCombustible=03&masCercano=0&usarMiUbicacion=0&area=5&miLatitud=-12.089684&miLongitud=-77.033528&distrito=150136&provincia=150100&departamento=150000&di... |
cc5cb799ea421141b8c3d190b7253ed7a7165d47 | f044402735a52fa040c5cbc76737c7950406f8b2 | /BrCa_Age_Associated_TMA/Packages/biostatUtil/R/ms_plot.R | 03b4984a84c1a5410f05cf8a662192bde052ac9e | [] | no_license | BCCRCMO/BrCa_AgeAssociations | 5cf34f3b2370c0d5381c34f8e0d2463354c4af5d | 48a11c828a38a871f751c996b76b77bc33d5a3c3 | refs/heads/master | 2023-03-17T14:49:56.817589 | 2020-03-19T02:18:21 | 2020-03-19T02:18:21 | 247,175,174 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,638 | r | ms_plot.R | #' Plots for MS analyses
#'
#' `ms_boxplot` shows boxplots of different MS expression data values.
#' `ms_mean_var` shows mean-sd plots for the VSN data values to analyze the
#' mean-variance relationship.
#'
#' @param x data object returned by `ms_process`
#' @param width width of plot
#' @param height height of plot
... |
f4982ea066618c95359ec59ec48af8bac95ffec2 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /interp/man/voronoi.Rd | 0f78da3f5135174eed3a832f26688d061d8a88d5 | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,474 | rd | voronoi.Rd | \name{voronoi}
\title{Voronoi object}
\alias{voronoi}
\arguments{
\item{x,y}{x and y coordinates of nodes of the voronoi mosaic. Each node is a
circumcircle center of some triangle from the Delaunay triangulation.}
\item{node}{logical vector, indicating real nodes of the voronoi
mosaic. These nodes are the ... |
868693b21f093f36af9c98fc688d06fa09a79b9d | 539e3b8d04ba576c89432acc1f9fbec59d83007a | /man/get.predpubTable.Rd | cce8c9cffac6eb0234a16b40dfe2e132c1141efc | [] | no_license | rossmounce/predatory | a57c72d439d6f72a8e5301f426ed171199aa8a51 | afe6071de371cfbeae7e581b1f5c7f1290e9c7d4 | refs/heads/master | 2020-03-28T03:44:28.878387 | 2018-09-06T12:16:12 | 2018-09-06T12:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,125 | rd | get.predpubTable.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_predpubTable.R
\name{get.predpubTable}
\alias{get.predpubTable}
\title{Returns a dataframe with information about predatory publishers and journals from Bealls webpage}
\usage{
get.predpubTable()
}
\value{
A dataframe with publisher, name... |
9396251e18db222fdf406b2d95f6390e9ddb80bd | 192968e131d29780397e4abab7943bdd6260beee | /R/filter_on_min_peptides.R | 90fec1f0ea5eb199e9aaa40e078731c7ce95632c | [] | no_license | abelew/SWATH2stats | 78b837e6fc7ca1477abe495316a774448b10bdf5 | 21b1928b5f8ff9906776c126a3a24399d5dcb153 | refs/heads/master | 2020-05-17T02:07:10.389699 | 2019-04-25T15:56:07 | 2019-04-25T15:56:07 | 128,787,209 | 0 | 0 | null | 2018-04-09T14:45:29 | 2018-04-09T14:45:28 | null | UTF-8 | R | false | false | 2,387 | r | filter_on_min_peptides.R | #' Filter openSWATH output for proteins that are identified by a minimum of n independent peptides.
#'
#' This function removes entries mapping to proteins that are identified by less
#' than n_peptides.
#' Removing single-hit proteins from an analysis can significantly increase the
#' sensitivity under strict protein ... |
be6b19cd436cd634fd8c1bd80c00eb167f5a92eb | 202d8a19f446ec51ba0c467f5ebd8c649a685f8f | /run_tests.R | e01202769485e8a188bb2f5997372de178a2d81c | [] | no_license | jfozard/ProgrammingAssignment2 | 27d6ffe4059131a1c41699d6c1f140b97400c353 | ebce131a8a4245a2c633366ae80ea38bab89a6ae | refs/heads/master | 2021-01-18T10:44:48.292617 | 2015-02-22T20:39:17 | 2015-02-22T20:39:17 | 31,176,812 | 0 | 0 | null | 2015-02-22T19:41:08 | 2015-02-22T19:41:08 | null | UTF-8 | R | false | false | 84 | r | run_tests.R |
library("testthat")
source("cachematrix.R")
test_dir("tests", reporter="summary") |
00045eecbb2c756eaa408811edbd6f246424db18 | cb968fbbb9521395d9d869a82908ca90a532df6a | /scripts/07_evaluate.R | e31c767774a4c1d5f9cd970a34f7dc50c02c4cb1 | [] | no_license | michellelawing/massasaugaSDM | 1d60760623c5cf78eb302dcc9484d1f0aed153a1 | 339e34708d668b837573382543ee9807205d8a09 | refs/heads/main | 2023-02-03T16:23:04.603622 | 2020-12-18T04:08:47 | 2020-12-18T04:08:47 | 322,429,328 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,960 | r | 07_evaluate.R | ############################
###--- Model Evaluation ----
############################
# Runs the model evaluation and extracts multiple evaluation statistics
#evaluate models with testing presence and background points
colnames(model_tracker) <- c("Climate", "Filters", "Folds", "Background")
model_tracker <-... |
4c3c26e641291ba8a1ec490ba4b86301278a9cb5 | 60884ab1db4935c61b405bffc7524d6d47ba8cc1 | /runner.R | 3f916b36caff8e2e8dbcaefe4166cbbb67af0fed | [
"MIT"
] | permissive | chintanp/wsdot_evse_update_states | 82ac74bbe24226487ff3cdac6908537d72b98d5e | e959ace59d69225b8235799a4979c11b9627365a | refs/heads/master | 2021-08-31T08:33:08.616016 | 2021-04-27T19:52:25 | 2021-04-27T19:52:25 | 211,201,432 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,045 | r | runner.R | update_states_and_gen_trips <- function(a_id = 1) {
source("./R/setup_logging.R")
## Setup the logging destination
lg <-
lgr::get_logger("test")$set_propagate(FALSE)$set_appenders(lgr::AppenderJson$new(layout = LayoutLogstash$new(), file = here::here(
paste0("logs/runner_", as.character(a_id), ".... |
4c2ed5b0d9be0c1a82de17d4d2754aa39f5dbdc7 | 59549521738b64f99664901f5e57b4f3cd1e973d | /man/fidlr.Rd | c47e91c84ed28dfaafc4feec02adc13edaa19f38 | [] | no_license | wx2000/fidlr | 360fbb93dde6f97f97a8686fe9bd8a00c7b3df41 | eb5e265f37edcf4d6e2f6a91e99625bdb66020ed | refs/heads/master | 2020-03-23T09:22:01.692988 | 2016-04-21T15:42:28 | 2016-04-21T15:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 702 | rd | fidlr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fidlr.R
\name{fidlr}
\alias{fidlr}
\title{fidlr: FInancial Data LoadeR}
\usage{
fidlr()
}
\value{
Return either a csv file per instrument or a data frame. The csv file is stored in the working directory and the data frame in the globalenv.
}
... |
a4eaa4b9c02d489ac29daf107fccebad30f54d78 | 7e10acd6c868fc92dc6fcee074a8b00c8016162e | /tests/testthat/test_fmmm.R | 99add5a52ff3e7fe54f1b467ad43a240fd2e7f5a | [] | no_license | kenmansfield/foofactors | abd1ad4ebb4d6d04598e93ea7130ccde0e3f7d42 | a64ab10cb3082403494faebcf037eec5c04e21f7 | refs/heads/master | 2021-01-10T08:18:21.784817 | 2015-11-21T08:14:47 | 2015-11-21T08:14:47 | 46,602,902 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 220 | r | test_fmmm.R | context("arithmetic")
test_that("fmmm finds the max minus min", {
a <- c('a','b','c')
b <- c(1,2,3,4,5)
d <- c(1000,5,6,7)
expect_error( fmmm(a) )
expect_identical(fmmm(b), 4)
expect_identical(fmmm(d), 995)
})
|
652ef9769021de86d9e0f7f0173fbf548d98aa80 | f1c0fb20fcc3482ee1498a4b5c128e33424f2b7d | /main.R | 17ccbb3fffe13d96b668c8a93f3b08b2eb791272 | [] | no_license | mvaniterson/KaggleDsb2018 | 6ea77b529d3bfc8645b4887677513e2f475d7cf8 | c18e760781c5ccaf80e9187d5cf5d900288fde18 | refs/heads/master | 2021-04-06T05:58:32.443221 | 2018-03-13T15:52:41 | 2018-03-13T15:52:41 | 124,549,499 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,562 | r | main.R |
## ----requirements--------------------------------------------------------
library(keras)
library(tidyverse)
library(EBImage)
src_files <- list.files("R", pattern="*.R", full.names = TRUE)
tmp <- sapply(src_files, source, .GlobalEnv)
options(EBImage.display = "raster")
TRAIN_PATH = '../input/stage1_train/'
TEST_PA... |
6d206db7d8f7458bd43d7c8bb5bd55c603dfcbbf | e6d211afff7bd6fe7065150a233ca3f3564f13d6 | /R/normalizer.R | 49bf3f7a51aa63b3d748cae6373129aa15afb6f7 | [] | no_license | arcuellar88/gender-indicator | cc5b2c2f9c643f87f9f527670aa465e064d3d8e9 | bbed90dd4fa549bfe636129ff6a824bd8b2f769b | refs/heads/master | 2020-07-03T17:54:27.483828 | 2016-12-30T18:06:58 | 2016-12-30T18:06:58 | 66,368,484 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 409 | r | normalizer.R | #' Function to compute the normalization of the value of the indicators by year in DashDB.
#' @param con connection to dashdb (con <- idaConnect("BLUDB", "", ""))
#' @return the results are computed directly in DashDB
#' @examples
#' computeScores(con)
computeScoresDashDBFromFile <- function(con)
{
sqlcommands<-readS... |
07b4a61f1bced8a169a446496dfa365d29b6c6aa | 6c3b2cdea485ec954dd93ee5c87c0a014d80a812 | /src/R/server.R | 2999987120dd5c42d47616438e46155aaf360eab | [] | no_license | anthonysena/dqcdm-temporal | b0bf29bee7a5a3b3b4e402656fb1c95c3d6079b3 | 32d32db703457b784917e7edcfd8f6ad14cc0453 | refs/heads/master | 2021-01-21T05:36:12.224659 | 2015-11-07T20:23:09 | 2015-11-07T20:23:09 | 45,744,185 | 0 | 0 | null | 2015-11-07T16:26:57 | 2015-11-07T16:26:57 | null | UTF-8 | R | false | false | 476 | r | server.R | library("shiny")
# Read in the data.
source("sharedFuns.R")
source("read.R")
source("compare.R")
shinyServer(
function(input, output) {
output$mainplot <- renderPlot({
print("hello")
sn <- input$DB
year <- as.numeric(input$Year)
cid <- input$Cond
browser()
res <- compar... |
dc68672905b0bb56e40b6be20e7fd54a92c1ab3e | 213b22f2e6e6072b186db8f3fa934acbef1f740d | /R/USR/!FULL USR MODEL.R | 09add984ed3f96ae5e11042f5cce76c56a5a34cc | [] | no_license | cekmorse/Calcs | eb03a0c791a161467de496fd8ce5b3023aae8e1b | 0fc2d4aa755d0d31aa65e477d0b5ddd2ee838782 | refs/heads/master | 2021-06-25T20:10:23.622472 | 2015-07-28T17:00:32 | 2015-07-28T17:00:32 | 35,171,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,368 | r | !FULL USR MODEL.R | source("~/Projects/Thesis/Thesis-Calcs/R/USR/01 Variable Realizations.R")
print("done 01")
source("~/Projects/Thesis/Thesis-Calcs/R/USR/02 Survey Analysis and Plots.r")
print("done 02")
source("~/Projects/Thesis/Thesis-Calcs/R/USR/03 Conc Models.R")
print("done 03")
source("~/Projects/Thesis/Thesis-Calcs/R/USR/04 Conc ... |
12f576509b244e3eb8a3742ef2456bf97f18f343 | 29585dff702209dd446c0ab52ceea046c58e384e | /ThreeWay/R/T2func.R | 5a4f2e60f242a2eda21d5470deef91dbbf020b42 | [] | 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 | 3,265 | r | T2func.R | T2func <-
function(X,n,m,p,r1,r2,r3,start,conv,model,A,B,C,H){
X=as.matrix(X)
if (model==1){
C=diag(r3)
}
if (model==2){
B=diag(r2)
}
if (model==3){
A=diag(r1)
}
cputime=system.time({
# initialize A, B and C
ss=sum(X^2)
dys=0
if (start==0){
cat("Rational ORTHONORMALIZED start",fill=TRUE)
... |
9b8420c4976b7cd76f73cbfbd951d11f163eb4b3 | e7b6b9754ebffd6db69611f2ca49edb1f2752399 | /man/user_creation_manager.Rd | 018e662e6c0f642e9220ad01fd81aadee3feaf61 | [] | no_license | 8280567/shinyauth | 59e56e3d95e3a15170997b3d3afa15d4623a6287 | 5dc2bd03331c98c2f9d081e1f326b544cb3cf11e | refs/heads/master | 2021-09-05T10:58:10.608826 | 2018-01-26T17:27:04 | 2018-01-26T17:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 361 | rd | user_creation_manager.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_user.R
\name{user_creation_manager}
\alias{user_creation_manager}
\title{This funciton allows an admin to create a new user of the app}
\usage{
user_creation_manager(input, output, session, auth)
}
\description{
This funciton allows an... |
463304868ceb7a58c6982c5331dfa49cfd9bb09a | 5e94b522bd93166db71ffe6b214edb3daa706908 | /Materiell fra tidl semestre/h18/Gruppe 2/scripts/4seminar.R | 9c49b4020ecda564f739523a711ffc6ce8714bd1 | [] | no_license | liserodland/stv4020aR | c3411a6a61f0e1dcdab1f6d7577ae707b86100d0 | 78cd1fade56c05c55cc86dd9adcb72f77a9884d3 | refs/heads/master | 2023-08-05T04:26:54.567357 | 2021-09-10T10:42:10 | 2021-09-10T10:42:10 | 288,154,313 | 0 | 7 | null | 2020-08-17T10:47:59 | 2020-08-17T10:47:58 | null | UTF-8 | R | false | false | 12,793 | r | 4seminar.R | #' ## Disposisjon
#' 1. Laste inn data (.rda / .RData)
#' 2. Omkoding #advanced
#' 4. Multinomisk logistisk regresjon
#' 5. Rangert logistisk regresjon
#'
#' ## Laste inn data
#' Denne gangen skal vi laste inn et datasett lagret i en R-fil. Dette er litt anerledes enn funksjonene vi har gjort tidligere (altså read.\*(... |
a5ba56c27bbd085fe5d3fdcddc704716eb89f778 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/r/nt_solutions/segmentation_3_snakes_levelset/exo6.R | aad14f9b38112594ea8d187cf0fcc72115301719 | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | R | false | false | 404 | r | exo6.R |
par(mfrow=c(2,2))
phi <- phi0
k <- 1
gW <- grad(W, order=2)
for (i in 1:niter){
gD <- grad(phi, order=2)
d <- pmax(eps*array(1, c(n,n)), sqrt(apply(gD**2, c(1,2), sum)))
g <- gD/array(rep(d,2), c(dim(d),2))
G <- W*d*div(g[,,1], g[,,2], order=2) + apply(gW*gD, c(1,2), sum)
phi <- phi + tau*G
if (mod(i... |
18c45f759ade3c9b714c058ddc8c23d185027960 | 25ec9519eeb158a777ed9865dfb57aab0809c60d | /VERSIONS/LatticeKrig.OLD/R/LatticeKrig.R | bffbccd8d854e4763ee961c92167a5799791badc | [] | no_license | NCAR/LatticeKrig | cccdcaba2d16c96b722de6a2e499e09f5c36ccf2 | 5caccca61f52b53d215d9375dedb8553e6ee75b7 | refs/heads/master | 2021-09-14T10:49:13.136451 | 2021-08-23T21:58:31 | 2021-08-23T21:58:31 | 61,819,138 | 7 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,496 | r | LatticeKrig.R | # LatticeKrig is a package for analysis of spatial data written for
# the R software environment .
# Copyright (C) 2012
# University Corporation for Atmospheric Research (UCAR)
# Contact: Douglas Nychka, nychka@ucar.edu,
# National Center for Atmospheric Research, PO Box 3000, Boulder, CO 80307-3000
#
# This program i... |
43e31ba096494c7d0ef25fb3ac90f53ae8704b2b | 05235c8fd39b73786a573605e15f241b2d2a812a | /FiPSPi.R | e9686e5768d9959464fec465de06b9d2d2577e12 | [
"BSD-3-Clause"
] | permissive | mpc-bioinformatics/FiPSPi | 88fa24bf9e7bdb4f1689ef3d78b148c8e0d846c1 | 9679c965b08cf1776d5e2a8b055acf693deec5ff | refs/heads/main | 2023-05-07T15:57:43.948010 | 2021-06-01T11:51:53 | 2021-06-01T11:51:53 | 349,067,195 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 35,177 | r | FiPSPi.R | ##########################################################################
# COPYRIGHT & SUPPORT #
##########################################################################
#
# FiPSPi: Random Forest-based muscle fiber peptide selection pipeline.
#
# This code ha... |
0844c1c527945deeb24fdee28a6d3c1201662709 | e6c363415d45418d3a9d2e4fa965fa6b063f7562 | /R/gl.recalc.metrics.r | 7745056e27be3a208270dd50a07146c252fd152b | [] | no_license | hakancengiz1/dartR | 4a5c53d028d179c07568def79aa36c899adb225d | 51e2fb65bd8cf7b4cdc42d6f621280b557ae39d6 | refs/heads/master | 2020-04-29T04:01:12.910064 | 2019-02-05T23:15:34 | 2019-02-05T23:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,136 | r | gl.recalc.metrics.r | #' Recalculate locus metrics when individuals or populations are deleted from a genlight \{adegenet\} object
#'
#' When individuals are deleted from a genlight object generated by DArT, the locus metrics no longer
#' apply. For example, the Call Rate may be different considering the subset of individuals, compared
#' w... |
5d0d7938189d0fbfd7bd172f18455060c18cc667 | 86b2f27330f1bcfdefc6d05ad7edc8eb047b92d7 | /demo/factors.R | b05adc33d3c74560331e78696f5288b5a80a4fab | [] | no_license | nuitrcs/r_intro_june2018 | 7f08de281e984a45fb26ab62816d8e7ae72309f5 | ecb2921c3d84ec4a39e001296b1047fd4820bcdb | refs/heads/master | 2020-03-19T21:33:25.956004 | 2019-04-22T15:25:44 | 2019-04-22T15:25:44 | 136,942,705 | 8 | 4 | null | 2018-09-09T03:57:31 | 2018-06-11T15:06:04 | HTML | UTF-8 | R | false | false | 1,832 | r | factors.R | # difference between character vector and factor
mycolors<-c("red", "blue", "green", "red", "red", "blue")
mycolors
str(mycolors)
mycolors<-factor(mycolors)
mycolors
str(mycolors)
# get levels
levels(mycolors)
# what happens if we set levels?
mycolors
levels(mycolors) <- c("red", "blue", "green")
mycolors
## Uh-oh! ... |
00103ac22dda94212351ec4007526cf871ed8507 | b0ee5b34efd96c700b13079b1979ded8a4a0a678 | /cachematrix.R | c7e9f7f51b86d6fcc73a688308974038fd3a3be5 | [] | no_license | Alohany/ProgrammingAssignment2 | b76deb3b0d537a87bd84da8bdb8731677df84861 | 2fd50a8f77057e080e145b61c8b2a81a7617a7f4 | refs/heads/master | 2021-01-17T17:21:02.686319 | 2014-04-23T00:11:35 | 2014-04-23T00:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,432 | r | cachematrix.R | ## These functions allow the user to calculate the inverse of a matrix using the R solve()
## function and then cache the inverse for subsequent retrieval.
## The functions assume that the matrix is invertible and has not changed over time. The
## functions reduce the processing overhead of repeatedly calculating the... |
d225ed835dfd4dae556d46fb299a04de1b7539a7 | fe1263d41e239ebb824c689389832068aa976876 | /inst/example/test_3.R | 0bbb94e055807efbb07f5a48cd09df5f5c4dcded | [
"MIT"
] | permissive | kcf-jackson/typeChecker | caee580bdf8030d4b5791bfad0a18159272ee61c | 39bdf23d4e60811db980168f038294836883d627 | refs/heads/master | 2023-03-09T17:34:07.877799 | 2021-02-15T15:38:38 | 2021-02-15T15:38:38 | 300,884,891 | 6 | 1 | NOASSERTION | 2021-02-15T15:38:38 | 2020-10-03T13:18:46 | R | UTF-8 | R | false | false | 387 | r | test_3.R | dog <- function(name = ? character) {
list(name = name) ? dog
}
introduce <- function(x = ? dog) {
sprintf("Woof! My name is %s!", x$name)
}
x <- dog("Napawleon")
introduce(x) # correct usage
introduce("Pawgustus") # type error
# In the expression:
# introduce("Pawgustus")
# The following type er... |
842775d311c954affafbd11cff0b97c5f852f24f | 0ccdd0abbf3d39f1c5e971e26a60f53719ba6fb4 | /ml/scripts/proj_nat_gas_forecast/1_R_Scripts/describe.R | 77f07736816e2360218e0d64c71379d3101b1898 | [] | no_license | pickle-donut/RScripts | 9a87bd616ea3cd89a94c98e8438c3bc80432392b | 2a60daf6cfbeaa194f696daf699b387544f8f163 | refs/heads/master | 2022-11-09T00:01:57.999428 | 2020-06-15T23:27:00 | 2020-06-15T23:27:00 | 270,508,904 | 0 | 0 | null | 2020-06-15T23:27:01 | 2020-06-08T03:06:02 | R | UTF-8 | R | false | false | 1,473 | r | describe.R | #libraries
library(psych)
#working dir
setwd("/Volumes/FILES/Homeworks/R&Py/Project")
#reading file
gas_data = read.csv("ProjectData.csv", header = T)
str(gas_data)
#converting Reporting Date to date object
gas_data$Report_Date = strptime(as.character(gas_data$Report_Date), "%Y-%m-%d")
str(gas_data)
#summary
summa... |
68f50e8aca9118e759de3fb137b2cdd7912655cd | 6433380761f92c0c61c04691d8a9479876a6caab | /plot3.R | 5b801f8c2c9f4ef011af9ea34ae3b317d8355a05 | [] | no_license | lachrymethod/ExData_Plotting1 | de562f8204264d792703fa4d4adf280a4eea9da6 | b8e19d48261f40ebb65fa691bcfefd0638741fab | refs/heads/master | 2020-12-27T06:43:05.248656 | 2015-01-11T01:45:58 | 2015-01-11T01:45:58 | 29,060,669 | 0 | 0 | null | 2015-01-10T15:10:33 | 2015-01-10T15:10:32 | null | UTF-8 | R | false | false | 1,398 | r | plot3.R | ## Exploratory Data Analysis - Course Project 1 Plot 3 Script
## Read the data into R
hpc <- read.table("household_power_consumption.txt", sep = ";",
header = TRUE, stringsAsFactors = FALSE)
## Pull out only the 2 days that we need for the graphs
hpc2 <- hpc[... |
5b507b548405c81f7a1f7103b4d0ff048f3d111a | 0b40083a0cd55e52b70a5f86d98d6fecc395c5e6 | /R/CATcanada_logistic.R | e831375553b21148d58377c557c0acc403034559 | [] | no_license | AridanNadav/CAT_VMF_Analysis_scripts | ba41b44a56cd9e901a8fd56b892c31aaa6075bd8 | be4cc732751dd546f442fa9bc3e1659e9a167fa1 | refs/heads/master | 2021-05-01T06:09:28.663968 | 2018-02-11T15:54:59 | 2018-02-11T15:54:59 | 121,136,560 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,715 | r | CATcanada_logistic.R | ## logistic regression :
rm(list = ls())
library(lme4)
library(lmerTest)
library(ggplot2)
DataPath<-("/Users/papanadipapanadi/Google Drive/Nadav/Tel_Aviv_University/Tom_LAB/Experiments/CAT_frontal_patients/results/old/CATcanadaLog04-Jan-2018.csv") #set the path of your file eva4choice_12_7_123.csv
CurrentData<-... |
6fe15a7d55e3c24802dd5f277e858ce431a835bf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/meaRtools/examples/aggregate_features.Rd.R | 277577aba447c705e110690b677b1123a24b0882 | [] | 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 | 454 | r | aggregate_features.Rd.R | library(meaRtools)
### Name: aggregate_features
### Title: Aggregate Feature Data
### Aliases: aggregate_features
### Keywords: MEA Aggregate
### ** Examples
data("S")
data("parameters")
s<-list()
s[[1]]<-S
spike_features = suppressWarnings( aggregate_features(s, "spike", parameters))
ns_features = suppressWa... |
fb5b645a85209b0f1c1366202ca353b43422640d | 5e428f64d6b8f3900f041d77355b00e1a07e2fd7 | /R/hess.R | e7bc408588ff1adc0c44e8d16d15fa67ab19f5d0 | [] | no_license | cran/coloredICA | 691a14ceff06b69a11c9cf82ef74f7d9acb78626 | 78e27e25296f6ac2f62de819772eac9d7534f42b | refs/heads/master | 2016-09-05T20:28:52.037339 | 2014-03-04T00:00:00 | 2014-03-04T00:00:00 | 31,257,572 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 300 | r | hess.R | hess <-
function(x,omega,l_period,n,freq,h){
he=colSums(kern(omega,h,freq)$v*as.vector(exp(l_period-x[1]-t((t(freq)-omega))%*%x[2:3]))*cbind(rep(1,n),t((t(freq)-omega)),t((t(freq)-omega))[,1]*t((t(freq)-omega))[,2],t((t(freq)-omega))^2))
matrix(c(he[1:3],he[c(2,5,4)],he[c(3,4,6)]),3,3)
}
|
e171672550036c1009e7e0bf5a912962d43c97a5 | c9607bb9381ff0b8b206e300e46e7bf92444d517 | /R/module_table.R | c3bdf5df546cc8884048e83f7dd11887e3ba96ed | [] | no_license | ComputationalProteomics/FusariumResponseInOatMethods | 01b99957b431456ab3f1a1069d76957d2bde6c1f | b9ffface554d091b504b0357c97e7a83b055924d | refs/heads/master | 2020-11-25T18:46:42.291144 | 2020-02-06T13:43:44 | 2020-02-06T13:43:44 | 228,570,939 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,477 | r | module_table.R | table_panel_ui <- function(
id, timepoints, annot_types, expr_presence, datasets, contrast_types, default_display_cols, optional_display_cols,
default_stat_fields, optional_stat_fields) {
ns <- NS(id)
tabPanel(
id,
fluidPage(
tags$head(
tags$style(type="... |
6dbea64fe22e7394aa0a731cf28d4517c6c033ab | eddc6237750e3e1b8ca1605472f09d002d104368 | /server.R | a1db3f37280bbca6fbc31bf85d79eddcdd32ebd9 | [] | no_license | RcKeller/INFO201-Final-Project | 3aadbe95135299be610af48818c725a6ff2f138a | b63b3164fb8770e305a5d2cc60b969d682c49fe0 | refs/heads/master | 2021-04-27T00:27:10.683153 | 2018-03-08T17:57:38 | 2018-03-08T17:57:38 | 123,817,160 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,537 | r | server.R |
# Builds the server for our Project's shinyapp
the.server <- function(input, output) {
#### DEPENDENCIES
### Utilities
# install.packages('Hmisc')
### Web Packages
# install.packages('shiny')
# install.packages("shinythemes")
# install.packages('httr')
# install.packages('jsonlite')
### Data Manip... |
1742d3e743af68922d16aed5615fe29ee9478986 | 47cfba59b500089782891b7d9befc1bec4943ba2 | /entropy/codingWalks.R | 2280727d2e9835c959ebfeb38b66b96a9f1198ce | [] | no_license | charleywu/ruggedness | d770a3dee2d2d6c01b60f355946050b643d1de03 | 11b7dba2119603fdfa075fa8ac0983df379cd413 | refs/heads/master | 2021-01-10T13:36:31.596341 | 2016-04-20T12:45:26 | 2016-04-20T12:45:26 | 50,932,824 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,001 | r | codingWalks.R | #coding random walks
rm(list=ls())
ptm<-proc.time()
setwd("walks")
setwd("10000") #walksize of walk to load
load("walks.Rdata")
#epsilon star values from fastEpsilon.R (1 step epsilon star)
epsilon_star <- c(0.016756621, 0.003327951, 0.005683390, 0.032014352, 0.003956948, 0.034378054, 0.002517841, 0.009171281, 0.01348... |
363948ea3cc77699db1d568147547ea026b7fb61 | 214b50f6b78062b18e3232c24fc2664c529f890c | /R/size_collab.R | 0f40f8bf1a3df16fb3e33e0b4c718c7f7ec20d61 | [
"CC-BY-4.0"
] | permissive | xchen101/HEPSurvey | 579c93076cbd0b54cd8047d8f02183b4e31a8425 | 709a0e4a260268d59b55689026b9acaa554ac302 | refs/heads/master | 2021-11-08T06:21:09.730457 | 2021-09-29T23:22:11 | 2021-09-29T23:22:11 | 125,383,529 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 795 | r | size_collab.R | setwd("/Users/xiaolichen/R projects/HEP survey/HEPSurvey/Data/Base/")
data = read.csv("usable_QC_FA.csv")
library (plotly)
x = c("> 500 members", "101 - 500 members", "51 - 100 members", "20 - 50 members", "< 20 members")
y = c(
count_1 <- length (which (data$D4_1 == "> 500 members")),
count_2 <- length (which (d... |
87d54776a0e4c31e1d81f92bdc7d6fbab96b4e67 | 17171f285eb9908e7f3011032abefcd29f68d943 | /data-raw/flattax.R | e171c928fac484f11fa7342c5cbe77d48e3a6bcc | [] | no_license | zachcp/flattax | 31b378daf04695a4d506d618186876f9716869b3 | b2d6c9cbdc17da2220cf43271a63740af4c8dcc0 | refs/heads/master | 2022-12-27T05:32:17.623022 | 2020-10-13T19:27:25 | 2020-10-13T19:27:25 | 276,474,080 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,623 | r | flattax.R | ## code to prepare `flattax` dataset
library(data.table)
tdir <- tempdir()
taxfile <- paste0(tdir, "/new_taxdump.zip")
rankedtaxfile <- paste0(tdir, "/rankedlineage.dmp")
download.file(
"ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/new_taxdump/new_taxdump.zip",
taxfile
)
unzip(taxfile, tdir)
if (!file.exists... |
adbbb39161064c823711ca1aec348d136aaead83 | 4de0f73abd076eebf027331dd2c392013cd78fb6 | /Train/mergeData.R | 6b076e47f12077e94007a0c8b21e4ad82e6ef056 | [] | no_license | steve3003/MLSP-psychomy | e9bd853936312b533c57ca5c62c2e5aaa3698a68 | 453fe9f4709f4a50a0ae4a374f1f240e39a3df84 | refs/heads/master | 2016-09-06T15:36:40.201517 | 2014-07-31T09:05:27 | 2014-07-31T09:05:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 316 | r | mergeData.R | library(RWeka)
fnc = read.csv("train_FNC.csv")
sbm = read.csv("train_SBM.csv")
labels = read.csv("train_labels.csv")
data = merge(fnc, sbm, by="Id")
data = merge(data, labels, by="Id")
data$Id = NULL
data$Class = as.factor(data$Class)
write.csv(data, "train.csv", row.names=FALSE)
write.arff(data, "train.arff")
|
59070b4817e8bea6598e56dc71af47f9aa32a62a | 3c258c7fe3244f4a41dea7d264098ac614eef19a | /R/sig-extremes.R | 0d70cefba42be96cce775aaec598b2fcabda84df | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | USGS-R/repgen | 379be8577f3effbe7067e2f3dc5b5481ca69999e | 219615189fb054e3b421b6ffba4fdd9777494cfc | refs/heads/main | 2023-04-19T05:51:15.008674 | 2021-04-06T20:29:38 | 2021-04-06T20:29:38 | 31,678,130 | 10 | 25 | CC0-1.0 | 2023-04-07T23:10:19 | 2015-03-04T20:24:02 | R | UTF-8 | R | false | false | 733 | r | sig-extremes.R | #' Extremes report.
#'
#' @param data Local data (as list), or URL.
#' @param ... Everything else.
#' @rdname extremes
#' @importFrom rmarkdown render
#' @examples
#' library(jsonlite)
#' library(dplyr)
#' data <-
#' fromJSON(
#' system.file(
#' 'extdata', 'extremes', 'extremes-example-site-train.json', pa... |
703491d66f3206efdf8ff797f34c59dde98da9fd | dc7c1016493af2179bd6834614be0902a0133754 | /trunc.R | d5e4ef6edf53499460ce708a4c69320f3289a76c | [] | no_license | ashishjsharda/R | 5f9dc17fe33e22be9a6031f2688229e436ffc35c | fc6f76740a78d85c50eaf6519cec5c0206b2910c | refs/heads/master | 2023-08-08T13:57:05.868593 | 2023-07-30T13:51:56 | 2023-07-30T13:51:56 | 208,248,049 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 34 | r | trunc.R | num1<-0.8
a<-trunc(num1)
print(a)
|
2e514ec5412fdee5a0399c323fdeadff09381ce9 | 003b28924c215579620bf47fbdd64184582409c4 | /tests/testthat.R | ea5fd2bdd1ca8edcd83d3210225d22d36b41be26 | [
"MIT"
] | permissive | prestevez/toypackage | 87d2472ef9afc77336c653d5392eda10c8c9bc3d | 1f2e3df865c2d491b92b988b7b2d02c2db6d5eb1 | refs/heads/master | 2023-02-22T22:32:24.499335 | 2021-01-26T18:55:14 | 2021-01-26T18:55:14 | 333,181,925 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 64 | r | testthat.R | library(testthat)
library(toypackage)
test_check("toypackage")
|
4840a73250a7784d3e50c5d73d4ab14b311cb8b6 | 1e76886c729c7e0ae15cf18102fe0f614f9297e0 | /R/conformal_infer_cv.R | 75546642f358f53dfb5a48211c33d63089a08934 | [
"MIT"
] | permissive | tidymodels/probably | 2abe267ef49a3595d29dd7fdbdf7c836b3103c8d | c46326651109fb2ebd1b3762b3cb086cfb96ac88 | refs/heads/main | 2023-07-10T13:09:55.973010 | 2023-06-27T17:11:22 | 2023-06-27T17:11:22 | 148,365,953 | 87 | 12 | NOASSERTION | 2023-06-27T17:11:24 | 2018-09-11T19:02:58 | R | UTF-8 | R | false | false | 9,017 | r | conformal_infer_cv.R | #' Prediction intervals via conformal inference CV+
#'
#' Nonparametric prediction intervals can be computed for fitted regression
#' workflow objects using the CV+ conformal inference method described by
#' Barber _at al_ (2018).
#'
#' @param object An object from a tidymodels resampling or tuning function such
#' as ... |
4bc734930d8f121f43dca0eee503a9a0a74cb327 | f9eeb9f033cc0381ab0fe97cc1caa828880ebc8c | /Exercise7.R | c4360e3c5007f1c572be58dbcd0078094158c37c | [] | no_license | msuarez9/IBC_Exercise_07 | 2882fa37aee946f37ea60133b4bbc32a73b5c6df | 2b8846f7c5ff266e4a5b885e19260ccb32c4ef6e | refs/heads/master | 2020-09-09T16:51:04.948043 | 2019-11-15T04:09:22 | 2019-11-15T04:09:22 | 221,501,697 | 0 | 0 | null | 2019-11-13T16:18:07 | 2019-11-13T16:18:07 | null | UTF-8 | R | false | false | 885 | r | Exercise7.R | # Mariana Suarez and Jake Fry
# Biocomputing Assignment 7
#Read in iris.csv file
iris <- read.csv(file="iris.csv")
# 1
# Return odd rows of a dataframe
oddRows <- function(df)
{
for(i in 1:nrow(df)){
if (i%%2 != 0){
print(df[i,])
}
}
}
# 2
#Number of observances of indicated spec... |
a3301c63644db3c1463aa63ef0f453e878741ccd | 1428e35da991101da043708fba1e34bad5098b59 | /databaza_mrtvych_v_3_1/ui.R | 9d6ce10317de50931c86e67fd40bc62de8d9acbf | [] | no_license | pietro22/R_CODES | b3d82bb40ae9b0fd1b87872c756aa0e31ee0449b | 4c55f9fa804f75a82c155c188da269f2d68d9176 | refs/heads/master | 2021-04-09T16:17:22.809490 | 2018-03-21T09:04:06 | 2018-03-21T09:04:06 | 125,852,717 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 37,010 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
###################################################
### verzia 3
### - oprava vypoctu standa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.