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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8ecbe44d50adb414cc346d62aefd9e84e6211a8 | 0e036047a0cf79be1818f2dc901d5ffc5dc2acfb | /01_data_structures.R | 41d8c432447417513662be9cbcd4d95ecd9debac | [] | no_license | MacaryMoon/IntroToR | 6f0d47d29b53d4b765a202cff62f80cb19efbcaa | a1796f854b51cb279ca3b29c18f3e15d35c16515 | refs/heads/master | 2021-05-05T20:07:27.817020 | 2018-01-24T16:07:12 | 2018-01-24T16:07:12 | 117,838,406 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,026 | r | 01_data_structures.R | # Author: Macary
# Date: 10 January 2018
#Purpose: Script to create and analyse data frames
#Read the data file from disk
cats <- read.csv(file="data/feline-data.csv")
cats
#address a particular column with $
cats$weight
cats$coat
#add 2kg to each weight
cats$weight+2
#data types
typeof (cats$weight)
typeof (cats$... |
6a3487baa3067ce204db624647b9ca5b5f93cad3 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610051713-test.R | d12d23463136510c62bd6edd35fac84a39c94537 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,671 | r | 1610051713-test.R | testlist <- list(rates = c(-2.9718420926367e-147, 7.52609340439459e-304, NaN, -9.77818300079457e-150, -9.77579636327222e-150, -2.23083509972902e-289, 1.67616711008101e-319, 0, 0, 9.72926582174422e-309, 2.84809453888922e-306, 2.84347436052587e-312, 2.47222686857108e-94, 3.5601616320854e-306, 8.90029544463878e-306, 0... |
674001d3a92206f574e694f7b8c3601a431cdef1 | 5714088f3dd29cf046a5927ae9ae5330a0a3b4d7 | /server.R | fb5e99c91aebf1616eb7b61faedf920078a07599 | [] | no_license | vcueva/shinyappProject | 232a557ff7219be963d430f4e7043473885739ee | a1d9c26f232d2db988fef22c55052c06427cf8eb | refs/heads/master | 2021-01-10T02:10:41.053763 | 2016-02-26T04:19:23 | 2016-02-26T04:19:23 | 52,578,069 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 812 | r | server.R | library(UsingR)
shinyServer(
function(input, output) {
normalNumbers <- eventReactive(input$normal, {
rnorm(input$number, input$mu, input$sigma)
})
output$newHist <- renderPlot({
nNumbers <- normalNumbers()
hist(nNumbers, xlab='data', col='lightblue',main='Normal Data Histogram')... |
aa07bd2f89e21131653d1beb75056b361c003a8b | 95384806efc8ff3fe7d81766ee28674f126c1cd2 | /plot4.R | 7e279e2163b04b6bf365e80d189b48f6241f7934 | [] | no_license | natthawute/ExData_Plotting1 | 1a19be8012fba9fe8d1a85652c1c94ee718267f2 | b9873db4bd9dd6f6423dcb8571d47c1edb87edf1 | refs/heads/master | 2021-07-23T22:27:40.630136 | 2017-11-03T16:58:45 | 2017-11-03T16:58:45 | 109,400,986 | 0 | 0 | null | 2017-11-03T13:50:28 | 2017-11-03T13:50:28 | null | UTF-8 | R | false | false | 1,315 | r | plot4.R | data <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?", colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"))
data$DateTime <- strptime(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S")
data$Date <- as.Date... |
8c10d04a4fc2e0b0a8e6429d6555905d855d86ce | 19e64db90cbe271e48fd5f592894e4ff7a30dc72 | /cachematrix.R | 0e2460cb1fba34aacc22def90fa0a840684e62f7 | [] | no_license | PCusan/ProgrammingAssignment2 | 351562f756793333e109fe08be3b50c9c2c59210 | 09e41acb07093d1feb4c667cee48119f5ddaed6b | refs/heads/master | 2020-12-26T02:40:35.346322 | 2015-07-26T19:42:54 | 2015-07-26T19:42:54 | 39,738,554 | 0 | 0 | null | 2015-07-26T19:21:52 | 2015-07-26T19:21:51 | null | UTF-8 | R | false | false | 1,178 | r | cachematrix.R | # makeCacheMatrix is a function that returns a list of functions
# Its purpose is to store a matrix and a cached value of the inverse of the
# matrix.
## Create a special "matrix", which is a list containing
## a function to
## - set the value of the matrix
## - get the value of the matrix
## - setinvmat the va... |
e62c336efa95d037ffd725c0b62446b1a0f897e4 | cb4b5e3ea5e2ab76c74d35cba0f20831d065e4bd | /04_build_LM.R | 49302ef9c15cafc6efd9b15d5612bd6810d9b047 | [] | no_license | silverbullet1472/AGBProj | f314ed3f226a30d43ae7fafa6188d041a05b3ffd | da30910b505efcb5f59e03b089a392cb7e74d880 | refs/heads/master | 2022-06-19T10:31:17.479262 | 2020-05-12T11:15:10 | 2020-05-12T11:15:10 | 255,493,198 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,979 | r | 04_build_LM.R | # select metrics(MASS)
# calculate model performance(ten-fold validation)
# build model and save as .Rdata
rm(list = ls())
library(MASS)
data <- read.csv(file="./merged_data.csv", head=T)
colnames(data)
# FID 1
# plot parameters 2:8
# agb 9
# dem 10:12
# s1 13:24
# p2 25:29
# l8 30:123 (vegetation index -> 116:123... |
66284ea5e7ab0a6691fd0b2f28dafce7b353adac | 902416fef5aab577b284418b4c8e425c3b554a86 | /Scripts/Pinaster3.R | 709303679af8cf6c0eee296e5398e2510133d0d0 | [] | no_license | aureliodiazherraiz/digital.agri | d574d74310fc5448685d20d603e5628e50a62299 | 796ee5121580ea58f04228347667b86dc584ce1c | refs/heads/main | 2023-03-29T15:04:54.571647 | 2021-03-30T14:11:34 | 2021-03-30T14:11:34 | 351,802,646 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,107 | r | Pinaster3.R | #### PINASTER ####
names(pinaster3)
cor_pinaster3<-round(cor(pinaster3[, -c(1:3,29:32,39:42)], use="complete.obs"),2) %>%
corrplot::corrplot(method = "shade", shade.col = NA, tl.col = "black", tl.srt = 55,
tl.cex = 0.5, number.cex = 0.5, addCoef.col = "black", type = "lower", diag = F,
... |
25278e47342be1d99714c99dcf90715aad6db228 | 4d453169619db0c29de65e355f2a49ece464b8fa | /4.eda/proj2.pm25/plot3.R | d73985e9ce872dd307d9085d428dbc835d185b28 | [] | no_license | gsstuart/datasciencecoursera | 1f11a81f5faf43ce2c350ad1074fb43cd2f99fb0 | ec169fb0982e4f4e0a71bff1dd4dc8d2a02452ad | refs/heads/master | 2020-05-02T14:48:33.386645 | 2017-05-19T20:46:53 | 2017-05-19T20:46:53 | 22,657,267 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,237 | r | plot3.R | # DIRECTIVE:
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable,
# which of these four sources have seen decreases in emissions from 1999–2008 for Baltimore City?
# Which have seen increases in emissions from 1999–2008? Use the ggplot2 plotting system to make a
# plot an... |
3cdb453d6a4270be340b4ac05953de25b0019d77 | 8a173889edb40e971c604584c53367b4032c77f2 | /ui.R | 36f69340b8dea4f9fcb72e46dfc6e4dda6b1a72b | [] | no_license | shrutimahajan123/IMDB-Data-Analysis | 5981e0e2e742beebbc11b6cc82dbf276e9b1fee9 | fbdc92223330bc5b5004e98ea1eb7082f2371f87 | refs/heads/main | 2023-06-11T10:47:22.590508 | 2021-06-25T05:02:22 | 2021-06-25T05:02:22 | 380,127,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,082 | r | ui.R | # Title: FIT5147 Visualisation Project
# Author: Shruti Sandeep Mahajan
# Student ID: 31235786
# Tutor: Mohit Gupta
## --------------------------------------
## Importing required libraries
## --------------------------------------
#install.packages("shiny")
library(shiny)
#install.packages("shinydashboard... |
3c26cb1b066741eb870ddfd10e99c021c56f125b | 3340f5d6a5d6edd892a418a7148de60a0766ac54 | /server.R | 1f1428ef9335b9f61b36100c9a93a6c016385e2e | [] | no_license | florbits/shinyFrailtypack | 1794ce0e3c40730f2d0add21a22816f897a95e2e | 9554a2e000eed15bc9527719094ac7ad3a9f1b1f | refs/heads/master | 2020-05-17T14:35:42.689936 | 2015-09-07T09:42:31 | 2015-09-07T09:42:31 | 42,043,762 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,620 | r | server.R | # server.R
shinyServer(
function(input, output,session) {
isFileLoaded<-reactive({
if (is.null(input$datafile))
return (FALSE)
})
isFileRDAfunc <- reactive({
tempValues$nameAsString<- basename(input$datafile$name)
tempValues$isRDA <-grepl(".rda",tempValues$nameAsSt... |
fc864be6aa982220ea53d75f7f5a800a3d6d8aaf | 3d921d2dd15f258c260a60a2575ebeb56c99fbcf | /man/usz_13c_a.Rd | 9dbada4c50a7aeb8eaa0cf0799fafa158291c543 | [] | no_license | cran/breathtestcore | a337fdb3c918edbda7700b314f5c6a41bfc61693 | e83afbca373e670b02448d008bcac89c7b50efa0 | refs/heads/master | 2023-02-19T01:58:33.820793 | 2023-02-13T13:00:07 | 2023-02-13T13:00:07 | 90,961,247 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 821 | rd | usz_13c_a.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/breathtestcore.R
\docType{data}
\name{usz_13c_a}
\alias{usz_13c_a}
\title{Exotic 13C breath test data}
\usage{
data(usz_13c_a)
}
\description{
13C time series PDR data from three different groups in a randomized
(= not-crossover) d... |
cc7868bc38810443b025dc0ec4a57643ae8963cd | 49e160077670a4ba49a15ecd6bcd570569690c36 | /man/get_metadata.Rd | cdfb612af2e4d7d406bed4ebb0b167753f46bd17 | [
"MIT"
] | permissive | ParizadB/cbmr | 9a04bc33b9880f77a1fb852b3d5073672ff3badf | dfea121a189d6f5a07852f9d60cf5f1a9ce22693 | refs/heads/main | 2023-03-26T21:11:45.729253 | 2021-03-17T14:23:10 | 2021-03-17T14:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 587 | rd | get_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Labguru_functions.R
\name{get_metadata}
\alias{get_metadata}
\title{Download metadata from Labguru}
\usage{
get_metadata(exp_id = NULL, exp_name = NULL)
}
\arguments{
\item{exp_id}{numeric experimental id, fastest way to get data}
\item{exp_... |
2509e4104602d921c212c49d5354fc78c045f88b | 6de313ba33ca7eeb89f94b15e83bbb15baef2960 | /man/calculate.tm.p.values.Rd | 66af3949f9d0abd826e90523371e3a0fd9597740 | [] | no_license | QuackenbushLab/MONSTER | 4f2c717102741d90fc9b3510a892c35398141ca1 | 5799b572cb3996bdcd320e0f6862dbe7e6fc112f | refs/heads/master | 2021-06-11T05:23:17.245826 | 2020-10-15T15:41:08 | 2020-10-15T15:41:08 | 68,241,149 | 3 | 2 | null | 2020-10-15T15:41:10 | 2016-09-14T20:34:32 | R | UTF-8 | R | false | true | 791 | rd | calculate.tm.p.values.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis_functions.R
\name{calculate.tm.p.values}
\alias{calculate.tm.p.values}
\title{Calculate p-values for a tranformation matrix}
\usage{
calculate.tm.p.values(monsterObj, method = "z-score")
}
\arguments{
\item{monsterObj}{monsterAnalysi... |
55e23ba6086e2d66aff97f752e003940ac113a3c | a8cdedefea85a4615a14cbe20323598300b5886c | /swirl/12 k-means clustering.R | 7a675fb2dc9a3bedbf59c9b5535db25bb4dd7b9d | [] | no_license | PawFran/exploratory-data-analysis | 5031184bfa8d9dbad84877cfc7c31b5e9074eb3f | 36a74f36320607d2ae8b2ae2c3d26642054bceac | refs/heads/master | 2020-06-13T08:55:29.853884 | 2016-12-02T21:11:42 | 2016-12-02T21:11:42 | 75,422,789 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,020 | r | 12 k-means clustering.R | cmat
# first step
points(cx, cy, col = c('red', 'orange', 'purple'), pch = 3, cex = 2, lwd = 2)
mdist(x, y, cx, cy)
apply(distTmp, 2, which.min)
points(x, y, pch = 19, cex = 2, col = cols1[newClust])
# second
tapply(x, newClust, mean)
tapply(y, newClust, mean)
points(newCx, newCy, col = cols1, pch = 8, cex... |
255e32ae7a0ab76b5d1462b1095c71b6326c5dd8 | 3ca23ecf1bdebbd51f27bab9cb1c65f553b8dafd | /estat-inf-parametros-normal.R | 6e85867c0e023e3aebc8949bc3d7a96c8098b08f | [] | no_license | arpanosso/dashboard | c99ce6045aa010c328e2941ee337c0470281ba9e | 3e9586c699bf4f77e98168ec656ff115c7169972 | refs/heads/master | 2023-06-05T01:08:39.992521 | 2021-06-21T19:02:25 | 2021-06-21T19:02:25 | 370,525,994 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,416 | r | estat-inf-parametros-normal.R | library(tidyverse)
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
header=dashboardHeader(
title = "Estatística-UNESP"
),
sidebar=dashboardSidebar(
sidebarMenu(
menuItem("Normal",tabName = "normal"),
menuItem("Binomial",tabName = "binomial"),
menuItem("Poisson", tabName = ... |
01ef81bf341474039dcc817e795ae5de8114bdaf | c24fa12b935ce3594723229c83968daba133012f | /Problem set 2/Project/.Rproj.user/F8D558E1/sources/per/t/160F13D7-contents | 929c9297f0ecc7f0cb490ab854745a64eda85537 | [] | no_license | mmahin/Data-Mining-Fall-20 | 8de523d2256b3016fddba043f994b5975ee9e3e9 | 1b433943108bb17740b2cd2b964adff5e2610a24 | refs/heads/main | 2023-02-05T10:55:18.223739 | 2020-12-25T20:58:09 | 2020-12-25T20:58:09 | 323,483,127 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,449 | 160F13D7-contents | library(spatstat)
#clear the environment
rm(list=ls())
#Import the data
mydata1 = read.csv("Zone_1.csv", header = TRUE)
mydata1$buildingType[mydata1$buildingType == "collective_house"] <- "collective_houses&garages"
mydata1$buildingType[mydata1$buildingType == "garage"] <- "collective_houses&garages"
mydata1$build... | |
31c5013ba29dfb91d803791bdc5a72439d87ee6f | 9b995e7e160c8cd794a0ae27e6784a14b5cabca8 | /tests/testthat.R | e871b9baf8feb2f40fcc1147ecec96fb10d41bee | [] | no_license | azradey/elliptical-package | 29acbac65101aa5716f2f4a8463205de69c886f6 | ad163129e2c88a2a8d193f5ed288928f6a8737fe | refs/heads/master | 2020-03-19T06:07:21.392176 | 2018-06-04T08:13:36 | 2018-06-04T08:13:36 | 135,992,187 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 64 | r | testthat.R | library(testthat)
library(Elliptical)
test_check("Elliptical")
|
fbbe49e05c64e18f3b568f2bac82d8a19f37d7a2 | 51bd763f0e55fdc51815b166c2e7098e8254e05a | /cachematrix.R | b2594cb6c332976a5d5d81b9c793d826195d0788 | [] | no_license | dingzonghui/ProgrammingAssignment2 | eda0c09f6d6e3226a2f505c4845f80508b0b8100 | a38c47f3d4c1252819922c83e0055913ea094da2 | refs/heads/master | 2021-01-18T08:06:16.301625 | 2015-08-22T19:41:33 | 2015-08-22T19:41:33 | 41,218,155 | 0 | 0 | null | 2015-08-22T17:43:23 | 2015-08-22T17:43:22 | null | UTF-8 | R | false | false | 1,865 | r | cachematrix.R | ## The following functions work together to create a square matrix
## and make the inverse of the matrix available in the cache
## makeCacheMatrix function creates a matrix object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
# store the cached value with initial NULL value
cac... |
136c6a7368c09bebc5d2487f1da50e3b6f08fca0 | 64d5df27325f07af9c602ddf85a81ff4f0aec189 | /man/ref_textbox-class.Rd | 450d503e98d41162771d747ab959a68101dd0c88 | [] | no_license | cran/stacomiR | 0641860bef2f4b5c05490d06de2c58fe3fe30059 | 981c67ba5d18ee9a5c357192e4ba4f9e864ec039 | refs/heads/master | 2022-07-22T14:11:55.680662 | 2022-07-18T08:20:02 | 2022-07-18T08:20:02 | 95,473,811 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 517 | rd | ref_textbox-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ref_textbox.R
\docType{class}
\name{ref_textbox-class}
\alias{ref_textbox-class}
\title{ref_textbox referencial class}
\description{
allows to a put a value within a glabel
}
\section{Slots}{
\describe{
\item{\code{title='charact... |
5592967998721aee42262eb726375cdcb6f91787 | 6fd0fb62fd2713eba430e95eb45b6beb0077aadb | /16 cycle.R | fc684797bff787b018b1820b8fc6d76f5f4c95b3 | [] | no_license | kshf59/Cycle-Accident | 360c04ed7474e70eb6477192adbca26a7b3ee945 | 74cf8cbd89027bd115efe65fa02c3f7ddee07f3f | refs/heads/master | 2021-05-02T12:00:26.378403 | 2018-02-15T08:50:46 | 2018-02-15T08:50:46 | 120,734,162 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 993 | r | 16 cycle.R | library(ggmap)
library(ggplot2)
library(dplyr)
library(readr)
X2016_cycle_accident <- read_csv("Cycle Accident/2016 cycle accident.csv")
X2016 <- arrange(X2016_cycle_accident, 스팟코드)
X2016[1:188,5] <- "서울특별시"
X2016 <- filter(X2016, 관할경찰서 == "서울특별시")
#1 서울 지도 가져오기
kor <- get_map("seoul", zoom=11, maptype='roadmap')
#2... |
1454f0de015e9d7d275c7b1a44840178b042c409 | bd6ecd74ff1a8d75f37a776fe68767b776e055b4 | /etc/unused_code/scripts/R/normal.r | 8dcb758190afd69676b21961793341c1c9aea691 | [] | no_license | Bilalh/Gen | 0f0eb8ed4d712dcff71b427537ad7e42fd260fb2 | 95e7a2f4588daca3aa66768688e9f77bbdcfb4d0 | refs/heads/master | 2022-01-14T07:16:38.288178 | 2016-09-21T16:10:31 | 2016-09-21T16:10:31 | 178,632,039 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 751 | r | normal.r | #!/usr/bin/env Rscript
library(MASS)
Sigma <- matrix(c(10,3,3,2),2,2)
Sigma <- matrix(rep(0,9),3,3)
Sigma <- matrix(c(1,0,0, 1,0,0, 1,0,0),3,3)
Sigma
r <- mvrnorm(n=5, c(100,40,20), Sigma)
n=10
p=.5
x=0:10
p=dbinom(x,size=n,prob=p)
plot(x,p,type="h",xlim=c(-1,11),ylim=c(0,0.5),lwd=2,col="blue",ylab="p")
points(x,p,... |
e3b1112ed1fadda14fe5424f854761383507a275 | 743cb55fca908b0dd5ae89c42cba048b5cc8669b | /activation-analyses/R/wgcna_prepdata.R | 8008c165c83ce6997f2feb21ac04f2c17273a194 | [
"CC-BY-4.0"
] | permissive | chr1swallace/cd4-pchic | 8309901bad59950dd93ba535984431873d10af3b | ccdb757c5c3760eb914b2cb3f0e9f06ef9e24af7 | refs/heads/master | 2021-03-27T12:36:31.582058 | 2017-08-09T11:08:24 | 2017-08-09T11:08:24 | 56,878,178 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,354 | r | wgcna_prepdata.R | library(WGCNA)
library(org.Hs.eg.db)
library(data.table)
x <- org.Hs.egENSEMBL
xx <- as.list(org.Hs.egENSEMBL2EG)
options(stringsAsFactors = FALSE);
enableWGCNAThreads(20)
setwd(file.path(CD4CHIC.ROOT,"activation-analyses/R"))
source("common.R")
## get rna-seq limma data @ 4hrs
base.dir<-'/home/oliver/STATS/PROJECTS... |
518b577069b58ba0afd4b24cc7b7d9f9e0255bb3 | 285541e8ae77482ac7eeb5b51ce06edeb96ef246 | /R/envelopes.r | 11af29ad86420a6939d6802c79832e27e6a4c739 | [] | no_license | myllym/GET | 2033c4f590da7cce114b588e7e39b243b543dcdf | 72988291d9c56b468c5dddfb5bc2c23f519b6dca | refs/heads/master | 2023-08-24T23:23:14.364346 | 2023-08-15T21:33:51 | 2023-08-15T21:33:51 | 68,914,145 | 12 | 5 | null | 2022-11-16T07:55:16 | 2016-09-22T11:20:34 | R | UTF-8 | R | false | false | 66,379 | r | envelopes.r | get_alternative <- function(global_envelope) {
attr(global_envelope, "alternative")
}
# It should be:
# small_significant=TRUE for 'rank', 'erl', 'cont' and 'area' -> ordering decreasing
# small_significant=FALSE for 'qdir', 'st', 'unscaled' -> ordering increasing (decreasing=FALSE)
critical <- function(distance, al... |
da59b6f7e9c032e62368365daa43da35c604bf60 | a59b0019cd455e5c8c59263d5248b388eb235257 | /man/model_concurvity.Rd | 56e4ecce309aefbea404e547c281e60a15a2304d | [
"MIT"
] | permissive | dill/gratia | 4df529f5e636a0139f5c355b52a2924bebf7aca4 | 26c3ece0e6a6298ab002b02019b0ea482d21dace | refs/heads/master | 2023-04-08T18:35:18.730888 | 2023-03-20T12:52:33 | 2023-03-20T12:52:33 | 160,169,115 | 0 | 0 | NOASSERTION | 2018-12-03T09:54:30 | 2018-12-03T09:54:30 | null | UTF-8 | R | false | true | 1,320 | rd | model_concurvity.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/concurvity.R
\name{model_concurvity}
\alias{model_concurvity}
\alias{model_concurvity.gam}
\alias{concrvity}
\title{Concurvity of an estimated GAM}
\usage{
model_concurvity(model, ...)
\method{model_concurvity}{gam}(
model,
terms = every... |
f949ee60b385d7fe065e7cdf50620dfa1f4601ca | e915e0575109709510caa64081fd8292e2dcc6cc | /Plot6.R | 68d8f94121555cb9bfa627db74611d391a3c887a | [] | no_license | ATidmore/ExData_CourseProject2 | 9c5f2a50ede72f63771b2edc599fd44969690f44 | ec2b80855ec80b3142a3d5e978c3b88d80e241df | refs/heads/master | 2020-12-24T14:01:20.527812 | 2015-06-18T03:00:24 | 2015-06-18T03:00:24 | 37,633,694 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 896 | r | Plot6.R | setwd("~/Training/CourseraDataScience/4Exploratory/Week3/exdata-data-NEI_data")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#To put the images in a better directory...
setwd("~/Training/CourseraDataScience/4Exploratory/Week3/")
library(ggplot2)
#Compare B City with LA (f... |
24eb53049eac149c517785e14bad8d75c32ee801 | 277dbb992966a549176e2b7f526715574b421440 | /R_training/MyCode/2주_Web Basic/day2/3. five.R | 3dbe0de723d863b4363bbba6be12819d4da729ae | [] | no_license | BaeYS-marketing/R | 58bc7f448d7486510218035a3e09d1dd562bca4b | 03b500cb428eded36d7c65bd8b2ee3437a7f5ef1 | refs/heads/master | 2020-12-11T04:30:28.034460 | 2020-01-17T08:47:38 | 2020-01-17T08:47:38 | 227,819,378 | 0 | 0 | null | 2019-12-13T12:06:33 | 2019-12-13T10:56:18 | C++ | UTF-8 | R | false | false | 1,967 | r | 3. five.R | naver.url <- "https://movie.naver.com/movie/point/af/list.nhn?page=1"
url<-read_html(naver.url)
#콘텐츠 추출 순서
'1. URL setting
2. read_html
3. html_node
4. html_text'
#
'1.크롤링하고자 하는 웹사이트의 문자열을 파악해야 한다(쿼리 문자열 포함)
주소창 확인
2. 웹페이지의 컨텐트가 어떤 문자셋으로 작성되었는지 파악
<meta>
3.추출하려는 컨텐츠를 포함하고 있는 태그를 찾는다
개발자도구의 기능을 활용한다
4.찾은태그의 CS... |
2182942207bc2e72998cc710adcf2d060b3fa967 | 3e7203c420d8eb75dbf4c011eb26eb88b23c7372 | /Principle_Component_Analysis.R | a3b91c04fe8e70b6c3b5fb6e2d3f839d09df7840 | [] | no_license | nimeshrajput5211/Unsupervised-Clustering-Technique | c322a84e5c51bd10a0bd56137eb049b110bdcee4 | 6ab6b113d464af8b85d12179c488d2c29d4f5663 | refs/heads/master | 2021-05-11T09:51:23.121113 | 2018-01-19T07:03:14 | 2018-01-19T07:03:14 | 118,089,498 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,622 | r | Principle_Component_Analysis.R | rm(list=ls(all=T))
setwd("C:\\Users\\NY 5211\\Downloads\\INSOFE\\Module_2\\10-09-2017\\Sridhar Pappu")
library(scales)
# Chemical analysis of Wine
# These data are the results of a chemical analysis of wines grown
# in the same region in Italy but derived from three different cultivars.
# The analysis determi... |
726738ee11270babdef89b2ee14a2d4eda874a87 | baa94d60dc360a14cc626d8bd4e43455b2f370ac | /Old Scripts/Create Condor Input.R | da8fe7e02cf5f44c3ec17cd14d7452f0a4475b35 | [] | no_license | tbish-pleccy/SaniAntsBetaDiv | 39b2a5d5e42036b236fb58c3191c45788c72e22f | edd90f6cf82735403ce013757995c849139aa65a | refs/heads/master | 2021-01-23T03:53:07.975498 | 2014-06-04T15:34:44 | 2014-06-04T15:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,135 | r | Create Condor Input.R | # Save Observed Communities
save.frame <- data.frame(rep(names(ch.comm.list), each = 1000), seq(1, 14000, 1))
names(save.frame) <- c("comm.name", "index")
head(save.frame)
observed.communities.location <-
"C:/Users/Tom Bishop/Documents/Research Projects/PhD/2 Second Paper/Paper 2 Restart September/Data/Observed Com... |
ae68e69e39df0b17cae2ccb610840954739ebb96 | 9b375cff041d4ccc76045b2787716f74d3147896 | /vignettes/mfe.R | 1013016576f67ba63212d3a5e7dfcaa1e192ed75 | [] | no_license | cmjt/eeda | 57ff7b8ba07af38158205cae43ea8e11af2d90c1 | 68bd086062f8e5e944efca1260d13f22a830ca65 | refs/heads/master | 2022-12-04T04:05:44.775347 | 2020-08-24T04:24:47 | 2020-08-24T04:24:47 | 258,033,008 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 561 | r | mfe.R | ## ---- libs
library(eeda)
## ---- quiet
key <- read.delim("keys.txt",header = FALSE)$V1
## ---- key
eeda_auth(key = key)
## ---- data
data(mfe_names)
head(mfe_names,10)
## search
idx <- grep("invert",mfe_names[,1])
mfe_names[idx,]
## ---- get
## as spdf
invert <- get_mfe_data(id = "52713")
## as sf
invert_... |
2abf2e021029a005efeaec6372252c37b303fac5 | 6ea363f2fa9200669aabf0b1814b8ce9f87809b2 | /WorkSpace/R Programming/R-Looping/RepeatFor.R | c3a04323f77d4487bdf4fb85b9fc514b22726992 | [] | no_license | chinna510/Projects | e1d81aa14f929337a80747924e224a6335f622c6 | bb84e5d2a59915286444edb59c92e7196ec3869b | refs/heads/master | 2021-08-23T08:12:28.324784 | 2017-12-04T06:34:16 | 2017-12-04T06:34:16 | 112,998,864 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 129 | r | RepeatFor.R | x <- c(1,2,3,4,5,2,34,5)
count=1
repeat{
print(count)
count=count+1
if(count >500){
print(count)
break
}
}
|
3173ae7ed62b8d0cc7108535c119710a948bd215 | 2e37595eab50d34c0f6c4016ff547c1547c42e6b | /PQL_Lancet81.R | 61e6b198a0b928c58daa1fdd7f8d35e76ec89472 | [] | no_license | joshua-nugent/PQL_Quad | 1bce26a37cf9677a3454d81e94f0961142762597 | ef29890eeed3a3867e428446e834cf6332cb35f8 | refs/heads/master | 2022-04-27T20:45:01.386317 | 2022-03-31T20:25:31 | 2022-03-31T20:25:31 | 149,775,077 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,313 | r | PQL_Lancet81.R | library(lme4)
library(MASS)
library(tidyverse)
library(parallel)
RNGkind("L'Ecuyer-CMRG")
set.seed(42)
replication_index <- 0
#sas_check <- check_estimates(n, p, b_0, b_1, sigbsq)
#sas_csv <- read.csv("data_for_sas_2.csv")
#y <- sas_csv$y
#x1 <- sas_csv$x1
#id <- sas_csv$id
#glmmresPQL <- glmmPQL(y ~ x1, random = ~ 1... |
def1b082a8ff3cc58e522649150f5bfa15e5ab99 | b965ad876fa4ef938064ec49446a427601496c1a | /man/m_to_in.Rd | f6e00e01098fb91fe1aecec88155cb99d741fccf | [
"MIT"
] | permissive | indenkun/yd2m | a880ac26e3c56e921b0a9eac2a75fdbb9fbaca0e | b7f5f76cd931b72cbe893953b45ea16c66bdaeea | refs/heads/master | 2023-01-02T15:39:29.014940 | 2020-10-27T14:50:55 | 2020-10-27T14:50:55 | 278,355,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 417 | rd | m_to_in.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/length.R
\name{m_to_in}
\alias{m_to_in}
\title{Converts the input value from meters to inches}
\usage{
m_to_in(x)
}
\arguments{
\item{x}{The value of the length of the meters unit system}
}
\value{
The value of the length of the inches unit s... |
b9da92143505e53aa885b9509ea9941ab5b8beb4 | 90a1de2d8df6013c8475e88220b28acfe747eade | /STAT452_Statistical_Learning/452Lecture_Rcode/L04_RegExtension/L4 - Extensions of variables.R | 8c07e4d6e348f142593366c9316c3fc5ea19197c | [] | no_license | yiyangd/SFU | 4a5d39016c8b0978cc6c437232f65ea4f3690151 | 399800b48a929031b689e40d72f7d51fb95b0e93 | refs/heads/master | 2023-07-06T07:48:20.712383 | 2021-08-07T02:58:20 | 2021-08-07T02:58:20 | 166,151,796 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,193 | r | L4 - Extensions of variables.R | #############################################################
# Demonstrating various different forms of explanatory variables.
# 1. Categorical/Factor variables
# 2. Transformations
# 3. Interactions and other functions
#
#############################################################
####################... |
e239177cd622b495e1ed437e685d7c5ee34efa51 | acf7af720e1acb217bd4da13e1007ee94db0bfab | /scripts/CRobCor.R | fe1d707712ff665baeb8f784bea504bd6f6e1a27 | [] | no_license | venkoyoung/Network | 4184d2ec8f12fa8536b9b2fa2ba2ac0e5a2863eb | 6952d0aec7094a1539c4f7d77cef406ec4dbf09a | refs/heads/master | 2020-05-15T02:22:23.743714 | 2019-03-29T11:34:44 | 2019-03-29T11:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,748 | r | CRobCor.R | CRobCor <- function (M,ct=0.5) {
#rows: eventos
#columns: factores
Mcov<-cov((M),use="all.obs")
#evalua con Pearson
Mcor<-cov2cor(Mcov)
#Scaling a covariance matrix into a correlation one can be achieved in many ways,
#mathematically most appealing by multiplication with a diagonal matrix from left and right,
#or more... |
a32f2f0759c259da17a8dcf1fea8ffa22a917c4f | 37794cfdab196879e67c3826bae27d44dc86d7f7 | /Math/Poly.System.Asymmetric.S3.R | 23639056cc13c420cb5bcaed7feafb0db029cd14 | [] | no_license | discoleo/R | 0bbd53a54af392ef53a6e24af85cec4f21133d17 | e9db8008fb66fb4e6e17ff6f301babde0b2fc1ff | refs/heads/master | 2023-09-05T00:43:32.381031 | 2023-08-31T23:03:27 | 2023-08-31T23:03:27 | 213,750,865 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 28,356 | r | Poly.System.Asymmetric.S3.R | ########################
###
### Leonard Mada
### [the one and only]
###
### Polynomial Systems:
### Asymmetric S3: Simple / Basic
###
### draft v.0.1e
##########################
### Asymmetric Systems ###
### Simple Asymmetric Systems
### Basic Types
# - some simple Models;
##################... |
f00dc7398ea698cffa2bd312b0708e0ecd23b9c3 | b1a12b171097fcb0b2a6f7a10e0ab7afdf41aac1 | /man/dataSet.Rd | 2a7d0727aa3cf1d8b21d15c77735459771cb3394 | [] | no_license | myndworkz/rAmCharts | 7e1d66002cbca9ef63e1d2af6b4e49a1ac7cd3c3 | 6ea352cab2c9bc5f647447e5e7d902d9cbec0931 | refs/heads/master | 2021-01-14T13:06:28.947936 | 2015-07-29T12:34:13 | 2015-07-29T12:34:13 | 39,955,321 | 1 | 0 | null | 2015-07-30T14:37:43 | 2015-07-30T14:37:43 | null | UTF-8 | R | false | false | 502 | rd | dataSet.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/DataSet.R
\name{dataSet}
\alias{dataSet}
\title{#’ Constructor.}
\usage{
dataSet(compared = FALSE, dataProvider, fieldMappings, stockEvents, ...)
}
\arguments{
\item{\code{...}:}{Properties of DataSet.
See \code{\url{http://docs.amcha... |
c1753ba8eb3a25bb9df222d9f754d2f7450aa43f | 5150cf610a34c6c5be9b598277db1834d8fb16b4 | /man/create_capture_WYT.Rd | de987148a97c6f41c16c90062340982596c5324d | [] | no_license | SPI-Birds/pipelines | f3ab78668e526a47bd298b0f7f4127e274a4dfd0 | cb4bd41bc26d991fa54e520bb15b54333696b4cb | refs/heads/master | 2023-08-16T18:15:29.835023 | 2023-08-09T09:51:56 | 2023-08-09T09:51:56 | 153,275,927 | 0 | 3 | null | 2022-12-04T14:48:00 | 2018-10-16T11:42:17 | R | UTF-8 | R | false | true | 744 | rd | create_capture_WYT.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_WYT.R
\name{create_capture_WYT}
\alias{create_capture_WYT}
\title{Create capture data table for Wytham Woods}
\usage{
create_capture_WYT(db, Brood_data, species_filter)
}
\arguments{
\item{db}{Location of primary data from Whytham Wood... |
f9d0b43a63b69351e592408a055616c9ec51e21f | cd82d5071502b71c821557e9c597015c80f3ace7 | /RStudio/src/01-lectura_y_limpieza.R | db3a1ed42a7f2704e1c7eb86db1d7d02b4f23e26 | [] | no_license | haro-ca/demo_IDEs | ffc701dc1b4d700805c902f519d2eac89fef3f49 | 873b91087d054271c762727bd52f83f773276175 | refs/heads/main | 2023-03-08T07:54:19.861200 | 2021-02-24T05:26:59 | 2021-02-24T05:26:59 | 341,787,837 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 121 | r | 01-lectura_y_limpieza.R | library(tidyverse)
diamonds %>%
filter(cut == "Premium") %>%
write_csv("data/diamonds_clean.csv")
|
9d7b904ca1c06d910668a56cbc714dc7de61cb51 | 3733b8c50f53b88eabeeb61d3fa324c840cf6ac6 | /R/autoplot.R | 4560747df8f5892d204ecd8a74c5599b090cbe5d | [] | no_license | RobertWSmith/forecastR | d7465ce9248a6d4971569545f80737cddb6cc629 | ce44c8636399ad8532eac8b058d6cc2366bd766b | refs/heads/master | 2021-01-12T16:33:54.413357 | 2016-10-31T16:24:40 | 2016-10-31T16:24:40 | 71,411,749 | 0 | 0 | null | 2016-10-31T16:20:36 | 2016-10-20T00:46:59 | R | UTF-8 | R | false | false | 1,249 | r | autoplot.R | ## autoplot.R
#' Automatic plotting for time series objects
#'
#' @param object a \code{ts} or \code{mts} object
#' @param title character. If provided, is passed as an argument to
#' \code{\link[ggplot2]{ggtitle}}
#' @param ... other arguments
#'
#' @importFrom ggplot2 autoplot ggplot geom_line ggtitle aes_string
#... |
4de3acc6cbf245c1dcc6212582d26a3da1133323 | 46bafa4a6d95021848bd979497b2f7ae6d3de543 | /MakePhenologyMaps.R | 6a01e557ffcae8c792499db4a74b0ba35036e0ab | [] | no_license | fanyanghenu/PhenologyLi | ac5d3f12a37c9cd8225f3d4b7e88aeb36364ba19 | a6510829b4e7c91553b22c50e1b4314f869d78dd | refs/heads/master | 2021-10-09T23:33:43.753967 | 2019-01-03T11:09:04 | 2019-01-03T11:09:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,346 | r | MakePhenologyMaps.R | # **************************************************
# MAKE PHENOLOGY MAPS
PhenologyMap <- function(df){
ggplot(df, aes(x = doy, y = value, color = pheno.stage)) +
geom_line() +
geom_point() +
facet_wrap(~ turfID) +
theme_minimal() +
ggtitle(unique(df$species))
}
## plot maps
phenoMaps2016 <- p... |
92fb16a43c77a37bdfda501d2cd55b0d996120fc | a1674464522c2868112925fcafcfa8817eedde42 | /full_script.R | 34973cb24d579e1984e26e4f13f1dd84480c7422 | [] | no_license | timelfrinkmob/hack | 007046196055bd3e991a7ccca12f5447e1fa9f1f | 06e0203cdac12bed0543c23f5ec6161c366b87fd | refs/heads/master | 2021-01-21T23:29:04.569905 | 2017-06-25T12:48:36 | 2017-06-25T12:48:36 | 95,248,058 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,204 | r | full_script.R | library(readr)
library(stringr)
library(magrittr)
jar <- "news-crowler/target/sourcer-0.0.1-SNAPSHOT.jar"
java_command_base <- paste("java -jar", jar)
cmd_args <- commandArgs()
cmd_args <- cmd_args[!str_detect(string = cmd_args, pattern = "^-|^/Library")]
cmd_args <- "urls"
data <- readLines(cmd_args) %>% .[6:length(... |
7eab4c92c8bf0b74a3c35f544cfe71037c472047 | 85a12881f5e0f7f2e23c543d2cf2ff3dd1d520c6 | /pmRppm.R | ca7f7a48baebbbc7284cf83773c1fbad8cf9f5d3 | [] | no_license | katewolfer/pmR | a48c2ce851cbfd705a482eab9007771745bd25f4 | 7e19d6257d76889e430a79536f7a26cf3c9fe718 | refs/heads/main | 2023-08-18T16:27:17.285764 | 2021-10-20T16:33:39 | 2021-10-20T16:33:39 | 204,450,195 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,394 | r | pmRppm.R | ##################################################
## ppm function for calculating mass accuracy ##
## Kate Wolfer, Institute of Hepatology, London ##
## 06 December 2018 ##
##################################################
## INPUT
## targetValues: a vector of target mass (m/z) values r... |
30989ae79b84f959e262327ec8ccffed3c2a23d6 | fbd40ec4546e66a6ea920d564796b94f84ca1340 | /RM_Miss_TypeIerror.R | a84c19bb796677ce944c8d3799416edf31d30cd4 | [] | no_license | KerstinRubarth/RM_Miss | b214095ee2758d5cc7c036d6c40bea761f561f3c | 6869b6b088dc24f511536f935e87c4e2663c9da6 | refs/heads/main | 2023-03-08T09:23:31.739133 | 2021-02-11T14:39:46 | 2021-02-11T14:39:46 | 338,023,766 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,877 | r | RM_Miss_TypeIerror.R | #---Simulate Repeated Measures Designs with Missing Values-------#
library(mvtnorm)
library(MASS)
library(Matrix)
library(psych)
library(multcomp)
library(mice)
#----Necessary: Empriical Distribution function adjusted for missings-------#
Fihat=function(x,xii,lambdaakt,lambdaiakt){
#--count function---#
... |
f52bed30e519f34d24031527a703e0c525617ed1 | d6adccd4f4fecdfddc8d1f8c96295841046eac80 | /R/login.R | cba3d9057d916992ba544dc8ea890d93dd7a09e6 | [
"Apache-2.0"
] | permissive | Sage-Bionetworks/challengerutils | 6fdd86951695bb7f1eb439e209612bc6592d0e64 | fa80010e0be6c1560083e5d81517ee5e22cbe05a | refs/heads/master | 2022-11-15T01:53:00.815647 | 2020-06-24T03:41:53 | 2020-06-24T03:41:53 | 263,805,485 | 6 | 3 | Apache-2.0 | 2020-06-24T03:41:55 | 2020-05-14T03:28:45 | R | UTF-8 | R | false | false | 423 | r | login.R | #' Logs into Synapse.
#'
#' @param username a Synapse username (optional, not required if .synapseConfig available)
#' @param password a Synapse password (optional, not required if .synapseConfig available)
#' @examples
#' library(challengerutils)
#' syn_login()
#' @import reticulate
#' @export
syn_login <- function(us... |
3004697750b0336b6fb98d7f1f22aa418f5eb1ab | fe8f6bdc7ee13a888c3a31d9313b06510bf401cd | /Downloads/RobKAT-master-3/man/IBSKernel.Rd | e6ffc7941d9546d9a057352ab8044916fb791f8d | [] | no_license | karamartinez00/RobKAT | 8240184ebab3ce9cedf5898a73bec1f88ed69f4a | beaa97d3fc199ca2eb3fca471581cde9e44cfa7a | refs/heads/master | 2020-08-08T04:01:15.813646 | 2019-10-08T17:36:17 | 2019-10-08T17:36:17 | 213,705,444 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 442 | rd | IBSKernel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{IBSKernel}
\alias{IBSKernel}
\title{Compute the IBS kernel}
\usage{
IBSKernel(z)
}
\arguments{
\item{\code{z}}{A SNP matrix of size \code{n x M}. Here \code{n} is the
number of subjects and \code{M} is the number of SNPs. ... |
bc8b1cb0fb597faca725c8dde0fac01d06c918b7 | 1d0f0b5befb697617d1dee599f522b2189563d57 | /plot6.R | 6ef148abbbec03d6cbb7f049e8a3629f5c105205 | [] | no_license | akumar2005/DataAnalysisProject | e1119c75143def14e36f68e0956c227752fb8e76 | 9a4e4d23b247824d95fc7b710d9d630341714fc4 | refs/heads/master | 2021-01-01T17:28:46.134588 | 2015-01-25T20:50:47 | 2015-01-25T20:50:47 | 29,830,463 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,135 | r | plot6.R | # Load NEI and SCC data frames
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Compare emissions from motor vehicle sources in Baltimore City with
# emissions from motor vehicle sources in Los Angeles County, California.
# Which city has seen greater changes over time in moto... |
dae66aecaf647f230ffd6cee7186d26b29d834ce | 1e42b9829b85bc37d112ec5b8efa1682264297b2 | /R/processing_time_activity.R | f51a53369f9d13a94ad607ff60bdad40612082d6 | [] | no_license | strategist922/edeaR | ca83bf91f58e685bc9333f4db3bfea3d8c019343 | ad96118cccfdc90a7bed94f5aef2ee0cfab3aac8 | refs/heads/master | 2021-07-05T04:30:35.286640 | 2017-09-27T12:25:04 | 2017-09-27T12:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,170 | r | processing_time_activity.R |
processing_time_activity <- function(eventlog,
units) {
stop_eventlog(eventlog)
colnames(eventlog)[colnames(eventlog) == timestamp(eventlog)] <- "timestamp_classifier"
event_classifier <- activity_id(eventlog)
activity_instance_classifier <- activity_instance_id(eventlog)
r <- eventlog %>%
group_by_... |
c9a0e015871f4297091048f2832e112d005a6d03 | e7cc77bfee2a849dde93ac5ac7ed2d6318725d1b | /code/data_pre-process.R | 240f7b6098b045235303718d99c726bd48b32319 | [] | no_license | y220/Stat_605_Group_Project | 8c377e7cfc150ef8f71e00d88bb510a4b74970b3 | 5c703d6ffcea7b919311418916088f9e5115bfd0 | refs/heads/master | 2023-01-28T15:41:42.358925 | 2020-12-11T22:54:40 | 2020-12-11T22:54:40 | 310,103,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 875 | r | data_pre-process.R | rm(list = ls())
# args = (commandArgs(trailingOnly=TRUE))
# if(length(args) == 1){
# data = args[1]
# } else {
# cat('usage: Rscript sofia.R <data>\n', file=stderr())
# stop()
# }
# sds data
sds <- read.csv('data/2017-07_sds011sof.csv')
# change time scale
sds$timestamp<-sub("T.*$", "", sds$ti... |
1ce7f7c8df6cc824523e02effae9a022bf14f2e1 | 70db47eee4797d278ea0b442c143501178c53ef0 | /R/multi_heat.R | 7a395a84a176e17d06f9c567bac17aea5f4e4293 | [
"MIT"
] | permissive | jdreyf/ezlimmaplot | f5f4136e48e9aebb4ecf79ad135524be876c752c | 393055383916fc36b5b13b0ff6b6bb5d5dc9cedc | refs/heads/master | 2023-08-17T15:28:36.764451 | 2023-08-14T15:15:11 | 2023-08-14T15:15:11 | 130,758,410 | 1 | 6 | MIT | 2020-04-20T15:18:19 | 2018-04-23T21:22:54 | R | UTF-8 | R | false | false | 2,389 | r | multi_heat.R | #' Plot one heatmap per comparison
#'
#' Plot one heatmap per comparison with \code{ezheat}, where features in \code{object} are reordered per comparison
#' using \code{tab}.
#'
#' @inheritParams ezheat
#' @inheritParams ezvenn
#' @details \code{rownames(tab)} and \code{rownames(object)} should overlap, and some \code{... |
0e0300547075626f1bdede1ff22f0d0b687e3219 | 652abde6569f3aab251a174786678f7a2e3c5202 | /code/correlation_fun.R | 020ee997604eaff1972aa124321c9fa86b3d121c | [] | no_license | XianwuXue-NOAA/bivariate_EMOS | 48095e391809dbae063f0b530e281e0537d73e64 | 1e57bc97d81c2564538cba6e83c649948c590792 | refs/heads/master | 2020-05-22T12:33:34.130248 | 2019-04-17T11:38:48 | 2019-04-17T11:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,938 | r | correlation_fun.R |
correlation_fun <- function(x1, x2, y1, y2, radius, ...){
sect.2 <- sect.3 <- sect.4 <- sect.5 <- sect.6 <- sect.7 <- sect.8 <- sect.9 <- NULL
# define sections according to wind direction and sort
for (i in 1:length(x1)){
if (x1[i]^2 + y1[i]^2 <= radius^2) next
else phi <- atan2(-x1[i], -y1[i])/(2*p... |
daccd8f7bc77009762566bde4c21ed7ed19f3028 | 4573415414b0c12d8be0930ab4ee3a0434dcdbe8 | /man/CreateDosageDataAcrossStudies.Rd | 6cd0a4666cc41a82ce63e49e53776dd91401a9be | [] | no_license | bbanbury/bb_gecco | fb3b277ce1f34c24599d0c07f535ef0de5bf5488 | 81740295d4908ae94500cbf7dcc97e6e23843e2f | refs/heads/master | 2020-05-20T15:40:39.095515 | 2015-05-26T15:08:32 | 2015-05-26T15:08:32 | 33,628,901 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,041 | rd | CreateDosageDataAcrossStudies.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/SearchFunctions.R
\name{CreateDosageDataAcrossStudies}
\alias{CreateDosageDataAcrossStudies}
\title{Create a Dosage Dataset from HapMap}
\usage{
CreateDosageDataAcrossStudies(rs_positions, saveToRdata = NULL)
}
\arguments{
\item{rs_po... |
9903dfc05546debf25d8878152b4fd9299636a5d | a3b4006dd6b77ff0818c751d9c6ae6d32c8a0377 | /talks/2017-05-10_readxl-rstudio-webinar.R | f7e3a2adca2583366be9c5b3bb4315f429c95118 | [
"BSD-2-Clause",
"MIT"
] | permissive | tidyverse/readxl | 98a61dbb111848100783d5c977becee6cf3cd749 | 3aa8c2ddf9f1d8921f2a8b42ae0bdfa69a22ed9b | refs/heads/main | 2023-07-20T16:12:41.510109 | 2023-07-07T02:58:27 | 2023-07-07T02:58:27 | 32,161,666 | 432 | 130 | NOASSERTION | 2023-02-08T23:07:26 | 2015-03-13T14:50:20 | C++ | UTF-8 | R | false | false | 3,163 | r | 2017-05-10_readxl-rstudio-webinar.R | ## webinar live coding
library(readxl)
## access examples-- -----------------------------------------------
## list all examples
readxl_example()
## get path to a specific example
readxl_example("datasets.xlsx")
datasets <- readxl_example("datasets.xlsx")
read_excel(datasets)
## IDE support ----------------------... |
0f5d360b264fb1c437636739b10a927afd899bc4 | 02dd5dd6187597cc615b794cc987086fff2e17d9 | /hw04/app/app.R | c16d047528a721e2725856a5f00dd2da7ee38bcd | [] | no_license | brennan6/stat133-hws-fall17 | e8584a3ee6e4cd2ea72f20ad089ce3bbbaf5b05f | 0299d5b67dfb8d27d3317ae8309d71aef61de0a3 | refs/heads/master | 2021-08-23T07:24:57.194915 | 2017-12-04T04:00:45 | 2017-12-04T04:00:45 | 103,568,208 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,898 | 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(dplyr)
library(ggplot2)
source("/Users/matthewbrennan/stat133/stat133-hws-fall17/hw04/code... |
23a6be5e80ee638323df70f7cddb33190a9d693b | c72a114d8365ead4ccd39affacc476bef334b367 | /R/explore_schools.R | 904f19fb25b50f805bc4fe8902370e2eae3c596a | [] | no_license | avila/SOEPgeodist | 2fc581b4c6b20adb96c90e644d3b45c934642123 | 18d4634f936c590cc4b449ab33da3aba16997dc4 | refs/heads/master | 2023-08-27T21:51:19.848892 | 2021-11-06T16:26:50 | 2021-11-06T16:26:50 | 415,457,487 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,316 | r | explore_schools.R | ### This script explores the school data. By the end of the script it plots the
### school data points one a map for every year.
## library -----
library(haven)
library(dplyr)
library(sf)
library(ggplot2)
library(tidyr)
library(glue)
library(purrr)
## read data ----
schools <- readxl::read_excel(
"data/schulen_k... |
4f733edf22da5e2b49a2dc41de5f728479efb6d7 | f268adce81916fea4811e44b8cd35947b2c3fdff | /Cheung 2022/Hagger18.R | f5b99e621b431f4afb9f9842abffb70967ed454e | [] | no_license | mikewlcheung/code-in-articles | dd0e9202ad2777304dc2bb2186b69a367f0e682c | 0469adaa14ee6f4a947f932cb366ba2fa8b28867 | refs/heads/master | 2022-06-13T19:08:18.611034 | 2022-06-01T07:21:28 | 2022-06-01T07:21:28 | 45,301,280 | 10 | 5 | null | null | null | null | UTF-8 | R | false | false | 82,962 | r | Hagger18.R | Hagger18 <-
list(data = list(`1` = structure(c(1, 0.34000000000000002, NA,
0.38, 0.28999999999999998, NA, 0.059999999999999998, 0.34999999999999998,
NA, 0.34000000000000002, 1, NA, 0.29999999999999999, 0.26000000000000001,
NA, 0.17000000000000001, 0.27000000000000002, NA, NA, NA, 1,
NA, NA, NA, NA, NA, NA, 0.38, 0.... |
423bf3ba92f7d99691a96daed8393c4ad023e55a | fdcd69bbf8fa90f1e5998068147cbd7a93886598 | /man/callSimilarityComputation.Rd | d30979f2bb09d7caf8715d62e6289dcf00fb8e10 | [] | no_license | souhilabsl/Rchic | bf60ec437d5ba6caf49447692cda4fa229fc2d5c | 252948b9e034b9a508938d94c976ef02533a4735 | refs/heads/master | 2021-01-21T18:38:25.225411 | 2014-04-17T13:58:54 | 2014-04-17T13:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 638 | rd | callSimilarityComputation.Rd | \name{callSimilarityComputation}
\alias{callSimilarityComputation}
\title{Calls the C++ similarity computation.}
\usage{
callSimilarityComputation(similarity_matrix, list.occurrences.variables,
verbose)
}
\arguments{
\item{similarity_matrix}{matrix of similarities of the
variables.}
\item{list.selected.item}{s... |
d07c4923b9a2326c4a4ff21f4c9b767882a663ae | f924a68aacb955a8f21617c2d44d1a886d5e7eea | /workout01/code/make-shot-charts-script.R | f262f112d626af5977d0f20d2cd77cc0d3da2722 | [] | no_license | stat133-sp19/hw-stat133-hinka32 | 79aa748806d4b9f2528050cc490528d5cf8d7985 | eb7fcb68a6ea3fa64099e8359b14bcbb82e7160b | refs/heads/master | 2020-04-28T08:25:19.638528 | 2019-05-03T23:37:03 | 2019-05-03T23:37:03 | 175,125,336 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,938 | r | make-shot-charts-script.R | #################################
#title: Shot Charts Script
#description: make scatterplots of shots for each player, and one for all players
#inputs: data frames of each player as defined in "make-shots-data-script.R"
#outputs: pdf files of each scatterplot, png file for gsw_shot_charts
##############################... |
3f74b7a7333dea67d6ee1dd0c09fb8c1f41be76b | bca1166b487ead5957c695d1b2aa1073e64888a6 | /man/get_data_sec_money_market_funds.Rd | d2e449bcd66e17afcee8452eafb87abe6aa421a0 | [
"MIT"
] | permissive | fxcebx/fundManageR | d4a02397e9e7c5d37fccfc9e221d80b2398d4be8 | cb11ad0cd648d4d484eec67cf093f35b2d163cda | refs/heads/master | 2021-01-13T13:55:47.905682 | 2017-01-12T19:55:26 | 2017-01-12T19:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 749 | rd | get_data_sec_money_market_funds.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sec_functions.R
\name{get_data_sec_money_market_funds}
\alias{get_data_sec_money_market_funds}
\title{Get SEC registered money market funds}
\usage{
get_data_sec_money_market_funds(only_most_recent = TRUE, years = NULL,
months = NULL, nest_... |
becf157ff38bc7f861d17e795e7b20a36f3c0c16 | f999f2e9bab7a4bb5b5b21a56e33d33643422636 | /cachematrix.R | db2c5bbfc9ea7ad1591f19f34dc5505ab43fb232 | [] | no_license | DaBlahr/ProgrammingAssignment2 | b8203ddfcc76b243b80c786ec24448d474944810 | 6aadd241aed97409ba2747b2f4decae39ed47010 | refs/heads/master | 2020-12-25T03:40:06.986409 | 2015-09-22T12:31:26 | 2015-09-22T12:31:26 | 42,931,490 | 0 | 0 | null | 2015-09-22T12:09:47 | 2015-09-22T12:09:46 | null | UTF-8 | R | false | false | 1,110 | r | cachematrix.R | ## A method to wrap a matrix so that its inverse may be conveniently cached.
## First use makeCacheMatrix to turn a base matrix into its wrapped form,
## then use use cacheSolve to get its inverse. If the inverse has already
## been calculated, time will be saved by grabbing the cache.
## makeCacheMatrix: wraps a basi... |
ff3a357cf9bec7ef866c80dbb11eb82a8cad2bb6 | 66e0dcecbb0ed7b45488ebe699136c9a8627175b | /R/Analysis/mods_with_covars_test.R | 4230a9091796e32ef5d5afc5237222cf9896863a | [] | no_license | and-jonas/thermodyn | 9ebc60ff18e1f2469f1429bef8a02f0264256458 | 1b61a4086d45a4695eb3b12669139340f7568bc2 | refs/heads/master | 2020-12-20T21:06:06.373243 | 2020-05-08T15:15:35 | 2020-05-08T15:15:35 | 236,210,204 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,694 | r | mods_with_covars_test.R |
rm(list = ls())
.libPaths("T:R3UserLibs")
library(SpATS)
detach("package:plyr")
library(tidyverse)
library(asreml)
library(desplot)
workdir <- "O:/Projects/KP0011/2/"
setwd(workdir)
#functions
source("thermodyn/R/Utils/002_thermo_utils.R")
source("thermodyn/R/Utils/003_h2_BLUEs_utils.R")
#===========================... |
96ae14fbc9ca2f3f6b2a7b5824654a07192ee1e6 | e903fc789e92c027ae2c1e035da0aa4a08fe82f4 | /cachematrix.R | c7c918c4612325e5911299a7c54efd398d28a779 | [] | no_license | mirror416/ProgrammingAssignment2 | 3e21864b54c318f0c16ac26f0d32fe7d0ed0bbb9 | 27b276787d26d726a7b3b80b485aae34288a7a6b | refs/heads/master | 2021-02-04T03:30:32.894258 | 2020-03-04T21:22:07 | 2020-03-04T21:22:07 | 243,611,040 | 0 | 0 | null | 2020-02-27T20:33:13 | 2020-02-27T20:33:11 | null | UTF-8 | R | false | false | 1,506 | r | cachematrix.R | ## There are two functions in this file. They try to cache and retrieve the
## inverse of a matrix to save time in computation. The function structure is based
## on the given example and modified according to the different application purpose.
## The makeCacheMatrix function aims to create a special matrix object t... |
88af2e7a9ee79131bacfd059208a4b1e2b498f46 | 88845c28ef247fe06d194fcc784ded352655992a | /cachematrix.R | 98aecb17fef33469d8cbea1204adc5ec1b0ff26a | [] | no_license | tonyofleon/ProgrammingAssignment2 | 0a04540dbb1e650103075d3dc4c7161763c76c9f | acbabeb9d876ec11005c681b4edccb13df09d8b7 | refs/heads/master | 2021-01-16T22:35:24.388715 | 2015-03-21T21:54:05 | 2015-03-21T21:54:05 | 32,622,966 | 0 | 0 | null | 2015-03-21T06:48:13 | 2015-03-21T06:48:13 | null | UTF-8 | R | false | false | 1,635 | r | cachematrix.R | ##The first function called makeCacheMatrix, initialize the
##functions list set, get, setinv and getinv.
##In the "set" function, there is a validation to check if the
##matrix that is being set is the same one as the previous one,
##in case it is the same one, the matrix is not set and the inv is not
##set to NUL... |
b32afbb9a89c97527b9ad0410708b61cf9457c91 | a49944a6f19aec360eac7c4e0909078cc792fea4 | /man/galeShapley.validate.Rd | 55600ea883b402eb2ba2fb306b3be80ddb3c3f6f | [] | no_license | jtilly/matchingR | bec428e9eb22ceec35fefdc40d244d46a4972761 | 8ca48209e37e89daf7661092788a7f20470be7e6 | refs/heads/master | 2023-02-17T02:14:22.311444 | 2023-02-11T08:14:36 | 2023-02-11T08:14:36 | 35,117,499 | 55 | 27 | null | 2023-02-11T08:14:38 | 2015-05-05T18:43:07 | R | UTF-8 | R | false | true | 3,391 | rd | galeShapley.validate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/galeshapley.R
\name{galeShapley.validate}
\alias{galeShapley.validate}
\title{Input validation of preferences}
\usage{
galeShapley.validate(
proposerUtils = NULL,
reviewerUtils = NULL,
proposerPref = NULL,
reviewerPref = NULL
)
}
\arg... |
1c2ed5cd2bd7acd3eaed7291a013fb87fa9d7c0c | 7783c060692c982b9769e51da0f0bddcdbde4a7d | /homework2/server.R | 2a588779ed721eb3914e4e73bc7f30cd68a4ca43 | [] | no_license | osuarezmunist/msan622 | d78c454f8b586f430ac077303d7545583bb4ddad | 0aba53f3331352ea8b022ace6f33d6b23c683560 | refs/heads/master | 2021-01-17T17:54:34.436414 | 2014-05-16T04:29:14 | 2014-05-16T04:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,509 | r | server.R | library(shiny)
library(scales)
data("movies", package = "ggplot2")
getPlot <- function(highlight,mpaaRB,minb,maxb) {
genre <- rep(NA, nrow(movies))
count <- rowSums(movies[, 18:24])
genre[which(count > 1)] = "Mixed"
genre[which(count < 1)] = "None"
genre[which(count == 1 & movies$Action == 1)] = "Action"
g... |
0117372d0b1f7141784998fffc6650d4a01ea882 | 5cb3e1a594977e5055adf8cec33b0dad782ea51d | /covid_data1.R | a7bb2e6e60808f4b44f67d8b0e07d08c8aed6677 | [
"MIT"
] | permissive | maisk/covid19-greece-stats | 81d56305145494179f9c23403d03bf3ca83bc23b | db108110a2588c0fe70b3c08c706668f30f5641a | refs/heads/main | 2023-03-01T06:36:56.910677 | 2021-02-10T23:20:13 | 2021-02-10T23:20:13 | 330,237,484 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,942 | r | covid_data1.R | ##########################################################################################
# LOAD
##########################################################################################
#library(plotly)
library(plyr)
#library(lubridate)
#library(drc)
rm(list=ls(all=TRUE))
graphics.off()
cat("\014")
#environment_opti... |
00b1d1164df9f2abedcf60d022984997e9c6bc44 | a1c150f97c1453523a7407b9ff354b4c6224fb5f | /logi_reg.R | a2fa538d4e00fd734d6648bddee35000d318ef92 | [] | no_license | ishank26/edx_analytics_edge | 9efac2b8840ea1c7d7d5ed7e80af1bcc121651bf | 7748afcc3f2f66bab3ef1efd5dde7abe694cd754 | refs/heads/master | 2020-12-25T10:59:56.692719 | 2016-06-03T12:13:35 | 2016-06-03T12:13:35 | 60,344,308 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,437 | r | logi_reg.R | setwd("\\home\\work\\analytics_edge")
library(mice)
library(Rcpp)
data<-read.csv(file= "loans.csv")
head(data)
summary(data)
md.pattern(data)
set.seed(144)
vars.for.imputation = setdiff(names(data), "not.fully.paid")
imputed = complete(mice(data[vars.for.imputation]))
data[vars.for.imputation] = imputed
... |
ba90bcadb36a8e8f455931efe460bc564ce1d023 | b08057978c4330b4073816e6b1fd16629f9bf9b4 | /teste.R | 11c2b6dffb1e75af77d6acaabfffe113cdb7fbd3 | [
"MIT"
] | permissive | mnunes/IMDb2 | d66f5e4dffafffd56467c9ad4a80c49391936bc7 | 410934e552cda23741aaf090bde1446118d5b940 | refs/heads/master | 2021-08-28T14:00:26.867110 | 2017-12-12T11:42:08 | 2017-12-12T11:42:08 | 109,696,840 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,482 | r | teste.R | "V1","V2"
"tt0944947","Game of Thrones"
"tt0903747","Breaking Bad"
"tt1520211","The Walking Dead"
"tt1475582","Sherlock"
"tt0898266","Big Bang: A Teoria"
"tt0108778","Friends"
"tt0773262","Dexter"
"tt0460649","Como Eu Conheci Sua Mãe"
"tt0411008","Lost"
"tt4574334","Stranger Things"
"tt0455275","Prison Break"
"tt185601... |
8edffe09e7b427b1bc476779b90867ef63f366f7 | 2e731f06724220b65c2357d6ce825cf8648fdd30 | /dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612726706-test.R | b6cdcfe209bd1f61b8cc2281fcc62d6efbb597cb | [] | 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 | 808 | r | 1612726706-test.R | testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = NA_integer_, item_score = c(60395L, -336909525L, 724256326L, 1179010630L, 1179010630L, 724249387L, 565774848L, 724249387L, 724249387L, 724249579L, 539365486L, NA, 285194751L, 565837823L, 220932907L, 167968767L, -13238017L, -268435658L... |
1e14aeaa175b9972e8f90af67abf0bbcafc62502 | 8f379b92570d473941e6048dea1bbb30f73455d0 | /logistic/dp_mix.R | b6399519d7e352d3fecd6067ec3940d877ca57dc | [] | no_license | stjordanis/bnp_hw | 2cbf2ab1069212e6b7510d4bf6339f4a94f254d3 | 8931f829d093c7a13d7860a23c85f400e331d77a | refs/heads/master | 2020-07-16T06:04:27.211310 | 2016-11-30T04:40:22 | 2016-11-30T04:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 322 | r | dp_mix.R | n <- 100
beta <- c(0,1,6,-1,-12,2,20,-2)
x1 <- runif(n,0,3)
x2 <- runif(n,3,6)
x3 <- runif(n,6,8)
x4 <- runif(n,8,10)
x.list <- list(x1,x2,x3,x4)
x <- unlist(x.list)
y <- rep(0,n*4)
for (i in 1:4) {
for (j in 1:n) {
y[(i-1)*n+j] <- x.list[[i]][j] * beta[2*i] + beta[2*i-1]
}
}
y <- rnorm(4*n,y,1)
plot(x,y)
... |
d124453a14d2b1e80935d9114ddf0d1b6f361285 | daccbc095ccb9be61622399c2cfa3c3319aafbe0 | /R/pred.R | 569fed3d5f72bb97ac44e8bd8a62400d9225fb7f | [] | no_license | menghaomiao/aitr | c2199837ef5e125b73838233779fc997aa8e3cd3 | 6cfb60c0ae63ef7dd43b3f8c0f78293c1eeea5bb | refs/heads/master | 2022-11-05T21:13:50.866225 | 2020-06-18T23:14:03 | 2020-06-18T23:14:03 | 110,192,891 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 285 | r | pred.R | pred=function(inner) {
d=dim(inner)
res=matrix(0, d[1], d[2])
rule=sapply(1:d[1], function(i) which.max(inner[i, ]))
res[cbind(1:d[1], rule)]=1
colnames(res)=colnames(inner)
rownames(res)=rownames(inner)
class(res)=c('ITR', 'matrix')
attr(res, 'outcome.ratio')=1
return(res)
} |
511c6752736a4ea806c210f893408ec130447be5 | e2ff97cda448ae0534afdbd1cb614111ed9eddc6 | /toms_scripts/plotting_from_web.R | a0b4e7e974d3e05fa9c67cf8516cf65d95bc5562 | [] | no_license | AugustT/Freshwater_Hack | 08462c5d281455d6cbce3ec5c08ab2369b1e663e | 6ec80562cfd09d212d36386c1d26272b9618d9c9 | refs/heads/master | 2021-01-22T04:10:44.332134 | 2017-08-03T15:38:41 | 2017-08-03T15:38:41 | 92,438,541 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,548 | r | plotting_from_web.R | my.glmergplot <- function(
# version 0.43
# written by tiflo@csli.stanford.edu
# code contributions from Austin Frank, Ting Qian, and Harald Baayen
# remaining errors are mine (tiflo@csli.stanford.edu)
#
# last modified 12/15/10
#
# now also supports linear models
# backtransforms centering and standa... |
d083e145f2a6af32ca18a402cc57555f818a5b51 | 4625017d85fd07a2019f7905ab0c0d24003c8f42 | /total_disance/DART_transform.R | 980c1972c3ca02f90673ceb3f0bccfcfd85e3fbb | [] | no_license | PatrickKratsch/DART_analysR | 9606f9c59534095a2e020f2806128520436ab4b4 | 359b9265a763abcb21f5e525e4cdce240262d10d | refs/heads/master | 2021-06-16T20:51:43.084150 | 2020-05-11T20:43:36 | 2020-05-11T20:43:36 | 89,875,831 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,219 | r | DART_transform.R | DART_transform <- function(data){
# data = input to this function, as called by DART_transform_batch -
# one .csv file at a time from a directory of output .csv
# files, as defined by dir_path in DART_transform_batch
# Load relevant pa... |
d8b06a1cdac0270f6cdd7b812d860aa682e18fb7 | e0f3cee21bd65684b1548e0ae82d4fc429ca5642 | /man/maize.G.Rd | a28e72885757e0f8f9354d36502f0e70690a9e28 | [] | no_license | tony2015116/lme4GS | d684d0c9d6ac81395899190a85e7043a16ee6648 | 5d6b79bacdce7a77840054e2497e92029aed6524 | refs/heads/master | 2020-05-16T18:59:27.150115 | 2019-03-28T22:18:35 | 2019-03-28T22:18:35 | 183,245,209 | 2 | 0 | null | 2019-04-24T14:24:36 | 2019-04-24T14:24:35 | null | UTF-8 | R | false | false | 430 | rd | maize.G.Rd | \name{maize.G}
\alias{maize.G}
\title{Genomic relationship matrix for maize lines}
\description{
A matrix with relationship between individuals for
parents of two heterotic groups. The matrix was computed
using 511 SNPs using the function A.mat included in
rrBLUP package (Endelman, 2011). The row names and column
n... |
a156304629659cc8be82cfedb6264dda99fa8dfb | dbf0880167dedb547079f8b2fe595c78b5a92392 | /man/encounter.Rd | 225a204c7de88d91cc20c4cf0fba83e151413fa0 | [] | no_license | davan690/ctmm | 77b39af50815e83de8dac7ca0a27e9a53834d458 | e082e4aa7184ddc953b0d244d2a31c380a70930d | refs/heads/master | 2023-06-22T17:47:28.980631 | 2021-06-29T00:57:15 | 2021-06-29T00:57:15 | 266,095,610 | 0 | 0 | null | 2020-05-22T11:38:06 | 2020-05-22T11:38:05 | null | UTF-8 | R | false | false | 2,504 | rd | encounter.Rd | \name{encounter}
\alias{encounter}
\encoding{UTF-8}
%\alias{overlap.ctmm}
%\alias{overlap.telemetry}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate the conditional location distribution of ecounters}
\description{Functions to calculate the location distribution of where encounters tak... |
331653682bf4290a8fff2096c79cde1b9df839cb | b1cd4f5a053dbed4c5d0b5374c730aca5a63013b | /hitandrun/R/shakeandbake.R | 5c7163895793303687b3f276981e3c1467af04b4 | [] | no_license | gertvv/hitandrun | 98ce7f8c9829afb13d2c842dcd4f21728b794429 | e19dfd7cced45e6714123531ad3e02f25f98a2f3 | refs/heads/master | 2022-06-16T06:11:19.311279 | 2022-05-27T11:31:04 | 2022-05-27T11:31:04 | 1,940,777 | 12 | 6 | null | 2018-05-20T10:58:00 | 2011-06-23T10:02:49 | R | UTF-8 | R | false | false | 1,170 | r | shakeandbake.R | sab.init <- function(constr,
thin.fn = function(n) { ceiling(log(n + 1)/4 * n^3) },
thin = NULL,
x0.randomize = FALSE, x0.method="slacklp",
x0 = NULL,
eliminate=TRUE) {
state <- har.init(constr, thin.fn, thin, x0.randomize, x0.method, x0, eliminate)
state$i0 <- findFace(state$x0, state$constr) #... |
9e79d630f56f5d1985dbcb0d9d0c33ebeaf0dc38 | 68ba515003cc405aeeddfbd35bd6423b75edb422 | /rankall.R | 4f544d875ffecbf391ce647900416b8eea2dd0e1 | [] | no_license | wayneheller/ProgrammingAssignment3 | 00cb64f3d29183b11eb655948550854d5c68f600 | 77d18b389e9d1b61ecf1a7c1f413374ea278cf41 | refs/heads/master | 2021-01-12T04:55:37.641466 | 2017-01-02T23:15:55 | 2017-01-02T23:15:55 | 77,812,551 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,304 | r | rankall.R | ###############################################################################
## Coursera R Programming ##
## Programming Assignment #3 ##
## Wayne Heller ##
... |
e10278846c483d14b5ca27783e443d7875697859 | c5c6c283f4bd0d4a57e1e2ddf9f1fb9d114c55ff | /at2/combine_datasets.R | 58bb6a0974091d04e9107982d80b2c7c2573c2c3 | [] | no_license | mutazag/DSI | ac26c8dd0735c08a45ad9bfa6dd13701b8f66ea9 | 831ed991af7101fcbf5bc44e47e816e3a03f998e | refs/heads/master | 2020-03-24T12:31:12.015443 | 2018-07-28T23:31:03 | 2018-07-28T23:31:03 | 142,716,678 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,637 | r | combine_datasets.R | #### combine data sets ####
#### header ####
setwd("C:/mdsi/dsi/at2")
library(readr)
library(dplyr)
library(lubridate)
#### read data files ####
# start with the normalised data files, 1 entry per user per day, 1 entry per
# day for weather
sleep <- read_csv("./sleep_adj.csv",locale=readr::locale(tz="Austra... |
e63a111dc626d0f375554a009b928a62c8ee5d4e | a47ce30f5112b01d5ab3e790a1b51c910f3cf1c3 | /B_analysts_sources_github/jennybc/r-graph-catalog/fig08-02_gold-price-data-high-low-chart.R | 627f33d4c658eba3c9d97f78ad6d1a4619800e6d | [] | no_license | Irbis3/crantasticScrapper | 6b6d7596344115343cfd934d3902b85fbfdd7295 | 7ec91721565ae7c9e2d0e098598ed86e29375567 | refs/heads/master | 2020-03-09T04:03:51.955742 | 2018-04-16T09:41:39 | 2018-04-16T09:41:39 | 128,578,890 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,330 | r | fig08-02_gold-price-data-high-low-chart.R | library(ggplot2)
this_base <- "fig08-02_gold-price-data-high-low-chart"
my_data <- data.frame(
Year = 1979:1996,
Average = c(306, 615, 460, 376, 424, 361, 317, 368, 447, 437, 381,
383.51, 362.11, 343.82, 359.77, 384, 383.79, 387.81),
High = c(510, 850, 599, 475, 505, 402, 340, 440, 500, 480,
... |
b4237b693695f03a12db870c44869fea9b020bf9 | f327df8fff4ebce6f71dd49caeb8a7bef3e2112d | /smallGlobPrior.R | 9a800bb3389514db1a4543e6cc4b6c0d69ecb7bb | [] | no_license | XinyuTian/EB_pinc | fff0ad31c5ba671f1cc79f3664bb3de685018372 | d9a7b237d8ade418be1556e368d8092f61014986 | refs/heads/master | 2021-01-20T15:59:09.041742 | 2016-07-15T22:18:08 | 2016-07-15T22:18:08 | 60,817,803 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,385 | r | smallGlobPrior.R | ## GOES WITH CALC_LIK.R
load("/Users/Xinyu/Documents/Bayes/code/integrationExpr.Rdata")
load("/Users/Xinyu/Documents/Bayes/code/integrationMeth.Rdata")
load("/Users/Xinyu/Documents/Bayes/code/methylationID.Rdata") # gbIND prIND
load("/Users/Xinyu/Documents/Bayes/code/workingList.Rdata") # workingList, G1, G2, templ... |
0a8e112398d0ad6ca12407f82610cab561a98b86 | 817dbeead89bb8982d24bf1174594da6a699df47 | /plot1.R | 4fc755341810d192c8c1e8b3e60e4bb6a6da7d3f | [] | no_license | VapoVu/ExData_Plotting1 | 56e57211882621f2bd65c39ed8d76d68b3e2b6db | 1b9bfaa5c3b613c28b99d2adc41355bb22a0a34a | refs/heads/master | 2021-01-15T21:07:50.491176 | 2015-03-07T04:37:25 | 2015-03-07T04:37:25 | 31,724,346 | 0 | 0 | null | 2015-03-05T16:44:36 | 2015-03-05T16:44:36 | null | UTF-8 | R | false | false | 655 | r | plot1.R | # Read input data table
pvDat = read.table('household_power_consumption.txt', sep = ';', header = T, na.strings = "?",
stringsAsFactors = F)
pvDat$Time = paste(pvDat$Date, pvDat$Time)
pvDat$Date = as.Date(pvDat$Date, "%d/%m/%Y")
pvDat$Time = strptime(pvDat$Time, format = "%d/%m/%Y %H:%M:%S")
st = a... |
5baff0e920b0515466923d2c6641682eb25a8fca | 216771b49b5d2cf7c6ca117663dadf146175756c | /Ch6/Exercise11.R | 49d22ead7298ec2228df8455493ece5dc164414e | [] | no_license | NestorasK/Statistical_Learning | 4a3ec7a128a6e1bc3506d45b28dd5f1132f5fc99 | 0151b4bb4b7b25bf82985e8ab2e8ffc43ab8b13f | refs/heads/master | 2020-04-26T14:31:46.143762 | 2020-02-13T22:21:21 | 2020-02-13T22:21:21 | 173,617,531 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,427 | r | Exercise11.R | # Exercise 11 #
rm(list = ls())
library(MASS)
data(Boston)
set.seed(123)
# (a)
# training set
train.index <- sample(x = 1:nrow(Boston), size = 0.7 * nrow(Boston))
trainSet <- Boston[train.index, ]
testSet <- Boston[-train.index, ]
# Best Subset Selection #
library(leaps)
# Predictions functions
predict.regsubsets=fu... |
b4d6276cb4397c97cbb2c6b33dc428404d52a205 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/equivalence/examples/pref.LAI.Rd.R | d32f38be88d92e0d4b332ee0b0f46f6d27e5c739 | [] | 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 | 195 | r | pref.LAI.Rd.R | library(equivalence)
### Name: pref.LAI
### Title: Measured Leaf Area Index data from PREF, northern Idaho, USA
### Aliases: pref.LAI
### Keywords: datasets
### ** Examples
data(pref.LAI)
|
9becbf070598dd8e10e7734d5d6025dab4e49184 | f606e8da72c8f647f072c67baf699e754fc889c4 | /code_nomogram.R | d0454e91eb39aea23885ae9b42ec7397031d18ef | [
"Apache-2.0"
] | permissive | RainyRen/radiomics_ovary | a5ea46f1796e8a727e9652ed33dce9d8897ccd47 | 333a9f46efab85383033cfa6d6a3a9b8244fb468 | refs/heads/main | 2023-08-19T04:39:20.682018 | 2021-09-29T13:42:31 | 2021-09-29T13:42:31 | 411,511,706 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,908 | r | code_nomogram.R | library(tidyverse)
library(caret)
library(pROC)
library(glmnet)
library(DMwR)
library(rmda)
library(ggpubr)
library(ModelGood)
library(rms)
library(mRMRe)
library(DescTools)
library(Publish)
library(pheatmap)
# # ========== Environment settings ==========
# # 移除现有的环境变量
rm(list=ls())
setwd("C:/Workstat... |
103d273f1c3d18b0b63558db09f8182a210890d4 | 22057bf4f2eb001f739761e53a5578de578e6920 | /sensitivity/boundary/2d.6year.temp.filtered.R | c3ce589daa759a21637de21b2de2c2c049dff2f0 | [] | no_license | mrubayet/archived_codes_for_sfa_modeling | 3e26d9732f75d9ea5e87d4d4a01974230e0d61da | f300fe8984d1f1366f32af865e7d8a5b62accb0d | refs/heads/master | 2020-07-01T08:16:17.425365 | 2019-08-02T21:47:18 | 2019-08-02T21:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,024 | r | 2d.6year.temp.filtered.R | rm(list=ls())
library(xts)
coord.data = read.table("data/model.coord.dat")
rownames(coord.data) = coord.data[,3]
start.time = as.POSIXct("2010-01-01 00:00:00",tz="GMT",format="%Y-%m-%d %H:%M:%S")
end.time = as.POSIXct("2015-12-31 23:00:00",tz="GMT",format="%Y-%m-%d %H:%M:%S")
time.index = seq(from=start.time,to=end.ti... |
e8861d3372ce1868bc4503dbaa682a156602b5bf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/staTools/examples/getXmin.Rd.R | 6688bb3c14585f21413e13b30db94781e9a741e5 | [] | 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 | 243 | r | getXmin.Rd.R | library(staTools)
### Name: getXmin
### Title: Lower bound estimator for discrete powerlaw distributions
### Aliases: getXmin
### Keywords: bound discrete estimator lower powerlaw
### ** Examples
x = moby
o = displo(x)
est = getXmin(o)
|
8fda4fa59411ddb3d0ff5edfd0069f844e49a337 | a0a04321eeb18ae65b24b1bcc8065e6ea5db2542 | /code/skeleton.R | 580ec43bf14726f49248ccecfd27d851c294545f | [] | no_license | nstauffer/sample_design_practice | aa905491f58a89419fe6e2cb7c23862c1c4978b4 | d59181b6fd2686c5fa43dabed917f7243aff988c | refs/heads/master | 2020-04-10T00:54:19.847459 | 2018-12-06T17:00:30 | 2018-12-06T17:00:30 | 160,699,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,423 | r | skeleton.R | # Setup --------
# Install the sample design package if needed!
if (!("sample.design" %in% installed.packages())) {
devtools::install_github("nstauffer/sample.design")
}
# Set the data source paths
path_spatial <- ""
path_tabular <- ""
path_outputs <- ""
# Load in the data --------
# Spatial stuff
# Sample frame
fr... |
ab451aa5df7c2bdd402ead7e487a08d7c64ebc40 | 01114541c33a31ff4b1134788ff0815fef397329 | /rda_cca_omics.r | 9eb5c9d3e880675046919e7c714eb44a0543d485 | [] | no_license | RJ333/R_scripts | 06b31ad1459bafc68e0c212aa55eb83e5f354be9 | a882732aeb86b10a44f5fedf86401bf20d4618f6 | refs/heads/master | 2021-04-26T22:55:19.096526 | 2019-07-22T08:30:33 | 2019-07-22T08:30:33 | 123,895,394 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,436 | r | rda_cca_omics.r | ####cca + rda omics
#counttable: otus in columns, samples in row.names -> e.g.
tomics_for_vegan2_nonzero_tpm
#metadata: metadata as dataframe in columns, samples in row.names, same order
#angabe der zu berücksichtigenden paramater mit ~...+...+...
#informationen in summary: x und y werte für samples und species, welc... |
1627d4ce1d907e1b2b9dc3972175192c9dfe3897 | f768ce5ff176370cf2a9346613252be1c9d3c0d3 | /code/server/summary_page_server.R | 82a355ecec53239d9e1acdda14215ee61efa7ec1 | [] | no_license | ShyGuyPy/DIME_CEDR_pull | 2a6dbcb239995ec262e42a214845128c61905c28 | dec6e5884be909ecb0246708efb7fc39f15a1d08 | refs/heads/master | 2021-07-07T13:55:06.521547 | 2020-12-09T20:06:07 | 2020-12-09T20:06:07 | 218,599,495 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,178 | r | summary_page_server.R | source("server.R", local = TRUE)
if(file.exists(paste0(active_path, "active_data.csv"))){#"data/ACTIVE/active_data.csv")){
#assign active_data
active_data.df <- data.table::fread(paste0( active_path, "/","active_data.csv"),
header = TRUE,
... |
a822735ae04ad394eef817b29545f8c35dc9d6c1 | 360541dd5b7f0f403f603f11f8187755d638df3e | /renv/library/R-4.1/x86_64-w64-mingw32/sjlabelled/doc/quasiquotation.R | 6caa518cb166c110c2527c639b6aca6724b72f61 | [
"CC0-1.0"
] | permissive | AGSCL/COVID19 | f6b6580c71450b818a3ed5354a0af437fce7ee5a | c20cd5a0593871776b051c2a347bb6da12a434ce | refs/heads/main | 2023-08-20T07:17:47.954356 | 2021-10-11T23:38:58 | 2021-10-11T23:38:58 | 403,793,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,763 | r | quasiquotation.R | ## ----echo = FALSE-------------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
if (!requireNamespace("sjmisc", quietly = TRUE) ||
!requireNamespace("rlang", quietly = TRUE)) {
knitr::opts_chunk$set(eval = FALSE)
}
## ----message=FALSE, warning=FALSE------... |
ea410aac8b21461910486acd10968bf2fbe32074 | a2c19b12165936b6f38edcdc657cf64e985becf3 | /man/vetools-package.Rd | 1d3541678374ccbfca110d019c73bb9a3523efd0 | [] | no_license | cran/vetools | fcfb882851ac667562bcee832cf860619ac09b73 | 945e115cc46ee4ee07684d2535d4ea60d1dccb5e | refs/heads/master | 2021-03-12T21:55:17.754628 | 2013-08-01T00:00:00 | 2013-08-01T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,580 | rd | vetools-package.Rd | \name{vetools-package}
\alias{vetools-package}
\alias{vetools}
%%%
\docType{package}
\title{
Some tools for Venezuelan environmental data
}
\description{
This toolset provides a bundle of functions to handle and unify the diverse
data formats of distinct government agencies and military bodies:
Ministerio del Ambiente... |
0686b406011ef3d3f783305fbf799fbfb3c78f37 | 7a3426e7f4ed941710996b50d66ac7187499f6b9 | /man/csig.Rd | 710b9106f58516f84a35ecdd5521f33c509aed87 | [] | no_license | cran/circumplex | c6bcea4a9de90a160cfaec9a3900226e80ac3953 | 486bb5e35e50c9e4132157aeaf5d8705c77536f5 | refs/heads/master | 2023-08-30T23:42:21.682083 | 2023-08-22T07:20:05 | 2023-08-22T09:30:47 | 145,907,033 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 738 | rd | csig.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/instrument_data.R
\docType{data}
\name{csig}
\alias{csig}
\title{Circumplex Scales of Intergroup Goals}
\format{
An object of class \code{circumplex_instrument} of length 5.
}
\source{
Locke, K. D. (2014). Circumplex scales of inter... |
9fa7013c96b243e21326bb3e48bd13b8aad9b8f7 | 2bfbb98dedfdc80cd34c56048ec8f2f1f1714f06 | /tests/testthat/test-fit_t_response.R | ef113f45591307f24a732bb20c3653b8eb7d908d | [
"MIT"
] | permissive | cran/photosynthesis | 04d817de1a0fd7a8792d2fbdf2b8260cbf17af03 | b00ebe43f876b00f0ddb1046a82b143d10540197 | refs/heads/master | 2023-08-21T14:55:58.071520 | 2023-08-15T07:20:05 | 2023-08-15T08:31:23 | 185,838,513 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 598 | r | test-fit_t_response.R | library(testthat)
library(photosynthesis)
context("Fitting temperature response curves")
df <- data.frame(
Par = c(38, 42, 55, 58, 63, 62, 83, 104, 116, 98),
Tleaf = c(17, 20, 22, 25, 27, 30, 32, 35, 37, 40)
)
df$T_leaf <- df$Tleaf + 273.15
model <- suppressWarnings(fit_t_response(df))
test_that("Outputs", {
e... |
898f138dc9f7f395fa9989752b338bb2125da057 | 976b84b26daf6cfb9ee270d1e3b3c01de6222f2b | /examples/codes/exo_chap_4_5.R | 41190a5ec0536f731574b77424a1b1f54179b118 | [] | no_license | Sheepolatas/M1-Programming | c527bdaece5919e70cb7196690290ba30ec52dd6 | 233f8212baaf6d3a61f7817fcbc3ae397b8b06b7 | refs/heads/master | 2023-03-04T05:05:28.193658 | 2021-02-18T15:35:24 | 2021-02-18T15:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,882 | r | exo_chap_4_5.R | library(tidyverse)
library(tictoc)
# Import the two datasets
table_1 = read_csv(file = 'data/table_1.csv')
table_2 = read_csv(file = 'data/table_2.csv')
cities = read_csv(file = 'data/cities_loc.csv')
# Remove articles with no pmid and no DOI, and all articles before 1975
table_1 = table_1 %>%
filter(pmid != 'null'... |
4a40fa5f196ac7b6540b3a8a9cff736fe84bafac | 7d54e23523cbdf521efa448560474013a2981aa1 | /demo/MCMC.R | 58e6f9b39e84c310bbf9841188623c5accdb6fc3 | [] | no_license | rich-d-wilkinson/precision | 40d1c18571bca19231f8a0dc8607ee2b2a807903 | acd75ce83c2913424a776c9e98f11a1b2201886f | refs/heads/master | 2021-01-17T13:58:25.667829 | 2016-07-14T15:15:25 | 2016-07-14T15:15:25 | 39,572,711 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,286 | r | MCMC.R | #########################################################################
###
### MCMC.R
### Demonstration of how to run the MCMC calculations
###
###
########################################################################
library(precision)
#Load some data
data(GlegneriSecondary)
Meelis.test(GlegneriSecondary, Two... |
05ef26af2399a761d65b6404023f1da9deecd2e5 | ceeab39e925764962faf99ff34bde6b67fe7f0e9 | /trainers_folder_code/day9/code/Proportional_Hazards.R | 70f6a23b9b9aa49faa89464923871210f1a13966 | [] | no_license | Keniajin/PwaniR_Training_2015 | d0ede8b79ca2e8f19d09e7fc9c755ebe91cce679 | 94a7d3e6dc31370c35b4572b8760b813a3de3eae | refs/heads/master | 2021-01-22T09:47:12.676486 | 2021-01-12T08:26:09 | 2021-01-12T08:26:09 | 27,430,653 | 0 | 18 | null | null | null | null | UTF-8 | R | false | false | 2,019 | r | Proportional_Hazards.R | # CHECK OF PROPORTIONAL HAZARDS
# ----------------------------
# A simple method is to fit a stratified Cox model, where we stratify according
# to the levels of a categorical covariate, and plot the stratum-specific
# cumulative baseline hazard estimates on a log-scale.
# If we have proportional hazards, the curves... |
c35e26c1f460d622f25386fcf8fc33dab1268768 | e0bae273f83296aefc64ddc6b88a35a8d4aa6d84 | /man/locational.Gini.curve.Rd | 18904ae05a40ef77ae6a1035b500c25806454859 | [] | no_license | PABalland/EconGeo | 9958dcc5a7855b1c00be04215f0d4853e61fc799 | 420c3c5d04a20e9b27f6e03a464ca1043242cfa9 | refs/heads/master | 2023-08-08T04:22:25.972490 | 2022-12-20T11:03:49 | 2022-12-20T11:03:49 | 63,011,730 | 37 | 11 | null | 2018-09-18T15:22:21 | 2016-07-10T18:00:42 | R | UTF-8 | R | false | true | 1,614 | rd | locational.Gini.curve.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/locational.Gini.curve.r
\name{locational.Gini.curve}
\alias{locational.Gini.curve}
\title{Plot a locational Gini curve from regions - industries matrices}
\usage{
locational.Gini.curve(mat, pdf = FALSE)
}
\arguments{
\item{mat}{An incidence m... |
2dcf46178e531d9fb8659cb7481725ba3f987046 | d9af06cdeb065ab315ca6d568786c729b50d5c4c | /cacheSolve.R | 6a6bdc8df99c5adf3406f5e8f4b8aafd94641d54 | [] | no_license | suniljohn/ProgrammingAssignment2 | 3693b575031aed57f4d58552b281fcdd8ea7280d | a47909da783b6e75620c8ddae2dc421e15e7bbfa | refs/heads/master | 2021-01-18T06:00:58.025122 | 2015-12-28T00:10:05 | 2015-12-28T00:10:05 | 48,650,011 | 0 | 0 | null | 2015-12-27T15:31:30 | 2015-12-27T15:31:29 | null | UTF-8 | R | false | false | 479 | r | cacheSolve.R | # This function computes the inverse of the special "matrix" created by makeCacheMatrix above. If the inverse
# has already been calculated (and the matrix has not changed), then it should retrieve the inverse from the cache.
cacheSolve <- function(x, ...) {
# Return a matrix that is the inverse of 'x'
i <- x$get... |
dd63b0d620d8b100ed0878c07219d1a934999b80 | 32308c4bd3ca65d739af17c40473e59c6a0261ba | /RedwoodDataLoader.R | c54e2317d28e02f44d39543a027a78116b899a5e | [] | no_license | Leeps-Lab/RedwoodOutputDataParser | 8aedba27a87a87aa82609b541408335831604bec | 3c0ec3b9d2433a75ca4fe133631e4acc06c8897e | refs/heads/master | 2021-05-04T10:10:08.052739 | 2017-07-12T19:42:16 | 2017-07-12T19:42:16 | 53,453,613 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 14,443 | r | RedwoodDataLoader.R | require(jsonlite)
require(dplyr)
require(tidyr)
source("r/helperfunctions.R")
# debugging --------------------------------------------------------------------
# keys = c("state", "actions", "targets")
# data=BJP.testData <- read.csv("examples/data/BJPricingExperimentData.csv")
# subdata=data[[1]]
... |
6161fe82289da66d614cef1304f48c1be915af5f | 8f86416cc6a9f8a54e81bdae2a4fc56b06fe7538 | /man/dt_quantilebins_weighted.Rd | 425e76ec1fed3b9d91464c4ee3a06c8d5363016c | [
"Unlicense"
] | permissive | BoostOlive/Rtoolkit | e1c596d99f1b131a7ebc4608eca908beda0365d6 | 6d53a94a94bb4d01a34edf906c1e5d8ee0b2c6aa | refs/heads/master | 2022-12-02T17:55:50.877027 | 2020-06-26T14:23:37 | 2020-06-26T14:23:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,349 | rd | dt_quantilebins_weighted.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatable.r
\name{dt_quantilebins_weighted}
\alias{dt_quantilebins_weighted}
\title{Weighted quantile bins from data.table data}
\usage{
dt_quantilebins_weighted(
DT,
numerical.var,
wt.var,
by.vars = NULL,
ntile = 5,
outvarnames =... |
47418220c8f36ee4f9405dcf67e67289c4e3d492 | 5cfcd5e4dc4068737571a376cd8ee414810f7289 | /D_count_matrix_expl_dat_analysis/4_PRINC_COMP_ANALYSIS.R | 3e9d13a038f9aeca3cf3214ca325a9201941d4a7 | [] | no_license | RJEGR/Small-RNASeq-data-analysis | e42926cf3e6d28c117cb5bcd4a41d371bdbd528b | 1b0ea5a3f302f942e881c624497b2ed09da0978c | refs/heads/master | 2023-09-04T12:34:50.444113 | 2023-08-25T00:05:32 | 2023-08-25T00:05:32 | 77,959,541 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,365 | r | 4_PRINC_COMP_ANALYSIS.R |
rm(list = ls())
if(!is.null(dev.list())) dev.off()
options(stringsAsFactors = FALSE, readr.show_col_types = FALSE)
path <- "~/Documents/MIRNA_HALIOTIS/SHORTSTACKS/ShortStack_20230315_out/"
#
pHpalette <- c(`Experimental`="#ad1f1f", `Control`= "#4575b4")
#
out <- read_rds(paste0(path, "Counts_and_mtd.rds"))
dim(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.