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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e84b29e9a7422ee2deea63ffc83d6728222963ff | d8b4a48626eb51f88a6e75f4abc288ae97a44ca2 | /man/min_rank.Rd | 2d81548e20115b81436a267c420fce2cfc8e049e | [] | no_license | eclarke/eclectic | da8c4d9e91a114389f3aafb70dffe7dddd3420b1 | 621a81b8ac6b659300b4ab72621f080bdf273eb1 | refs/heads/master | 2021-01-17T09:09:49.255796 | 2017-11-13T17:38:34 | 2017-11-13T17:38:34 | 42,249,192 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 723 | rd | min_rank.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/taxonomy.R
\name{min_rank}
\alias{min_rank}
\title{Creates a MinRank vector from an agglomerated data frame.}
\usage{
min_rank(agg, end.rank, ranks = qiimer::taxonomic_ranks, ...)
}
\arguments{
\item{agg}{\link{agglomerate}d data frame (with ... |
a478a75b78c4526de77a0592275ec9519a60453e | 41994da520410968257d912d704ab7434c595daf | /IMDB.R | 496f54a715eb4eb074851b3717008d94ae62032e | [] | no_license | germckay/IMDB | c58a4e47e63ede8664be4d5be89d739d6870fb50 | 6183371206460a4b941f826fdc7388ffe5a00f07 | refs/heads/master | 2022-12-15T14:57:17.375681 | 2020-09-02T22:16:48 | 2020-09-02T22:16:48 | 292,404,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 194 | r | IMDB.R | #################################
### In-Class IMDB Competition ###
#################################
# Reading in packages
library(tidyverse)
# Reading in Data
# Exploratory Data Analysis
|
d8bcd9043f62f4e3d6c3734d09c1502452990916 | 82ea213c1ec0f269ca67bc84fd4629ac17f0fa29 | /man/rasterizeGimms.Rd | a03133721425b6046c43f348518dafb50218d698 | [] | no_license | cran/gimms | 3a51971c97073acdf20fa333c783066035067366 | b937e90ac5be9e0a6abeb9d06263a8276e164f36 | refs/heads/master | 2023-08-17T16:16:41.858408 | 2023-08-09T19:00:02 | 2023-08-09T19:31:01 | 48,080,919 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,599 | rd | rasterizeGimms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rasterizeGimms.R
\name{rasterizeGimms}
\alias{rasterizeGimms}
\title{Rasterize GIMMS NDVI3g Data}
\usage{
rasterizeGimms(
x,
ext = NULL,
snap = "out",
keep = NULL,
split = FALSE,
cores = 1L,
filename = "",
...
)... |
ca3e58b1e437796ed99c836754f03479cfb1a984 | 00d5fbe9ac0bac3dd635c922d1a6fd81f778a5f8 | /2.2_solarradiation.R | 00364156c9b62528a772994df3038218df6c7a90 | [] | no_license | enicurus/warbler.molt.migration | f21b691af548d5cef99636a13772ba232e2dc001 | aa12e83ef0929570a97ee3c3618d84fbd3a1dcf4 | refs/heads/master | 2021-01-22T23:05:56.429844 | 2020-02-20T21:55:04 | 2020-02-20T21:55:04 | 85,604,728 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,594 | r | 2.2_solarradiation.R | library(raster)
library(maps)
library(maptools)
library(sp)
library(GISTools)
library(geosphere)
##################################################################
#Import solar radiation data
nasa = read.table(file='~/Dropbox/Warbler.Molt.Migration/global_radiation.txt', skip=13, header=TRUE)
coordinates(nasa) = ~ Lo... |
04e4c00e2808c089f4b97c0094c7dde641ff0f59 | bd3d28fe434b50abaf37ee82aa79584df4f173a7 | /man/namespace_match.Rd | dbf2615a4c4de2ef95f0d109f819a3c478873df2 | [
"MIT"
] | permissive | wikimedia-research/WMUtils | ff4a9adb5c33722443016f7aba4fb6e873bf8cc5 | fed8178aad9d0f24936fa675184a0b00af93ee64 | refs/heads/master | 2020-04-01T06:56:40.070383 | 2014-12-21T17:06:19 | 2014-12-21T17:06:19 | 20,454,634 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,758 | rd | namespace_match.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{namespace_match}
\alias{namespace_match}
\title{namespace name/number matching}
\usage{
namespace_match(x, code = "enwiki", language = NULL, project_type = NULL,
use_API = FALSE)
}
\arguments{
\item{x}{a vector of namespace names or numbers}
\item{code}{whic... |
2c4359a30ea12bb07fa57bdeab453b0ab1c36b90 | d8ed284412c99f0ca03491b6b8a65e2ae1ae3964 | /other/images/summarize_DOW_data.R | 0004a84fd1e280360357a74beac539b5ac19aa8e | [
"MIT"
] | permissive | jwillwerth/FrEDI | e3cd3bef0ee6d05cdc7c5f8518728bb35413fab7 | 1d698e41fe4e70f4e6d21eb2958702d0c77d6d01 | refs/heads/main | 2023-08-15T23:47:54.396764 | 2021-10-15T17:17:06 | 2021-10-15T17:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,015 | r | summarize_DOW_data.R | ###### summarize_DOW_data ######
### This function summarizes data to use with plot_byDegree
summarize_DOW_data <- function(
data,
year = 2020,
primary = T,
sumByCol = "annual_impacts",
bySector = T,
otherGroupVars = c("adaptation", "impactType", "impactYear"),
impactYear = NULL,
silent = F
)... |
f7e194ee7ad42c8eb0abe17efabb6847818de370 | a5e49e9b3e7892ce476bab528cde3f686d5a5e3d | /R/reg.6mod.R | a305b10fff34ed07689cb9f916d5a8a59be1b1da | [] | no_license | cran/lessR | a7af34480e88c5b9bf102ab45fa6464a22ffbe3b | 562f60e6688622d8b8cede7f8d73d790d0b55e27 | refs/heads/master | 2023-05-29T07:57:09.544619 | 2023-05-14T20:20:02 | 2023-05-14T20:20:02 | 17,697,039 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,012 | r | reg.6mod.R | .reg6mod <-
function(lm.out, w.nm, x.nm,
digits_d, pdf=FALSE, width=5, height=5, manage.gr=FALSE, ...) {
nm <- all.vars(lm.out$terms) # names of vars in the model
n.vars <- length(nm)
n.keep <- nrow(lm.out$model)
# pdf graphics option
if (pdf) {
pdf_file <- "mod.pdf"
pdf(file=pdf_file, wi... |
9f640967a349e53fa86b285671246735ed66407f | e0bcd3a0bfa23c1d445c2c738b8e37323a0c3b71 | /test/20181229_data_integrity_testing.R | 50b2c0bc317ed44a03c2729fa952c7c84d5773a4 | [] | no_license | active-analytics/pqam_2018 | 87a017a55c130412e4d090518f2f47a6adb67c9a | cbc0437bb9da5460939641ec39af24070b733e24 | refs/heads/master | 2021-10-20T11:22:43.513713 | 2019-02-27T14:07:28 | 2019-02-27T14:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,326 | r | 20181229_data_integrity_testing.R | # clearing shit out
rm(list=ls())
cat("\014")
# loading packages
library(tidyverse)
library(lubridate)
library(backtestr)
library(tidyquant)
#######################
## chain description ##
#######################
df_chain_desc <-
read_csv("data_output/spy_weekly_chain_desc_5yr.csv")
# reasonableness of numeric... |
777401b869c38259a8a2cf53c58de9731debf0df | 6878863aa57046c8b183cc3ea976e4b80a051bc3 | /week4/quiz4.R | 07f3864daa7ab84d5661d991a6b502f459576e3f | [] | no_license | Bill1987/Getting-and-Cleaning-Data-Coursera | 6b0042da02861283daae1c611e4cc01b2661f3b6 | 2ec76dfc412818b4509eb56d44146ce5fc406a2d | refs/heads/master | 2020-03-27T04:10:59.267392 | 2018-09-20T03:17:47 | 2018-09-20T03:17:47 | 145,918,667 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,258 | r | quiz4.R | ###----------------------------------------------------------------------------------------------------------------------
###Question 1------Question 1-----------Question 1-------------Question 1-------Question 1
# The American Community Survey distributes downloadable data about United States
# communities. Download... |
5776f1f305060b704f7ca0d9a12878c2e735fbc6 | b08b7e3160ae9947b6046123acad8f59152375c3 | /Programming Language Detection/Experiment-2/Dataset/Train/R/time-a-function-2.r | b3436af0b832cb2435a34ca262a2f936f7a738db | [] | no_license | dlaststark/machine-learning-projects | efb0a28c664419275e87eb612c89054164fe1eb0 | eaa0c96d4d1c15934d63035b837636a6d11736e3 | refs/heads/master | 2022-12-06T08:36:09.867677 | 2022-11-20T13:17:25 | 2022-11-20T13:17:25 | 246,379,103 | 9 | 5 | null | null | null | null | UTF-8 | R | false | false | 41 | r | time-a-function-2.r | Rprof()
foo()
Rprof(NULL)
summaryRprof()
|
0222238f10814faaf94670da190edefc685da2fa | b75de980dc88ca4a9c08352fd883b534638d7563 | /bindings/R/rlibkriging/tests/testthat/test-KrigingPredict.R | 51a1440e3d7476f2a87d0ba8988c84c22039933a | [
"Apache-2.0"
] | permissive | haveneer/libKriging | ecb14838c2bce15818f1a017f6931cfb4b2cd8d6 | d95342483de6bf7095911167b8145ff0bd98ba62 | refs/heads/master | 2022-05-24T22:57:52.082051 | 2022-02-04T16:54:29 | 2022-02-04T16:54:29 | 193,868,887 | 0 | 0 | Apache-2.0 | 2020-07-26T10:05:19 | 2019-06-26T09:02:29 | C++ | UTF-8 | R | false | false | 1,186 | r | test-KrigingPredict.R | library(testthat)
f = function(x) 1-1/2*(sin(12*x)/(1+x)+2*cos(7*x)*x^5+0.7)
#plot(f)
n <- 5
set.seed(123)
X <- as.matrix(runif(n))
y = f(X)
#points(X,y)
k = DiceKriging::km(design=X,response=y,covtype = "gauss",control = list(trace=F))
library(rlibkriging)
r <- Kriging(y,X,"gauss","constant",FALSE,"none","LL",
... |
d438e647d666d6b13d1b07a2ecbcd68f1bc7867a | 186dd33c855dc643aeef3953a373a6d704588cf0 | /man/pp_opts_out.Rd | 869ed7597ab5f7de6385ffce05eb1a22907a7d53 | [
"BSD-2-Clause"
] | permissive | cran/pubprint | 8432d36fc9d0aa8397bbb41d6fae1f189d967f80 | 864a5a20de759dcd50bee84ad44639601a5aadc6 | refs/heads/master | 2021-01-21T14:04:33.481164 | 2016-05-24T10:28:06 | 2016-05-24T10:28:06 | 50,608,880 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 933 | rd | pp_opts_out.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaults.R
\docType{data}
\name{pp_opts_out}
\alias{pp_opts_out}
\title{Output format options for the pubprint package}
\format{A list with a \code{get} and \code{set} function.}
\usage{
pp_opts_out
}
\description{
A list which functions are ... |
fda1aee3039996fb960b376630322a95257af67f | e9bd727dd117bbd4df0888a1b83862c7dd5d8fee | /Week 5/code/ANN-concrete.R | c0baefe79825f7b4d5a91d7c20cec3fe285cc4a4 | [] | no_license | cdtan/Pred_Models_git | 3aebf9819bc2771b45521c275a7cc029ba257b80 | afa9b535955547b2b526fce77f3f1b1cd7a1ce22 | refs/heads/master | 2020-04-29T17:19:09.869391 | 2019-03-20T14:06:00 | 2019-03-20T14:06:00 | 176,293,378 | 1 | 0 | null | 2019-03-18T13:35:01 | 2019-03-18T13:35:00 | null | UTF-8 | R | false | false | 3,643 | r | ANN-concrete.R | #A continuous Target
setwd('/Users/mylesgartland/OneDrive - Rockhurst University/Courses/Predictive Models/Pred_Models_git/Week 5/data')
## Step 2: Exploring and preparing the data ----
# read in data and examine structure
concrete <- read.csv("concrete.csv")
str(concrete)
boxplot(concrete)
#custom normalization fun... |
f83fc140cb63c4d3bd3a28e4c7b6f139ebb62064 | 1d6d5a11bd45a0b8ba9f78d0fd4598a735b70c33 | /man/SNPcontam.Rd | 12dd0851f3a854b7c7b15e672c09bc6d6cf92205 | [
"LicenseRef-scancode-public-domain"
] | permissive | eriqande/SNPcontam | 63460083483c66ff5a87fe2aee0a2a5249ac6b45 | 04de02b1415fd1c6612cd7f34c9ce5c552bb97fd | refs/heads/master | 2021-01-10T19:48:04.519930 | 2014-12-18T00:00:44 | 2014-12-18T00:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 300 | rd | SNPcontam.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\docType{package}
\name{SNPcontam}
\alias{SNPcontam}
\alias{SNPcontam-package}
\title{Detecting contaminated samples from SNP genotypes}
\description{
\code{SNPcontam} is a package in development.
It really is just in development at the moment
}
|
2a6db50aab950346d235d9b415cd2245b2de3703 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/stringi/examples/stri_trans_char.Rd.R | 58a604db2953f8f1fd15260da84753a017fd302f | [] | 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 | 201 | r | stri_trans_char.Rd.R | library(stringi)
### Name: stri_trans_char
### Title: Translate Characters
### Aliases: stri_trans_char
### ** Examples
stri_trans_char("id.123", ".", "_")
stri_trans_char("babaab", "ab", "01")
|
d52f5397233e8d4625c821d09e2d8275afe956cb | 16dbd4a2054a2bdc5fd1e49552d283fe21fc0cc2 | /R/utils.R | a5fe0158379ea85b2cc621e4f2f6a3d2c1de0f2a | [
"MIT"
] | permissive | RLesur/pagedreport | 360d7efcde777db5bcc6311fd41bfa064d1ac3cc | bbfac117c4f5933508c8f12f18a8601de9c5e7b4 | refs/heads/main | 2023-03-04T06:27:30.558079 | 2021-01-19T14:56:58 | 2021-01-19T14:56:58 | 331,128,926 | 2 | 0 | NOASSERTION | 2021-01-19T22:40:03 | 2021-01-19T22:40:02 | null | UTF-8 | R | false | false | 108 | r | utils.R | pkg_resource <- function(...) {
system.file("resources", ..., package = "pagedreport", mustWork = TRUE)
}
|
d784adb735c80306ddb6d9cf0c58f48385f84363 | afd52451e8845963de4ad1243005834fa0958beb | /sta_r/sta_factanal.R | 74f8154a2eb670b5936991b1fac9dff8b68afd08 | [] | no_license | plus4u/R | 7c0d867767ae948b24a15322df11b500abcfd920 | c8c25313567bd8bcf5142a04187a24e0d5ad12d1 | refs/heads/master | 2021-09-19T13:52:40.115595 | 2021-08-11T06:47:22 | 2021-08-11T06:47:22 | 155,179,952 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,712 | r | sta_factanal.R | ## factor analysis : 1. factanal, 2. factor.pa( ) function in the psych package
# Maximum Likelihood Factor Analysis
# entering raw data and extracting 3 factors,
# with varimax rotation
## Determining the Number of Factors to Extract : library(psych)- plot or plotnScree
# Determine Number of Facto... |
c5342cea52d1ec0a43897df41676c8507a41127e | 969d4316ad794a0eef0213b01a7b06ddfdf8d90d | /14_performance/01_microbenchmark/exercise3.r | dce91768105276fec1e711946c051e5b80e8fe10 | [] | no_license | Bohdan-Khomtchouk/adv-r-book-solutions | adaa5b5f178999d130aff1359a23e978e39e86ae | e1b3a63c0539de871728b522604110c0aa18c7d1 | refs/heads/master | 2021-01-22T00:36:17.450660 | 2015-12-06T02:54:02 | 2015-12-06T02:54:02 | 47,481,353 | 1 | 1 | null | 2015-12-06T02:49:46 | 2015-12-06T02:49:46 | null | UTF-8 | R | false | false | 1,655 | r | exercise3.r | ### Use microbenchmarking to rank the basic arithmetic operators (+, -, *, /,
### and ^) in terms of their speed. Visualise the results. Compare the speed of
### arithmetic on integers vs. doubles.
microbenchmark::microbenchmark(2 + 2, 2 - 2, 2 * 2, 2 / 2, 2 ^ 2)
# Unit: nanoseconds
# expr min lq mean median ... |
cca464d1480f1e034dd796f614d0944510689235 | 5f8a241f0e6d5c0ebcdef4bc54dd45ace52a32f0 | /Plot3.r | 715ed804263fd26dac8af7d4496cd62e9694f9b5 | [] | no_license | Shayak94/ExData_Plotting1 | e4505f094db7608d9907a11fbce338cbf054b705 | 193706995ffe3cd1279c57df3d92fea9822a96ec | refs/heads/master | 2021-01-18T14:44:38.385605 | 2015-05-09T18:51:46 | 2015-05-09T18:51:46 | 31,761,525 | 0 | 0 | null | 2015-03-06T09:14:28 | 2015-03-06T09:14:28 | null | UTF-8 | R | false | false | 1,231 | r | Plot3.r | ?parcheck<-function(a){ ##checking for missing value,function to remove "?"
if(a=="?"){
a<-NA
}
}
ds<-read.table("household_power_consumption.txt",sep=";") ##Reading and subsetting
ds[,1]<-as.Date(ds[,1],"%d/%m/%Y")
subs<-subset(ds,ds[,1]=="2007-2-1" | ds[,1]=="2007-2-2"... |
3f42fa532f0a02e6634b3d91d1b6962f79cfaa41 | f2d0e19b55cb262c1e76dad1de21557a8f6640d1 | /govWebsitesIndiana2015.R | 06f56aa9e506ca863cd3b3a775ab0eaf3804f1d6 | [] | no_license | desmarais-lab/govWebsites | e405989a82374832e9715e08b785b13b34a85493 | e22e3ef38d7f986c7332a6d0d04d80e8a1b0edef | refs/heads/master | 2021-12-23T11:43:47.803689 | 2019-05-06T20:35:53 | 2019-05-06T20:35:53 | 80,395,954 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,680 | r | govWebsitesIndiana2015.R | library("dplyr")
library("tidyr")
#2015
mIN15 <- read.csv("data/mayorIN2015.csv", header = F)
mIN15$V1 <- as.character(mIN15$V1)
mIN15$V2 <- as.character(mIN15$V2)
mIN15$V3 <- as.character(mIN15$V3)
#clean up data - put city name, candidate name and votes in the correct column
for(i in 1:nrow(mIN15)){
... |
45e09b000caf9e97a3bda4f4028604bc747f2968 | 384e46729e7f151b5239e38b9ee8cf0b8fb8d477 | /1-birthday-problem.R | 2e53a6feb3a5193c6d76fec4452163faa097127f | [] | no_license | Vassar-COGS-319/lab-2-jodeleeuw | af03002c4de58385b7660134d6b15eaec14f08de | a348bc6ca82f32bdc407a18be11531323167b5c8 | refs/heads/master | 2020-07-24T22:48:24.635160 | 2019-09-12T17:43:50 | 2019-09-12T17:43:50 | 208,074,525 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,738 | r | 1-birthday-problem.R | # part 1 ####
# suppose there are 30 students in a class. estimate the probability that at least one pair
# students has the same birthday.
# you can ignore the possibility of people being born on Feb 29 during a leap-year.
# first, i'll write a function to generate a new class and return whether there are people
# ... |
05a8c7e0c99e98b214cf5eb026cdd11c99872b9f | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Miller-Marin/trafficlight-controller/tlc02-nonuniform-depth-43/tlc02-nonuniform-depth-43.R | d48969370f7327c4608400df43e3403ec9939112 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 78 | r | tlc02-nonuniform-depth-43.R | a8f52439a6d8f0c806af0954ca85a093 tlc02-nonuniform-depth-43.qdimacs 10077 26568 |
3b1b056eb760b5166124d10a8ba0e6a09c5a88b0 | b86d626d101e2a75696a08a04569e6be44e03b1f | /code/23_check_assumptions_v0.1.R | 100148ed7db9e73c4ddcaf89d75d6eec4a86fe9e | [
"CC-BY-4.0"
] | permissive | GitTFJ/carnivore_trends | d95a862ffd96122b2357fbf6d571abf9cc7030f3 | f7e423d7c2b51c3cb66567e8026db219ed49c579 | refs/heads/main | 2023-04-12T22:50:25.990602 | 2022-11-21T21:06:28 | 2022-11-21T21:06:28 | 555,432,324 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,590 | r | 23_check_assumptions_v0.1.R | mod = readRDS("Data/Analysis/full_mod_test4.rds")
mod.mcmc = as.mcmc(mod)
converge = mod.mcmc
for(a in 1:nchain(converge)){
trim = converge[[a]]
trim = trim[,c(grep(
paste("alpha",
"beta",
"sd.alpha",
"sd.gamma",
"sd.reg",
"sd.cou",
"sd.gen",
... |
7feb0cef6dac4df986fa1e6825546913b5281612 | 82ac620742e3fed4fcb08746269ca703509e8761 | /graphs/fromRCyjs/test_utils.R | 76c6b4a7606175dbe714c6b002e4109e6ecfad0f | [
"Apache-2.0"
] | permissive | PriceLab/STP | 6d2966dcbbb92a0403c22ca76944aa8e79a0ea47 | a63994b5e636ad6817465b43c0f680b7401906eb | refs/heads/master | 2020-03-22T02:00:11.456395 | 2018-11-16T21:18:46 | 2018-11-16T21:18:46 | 139,343,766 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,332 | r | test_utils.R | library(RUnit)
source("~/github/STP/graphs/fromRCyjs/utils.R")
library(graph)
library(jsonlite)
#------------------------------------------------------------------------------------------------------------------------
printf <- function(...) print(noquote(sprintf(...)))
cleanup <- function(s) gsub('\"', "'", s)
#------... |
001655c80d1e895005a0e76666c318a9e23189da | 54af5cc8afd2ee26683afef5ef21769419aae041 | /man/kstructure_is_wellgraded.Rd | 8e99d57e938ea965dc0eccad27c9285995ac4b0b | [] | no_license | cran/kst | 1fb402f6cee26906841b210d1a6214664ae60c6d | f841da1da8d5b0db20b2101a025537b802931a16 | refs/heads/master | 2022-11-10T16:25:29.191228 | 2022-10-24T12:52:37 | 2022-10-24T12:52:37 | 17,696,947 | 8 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,429 | rd | kstructure_is_wellgraded.Rd | \name{kstructure_is_wellgraded}
\alias{kstructure_is_wellgraded}
\title{Well-Gradedness of Knowledge Structures}
\description{
Tests for the well-gradedness of knowledge structures.
}
\usage{
kstructure_is_wellgraded(x)
}
\arguments{
\item{x}{An \R object of class \code{\link{kstructure}}.}
}
\details... |
a00fa9d41deb5d1dffeeceb8212a0d151841d8d6 | c853a2a1d74194b0ea5dcea67a28bcb194479c80 | /IntroR/CourseFiles/R01_2_Plots.R | a16f8e01ae625bd1f0c2f9e2bd1e9641a541c76d | [
"MIT"
] | permissive | chsolis/IntoT_test | 399e5c34774880f62addd22a288fef93fd3cd09a | 4f88a489dfe14b676645674bfd51f025dd5d7ff1 | refs/heads/master | 2022-04-24T05:28:38.354259 | 2020-04-28T01:54:15 | 2020-04-28T01:54:15 | 259,503,631 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 786 | r | R01_2_Plots.R | # File: R_3_Plots.R
# Course: Introduction to R
# Section: 3: Plots
# Author: Christopher Solis, uic.edu, @csolisoc
# Date: 2019-04-23
# 1. Load data ################################################
library(datasets) # Load built-in datasets
# 2. Sumarize data ############################################
ir... |
f2d14f5820b8ac80c875b33aba688c5cc1ba7f8f | 88ce0f88952733d55ea09255a322e9c3f850d7c2 | /function_Part.Dom.Sel.Coef.for.q.R | 35b45ad4820219538040465eec2e1aae83eb58a2 | [] | no_license | mrvella/IQTmosq | a9b98deaaea6e79c8dab055a11daa8b87c0c2e36 | 1b86526dd48616cbbe6b9edd98fdec527707e23e | refs/heads/master | 2021-01-26T07:16:42.181239 | 2020-02-26T20:48:35 | 2020-02-26T20:48:35 | 243,362,059 | 0 | 0 | null | 2020-02-26T20:45:36 | 2020-02-26T20:45:36 | null | UTF-8 | R | false | false | 1,286 | r | function_Part.Dom.Sel.Coef.for.q.R | # This is the function to calculate selection coefficient assuming partial dominance
# of q and selection for q, where A1 = p = R, A2 = q = S
# Solves for s in Table 2.2, equation 2 - column heading "Change of gene frequency"
# Falconer and Mackay, page 28
# To Load Required Libraries
library(scatterplot3d)
# To C... |
e835464d36e967904b70295f335e1d4cb3e4e85c | 7b26a7cef677c11d74013da42838a965485d8263 | /man/dosechange_vals.Rd | 5fad19cc2eb6a88b4915e506c2654cac502a21c5 | [] | no_license | choileena/medExtractR | 39ca350f6259ba475f64d2177640339da04918b4 | a92a6eab57fd581cd4a471e85a6b6fe482c4e76e | refs/heads/master | 2022-06-29T04:04:13.789905 | 2022-06-06T21:15:20 | 2022-06-06T21:15:20 | 197,653,826 | 4 | 1 | null | 2021-06-04T21:57:06 | 2019-07-18T20:39:55 | R | UTF-8 | R | false | true | 781 | rd | dosechange_vals.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dosechange_vals.R
\docType{data}
\name{dosechange_vals}
\alias{dosechange_vals}
\title{Keywords Specifying Dose Change}
\format{
A data frame with dose change expressions (exact and/or regular expressions).
\describe{
\item{expr}{A characte... |
e021b7b2901a4c3662d68adefdaaaf29808d16e6 | 0b18ee6f54030735ae117c67d1f363407ae7b66d | /R/utils.R | 22b4ecbdc1c480357f3668c0b27bdb85c9cd1532 | [] | no_license | crsh/prereg | e468c0fb031b081f965f57ff1d3a10e4e2083cd3 | 56d497921c325311d41489f0cf14878aa828520c | refs/heads/master | 2022-01-28T01:44:22.100425 | 2022-01-20T11:49:39 | 2022-01-20T11:49:39 | 48,246,208 | 53 | 11 | null | 2022-01-20T10:36:47 | 2015-12-18T16:53:22 | R | UTF-8 | R | false | false | 1,173 | r | utils.R | # Preprocessor functions are adaptations from the RMarkdown package
# (https://github.com/rstudio/rmarkdown/blob/master/R/pdf_document.R)
# to ensure right geometry defaults in the absence of user specified values
pdf_pre_processor <- function(metadata, input_file, runtime, knit_meta, files_dir, output_dir) {
args <... |
db72bff5f51afc5c837594096d54aeeded336f83 | ce4dca785d1172ce87f0ed9d778dddd3964a5396 | /R/account_albums.R | 24bf96a943c9bdbf8eaffd78313b83a88649e12e | [] | no_license | Zedseayou/imguR | 2e2517d1b7ad39eb9102ace473ae4e3c3a1a9892 | 6185d151efb26564307a18d0a86825c717b9bd1f | refs/heads/master | 2022-01-12T03:10:15.268427 | 2018-04-22T08:18:30 | 2018-04-22T08:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 509 | r | account_albums.R | account_albums <-
function(account = 'me',
ids = TRUE,
...){
if (!"token" %in% names(list(...)) && account == 'me') {
stop("This operation can only be performed for account 'me' using an OAuth token.")
}
if (ids) {
out <- imgurGET(paste0('account/', account, '/albums/ids'),... |
a455b02abf081397bcaafced8ca79d8f41b5caea | c774252b7929cdd9da0acbfaea6375078d1bbbb3 | /R/as.mpInterval.R | 9f9453704d5b099c1cbdc046ecf0363113e804d5 | [] | no_license | lmw40/mpMap2 | 35032fef23cf204f62eb7c8c7107a1034ba23d5e | 0ac4569b251ccc041cfe965dfe41091aff18e3bc | refs/heads/master | 2021-01-22T19:22:11.104705 | 2016-08-23T00:52:51 | 2016-08-23T00:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 173 | r | as.mpInterval.R | #' @export
as.mpInterval <- function(object)
{
if(!isS4(object) || !is(object, "mpcrossMapped"))
{
stop("Input object must be an S4 object of class mpcrossMapped")
}
}
|
4c6ed1aed09624f928f15811600b86455209236f | b1a6f8512d841dae7e8691a5771997f80ec8cd68 | /man/SimCiRat.Rd | 46151289b30805ea04c6744859c9fbe3b0fbd52e | [] | no_license | cran/SimComp | bffc073d4ae2eb817dbb9633b9c0251dca2b4f3b | adf7d7be63bcb964d7ea086710f65c14a3f34d35 | refs/heads/master | 2021-06-04T02:11:29.239529 | 2019-08-26T13:50:10 | 2019-08-26T13:50:10 | 17,693,681 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,037 | rd | SimCiRat.Rd | \name{SimCiRat}
\alias{SimCiRat}
\alias{SimCiRat.default}
\alias{SimCiRat.formula}
\title{ Simultaneous Confidence Intervals for General Contrasts (Ratios) of Means
of Multiple Endpoints }
\description{
Simultaneous confidence intervals for general contrasts (linear functions) of
normal means (e.g., "Dunnett"... |
52051fd3d8088cb12f5c942edccdae07dda8ffaf | f5279bbb062078f42a52f2d5c3613907ccf132ee | /man/dbGetInfo.Rd | 3a22e65ea0aafa556f4fa5aee1752f63bcaa2278 | [
"BSD-3-Clause"
] | permissive | prestodb/RPresto | cff084d4679bcb0e1237147d76f37b9e1cf42a83 | 3a9fb5baf81bca7c53ea8187ffc7ba784223ca23 | refs/heads/master | 2023-09-03T03:54:41.119049 | 2023-05-05T03:37:54 | 2023-05-08T02:49:45 | 32,487,073 | 140 | 50 | NOASSERTION | 2023-05-08T02:49:46 | 2015-03-18T22:11:28 | R | UTF-8 | R | false | true | 1,680 | rd | dbGetInfo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbGetInfo.R
\name{dbGetInfo,PrestoDriver-method}
\alias{dbGetInfo,PrestoDriver-method}
\alias{dbGetInfo,PrestoConnection-method}
\alias{dbGetInfo,PrestoResult-method}
\title{Metadata about database objects}
\usage{
\S4method{dbGetInfo}{Presto... |
629577c29ab6148bdae897d639b692bafa09f8dc | 9133a15cf08ba26a60cd47e26b32f8fad4d06000 | /genomic_range/workflows/protocolFunctions/enrichrResultsCompilation.R | c24f99380a6b73900204f0e4c73926ac6d22e0ab | [
"MIT"
] | permissive | mora-lab/benchmarks | d5922a0d7887b5ee245170f56fe6d1a8367cd496 | cde839aa35d39f74d03283c8bf50be3859349174 | refs/heads/master | 2023-01-08T23:45:44.849311 | 2020-11-12T11:08:18 | 2020-11-12T11:08:18 | 189,912,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,569 | r | enrichrResultsCompilation.R | enrichrResultsCompilation <- function(){
## Pulling Enrichr Results from a local directory.
tryCatch( {enrichrGOBPSamples <- list.files("./results/Enrichr/GO_Biological_Process_2018/")}
,error = function(e){ print("File not found"); break;}
,finally = function (f){next;})
enrichrGOBPSamples <- su... |
b9130ae104154e7f9d20b86051c9e0fd91b78a05 | 61990b472e2f6da90f3cf56e2ddf575c60dd8c18 | /scripts/categorical_vars_check.R | 55e34eee07fd0ad3b7f6f02eb39c4262460e5e6f | [] | no_license | caramirezal/vihCohort | 0a61dfebe622ebe318c7f983abbe650d706596ee | 599777373c5c83379893328c2515b74c1520b3ea | refs/heads/master | 2021-04-09T16:04:14.745535 | 2020-02-28T13:43:35 | 2020-02-28T13:43:35 | 125,657,852 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,124 | r | categorical_vars_check.R | ## lasso implementation on VIH patients cohort data
library(glmnet)
library(dplyr)
library(ggplot2)
library(gridExtra)
vih_data <- read.csv("../data/cleandata.csv", stringsAsFactors = TRUE)
str(vih_data)
## No NA values are presented in data
dim(vih_data[!complete.cases(vih_data),])
#################################... |
dbe79a609e3d17ee68269453f57546f636edd1b2 | a1b1547497f02a20eb6d82380d9e54b1eff8f2cc | /etc/2d-die-models/d10.R | da7af894a02ba8f13cfaa97f65c10f0b8a4fdd5e | [
"MIT"
] | permissive | ssoloff/dice-server-js | e4473533ea14ab2cc7d161374745bb58a40aa7a5 | 517787774d35f4c52fa041aeb04e3576aedf0dc9 | refs/heads/master | 2021-01-10T03:45:01.228281 | 2017-09-24T02:48:58 | 2017-09-24T02:48:58 | 37,000,834 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,194 | r | d10.R | # Matrix of pentagonal trapezohedron vertex coordinates (see
# http://www.georgehart.com/virtual-polyhedra/vrml/pentagonal_trapezohedron.wrl).
vertices_3d = matrix(
c(
0.5257311, 0.381966, 0.8506508, # (x1, y1, z1)
-0.2008114, 0.618034, 0.8506508,
-0.6498394, 0, 0.8506508,
0.5257311,... |
892156996983ba025a11c4e3b853f19d12b27bc4 | c9afbb226c190ffc958ff1e1554aec53dda62248 | /run_analysis.R | 7de524046c839fe64d46d96b547717b9a477643b | [] | no_license | WunderBara/Getting_Cleaning_Data_Project | 48292f868dedf91965fefde8b5cc8d6db7d12917 | a16fc7b4c9e58ae983503b1a76f0d86afbae5490 | refs/heads/master | 2021-01-10T14:38:45.514336 | 2015-05-22T07:47:35 | 2015-05-22T07:47:35 | 36,000,447 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,571 | r | run_analysis.R |
library(data.table)
setwd("Project_3_1")
##### Tasks 1-4 #####
# Merge "y" files and rename to "activities"
y_test <- read.table("test/y_Test.txt")
y_train <- read.table("train/y_train.txt")
y_Merged <- y_test
activities <- rbind(y_Merged, y_train)
colnames(activities) <- "act_nbr"
# Merge "subject" files
subject_t... |
3bd7e7a370412e9976e14e2fce335bc089495a08 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/titrationCurves/examples/diwb_sa.Rd.R | 58309d10ee2b3bf13ea3b865b01bd1927b3b413c | [] | 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 | 423 | r | diwb_sa.Rd.R | library(titrationCurves)
### Name: diwb_sa
### Title: Titration Curve for Diprotic Weak Base
### Aliases: diwb_sa
### ** Examples
### Simple titration curve with equivalence points
ex6 = diwb_sa(eqpt = TRUE)
head(ex6)
### Overlay titration curves using different pKa1 and pKa2 values
diwb_sa(pka1 = 5, pka2 = 9, eqp... |
547bf787f5a34324e60b795c5a3c179050aa8819 | dd4210bd0f7d79eff8364da3eaaa530c359f9603 | /tests/testthat/test-query.R | 0e729728f1008e390985e2c89f4da2655c387d11 | [] | no_license | cran/ctrialsgov | 99e63d9ed4f4881b568c36b849d6608d1548de4e | fcf779806dc207462cc4efaa827d2d84ad23f37a | refs/heads/master | 2023-08-14T07:08:24.693717 | 2021-10-18T15:00:02 | 2021-10-18T15:00:02 | 418,757,869 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,967 | r | test-query.R | library(ctrialsgov)
library(stringi)
library(lubridate)
test_that("check standard keyword queries", {
ctgov_load_sample()
res <- ctgov_query(description_kw = "cancer")
expect_true(all(stri_detect(res$description, regex = "(?i)cancer")))
res <- ctgov_query(sponsor_kw = "cancer")
expect_true(all(stri_detect(... |
876201435171803f222dca217835c05b0b0cdffa | ba23868dea31f3303f02de0addd95c700fcc45b2 | /moodle-process.R | 5547022d812230ed0f05ebe8792074601ef31b92 | [] | no_license | ravellom/moodle-R | 8b6e8490877bebe70b85c5ffa55e49c59cf5996a | df2237a1f551b174ed5fc15515525de223225488 | refs/heads/main | 2023-05-26T00:55:55.390271 | 2021-06-07T23:47:45 | 2021-06-07T23:47:45 | 374,161,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,980 | r | moodle-process.R | ## Librerías necesarias
library(tidyverse)
library(lubridate)
library(viridis)
### Usuarios ------------------------
# Agrupar usuarios con clases virtuales
mdl_usr <- mdl %>% group_by(User = mdl$`Nombre completo del usuario`) %>%
summarise(n = n()) %>%
#subset(n > 400, na.rm = TRUE) %>% # más de x accesos
... |
fd4d19cdef65cac5ebab3b61f1dacdace9522456 | 9eab5f652b893e0150c52ed2144f18bf1fa3aa80 | /assignment/rankall.R | 8be4480a53c7029978eec8ffe3e9a9e06bf12672 | [] | no_license | markelarauzo7/datasciencecoursera | b0e6bcfbb32c7783712e59b62f53d9dd954d8248 | ae89870f4ccfdce2bb3873a379906073e1acef3a | refs/heads/master | 2021-01-20T12:34:27.490847 | 2017-05-05T14:17:14 | 2017-05-05T14:17:14 | 69,502,705 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,545 | r | rankall.R | rankall <- function(outcome, num = 'best'){
## Read outcome data
## Check that state and outcome are valid
## For each state, find the hospital of the given rank
## Return a data frame with the hospital names and the
## (abbreviated) state name
outcome_data <- read.csv("outcome-of-care-measures.csv")
... |
08637e164a76f9d9e698445e923e061170c2af3a | 7e5e5139f817c4f4729c019b9270eb95978feb39 | /Introduction to R/Chapter 5-Data frame/7.R | 7f2b4851335f422fd8741f6cff01bc44326d010d | [] | no_license | Pranav-Polavarapu/Datacamp-Data-Scientist-with-R-Track- | a45594a8a9078076fe90076f675ec509ae694761 | a50740cb3545c3d03f19fc79930cb895b33af7c4 | refs/heads/main | 2023-05-08T19:45:46.830676 | 2021-05-31T03:30:08 | 2021-05-31T03:30:08 | 366,929,815 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 790 | r | 7.R | # Selection of data frame elements (2)
# Instead of using numerics to select elements of a data frame, you can also use the variable names to select columns of a data frame.
#
# Suppose you want to select the first three elements of the type column. One way to do this is
#
# planets_df[1:3,2]
# A possible disadvantag... |
77cdbab3fbfc346ea9b9d00a222de9de1f8161c4 | 6cbc6e80ae07b8fb1fff0a5cad4ddcd29c358c0a | /R/ezr_add_bins.R | 630d17ed823c10f8cd48d320fc0dcc5c0f1e8d36 | [] | no_license | lenamax2355/easyr | d99638b84fd9768774fa7ede84d257b10e0bacf6 | 37ab2fe5c28e83b9b5b3c0e3002f2df45708016b | refs/heads/master | 2022-01-09T20:43:17.801623 | 2019-05-13T02:49:48 | 2019-05-13T02:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,776 | r | ezr_add_bins.R | #' Add Bins
#'
#'Bin a continous field into fewer values using variety of methods.
#'
#'
#' @param dataset dataset
#' @param column column. It should be numerical
#' @param style 'fixed','equal','quantile','pretty', or 'percentile'.
#' @param n_breaks number of breaks. Only matters if not fixed
#' @param fixed_break... |
4f66c80825d6f74e31e5dec5cef25064dc84a602 | 36cb1fddeb59b334e16f5a635c6dc8a1a7ac5a12 | /ui.R | e9f17fbe1ab4c70edc46862a03e58b9a6946b466 | [] | no_license | amerus/US-Opioid-Prescribing | 17a55c575ee7831f2c05c87b1f2d375a31590843 | a58b40943be1f26b5b48f3889b678168751f8cb3 | refs/heads/master | 2020-04-11T09:55:56.564333 | 2019-01-19T19:45:03 | 2019-01-19T19:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,007 | r | ui.R |
# Define UI
shinyUI(
dashboardPage(
dashboardHeader(title = 'Opioids by Specialty'),
dashboardSidebar(
selectInput("specialty",
label = "Specialty:",
choices = specialties,
selected = 'Family Pract... |
ed4b5064714bd1324e78ca11689f6f88e11f177f | f3ba5c556dfc50ca1bce1c0dfe5b4cee5e3d3363 | /R/separate_sentences.R | 8a73e26908f071ffa7e8d27e1e0faf160bfd70ae | [] | no_license | HughParsonage/TeXCheckR | 48b9ae8f94b2801f984a66e9f3ecb6c7f1f831f4 | 09826878215cf56bc24a7e273084bfda3954a73b | refs/heads/master | 2023-02-22T10:02:17.707587 | 2023-02-10T09:30:48 | 2023-02-10T09:30:48 | 87,679,432 | 8 | 2 | null | 2020-09-18T04:35:17 | 2017-04-09T03:12:11 | TeX | UTF-8 | R | false | false | 1,983 | r | separate_sentences.R | #' Put sentences on their own line
#'
#' @param filename A tex or knitr file in which to separate sentences.
#' @param hanging_footnotes (logical, default: \code{FALSE}) Should footnotes be indented?
#' @return NULL. The function is called for its side-effect: rewriting \code{filename} with separated sentences.
#' @exp... |
c04169fb2325aa4270830fab351ee58e961a6f0d | ee735ad4c975cd824c63e4c87b283e30485ee841 | /plot2.R | 251329ac3fa1a0bb7dfe79915a7f67f2f40dc48a | [] | no_license | andrewhr/ExData_Plotting1 | e3d1b2f0f495827b8b798557483de325990f65a3 | 8ba5da724db81022cc5e674030f31378556ec334 | refs/heads/master | 2021-01-17T20:02:35.963763 | 2015-04-12T21:33:05 | 2015-04-12T21:33:34 | 33,800,314 | 0 | 0 | null | 2015-04-12T02:32:28 | 2015-04-12T02:32:28 | null | UTF-8 | R | false | false | 199 | r | plot2.R | source("power.R")
png("plot2.png", width = 480, height = 480)
plot(power$Time, power$Global_active_power,
xlab = "",
ylab = "Global Active Power (kilowatts)",
type = "l")
dev.off()
|
a6e8dc3428ca44ae91303c9d37805752e1ad40b0 | 0085d00ce341967d940b4f08e94e1482bc1d340f | /scatterplot.R | 57928b2095a6c2397bc731def505be48bf7b3e65 | [] | no_license | ksedivyhaley/kates-make-demo | 1694940f317ff8d74fe14fc193dfe3b970e1c880 | 124c82da2a9433600d352572c8fda407643b9c46 | refs/heads/master | 2021-06-26T06:27:25.804825 | 2017-09-13T21:11:12 | 2017-09-13T21:11:12 | 103,449,327 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 817 | r | scatterplot.R | library(tidyverse)
library(ggplot2)
## @knitr scatterplot
data <- read_csv("tidy_data.csv")
#check to make sure I've read in a tidy data frame
if(!is.data.frame(data)){
stop(paste(c("analysed_data must be a data frame for graphing. Class",
class(df), "supplied."), collapse=" "))
}
cols_needed <- c(... |
c943fd326d95a328f9c287d76bace7a7be48d0f8 | 17f2c1d9a5e279fc027fe8ae6a1c8b41f605097d | /man/lava.tobit.Rd | 9b6dfee4241f0300a5612ab5442a9d3c744cdae9 | [] | no_license | kkholst/lava.tobit | 97a411e7ebd2efdd6f2ec0389f0562b6eca57864 | 73cb4adf7a0f045b4c78fec2950099b663564a09 | refs/heads/master | 2020-12-24T16:06:40.982381 | 2020-09-24T08:14:38 | 2020-09-24T08:14:38 | 28,052,268 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,139 | rd | lava.tobit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lava.tobit-package.R
\docType{package}
\name{lava.tobit}
\alias{lava.tobit}
\alias{lava.tobit-package}
\title{Estimation and simulation of probit and tobit latent variable models}
\description{
Framwork for estimating parameters and simulate ... |
226a83ddad7f43a3bf86eb61c7ade5fd51e3ba2a | 11637afdc8d299a222eb78441c0e2c1c8d3e092f | /vignettes/intro.R | 143d71006911308eff64af1085d3aef3572fbe52 | [
"MIT"
] | permissive | land23/recharts | 62f21756819e28811962c6fd72962b304da623a5 | ab0bdfc7cbf1617f70ea034e657f24a7ba2f5c64 | refs/heads/master | 2020-06-15T17:30:05.927222 | 2016-11-01T13:05:47 | 2016-11-01T13:05:47 | 75,275,205 | 1 | 0 | null | 2016-12-01T09:12:28 | 2016-12-01T09:12:28 | null | UTF-8 | R | false | false | 4,873 | r | intro.R | ## ------------------------------------------------------------------------
library(recharts)
echartr(iris, ~Sepal.Length, ~Sepal.Width, series = ~Species)
## ------------------------------------------------------------------------
head(mtcars)
## ----------------------------------------------------------------------... |
39dafd1b77fbcf73b5092fbab697f689353bd03f | 29585dff702209dd446c0ab52ceea046c58e384e | /spnet/R/world.map.simplified.r | 716b3e6497ab2ba96ff849866049608815e96dce | [] | 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 | 1,881 | r | world.map.simplified.r | #' The TM_WORLD_BORDERS_SIMPL-0.3 world map.
#'
#' The simplified version of the world map provided by Bjorn Sandvik, thematicmapping.org.
#'
#' The map was imported in R as follows:
#'
#' \preformatted{
#' require(maptools)
#' world.map.simplified <- readShapeSpatial("~/TM_WORLD_BORDERS_SIMPL-0.3/TM_WORLD_BORDE... |
992be680b78c4e86c6748fb3d2ece846e067777c | 8b78d8e12a23338f3dd5c90710c81192b240f00b | /man/uniReg.Rd | ebdad538afbdfce05db04d00d2da5f3b89625148 | [] | no_license | vando026/ahri | 96fef7fbab694d8e0bc56719255aa32b4c2a274d | a8940fb1a1af8a34a2065311966cc4bdd311fe84 | refs/heads/master | 2022-06-29T19:38:39.647429 | 2022-06-13T17:09:16 | 2022-06-13T17:09:16 | 241,947,281 | 0 | 2 | null | null | null | null | UTF-8 | R | false | true | 922 | rd | uniReg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/intCens.R
\name{uniReg}
\alias{uniReg}
\title{uniReg}
\usage{
uniReg(
xpath,
InFile,
OutFile,
Model,
ID = NULL,
inf = "Inf",
iter = 5000,
cthresh = 1e-04,
r = 1,
printout = FALSE,
ign_stout = TRUE
)
}
\arguments{
\item{x... |
63459f38becf966145ed37263bf67228e3eb65cd | 93e3f7e05e6020e8900714c714af83435f6a6d9c | /Taiga_Weight.R | 8e3bab08c79399ce150d3e2cbbe7cad351886e24 | [] | no_license | suhasxavier/CADashboard_R | 371656132e80bbdddcc7a8e4c875a6f80b21099c | ce0fd3e46f1bcef4bbd3e7028de291e3a7810757 | refs/heads/master | 2021-01-17T17:56:20.822793 | 2016-02-13T23:10:31 | 2016-02-13T23:10:31 | 46,106,247 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,612 | r | Taiga_Weight.R | m_table=read.csv("c:/Users/Suhas Xavier/Desktop/taiga_membership_table.csv")
taiga_table=read.csv("c:/Users/Suhas Xavier/Desktop/taiga_data1.csv")
usernames=m_table$email
teamnames=m_table$project_name
#Calculate individual weight
#different grading schmes for different modes (Online and f2f)
... |
7ab31c896b2b57cae3824dfa7be8102ea5fa41cf | 60c18f7761ce302f533cea0faca5325c14de61ab | /src/visualization_3_analysis_v5.R | 37109e6e82821bbb47afe49ea82bccbc44a96ba4 | [] | no_license | gentok/ForeignerJapan | 6d52d9df67c2faa58c3edcaba3057af7139f582a | 3512684dfd9f308351ba3e6efab89d03390d2964 | refs/heads/master | 2023-03-01T05:54:51.777569 | 2021-02-09T02:53:23 | 2021-02-09T02:53:23 | 292,305,490 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 35,669 | r | visualization_3_analysis_v5.R | #' ---
#' title: "Visualization 3: Analysis Results"
#' author: "Fan Lu & Gento Kato"
#' date: "January 26, 2020"
#' ---
#'
#' # Preparation
## Clean Up Space
rm(list=ls())
## Set Working Directory (Automatically) ##
require(rstudioapi); require(rprojroot)
if (rstudioapi::isAvailable()==TRUE) {
setwd(dirname(rstu... |
4eba2c151fb5eaa40512e417a2ba1ef6b240a8ab | 5c8fe2441da72fa9a1c99dcb9df4f03a10b922f3 | /plot4.R | 64a7e705a8df5e6b73a5ebfdf5fed8ce0e0e06bc | [] | no_license | JohnLiau/ExData_Plotting1 | f5674b07e2807091c7e2963f2afcd4a9d3209a83 | 2f7714afd964f8df987d16c1e1b7dad1a9169a5a | refs/heads/master | 2021-01-15T19:03:24.851024 | 2014-08-10T22:31:45 | 2014-08-10T22:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,078 | r | plot4.R | plot4 <- function() {
## Read input file
fulldata<-read.table(unz("~/Learn/Data Science/JHU04 Exploratory Data Analysis/exdata-data-household_power_consumption.zip","household_power_consumption.txt"),header=TRUE,sep=';')
colnames(fulldata)<-gsub("_",".",colnames(fulldata))
Date<-as.Date(fulldata$Date,"%... |
a86b01ae13affcdbaeef1f7ffb2e112e6c9cb923 | f28e7f74a0a3d61b0242eade931c4aa3b196821c | /R_code/local_code/filtered_cells_table.R | 4aeda53ce7de013fae55369b1cfb93de68eaffc9 | [
"BSD-3-Clause"
] | permissive | ayshwaryas/ddqc_source | c2cbdd12defa67c97f1ff3c0fec98fa2653a8d8e | 2b26415cb38619d8bb2c7884aee78c0d8fd05c0a | refs/heads/master | 2023-04-13T16:45:45.378206 | 2022-10-16T15:37:02 | 2022-10-16T15:37:02 | 226,552,782 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,977 | r | filtered_cells_table.R | source("scripts/readers.R")
source("scripts/mc_functions.R")
source("scripts/fc_plots.R")
source("scripts/settings.R")
source("scripts/local_settings.R")
tasks.per.tiss <<- 1
project <- "mc_tm"
tissue <- "Lung"
readFilterCsvMethod <- function(method, all.cells) {
filtered.cells.all <- NULL
line <- method
for ... |
c43918c59fdc7b45f2e0a9e07a76f458bf81f41a | 182257a7b18220970988c68cdd0d815e12ab4c85 | /scratch/Sim7_Poisson_ERGM_Model.R | 56a498104ec83f56ca72b421b54b1864d7036eeb | [] | no_license | tylerandrewscott/elwha | 3b81c495f96a8e14819621a1b70556f7eca29d06 | b2c3f0b3b9cafc3382eaa57acf87ebc2c47b1cfc | refs/heads/master | 2022-05-12T16:03:49.773027 | 2016-05-11T14:32:48 | 2016-05-11T14:32:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,251 | r | Sim7_Poisson_ERGM_Model.R | #rm(list=ls())
library(statnet)
library(latentnet)
library(ergm.count)
as.mcmc.default <- coda:::as.mcmc.default
as.mcmc.list.default <- coda:::as.mcmc.list.default
net<-net_temp
net_temp
#Poisson:
m <- sum(net %e% "TCO")/network.dyadcount(net)
init.sum.pois <- log(m)
mod0 <-
ergm(net~sum,
... |
431229e808f316a6f2443b6098e3e560e9f89921 | 614c076cee38793f249a62b1c7e8fb569d90bf11 | /code/UsefulFunctions/MICS_Categorization.R | 4f523a2f70187c9b64d80106b5196faa3a020e61 | [] | no_license | InstituteforDiseaseModeling/Nigeria-Family-Planning-Paper | b6e1c8822d03c7832bdd1cb9ff9f26ee32d9745d | 1ef4f73cac49d0e103513dfd24bceb83b5c74ef3 | refs/heads/master | 2021-10-09T05:40:25.075030 | 2018-12-21T22:17:25 | 2018-12-21T22:17:25 | 160,894,432 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,702 | r | MICS_Categorization.R | ## R scripts to harmonise family planning variable and estimate family planning indicators by marital status and age from MICS micro-data files
# 1. 'MICS_Translate.R' Translates relevant variables across surveys and stores harmonised variable names and codes as R data sets
# 2. 'MICS_Categorization.R' Computes marital... |
6f1ec35f25c33cb48a7b96a8888217a86684c7cc | 67a6a1ea9802abc4f9cb487a88df9714bbcc81d2 | /capstone milestone.R | 92a9179e940d2ca1c27c948615217ce060e9fe7a | [] | no_license | alexyom/Capstone-Project | bf763188ded30a6c732a30e4a183f5625941d104 | ab02fb1815c06ffce4bb6dcfcd1f7889b53193df | refs/heads/master | 2021-07-06T16:28:25.972040 | 2019-02-22T16:30:29 | 2019-02-22T16:30:29 | 141,309,626 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,266 | r | capstone milestone.R | library(dplyr)
library(tidyr)
library(ggplot2)
nba<-cbind(NBA_Team_Annual_Attendance,nba_wins_II)
nba<-nba[,c(1,2,3,12,5,6,4,7,8,9,10,11,12)]
View(nba_capstone)
write.csv(nba,"nba_capstone.csv")
str(nba_capstone)
str(nba)
View(NBA)
write.csv(nba,"NBA.csv")
nba<-nba_capstone %>%
rename(Year = `Starting Yea... |
65737478d2cbcda679708f447cf03bdd4ba4840f | e449130c7f508441d7baa459bff749408a791baf | /scripts/2b_sentiment.R | 2afa59a1b6ae737ac5e736350d4bf5d6d1d6d030 | [] | no_license | ropxu/Thesis | 9c0eb6eacfc384d20d82fca898ba194b7e4624da | 9a60a5c0fef932d94c335da641f81b5116bef80b | refs/heads/master | 2023-08-14T03:59:36.308486 | 2021-09-21T17:07:42 | 2021-09-21T17:07:42 | 408,902,607 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,978 | r | 2b_sentiment.R | library(tidyverse)
library(lubridate)
library(tidytext)
library(SentimentAnalysis)
library(ggwordcloud)
library(readxl)
# ========================== News ==========================
# Read news data
news_df <- read_csv('../data/news_master_file.csv')
#news_df <- news_df %>% select(-co_cusip, -co_sic)
# Early closing... |
9bd4f4a9afd73b17cc4e47482c8edfedf661f4c4 | 6cfaf1d70ddc6da14a7a88535867f199f1075c1d | /code/outbreak_step3a_generate_onset.R | f3fd92214bac39d676204f1b77812147c1bea397 | [] | no_license | rachaelpung/cruise_networks | fc041971d21a2216893a6c1b939eabcc6dfc53d6 | 44d5b297cb9ca44cb2a14c337e8a62bd6a748279 | refs/heads/main | 2023-04-10T09:51:11.780869 | 2022-10-23T01:49:49 | 2022-10-23T01:49:49 | 418,541,935 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,412 | r | outbreak_step3a_generate_onset.R | source('github/code/cruise_load_library.R')
# determine probability of onset by day of event (day 1-7)
# http://weekly.chinacdc.cn/en/article/doi/10.46234/ccdcw2021.148
distIncub = data.table(DAY=1:14, PDF=dlnorm(1:14, meanlog = log(4), sdlog =sqrt(2*log(4.4/4))))
distIncub[,PDF:=PDF/sum(PDF)]
# assume that ... |
fce6b4baee03c377fa105956c6038d873d599a62 | 06888de22ecff4d48a621c778aa35b18a28c32f1 | /man/calculate_alignment_stats.Rd | 1bd7c50c1fc48908c8619333e498022f341277e7 | [
"MIT"
] | permissive | joelnitta/baitfindR | fcb9db8bc978a6004e988003a5b1fb4675f84162 | de73d9451115ad143da249e5ef2146bb929cd17b | refs/heads/master | 2021-07-20T14:16:15.081289 | 2020-04-29T20:04:47 | 2020-04-29T20:04:47 | 140,532,881 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,886 | rd | calculate_alignment_stats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_alignment_stats.R
\name{calculate_alignment_stats}
\alias{calculate_alignment_stats}
\title{Calculate summary statistics for an alignment.}
\usage{
calculate_alignment_stats(
alignment,
cutoff = 120,
cutoff_any = FALSE,
incl... |
030d4de41e056c14935bd297f276009251a0d653 | 597845777259112d3a912256466242500a6f7533 | /man/PETseasonality.Rd | 1ac3e3c60ce109d632a605bd4f7f2206f51c99b8 | [
"MIT"
] | permissive | ptitle/envirem | e27187556cd8fb3afac2f8fb0572c660c42a44b9 | 40cccd0485324605724284c6936206327a4f1002 | refs/heads/master | 2023-04-27T14:16:23.463364 | 2023-04-14T16:04:35 | 2023-04-14T16:04:35 | 61,913,099 | 12 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,447 | rd | PETseasonality.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PETseasonality.R
\name{PETseasonality}
\alias{PETseasonality}
\title{PET seasonality}
\usage{
PETseasonality(PETstack)
}
\arguments{
\item{PETstack}{rasterStack of monthly PET rasters}
}
\value{
rasterLayer in mm / month
}
\description{
Seaso... |
94ea54a22f25d976568dfb40a38bb919533d1295 | 9d0dcacf6878a3451a01083ae0b87521e3bd436d | /fMRI/fx/motion/auto-motion-fmriprep/auto_motion_fmriprep_gen.R | 957d71872d0d148d785533165a195b6c4831bbaa | [] | no_license | UOSAN/DEV_scripts | 244a87fb3dfc230c3fad19b2e4db5a0a2fab1ef4 | 513121b4fb84aaed45099415d7f9cf5e876b5d57 | refs/heads/master | 2023-08-31T11:15:54.357529 | 2023-08-28T16:44:56 | 2023-08-28T16:44:56 | 144,056,482 | 0 | 2 | null | 2019-11-26T23:48:57 | 2018-08-08T19:04:35 | MATLAB | UTF-8 | R | false | false | 1,270 | r | auto_motion_fmriprep_gen.R | # This script loads the fmriprep confound files, applies a machine learning classifier to
# predict motion artifacts, and returns summaries by task, task and run, and trash volumes only.
# It will also export new rp_txt files if writeRP = TRUE and plots if writePlots = TRUE.
# Inputs:
# * config.R = configuration fi... |
eac34a66aceab72667cdb03fac81f69d2859c606 | 98d2dea2ac67ba55374046080bc42bafcd2181cd | /packages_and_functions/ez_deepcell_lib.R | 78481cb37b5d390d51145f5d40866be6552fb10f | [] | no_license | bryjcannon/ez_segmenter_analysis | 8cc645d5f13439947b5954941870b44b878b0af3 | 4aea8fd5021e77b8cc19f506b29c5d72831e2c8c | refs/heads/master | 2020-11-25T02:13:50.803349 | 2019-12-17T21:27:49 | 2019-12-17T21:27:49 | 228,447,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,135 | r | ez_deepcell_lib.R | install_ez_packages <- function(answer) {
if (answer == T | TRUE) {
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(pkgs = c("R.matlab", "digest", "rlang", "flowCore", "ks", "flowVS", "flowViz", "RColorBrewer", "gtools", "gplots",
... |
9727e79225efb2f910318a4205f4e89113fdb413 | 0c6ab6d7c471d79391192b3fbca24d959672030e | /R/10-data-integration.R | ac8e45fc32be290e63c7690f8ff907c9f4926f63 | [] | no_license | lcolladotor/osca_playground_leo | 5a517e7ddbe2d6b01a1ad6692957f6a0852c9dd1 | b8dd1a75857c54fa4d0809ed9dc776b9154c4c39 | refs/heads/master | 2021-04-16T05:02:52.500796 | 2020-03-27T16:41:21 | 2020-03-27T16:41:21 | 249,329,224 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 190 | r | 10-data-integration.R | # Notes for 10-data-integration.R
# --------------------------------------
## Copy code from https://github.com/lcolladotor/osca_LIIGH_UNAM_2020/blob/master/10-data-integration.R
## Notes
|
bc6afc6881fbec09f89453435315bd1f4499c3a1 | 1d60d9c02a0a1eb49b7324f4aa287afbe73e4a06 | /rprogramming/assignment1/pollutantmean.R | 0d0c92d05318b8be744338b4ac4cc5757ad48916 | [] | no_license | scottessner/datasciencecoursera | f069a7b4cc4d5312867df24ce261565af98b29d0 | b420aef3d939e5ebae7b8fc56547fe1294d640c5 | refs/heads/master | 2021-01-25T07:34:13.205258 | 2014-09-16T05:31:39 | 2014-09-16T05:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 578 | r | pollutantmean.R | pollutantmean <- function(directory, pollutant, id = 1:332) {
values <- numeric()
#iterate throught the files g
for(monitor in id){
#clean up id and directory and create path
path <- paste(directory, "/", sprintf("%03d", monitor), ".csv", sep = "");
#Open ... |
c79bf8b9d307cb7efbad10fe147c158ab721ccc6 | 2df21dc9a08abb1430b467d34ba2f3416909e339 | /man/dcardBoardContent.Rd | 8752a6dd2a947db120eb004bdc5c875afd6acddc | [] | no_license | b05102139/DcardR | 9af1e06079341419ae08fec7c4c6281eadd073d9 | 80a2d97b72b4f4150751d975188eea46d313ef87 | refs/heads/master | 2022-11-22T00:16:28.787712 | 2020-07-19T11:29:12 | 2020-07-19T11:29:12 | 280,819,323 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 513 | rd | dcardBoardContent.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dcardmaincontent.R
\name{dcardBoardContent}
\alias{dcardBoardContent}
\title{DCard Board Content}
\usage{
dcardBoardContent(board, posts, by_popular = F, rate_limit = 1)
}
\arguments{
\item{rate_limit}{}
}
\value{
}
\description{
Returns gen... |
8e2dade5ed460b72c42ab7a28d08fda856e21c3d | 253d4a133a8a6e568f30523447358689d182f473 | /R/tidyverse.R | 4954fec5c91d12b4edc294a9826431c19981684a | [
"Apache-2.0"
] | permissive | r-spatial/stars | 081a7fc96089aeb276051107911145d17365de79 | 0e17daf1c49b69f990ec77275e80cfd471210aee | refs/heads/main | 2023-09-04T10:58:52.888008 | 2023-08-19T09:15:37 | 2023-08-19T09:15:37 | 78,360,080 | 489 | 126 | Apache-2.0 | 2023-03-20T09:17:18 | 2017-01-08T17:48:24 | R | UTF-8 | R | false | false | 16,027 | r | tidyverse.R | # convert arrays to data.frame, in long form
to_df = function(x) {
as.data.frame(lapply(x, function(y) structure(y, dim = NULL)), stringsAsFactors = FALSE)
}
set_dim = function(x, d) {
lapply(x, function(y, dims) structure(y, dim = dims), dims = d)
}
get_dims = function(d_cube, d_stars) {
xy = attr(d_stars, "raste... |
1ebb402b8113eec01ab6685b8bb3a717b45f424d | 3c72657dcf1adbd6c2f7a044bf42d789c94ee5d3 | /OR.R | debf5f6167afbc2e0e98d80e493a745e056f9310 | [
"MIT"
] | permissive | geoffrosen/simple-v-microbiome | 6a2c8071f64b1d247ca983e51570e9dda3ca4f29 | cacd0cda1bc4422d5f1c034a3a13cf4a1bc48fdc | refs/heads/master | 2021-01-11T10:47:33.779104 | 2015-08-13T18:17:33 | 2015-08-13T18:17:33 | 38,334,275 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,401 | r | OR.R | odds.ratio <- function( two_by_two ) {
this <- environment()
this$table <- two_by_two
this$fisher <- fisher.test(two_by_two)
a <- two_by_two[1,1]
b <- two_by_two[1,2]
c <- two_by_two[2,1]
d <- two_by_two[2,2]
this$Sensitivity <- (a)/(a + c)
this$Specificity <- (d)/(d + b)
this$OR <- (a * d... |
ad2b5a4ea1d9b7533b8999c49c9a727fdcdf15e2 | 264424e51a7c4684cea89a266946c60ec419413b | /man/is.mlnet.Rd | d6e9048be47e8fd6a6bea0f1f4c8e2692595bc39 | [] | no_license | cran/mlergm | fe5e740abf775ee12d43c5a47084e4e94a3a75ac | 467a7a70ddbf5587eb6712f03e3f5359d43c8deb | refs/heads/master | 2021-08-31T20:08:22.327934 | 2021-08-23T15:00:02 | 2021-08-23T15:00:02 | 160,185,882 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 495 | rd | is.mlnet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is.mlnet.R
\name{is.mlnet}
\alias{is.mlnet}
\title{Check if object is of class \code{mlnet}}
\usage{
is.mlnet(x)
}
\arguments{
\item{x}{An object to be checked.}
}
\value{
\code{TRUE} if the provided object \code{x} is of class \code{mlnet}, ... |
82ed04466992ae281918f8f1743564a3f6ea4b07 | a8097ad611f67462ea0bb782087fee9daa4bc8ff | /projects/hematodinium_analysis/scripts/16_running_GO-MWU/16_running_GO-MWU.R | 043d746c36f615868fc97a2e64c558e34623dcc4 | [] | no_license | fish546-2021/aidan-hematodinium | ea0e710f44fada502142c19c10cad70194d307fb | 756a1e67179da4a6459cbd40d23dd51bfcccb7d3 | refs/heads/main | 2023-03-23T21:02:41.575774 | 2021-03-17T03:07:04 | 2021-03-17T03:07:04 | 328,749,147 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 34,266 | r | 16_running_GO-MWU.R | #############################
# Aidan Coyle, afcoyle@uw.edu
# Roberts lab, UW-SAFS
# 2021-02-01
#############################
# This file runs GO-MWU. Commands copied from the GO-MWU.R file
# in the GO-MWU Github repository, available at https://github.com/z0on/GO_MWU
# We will run GO-MWU twice - once for ea... |
97654a0838ba7b7c7d901c76463acd3e0db10a43 | 81fc55d5f9b89d599a617e19f832bf1bdf76c6e4 | /man/est.IDRm.sample.Rd | c01eca0a441abbe683d5babf03dbb2cd951d8773 | [] | no_license | YosefLab/scRAD | aefed00c3c95add2507206a791c8860d3a7e461e | 968d2625c1442f6546bdb2ce67101498de48fe2d | refs/heads/master | 2021-08-30T02:50:33.976347 | 2017-12-14T10:17:47 | 2017-12-14T10:17:47 | 96,137,608 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,810 | rd | est.IDRm.sample.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/idrm.R
\name{est.IDRm.sample}
\alias{est.IDRm.sample}
\title{Irreproducible Discovery Rate analysis with Sub-Sampling}
\usage{
est.IDRm.sample(x, mu, sigma, rho, p, frac = 0.7, nsamp = 100,
verbose = FALSE, plot = FALSE, ...)
}
\arguments{
... |
8b3ce58e2711e4c43f48b0c630614b6f59e42a66 | 3649f2cf6c8392d1776033becc66370f2412b58e | /app.R | c2505f26196638eafe0c0c763546e6f1cc5e155d | [] | no_license | ctkremer/harvesting | c2fcfbca62f6919a84c6b3e66b241f9522d37d7e | 7c5a869ec5e01b9837ca558c606f550e920462f0 | refs/heads/master | 2020-04-27T02:14:10.341358 | 2019-03-07T14:53:42 | 2019-03-07T14:53:42 | 173,987,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,145 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(deSolve)
library(ggplot2)
library(gridExtra)
# Define UI for application that draws a hist... |
203c983d29f79e7da7e2a7dc12d2ad22ef719b46 | 40c65fff3847662ce46d2afd73acf8b68b785107 | /man/check_timestep.Rd | 7a2252cfea76d7ba0ebf33e6c91c17fbee497250 | [
"MIT"
] | permissive | epinowcast/epinowcast | b4d4562603938e9a184d3450d9387f92908cd6bc | 98ec6dbe3c84ecbe3d55ce988e30f8e7cc6b776d | refs/heads/main | 2023-09-05T18:19:10.985900 | 2023-09-05T12:13:49 | 2023-09-05T12:13:49 | 422,611,952 | 23 | 5 | NOASSERTION | 2023-09-14T09:57:09 | 2021-10-29T14:47:06 | R | UTF-8 | R | false | true | 1,926 | rd | check_timestep.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check.R
\name{check_timestep}
\alias{check_timestep}
\title{Check timestep}
\usage{
check_timestep(
obs,
date_var,
timestep = "day",
exact = TRUE,
check_nrow = TRUE
)
}
\arguments{
\item{obs}{Any of the types supported by \code{\lin... |
078af230ec83a50b2c8b2f4308c5182ceb0fcf46 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/VGAMextra/examples/ARMA.studentt.ff.Rd.R | 1b133e56d203de4e1b508fb5d083542d184056e0 | [] | 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,173 | r | ARMA.studentt.ff.Rd.R | library(VGAMextra)
### Name: ARMA.studentt.ff
### Title: VGLTSMs Family Functions: Generalized autoregressive moving
### average model with Student-t errors
### Aliases: ARMA.studentt.ff
### ** Examples
### Estimate the parameters of the errors distribution for an
## AR(1) model. Sample size = 50
set.seed(201802... |
6f3d77fd89df022ae4e3c419394fab767bd61ed5 | 709efc91b94968ca6b3bd823b1da402acd2805f4 | /figures/table-2.R | 26318ad98ead1c68c817d3c1c580da0b0054907c | [] | no_license | nilsreimer/inclusive-identities | 889b64d993ea7a661894b1b891c065821df1cafc | 777eba29cd13fa6990693c280beeea6066f100d5 | refs/heads/master | 2022-12-13T07:00:10.545532 | 2020-08-31T09:03:45 | 2020-08-31T09:03:45 | 143,322,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,991 | r | table-2.R | rm(list = ls())
# Notes -------------------------------------------------------------------
# Library -----------------------------------------------------------------
# Load packages
library(tidyverse); library(loo)
# Prepare -----------------------------------------------------------------
# Import resul... |
1ca73e180175c9b68c8cba3fb48c629e4e43e72d | a802e08368280ccf5fbf07c764f1b30d7533a971 | /Use_Cases/VPS_Popcorn_Production/Kubernetes/experiments/optimizers.R | 3e755f27a4c98514c46dbf0fcd48147c5575b65b | [
"Apache-2.0"
] | permissive | janstrohschein/KOARCH | d86850d1b5e2fbd13401d93023cde783e14fb158 | 8eaa4a71cd1a33475f7b1618d075037d1446a7e1 | refs/heads/master | 2023-07-25T08:21:06.879591 | 2021-09-17T11:55:03 | 2021-09-17T11:55:03 | 229,251,272 | 4 | 8 | Apache-2.0 | 2023-07-06T21:40:07 | 2019-12-20T11:18:52 | C# | UTF-8 | R | false | false | 34,235 | r | optimizers.R | ###################################################################################
#'
#' File covers several functions related to optimizers and tuning via SPOT
#'
###################################################################################
####################################################################... |
0ee763699dbdc086d070666a06e16f02e14294d0 | d03924f56c9f09371d9e381421a2c3ce002eb92c | /man/Integer-class.Rd | 0ba4c99cbcc2c1685208e4b463adb9073e602f8c | [] | no_license | cran/distr | 0b0396bbd5661eb117ca54026afc801afaf25251 | c6565f7fef060f0e7e7a46320a8fef415d35910f | refs/heads/master | 2023-05-25T00:55:19.097550 | 2023-05-08T07:10:06 | 2023-05-08T07:10:06 | 17,695,561 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,082 | rd | Integer-class.Rd | \name{Integer-class}
\docType{class}
\alias{Integer-class}
\alias{coerce,numeric,Integer-method}
\title{Internal Class "Integer"}
\description{For the ease of method dispatch, there is an internal
S4 class \code{Integer}, which is a subclass of \code{numeric} and has a
straightforward validity method.}
\sect... |
88d488b111cdc41dfd89294c75f90ac5194a0152 | 52cd29c18c790d2b46ef98123ca3d3e657db4a08 | /scripts/tune_cnn.R | 68fd890424b235e3a75224f7798d1bc53867bb04 | [] | no_license | DavidPitteloud/Deep_Learning | fa4940ce7f65e4039d81a118f7b5f983e854d775 | 20c83d95941b1b0b963356e050f8dae00222352c | refs/heads/master | 2022-12-17T18:31:57.847691 | 2020-08-10T20:24:11 | 2020-08-10T20:24:11 | 285,857,590 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 459 | r | tune_cnn.R | # Load packages
library("here")
library("keras")
library("reticulate")
library("tensorflow")
library("tfruns")
library(tidyverse)
#training_run
tuning_run(
file = here::here("scripts/train_cnn.R"),
flags = list(L1 = c(0.001),
L2 = c(0.002),
dropout1 = c(0.3,0.4),
drop... |
083a764446ffa37a1b51081741a40d529ca8f3ba | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/archdata/examples/Michelsberg.Rd.R | aa96ed52c7751ab143bf7eeb1e27d47488414fa4 | [] | 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,090 | r | Michelsberg.Rd.R | library(archdata)
### Name: Michelsberg
### Title: Younger Neolithic Pottery from Central Europe
### Aliases: Michelsberg
### Keywords: datasets
### ** Examples
data(Michelsberg)
str(Michelsberg)
names(Michelsberg)[5:39]
attributes(Michelsberg)$typological_key
library(ca)
# geographical distribution
xy <- as.matri... |
306552d81a9670112f20ff6e8ab84845d540e6d8 | e0b3f76f4fcd8d258b2ee856d3a040f16814b888 | /R/testVariable.R | 9ec6936fb57b86d2be20cb1e1210a51a74dd794a | [] | no_license | IBIC/UdallR | 6095ad1dc0624b280da58aa05a54a9f3a4e2fc40 | 8f0cde10c837bcca933705fe78fab75d1e01464a | refs/heads/master | 2021-03-27T10:35:09.705484 | 2019-05-07T19:41:29 | 2019-05-07T19:41:29 | 81,885,023 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,366 | r | testVariable.R | #' Test demographic variable
#'
#' Given a column and data frame, compares values of column for PD and
#' control/unaffected participants.
#'
#' @param col Column name
#' @param all.subjects Data frame containing information for all subjects.
#'
#' @return Vector of length 7 with PD group mean/count; PD group SD/percen... |
9d0e7a0e796510a5763cbddb0d6ba106ff230dd5 | 1f045242458430c26961eede23b49f854540e122 | /code/algo.R | 290a66fb25c2bfc6f068712c075d00240ea5aa43 | [] | no_license | hcui10/intro_sample_recycling | f103ca03235e18c478b762be54c35024a5878315 | 4a9d81c54b83e9baa34d318f0d83b7d7c41a683a | refs/heads/master | 2020-03-31T17:48:46.150162 | 2018-10-10T20:56:16 | 2018-10-10T20:56:16 | 152,435,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,790 | r | algo.R | ## This file contains implementations for relevant algorithms accompanying
## [Introducing Sample Recycling Method]
################################################################################
################################################################################
############## Simulation: Geometric Bro... |
aebc55278d3ca1973931a1edf714ce654a557634 | e7f403c4f61446b342e0a54660a85801201ee9e8 | /plot/plot_legend.R | ffb054aab22e8d4136758c46aa2c0d5c4ed5aa38 | [] | no_license | clslgrnc/fuzzing_scripts | 4742b8b73cf77cc075bf0e380518ff76dc070599 | e4b9cf33662dae57f466f0896adf28e142c58ce8 | refs/heads/master | 2022-03-25T01:34:49.857762 | 2019-12-17T02:37:26 | 2019-12-17T02:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,134 | r | plot_legend.R | #!/usr/bin/Rscript
#!/usr/bin/env Rscript
# TAGS: bugs_over_time, coverage_over_time, plot_legend
# Script to plot the overall legend for bugs overtime plots (result of "generate_bug_plot_data.sh").
source(file="plot_utils.R")
option_list <- list(
make_option("--algnames", default="full cmin minset moonshine_size... |
1b3f49495ec9011af26092fe222e51ed1c05d07e | f60e9200289e480ea10797e4d4929c40e6d75dc0 | /uk/ac/bolton/trailer-analytics/view/server.R | 45eabdd60e132b2ca1802791988b7df914e7e172 | [] | no_license | ps3com/data-analytics | 6167b2a24e51dc2f78af5a5dfadc030a591b70b2 | 088db3c4c3abf337c1a3f0abe5200b17f4efcef3 | refs/heads/master | 2021-01-10T20:22:56.010694 | 2014-03-27T12:07:28 | 2014-03-27T12:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,734 | r | server.R | # TODO: Add comment
#
# Author: paul
###############################################################################
source('../main.R', chdir=T)
# Define server logic
shinyServer(function(input, output) {
bookmarkButtonCount <- 0;
############################ Handle the bookmarks scrape ##... |
fe9f3a5490d3a84dadd8be74bf595c04ee66af23 | 4d3672136d43264176fe42ea42196f113532138d | /man/Vaccine.Rd | fc904abd771b78cf19e176a8beaee44e9b5e2e3a | [] | no_license | alanarnholt/BSDA | 43c851749a402c6fe73213c31d42c26fa968303e | 2098ae86a552d69e4af0287c8b1828f7fa0ee325 | refs/heads/master | 2022-06-10T10:52:15.879117 | 2022-05-14T23:58:15 | 2022-05-14T23:58:15 | 52,566,969 | 5 | 13 | null | 2017-07-27T02:06:33 | 2016-02-26T00:28:07 | R | UTF-8 | R | false | true | 796 | rd | Vaccine.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BSDA-package.R
\docType{data}
\name{Vaccine}
\alias{Vaccine}
\title{Reported serious reactions due to vaccines in 11 southern states}
\format{
A data frame/tibble with 11 observations on two variables
\describe{
\item{state}{U.S. state}
\it... |
585b5d3b8d12dc57562f6b6c0faa8a897b68d877 | 3e0c8f2ad6749d24944db2fe107ae5a79a86de54 | /plot3.R | 1bcf9832a7cd5fb053675bc5c66183ab6c871b1d | [] | no_license | TTeemu/CourseraProject1TT | df33782d1545674be6f750caec440bdcd57aba18 | 2a1693e9ed96791b796a90aa24dd023273328ead | refs/heads/master | 2021-01-13T01:44:40.178196 | 2014-10-12T17:48:02 | 2014-10-12T17:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,071 | r | plot3.R | ## Exploratory Data Analys Project 1 ##
## PLOT 3 ##
#######################################
## installing packages ##
install.packages("lubridate")
library(lubridate)
## Reading in the data ##
data <- read.table("household_power_consumption.txt",sep = ";",header = T,na.strings = "?")
# chan... |
1e094ab63e07c6b6e5d40be2310e675ef34c1422 | 6f257dfac5625c2bc5cd0fa418c94b432bac472d | /man/subpixel2bin.Rd | 8d82c9430c375375776d7b9d07399b2e5c64fe05 | [] | no_license | GastonMauroDiaz/caiman | 591ac8fa2d46a291ff2692cd825021ec3970b650 | c37d0e4a0af4774b67c30dc3c22c1b55cbe3f153 | refs/heads/master | 2022-01-25T21:34:30.218488 | 2022-01-21T18:52:43 | 2022-01-21T18:52:43 | 61,065,044 | 10 | 1 | null | null | null | null | UTF-8 | R | false | true | 437 | rd | subpixel2bin.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/group_MBLT.R
\name{subpixel2bin}
\alias{subpixel2bin}
\alias{subpixel2bin,RasterLayer-method}
\title{todo}
\usage{
subpixel2bin(subpixel, segmentation)
\S4method{subpixel2bin}{RasterLayer}(subpixel, segmentation)
}
\arguments{
\item{subpixel... |
97db3476f7df07432a849ac65194723a3c1ca00a | b06aca03349252e5a3dcaa3d387fd4e59b407e4d | /16S/PhyloseqObjects.r | da01008e54adc0a1dab181471888d59c88f74e38 | [] | no_license | vera-yxu/Thesis-QuantitativeAnalysis | cc2b161c0755a01a688c5b3495cf2583823f2b86 | 575899f62e6a0b229bfc292b59722e79af4afa61 | refs/heads/master | 2021-07-11T20:02:53.420001 | 2020-07-07T22:35:13 | 2020-07-07T22:35:13 | 170,559,291 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,070 | r | PhyloseqObjects.r | library("phyloseq")
packageVersion("phyloseq")
library("biomformat")
packageVersion("biomformat")
biom_data <- import_biom(BIOMfilename = "table-with-taxa.biom",
treefilename = "tree.nwk")
mapping_file <- import_qiime_sample_data(mapfilename = "16s-metadata-with-counts.tsv")
physeq.a <- merg... |
a983eb8b693e2bc67d6e83db4966978eac03daea | 1f653d44ad299720e7bc75c24d1b207540e11cf3 | /exp4_eyetrackerFribbles/analysis/preProcessing.R | 552dda671992fbf663ca58f22b342566864afa63 | [] | no_license | n400peanuts/leverhulmeNDL | cc9232f5c9fafd751bc93df9529cffa06343d8b2 | f2584b912cf9f20d68123c93c31b11c50fb3f630 | refs/heads/master | 2023-04-23T05:36:05.867653 | 2021-05-11T09:05:56 | 2021-05-11T09:05:56 | 247,944,842 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 28,172 | r | preProcessing.R | #-----------------------------------------------------------#
#---------- this script takes the raw data from Gorilla ----#
#---- it selects the columns and rows necessary for --------#
#--------------------- data analysis -----------------------#
#-----------------------------------------------------------#
rm(... |
21c44b5c9681a740d7c1e596425808bc6e829f42 | 700d8121a4e3a9fc4c31e015db643758cb843569 | /inst/registered/NCBI_assemblies/Pan_troglodytes.R | 6ff3b04b9fa495f8fdad88d8a95a79f249793f2f | [] | no_license | Bioconductor/GenomeInfoDb | 727c90f03c289f692999860a12077775f4d65317 | 9dba03f8d2a4f76732e2b12beac7c0ee3230a693 | refs/heads/devel | 2023-08-09T21:33:11.074781 | 2023-06-20T21:40:39 | 2023-06-20T21:40:39 | 102,149,975 | 14 | 15 | null | 2023-03-13T17:45:24 | 2017-09-01T20:19:20 | R | UTF-8 | R | false | false | 913 | r | Pan_troglodytes.R | ORGANISM <- "Pan troglodytes"
### List of assemblies by date.
ASSEMBLIES <- list(
list(assembly="Pan_troglodytes-2.1",
date="2006/03/16",
assembly_accession="GCF_000001515.3", # panTro2
circ_seqs="MT"),
## The sequence names in this one are seriously messed up!
list(assembly="P... |
0ce5f0cfcf7f0fee0af8286d2e63534f50dc4277 | d99e52f963d0b553233eabd9f1103d4562f542f1 | /Common/Utilities.R | c2d8f59f6f73da63aa481a1333fd8cc2875f5911 | [] | no_license | bertcarnell/TrainingResults | c25bbfdc6166ed09e2f55bdc6a13fc8ab747baf8 | 3e3b4e242d9534788fcdc5a3fcd7935e347f3471 | refs/heads/master | 2016-09-10T10:07:44.376424 | 2013-11-29T01:50:02 | 2013-11-29T01:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,622 | r | Utilities.R | require(XML)
startToday <- as.numeric(strptime("00:00:00","%T"))
posixOrigin <- "1970-01-01 00:00:00"
timeHistogram <- function(times, indMe, title)
{
hist(times, breaks=50, freq=TRUE, col="blue", main=title,
xlab="Final Time", ylab="Frequency")
abline(v=times[indMe], col="red", lwd=2)
abline(v=median(ti... |
9db32da5313858091bcf3bfc6075a13ee608df1d | 9b1a760d45e21998b9d3871a1f4dac3a7a90c05a | /R/magclip.R | 062da2af3fd4be0a1c2d10e73802d70a325a8288 | [] | no_license | asgr/magicaxis | ac10b0b054128025976cb6b51003816cbd2157a9 | 0e3a56587021f8c22f86a3eda87907d8dfbe9e39 | refs/heads/master | 2023-06-21T11:28:06.031052 | 2023-06-19T06:30:03 | 2023-06-19T06:30:03 | 13,343,972 | 9 | 4 | null | 2020-10-22T07:14:05 | 2013-10-05T11:12:59 | R | UTF-8 | R | false | false | 1,723 | r | magclip.R | magclip=function(x, sigma='auto', clipiters=5, sigmasel=1, estimate='both', extra=TRUE){
if(extra){
xord=order(x)
sel = is.finite(x[xord])
clipx=x[xord][sel]
}else{
sel = is.finite(x)
clipx=sort(x[sel])
}
if(clipiters>0 & length(clipx)>0){
newlen=length(clipx)
sigcut=pnorm(sigmase... |
279e662c430c83ebb05c9177c21c75775d27c167 | e195ea7aea1de19f148ede1d5e664b10d4353a9a | /extra_scripts/FCM_diversity_Lakes.R | 64d1ebbd773f178142427545ff9112268bc8d0fd | [] | no_license | DenefLab/EnvMicro_Props2017 | 08778a268e4f54c319687f4ce4369273b7cfb33b | 1667d94e770ba540b6e21212193960fba61ae359 | refs/heads/master | 2021-07-12T10:39:58.688230 | 2017-10-13T11:47:26 | 2017-10-13T11:47:26 | 106,823,385 | 1 | 0 | null | 2017-10-13T12:47:26 | 2017-10-13T12:47:26 | null | UTF-8 | R | false | false | 3,123 | r | FCM_diversity_Lakes.R | library("Phenoflow")
library("dplyr")
### Output files will be stored in this directory
path = c("/data_reference/FCM_MI")
### Import .fcs data
### Samples are automatically sorted according to name...
flowData <- read.flowSet(path = path,
transformation = FALSE, pattern=".fcs")
### Select ... |
6ea0c7b76774d5357ccb23094c36fadbd26dc344 | 2c2e4085536b36157ac569bc606ce5b42328fad1 | /DE_Chlamy.R | b94a32aad3c4ab7001e20b1c5fd15399d29627f7 | [] | no_license | jpimentabernardes/Transcriptome_Trade-offs | 4d69f4f395cfc843720794547431b59bbdbd5ea9 | 2ece0686f72fc92d0610cdfbe5f3912ddeb8a478 | refs/heads/main | 2023-04-10T04:09:06.135552 | 2021-04-23T08:17:12 | 2021-04-23T08:17:12 | 358,596,539 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,394 | r | DE_Chlamy.R | library(DESeq2)
library(ggplot2)
library(RColorBrewer)
setwd("~/Documents/MPI/Dynamics/manuscript_multi/Publication_2021/Chlamy_Project_Feb2021/")
Count<-read.csv("TableS2_RawCounts_Average.csv", row.names = 1, sep = ";")
col_data= read.csv("Infotable_Chlamy.csv", sep=";")
count_data=Count[, as.character(col_data$Sa... |
8e15f6cf2bfaac696a977e1d424e6c9322d2f6d8 | a2019b01eb114767fe19422ecbe3400233284cc3 | /R/modules.R | e0bb2bc3607358f00671d9d0ec0d6eb585569a47 | [
"MIT"
] | permissive | sjspielman/types.of.plots | bfdf760cdaa12cef8583152ce0a726abbfaec12f | 3f21555a061e6020b804931f91bf577a38d02598 | refs/heads/main | 2023-07-18T09:19:10.626635 | 2021-08-27T14:48:48 | 2021-08-27T14:48:48 | 399,623,603 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,912 | r | modules.R | #' Select colors in UI
#' @import shiny
color_module_ui <- function(id, label = "Color all by same color or based on category?" ) {
ns <- NS(id)
tagList(
selectInput(ns("color_style"), label = label,
choices = color_choices # Single color
),
conditionalPanel("input.color... |
c4d6cb62eb892914fd3a10d3d19eb18bc0c54907 | 3774149a542831968202c6d3006b7ae164dd00be | /randomForest_AV.R | 7e4b3c63030c5c66ae829f3bba3110d01f298466 | [] | no_license | SAICHARAN-J/Loan_Default_Prediction | 9ecc9c405af2a72eb1eb0204432cb1c021923924 | 56cbbf7f2377500ca06767aa2c133f84ad35c34a | refs/heads/master | 2021-01-18T07:48:40.882824 | 2017-08-15T07:52:49 | 2017-08-15T07:52:49 | 100,353,131 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,883 | r | randomForest_AV.R | #Reading the training_set
dataset <- read.csv("train.csv")
#Factor Variables
dataset$Married <- factor(dataset$Married, levels = c("Yes","No"),labels = c(1,0))
dataset$Education <- factor(dataset$Education, levels = c("Graduate","Not Graduate"), labels = c(1,0))
dataset$Loan_Amount_Term <- as.factor(dataset$Loan_A... |
b56270ccde5488fd0d523267bc5623bcc81574d3 | ed16bfed5c94e8e4b8ddf1e106b3a85358a37099 | /scratch.R | 3d156cb17d125d71ec73b7cef137c6ca4b550ff9 | [] | no_license | andyprice2/10-08-19 | d2b074ca6be6cb1494e93fcf4185a2b573e846a5 | 00fa1e03e66ef31d08afc6361f85605ab6bcc15e | refs/heads/master | 2020-08-08T03:09:12.322920 | 2019-10-10T16:46:03 | 2019-10-10T16:46:03 | 213,690,234 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,139 | r | scratch.R | library(tidyverse)
dice <- function() {
sample(1:6, size = 1, replace = TRUE)
}
twicedice <- function(n_pairs = 2) {
results <- vector(mode = "integer", length = n_pairs)
for (i in 1:n_pairs) {
results[i] <- (dice() + dice())
}
print(results)
}
mapdice <- function(n_pairs = 2) {
results <- vector(m... |
a9ee791f9376ec96d24da5f0349ab7030d62b120 | 254e700f6a6202e24a66a105cba814856e9e1b30 | /script_emisiones_finca.R | f08f3d2ee8a30b3758f6f9fe12f7649a24779cfd | [] | no_license | FAO-EC/Farm_livestock_direct_emissions_Ecuador | 94f67df0c80e68d64be9e5ceb620a6c2119c5bf4 | c6a84a352111425d2c69879a0898331700a58b51 | refs/heads/master | 2022-01-03T03:36:39.538648 | 2020-05-05T18:20:54 | 2020-05-05T18:20:54 | 250,617,146 | 0 | 1 | null | 2021-12-30T09:52:10 | 2020-03-27T18:42:32 | R | ISO-8859-1 | R | false | false | 51,789 | r | script_emisiones_finca.R | ## SCRIPT FOR EMISSIONS ESTIMATION
## FARM LEVEL
## GANADERIA CLIMATICAMENTE INTELIGENTE
## 2019
## ARMANDO RIVERA
## armando.d.rivera@outlook.com
## BASED ON
## GLEAM 2.0 (FEB. 2017)
## http://www.fao.org/gleam/resources/es/
## The script automate the formulas from
## the GLEAM model for cattle product... |
cd9225d9d097f6e2c1b1445c20877c28339cdfc0 | d5f011fdc8eed076fc6d89684473b7582e4527bf | /R/supportFunc_ensembleEnet.R | bdc589f391a174ce988b3c10d746ebef403cc449 | [] | no_license | singha53-zz/amritr | 60cf8ed5a26e1d4dc7950cbb10b0d85688a3ff8b | 139d9029d3a24ba90e252c642383016b40a9a504 | refs/heads/master | 2022-06-17T21:10:16.535078 | 2019-07-18T18:42:16 | 2019-07-18T18:42:16 | 58,297,895 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,814 | r | supportFunc_ensembleEnet.R | #' Build ensemble enet classification panel
#'
#' @param X.trainList - list of training datasets (nxpi); i number of elements
#' @param y.train - n-vector of class labels (must be a factor)
#' @param alphaList = list of alpha values
#' @param lambdaList = list of lambda values
#' @param family - can be "binomial" or "m... |
753ac19515361e38efc225b48d93f6450cc54016 | dae56739731143f4e03991fe47759d2f33fe076d | /SubsetSelection.R | 408b56ae54754ce363dc501a65b9b9908b25b792 | [] | no_license | MarissaMC/Machine-Learning_using-R | 55b406b7e24f063558c100122027a52c1f65c966 | 613897ca0e18a4dfb0ff678c4e7c641a51b687eb | refs/heads/master | 2021-01-01T17:33:10.551116 | 2015-06-11T17:40:41 | 2015-06-11T17:40:41 | 37,275,761 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,023 | r | SubsetSelection.R | library(ISLR)
?Hitters
attach(Hitters)
## check for missing values
sum(is.na(Salary))
model=lm(Salary~.,data=Hitters)
Hitters=na.omit(Hitters)
attach(Hitters)
dim(Hitters)
# the observations with missing values are
# Use subset selection to decide what variables should be in our model
library(leaps)
model=regs... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.