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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80c4f1f63555dd67ba04f9233328b18d117e031c | 381ea93b5654c74584e203676ceb9bd17bd608b0 | /man/notrack-methods.Rd | 0b83e749c36b56e544de310af94694b91870f114 | [] | no_license | gmbecker/GRANCore | e26962f45f2ee646cc3c24f24ebe11212a51ec62 | 47809ff6789185df947159f1d73249abd7694bee | refs/heads/master | 2022-01-11T10:00:33.795287 | 2019-10-31T00:35:24 | 2019-10-31T00:35:24 | 112,526,940 | 1 | 5 | null | 2019-05-24T21:23:05 | 2017-11-29T20:56:19 | R | UTF-8 | R | false | true | 581 | rd | notrack-methods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accessors.R
\docType{methods}
\name{notrack,GRANRepository-method}
\alias{notrack,GRANRepository-method}
\title{notrack
Return the directory which stores retreived versions of non-GRAN packages
for use in virtual repositories}
\usage{
\S4meth... |
86300fbe0f71666283df697c83e59ea0ea8d29ea | f69bcd76b3308c3847135442719c49688b03fed3 | /R/data.R | c2a3426ef4b4b8b9ec6088684f709a2ceb3e7410 | [] | no_license | cran/activityGCMM | 8922e39b4542cedcbe0a1d117d7cf8291e76dc82 | db777426190dd415c6ddd485844189d183395ab6 | refs/heads/master | 2023-06-02T21:47:56.691319 | 2021-06-14T18:20:02 | 2021-06-14T18:20:02 | 348,029,285 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,710 | r | data.R | #' Sample data of camera trap observations of humans
#'
#'
#' @description Example dataset for fitting circular mixed effect mixture models with activityGCMM package
#'
#' @name humanssample
#' @docType data
#' @title Sample data of camera trap observations of humans
#'
#'
#'
#' @format Dataframes with 3 ... |
9cb2a711f4f684fdcb9b89f6c8d078ba045a225c | 9ec70912e3ad64c994cb89b0d153e2802c9f420f | /Springleaf/Scripts/r_xboost2.R | 83f611b6f7fa4ce4ad3a42219fa80a44c23ed4ae | [] | no_license | AdrianoW/Kaggle | ce0e125e7c4712233cbd3b06eb4a2f04cff21fd7 | 4fcce1ba5ba240c651f1d207e7151dfda7da8f56 | refs/heads/master | 2021-01-18T21:57:10.653407 | 2015-12-17T21:18:02 | 2015-12-17T21:18:02 | 23,518,743 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,377 | r | r_xboost2.R | setwd("~/Documents/Machine Learning/Kaggle/Spring/r")
library(readr)
library(xgboost)
library(h2o)
my_h2o <- h2o.init(nthreads = 6,max_mem_size = "10G")
set.seed(8472397) #seed bag1:8, then eta=0.06not0.04&nround125not250: bag2:64, bag3:6, bag4:88, bag5: 0.03-300-seed666
#bag6:16, train[1:80000,], val=train[80001:12000... |
d3b824b8aab809e48c33edf6f8f2e9e38d3488de | 548333edfb4493b63a4cf0a2542851178bb1a557 | /Models/4_Asset_impacts/MSCI_CC_waterfalls.R | a5917fc99fe8b45812041151b9819b4599d2cf92 | [] | no_license | Allisterh/Climate_change_financial-IPR | b3137e270cacd35b08ebb7c2a612a9d1047a68bd | 1b304b9d0ec2b362d9cfa0d46bb6ebc1d49fe623 | refs/heads/master | 2023-03-26T07:44:54.148687 | 2019-07-16T16:02:27 | 2019-07-16T16:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,410 | r | MSCI_CC_waterfalls.R | ##### Project code: Net-Zero Toolkit for modelling the financial impacts of low-carbon transition scenarios
##### Date of last edit: 03/04/2019
##### Code author: Shyamal Patel
##### Dependencies: 1. Cost & competition model results under a variety of parameter assumptions
##### ... |
6ebbd2dcdc92f23e0ed41f7bb99b917f10fabbca | ef2b942dd21ac2dbf57a1541b75b019b422c332b | /ABNLookupSampleCodeR/ABNSampleCodeR.R | 6fc5e73fb91c422d7f98c6b1a20041d0c6a94a73 | [
"MIT"
] | permissive | madhuri-butn/ABNLookupSampleCode | d25959e44f01de9c1be92d200da3a32da3edd6e3 | 1c4fc2fd0575d23284878b82c78aedd22191044d | refs/heads/master | 2023-07-02T16:26:33.204109 | 2021-07-30T07:50:30 | 2021-07-30T07:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 486 | r | ABNSampleCodeR.R | install.packages(c("httr", "jsonlite"))
library(httr)
library(jsonlite)
guid <- "paste_your_guid_here"
abn <- "26008672179"
response <- GET("https://abr.business.gov.au/json/AbnDetails.aspx", query = list(guid = guid, abn = abn, callback = "callback"))
removeCallback <- sub('[^\\[|\\{]*', '', response) # remove call... |
9aa6dbd6e5e496017d5602f712bb81cb41ccaabd | 87758b3ef57e7b6fc9ee25f33b411d7f319da121 | /text_analysis.R | a16bbb006ffe11fb95386982cc483e9d6bea6b9b | [] | no_license | p10rahulm/cancer_text | 2e747db7768f91cc85807282aaa1a0dda99b90a9 | 5cbf70b9a2488a4df84e2243346e2ab1e7c55d86 | refs/heads/master | 2021-07-09T06:25:24.041673 | 2017-10-08T16:21:27 | 2017-10-08T16:21:27 | 104,238,178 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 356 | r | text_analysis.R | rm(list=ls())
# -------------
# Load Libraries
# -------------
library(stringr)
library(tm)
# install.packages("RWeka")
library(RWeka)
library(SnowballC)
# -------------
# readfiles
# -------------
load("cleaned/training_words_removed_cleaned.bin")
synopses <- readLines(con = "cleaned/training_synopses.txt")
# ------... |
2ce01f2b643b44b92f39ae6e7c23e32ec6acfad4 | 7c8f9b15213eca35cac247428b5f5b7a7d14cfec | /code/02_cleandata.R | ca09bc595fdb86e9606724bb2e8a20e609ea9556 | [] | no_license | ausmani23/jobtalk_crim | 74dcbd518d154daf68f0f9327ebed5ea614274dd | 312af53de1aec335bde2bb98e813a90e2b66369f | refs/heads/master | 2020-04-08T05:25:06.567064 | 2018-11-29T16:00:40 | 2018-11-29T16:00:40 | 159,059,662 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,337 | r | 02_cleandata.R | #########################################################
#########################################################
#clear workspace
rm(list=ls())
#load packages
require(stringr)
require(plyr)
require(dplyr)
require(zoo)
require(tidyr)
require(rprojroot)
#set dirs
homedir<-find_root(
criterion=has_file('crimtalk.R... |
08d46d0f69598629f647705597178b002cabe9e1 | 12285ae33495c15adbaa61864de1f44ea92792ed | /R/fars_read_years.R | f0d0b57580268a267332c7d7baf7534231d82f17 | [] | no_license | ragp29/project01 | 7dd72b8640409eb344f437f62765db63292a4aed | 6f1f892fcd127302384d2c6938d32e3ba23dfed0 | refs/heads/master | 2021-01-19T01:09:28.481282 | 2017-04-05T10:35:13 | 2017-04-05T10:35:13 | 87,229,062 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 627 | r | fars_read_years.R | #'Reads in data from different years and stores in dat which contains month and year
#'
#'@param years vector
#'
#'@importFrom dplyr mutate select
#'@importFrom magrittr "%>%"
#'
#'@return a data frame tbl which includes month and year across different years
#'
#'@export
fars_read_years <- function(years) {
year <- ... |
777c679cdcc4f5667e9f51a76883d9e7735adfb3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/BayesComm/examples/print.bayescomm.Rd.R | 54bd572c6fbb35f2351756c629bbce7f0121770c | [] | 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 | 169 | r | print.bayescomm.Rd.R | library(BayesComm)
### Name: print.bayescomm
### Title: Print a bayescomm object
### Aliases: print.bayescomm
### ** Examples
m1 <- example(BC)[[1]]
print(m1)
m1
|
85de020ed6b8affc5fc1549e6d1a0038cc6b6354 | 61ae80dc84faad496a920817f56b2f2c94cd7d59 | /removals/ibm/old/summarize_validate_sims.r | a19b6d7cfbac43816a56e25a2a1597d286feea59 | [] | no_license | pbadler/ExperimentTests | 1f78c6be8c193345bd63e11c7ba65a423bf77ad4 | b2bfeb446a54446210e3f04a010d689dc577f257 | refs/heads/master | 2021-04-09T17:39:42.583837 | 2021-03-16T22:12:05 | 2021-03-16T22:12:05 | 53,069,884 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,889 | r | summarize_validate_sims.r |
# call from validate wrapper
setwd("ibm/")
sppList=c("ARTR","HECO","POSE","PSSP")
Nspp=length(sppList)
sppNames=c("A. tripartita","H. comata","Poa secunda","P. spicata")
myCol=c("black","forestgreen","blue","red")
# control plots
qList <- paste0("Q",c(1:6,19:26)) #c("Q1","Q2","Q3","Q4","Q5","Q6" )
covD=NULL
for(i ... |
ebd6a41429468486af597a6b37081baf0029c88d | f363f246688186ceab7ea22a1f47e2d184ddfa42 | /R/foo.R | b515d207cca637f394781ee6989c55e435c4d5ec | [] | no_license | aljabadi/TravisTest | 82369f7650c432ad16277782dec8ef011059c8aa | 0ddac2fd19c3ccb1cbd56d9e5a5347931f9e48e3 | refs/heads/master | 2022-03-13T14:20:03.077587 | 2019-11-26T01:34:33 | 2019-11-26T01:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 132 | r | foo.R |
#' Foo
#'
#' @param bar bars of some foo
#'
#' @return stuff
#' @export
#'
#' @examples
#' foo(3)
foo <- function(bar=5){
bar
}
|
26f27242ad5be46a1b95568fabe138e4c421df4e | 703d042ac43e56d9a347d3cc1bc9ead0d0eb6f4f | /1_likelihood/R_scripts/plot_likelihood_surface.R | 2a94dd594057e5640d7ad34202a449b5a137195a | [] | no_license | hoehna/birth-death-shift-analyses | 732093ac26b24ad79726660c8d8cdf9836eced62 | b24e98d9bd6ce6af375b64b8bcfce32e5d03b575 | refs/heads/master | 2020-04-05T21:43:05.806601 | 2019-09-16T21:52:42 | 2019-09-16T21:52:42 | 157,230,453 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,054 | r | plot_likelihood_surface.R | colors = rep(1,2)
likelihoods = read.table("likelihoods/primates.csv",header=TRUE)
x_vals = likelihoods$Rel.Ext
space = 30
lwd = 4
cex = 0.7
pch = c(1,3)
f = 1.2
pdf(paste0("../figures/Likelihood_surface.pdf"),width=7.5, height=5)
par(lend=2, mar=c(5,6,0.3,0.3))
plot(x_vals, likelihoods$BDP, type="l", lw... |
34e2a527874d3418d550012af0b2e23158438c8e | 2eebaf7f9e3246d2453df9289574fba9e7f8151a | /inst/flowfinder/data_tab.R | d09d14f30b4536f3fc9283ddebd9e06f3303a854 | [
"MIT"
] | permissive | mikejohnson51/FlowFinder | b47f2e726c452770bfa755c0da90ff7d13a1da92 | 617610cb3d53229de23a43775892223f8f854162 | refs/heads/master | 2021-06-07T20:26:34.622266 | 2021-03-15T00:05:05 | 2021-03-15T00:05:05 | 136,057,097 | 6 | 1 | MIT | 2021-03-15T00:05:05 | 2018-06-04T17:00:17 | R | UTF-8 | R | false | false | 3,462 | r | data_tab.R | # Generate static ggplot graph
static_plot <- function(values, selected, id, normals) {
#color <- ifelse(values$data$Q_cfs <= cutoff, '#0069b5', 'red')
time = values$data %>%
filter(COMID == id)
df = data.frame(time = time$dateTime)
for (stream in selected) {
text = stream
stream_id = g... |
2004ea559de25c9162f0b0c7a71b7c3fb0ae1098 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/cjoint/examples/amce.Rd.R | 9673048c31b0f474ad249358e27b6a0f072b9d4a | [] | 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 | 2,586 | r | amce.Rd.R | library(cjoint)
### Name: amce
### Title: Estimating Causal Effects in Conjoint Experiments
### Aliases: amce
### ** Examples
## Not run:
##D # Immigration Choice Conjoint Experiment Data from Hainmueller et. al. (2014).
##D data("immigrationconjoint")
##D data("immigrationdesign")
##D
##D # Run AMCE estimator us... |
cc450a1727794fa2c052931e094341cdccb29fc3 | 5822375099a692619be24211b5654aaf4d41436f | /Machine_Learning/papers/TDDE01-master/lab_2/assignment2/ass2.R | 12d10204dff6fcbf6ab8bb13ee6a4156737d0703 | [] | no_license | Nikoge/LiU-2018 | 6847529611374fbe2f739fb6be526ab9b23149e9 | 7abfa3b6db9f09eaae82081985bb2bf9889ca266 | refs/heads/master | 2020-09-23T20:51:43.172595 | 2019-11-04T21:05:34 | 2019-11-04T21:05:34 | 225,583,093 | 0 | 1 | null | 2019-12-03T09:40:08 | 2019-12-03T09:40:07 | null | UTF-8 | R | false | false | 2,650 | r | ass2.R | library(e1071)
library(readxl)
library(tree)
data = read_excel("TDDE01/lab2/assignment2/creditscoring.xls")
data$good_bad = as.factor(data$good_bad)
n = dim(data)[1]
# splitting
training = data[1:floor((1/2)*n),]
validation = data[(floor((1/2)*n)+1):(floor((3/4)*n)),]
test = data[(floor((3/4)*n)+1):n,]
mysum = funct... |
37c2242057b091a969daa1b7bee46e8862f018e6 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.management/man/cloudformation_import_stacks_to_stack_set.Rd | e8cd24049c31e7472c8f5e001cbc6e6e8d89ac3c | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 2,191 | rd | cloudformation_import_stacks_to_stack_set.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudformation_operations.R
\name{cloudformation_import_stacks_to_stack_set}
\alias{cloudformation_import_stacks_to_stack_set}
\title{Import existing stacks into a new stack sets}
\usage{
cloudformation_import_stacks_to_stack_set(
StackSetN... |
48423a85b2cfe4d0ab169c36aa8011402c9bc1d0 | 1a8db591cff4a67aa8f66ba90d699e65f61038a5 | /app.r | a2061300d5d64846920455991bf407740ce26802 | [] | no_license | zkuralt/ChiloBioBase | 451de925b3ad7e7783afc262502d6984778ee429 | 356ddc780141ab308117dca9b6beaf1974e7602d | refs/heads/master | 2019-12-24T09:13:59.755454 | 2018-01-17T13:42:13 | 2018-01-17T13:42:13 | 102,843,765 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,334 | r | app.r | # Load needed packages
library(shinydashboard)
library(shiny)
library(shinyjs)
library(leaflet)
library(DBI)
library(DT)
library(rhandsontable)
library(htmltools)
library(jpeg)
source("./R/creds.R", local = TRUE)
source("./R/global.R", local = TRUE)
source("./R/about.R", local = TRUE)
#### Header ####
source("./R/hea... |
fd30055afc20be88ccb759fb1a993e633846fba6 | fb28dd592087e02e3f80b0b619a305b94e51e211 | /scripts/interact world map.R | 83df57c7659c0c78df0049e5ee65bb67ad5f577d | [] | no_license | couyang24/Stack-Overflow-2018-Developer-Survey | 7a058a94e04c3968fe08a57ae0fb1ee3b27f9c06 | 1c2bf1e2c7eab5d3c2e319524a87ee89d940472e | refs/heads/master | 2020-03-19T03:52:31.807182 | 2018-06-06T01:38:55 | 2018-06-06T01:38:55 | 135,770,669 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,367 | r | interact world map.R | library(readxl)
library(tidyverse)
library(ggplot2)
library(highcharter)
library(plotly)
library(stringr)
library(viridis)
library(gridExtra)
library(tidyverse)
library(highcharter)
library(plotly)
library(dygraphs)
library(lubridate)
library("viridisLite")
library(countrycode)
library(leaflet)
library(xts)
library(htm... |
1751f8919855e89909063e19d3606de5e3961c4f | 610c5a5444c776bd3d5867f4ec879c698da550ee | /data/lgbb/fill.R | 6fe0cc2ae1f518309bc5861489f573f26f316fdd | [] | no_license | efsalvarenga/surrogates | 147a109bdabbac0219754f534201b9acea3c36da | 873da8e6604f2a5c15ceac61c74787c4f13aa8d0 | refs/heads/master | 2023-04-24T00:25:07.228690 | 2021-05-05T08:01:21 | 2021-05-05T08:01:21 | 283,463,154 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 570 | r | fill.R | library(tgp)
as <- read.table("lgbb_as.txt", header=TRUE)
rest <- read.table("lgbb_as_rest.txt", header=TRUE)
plan <- read.table("lgbb_as_planned.txt", header=TRUE)
XX <- rest[,-1]
responses <- names(as)[-(1:4)]
fill <- matrix(NA, nrow=nrow(plan), ncol=length(responses))
fill <- as.data.frame(fill)
names(fill) <- res... |
7ef9ccfc9bfcb60f73e90b6fad57341b48c7befb | 2f5f0a49261b3ff44d85fcc8533af421c6dce5ae | /Plot4.R | b0b0479581b0c90d01b9d7e67ec8a7aeedd949a2 | [] | no_license | markie1mb/ExData_Plotting1 | db9e6b4002c05a75dfb9549d2c492bfc21cdc4d2 | d0753f548fa3667c6dcfa954920c6661ae3bd249 | refs/heads/master | 2021-01-24T22:22:42.195658 | 2016-04-09T14:05:00 | 2016-04-09T14:05:00 | 55,799,580 | 0 | 0 | null | 2016-04-08T18:06:29 | 2016-04-08T18:06:29 | null | UTF-8 | R | false | false | 1,591 | r | Plot4.R | ## Plot4.R
## Source dataset:
## https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
## This script creates a 4 graphics in one plot
## plot 1 = Global_active_power over time
## plot 2 = Voltage over time
## plot 3 = 3 different sub-meterings over time
## plot 4 = Global reactive po... |
1c56f3cb10cd41e5f6bd7095860dcc41aa5e381b | 23a572adade5e5682a38580d5c46f9ee27f6a16b | /man/PhyDataError.Rd | c8e7c763ee022c9a496e00aa51919c3be9db1236 | [] | no_license | cran/MAGNAMWAR | 600a2865205c3f719bac6b55c60f9c53099a8ca2 | b78d31591665dfcabe8f635d1b6e3d07f8c71d2e | refs/heads/master | 2021-01-20T03:12:07.293148 | 2018-07-12T06:20:17 | 2018-07-12T06:20:17 | 89,508,282 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,463 | rd | PhyDataError.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphics.R
\name{PhyDataError}
\alias{PhyDataError}
\title{Phylogenetic Tree with Attached Bar Plot and Standard Error Bars}
\usage{
PhyDataError(phy, data, mcl_matrix, species_colname, data_colname,
color = NULL, OG = NULL, xlabel = "xlabe... |
33a6c3e355ec52e0c4f5a92d0addc6bced645b8b | aecd7bbacf879d85f460c2018e475862a06d7735 | /processing_ocean_color_data_modis.R | 7b2884725ace5094bf7d3156af4d7e2dbecc2a21 | [] | no_license | bparment1/general_utilities_data_analysis | bd52e7c56251945b6628099e4cfca9cccc8f72e2 | 6186ce69c2698278f9531536bef0be4877ff5439 | refs/heads/master | 2021-01-23T12:46:42.379521 | 2018-10-01T18:30:00 | 2018-10-08T16:41:20 | 93,199,408 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,582 | r | processing_ocean_color_data_modis.R | ############### SESYNC Research Support: ocean colors datasets for environmental applications ##########
## Importing and processing data about the water/ocean from MODIS sensor.
## This is an example with Lake Malawi as a studya area.
##
## Data were downloaded from EARTHDATA NASA.
## https://oceandata.sci.gsfc.nasa.... |
5c31543d814dcc25cfd08b918c107e179fadf5a2 | dd8132404e8c7b028cb13cba904c50aace01c6a7 | /swt/src/std.r/file.r | d13325769dfe60f47636c560e49a6e0d523f3216 | [] | no_license | arnoldrobbins/gt-swt | d0784d058fab9b8b587f850aeccede0305d5b2f8 | 2922b9d14b396ccd8947d0a9a535a368bec1d6ae | refs/heads/master | 2020-07-29T09:41:19.362530 | 2019-10-04T11:36:01 | 2019-10-04T11:36:01 | 209,741,739 | 15 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,411 | r | file.r | # file --- test for file conditions on specified file
integer filtst, result, getarg, argno
character pathname (MAXLINE)
integer zero_length, exists, type, permissions, got_path, i
integer readable, writable, dumped
character arg (MAXLINE)
integer p_bits (6)
permissions = 0 # default permission list: NO
type ... |
0100fba87b0387ccdd4f37d41bb62a23c5f5dba6 | 35425b4781332ee56ccb9812b7f937062f3b6778 | /man/rhandson_ProgramCostSummary.Rd | 353497d6a150647f646bbe8f04d0b7de990396fc | [] | no_license | RX-PBB/PBBOpenData | 8e389d11a37d4336e1231d1537e2dc27a8b1ae8f | 7ff0d760ccb37bdfc5ed15e7713dd9ded182d307 | refs/heads/master | 2021-07-13T12:32:52.004154 | 2020-05-15T14:25:24 | 2020-05-15T14:25:24 | 134,998,853 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 520 | rd | rhandson_ProgramCostSummary.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ProgramModalSummary.R
\name{rhandson_ProgramCostSummary}
\alias{rhandson_ProgramCostSummary}
\title{rhandson_ProgramCostSummary}
\usage{
rhandson_ProgramCostSummary(df, height = 175)
}
\arguments{
\item{df}{Cost data to summarize}
\item{heig... |
9da0b90b9a61a1d7b2e7adee0e83e8f7f2651d50 | 65bf63e3bcc1d542804afa874df89a0c559e810a | /mactesttwo.r | 110ac5fc9b42424fccccc646f3643182c8b0a8eb | [] | no_license | adamsb0713/mac-test2 | b5e4cafcda6b95ec5a0455e0bc5baef20f0d2f9c | f5c35f049908ac67850f8da5429e024f3cdd389b | refs/heads/master | 2020-03-16T22:49:11.355638 | 2018-05-11T15:00:11 | 2018-05-11T15:00:11 | 133,053,563 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26 | r | mactesttwo.r | ##test-mac2
a=1
b=2
c=a+b |
6a218c6c17f5a18e592275baab942bb10e5caa37 | f1b8a09882ba6096e3b0ddede99d62e8c372bd9d | /R/example_serial_interval.R | c8e3f61c1b6cc59af34a94b1044669633d664f32 | [
"MIT"
] | permissive | medewitt/EpiSoon | a255d0abebebed56f3a1e2b4b502b2558dd48c41 | 84b8ac35a2afff9f058544225b2def6edb89517e | refs/heads/master | 2022-07-09T19:25:19.792882 | 2020-05-14T19:43:29 | 2020-05-14T19:43:29 | 260,072,094 | 0 | 0 | NOASSERTION | 2020-05-14T19:43:30 | 2020-04-29T23:56:44 | HTML | UTF-8 | R | false | false | 162 | r | example_serial_interval.R | #' Example Serial Interval
#'
#' An example serial interval probability vector
#' @format A vector giviing the probability for each day
"example_serial_interval"
|
6e26d5083cbebdd2fdfa2738024a30d716df8f2c | f69bcd76b3308c3847135442719c49688b03fed3 | /man/extractparam.Rd | 171f45de44a499c0c028785238db95fadf823666 | [] | no_license | cran/activityGCMM | 8922e39b4542cedcbe0a1d117d7cf8291e76dc82 | db777426190dd415c6ddd485844189d183395ab6 | refs/heads/master | 2023-06-02T21:47:56.691319 | 2021-06-14T18:20:02 | 2021-06-14T18:20:02 | 348,029,285 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 529 | rd | extractparam.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/supportfunctions.R
\name{extractparam}
\alias{extractparam}
\title{Extract parameters for posterior simulations}
\usage{
extractparam(model, x)
}
\arguments{
\item{model}{Object of class GCMM containing output from GCMM function}
\item{x}{Na... |
0c1a48fd43b314837334144a7f9bb175cf9c0883 | 94c1f2fc69dd3b0cf9b6135fb8a138cd008c0e2b | /avaliando_residuos_no_r.r | 9f74509cb304480f4afcf987605157375ab20e7f | [] | no_license | ricardocunh/serie_temporais_com_r | 85093ebd366636ebf3f0f567a95df84abcda03a1 | 375016c80c0a360f9afca4b05cf4f2badd89a99e | refs/heads/main | 2023-03-30T05:46:18.825319 | 2021-03-28T21:28:49 | 2021-03-28T21:28:49 | 350,142,747 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 361 | r | avaliando_residuos_no_r.r |
library(forecast)
libary(ggplot2)
autoplot(presidents)
prev = auto.arima(presidents)
print(prev$residuals)
# gerando a visualização
autoplot(prev$residuals)
hist(prev$residuals)
var(prev$residuals)
var(prev$residuals, na.rm = T)
mean(as.vector(prev$residuals), na.rm=T)
acf(prev$residuals, na.action... |
1df04dcb945793efc47d63f434d4964ca4e97073 | 22087c2df17907e3d7c6c502b68779ba968848ce | /R/SWD_analysis_helpers.R | 91814408a7fecf7a62c883f8811eee01e66185d0 | [] | no_license | marlonecobos/kuenm | 07c16d20445ccbd6e07d7349fa54ea03900cf0a9 | 2012fadee1ceffec008f50495ec598c94b41ffc5 | refs/heads/master | 2023-07-07T09:13:57.863875 | 2023-06-26T07:03:22 | 2023-06-26T07:03:22 | 130,799,797 | 46 | 19 | null | 2022-01-21T11:30:20 | 2018-04-24T05:17:49 | TeX | UTF-8 | R | false | false | 15,442 | r | SWD_analysis_helpers.R | #' AICc calculation of Maxent SWD predictions
#'
#' @description aicc calculates the Akaike information criterion corrected for
#' small sample sizes (AICc) for predictions produced with Maxent.
#'
#' @param occ matrix or data.frame with coordinates of the occurrences used to
#' create the model (raster) to be evaluate... |
fd670f5c918c058a2f12daa21060d891e2046d42 | 2e731f06724220b65c2357d6ce825cf8648fdd30 | /BayesMRA/inst/testfiles/rmvn_arma_scalar/libFuzzer_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1612725971-test.R | 29387b4f329546eef2f5863ff7228579b3b3655c | [] | no_license | akhikolla/updatedatatype-list1 | 6bdca217d940327d3ad42144b964d0aa7b7f5d25 | 3c69a987b90f1adb52899c37b23e43ae82f9856a | refs/heads/master | 2023-03-19T11:41:13.361220 | 2021-03-20T15:40:18 | 2021-03-20T15:40:18 | 349,763,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 137 | r | 1612725971-test.R | testlist <- list(a = 1.62994420810855e-260, b = 5.43239211533662e-311)
result <- do.call(BayesMRA::rmvn_arma_scalar,testlist)
str(result) |
36d271529d8a56f7a0f4a4d0eb32f866bea13ec2 | c2ca2cc7ca616defdd69a1098f1f34717eba28cf | /WordPredictionGenerate.R | 115986e1a6c45d246164ad44883c66980a880550 | [] | no_license | tsuyoshi-matsuura/DataScienceCapstone | 9dcef32e1de2ba59dd8fc6b8b4207e1eb1ee9824 | 84f0173cb9e28fb468970a06d060d3e9c5a146f1 | refs/heads/master | 2020-09-02T03:32:11.359340 | 2019-11-19T07:53:38 | 2019-11-19T07:53:38 | 216,562,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,962 | r | WordPredictionGenerate.R | library(tidyverse)
library(tidytext)
# Read a file with profanity words
profanity <- readLines("profanity.txt")
readFile <- function(filepath,fraction,seed) {
# Open as "rb" to avoid ^Z problem
con = file(filepath, "rb")
lines <- readLines(con,encoding = "UTF-8")
close(con)
set.seed(seed)
... |
6b4791e516a768fd1650544b58fc1633beb24521 | 9fbc87205a3880aa124012afb77048b0716b6dad | /package_v2.R | a40e1abfaa6dcdf540126430e57db5b74fe572f2 | [] | no_license | asensio-lab/workplace-charging-experiment | 070e32f4f41c9cb671769151047c408bac6e735e | ec0bf80e2281d2b21d23f386a6cd48c32469c5b3 | refs/heads/master | 2023-01-05T15:05:23.053411 | 2020-10-19T21:29:11 | 2020-10-19T21:29:11 | 185,430,217 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 74,272 | r | package_v2.R | # _____________________________________________________________________________
# Minimum required imports
# _____________________________________________________________________________
library(rddensity)
library(rdrop2)
library(lpdensity)
library(ggplot2)
library(rdd)
library(car)
library(dplyr)
library(lub... |
a5f0affa4b0f0ae2824873e2ff863878747e8303 | bec6bef19012a98f5ebd8994bcb01671d53be03a | /ERAnalysis/man/gsS.Rd | 4f42656609df39bae5a8ec18f97dd541e4539336 | [] | no_license | jlaake/ERAnalysis | f730b705f176dea89ff4b56a3b79b41011949d3e | fc5208a520a1ca4e3b95cc33f0036f7331933a9c | refs/heads/master | 2021-01-18T22:34:34.335665 | 2017-10-30T23:36:28 | 2017-10-30T23:36:28 | 2,009,628 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,629 | rd | gsS.Rd | \name{gsS}
\alias{gsS}
\alias{add.cf.all}
\alias{add.cf.laake}
\alias{add.cf.reilly}
\docType{data}
\title{Pod Size Correction Statistics}
\description{
Summarized calibration data for pod size estimation error. \code{gsS} is a calibration matrix
and the others are additive estimates.}
\usage{
data(gsS)
dat... |
4d2863b795650b6626813ec6a37770e854983a68 | 027d9bdd729698ecbe28dee02405ffb1ecc36066 | /R/sim.pheno.bin.G.R | f1bfafdf84b67bc2670c1d381d950f1e00ef3db6 | [] | no_license | agaye/ESPRESSO.G | a8e6935bcc94e4bbb70795604cca8f9f03ae4a19 | 5c83c5833f1be81240179280272cfc7b576746e3 | refs/heads/master | 2021-01-20T22:29:07.920729 | 2014-07-09T11:50:32 | 2014-07-09T11:50:32 | 65,598,927 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,725 | r | sim.pheno.bin.G.R | #'
#' @title Generates phenotype statuses
#' @description Generates affected and non-affected subjects using the genotypes.
#' @param num.obs number of observations to generate per iteration.
#' @param disease.prev prevalence of the binary outcome.
#' @param genotype a vector that represents the exposure data.
#' @par... |
c09017f4584a860f2d91045cb5d4f4f5c2fc1c0c | 9a805694e5fb540cc461761a4fcb785c31528f32 | /R/my_knn_cv.R | 069c6a9e58469e5870ef9424be872e12472520b2 | [] | no_license | theloniousgoerz/tgpackage | cb0b3ea936f254fb8138b948d54c63a66310629f | 8d96656120d0f3fec6548f9a1abd83a772fc9cb6 | refs/heads/master | 2023-05-21T10:15:53.364247 | 2021-06-08T22:17:12 | 2021-06-08T22:17:12 | 373,619,992 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,298 | r | my_knn_cv.R | #' My_knn_cv
#'
#' This function calculates a k-fold cross validation for the k nearest neighbors algorithm.
#'
#' @param train Is a matrix with no NAs or missing values that is used to train the model.
#' @param cl Is the true classification of the training data.
#' @param k_nn Is the number of nearest neighbors to in... |
3afabf92092d59382d439386be121a80a6463ce5 | f7105536a44be844d652f28e5c5b5bab0db66aa8 | /R/CMF/econometric/hw4/hw4.R | 6664ca6bdf9a1ffc3f7a30ecfe8f0f0492847808 | [] | no_license | DmitryZheglov/code | e6f143c21287a250c01c639659b672fdef089bbe | fdec951c8dcf3145109076bc78f0646217b1b822 | refs/heads/master | 2022-12-13T11:43:00.962046 | 2019-08-12T18:58:55 | 2019-08-12T18:58:55 | 93,278,292 | 1 | 0 | null | 2022-12-07T23:49:07 | 2017-06-03T23:00:52 | Jupyter Notebook | UTF-8 | R | false | false | 8,611 | r | hw4.R | # исходные данные
library(datasets)
datMTLR= read.csv("C:/Users/Dmitriy/Desktop/proga/R/cmf/ecmetr/hw4/MTLR.csv",header=TRUE,sep=",")
datYNDX= read.csv("C:/Users/Dmitriy/Desktop/proga/R/cmf/ecmetr/hw4/RASP.csv",header=TRUE,sep=",")
dax=unlist((datYNDX[8]-datYNDX[5])/datYNDX[5],use.names = FALSE)
smi=unlist((datMTLR[8]... |
75addeafb3d08c5416dd4279be61f6b2e5697a1e | 7e39ca6104d055974719e15a076b6777c8c3f56a | /programs/explore_epidurOutliers_ILI.R | 443ece8e145252d09bde7325ad158a0f0206f81c | [] | no_license | Qasim-1develop/flu-SDI-dzBurden-drivers | 00e61a992e75ea500b9d690ef6f25f77f9638def | c66a556c1d5012af3b69c16ba407b3d444ea23be | refs/heads/master | 2022-07-22T16:46:10.612961 | 2018-09-26T14:45:35 | 2018-09-26T14:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,281 | r | explore_epidurOutliers_ILI.R | ## Name: Elizabeth Lee
## Date: 9/16/15
## Function: examine zip3-season time series with short and long epidemic durations; Does the time series appear to follow an expected epidemic pattern?
## Results: Similar to IR epiDur outliers, long epidemics seem more acceptable than short ones, which are noisy and often miss ... |
d18f8c972a41a053c1064c6f456f31d9dfe2b60c | 8da078ced4ec8803d6dffe6ecce2f7b9f0212bb6 | /ui.R | 47856d901cc8302b97cb4a3aa9bdc60ba17906f9 | [] | no_license | pavlov-aa/Map-of-Road-Accidents-in-Moscow-and-Moscow-Oblast | 8224b31e0db99857fd4b3b716e40bfba983f37d5 | fead7d642a1d6efa80d0817848b65a305f7dad4d | refs/heads/master | 2020-05-23T15:44:53.226814 | 2019-07-01T12:26:47 | 2019-07-01T12:26:47 | 186,833,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 678 | r | ui.R | library('shiny')
library('leaflet')
ui <- fluidPage(
titlePanel("Car Accidents in Russia"),
sidebarPanel(sliderInput("userdate","Car accidents dates:",
min=as.Date("2018-01-01","%Y-%m-%d"),
max=as.Date("2018-11-01","%Y-%m-%d"),
... |
9e9cf79f03c886e5d908af12f8630d7618857bb4 | dd25470dd810951426776e9f332a571270a7e7e4 | /server.R | a95dfe7ba0233ca3eb4066356131b1b6993b17f9 | [] | no_license | scottbedwell/shiny-proj | 238e89d4d02a19a2d08a85462c826af72e777450 | d767a83741642a6a0350dd9fae6593eaac38604d | refs/heads/master | 2021-01-01T17:52:30.082243 | 2014-12-21T20:37:58 | 2014-12-21T20:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 501 | r | server.R | library(UsingR)
library(ggplot2)
library(caret)
data(father.son)
#with(father.son, plot(fheight,sheight))
qplot(fheight,sheight, data=father.son) + geom_smooth(method = "lm", color = "red")
#modFit <- lm(sheight~.,data=father.son)
modFit <- train(sheight~., data=father.son, method="lm")
summary(modFit)
shinyServer(... |
a280b1a2cb6ae98d0acbe13afc08ef2b15037cc3 | 5c427a0dff846e42a83c33d0251280b149eaa991 | /maintenance/wiki-schema/wiki_col_lifetime.R | 6a552e05af5d97fcf6db537e3e255ff2be88210c | [] | no_license | montahdaya/ESEUR-code-data | 27c4bb3f719565125b57998f408b1a11b1ede041 | f9280e23c397807aa3505135423797dad1acf09a | refs/heads/master | 2020-05-29T08:55:40.168842 | 2017-01-29T22:33:42 | 2017-01-29T22:33:42 | 82,587,420 | 1 | 0 | null | 2017-02-20T18:07:07 | 2017-02-20T18:07:07 | null | UTF-8 | R | false | false | 918 | r | wiki_col_lifetime.R | #
# wiki_col_lifetime.R, 16 May 14
#
# Data from:
# Schema evolution in wikipedia toward a Web Information System Benchmark
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
library("survival")
col_life=read.csv(paste0(ESEUR_dir, "maintenance/wiki-schema/tabcol_lif... |
eb63557cffc67229b1bc0f37325fa0946744c521 | ff12ace2203836c526198b1460718caba7993834 | /R/method-preview_.R | dadf5d58e6b54df1eb24e1a54c0211819137f74e | [] | no_license | abresler/PivotalR | 55abbeeeed82e858e15f4abe486bfde562d9108a | 8a14875159931883b01d223ae24a61764b751001 | refs/heads/master | 2021-01-18T19:37:43.497184 | 2013-08-04T19:44:23 | 2013-08-04T19:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,984 | r | method-preview_.R |
## ------------------------------------------------------------------------
## Preview the object
## ------------------------------------------------------------------------
setGeneric (
"preview",
def = function (x, ...) standardGeneric("preview"),
signature = "x")
## -----------------------------------... |
de4734838cee068bc7274e798d9e0e16185549d7 | 6b0235f498a3c02ff81631142aef02d5e2757544 | /R/Consistency_checks.R | f653cf9fd7a46693f4043feb1108547d1b56f9e9 | [] | no_license | Isabella84/SECFISH | 69c8bd8b15bd5d212632970f87debfc6d718d838 | 5d447efa36ad7347edf2aaa3e9b6e7ba38dc4902 | refs/heads/master | 2020-07-26T21:05:33.907985 | 2019-09-16T10:02:52 | 2019-09-16T10:02:52 | 208,765,622 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,759 | r | Consistency_checks.R | #########################################################################################################
# SECFISH (Strengthening regional cooperation in the area of fisheries data collection #
# -Socio-economic data collection for fisheries, aquaculture and the processing industry at EU level) #
... |
2d5d1632ebcc5c8a1e6517d008c37eb6f03ed8d3 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /FlyingR/R/method_1.R | 8044c0a911c75e363f70a000c7d0c9c6ba3242f3 | [] | 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 | 2,008 | r | method_1.R | # Method 1 on practical range calculation based on Breguets equations
#
# @author Brian Masinde
# @param bodyMass all up mass
# @param wingSpan wing span of bird in metres
# @param fatMass fat mass of bird
# @param ordo Passerine (1) or non-passerine (2)
# @param wingArea area of wing
# @param constants A list of re-de... |
b90315dfce6b1703f54a63489bb0f6458c6d00ff | ce75af5efc0d9390447867fdf4ebb35dac155202 | /man/MeanTLLandings.Rd | 0e8468cd0a4df19cde7e3ce6414c22eaa02c752e | [] | no_license | dempseydanielle/marindicators | eefd014489c5478f7762fa1c3753365f41402f96 | 2ba76adc8cf7f02bbf0e3a09b1990da8eef0a070 | refs/heads/master | 2020-06-16T01:04:52.572916 | 2020-05-12T15:41:12 | 2020-05-12T15:41:12 | 195,438,940 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,374 | rd | MeanTLLandings.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MeanTLLandings.R
\name{meanTLLandings}
\alias{meanTLLandings}
\title{Calculates the Mean Trophic Level or Marine Trophic Index of fisheries
landings}
\usage{
meanTLLandings(land, TL.table, minTL = 0, years)
}
\arguments{
\item{land}{A datafr... |
4462dc35f61856e0815d326da4202969e29f62a0 | b8d806a3fbf69da270080af7e1d7553e764c26e5 | /script.R | 69ada0cc35c1469e88510fe304c354179f5e94e4 | [] | no_license | khaibaromari/time_check | 748f5c7b751f0bf3853df45f698d673616cc2eb9 | 5e79a5fe93113f428d020372cbcc74bf107943d8 | refs/heads/main | 2023-06-11T00:27:03.248499 | 2021-06-29T09:34:35 | 2021-06-29T09:34:35 | 377,139,615 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,010 | r | script.R | library(readxl)
source("functions/time_check.R")
# initializing the minimum and maximum interview duration (in minutes) to be flagged
time_min <- 15
time_max <- 60
# reading the raw data set
df <- read_xlsx("input/data_frame.xlsx")
# time check based on start and end time
time_checked_df <- time_check(df, time_min, ... |
09378d98f9931bbcab8b94f9d38de6d7e850b0f4 | 29585dff702209dd446c0ab52ceea046c58e384e | /hht/R/rendering_and_plotting.R | b0dcfca97d4f16a0f421b6c6101f91f96db35dda | [] | 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 | 42,378 | r | rendering_and_plotting.R | # Plotting and data analysis functions
FTGramImage <- function(sig, dt, ft, time.span = NULL, freq.span = NULL, amp.span = NULL, blur = NULL, taper = 0.05, scaling = "none", grid=TRUE, colorbar=TRUE, backcol=c(0, 0, 0), colormap=NULL, pretty=FALSE, ...)
{
#Plots a Fourier spectrogram
#INPUTS
# SIG is the ... |
9988b348f9e9234a886c84014c83e1ab658904e8 | e0b530f1d389c1de35175643d306eb4be64445f4 | /googlevisionv1.auto/man/FaceAnnotation.Rd | 9c130dc360e1b46112cc3070ef225d86d7be0814 | [
"MIT"
] | permissive | Phippsy/autoGoogleAPI | 3ce645c2432b8ace85c51c2eb932e1b064bbd54a | d44f004cb60ce52a0c94b978b637479b5c3c9f5e | refs/heads/master | 2021-01-17T09:23:17.926887 | 2017-03-05T17:41:16 | 2017-03-05T17:41:16 | 83,983,685 | 0 | 0 | null | 2017-03-05T16:12:06 | 2017-03-05T16:12:06 | null | UTF-8 | R | false | true | 1,489 | rd | FaceAnnotation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vision_objects.R
\name{FaceAnnotation}
\alias{FaceAnnotation}
\title{FaceAnnotation Object}
\usage{
FaceAnnotation(tiltAngle = NULL, underExposedLikelihood = NULL,
fdBoundingPoly = NULL, landmarkingConfidence = NULL,
joyLikelihood = NULL,... |
2f4576de59469849eff58589ad4c366cc5df3522 | ef3dff575826b9f9d620c4ad348a80caa9c023de | /functions/plot_functions/make_valdist_plots.R | 22074822be303ecdee98a3fc73454ec823f78cc2 | [] | no_license | anthonyleezhang/dlcode | 6fc5fd30327957903735c2664bfce2bbcaba21ef | 2471bf86cc168aa4400d7e0e8f8e789221076287 | refs/heads/master | 2020-04-26T20:00:56.945691 | 2019-03-04T18:09:24 | 2019-03-04T18:09:24 | 173,794,714 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,332 | r | make_valdist_plots.R |
make_valdist_plots = function(valdata) {
### Make log gamma pdfs by interpfun tricks
plotdata = data.table(
loggam = numeric(0),
Fgam = numeric(0),
fgam = numeric(0),
tau = numeric(0)
)
for(my_tau in c(0, 0.05, 0.1, 0.15, 0.2)) {
# for(my_tau in c(0)) {
data = valdata[tau == my_t... |
a006366bff66be52b9a66dd92478d8f68931c586 | 0fbc58702c39addfa7949391d92533922dcf9d49 | /inst/examples/diamonds-carat.R | 5fa048a1e479600e029c82e3fd47b2e1de3f29cd | [] | no_license | yihui/MSG | d3d353514464f962a0d987efd8cf32ed50ac901a | 8693859ef41139a43e32aeec33ab2af700037f82 | refs/heads/master | 2021-11-29T08:12:02.820072 | 2021-08-15T17:14:36 | 2021-08-15T17:14:36 | 1,333,662 | 30 | 12 | null | 2021-08-15T17:14:37 | 2011-02-06T05:42:53 | R | UTF-8 | R | false | false | 302 | r | diamonds-carat.R | # 按雕琢水平切片后的钻石重量密度曲线
data("diamonds")
library(ggplot2)
levels(diamonds$cut) = c("一般", "良好", "优质", "珍贵", "完美")
p = ggplot(aes(x = carat), data = diamonds) +
geom_density() +
labs(x = "重量", y = "分布密度") +
facet_grid(cut ~ .)
print(p)
|
14945021eae2ccf61c58a5e2d9d3df8513156f1b | fc6e720c153e22846dabe8d4c826b99c77f8ea2a | /fraud_msba.R | b85e24af661607ec973afeba875e325bacb0184b | [] | no_license | jlhf80/r_programming | 80c3994caeac8d8437d876f54262b3973477e311 | d7d5a6a4298dbcfb1671b79c62c473d527dd0941 | refs/heads/master | 2021-06-24T21:41:35.102808 | 2017-09-01T06:35:49 | 2017-09-01T06:35:49 | 49,107,727 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,456 | r | fraud_msba.R | #clear global
rm(list=ls())
# load packages
library(doMC)
library(C50)
library(caret)
library(klaR)
library(MASS)
#register cores
registerDoMC(4)
#load data
data <- read.csv("/Users/jameshenson/Downloads/fraud_train.csv")
data2 <- read.csv("/Users/jameshenson/Downloads/fraud_test.csv")
#remove rows with missing valu... |
0ec9570ec07a7aaa4188a96cca16e6ba6b3a8c9e | c0a51646e07e25c725924caacd8bd590aee89e07 | /man/gen_token.Rd | ed80bc41df07e7c2edb035f760ec2ad0216ea3fd | [] | no_license | grosenf1/immport.api | 5e002eb6cae5ef6f8b2c5ef1c262c69234e47daa | 4ed1163681db7e3a5f740fc96ced254f3bb8695c | refs/heads/master | 2021-08-31T15:17:45.696593 | 2017-12-21T21:34:04 | 2017-12-21T21:34:04 | 114,577,745 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 501 | rd | gen_token.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{gen_token}
\alias{gen_token}
\title{Generate token function}
\usage{
gen_token(Username, Password)
}
\arguments{
\item{Username}{Your ImmPort username}
\item{Password}{Your ImmPort password}
}
\description{
This function al... |
dd22afbd734cae7577ac69c5ce2f8d59ee836e42 | a2b21c77a41c4d77033577881c006cf451a97433 | /01_clean_individual_datasets/_archive/Clusters of NTL/02_join_close_together_clusters.R | 1a64f4e2900c2fe1999eb1a30b5c90f593f5c9fa | [] | no_license | ramarty/Industry-Nighttime-Lights | 85de909e64d66b7eb7610f137f68b518efaa2012 | c120a037abf46935ed87e58a4de52457a46a5fa9 | refs/heads/master | 2022-05-17T12:13:08.917525 | 2022-04-19T20:18:35 | 2022-04-19T20:18:35 | 217,305,866 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,732 | r | 02_join_close_together_clusters.R | # Identify Clusters of Lights
for(country in c("mexico", "canada")){
clumps_sp <- readRDS(file.path(data_file_path, "DMSPOLS_Clusters", "RawData",
paste0(country %>% substring(1,3) %>% paste0("_dmspcluster.Rds"))))
# Group together close together clusters --------------------... |
164c608b58bf5d2a01675283a6a477f81cbfcd38 | c9502009489fcb7ecad5a563a7827766e346f90b | /Tutorials/R Intermediate/Chapter 4/Problemwithsapply.R | 17c0895c30c079338f9d134bcf039f4d3a5e25bb | [] | no_license | Lingesh2311/R | c96f38481795f2d87f89faecce58a4d63304fd63 | 86d2501d1f4979b4391943a93d52df9e7e613e06 | refs/heads/master | 2020-06-04T15:31:01.767700 | 2019-06-17T23:14:18 | 2019-06-17T23:14:18 | 192,082,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 414 | r | Problemwithsapply.R | # temp is already prepared for you in the workspace
# Definition of below_zero()
below_zero <- function(x) {
return(x[x < 0])
}
# Apply below_zero over temp using sapply(): freezing_s
freezing_s = sapply(temp, below_zero)
# Apply below_zero over temp using lapply(): freezing_l
freezing_l = sapply(temp, ... |
4577c10a0e0b946382ebbce8c8a8c2f0ef9c1afa | cbc2cb3cfbe1a9193bbee7e661922bb63b2184d6 | /R/update_db.R | b164d7218343ba711fa5dcca9c34ab445abacdc7 | [
"MIT"
] | permissive | joebrew/nepal | cca80b7c49922e4a26d9e9e765bcd89a6b2b4ce8 | dc9860fc026323286b3d36bfb566487186cc3d2b | refs/heads/master | 2022-04-21T15:32:40.131749 | 2020-03-27T08:15:51 | 2020-03-27T08:15:51 | 113,752,787 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 982 | r | update_db.R | #' Update DB
#'
#' Update a table
#' @param data The data to be uploaded
#' @param table_name Name of table
#' @param connection_object The connection object
#' @return The transcriptions relation in the postgresql database will be updated
#' @import dplyr
#' @import RPostgreSQL
#' @export
#' @examples
#' 2+2
update_... |
f26a14fe76c602c4dba12973861b02bed433fe3e | 506e90f07f77098c3ddc3325e30f74d1e30b2c61 | /man/bias_function.Rd | e8a42359b40facbf04a0cb77c4363697739e0317 | [] | no_license | cran/cmaes | 9aa8b7747757c9c0358c028b278d33ea0005bd0b | f921cfbd20d03122805200e30420f0dd524be688 | refs/heads/master | 2022-05-02T02:07:37.795177 | 2022-03-18T09:20:18 | 2022-03-18T09:20:18 | 17,695,139 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 402 | rd | bias_function.Rd | \name{bias_function}
\alias{bias_function}
\title{Create a biased test function...}
\usage{bias_function(f, bias)
}
\description{Create a biased test function}
\details{Returns a new biased test function defined as
\deqn{g(x) = f(x) + bias.}}
\value{The biased test function.}
\author{Olaf Mersmann \email{olafm@statisti... |
89011d6ec232d33f54d059489ff1d9ef1d70a334 | b56624dbbc2e2b059ae0dc1e8899ec5b7b14c7ad | /R/RcppExports.R | e28cc5b4f7fa5c60b8726a6b9d1ec4f1cc157e8e | [] | no_license | oswaldogressani/mixcurelps | 315c5f5327e8be46b3393104cc566f247d0f48f9 | 11787d26d294e789c1f1afc89c789875b7358403 | refs/heads/main | 2023-05-23T05:24:35.490598 | 2022-06-18T08:57:50 | 2022-06-18T08:57:50 | 404,776,270 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 405 | r | RcppExports.R | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
Rcpp_Laplace <- function(lat0, v, K, PDcorrect, Dloglik, D2loglik, Qv) {
.Call(`_mixcurelps_Rcpp_Laplace`, lat0, v, K, PDcorrect, Dloglik, D2loglik, Qv)
}
Rcpp_cubicBspline <- function(x, ... |
ebf385593eca8b188b37a11ee15c95217231287e | 7c56a8400746861d57d2801f85252e022a934a05 | /SL.glmnet2way.R | 4ce22d3b95ee3925301f0c88347169163c4dbcd2 | [] | no_license | tarynam/epi-drtmle | 3d497979c6aacab3f54fea0b2c673ed4e96829d6 | 0097452c70342a79b3db841cfda7b49114cda0ae | refs/heads/master | 2021-07-19T19:25:55.963568 | 2020-05-01T20:21:15 | 2020-05-01T20:21:15 | 154,034,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,479 | r | SL.glmnet2way.R | SL.glmnet2way<-function (Y, X, newX, family, obsWeights, id, alpha = 1, nfolds = 10,
nlambda = 100, useMin = TRUE, loss = "deviance", ...)
{
.SL.require("glmnet") #keep this one
if (!is.matrix(X)) {
X <- model.matrix(~-1 + .^2, X) #updated
newX <- model.matrix(~-1 + .^... |
489324717b55c0ea727da72483f748c85b3874f8 | c1151b4ba28614a99a06bf838c5669789eb5e203 | /Main/lib/R/vizTools/Scatterplot_001_WASHb_BNG.R | f3c9d967c10f42bf1ae947b8c71bef8dfa391d48 | [
"Apache-2.0"
] | permissive | VEuPathDB/ClinEpiWorkflow | acf263b1a90b018b8ec943eec0c4b2b01c670fca | e34aef14c570ea7f7890674d5445c31e73f2b298 | refs/heads/master | 2023-07-06T10:25:05.204676 | 2023-03-31T16:56:25 | 2023-03-31T16:56:25 | 201,106,536 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,430 | r | Scatterplot_001_WASHb_BNG.R | rm(list=ls())
library(ggplot2)
#############################################################
# set working directory
setwd("~/Documents/GitHub/ClinEpiWorkflow/Main/lib/R/vizTools")
#############################################################
# load data
d <- read.csv("./Data/2020_09_17_WASHb_BNG_bulk_download_m... |
252eec2a2548df8a231046a504e5de921da7d110 | b635759bb7d14305d0fdda68a46308db0b50224b | /R/calculateScenarios.r | 4b8c30c3420d041aab102d13d331dba6896f3e6b | [] | no_license | tobiasreischmann/matchingmarketsevaluation | d27d0c34a72ca5a1d8feb816cb57d32244934792 | eaa3855185d0258092d726109b4a12d70c577c61 | refs/heads/master | 2020-08-31T22:50:31.892226 | 2020-04-22T19:00:27 | 2020-04-22T19:00:27 | 218,805,489 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,974 | r | calculateScenarios.r |
# ----------------------------------------------------------------------------
# R-code for analyzing the rounds played in decentralized college admission problem
# of the matchingmarkets package.
# For multiple dimensions it is analysed how a dimension influences the output for multiple
# exemplary scenarios.
#
# Cop... |
7963c65fed212cc946c402e49b2d87bb885ace3d | 974eb9aa2e1d19028a62d52cd527b6ca92ce15af | /repres1.R | 5cb92f9a01e2c3787ccd5cc901a6132f22a40f35 | [] | no_license | VapoVu/RepData_PeerAssessment1 | 7266f23dd47c1c49aff46064614876ebf6919cb9 | 837104cdec2e82ba7f23db901dfcfb2ee11f70a6 | refs/heads/master | 2021-01-22T14:20:48.504747 | 2015-04-19T19:59:47 | 2015-04-19T19:59:47 | 34,189,639 | 0 | 0 | null | 2015-04-19T01:45:21 | 2015-04-19T01:45:21 | null | UTF-8 | R | false | false | 1,735 | r | repres1.R | # Reproducible research
# Assignment 1
library(plyr, lattice)
# Loading and preprocessing the data
pvDat = read.csv('activity.csv')
pvu <- aggregate(steps ~ date, data = pvDat, sum, na.rm =T)
summary(pvu)
# What is mean total number of steps taken per day?
hist(pvu$steps, breaks =10)
ss = c(mean(pvu$steps), me... |
ba5ec30980a2529730384b52cb95c338fa9ddcfb | 6eda53f2c4f775261c625e5393ce1464addf965f | /man/processing_func.Rd | eb014d67203bdd355f8e7012be1dacf95d17b9aa | [
"MIT"
] | permissive | streampulse/StreamPULSE | 84783964e1dc419cbbd264d3f589080396c68365 | 561c560a320cb21f7e01c90c8a45a9c565c9fbb4 | refs/heads/master | 2022-06-23T03:54:01.975626 | 2022-06-02T20:36:12 | 2022-06-02T20:36:12 | 122,374,090 | 2 | 2 | null | null | null | null | UTF-8 | R | false | true | 349 | rd | processing_func.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shiny_helpers.R
\name{processing_func}
\alias{processing_func}
\title{Internal functions}
\usage{
processing_func(ts, st, en)
}
\description{
Not intended to be called directly by the user.
}
\details{
Not intended to be called directly by th... |
208de565a09e2692a7faeddd5a69c87687db2e39 | 81b11aba0ae87dcad017aba0d2fc59626904b07e | /man/Gaussian.approx.Rd | cf29173c8af4b8f0edce8378a0135f7801149ead | [] | no_license | liusf15/skydivide | 2f4e5473986e110ffb6cc3ff861061b4a160278b | 0c43fcb26ce66a969227e2d5bd533e05eca7956a | refs/heads/master | 2023-04-13T02:38:36.789136 | 2021-05-01T21:47:18 | 2021-05-01T21:47:18 | 359,648,801 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 471 | rd | Gaussian.approx.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/combine.R
\name{Gaussian.approx}
\alias{Gaussian.approx}
\title{Gaussian approximation}
\usage{
Gaussian.approx(f.all)
}
\arguments{
\item{f.all}{an array with shape (K, recon.len, num.samples), where K is the number of subsets, recon.len is ... |
60275e3a33147c361e0402103fa358cd3a41a1f2 | 6ad0b3fb43e174c7fc6d58bfa67cf76f38139816 | /DataPrediction/code/predicteurs.R | 765a69ff4c6d940652986123531aba3b171edcd1 | [] | no_license | Kerudal/MachineLearning | 09ed75587334f21e88e8b3a2bf7bbc30c0c0392c | 435a02c99b6566f2ca9ce86569b7b6d162ef4c89 | refs/heads/main | 2023-01-08T12:33:11.286260 | 2020-11-05T10:22:42 | 2020-11-05T10:22:42 | 310,256,479 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 305 | r | predicteurs.R | regresseur = function(dataset) {
load("env.RData")
pred.test = predict(model.reg, newdata = dataset)
return(pred.test)
}
classifieur = function(dataset) {
load("env.RData")
library(klaR)
library(MASS)
prediction <- predict(best.modelClass,newdata = dataset)
return(prediction$class)
}
|
37a351eb57fa80f0df1f909207b5147b629deb96 | 01204b228054d6d3240961f5a115a7d6ce6296ad | /man/theta.summary.Rd | acb5b761e19a0dfb952c8561f88ca77b6032a8cd | [] | no_license | rbarcellos/MScPack | 90e111f10ad0eaf66984909a321e151aea7d0951 | 687b10b626613beae4770a28932a032f5917547a | refs/heads/master | 2020-05-29T17:12:55.723706 | 2014-07-06T20:12:06 | 2014-07-06T20:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 507 | rd | theta.summary.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{theta.summary}
\alias{theta.summary}
\title{Medidas resumo parametros de estado}
\usage{
theta.summary(theta, sig.level = 0.95)
}
\arguments{
\item{theta}{array com as matrizes de estados simuladas via MCMC;}
\item{sig.level}{nivel de credibilidade do interval... |
89719654f1448a679d3cc6d6090ab219dd0a05f3 | 6482ba3e2e027a21339c7dd728704b6ee680f247 | /Correlation&Visualization.R | 30236cfea6c21cd34307fd480be3b59cbc3b8640 | [] | no_license | Qingoy05/USDA | 60a410fadff7fa60105187f4696239e9cbdbd37b | 62be21b98e9104afd7c9c8b1ccf78f020b1b1483 | refs/heads/master | 2022-12-12T18:26:21.781026 | 2020-09-06T09:46:14 | 2020-09-06T09:46:14 | 275,272,332 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 345 | r | Correlation&Visualization.R | #Calculate correlation coefficient
res <- cor(df)
round(res, 2)
#data output
m<-round(res, 2)
m<-as.data.frame(m)
write.table(m,"coefficent.csv",sep=",")
#visualization
library(corrplot)
corrplot(res, tl.cex = 0.7, type = "upper", order = "hclust", tl.col = "black", tl.srt = 45)
mtext("Correlation Matrix"... |
bf119cc5b1033ebd7465249cc52e2ac8e1ebf0df | c0bce42fcea5993c3d9976248c157f4a4433db0b | /figure_invitro_CD34/code/07_mutations_count.R | 497886c4378f4d1804d00ac89f05b253dedeb6c0 | [] | no_license | ChenPeizhan/mtscATACpaper_reproducibility | a01b22f43c6222a56e04e731d68de7440c3cfc76 | e543610bf29dbac1094994c54d3e7edd41609d5a | refs/heads/master | 2022-12-11T11:31:24.877462 | 2020-08-29T18:40:36 | 2020-08-29T18:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,994 | r | 07_mutations_count.R | library(dplyr)
library(SummarizedExperiment)
library(Matrix)
library(BuenColors)
c500 <- readRDS("../output/filtered_mitoSE_CD34-500.rds")
c500_1<- Matrix::colSums(assays(c500)[["allele_frequency"]] >= 0.01)
c500_5<- Matrix::colSums(assays(c500)[["allele_frequency"]] >= 0.05)
c500_10 <- Matrix::colSums(assays(c500)[["... |
75ecdf0e0166ab27ac907cc0ef990d2753e25a1d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/TSA/examples/cref.bond.Rd.R | 0eb92e7a458a306ca5473813c2242238847b6571 | [] | 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 | 183 | r | cref.bond.Rd.R | library(TSA)
### Name: cref.bond
### Title: Daily CREF Bond Values
### Aliases: cref.bond
### Keywords: datasets
### ** Examples
data(CREF)
## maybe str(CREF) ; plot(CREF) ...
|
0568f3414064a6438b2707d206540acb71d518b6 | e219b6709cd236e1607eca875fbbf67246f7b1b3 | /R/chipStatMatrixInverterNoise.R | 2d2edbd3ae327a7fb60d48f1f97a2203955fe64b | [] | no_license | lawrennd/chipdyno | d9d16cd124e7227bbe5f17986a21f2567658362b | 395390b85b4ecef533ff538789003cf98c033483 | refs/heads/master | 2020-12-25T18:17:43.480194 | 2015-05-25T19:54:14 | 2015-05-25T19:54:14 | 35,702,393 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,768 | r | chipStatMatrixInverterNoise.R | # CHIPSTATMATRIXINVERTERNOISE inverts block tridiagonal matrices for chipChip
# CHIPDYNO toolbox
# chipStatMatrixInverterNoise.R version 1.0.1
# FORMAT chipStatMatrixInverterNoise <- function(Sigma, gamma, beta, precs, x, npts)
# DESC inverts block tridiagonal matrices for chipChip
# ARG Sigma : prior covariance matrix... |
41b22b962c8095258e67ec0da69bd33cdd28a38e | 4eea2102c32e055a785dd2903e4bad1a4ad48994 | /00c-createSexInfo.R | b0f4a84ec37c1eb5e3cba45a641f75a2c8167735 | [] | no_license | mrparker909/PNCgwasWorkflow | e867efbf0c48c0b857c1ffa0fb104e4b21a9bbe9 | e5144a4796637594857fcc9ede3da451c1db62bc | refs/heads/master | 2020-07-04T21:20:00.111637 | 2019-10-07T18:08:12 | 2019-10-07T18:08:12 | 202,420,366 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 441 | r | 00c-createSexInfo.R | library(dplyr)
inp <- "/zfs3/scratch/saram_lab/PNC/data/phenotype/FID_IID_Neurodevelopmental_Genomics_Subject_Phenotypes.GRU-NPU.txt"
out <- "/zfs3/scratch/saram_lab/PNC/data/phenotype/subjectSexInfo.txt"
df <- read.csv(inp, header = TRUE, stringsAsFactors = FALSE, quote = "", sep = " ", skip=0)
df2 <- dplyr::select(... |
47c24694187acbe821a15c470b4180a64f8914e1 | 23d151378bdccd1a2ffc7bf89647d2150c125738 | /Practica2/Ejercicio3.R | 544023ff97f5772a53d4a8bc37ae198dd0b450ef | [] | no_license | JhordanSalvatierra/Estadistica-2017-II | a54296e126710049836762afa706c5522badc8fb | 66af4890e824c7ed595a0b1a88f8ae6604b30f83 | refs/heads/master | 2021-01-23T21:23:31.930824 | 2017-12-10T21:33:58 | 2017-12-10T21:33:58 | 102,897,774 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 685 | r | Ejercicio3.R | #Salvatierra Ramos Jhordan 20112152A
#Ejercicio 3
#Definimos la funcion nth con parametros x y n
nth<-function(x,n){
# Colocamos en un vector "y" las indices del vector x cuyos valores coinciden con TRUE
y<-which(x,TRUE)
# En el caso de que "y" tengo un numero de elementos mayor a n, retornamos y[n], el c... |
bd00e90ef44e39f49582176c17976a2d7bb1ddab | 5cfac25a4691dfd30bc6d5d6faf804c404e2ae13 | /Plot2.R | cf38d9de044f209f7c542fb53bc682b40301a390 | [] | no_license | marce25cl/Plots | 1266f93ba198c5f55c38ca57d3e3b5882e3fadd0 | e95c75ce089b233aa3d69c497162bb984cb7cd4f | refs/heads/master | 2020-12-24T21:28:12.280276 | 2016-04-16T00:56:54 | 2016-04-16T00:56:54 | 56,358,067 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 641 | r | Plot2.R | ## Plot2
##Reading the data and subseting the dates 2007-02-01 and 2007-02-02
datos = read.table("household_power_consumption.txt", header=TRUE,
sep=";", na.strings = "?")
filtrados <- datos[datos$Date %in% c("1/2/2007","2/2/2007") ,]
##Converting the Date and Time variables to Date/Time classes
fi... |
7bb3eeded18ffca8ab5fded250ea2031ee2b5bb8 | 1d80ea56e9759f87ef9819ed92a76526691a5c3b | /R/pooled.R | 0d4f5890677e1fc0f51e99f8783696ade81e36d2 | [] | no_license | cran/effectsize | 5ab4be6e6b9c7f56d74667e52162c2ca65976516 | e8baef181cc221dae96f60b638ed49d116384041 | refs/heads/master | 2023-08-16T21:23:58.750452 | 2023-08-09T18:40:02 | 2023-08-09T19:30:51 | 236,590,396 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,303 | r | pooled.R | #' Pooled Indices of (Co)Deviation
#'
#' The Pooled Standard Deviation is a weighted average of standard deviations
#' for two or more groups, *assumed to have equal variance*. It represents the
#' common deviation among the groups, around each of their respective means.
#'
#' @inheritParams cohens_d
#' @inherit... |
aa0da43c0138407468849170671a662374273d57 | 039de27358cf206fe9337ad9f05c55fa265a950e | /basal_script.R | 444a98698544360883a6328350ab6b8868882452 | [
"MIT"
] | permissive | guillermodeandajauregui/cdre-miR-BrCanSub | e395354b66e48d6617ec9460b9b80004c1198aea | 046d4a571ae3e7d31985b123cb8e42d5a50d70e9 | refs/heads/master | 2021-07-06T21:50:01.784281 | 2020-09-17T14:40:08 | 2020-09-17T14:40:08 | 180,678,357 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 839 | r | basal_script.R | ########
#testing
########
#libraries
source("libs/functions_mi.R")
#paths
path_mir <- "basal/basal_FPKM.tsv"
path_rna <- "basal/basal_mirna_rpmmm.tsv"
#read data
mir <- as.data.frame(readr::read_tsv(path_mir))
rna <- as.data.frame(readr::read_tsv(path_rna))
#discretizing
tempus <- proc.time()
d.mir <- par_dis... |
c310dffbc0de043662cf1f649babd8e57c5b1143 | 5c2374557193bd5a741aa36bf44532dc462003ae | /man/Span.Rd | cd252b5d4ac7b929653fee72df0145192426bf57 | [] | no_license | andrie/pandocfilters | fab302e760702ec437188bb0da23a4b92d08c255 | 2fa1f1ee40168c4ccb6ac5c294877b5cc8349c53 | refs/heads/master | 2021-09-14T11:06:43.009929 | 2018-02-23T20:00:03 | 2018-02-23T20:00:03 | 105,012,941 | 0 | 1 | null | 2017-09-27T12:02:42 | 2017-09-27T12:02:41 | null | UTF-8 | R | false | true | 965 | rd | Span.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inline_elements.R
\name{Span}
\alias{Span}
\title{Generic Inline Container with Attributes.}
\usage{
Span(attr, inline)
}
\arguments{
\item{attr}{an object of type \link{Attr}}
\item{inline}{a inline object or a list of inline objects which ... |
c333d9f40df1f5c3eba4e12c6f5cafd23e25ecdc | 29b5648126bc3fa4ba28e3691e6f8b62a9b63c51 | /man/BootAtlantaCorr.Rd | 583d6869129fea0a222e65ce5d43f55783f9696f | [] | no_license | statmanrobin/Lock5Data | 37fee8e729dc538757959354a503d612fd384892 | db7f829192fb61cbf7cbfb409245e70e51b196e6 | refs/heads/master | 2021-01-10T20:03:17.273933 | 2013-08-07T17:22:29 | 2013-08-07T17:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 718 | rd | BootAtlantaCorr.Rd | \name{BootAtlantaCorr}
\alias{BootAtlantaCorr}
\docType{data}
\title{
Bootstrap Correlations for Atlanta Commutes
}
\description{
Boostrap correlations between Time and Distance for 500 commuters in Atlanta
}
\usage{data(BootAtlantaCorr)}
\format{
A data frame with 1000 observations on the following variable.
\desc... |
de6291a2c753baf20167108fba50fa0219e569a2 | 3fefe890b546e1b9cbdc6daeed56f9ee121bbfd1 | /R/agenda.R | 91e904517b9f388e056b40c5a7ff72741ce7329f | [] | no_license | analytics-ufcg/rcongresso | 0cc0078aebbdd57047e1d21c93e56b60128d2fd0 | d34877d8f7e7ef4da1ad9053d5391f9be02c2828 | refs/heads/master | 2021-12-24T07:32:39.539758 | 2021-10-18T14:45:43 | 2021-10-18T14:45:43 | 100,041,012 | 53 | 12 | null | 2021-06-28T18:06:16 | 2017-08-11T14:37:06 | R | UTF-8 | R | false | false | 10,808 | r | agenda.R | #' @title Get the Senate's schedule
#' @description Return a list with 3 dataframes: schedule, bills and speakers. All the dfs contains a column named
#' codigo_sessao
#' @param initial_date inital date yyyy-mm-dd
#' @return list
#' @examples
#' \dontrun{
#' fetch_agenda_senado('2018-07-03')
#' }
#' @rdname fetch_agend... |
8fb2e4b09fd91133e0fcce773969269bc3f8b918 | f30dbbc23d2d5347b5053c2ac1cd58a9c6464f73 | /Finalisingmodels.R | edf9d3ac465b73030b412c6dfcda9665fb61cb32 | [] | no_license | FiSykes/Soaydata1 | 3e11feafb1a053fe65b39e12f14d2f870fd7b410 | 6f2fbe4496e4704703d2b8b56e87577f9b82ade7 | refs/heads/main | 2023-03-29T13:36:35.534935 | 2021-04-02T14:52:08 | 2021-04-02T14:52:08 | 348,644,701 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,627 | r | Finalisingmodels.R |
# Adonis test
library(vegan)
### test out adonis 2
library(devtools)
Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS"=TRUE)
install_github("pmartinezarbizu/pairwiseAdonis/pairwiseAdonis")
library(pairwiseAdonis)
adonis.test2 <- adonis2(bray_ps_nemadults ~ Season + Sex + Id,
by="margin", ... |
dddc1d61affa0ae5263159d378c19a83d64c9b57 | 0473ced366f12bb1050ee018f74da22f535f607e | /1c.Random Forest.R | 91e5e1ab31602114e5679fe7b601a7643534960a | [] | no_license | MadhuTanna/madhutanna | 9a8227233f56ff04b3f6ad356b358a451b48b412 | b405cc3fd3a532fac9d74a9b573fcdb9abcc9e87 | refs/heads/master | 2020-03-22T17:20:34.320618 | 2019-05-16T18:52:49 | 2019-05-16T18:52:49 | 140,389,613 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,634 | r | 1c.Random Forest.R | library(dplyr)
library(glmnet)
library(caret)
#setwd("C:/Users/mtanna108360/Downloads/Downloads/Data Science/Proschool/Term 3 Recordings/Project")
setwd("C:/Users/MADHU/Downloads/Data Science/Term 3 Project")
custdata=read.csv("term3.csv")
head(custdata)
glimpse(custdata) ## like str
summary(custdata)
cu... |
cd958de0f42f0b5033610fce91d697e4b55f250a | d2eda24acceb35dc11263d2fa47421c812c8f9f6 | /create_data/make.eez.data.R | aba252e825e6811cdca5eeba1b873b411ea3bb84 | [] | no_license | tbrycekelly/TheSource | 3ddfb6d5df7eef119a6333a6a02dcddad6fb51f0 | 461d97f6a259b18a29b62d9f7bce99eed5c175b5 | refs/heads/master | 2023-08-24T05:05:11.773442 | 2023-08-12T20:23:51 | 2023-08-12T20:23:51 | 209,631,718 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,185 | r | make.eez.data.R | library(rgdal)
eez = readOGR('inst/extdata/eez_boundaries_v11.shp')
eez@data$SOVEREIGN1[is.na(eez@data$SOVEREIGN1)] = 'Other'
eez@data$SOVEREIGN2[is.na(eez@data$SOVEREIGN2)] = 'Other'
highseas = readOGR('inst/extdata/High_Seas_v1.shp')
eez.data = list()
for (name in unique(c(eez@data$SOVEREIGN1, eez@data$SOVEREIGN2))... |
5e4e5fbcbdfd73e5691b126391ccf7cfba1d501b | 5cdfa6f09b7b1722d3b9610591d80edd79a0e999 | /R/survival-tidiers.R | 54b00d779eaae7e0ed1deb48f8ac8464ab871183 | [] | no_license | AndreMikulec/broom | 2cf2527007682652526ba766f8352d82a5a80dac | d13b86da72c77f93ac0bf8dcda5a0f6531555455 | refs/heads/master | 2021-01-14T08:59:25.563995 | 2014-09-24T17:37:04 | 2014-09-24T17:38:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,928 | r | survival-tidiers.R | # # tidying functions for the survival package
# # http://cran.r-project.org/web/packages/survival/index.html
#
# afit <- aareg(Surv(time, status) ~ age + sex + ph.ecog, data=lung,
# dfbeta=TRUE)
# summary(afit)
#
# tidy.aareg <- function(x, ...) {
# nn <- c("estimate", "statistic", "stderror", "rob... |
633a0446ab89c82ad972f5bc0f452b2824b83747 | 3a73255a30f04b4e7eb7f31f698fbd771ebecd6b | /tests/testthat/test-h5.R | d845331c28342a69f52e320f4da4cac33840b5cf | [
"MIT"
] | permissive | dynverse/dynutils | 799786859c52128bb6140a063c05fa2ace563e67 | f26939ec83ebe148bde519472ed353d8fdec76a8 | refs/heads/master | 2022-10-19T22:52:17.697595 | 2022-10-06T06:49:12 | 2022-10-06T06:49:12 | 101,953,647 | 1 | 3 | NOASSERTION | 2022-09-23T02:51:00 | 2017-08-31T03:11:04 | R | UTF-8 | R | false | false | 1,313 | r | test-h5.R | context("Testing write_h5 and read_h5")
if (require("hdf5r")) {
obj <- get_h5_test_data()
test_that("write_h5 and read_h5 works", {
file <- tempfile()
on.exit(file.remove(file))
write_h5(obj, file)
obj2 <- read_h5(file)
testthat::expect_equivalent(obj2, obj)
})
test_that("test_h5_insta... |
51ab122460a191a74ed919449707c8b04d5e6ac8 | f153381432a864aa0f1cf789d27aa2e0aba00614 | /man/make_sampling_table.Rd | 47f4728c5d46ea326bce265d92c9770fe58a9491 | [] | no_license | rdrr1990/keras | 0f997cf8632f6db623afcdb376ea8c258923e094 | 72b510456f15f5570388d0e610aa4917f1f1674b | refs/heads/master | 2021-05-06T06:42:08.086819 | 2017-12-30T00:11:11 | 2017-12-30T00:11:11 | 113,892,962 | 2 | 0 | null | 2017-12-11T18:19:25 | 2017-12-11T18:19:24 | null | UTF-8 | R | false | true | 1,381 | rd | make_sampling_table.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{make_sampling_table}
\alias{make_sampling_table}
\title{Generates a word rank-based probabilistic sampling table.}
\usage{
make_sampling_table(size, sampling_factor = 1e-05)
}
\arguments{
\item{size}{int, number of possi... |
5bfee103af1d96bd9fc61f9b2be3172a2ce92558 | cf606e7a3f06c0666e0ca38e32247fef9f090778 | /test/integration/example-models/ARM/Ch.21/21.6_SummarizingtheAmmountofPartialPooling.R | 7e4f471a5c55107c75579e3818854df7b6415573 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | nhuurre/stanc3 | 32599a71d5f82c759fd6768b8b699fb5f2b2d072 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | refs/heads/master | 2023-07-05T02:27:08.083259 | 2020-11-12T15:37:42 | 2020-11-12T15:37:42 | 222,684,189 | 0 | 0 | BSD-3-Clause | 2019-11-19T11:50:39 | 2019-11-19T11:50:38 | null | UTF-8 | R | false | false | 2,372 | r | 21.6_SummarizingtheAmmountofPartialPooling.R | library(rstan)
library(ggplot2)
## Read the data
# Data are at http://www.stat.columbia.edu/~gelman/arm/examples/radon
# The R codes & data files should be saved in the same directory for
# the source command to work
srrs2 <- read.table ("srrs2.dat", header=T, sep=",")
mn <- srrs2$state=="MN"
radon <- srrs2$activity[... |
f832b8bbfe4c67ad897c2ab15c1d969ca8cfb6cf | 3a94d8d3d791b06252406a4c50fa2183627fc41d | /Microarray_Roopali.R | 527f3b411ef02f003fb049c2b6bacf01e02ad33e | [] | no_license | Roopali87/Microarray-analysis | 95148baf2ae1e4d3d2ceea42d333cb0da2061d25 | 1600b2f1913baf571bca1f16f7de339669b7bfa5 | refs/heads/main | 2023-01-22T11:30:29.176166 | 2020-12-05T03:03:15 | 2020-12-05T03:03:15 | 318,688,698 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,057 | r | Microarray_Roopali.R | if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
#Package for human ref and annotation
#BiocManager::install("pd.hugene.1.0.st.v1")
#library("pd.hugene.1.0.st.v1")
#BioacManager::install("hugene10stv1cdf")
#library("hugene10stv1cdf")
#######################################... |
4996901831c712a80d8a8e2aac86f3a9becf201e | e4af769514afb803dba67125a4394befa7312a46 | /scripts/rprop2.R | 8be750a56f0fe5197737f6700627d623e0dd57bf | [] | no_license | juliusgoth/fstrain | 6e8c46a547f2cf45c6a55fd2c537a5f9a5ec034b | 6d0340e12c6cdcf31676052d4e4d20f7937454df | refs/heads/master | 2021-05-27T04:53:01.899410 | 2013-05-30T17:59:26 | 2013-05-30T18:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,294 | r | rprop2.R | #!/usr/bin/rscript
rprop <- function(params, func, grad, makeConverge, abstol=1e-3) {
maxiter <- 100
updates <- rep(0.5, length(params))
prevGradients <- rep(0.0, length(params))
prevGradientsMean <- 0.0
eta.minus <- 0.5
eta.plus <- 1.2
updateMin <- 1e-6
updateMax <- 50
funval <- Inf
for(iter in 1:... |
aa5bab96c0276e910aac6436013b435c27637bb2 | 13c6306ae730acf0d3a204edff967976933262c0 | /man/rollback-RangoPostgresConnection-method.Rd | f929e035eaa47175d18185f777158ec35c2019f8 | [] | no_license | AndreMikulec/Rango | f3b3ae51e5187594a4ee74654056b8a1b874fc45 | 326f43d6a46cad569e01f53d7503a03835c4d570 | refs/heads/master | 2021-01-21T06:09:58.321170 | 2018-10-04T00:42:13 | 2018-10-04T00:42:13 | 47,441,839 | 0 | 0 | null | 2015-12-05T04:12:15 | 2015-12-05T04:12:15 | null | UTF-8 | R | false | true | 416 | rd | rollback-RangoPostgresConnection-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postgres.R
\docType{methods}
\name{rollback,RangoPostgresConnection-method}
\alias{rollback,RangoPostgresConnection-method}
\title{Roll back the changes in the current transaction}
\usage{
\S4method{rollback}{RangoPostgresConnection}(object)
... |
e236a3794a8ff10b611caad55df0ab52b1acfc78 | 799e44f7c7600b2f0a6023be2a3342212e68c3ad | /R/make.ix.mat.R | f05a00f04401819686a08875334c72fa47f38227 | [] | no_license | cran/MLDS | 4cf92e7f4fd2d24ab48c8f40a53315e201d9ea0b | 6ad8eb2921c22d5c57faea74a134ce810306acdd | refs/heads/master | 2022-02-17T05:52:25.157134 | 2022-02-04T10:40:02 | 2022-02-04T10:40:02 | 17,691,875 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 486 | r | make.ix.mat.R | `make.ix.mat` <-
function(data, xi = NULL, ...) {
# data, basic data.frame from diff scale experiment
# xi, in case some values not included as from 6pt ana.
if ( missing(xi) ) xi <- max(data)
nr <- nrow(data)
wts <- rep(c(1, -1, -1, 1), each = nr)
ix.mat <- matrix(0, ncol = xi, nrow = nr)
ix.mat[matrix(c(rep(1:n... |
81237eeded615a2b0511071bae597c3d877af9df | 8a32ea28dc84c6423221dc0d3d2d44dc38d05cfa | /R/readFragpipeFile.R | 2fb10476df8f23d6bb49e4039a1b0ab27e64bdd3 | [] | no_license | cran/wrProteo | d5932a2f48d8e1ff0397691b0e8027ca360b9b7f | 348376e6931d279200da2cc1ed85f8c57ec516f4 | refs/heads/master | 2023-09-05T12:04:30.055590 | 2023-08-18T10:10:02 | 2023-08-18T11:31:04 | 236,959,541 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,258 | r | readFragpipeFile.R | #' Read Tabulated Files Exported by FragPipe At Protein Level
#'
#' This function allows importing protein identification and quantification results from \href{https://fragpipe.nesvilab.org/}{Fragpipe}
#' which were previously exported as tabulated text (tsv). Quantification data and other relevant information will be ... |
10354402a5e3cd0f731014c58d6fd0f839ef8dcd | b945a76daddff0988dccaf4dcf4af8c296c296d7 | /plot4.R | ba5c963cd22f1fd08ca1cd923ab570513f514abc | [] | no_license | pooimun/coursera-01_exploratory_data_analysis_course_project_1 | f5cc0e21a81eedbd16d61565b33bccbbd8b01912 | d18742628e777dc0990853adc27a2d21ddd202ce | refs/heads/master | 2020-05-20T10:08:15.058561 | 2019-05-08T03:22:09 | 2019-05-08T03:22:09 | 185,519,181 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,252 | r | plot4.R | #Read data
data <- read.csv('household_power_consumption.txt', header = TRUE, sep=';',stringsAsFactors = FALSE,dec = '.')
data2 <- subset(data,data$Date == '1/2/2007'|data$Date == '2/2/2007')
data3 <- subset(data2,data2$Voltage !='?')
#Plot 4
global_active_power <- as.numeric(data3$Global_active_power)
global_reactive... |
0cacb04d6e007486d0f8e0e66bcb027e24780bae | e0e2c3f01cb102e65ec8f704206e74616f757633 | /04-ExploratoryDataAnalysis/Project_2/plot3.R | b6d55bbd56e6b3ad584498cd5db4d81523a58aca | [] | no_license | MoonJeounghoon/Data-Science-Specialization | 50a8ca52898e062041d51d331a0661fc8694a413 | 89a528d856c63e6606ba9ac4c70136ceb9f1f6cc | refs/heads/master | 2021-04-29T02:11:45.113985 | 2015-01-26T12:21:44 | 2015-01-26T12:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 596 | r | plot3.R | library(ggplot2)
## load two data file
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## subset data by choose the fips == 24510
NEI_Baltimore <- NEI[which(NEI$fips == 24510), ]
NEI_final <- aggregate(NEI_Baltimore["Emissions"], list(type = NEI_Baltimore$type, year = NEI_Baltim... |
92d011dae4117c49bbf114ef853178287a067dda | 84c3e18e0e28d7494d2a3aa34cf2b62376368157 | /man/geom_abline.rd | 512e6334a36058a8a2930394c10db48257b74f8a | [] | no_license | genome-vendor/r-cran-ggplot2 | 01859b20e506b1b4e282b3d321afd92fb5628a86 | 6430a6765bc27a9d68a4c2e70530f1cd4718aebc | refs/heads/master | 2021-01-01T20:05:23.558551 | 2012-07-17T19:48:36 | 2012-07-17T19:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,041 | rd | geom_abline.rd | \name{geom_abline}
\alias{geom_abline}
\alias{GeomAbline}
\title{geom\_abline}
\description{Line, specified by slope and intercept}
\details{
The abline geom adds a line with specified slope and intercept to the plot.
With its siblings geom\_hline and geom\_vline, it's useful for annotating plots. You can supply the ... |
a1dc87609081f1b103abf7d9528a1e8dcac571be | 4913c9ca1d164582f935048c3d425e733539d3ce | /plotDepthVsN.R | cf68e1728b639353fd3b3514ad4ae8189d4b4f89 | [] | no_license | kant/pydt | a59960de4ce18121ed781cb9b7a1a26be498c059 | 8772c230134f015874beb288919e13b2cb3e0c1f | refs/heads/master | 2020-09-10T00:24:30.613581 | 2014-01-29T10:07:07 | 2014-01-29T10:07:07 | 221,604,689 | 0 | 0 | null | 2019-11-14T03:35:37 | 2019-11-14T03:35:36 | null | UTF-8 | R | false | false | 828 | r | plotDepthVsN.R | rm(list = ls(all = TRUE))
fn="depth_vs_n.txt"
system(paste("rm",fn))
# theta alpha c
theta=0.0
alpha=0.5
c=1.0
system(paste("./func_of_n.bin",theta,alpha,c,">>",fn))
a=read.table(fn)
#a=a[100:nrow(a),]
attach(a)
plot(V1,V2,"b",xlab="n",ylab="mean depth",main=paste("100 repeats, theta=",theta,", alpha=",alpha,", c=",c,s... |
35a68b0ae74cdd05869a26d53f465d012078c662 | ec5db8e0e525c5198b59a14ac0c7ac00864fde28 | /scripts/R-scripts/ggplot_bar.r | 6a5ba9249f81f078dc95f227389d52836010bbb4 | [] | no_license | ChromatinCardiff/DanielPassProcessingPipelines | bdc1a02f6ec0fb99387db85574cdeefe7c247525 | c3b02255a69f81c888f5cba14fb1b031ce99dc2e | refs/heads/master | 2021-06-02T15:13:18.958935 | 2020-01-29T01:07:27 | 2020-01-29T01:07:27 | 32,514,237 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 378 | r | ggplot_bar.r | library(ggplot2)
library(scales)
library(reshape2)
x <- read.table("Dropbox/Work/Manuscripts/Worm/Voxel/Data/L1raw.csv", header=TRUE, sep=",", check.names=FALSE)
x
x.melt <- melt(x, id=c("ID"))
head(x.melt)
p <- ggplot(x.melt, aes(x=ID, y = value))
p +
geom_bar(stat = 'identity') +
scale_x_continuous(breaks=seq... |
cdeeec5cb5422fea83f9ea5419fc8a9bb4560bf9 | 0967f001a1b725978d8708778ca491b535bbb549 | /R/tree_traversal_util.R | 38362208f539b1170d119aa1a0c059780ef7244f | [] | no_license | cran/climbeR | 60a458e1c01ade4c272608d2b812d0bdbd98b9bb | 21cfce2fd96981898e4de2d70def6d26e03ee869 | refs/heads/master | 2020-07-03T03:19:02.709090 | 2016-11-19T09:13:21 | 2016-11-19T09:13:21 | 74,199,250 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,476 | r | tree_traversal_util.R | #' Recursive Depth Binning
#'
#' Function to recursively traverse depths of a tree.
#'
#' @param node_list Must be in the format of elements in the Ranger package's
#' forest$split.varIDs, which represents one tree in the forest.
#' Recursion is done by counting the number of terminal nodes at the current
#' depth to a... |
0de9db59b0761923d7a4517778f392abf2ee232b | 2347dce12c59970ebb46578c85a17ffdf031733b | /data_processing/covariates/covariates_data_final.R | 593880ffbe061f46029c3bcdb285642a84bc6c1f | [] | no_license | eleonore-schneeg/tds_7 | d9a3b0e5cad762725c31ce28aeb80daee8610395 | c49b57f6b01d52b337337b92912039de9db1aab1 | refs/heads/main | 2023-03-27T18:10:07.130142 | 2021-03-24T10:50:11 | 2021-03-24T10:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,290 | r | covariates_data_final.R | data <- data.frame(fread("ukb26390.csv"))
mycoding <- data.frame(fread("Codings_Showcase.csv"))
withdrawn=as.character(read.csv("w19266_20200204.csv")[,1])
data <-filter(data,!(eid %in% withdrawn)) # 502506 observations
# add all names of columns that we want to extract
columns_names_to_extract=unname(unlist(read.tabl... |
ae470d87b6eb9b7a69fc901f102d4cec657b0900 | 2d106850736d5d003e3ba0aa2d0b7142ddecf697 | /man/stacked_bar_with_right_labels.Rd | 9305b2aa889b000c7c2aa4d3af05b8cf6c249d00 | [] | no_license | HughParsonage/grattanCharts | cd7bc4c154a9200a45bb1e259adfe0286b417a37 | 5fd242ae4c35d7762c16aabfa2d1632ac413a9b2 | refs/heads/master | 2021-01-11T06:59:37.823484 | 2019-02-21T03:21:12 | 2019-02-21T03:21:12 | 72,337,562 | 1 | 2 | null | 2018-07-28T11:37:08 | 2016-10-30T08:21:52 | R | UTF-8 | R | false | true | 2,842 | rd | stacked_bar_with_right_labels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stacked_with_right_labels.R
\name{stacked_bar_with_right_labels}
\alias{stacked_bar_with_right_labels}
\title{Stacked charts with labels at right}
\usage{
stacked_bar_with_right_labels(.data, geom = "bar", barwidth,
verbose = FALSE, right_m... |
bc30638c906a620c15f15f53497e0350ad2b7ef4 | 93f8e4312d4de70c0fe8012d0cf3e0f56451982d | /ques_carbon.rsx | 73d865bdccfec2a2e86cbaf899bc3ba1af81fe07 | [] | no_license | alfanugraha/lumens_scripts | c312ce23e690c3e561c34443071befa5f0269649 | dba6a7ad48bc21aaeb9f021f4cc354d72b144840 | refs/heads/master | 2023-07-27T19:16:14.244002 | 2019-07-16T10:44:01 | 2019-07-16T10:44:01 | 103,492,658 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 52,594 | rsx | ques_carbon.rsx | ##QUES-PostgreSQL=group
##proj.file=string
##landuse_1=string
##landuse_2=string
##planning_unit=string
##lookup_c=string
##raster.nodata=number 0
#include_peat=selection Yes;No
#peatmap=string
#lookup_c_peat=string
##resultoutput=output table
##statusoutput=output table
#=Load library
library(tiff)
library(foreign)
l... |
6ca8191746e0936ecfc9cb326298d69f18d6a5d7 | e68e99f52f3869c60d6488f0492905af4165aa64 | /tests/testthat/test-nn-rnn.R | 2309a5e0ef82fbddc7e27164eff99f7832ef5939 | [
"MIT"
] | permissive | mlverse/torch | a6a47e1defe44b9c041bc66504125ad6ee9c6db3 | f957d601c0295d31df96f8be7732b95917371acd | refs/heads/main | 2023-09-01T00:06:13.550381 | 2023-08-30T17:44:46 | 2023-08-30T17:44:46 | 232,347,878 | 448 | 86 | NOASSERTION | 2023-09-11T15:22:22 | 2020-01-07T14:56:32 | C++ | UTF-8 | R | false | false | 8,368 | r | test-nn-rnn.R | context("nn-rnn")
test_that("rnn nonlinearity", {
rnn <- nn_rnn(1, 10)
expect_equal(rnn$nonlinearity, "tanh")
rnn <- nn_rnn(1, 10, nonlinearity = "relu")
expect_equal(rnn$nonlinearity, "relu")
expect_error(
rnn <- nn_rnn(1, 10, nonlinearity = "garbage"),
class = "value_error"
)
})
test_that("rnn... |
337f8e47a056f324f18ef6bac2a69fceb8b4a2da | 4a6647ad7e52a85c9dc5de06613a8f4e3c9696da | /man/get_song_meta.Rd | 4490c7eb3885504aab7dc8c72cf0fefcdfdb5b58 | [] | no_license | MicahJackson/geniusr | 23f0ac16d2d8b8c8148b016f0537922df2c20588 | a1cf5c904c2592f5082d73071923d1f6d787efc9 | refs/heads/master | 2020-03-17T12:03:05.155078 | 2018-09-20T18:07:38 | 2018-09-20T18:07:38 | 131,529,681 | 0 | 0 | null | 2018-04-29T20:59:20 | 2018-04-29T20:59:20 | null | UTF-8 | R | false | true | 556 | rd | get_song_meta.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meta.R
\name{get_song_meta}
\alias{get_song_meta}
\title{Retrieve meta data for a song}
\usage{
get_song_meta(song_id, access_token = genius_token())
}
\arguments{
\item{song_id}{A song ID (\code{song_id} returned in \code{\link{search_song}}... |
f68452f57fdfe2d11278ed700eb87f8fd47abfe9 | 8d418db208008a6693168f7d4ee47d2587e6a197 | /cachematrix.R | 4936b74516babe69a86e44410dc38ad64dd4c31a | [] | no_license | Pbailon/ProgrammingAssignment2 | 1c993856bad6f57cab1648af14c03a633a5ac3f9 | 49274e8ec29075851bcbedb328d7c25f7edeab07 | refs/heads/master | 2020-04-05T23:33:58.537632 | 2015-03-22T01:42:24 | 2015-03-22T01:42:24 | 32,656,148 | 0 | 0 | null | 2015-03-22T00:45:29 | 2015-03-22T00:45:28 | null | UTF-8 | R | false | false | 1,297 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## We create a function which defines a list containing a function
## to set the value of the vector, get the value of the vector,
## set the value of the inverse and get the value of the inverse.
## We suppose that the matrix we rece... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.