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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd10acd84d900539097bc0d96b6bd60531f05bfc | 603d3f3d0be5baf9e458686f3d8e90d1a95f7161 | /man/gardasil.Rd | d0983603d09c7d2996314f8ebeae619ec8795b55 | [
"CC0-1.0"
] | permissive | cgpu/ProjectAsPackage | 27f1b79269622b238eb67193afe1ddc78c2ed838 | 1db6c34597a3081f36b9b1dc356faa454aa5fe41 | refs/heads/master | 2021-03-03T02:24:54.400135 | 2020-03-08T18:32:35 | 2020-03-08T18:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,256 | rd | gardasil.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gardasil.R
\docType{data}
\name{gardasil}
\alias{gardasil}
\title{The Gardasil dataset in R data.frame format}
\format{A data.frame with 1413 rows and 11 variables.
\describe{
\item{Age}{Age in years}
\item{AgeGroup}{Categorical age: 18-2... |
ae4c45e13a6e5f1ef2c333a9cd5b16e681778b74 | b78104f893c4a6c2e1bb531e4d1a03949df51396 | /inst/PhyloProfile/global.R | ba11798cf0ababe6781a4a50dc150dae48afa218 | [
"MIT"
] | permissive | ermali7/PhyloProfile | 3de81f4538edfacb3134683d3b888c03bc0dd4a4 | e9ff67a00586cb61ae9a8d3c0dcc1b22c6fcdc4b | refs/heads/master | 2020-05-16T15:27:57.915585 | 2019-03-26T18:28:27 | 2019-03-26T18:28:27 | 183,132,241 | 0 | 0 | MIT | 2019-04-24T02:32:23 | 2019-04-24T02:32:22 | null | UTF-8 | R | false | false | 1,963 | r | global.R | #' Startup script for PhyloProfile
#' 1) install and load packages
#' 2) start the PhyloProfile app
source("R/functions.R")
# List of dependent packages --------------------------------------------------
packages <- c("shiny", "shinyBS", "shinyjs", "colourpicker", "DT",
"devtools", "ggplot2", "reshape2"... |
754caac8cc9fdbb1397f15586d676c99a4b9e6d1 | 0f8a97baf9c9373ea62476abbce05bf8f89a9363 | /alloy.R | 87f647febc81b65aff3d1c7a78b6fc8c8a3ced74 | [] | no_license | tastyCanOfMalk/historical.MAL | 642d5b3fcef9a020f48d92d0593f6a72cf9dceaf | 7f34f2496e4ef70182415a85df1a7c614f73d268 | refs/heads/master | 2020-04-20T09:35:06.681740 | 2019-07-24T13:59:06 | 2019-07-24T13:59:06 | 168,768,666 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,744 | r | alloy.R | unique(x$alloy)
length(unique(x$alloy)) # 60
# remove double spaces, commas, periods, caps
# filter for unique sounds
xx <- x %>%
mutate(alloy = str_replace_all(alloy, '\\ ', '')) %>%
mutate(alloy = str_replace_all(alloy, '\\,', '')) %>%
mutate(alloy = str_replace_all(alloy, '\\.', '')) %>%
mutate(alloy =... |
b1c0b734c80b5aea3b9ff9fab516d0b77488577e | df96d28aba4caa3dcfb0b7afe5aadd8fb2a6526c | /poisson_models.R | 7e7e65c134260994eedd0c8a2eec38fbba8d4a2b | [] | no_license | mikemiller442/TCP_Connection_Analysis | 87d43002a6758ca75afd969bc73423ecec64dbd8 | 1132c7d938ca4648e40ca447d72bf6c5d68c6f45 | refs/heads/master | 2020-12-02T22:01:20.689456 | 2020-01-06T16:56:41 | 2020-01-06T16:56:41 | 231,139,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,651 | r | poisson_models.R | library(pscl)
library(tidyverse)
tcp_data <- read.csv(file="TCP_dataset3.csv", header=TRUE, sep=",")
nrow(tcp_data)
tcp_data <- tcp_data %>%
mutate(zero_RST_post_fin = post_fin_resets == 0) # makes an indicator variable of whether or not
# there were zero TCP rese... |
9273260447523400b1cfcbdd12cf024a6d6abbd2 | 1c81330dcc0ce4982319859ffc0147fc4c8d504f | /loadTheme.R | b0fca2875c9060a7e16b27e68a8809b1721afe43 | [] | no_license | eioe/0303_INCASI | b2babc50d39e9251d1d299fd40e0f1f7d875544b | 689a4f15e29d240a435e4f9676550f6b6ab27044 | refs/heads/master | 2021-04-03T08:33:50.274672 | 2018-03-08T18:42:01 | 2018-03-08T18:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,030 | r | loadTheme.R | # Define mytheme
fontsize = 11
mytheme <- theme_bw() + theme(legend.position="none") +
# Set information about ticks
theme(axis.ticks=element_line(size=0.2358491)) +
theme(axis.ticks.length=unit(0.05,"cm")) +
# Remove all pre-defined lines
theme(panel.grid.major=element_blank()) +
theme(panel.grid.minor=elem... |
f81e0bfcb442606e9835cb2c5ca86fea2b8e94d5 | 6249a9849904a3d584ffd4b4b0fd602d842a8d57 | /shinylayouts/shinythemes demo/server.R | aead9c6c1bfedd728f014ef1dde2f10f995ce09e | [] | no_license | kumar-sameer/R-Shinyapp-Tutorial | 737da46ffeb48db27326ed4876f58340e595d7c0 | 2d30b20212c1f1bf19f96ba8b319b110344fb816 | refs/heads/master | 2020-03-18T10:29:30.453843 | 2018-05-22T08:24:53 | 2018-05-22T08:24:53 | 134,615,528 | 0 | 1 | null | 2018-05-23T19:19:48 | 2018-05-23T19:19:48 | null | UTF-8 | R | false | false | 301 | r | server.R | library(shiny)
shinyServer(function(input, output, session){
dat <- reactive({
switch(input$dataset,
m = mtcars,
p = pressure)
})
output$table <- renderTable({
head(dat(), input$n)
})
output$summary <- renderPrint({
summary(dat())
})
})
|
40782fed2057379d2ed532436090af196234c3ac | 5aa95a422c7af9d310bdf3230f92c73968ea8119 | /man/revpairs.Rd | 2782be57539a11d4ce1bbdf1b068a2af8227d4f2 | [] | no_license | robert19960424/IndGOterm | d28d07eb4a46015f29a00e635c95eb13ed9cb0f4 | 4ceb1a6dd44c3cbe2f803421702d095251fd7bd2 | refs/heads/master | 2023-03-06T02:03:01.140347 | 2021-02-04T15:30:45 | 2021-02-04T15:30:45 | 335,992,001 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,006 | rd | revpairs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/revpairs.R
\name{revpairs}
\alias{revpairs}
\title{get reverse pairs from all the tumor samples}
\usage{
revpairs(
stable.pair,
patients,
threshold = 0.05,
spairs_threshold = 0.99,
threads = 1L,
capacity = 300000L
)
}
\arguments{
... |
5b2c90bd6a966f3f185a389b92e0f61e4d9551f0 | 81c5ec43a8b8712dc540edb3eafdc1b0efbc42f4 | /Rproject/esem_analysis_ver2.R | 8a8467fe4205ee45a788b5eaf18b5fdc640e27e9 | [] | no_license | bellmit/dependency-replication-package | 26157f5518bed1416a7f09205eaf620001486609 | 6969ab06fb379431a468697854324eed19e21e92 | refs/heads/master | 2023-08-28T08:36:19.500705 | 2021-11-04T22:40:01 | 2021-11-04T22:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,165 | r | esem_analysis_ver2.R | ##--- Load packages ---##
list.of.packages <-
c("ggplot2", "lubridate", "dplyr", "corrplot", "tidyverse", "flipTime", "remotes")
# list any missing packages
new.packages <-
list.of.packages[!(list.of.packages %in% installed.packages()[, "Package"])]
# if packages missing --> install
if (length(new.packages) > 0... |
2572e9dbb3870263df00dc723464e7b7d2c4aa62 | b961b2734d9c1ddea03be0d9d3d4c2be909cd76f | /Ford_Fukelson.R | 06a4f170a491b62cd098850860cff95704ef9b67 | [] | no_license | vobon/Implementation-sous-R-Algos-Recherche-Operationelle | bbaddc8fc3b165c3a8de07b37975e7c5736b57bf | 871a63a4cc74c133c3686a7af2e80966a6d975b1 | refs/heads/main | 2023-04-30T14:00:53.074480 | 2021-05-10T18:03:43 | 2021-05-10T18:03:43 | 366,132,812 | 0 | 0 | null | null | null | null | IBM852 | R | false | false | 2,147 | r | Ford_Fukelson.R |
#Tableau des sommets
X=1:7
#Matrice d'adjacence du reseau avec ses capacitÚs
A=rbind(c(0,5,8,0,0,0,0),c(0,0,0,4,2,0,0),c(0,0,0,0,5,2,0),
c(0,0,0,0,0,0,7),c(0,0,0,0,0,0,3),c(0,0,0,0,0,0,3),c(0,0,0,0,0,0,0))
#Matrice des flots realisables
P=matrix(0,nrow=length(X),ncol=length(X))
#Matrice d... |
963dc08632f3bd673536c9acd4fa10774d7c0346 | 983faccc7fd0d4184fc8657cb6b0d0e5c4100e84 | /scripts/4_model/regressionMultivariateLassoByGroup.R | fd0ed33ada59ffe0aabace5f59c1e707912243f1 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | ldecicco-USGS/GLPF | 668137679a9765d562312515ca32eba037ea8bb2 | 3a36dc344a92205ce65e620806e97191722bf72e | refs/heads/master | 2020-12-25T16:57:37.364703 | 2019-06-05T19:20:38 | 2019-06-05T19:20:38 | 59,784,854 | 0 | 1 | null | 2017-05-23T14:17:31 | 2016-05-26T21:37:49 | R | UTF-8 | R | false | false | 11,637 | r | regressionMultivariateLassoByGroup.R | # Next steps:
# consider refitting with lm() and examining slopes by event
# consider automated way to keep track of slopes for individual events within group regressions
# -maybe use median regression for this.
# Heuristic overlap analysis: decision tree
library(glmnet)
library(dplyr)
library(RColorBrewer)
library... |
8a5515587717f661d137f28fe9e6b4dc9c439bda | f2643256c6611d7de0db96d162f594388c2c2c50 | /analyses/Field_Monitoring/duplicates.R | 09dd8d3ab6756d94382d410c797b169f383c6236 | [] | no_license | raubreywhite/trial_dofiles | e06a5b3b39e9195eda79dd33856d67c918ec4053 | eface3b83b107cf7e621b3c654e65b5cbd45b711 | refs/heads/master | 2022-06-14T03:26:17.492945 | 2022-06-02T07:27:04 | 2022-06-02T07:27:04 | 114,857,557 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,123 | r | duplicates.R |
###### SETUP STARTS ######
setwd("C:/data processing/trial_dofiles")
fileSources = file.path("r_code", list.files("r_code", pattern = "*.[rR]$"))
fileSources=file.path(getwd(),fileSources)
sapply(fileSources, debugSource)
Setup(IS_GAZA=FALSE)
###### SETUP ENDS ######
###### LOAD DATA ######
d <- LoadDataFileFrom... |
379be78cab28e2d97315642dd9c2af99a7f7aad6 | 9c226a1557a08165e08bc660150a4e20868efbf7 | /R/print.R | c48936c3c44463c7170d5cf078cf76f7b1f70101 | [] | no_license | cran/ExhaustiveSearch | 55dfc7c515a98079400fabfcd79e1937717103c8 | 0215018c8769856fd9fb6aa4e30716f026bf7622 | refs/heads/master | 2023-02-24T13:47:10.245395 | 2021-01-18T16:00:11 | 2021-01-18T16:00:11 | 334,106,119 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,106 | r | print.R |
formatSecTime = function(sec) {
days = sec / 60 / 60 / 24
hour = (sec / 60 / 60) %% 24
min = (sec / 60) %% 60
osec = sec %% 60
paste(paste0(sprintf("%02d", floor(c(days, hour, min, osec))),
c("d ", "h ", "m ", "s")), collapse = "")
}
#' Print ExhaustiveSearch
#'
#' Prints a comp... |
4c2aed07feddc067e97d25e68cda7c2aa12c8dfd | b471305a84799b631091683dda7b2a8f4ab2fe4f | /R/TwilightFree.R | 290f1e048b8fa088cfd509cd4f3377ca1deab79b | [] | no_license | ABindoff/TwilightFree | 3c168f099b8119cb05aafcf63ce7820339951415 | d65928df5367077c4abbb89f37f10c950f8d9bc0 | refs/heads/master | 2021-05-15T06:33:46.454401 | 2021-02-24T10:26:09 | 2021-02-24T10:26:09 | 113,830,244 | 9 | 1 | null | 2021-01-14T23:57:10 | 2017-12-11T08:05:52 | HTML | UTF-8 | R | false | false | 4,838 | r | TwilightFree.R | require(SGAT)
require(raster)
#' Specify a model for forwards-backwards estimation
#'
#' @param df data.frame containing `Light`, `Date`, and optionally `Temp` data
#' @param alpha hyperparameters for the noise (shading) assumption
#' @param beta hyperparameters for the movement assumption
#' @param dt optional paramet... |
f84e927da0d7eb35060efb87483227c0030a2f39 | 37d46d358f9289b3099aad8c5066b3e87dc9de6e | /Black Friday Sales/Bivariate.R | d3c0ab56ae7358e9df73c1fa72c49ed147b3479a | [
"MIT"
] | permissive | sachinshubhams/Black-Friday-Sales | 297a0cd8398f0f599bb1eceb534484887be9628c | eb8dcf357dd2758e55ed615235090aa7a87f8e0a | refs/heads/main | 2023-03-08T10:40:32.994828 | 2021-02-19T23:56:55 | 2021-02-19T23:56:55 | 340,280,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,280 | r | Bivariate.R | frow_f <- fluidRow(
box(
title = "Bivariate Chart"
,status = "primary"
,solidHeader = TRUE,background = 'purple'
,collapsible = TRUE
,plotOutput("bar1", height = "500px",width = "500px")
),
box(title = "Variables in the data",status = "primary"
,solidHeader = TRUE,background =... |
0b6a42317df83fee5b6aabb075b84ca5a20ee223 | ecde3684aba9a09fb61bedf6b646e656a2ff2a13 | /Unit 4/qplot.R | d635d48588b400301f778234c66d66b0590417b4 | [] | no_license | AdarshMundra/R-Programing-Udemy | a565b2f2f1ab7037dc9da600614476cecba90936 | 2f1aa056e8fe75493fdaf5db618e07da52ee8794 | refs/heads/master | 2020-12-14T20:26:35.539351 | 2020-01-19T07:29:36 | 2020-01-19T07:29:36 | 234,858,674 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,159 | r | qplot.R | #code with Adarsh Mundra
a<-read.csv(file.choose())
a
getwd()
rm(a)
a<-read.csv("DemographicData.csv")
#-------------------------------------------------------------#
a
nrow(a)# number of rows
ncol(a)# number of col
head(a)# head file
head(a, n=10)# head file of 10 dataset
tail(a)# tail file
tail(a,n=10)# tail file ... |
137448ef32487a664d5d33c5020a5c312f836ae9 | bca63e5a36852745b285c801f0f1d66d79b63933 | /R Scripts/Scripts Hisam and I Worked on/EWMA Volatility.R | ae49f82efa768274a7e58c9889ef12bfbd0f7ac8 | [] | no_license | arkagogoldey/Finance_R_Files | 17201641c1ef05715bca8889dbfe7ff64cafe357 | 3b8b1fc5dd32448c7db637fc7306a7be50453710 | refs/heads/master | 2020-04-18T02:53:16.520896 | 2018-09-25T16:43:05 | 2018-09-25T16:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 540 | r | EWMA Volatility.R | #EWMA (Exponentially Weighted Moving Average Vol)
library(quantmod)
getSymbols("UNP", from='2010-01-01')
head(x)
x<-UNP$UNP.Adjusted
EWMA<-function(x,lambda)
{
returns<-Delt(x,type="log")
return_sq<-returns^2
y<-as.matrix(x)
n=(1:nrow(y)-1)
z<-as.matrix(n)
weights<-(1-lambda)*lambda^z
weights<-sort(weights... |
3fd20fc1a3a3485d9f1ca5cf53e5e16142767409 | a804ccc49e485d31f1432261678618da956df6e9 | /Ad-hocs/wordcloud_comparison.R | 49dd30a42a186f591417b8ecad189e5e4b718e8b | [] | no_license | mark-me/lyric_mining | b63d45a81f3a15332980e20050038dfc2e0d267e | 9932eff4ab7abe684b48ce1765272a04133abd3c | refs/heads/master | 2020-05-21T05:43:27.929771 | 2019-05-20T14:11:54 | 2019-05-20T14:11:54 | 185,927,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,396 | r | wordcloud_comparison.R | df_artist_lyrics <- df_lyrics %>%
filter(!is.na(lyric)) %>%
group_by(artist) %>%
summarise(lyric = paste0(lyric, collapse = " ")) %>%
ungroup() %>%
mutate(doc_id = row_number()) %>%
dplyr::select(doc_id, text = lyric, everything())
# Make factor of artists for modelling
levels_artists <- unique(df_ar... |
c0ded228f470e8e39aff3d14f03b5b932c0090e4 | 044970cb5b2b45ba98de18d9e3b105dc9ce79849 | /man/MLeffort.Rd | f597ecce96f578dad8b0c2e9b08df2522978cace | [] | no_license | quang-huynh/MLZ | f1d1a8f293e09e1b6b813814ca4f27ad10a4e34d | 604045a7f5e8629ad7f79e2c7b2649916864af72 | refs/heads/master | 2022-05-07T23:03:56.165755 | 2022-03-31T06:15:26 | 2022-03-31T06:16:03 | 83,587,314 | 3 | 3 | null | 2018-05-14T18:11:50 | 2017-03-01T18:29:51 | R | UTF-8 | R | false | true | 2,048 | rd | MLeffort.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/estimation.R
\name{MLeffort}
\alias{MLeffort}
\title{Mean length with effort mortality estimator}
\usage{
MLeffort(MLZ_data, start, n_age, estimate.M = TRUE, log.par = FALSE,
eff_init = 0, n_season = 1L, obs_season = 1L, timing = 0,
... |
bf69b60d8a100f1f72c84c22fbc8764d071738eb | 02db52e1ab4453e85f03c4d7dd19274626033dbd | /man/new_report.Rd | 2e87ed9ffdd31456729f53e29ffc1d006e8ac764 | [] | no_license | riverlee/reports | def177c335b880bc0345de4a6d4a2984ea07f3fa | 26ea8b52f2a5d4f92c70fa9101eac648aa432038 | refs/heads/master | 2021-01-15T21:03:15.405664 | 2013-08-30T18:07:03 | 2013-08-30T18:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,888 | rd | new_report.Rd | \name{new_report}
\alias{new_report}
\title{Report Template}
\usage{
new_report(report = "report",
template = getOption("temp.reports"),
bib.loc = getOption("bib.loc"),
name = getOption("name.reports"),
github.user = getOption("github.user"),
sources = getOption("sources.reports"), path = getwd(),... |
be3df5cb9f85cc9a89c6a18eda4f29c7531647bd | bf46cf1cee1c44300bccb82c19d4e0599c60583f | /conditions.R | 92fc6fa4106b613720810b3d9bbdeeecb0839c0a | [] | no_license | juhnowski/r_lesson | e13183a8f72fce14db0e139eb22b72890ed00983 | 5f59b07a9dfcb0d553d8cb950e055d8b2951a330 | refs/heads/master | 2020-04-21T23:17:35.585155 | 2019-02-11T00:40:56 | 2019-02-11T00:40:56 | 169,942,137 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 329 | r | conditions.R | var1 = 5
var2 = 35
if((var1+var2)>100){
print(">100")
} else if ((var1+var2)>75){
print(">75")
} else if ((var1+var2)>50){
print(">50")
} else {
print("less")
}
switch(1,
"1" = print("one"),
"2" = print("two")
)
switch("%",
"1" = print("one"),
"2" = print("two"),
print("de... |
b94ba171e2279c6fc79afaf351e30a59fcddb4c4 | 8d1180a293cf536c4e4aa8ea5bd765ebebdd7f48 | /tests/testthat/empdist.R | 0c455b73c7689b587eab66839ee0cc267aea2589 | [] | no_license | TaoYang-dev/mTDR | 6ce029223029372fb39e08fb760f942d1f057a3d | 5edad2fad3c31724c63ff011c0c9513ced3651d6 | refs/heads/master | 2021-09-06T05:08:24.761722 | 2018-02-02T16:21:56 | 2018-02-02T16:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 326 | r | empdist.R | library(mTDR)
context("empdist")
test_that("empdist() returns cumulative density.", {
data("chipseq")
u <- empdist(chipseq$R1, chipseq$R2)
expect_is(u, "matrix")
expect_equal(length(pd), nrow(chipseq))
expect_equal(nrow(u), nrow(chipseq))
expect_equal(ncol(u), 2)
expect_true(all(u>=0&u<=1))
... |
d03618cd843eae337131bdf597dcdf18eeefbd2a | 463b2d717b0548bd969b236014e843372db5a795 | /BusulfanPackages.R | a422b74c595ed77964366a1f7278359f0ab345a3 | [] | no_license | Zylatis/BusulfanOriginal | dafc4a27f33c428a20db82c7c9650cffbf3db198 | a10c952e316f085d49d056d5e9c938d7294cd527 | refs/heads/master | 2016-08-12T08:52:55.923169 | 2016-04-04T16:38:35 | 2016-04-04T16:38:35 | 55,422,896 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 201 | r | BusulfanPackages.R | require(GenSA) #library for simualted annealing
require(foreach)
require(xlsx)#for exporting
require(iterators)
require(parallel)
require(doParallel)
require(ggplot2)
require(gridExtra)
require(gdata)
|
8d38325b2bc42e8a506538b990c26faa9528c02e | 30b4837c2e6954c0e589f8cbf48aacdd24204361 | /config.R | e508d51d63f4f94fc47d9c78d02b655ed3355ae6 | [] | no_license | svsgvarma/RGDB | 4cbe6ae2d7e42610a4061efc802436e3e6011512 | ceed1d88bb35b9862c878c5a74506d25eb477236 | refs/heads/main | 2023-01-01T03:37:55.592375 | 2020-10-25T15:31:15 | 2020-10-25T15:31:15 | 306,975,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 283 | r | config.R | print("Run config.R")
#install relied packages
source("global.R")
#init input and library
rm(list=ls())
library(shiny)
library(dplyr)
library(data.table)
library(DT)
library(readr)
#change if necessary
dataDir="./InData/"
dataSuffix=".tsv"
#global variables if any
#maxRect=2500 |
ab87cac000a38d2533deb11959699f240712da5d | ec2e6a32bdf14f9d0cf19b34429e41eeeecf6328 | /Spatial Interaction Models /Spatial Interaction Modelling for Dummies.R | 979a3b6cbdd69f615bcc45e4d493a245cb9a5134 | [] | no_license | YX577/Urban-Simulation | 199efa70985dea1f7ef7b9987dbe4719664d9811 | 8ffcf2d7deb035b880d41d00ed1c7e2f442cf554 | refs/heads/master | 2022-11-20T01:36:37.629944 | 2020-07-07T21:45:15 | 2020-07-07T21:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,461 | r | Spatial Interaction Modelling for Dummies.R | # http://rpubs.com/adam_dennett/257231
library(sp)
library(MASS)
library(reshape2)
library(geojsonio)
library(rgdal)
library(downloader)
library(maptools)
library(dplyr)
library(broom)
library(stplanr)
library(ggplot2)
library(leaflet)
#Fetch a GeoJson of some district-level boundaries from the ONS Geoportal. First ... |
ae544cd1dc03b7d4ca537a9ef047db2ad83a8708 | b695598eca6723476811d8898be2a50bc6d9250c | /NLPSENTfiles/R_files/AMTD & AmeriTrade Term.R | d719a24a90db2a8c247ba5791cc9701c36960e46 | [] | no_license | ATCUWgithub/GoogleTrends | 0f127363a4159f14d0deb2349cdf9352ebb4d4d6 | 878955d9af0bf7c74f415e4cfc6778115fb23278 | refs/heads/master | 2020-12-27T10:39:37.409911 | 2020-03-05T04:32:48 | 2020-03-05T04:32:48 | 237,873,265 | 1 | 1 | null | 2020-02-21T00:22:22 | 2020-02-03T02:53:48 | null | UTF-8 | R | false | false | 5,815 | r | AMTD & AmeriTrade Term.R | library('quantmod')
library('corrplot')
getSymbols(c("AMTD"), from="2015-01-19", to="2020-01-17", src="yahoo", periodicity = 'weekly')
data = read.csv('AMTD Trend.csv', header = T)
AMTDT = data[,c("Week", "TDAmeritrade")]
##Earnings
AMTD[53]
AMTDT[223,]
x = c(2, 15, 28, 41, 54, 67, 80, 93, 106, 119, 132, 145, 158, 17... |
499b9a1cb2c35261fc3b72cc3db8436db86af371 | 6daeb33a35fd354502e1c23e977355295eef6f6c | /man/approx_dt.Rd | fe702eefbc104c8b8127b1b83e277e9fdaf3e998 | [] | no_license | pik-piam/rmndt | 2642f3b2703b148f37bd942b3b96ae7a8a0bbbbc | f7b0704d78f2058c690885726247c703d9677277 | refs/heads/master | 2023-07-10T13:14:27.388585 | 2023-07-10T09:32:59 | 2023-07-10T09:32:59 | 243,305,595 | 0 | 3 | null | 2023-07-10T09:33:00 | 2020-02-26T16:07:29 | R | UTF-8 | R | false | true | 2,197 | rd | approx_dt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/approx.R
\name{approx_dt}
\alias{approx_dt}
\title{Approximate missing values in a data.table.}
\usage{
approx_dt(
dt,
xdata,
xcol,
ycol,
idxcols = NULL,
keepna = FALSE,
extrapolate = FALSE
)
}
\arguments{
\item{dt}{a data.table... |
69a23072ea6b9643f039c8d6ef6028acd46a9e01 | 2defda9def564e710c2af56daf8f84819f03bcfe | /R/functions.R | fdf50c1e1d77731182cb2a37eaff686fa89c1f8c | [
"MIT"
] | permissive | fdrennan/dockerflow | 6337febd256242c6717d99a77f6c67bbee06627d | 85b0eb38de48b1e323ac95cadf9d8af88f903a97 | refs/heads/master | 2022-12-22T02:26:36.432464 | 2020-10-01T03:23:05 | 2020-10-01T03:23:05 | 300,122,502 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,803 | r | functions.R | #' drf_base
#' @export drf_base
drf_base = function(name = 'Dockerfile', version='r-base:4.0.2', workdir = '/') {
base_version <- glue('{version}')
return(list(base = base_version, name = name, workdir = workdir))
}
#' drf_apt_get
#' @export drf_apt_get
drf_apt_get = function(apt_get='everything', packages = NULL)... |
a382c499c5c51e33db2b0db94bed83207c7dfb96 | b613548fe00caefe8aee62712535b3b70222f9d6 | /EJ6b.Convergence.R | 118153636637879bd34d3bb5bf4f3235360010e9 | [] | no_license | xyshell/MF793 | efc4ea711a894480f435081f7251377afe2cef19 | 3b6a0d82ac715bae3699fde69ca9f31adbdc1d64 | refs/heads/master | 2020-03-31T11:22:00.090080 | 2019-02-27T19:48:55 | 2019-02-27T19:48:55 | 152,173,829 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,074 | r | EJ6b.Convergence.R | #
# Illustrating the Inverse Transform method.
#
# 1) Simulate Uniforms
uu<-runif(10000)
# 2) Compute F-1(U) for all these uniforms
xx<-qnorm(uu)
hist(xx,nclass=100,prob=T)
#points(xx,dnorm(xx),col="red")
lines(xx,dnorm(xx),col="red",lwd=2)
#
# Some Commands to illustrate convergence of Estimators
# CLT with vario... |
142419aa7de14f4b2b43e091224a3f29263823d5 | 75d59c8da36f2f6a9df2ca6acbf1dda4c1cee4ae | /man/graph_data.Rd | 943c5cbfa210e347fb27b0658ac40bbfe5edef5e | [] | no_license | BowenNCSU/RGraphM | 9039cd120d51ecf687bf4191264df711dd12bd63 | 5c57eaa2aae809b49e2a1a6a466adf175a3ee0ec | refs/heads/master | 2020-04-10T07:56:28.256678 | 2018-05-15T21:40:21 | 2018-05-15T21:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 599 | rd | graph_data.Rd | \name{graph_data}
\alias{a}
\alias{b}
\docType{data}
\title{
Two randomly shuffled isomorphic graphs
}
\description{
A and B are randomly generated adjacency matrices as shown in the example of run_graph_match function.
a and b are adjacency matrices from the test_simple example in graphm library.
}
\format{
\descr... |
612fcdfc7bc103285e7c6c0079cf5ff577ded144 | d6e3f8759f52fee91d1ee7dcd813751593aa906e | /Code/PLSC503-2021-WeekTwelve.R | 3e4cc8f8a87314cb7863a123f1e93e2efbb8fe35 | [] | no_license | nsflemming/PLSC503-2021-git | cf822efac01886f9294305b84c3085bd2023de1e | 55ad1a8efd901fd040724029e3d1e3f7293b161a | refs/heads/master | 2023-02-26T09:24:51.821351 | 2021-04-28T12:21:11 | 2021-04-28T12:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,358 | r | PLSC503-2021-WeekTwelve.R | ##########################################
# Code for PLSC 503 - Spring 2021
#
# Regression models for ordinal- and
# nominal-level outcomes...
#
##########################################
# Packages, etc.:
require(RCurl)
require(MASS)
require(mlogit)
require(VGAM)
require(aod)
require(car)
# Options:
options(scipen... |
d94a88635964b6ed166b8e5116dac2fa798bd17a | c191740f13d2586c8942a8db23d81e0bab365ee9 | /R/rmAllVars.R | 4f09aba0217ec88e84b274fd4bce500c215de69b | [] | no_license | duncantl/CodeAnalysis | 683bd32ada07c24f85a4739a31d900411b573fab | 726450a07d7ace054db6d4743cf895a29e16deea | refs/heads/master | 2023-09-04T02:56:23.129429 | 2023-09-04T01:38:04 | 2023-09-04T01:38:04 | 21,444,160 | 13 | 4 | null | 2015-07-30T02:54:00 | 2014-07-02T23:58:21 | R | UTF-8 | R | false | false | 873 | r | rmAllVars.R |
isRemoveAllVars =
#
#` @title Determines which expressions are of the form rm(list = ls())
#
function(e, remove = FALSE, asIndex = TRUE)
{
w = sapply(e, function(x) is.call(x) && as.character(x[[1]]) %in% c("remove", "rm"))
if(!any(w))
return(if(remove) e else if(asIndex) integer() el... |
b0a9058ef30d594d4e6a6656dd8578364598f317 | c02a1052776295260500d631e6ac6fbdd7bf674a | /R/iris-ex.R | 97b26ddb55421f6d36eb36d411ad13c524c2241a | [] | no_license | anhnguyendepocen/VisMLM-course | 877d48fe14f0f7d64fc8b29487cdb23c9c10a4ab | 97d04c6576481595b417b4a9ed0f90b38631e21a | refs/heads/master | 2023-03-25T21:27:24.418661 | 2021-03-15T17:05:23 | 2021-03-15T17:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,443 | r | iris-ex.R | #' ---
#' title: "Iris data examples for EqCov paper"
#' author: "Michael Friendly and Matthew Sigal"
#' date: "21 Jun 2016"
#' ---
#' This script reproduces all of the analysis and graphs for the MANOVA of the `Iris` data
#' in the paper and also includes other analyses not described there. It is set up as an
#' R ... |
51c0301e47dcb37c044874c7e7fa5535f877edac | 70f3c5dd76e97a7d5e79098700b65ad464fb50a3 | /cachematrix.R | f690aad519fbcee10bd3552244b763525417c760 | [] | no_license | nicolehanjing/ProgrammingAssignment2 | 93b5f78cfb1f939382e12e1a785410e424140c0e | 21023a0e32b2433e30c684217e0ec34662fded1b | refs/heads/master | 2021-06-06T16:49:34.785441 | 2016-07-27T06:14:43 | 2016-07-27T06:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 695 | r | cachematrix.R | ##This function is going to make the cache matrix
##Two variables called x and s, x is the matrix requiring processing,
##and s is the result after inversing
makeCacheMatrix <- function(x = numeric()){
s <- NULL
set<-function(y){
x<<-y
s<<-NULL
}
get <- function() x
setinverse<-function(solve) s<<... |
5c1940ff458bac839dd399101670f2883d76298d | 4e5b7c10987221be70bf97f1078ff212bd9a6b87 | /man/sixCycleStat.Rd | 8ec5ce8ccdb5e205d0a7d2601f9f21a379d2b075 | [] | no_license | uvacorpnet/rem | 1f50b9becd8a7533d4388bbd4a1ea401e0aa8fb8 | e027825de55265354667575e4fe883d93f083d38 | refs/heads/master | 2020-12-04T15:09:18.431842 | 2020-03-13T15:44:13 | 2020-03-13T15:44:13 | 231,812,154 | 3 | 0 | null | 2020-01-04T18:48:00 | 2020-01-04T18:47:59 | null | UTF-8 | R | false | false | 5,098 | rd | sixCycleStat.Rd | \name{sixCycleStat}
\alias{sixCycleStat}
\alias{sixCycle}
\title{Calculate six cycle statistics}
%
\description{Calculate the endogenous network statistic \code{sixCycle} that
measures the tendency for events to close four cycles in two-mode event sequences.}
\usage{
sixCycleStat(data, time, sender, target, halflife, ... |
f0c6dd5a4e942b3b0d77dda50524ce05c9c72059 | 557db962cfb493463ec6e7d52fc27d46105db081 | /R/blob_client_funcs.R | d897533da515397691259706b3ac6805430f5572 | [] | no_license | cran/AzureStor | 101eb0f24a1f7d491882be51199f8a02a9f8a38e | 6d28f84d8888eecefe83fdacb635e4eda3d8d796 | refs/heads/master | 2022-06-13T10:58:01.035371 | 2022-05-25T06:00:02 | 2022-05-25T06:00:02 | 163,115,188 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,292 | r | blob_client_funcs.R | #' Operations on a blob endpoint
#'
#' Get, list, create, or delete blob containers.
#'
#' @param endpoint Either a blob endpoint object as created by [storage_endpoint], or a character string giving the URL of the endpoint.
#' @param key,token,sas If an endpoint object is not supplied, authentication credentials:... |
3df17f2679d71028648e293640b60d98af3b107f | 02c44aa82a8a6132ee5a6742256a1825bbbe38b0 | /BOXCOX-in-R/BOX_COX_Main.r | 79cd797eb5476f4bab20ca770345cfbc97e577cf | [] | no_license | coderwithpurpose/ML | a694ae14434a1d4afb650f246cc26c8066fbdcbc | 56a1cdaa1b16034f3a78f8c83fd8c638c6af7e98 | refs/heads/master | 2020-04-12T12:36:44.351026 | 2019-10-29T03:12:06 | 2019-10-29T03:12:06 | 162,497,199 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,952 | r | BOX_COX_Main.r | library(MASS)
rm(list=ls())
housing_data = scan('https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data')
housing_df = as.data.frame(matrix(housing_data, ncol=14, byrow=TRUE), stringsAsFactors=FALSE)
housing_prices = housing_df[, c(14)]
features = housing_df[, c(1:13)]
housing_reg = lm(housing... |
178bce292b2e4fa7292e244d529af673546b4c78 | ef3d97cb6751d2124eb4680ccbd1922d4f7ce6ca | /R/gogr.R | 63a8d68758f7cc4126b759614d6c289a6d2884c1 | [] | no_license | ajschumacher/gogr | dfc15170c1de917847a052485447d4b7ee6ea8ba | f4f3d477853cbb446e8c4b18dda82d47098550a3 | refs/heads/master | 2020-04-25T23:32:03.348179 | 2015-01-01T18:16:07 | 2015-01-01T18:16:07 | 28,667,918 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 708 | r | gogr.R | #' Use gog visualization system from R
#'
#' Communicate with a \href{https://github.com/ajschumacher/gog}{gog}
#' server for data visualization independent of R.
#'
#' @docType package
#' @name gogr
#' @import jsonlite
#' @import httr
NULL
#' Send data to a gog server
#'
#' This function takes takes a data frame and ... |
08df93d8fcbaa382ca69182ca2aa39c370ca33bf | dec08efdfbfa3ae869ae9e24c81ef0eedbbf5ff5 | /plot2.R | a7dfb85febf873af42f39ba57588af82880ad661 | [] | no_license | DJ-L/repo160720 | 69b2fc3ecb793d65b312b270ae5f7ee76ff29a39 | 26d737a81dd2456d01bd896ec87f3923acc47345 | refs/heads/master | 2021-01-16T21:36:39.727409 | 2016-07-20T09:26:40 | 2016-07-20T09:26:40 | 63,767,989 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,156 | r | plot2.R | setwd("C:\\Users\\Daniel\\Documents\\Coursera\\Exploring Data\\Week 1\\exdata-data-household_power_consumption")
#Loading data
full_data<-read.csv("household_power_consumption.txt",stringsAsFactors=FALSE,header = TRUE,sep = ";")
full_data$Date = strptime(full_data$Date,"%d/%m/%Y")
feb_data<-full_data["2007-02-01"<=fu... |
5d2c7f7ab210f8fdcce7e36129858d7e7a1141ee | bb0fc5db62c57f57fc78521ed5d61eac10d1d4f0 | /R/options.R | ea9b8c33de4e23cd7de20f05980d0d97bfceb2bc | [] | no_license | nemochina2008/jasptools | 50907e9064cae6a639a8043b3007cfb0b82bb569 | 635f3f135a43455370e5f00f908c3de7449606f8 | refs/heads/master | 2020-03-28T15:07:01.728286 | 2017-12-15T13:41:47 | 2017-12-15T13:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,663 | r | options.R | #' Obtain options to run JASP analyses with.
#'
#' \code{analysisOptions} provides an easy way to create analysis options. You
#' may use the json from the Qt terminal or from the json files found in
#' resources. The former you have to provide yourself, for the latter you only
#' have to specify the name of the analys... |
1164599556bbd2f011baed7c96b83485e55cf4bc | 30207ebba8454058484573b57372b5fdf8f81fe1 | /time_series/残差检验.R | 4a483d55da4b209e921f048fdc81d920f7b1939c | [] | no_license | hallo128/R | f9aec7535397f22906f142ad4b77e1011cb565d9 | cabb57f9d953433b87e6340869f06b54a326f82c | refs/heads/master | 2021-01-17T18:56:57.361377 | 2016-06-25T16:00:10 | 2016-06-25T16:00:10 | 60,279,186 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,878 | r | 残差检验.R | setwd("d:/")
###读入数据(只能一条数据,可以事前处理,也可以事后处理)
data=read.csv("hj.csv",header=F)[,1]
#改变为时间序列数据
hj=ts(data,start = c(1980,1),frequency = 12)
####################1求长期趋势Tt
library(TSA) #与season()函数有关
#季节平均模型(计算长期趋势)
time=time(hj) #提取模型的时间,要求数据位序列类型数据
model=lm(hj~time)
#plot(hj,type='o') #画出趋势图
#abli... |
ee23891fdad7382a569b1264ae557d1b5e6a4457 | 1dc0ab4e2b05001a5c9b81efde2487f161f800b0 | /experiments/save fit objects.R | 3f568139826cb9b19ca15b06384da14c1c2bcf19 | [] | no_license | noeliarico/knnrr | efd09c779a53e72fc87dc8c0f222c0679b028964 | 9f6592d1bbc1626b2ea152fbd539acfe9f9a5ab3 | refs/heads/master | 2020-06-01T02:44:34.201881 | 2020-03-13T13:30:52 | 2020-03-13T13:30:52 | 190,601,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 405 | r | save fit objects.R | save_fit <- function(name, caret) {
if(caret) {
named <- paste0("fit_", name, "_d")
namer <- paste0("fit_", name, "_r")
d <- get(named)
r <- get(namer)
save(list = c(named, namer), file = paste0("experiments/results/5cv/", name, ".RData"))
}
else {
save(list = name, file = paste0("experime... |
9145ecc7674a4b73ca17ebf70234edbe34492d9d | 240ca985f52df0995bf791465bbcd2dc9d83483c | /tests/testthat/test-operatorz.R | ba3788ab4d742af4d12dab89ad529e678697b7f4 | [
"MIT"
] | permissive | romaintailhurat/operatorz | 971751bc0441970fc86ea680fd84b5edb54dc160 | 5968edfe3dff5011cdbed06bd62117b0f63e8e22 | refs/heads/master | 2020-06-18T05:09:55.806178 | 2019-07-11T07:14:18 | 2019-07-11T07:14:18 | 196,174,778 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 874 | r | test-operatorz.R | # %++% operator
test_that("Concat operators is cool", {
expect_equal(
"yo" %++% "da",
"yoda"
)
expect_identical(
1:10 %++% NULL,
as.character(1:10)
)
expect_length(
letters %++% LETTERS,
26
)
})
# %||% op
test_that("OR operator fits its purpose", {
expect_equal(
NULL %||% 42... |
a331d05b62af991ec20605e2292c302b8307c3fb | 99d6bff98f838f99fa863d120a37431511e17519 | /r1.R | a9b77d16df6909f4c25d768adf713b6e79c3c5f2 | [] | no_license | kcpackard/Testing-R-code | ff7fcf2b99a2ac24b32a1a4bbc821b6ffa7bf398 | 36fb81568f6e0f146c591de6cb874d414d7aa698 | refs/heads/master | 2020-07-01T17:14:19.533661 | 2016-11-20T11:43:12 | 2016-11-20T11:43:12 | 74,269,303 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 173 | r | r1.R | #This is a test script for using github
data(cars)
head(cars)
library(ggplot2)
data(mpg)
head(mpg)
p <- ggplot(mpg, aes(class, hwy))
p + geom_boxplot(aes(colour = drv)) |
b292791e7866edeb3b3d915bc26a6124012c6b3a | 01ee8f4214bd47d4be2cdd1a8dd8d3f49e9e2f79 | /Power.R | 48406b8f223e7198c224c63774eda0749a0aeb29 | [] | no_license | vmez/EnergyConsumption | c46267e963c0ddbac100bb0ca98afd3ccc596899 | bb37ea9e154c9f0d077aa0db3ffe9dafca0a8f6b | refs/heads/master | 2021-04-29T13:05:33.104743 | 2018-09-24T12:48:43 | 2018-09-24T12:48:43 | 121,743,404 | 0 | 1 | null | null | null | null | IBM852 | R | false | false | 13,793 | r | Power.R | # Set working directory and load data ...............................
#setwd("C:/Users/Violeta/Dropbox/Ubiqum/3_Deep.Analytics")
#power <- data.table::fread("Energy/household_power_consumption.txt", sep = ";", na.strings = '?')
# Libraries .........................................................
#pacman::p_load(dplyr... |
26fbec88463dfe6a28dd19ba05df96b97183bfe5 | 97a38f09dce88a8460737ab6cf4e2b2335624125 | /man/multilevel_kernel.Rd | f202f0e14bc336dba983131d084cab355acf323f | [] | no_license | jeremyhengjm/UnbiasedScore | a7959eb3ddb892a522b413a3eae47d4573309bd3 | b036ac899721ea240a2a0a67440947d1c0698ac9 | refs/heads/master | 2023-04-20T09:54:44.835291 | 2021-05-10T13:34:29 | 2021-05-10T13:34:29 | 257,778,224 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,102 | rd | multilevel_kernel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multilevel_kernel.R
\name{multilevel_kernel}
\alias{multilevel_kernel}
\title{Runs a multilevel Markov kernel}
\usage{
multilevel_kernel(
model,
theta,
discretization,
observations,
nparticles,
resampling_threshold,
coupled_resa... |
fda1eab6f0f6001361d3f06658f33ea2796192b5 | 341cf636752b287fad6fe8d7c8e642d9681129d4 | /Session 2/Models.Visualisation.R | dcaf38c2ca45ae4a05b3f709716416af4ec98d61 | [] | no_license | CaleaD/Pandemic-Simulation | a9def61ac5b75ea18ec4dd2fbf765b3288e17ee9 | ff52f90fa66c9803ef967f4c64d18ae4cdd267fc | refs/heads/main | 2023-05-07T17:39:41.292552 | 2021-06-01T21:27:48 | 2021-06-01T21:27:48 | 360,194,190 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,476 | r | Models.Visualisation.R |
###################
### Vizualizare ###
###################
### A.) Interfete Interactive
# TODO: urmatoarele ore;
# A.1.) Shiny app:
# - links & gallery:
# https://shiny.rstudio.com/
# https://shiny.rstudio.com/gallery/
# A.2.) Dashboards:
# - de evaluat: shinydashboard, flexdashboard;
libra... |
ac25b05cf1909a072740aa60bfe60906ca2b1afa | 2d84b56b3d8037a566bc3c152e73218e7dd3dcda | /tests/testthat/testPhamFix.R | 2b0853b58f34266bab6f5e597e91ac6dbb89c5f1 | [] | no_license | drodriguezperez/kselection | 31ab185fe9a6fa25c07dd2aba86b6b02b9af70b6 | 4f9b0e24986e0f9d1456f3754fe4b4e41f98957f | refs/heads/master | 2022-05-31T15:22:38.687490 | 2022-05-17T16:15:12 | 2022-05-17T16:15:12 | 23,993,309 | 6 | 2 | null | 2015-01-08T15:04:59 | 2014-09-13T12:02:56 | R | UTF-8 | R | false | false | 1,232 | r | testPhamFix.R | ##
## Test previous errors on kselection
##
## Created by Daniel Rodriguez Perez on 10/10/2014.
##
## Copyright (c) 2014 Daniel Rodriguez Perez.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software F... |
fe88bef921069a977153d5ef6e5cd12c589ad5e2 | 9cc49351c9649dd0b4a84eef9c3d5a98ab983b2d | /analyses/recovery_rate/recovery_rate.r | c2ff65f09d1e217de113181bc1bdf002c4050c03 | [] | no_license | SimonGreenhill/northwind | 8a926436d58711cd0b87c0d1ef48467d4e934d60 | fa9e2e52bf3c2585a89a6c954eda183d6eb02812 | refs/heads/master | 2023-01-14T18:48:45.899610 | 2020-10-05T09:34:31 | 2020-10-05T09:34:31 | 197,758,170 | 0 | 0 | null | 2023-01-09T01:04:48 | 2019-07-19T11:04:09 | Python | UTF-8 | R | false | false | 2,574 | r | recovery_rate.r | library(ggplot2)
require(gridExtra)
records <- read.delim('coverage.dat', header=TRUE)
#
# Recovery all lines
#
p1 <- ggplot(records,
aes(x=PPercent, y=OPercent, color=TotalInventory)
)
p1 <- p1 + geom_line(aes(group=Language))
p1 <- p1 + scale_color_gradient("Inventory Size", trans="log", high="orange", low="blu... |
dab8e0fe76082291beeb5cf70dd74e78bfc736f3 | 858f4682ab0ac8c20617045edddcc774268742fb | /newyorktimes/man/rss_rank.Rd | 3539e85702a5ffe965c06845b3ed9a6331666b21 | [
"MIT"
] | permissive | minikittyf/final_project | eeb1fd337c79811a98bef7dfa24d949957ecb374 | 27a386532696fcb9d10d45b4bc8801f4a0e317be | refs/heads/master | 2020-11-24T01:14:48.447084 | 2019-12-13T18:45:50 | 2019-12-13T18:45:50 | 227,899,145 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,138 | rd | rss_rank.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/newyorktimes.R
\name{rss_rank}
\alias{rss_rank}
\title{Section Rank.}
\usage{
rss_rank(search_section = "Arts")
}
\arguments{
\item{search_section}{A Character.(the character should choose from: Africa, Americas, ArtandDesign, Arts, AsiaPacif... |
3683c89ac0a6316a6d4c8ec50ee1e1439d82512c | 88abace67b291e782dd807cff053c50793f2ad0f | /plot4.R | 80f5134bf26917a1387cbb95b94a880469e5cb93 | [] | no_license | Hightechnician/ExData_Plotting1 | 04746ffeb16cd2acd4983b3dfc464d6e3fdd51d2 | 45b7a0d4e8e1eec3b83832c86cbfc41a8078eb70 | refs/heads/master | 2021-01-23T16:28:22.661655 | 2014-08-08T12:53:42 | 2014-08-08T12:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 984 | r | plot4.R | library(sqldf)
filename<-"household_power_consumption.txt"
# Uses sql query to choose target dates
DF <- read.csv.sql(filename, sep=";", sql = 'select * from file where Date = "1/2/2007" OR Date = "2/2/2007"')
# Creates dest file
png(filename="plot4.png",width=480,height=480,units="px")
# Sets 2*2 form
par(mfrow=c(... |
e282ad41f949e491ef44c47683f9865aa4b41473 | d12ad467a8e4afa8baf96b88b7c4dba819ed7e34 | /descriptive/tables.R | b60c623486d35bf1983e2c16bebeb10a8c1fbedb | [] | no_license | dsself/populism | bd178b99e41376c55697128f45ec505d3e3d5347 | 5585e17ac93553ae519ac6e925e6f9890de02758 | refs/heads/master | 2021-01-10T12:18:43.617847 | 2018-09-20T14:22:19 | 2018-09-20T14:22:19 | 48,120,097 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,387 | r | tables.R | #fig 3
#library(hadleyverse)
#library(stargazer)
#setwd("C:/Users/Darin/Documents/populism/descriptive")
#load("C:/Users/Darin/Documents/populism/descriptive/Joined.Rdta")
#dc <- as.data.frame(dc)
stargazer(dc, title = "Sample Summary Statistics", covariate.labels = c("Vote Share" ,"Populism", "PSI", "Party Strengt... |
7276cb48d202edbf8c8d468923a767178fcd02d3 | 04acfdc213a437da3ac4d8706d06236328469a60 | /man/kernThomas.Rd | 8c012e521fd3341effb663d02a35adc42df35bc8 | [] | no_license | antiphon/sseg | beaa4619c5a4aaf5c5db732230f9b1f470b34153 | c6364cdb9c952fc7565417c02c65f010c944d65b | refs/heads/master | 2021-01-10T13:49:49.246506 | 2018-03-18T11:45:42 | 2018-03-18T11:45:42 | 54,035,415 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 257 | rd | kernThomas.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rPSNC.R
\name{kernThomas}
\alias{kernThomas}
\title{Gaussian kernel with bandwidth omega}
\usage{
kernThomas(r, omega, ...)
}
\description{
Gaussian kernel with bandwidth omega
}
|
aee0d65ba6be3ea59ae525450afdc4b0bc6dd11c | aa966390669a2df21111868439c2eaca748aeaab | /man/find_best_selection_SA.Rd | bc5e68a3d8da6c0ed71b505fed12385fe9267ed4 | [] | no_license | cran/sms | a255711c30541169f872aa129b36915fd740a12c | ac4b476f35ac02cdcceba0b07e66130558992b23 | refs/heads/master | 2021-01-19T12:39:07.801719 | 2015-11-15T10:09:12 | 2015-11-15T10:09:12 | 17,699,739 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,182 | rd | find_best_selection_SA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sms.R
\name{find_best_selection_SA}
\alias{find_best_selection_SA}
\title{find_best_selection_SA}
\usage{
find_best_selection_SA(area_census, insms, inseed = -1)
}
\arguments{
\item{area_census}{A census dataset consisting of various areas ro... |
6584a7089dcc8974f5e06b24596e7ba65945d926 | 781acb845196fc990fe6c05b95fc994c6ef47306 | /R/varImpACC.R | ad5745f67e1bdc828c26ab45f1fc14406fdd537d | [] | no_license | PhilippPro/varImp | 741e1f15a8c8445e65622dfa7e556c66c147b972 | c7b544c80e2332cebb20f25e22a68dcf5efb63aa | refs/heads/master | 2022-01-11T09:32:05.745634 | 2021-12-25T08:05:32 | 2021-12-25T08:05:32 | 135,269,180 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,290 | r | varImpACC.R | #' varImpACC
#'
#' Computes the variable importance regarding the accuracy (ACC).
#'
#' @param object An object as returned by cforest.
#' @param mincriterion The value of the test statistic or 1 - p-value that must be exceeded in order to include a
#' split in the computation of the importance. The default mincrite... |
62e6b5aefd2e36572fbc4c6cffbdec8c496be365 | 78d7853bc8ec468f20b33a325abb0b6424ab8a57 | /R/angle_logi.r | 8a632402e40dcc7ff26384661ae404a88f8b91e8 | [] | no_license | wenjie2wang/smac | 15ac183f6bf4cc50604958002388d20698cb752a | 05ff9c926aaa660bfef93df0d43fef0dd451aab7 | refs/heads/main | 2023-06-24T18:34:54.908726 | 2021-07-30T03:40:20 | 2021-07-30T03:40:20 | 390,900,858 | 0 | 0 | null | 2021-07-30T02:08:54 | 2021-07-30T02:08:54 | null | UTF-8 | R | false | false | 268 | r | angle_logi.r | angle_logi=function(x,y,weight,nlambda,lambda.min,lambda,standardize,epsilon)
{
if (is.null(lambda)) {z = logiway1(x, y, weight, nlambda, lambda.min, standardize, epsilon)}
if (!is.null(lambda)) {z = logiway2(x, y, weight, lambda, standardize, epsilon)}
return(z)
}
|
4c5d505619f402cd7478f2bde74b4f855a9ebb5a | 96dfb2e54b4b6882e6e487a5e7d221d098d85135 | /R/make_lsd_date_file.R | f649306ae5c1e236dbfd39dbd662505c732ba0fa | [] | no_license | Dmirandae/NELSI | e37d705c9de10f2a149eef039a498ada049dcefa | 403bacbb641629caadb728b300b844870eca820e | refs/heads/master | 2021-01-22T11:29:39.120640 | 2017-01-16T00:29:24 | 2017-01-16T00:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 526 | r | make_lsd_date_file.R | make_lsd_date_file <- function(phylodata, outfile = 'outfile.date'){
if(class(phylodata) == 'DNAbin'){
taxa_names <- rownames(phylodata)
}else if(class(phylodata) == 'phylo'){
taxa_names <- phylodata$tip.label
}
dates <- sapply(taxa_names, function(x) gsub('.+_', '', x), USE.NAMES = F)
... |
9d5d662f099026bbd3710efdcc8aac0b7816b5c8 | 7f72ac13d08fa64bfd8ac00f44784fef6060fec3 | /RGtk2/inst/examples/cairo-cairo-t-1.R | 95f6b757d90cf919c24d282f9bef6a4e8f4726c7 | [] | no_license | lawremi/RGtk2 | d2412ccedf2d2bc12888618b42486f7e9cceee43 | eb315232f75c3bed73bae9584510018293ba6b83 | refs/heads/master | 2023-03-05T01:13:14.484107 | 2023-02-25T15:19:06 | 2023-02-25T15:20:41 | 2,554,865 | 14 | 9 | null | 2023-02-06T21:28:56 | 2011-10-11T11:50:22 | R | UTF-8 | R | false | false | 150 | r | cairo-cairo-t-1.R | cr$pushGroup()
cr$setSource(fill_pattern)
cr$fillPreserve()
cr$setSource(stroke_pattern)
cr$stroke()
cr$popGroupToSource(cr)
cr$paintWithAlpha(alpha)
|
7694be7d64f890967ba22ec9c4a887147868b100 | 8e904b4ccda9f3f9253344db2c25ed8fdc5b199a | /best.R | bc40d70283d585635899f3a3c20725e4524333b0 | [] | no_license | rajeshmore/Assignment4 | 7caa9d1af02e3d6fce9543c2d5a25adaf9b76b29 | f490f2323f705fa387dfa8b87699ffa1495ecc43 | refs/heads/master | 2021-01-20T06:20:10.248903 | 2014-11-30T17:01:57 | 2014-11-30T17:01:57 | 27,343,133 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,453 | r | best.R | best <- function(stateChr, outcomeChr) {
# Function to find the best hospital in a state
# Read file data
file_data <- read.csv("outcome-of-care-measures.csv",colClasses = "character")
# Convert data type from char to numeric and suppress warning
suppressWarnings(file_data[, 11] <- as.numeric(file_data[, 11]))
suppress... |
f5b009fd005327814806a58ee62c1b0b0a5d9f22 | 2aa9c4e518530e54e9d795d587ffaba195e5c3b4 | /run-all.R | 5be1690f274e4e5b6ee08fc5946a2c489317e417 | [] | no_license | evisat/rdata-6COSC006W | 48d8615aae84f33ac00f014561893ab7c17c7286 | da7a7b51ac44d19e5418f9a3d0c37bd30a5ded29 | refs/heads/master | 2020-04-21T17:08:34.964336 | 2019-04-24T12:08:04 | 2019-04-24T12:08:04 | 169,726,410 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 191 | r | run-all.R | #script loads all functions used in project
source('R/00_utils.R')
#script loads all libraries used in project
source('R/01_load-libs.R')
#script cleans raw data
source('R/02_clean-data.R') |
98eac3d2dd87e963f63ffa7d72aff24cf68f3be7 | f5929d21bcca795a939c5c9a798e2c3b9ce9d951 | /create_data_set/create_claim_table.R | 123e90beb6f4e4ffe1451974daff6959588f99be | [
"MIT"
] | permissive | onc-healthit/2021PCOR-ML-AI | 16f3664bec18cc2c62327dd38e5b40908fced2e0 | 9b849ba68558818d57477581253c49b9c66951c7 | refs/heads/main | 2023-04-19T05:29:58.036607 | 2021-09-17T20:46:51 | 2021-09-17T20:46:51 | 377,345,412 | 4 | 1 | MIT | 2021-09-13T20:33:25 | 2021-06-16T02:15:15 | Jupyter Notebook | UTF-8 | R | false | false | 3,115 | r | create_claim_table.R | #Functions used in S3a_esrd_claims.R to create the pre-esrd claims tables.
#The schema for the tables changes from year to year. For example, there is no
#cdtype field prior to 2014, since all diagnosis codes were ICD9 prior to 2014.
#The script handles these year-to-year changes in schema.
create_claim_table <- fun... |
bad454f214775e956ca83ffb755347dc086a9996 | 16396454140853e8df670775acd10d556bb36960 | /man/decomposition.Rd | 2ebf178d2568bd64b597747e03545cbb750b29fa | [] | no_license | alenzhao/asymmetry | 194f122c1151878cd535f51560072b8d72846b0e | 6c240d95fb8181fa7f3821be5587e0800b8b941f | refs/heads/master | 2020-06-18T14:17:35.874700 | 2016-11-11T17:26:33 | 2016-11-11T17:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 909 | rd | decomposition.Rd | \name{decomposition}
\alias{decomposition}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Decompose an asymmetric matrix
}
\description{
The decomposition of an asymmetric matrix into a symmetric matrix and a skew-symmetric matrix is an elementary result from mathematics that is the cornerstone ... |
0dc347ceb795ebda9d2a9576bc30ac5690e83823 | aa515e0b1b1595bcfc59ca72eb9ce56ac3388656 | /man/easy_plot_ly.Rd | 93739f3f8afa7fdef42979707092bd6f5f9e1171 | [
"MIT"
] | permissive | shanealman/EZRplots | f84204a2f6df621243f41e388de8d15688439195 | fc6056f511a1b7d2540f6dc7e2c7a8fea165e1b5 | refs/heads/master | 2022-06-08T00:46:38.403540 | 2020-05-04T07:55:44 | 2020-05-04T07:55:44 | 260,323,514 | 0 | 4 | MIT | 2020-05-04T07:55:46 | 2020-04-30T21:36:52 | R | UTF-8 | R | false | true | 1,896 | rd | easy_plot_ly.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/easy_plot_ly.R
\name{easy_plot_ly}
\alias{easy_plot_ly}
\title{Easy Plotting with Plotly}
\usage{
## x, y, z, and color variables need to be in a vectorized form like x$data or y$data.
## If you are using the surface plot type, a z variable m... |
f174b203eb3988b8a4b4b490216e0f5b8cee3ac9 | 6f8da14fb8330a2fdc0a6e45d013558b47023c86 | /R/pullback_vdp.R | 4e7e597d04a7ff6408c3e2340b789c849f2a23cf | [] | no_license | mcrucifix/iceages_scripts | b641e930e3e1a75b945dd82a0b41f7f9e6436147 | cb2d1d1bdc83e0a2d7eee8767c8728d4e6a9881c | refs/heads/master | 2021-01-23T06:34:22.742936 | 2013-07-29T19:32:01 | 2013-07-29T19:32:01 | 7,934,568 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,735 | r | pullback_vdp.R | # Copyright (c) 2012 Michel Crucifix <michel.crucifix@uclouvain.be>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, cop... |
9a7ef193e7e5bd60010bacf8f1f9f799bf7aede4 | 1242e612287c974e333d9998345fa7b2bf0baf09 | /R script.R | 6d35ef6a4fd705e65534631961f1c3ca15ad8a73 | [] | no_license | MercenaryGhost/Time-Series-models-to-estimate-Bitcoin-Prices. | 9b8d1904a56eb426f9d4dc917e63ba2f5dc6b4de | 8e2c3b767454600dfe4d1f93bc23752f2eea3756 | refs/heads/main | 2023-05-05T23:40:33.189033 | 2021-05-22T08:43:38 | 2021-05-22T08:43:38 | 369,757,807 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,277 | r | R script.R | #ARIMA Model
library(readxl)
Bitcoin_dataset_updated <- read_excel("E:/sem 3-2/Applied econometrics/Assignment 3/Bitcoin_dataset_updated.xlsx", sheet = "Sheet1")
library(dplyr)
library(lubridate)
Bitcoin_dataset_updated$week <- floor_date(Bitcoin_dataset_updated$Date, "week")
x<-ddply(Bitcoin_dataset_updated... |
5ea3be0425540f5b8bf72009705b2ac68727a307 | d44d7086935d940498cc65e0793b90cbed83baae | /R/compare_index.R | 2b034a9cb525dc0cc1488649433d2419ae723772 | [] | no_license | BerSerK/FenJi-A-Pricing | 1f952c8225920ea26641fb8f232f14bb1c943b25 | 2c8d729fece5c9e323f38823ca5a431b919d07b8 | refs/heads/master | 2021-03-25T03:12:29.955195 | 2015-10-21T03:22:25 | 2015-10-21T03:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 193 | r | compare_index.R | index1 <- read.csv('~/Downloads/index.csv')
for ( i in 1:length(index1$BargainDate)) {
index1$Date[i] = as.Date(index1$BargainDate[i], '%m/%d/%Y')
}
plot(index1$Date, index1$index, type='l')
|
c2cf4ff0bd4eaf94e6fcae57d3064c1c0aa46c59 | 649d2f1ebe25c8119f6af5948f820ca978f1b88d | /R_exam_project_canis_lupus_italicus.r | 9f41c031a68c4e3d737cadcef528fdb432a19b5a | [] | no_license | Enricalo/Monitoring_2021 | 603b643946c4db029ff3065ea5c5cbc50871ec7d | c5c898d43eee1f2979b83641799149ada4156919 | refs/heads/main | 2023-02-28T12:29:20.015968 | 2021-01-28T21:33:22 | 2021-01-28T21:33:22 | 309,310,152 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,727 | r | R_exam_project_canis_lupus_italicus.r | library(raster) #
library(readr) #
library(ncdf4) #
setwd("C:/LAB_2020_2021/")
#recall geographic data from raster package
#altitude data, crop map on Italy
IT<-getData('alt', country='IT', mask=TRUE, col=cl)
#alternative map
#library(maptools)
#data("wrld_simpl")
#plot(wrld_simpl)
#plot(wrld_simpl, xlim=c(10,15), y... |
3f502aa46cbedb9ea099668bfa0e5c847ff5d442 | ab8812f0eb333be6988c98d4def477c818fb3cb3 | /tests/testthat/test-unnest.R | 0d7e0b79750c19022d7cec576cef2aa9f60c8de0 | [
"MIT"
] | permissive | tidyverse/tidyr | 857c4ba4f31e01cdf1bcde4c2a4b88cc530d8715 | 0764e65fad777b71aa2a81ffd5447d04a61f8d5e | refs/heads/main | 2023-08-21T17:31:26.569797 | 2023-01-24T21:21:51 | 2023-01-24T21:21:51 | 20,688,261 | 998 | 420 | NOASSERTION | 2023-03-31T06:49:36 | 2014-06-10T14:24:33 | R | UTF-8 | R | false | false | 8,139 | r | test-unnest.R | test_that("can keep empty rows", {
df <- tibble(x = 1:3, y = list(NULL, tibble(), tibble(a = 1)))
out1 <- df %>% unnest(y)
expect_equal(nrow(out1), 1)
out2 <- df %>% unnest(y, keep_empty = TRUE)
expect_equal(nrow(out2), 3)
expect_equal(out2$a, c(NA, NA, 1))
})
test_that("empty rows still affect output typ... |
d215375cb3268ebd7e75b5bd840a886106619811 | d41b9cfdcd5cdb84eb788f660ce2448f02523e0a | /3-revision_entrega/scripts/2-crear_datos_revision.R | 2093c299db82899d399052c4e627eb8079847c7e | [] | no_license | tereom/madmex_pixel_sample | 02bbfca62161cf3110e7dc45eee8322c67ed9b31 | 9d7ffaaea48a2d0c01f1cc32c3c7c978b838eded | refs/heads/master | 2020-08-06T05:28:33.248483 | 2019-10-04T17:21:05 | 2019-10-04T17:21:05 | 212,853,145 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,583 | r | 2-crear_datos_revision.R | # se crean datos para revisiar la muestra y para estimar
library(sf)
library(raster)
library(dplyr)
library(tidyverse)
library(srvyr)
source("R/funciones.R")
### entrega BITS
bits_2018 <- read_sf("datos_entrada/datos_bits/PUNTOS DE VALIDACION-2018/Puntos_de_Validacion_2018_Revisados.shp")
bits_2018_points <- bits_201... |
a22e30967dcf1fa5510d4fb20acc53de317d42e9 | 380c4e316f8b37a2057812b5e72e9e16fc3f8f79 | /run_analysis.R | 5ed4eaca65ec94f536db7f93090bdc3b67eb29da | [] | no_license | jolenechen83/CleaningDataAssignment | b0e3c158501621f74bb82e7990927de53cb19815 | e491093614c07308058c57b02f6cfe5399a1fe46 | refs/heads/master | 2021-01-19T07:57:05.932225 | 2015-04-26T16:49:08 | 2015-04-26T16:49:08 | 34,619,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,632 | r | run_analysis.R | # Data(zip file) were downloaded and extracted into working directory. All data
# were stored in the data folder.
# 1. Merges the training and the test sets to create one data set.
path_rf <- "./data"
#Read all the files
testActivity <- read.table(file.path(path_rf, "test" , "Y_test.txt" ),header = FALSE)
trainAc... |
434119fec7ab2c759d04a7632c494365694fc282 | 715c1eee20f2ce63b755f5fe32f3734778432c9c | /01_90_expand_grid.R | 113c0bd6a79e694a1b6288574470bab71c30d110 | [] | no_license | nikhiljohnbejoy/Rconcepts | 47dd030d10abf027338a657e7c97826cc0677798 | 321693fb423d118593b9cce0266ca52e1dcd02fd | refs/heads/master | 2022-12-01T02:28:16.322446 | 2020-07-22T03:52:05 | 2020-07-22T03:52:05 | 281,564,317 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 736 | r | 01_90_expand_grid.R | # combn produces a matrix of all combinations
photos.combn <- combn(c("Bride", "Groom",
"Bride's Parents",
"Groom's Parents",
"Bride's Siblings",
"Groom's Siblings"), 3)
photos.combn <- t(photos.combn)
# expand.grid produces a d... |
8e7e91b72bfe5f6b98647f0f2db3735001fca316 | 9f932bdf4a74450c8fbf25318b229358654a5c45 | /attic/simulation_math_util_fn_old.R | 0a927df6e763da54d6691bdafc9f27a8f4bb4ee6 | [] | no_license | adalisan/JOFC-MatchDetect | 5cce6c3d57763f925e31202d27dca317c029d4a7 | 3340c3cdc39a13e2f6c18f666a953e42ca73e745 | refs/heads/master | 2020-04-11T02:58:48.375064 | 2015-08-08T01:49:59 | 2015-08-08T01:49:59 | 11,868,601 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 43,643 | r | simulation_math_util_fn_old.R | ## functions
run.mc.replicate<-function(model,p, r, q, c.val,
d = p-1,
pprime1 = ifelse(model=="gaussian",p+q,p+q+2), # cca arguments , signal+noise dimension
pprime2 = ifelse(model=="gaussian",p+q,p+q+2), # cca arguments, signal+noise dimension
Wchoice = "avg", #How to impu... |
8ae944b06f6c9d157178fb61a1918299a5c7c6ce | 36d3b6f2349ebdad12a996acfc21090130695a1b | /man/Kmeans.Anal.Rd | cd826324de63ae9381b222f16b42107fa2b3364c | [] | no_license | flajole/MApckg | da7be5c41e13cbf5c03b100e40ac0a1521306d34 | 229959e1b9e76034411dc8513cd5f7e9e63c3ef0 | refs/heads/master | 2021-01-18T16:36:38.247786 | 2016-02-10T14:11:23 | 2016-02-10T14:11:23 | 41,876,214 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 730 | rd | Kmeans.Anal.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Cluster_Kmeans.R
\name{Kmeans.Anal}
\alias{Kmeans.Anal}
\title{K-means analysis}
\usage{
Kmeans.Anal(dataSet, analSet, clust.num = 3)
}
\arguments{
\item{dataSet}{List, data set object generated by \code{\link[MSdata]{MS_to_MA}} function.}
\... |
99e2255ac4cb38a23d82663638b6ab6c841416b4 | a17cf22be2304c96d267fc1b68db7b7279c4a293 | /R/gaussian.R | 7d0c553a1a4a77c66bb4564c0d3e7f7692c2b16c | [] | no_license | robertdouglasmorrison/DuffyTools | 25fea20c17b4025e204f6adf56c29b5c0bcdf58f | 35a16dfc3894f6bc69525f60647594c3028eaf93 | refs/heads/master | 2023-06-23T10:09:25.713117 | 2023-06-15T18:09:21 | 2023-06-15T18:09:21 | 156,292,164 | 6 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,775 | r | gaussian.R | # gaussian.R - a set of probability density functions for peak fitting
gaussian <- function( x, center=0, width=1, height=NULL, floor=0) {
# adapted from Earl F. Glynn; Stowers Institute for Medical Research, 2007
twoVar <- 2 * width * width
sqrt2piVar <- sqrt( pi * twoVar)
y <- exp( -( x - center)^2 / twoVar) ... |
2f4218773cc1e8a4acc3a662a03ce83fe2e1a8b8 | 1285cb6fc60d5ead0a0b48cf1e5da3687a65da24 | /man/plotConcTimeSmooth.Rd | cde3749cceb8d5a620034301f9c3d06f1ceef440 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | ayan-usgs/EGRET | 7448035c6e9c1e970fe4dc987ac068ceb2034f59 | 433e85a4ef0c8c37edee575837ad1e3ebbf9ae07 | refs/heads/master | 2021-01-16T19:06:57.563502 | 2013-05-01T15:37:45 | 2013-05-01T15:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,122 | rd | plotConcTimeSmooth.Rd | \name{plotConcTimeSmooth}
\alias{plotConcTimeSmooth}
\title{Plot up to three curves representing the concentration versus time relationship, each curve representing a different flow.}
\usage{
plotConcTimeSmooth(q1, q2, q3, centerDate, yearStart,
yearEnd, qUnit = 2, legendLeft = 0, legendTop = 0,
concMax = NA,... |
c6f8285efb28471fbee41e63910fbec41f8f481f | 29585dff702209dd446c0ab52ceea046c58e384e | /CorReg/R/Mstep.R | 89e4160e9a49f19821c8fce38dc8000e5b3e1f8a | [] | 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 | 219 | r | Mstep.R | Mstep<-function(Z=Z,X=X,sigma_IR=sigma_IR,Ir=Ir){
alpha=hatB(Z = Z,X =X )
for (j in Ir){
sigma_IR[j]=sd(X[,j]-X%*%alpha[-1,j])
}
return(list(alpha=alpha,sigma_IR=sigma_IR))#en C on fera un void
} |
6c24631e8ad12570839410d386870dc46936cb44 | 28464a180a79bc91ca091f3ab92c439533589ffe | /R/tbl_odata.R | 4b9c1319fa94984d96c2d5117539517d90bf5f07 | [] | no_license | edwindj/odataplyr | 1f397b49f4b14413a661981fbb47337629d87450 | 36fac209f97342e1e04761f707cc136eb2e9007a | refs/heads/master | 2021-01-13T02:47:58.635104 | 2018-08-30T11:43:23 | 2018-08-30T11:43:23 | 77,134,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 169 | r | tbl_odata.R | tbl_odata <- function(url, name, ...){
tbl <- list()
structure(tbl, class=c("tbl_odata", "tbl"))
}
get_odata_query <- function(x, ...){
stop("Not implemented")
}
|
9c05805e5fa7e1d357688eeae048e1778ab0ffea | ef40bd270d85d5eb252f0286f3e365b185fb08f4 | /R/getInfo.R | 97f4dd264c59d4d3e16fe442f5f525bbc59bb7e5 | [] | no_license | dusadrian/admisc | b49e75300c3bf4d922d1d9ef2c065888c0f1576d | 44126a9d9c58dadd5f9b9c589fccfdcf3643e182 | refs/heads/master | 2023-07-19T18:57:56.391912 | 2023-07-16T09:31:30 | 2023-07-16T09:31:30 | 231,208,801 | 0 | 0 | null | 2023-06-07T07:55:07 | 2020-01-01T11:39:32 | R | UTF-8 | R | false | false | 3,674 | r | getInfo.R | `getInfo` <- function(data) {
if (is.matrix(data)) {
data <- as.data.frame(data)
}
dc.code <- unique(unlist(lapply(data, function(x) {
if (is.numeric(x)) {
return(x[x < 0])
}
else {
return(as.character(x[is.element(x, c("-", "dc"))]))
... |
e13dc812936ebd3bc30cdad284a2a8cb5f1b2306 | 368b6bcc2204358eff3630d17187577389352e09 | /R/tensorflow.R | 9c4fb079f233552ce8b7cb50a078d7f76e293a04 | [] | no_license | alicehua11/photo_classification | ae04132b03bfbb60281557ca4a8814d17b8e5078 | f8372d118f8ea2010c1285dc1762ac3e14cee8dd | refs/heads/master | 2020-07-20T10:44:29.668745 | 2019-09-06T17:32:44 | 2019-09-06T17:32:44 | 206,627,232 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,249 | r | tensorflow.R | #' Install TensorFlow for use with \code{MLWIC}
#'
#' \code{MLWIC} requires an installation of tensorflow that can be used by Python.
#' You need to use this before using \code{classify} or \code{train}. If this is your first time using
#' this function, you should see additional documentation at https://github.com/m... |
e4094fc1a110aa24096a1305d3282bd6e0e21512 | 49da9f66c90668a99c783489f95522dbd1b4e474 | /descriptive analysis/WITS_clean.R | cd9b6adac736a24de50c988f28fd7a2ef615b500 | [] | no_license | michaelcbest/customsevasion | f6744ce06906559366c608dfedd66f36cc9e23df | 3f116cc520ff552033481de9a6deb78262b906f0 | refs/heads/master | 2021-01-01T04:21:53.738829 | 2017-09-22T23:15:30 | 2017-09-22T23:15:30 | 97,161,396 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,301 | r | WITS_clean.R | library(data.table)
library(plyr)
library(dplyr)
setwd(dirname(path.expand("~")))
DataPath <- file.path(paste(getwd(),"Dropbox/Customs Evasion", sep="/"))
#####CLEAN MFN DATA FOR MERGE#####
load(paste(DataPath,"Raw Data/hs12_MFN.Rda", sep = "/"))
EUmembers <- read.csv(paste(DataPath,"raw data/EUmembers.csv", sep ... |
9519cafd269950dc05b5e7381f6c2d6b52efe8e2 | 51ab4dbee3dc15ff8eb207fe618f1217c1cebcf2 | /man/prepData.Rd | 05bdfe707949825c76d01bf072584bc62e38d6dc | [] | no_license | cran/BIGDAWG | 8c9eb1335d8033713c23f9b2180161a52c0d6d78 | ead6acb4ef827015d1027a15539fcd1a86f724f1 | refs/heads/master | 2021-11-26T13:53:34.350326 | 2021-11-17T10:50:14 | 2021-11-17T10:50:14 | 37,374,985 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 365 | rd | prepData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_functions.R
\name{prepData}
\alias{prepData}
\title{Prepare imported data}
\usage{
prepData(Tab)
}
\arguments{
\item{Tab}{Genotypes dataframe.}
}
\description{
Prepare imported data for processing, checks, and analysis.
}
\note{
This ... |
217c3877af6d8bc20c6f11c6f2e147671337f207 | c4670bf1594581622401a727791cd4d8283c5f4e | /Simulation/ACS_Prep.R | 73a448a4ca1871f5cb54422d63bf97e4c1f04d5c | [] | no_license | conor-ryan/Imperfect_Insurance_Competition_Code | db274b3818a97b240de08f05e79a5dedee246da1 | e9ed4927f6a7a7670ec235a669b61b23509cc372 | refs/heads/master | 2023-07-20T05:51:29.180132 | 2023-07-05T23:06:10 | 2023-07-05T23:06:10 | 112,538,023 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 4,441 | r | ACS_Prep.R | rm(list=ls())
library(doBy)
library(randtoolbox)
library(data.table)
setwd("C:/Users/Conor/Documents/Research/Imperfect_Insurance_Competition")
## Run
# run = "2019-03-12"
#### 2015 Subsidy Percentage Function ####
subsPerc <- function(FPL){
x = FPL[!is.na(FPL)]
y = rep(100,length(x))
y[x>=1&x<1.33] = 2.01 +... |
b15cb202ed4b231f0ca5bc978d93c5865b6260f9 | ca66f0414b5ffea6c4513edf8537f008ea9fc921 | /Clusterização/Municípios de SP/municipios_sp_kmeans.R | 7e12193f0905e37778f9347331e98c3b74ffa944 | [] | no_license | hernandesmjunior/R-Machine-Learning | c1ab417baab65673a1c64aa4ed0b32f28c186ac5 | 498c46be799da483787625b0a2eb876182c3b7eb | refs/heads/main | 2023-06-05T03:54:59.752224 | 2021-06-20T17:20:36 | 2021-06-20T17:20:36 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,946 | r | municipios_sp_kmeans.R | #############################################################
#
# CLUSTER NAO HIERARQUICO - Municípios de SP
#
#############################################################
# carregando as bibliotecas
library(tidyverse) # pacote para manipulação de dados
library(cluster) # algoritmo de cluster
libr... |
1c6404c9c58b5bf18198ed35eddf6a43f8deef7f | 3819c5c65f13b185b8fb714d7349abfecb793a72 | /man/dot-optimalClass.Rd | 72dcf71f337e1786c540b1b447313ab534a686b2 | [] | no_license | cran/DynTxRegime | ed877579c6ffc6156fb6c84298a58d1db5940dff | 9ecb35dfd9abf9617e0179d3d4d552dce22314e5 | refs/heads/master | 2023-06-25T03:37:01.776586 | 2023-04-25T13:50:11 | 2023-04-25T13:50:11 | 37,244,072 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,107 | rd | dot-optimalClass.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/J_class_OptimalClass.R
\name{.optimalClass}
\alias{.optimalClass}
\title{Perform Classification Step}
\usage{
.optimalClass(
moPropen,
moMain,
moCont,
moClass,
data,
response,
txName,
iter,
fSet,
suppress,
step
)
}
\argu... |
8ed0176cf69dc4a043bfcf5b0849ddbd85f11592 | 38c2e53c26200336dc0e8bf5fac819c7a8b88d42 | /R/grouped_EDA_with_nested_tables.R | a8690bfabf4fab2624931cbf7f0d23b61085653b | [] | no_license | poorjanos/Work-NBA-Process | 0d0fea3f41799cadddcfaf3328ccd2b8e6cd933b | 52ef70117f9ca3d0b39d935034a5b170492bee09 | refs/heads/master | 2021-07-04T20:43:11.223287 | 2019-02-08T13:50:09 | 2019-02-08T13:50:09 | 134,841,378 | 2 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 3,780 | r | grouped_EDA_with_nested_tables.R | library(bupaR)
library(processmapR)
library(DiagrammeR)
library(tidyverse)
library(lubridate)
library(broom)
# Load dataset
t_event_log_app <- read.csv(here::here("Data", "t_event_log.csv"),
stringsAsFactors = FALSE) %>%
mutate(
TIMESTAMP = ymd_hms(TIMESTAMP),
PRODUCT_LINE = as.fa... |
4ed596ba07612ac34a6e509a7ac9d4c80bca7d33 | a5c8aa1ed795d6b34b53ec33bc39a0670e1ca29f | /code/02-dgirt/holdover/clean-cces.R | 54a655423aadfc91234e0221704c4336c8dfe411 | [] | no_license | mikedecr/dissertation | 6a15f45647f1205f6f3fe901108a5917f231e473 | 06ec3d304821ee09a28e42ba0bc11318d774b5ed | refs/heads/main | 2021-06-24T08:52:45.349588 | 2020-11-14T17:57:54 | 2020-11-14T17:57:54 | 282,011,623 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,273 | r | clean-cces.R | # ----------------------------------------------------
# CCES cleaning
# run on 2012 data (112th congress from 2010-2012)
# (written fall or winter 2018/2019; CCES data used in June 2019)
# (CCES work will be generalized into 'survey-algo')
# (Hierarchical Covariates already redone a little bit)
# -----------... |
32359d2639d623775b740d102afb70d8aed8c541 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/geomorph/examples/gpagen.Rd.R | ff7129cf0539b9a74ba120bb03157c9e6f0cf5fd | [] | 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 | 948 | r | gpagen.Rd.R | library(geomorph)
### Name: gpagen
### Title: Generalized Procrustes analysis of points, curves, and surfaces
### Aliases: gpagen
### Keywords: analysis
### ** Examples
# Example 1: fixed points only
data(plethodon)
Y.gpa <- gpagen(plethodon$land,PrinAxes=FALSE)
summary(Y.gpa)
plot(Y.gpa)
# Example 2: points and ... |
0437a5d43535be85d6fcc077ce1b631a22b69061 | c12b1b8dcc20cad0a081efc2e95c4efd78f4233b | /orestar_scrape/checkFilesForDlLimit.R | 3e4dff22224bdb5fa590a35ad98b1895446644ce | [] | no_license | stochasticTreat/hackOregonBackEnd | e200430deae0cd48587c3b14681ba6d934799431 | b5bea18920b1c2fb457436bab7ca4ed4c06b01df | refs/heads/master | 2016-09-15T23:19:21.395819 | 2015-01-26T05:09:37 | 2015-01-26T05:09:37 | 22,177,737 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,209 | r | checkFilesForDlLimit.R | #!/usr/bin/Rscript
#check all files for dl limit
setwd("~/data_infrastructure/orestar_scrape/")
source('./runScraper.R')
args <- commandArgs(trailingOnly=TRUE)
fromXLS=args[1]
indir="./"
destDir = "./transConvertedToTsv/"
if(is.null(fromXLS)) fromXLS="txt"
if(is.na(fromXLS)) fromXLS="txt"
if(fromXLS == "xls"){
cat... |
39956425db986fe6e0ef8392388bc87203323ca9 | ac52858e5a2e6b23c2048d50279c3a612e55a2ed | /gapminder analysis.R | 402b5b78c4792c14fe2222d4b5bfa7dbad28d4c2 | [] | no_license | atindaana/swc_workshop | 1ad58f4f9a4e7edb06c0ba04c32e9f24b8e9cbc3 | 1038e0ecfac28477c1db94db74e477aafba962dc | refs/heads/master | 2021-01-11T19:21:01.499266 | 2017-01-18T20:48:21 | 2017-01-18T20:48:21 | 79,361,677 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,313 | r | gapminder analysis.R | download.file("https://raw.githubusercontent.com/swcarpentry/r-novice-gapminder/gh-pages/_episodes_rmd/data/gapminder-FiveYearData.csv", destfile = "gapminder-FiveYearData.csv")
gapminder <- read.csv("gapminder-FiveYearData.csv")
#head
#ncol
#nrow
#summary
#view
is_africa <- gapminder@continent == "Africa"instal
is_200... |
2ec23e35ea8764e6160864505c39211b1a63d58e | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/clere/man/fitPacs.Rd | 92858b503201be2fea3f2c7ce9475a142e24a1bb | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 2,803 | rd | fitPacs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fitPacs.R
\name{fitPacs}
\alias{fitPacs}
\title{fitPacs function}
\usage{
fitPacs(Y, X, lambda = 0.5, betaInput, epsPACS = 1e-05, nItMax = 1000)
}
\arguments{
\item{Y}{[numeric]: The vector of observed responses - size \code{n}.}
\item{X}{[m... |
daa1bc29897f15a82c7d00ebd682770796d080f6 | 5d3c70de73ace63e203bfb3368d9378d726ee401 | /R/eclass.R | 15f46edd35f42476d66918a1f7b4d91d5d7f96d5 | [
"MIT"
] | permissive | yongcha/entroPD | fa528c3b90edd7495f9b5084a2f5301d5f1ce52c | 8c8fb69ac7b6e13afaa360a1b6367c7d5119649d | refs/heads/master | 2021-01-15T13:44:26.088328 | 2017-08-18T04:49:21 | 2017-08-18T04:49:21 | 25,089,007 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,281 | r | eclass.R | #' Equivalence Class
#'
#' @param dat \code{qigrp} object
#' @param QI Quasi-Identifiers
#' @param TA Target Attribute
#' @param ...
#' @return Equivalence Class and Size
eclass <- function(dat, QI, TA, ...){
# Description : Equivalence Class and Size
#
# Arguments
# dat : QIgrouping Data Object
# QI : QI
... |
c822e79b8e5059373f6f529a638a28fc6c5c8ab4 | 5217d14779a01179bfd440b689a4aea067d9e043 | /ariticles/draw_logistic.R | 37356b41c612ecb79d1ba7d7a515fb91bd1b0bca | [
"MIT"
] | permissive | CFWLoader/supreme-bassoon | f0a960a29cf052b76d5b898b4b4151776efc7536 | f20e45118a141084a0fb0d640e937e0e739cc3f6 | refs/heads/master | 2020-03-07T05:49:04.731876 | 2019-04-10T03:43:48 | 2019-04-10T03:43:48 | 127,306,468 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 431 | r | draw_logistic.R | library(ggplot2)
script.dir <- dirname(sys.frame(1)$ofile)
setwd(script.dir)
xseq <- seq(-20, 20, 0.01)
px = dlogis(xseq, location = 1.1)
cdfx = plogis(xseq, location = 1.1)
# print(px)
plt.df <- data.frame(x = xseq, y = px)
ggplot(plt.df, aes(x = x, y = y)) + geom_line()
ggsave("./logis-pdf.png")
cdf.plt.df <-... |
b0ca5cb1fc0631f47331e0b8117701c2fdbbaaeb | 9da5c27a28f8e8be4ed3ec8f7b8f641a438ea7c5 | /04_pivot_longer.R | 2cbe324cd71c2289ee6f218db3dbbd1455940c16 | [] | no_license | delany-ramirez/Curso_tidyverse | 9f3309d07d5ac34bdfc723e7465489f0e72af663 | 3fec82e91da6da0ed32a6fabd338c3be754a24b3 | refs/heads/master | 2023-06-08T08:39:20.359060 | 2021-06-20T00:39:04 | 2021-06-20T00:39:04 | 259,063,503 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,919 | r | 04_pivot_longer.R | ## DataMakers
## Uso del pivot_longer (o spread)
## Referencias: https://tidyr.tidyverse.org/articles/pivot.html
## Carga de librerías
library(tidyverse)
## Carga de datos
animales <- read_csv('data/04_pivot_longer.csv')
animales
## Uso del pivot_longer
animales %>%
pivot_longer(cols = c(Peso, Talla),
... |
0c8d86852774159e87ae1bf0e2043852ab6ff4d2 | 63583ae3e54e8b23ad0e160eade38af25db91964 | /plotting.r | dd474318141822b530d6f8876a9bc6847704f2d5 | [] | no_license | hamburger1984/fahrrad | f7a792061a901e926c3345aacb3ef64ef3ecad79 | 5d76117bf5b3b487a4d583121e806cab0be35942 | refs/heads/master | 2021-01-18T23:22:37.534350 | 2017-02-04T15:34:22 | 2017-02-04T15:34:22 | 10,343,294 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,869 | r | plotting.r | if(!require(lubridate)){
install.packages("lubridate")
}
if(!require(ggplot2)){
install.packages("ggplot2")
}
# --- reading, converting
library(lubridate)
df <- read.csv("stats.csv", sep=",", dec=".", comment.char="#")
df$date <- as.Date(df$date, "%d.%m.%Y")
df$day <- wday(df$date, label=TRUE)
df$year <- for... |
fec1ba0cc0b813727a9ed0bf1dd3d02ac7e60951 | 9ba53ca4e99bafc6957cd1c2e982abec9ac12283 | /1 linear regression.R | 5b88ef0af30db93537694f3b582a0d64d8abba27 | [] | no_license | HeathRossie/programDemos | f16cf564e261c68cf63357d364426fbf32c48075 | 84c08faa3dacdb602b869ca1a9f6119c6d62dbc0 | refs/heads/main | 2023-06-19T15:42:24.481903 | 2021-07-16T06:15:18 | 2021-07-16T06:15:18 | 386,529,875 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,269 | r | 1 linear regression.R | #----- stan 練習 1 -----#
#-----線形回帰------#
library(rstan)
library(ggplot2)
x <- runif(100, 1, 100)
y <- x * 2/3 + 220 + rnorm(length(x), 0, 10)
ggplot() + geom_point(aes(x=x,y=y))
stan_code <- '
data{
int<lower=1> N;
real x[N];
real y[N];
}
parameters{
real beta1;
real beta2;
real<lower=0> sigma;
}
... |
95791807329866c47b518de2f0d941237b68dae8 | f479db1915de128f5e162ce4515e2eb524d05bac | /R/D3Scatter.R | 3a140fe6d2c80124bdc8ddc161cf88bf515fe787 | [
"MIT"
] | permissive | gusef/d3Toolbox | e7d64635bee5ea25f41e56eec17a53d5ae2fc66e | a752880a8acca6a12d396097effa8b7d31f7e3ee | refs/heads/master | 2021-08-28T18:05:27.217405 | 2021-08-12T23:41:55 | 2021-08-12T23:41:55 | 100,711,108 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,723 | r | D3Scatter.R | #' Scatterplot based on d3
#'
#'
#'
#' @import htmlwidgets
#'
#' @export
d3Scatter <- function(data, col='black', dotsize =3.5, xlab='', ylab='',
title=NULL, subtitle=NULL, callback='ScatterSelection',
tooltip=NULL, legend=NULL,legend_title=NULL,legend_pos='topright',
... |
2018b1d5b37d81f92b4d75f88796d173b78d8bbe | 3945388ee0fef9e4f99b2c0b4cd49e4fc58082b5 | /StreamNetworkTools/R/net_calc.r | 5f1b2ce856c09a032043363173cb32f4d8c95eac | [
"MIT"
] | permissive | dkopp3/StreamNetworkTools | 7ea52d4c917bbcf02314a603a3f9b6d5c5b926b5 | 7c693f3edc975493be946d400642bd99c1d9d809 | refs/heads/master | 2023-06-23T09:58:49.678987 | 2023-06-09T18:44:18 | 2023-06-09T18:44:18 | 140,187,794 | 3 | 1 | MIT | 2021-01-22T18:59:07 | 2018-07-08T17:19:10 | R | UTF-8 | R | false | false | 5,725 | r | net_calc.r | #' Network Topology Metrics
#'
#' Calculates stream network topology metrics
#'
#' Requires /NHDPlusAttributes directory (see \code{\link{net_nhdplus}})
#'
#' Length and area measures are scaled by M values
#'
#' @param netdelin output from \code{net_delin}
#' @param vpu NHDPlusV2 Vector Processing Unit
#' @param nhdpl... |
d8c9009e40cf466d317427cf756d485a4f207ba7 | 3032653f72fc73183309bbc17b687600a4115873 | /code/code.main/scripts-easydiff.r | 853267ccf3a69ec6eb561b70e2da73c384a9f464 | [] | no_license | NYU-BFX/hic-bench | 59b2f21b18335ff3fc5c55cf2ee1004775e50e48 | 1d9efa8bb0265e3eef3c328434133c49584ecfcc | refs/heads/master | 2023-02-15T12:26:52.246291 | 2023-01-30T01:44:21 | 2023-01-30T01:44:21 | 53,605,035 | 45 | 21 | null | 2020-04-11T22:55:09 | 2016-03-10T17:49:42 | HTML | UTF-8 | R | false | false | 14,333 | r | scripts-easydiff.r | #!/usr/bin/Rscript
# global variables
VERSION = '1.0'
normalize_matrix <- function(D)
{
D_norm <- normalize.quantiles(D);
dimnames(D_norm) <- dimnames(D);
return(D_norm);
}
calc_fdr_cutoff <- function(pos,neg,fdr)
{
if (fdr<=0) return(Inf);
pos <- sort(pos);
neg <- sort(neg);
kpos <- 1;
kneg <... |
bfa23c8f3f93eb46817e6f1a60ccc48fd915bdb9 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /dipsaus/R/queue-abstract.R | 3c5a4df3120d272f3485ae5e350faf5d9f77e510 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,896 | r | queue-abstract.R | #' @title Defines abstract queue class
#'
#' @description This class is inspired by \url{https://cran.r-project.org/package=txtq}.
#' The difference is \code{AbstractQueue} introduce an abstract class that can
#' be extended and can queue not only text messages, but also arbitrary R
#' objects, including expressions an... |
c2099375825921e102323a1f083e2f7297bea153 | a1c59394a2b42d6756c2b9564697db714b27fe49 | /R/PlotPDFsOLE.R | bf95abb76c745410447d0cdf59c22f34b2509231 | [] | no_license | cran/CSTools | e06a58f876e86e6140af5106a6abb9a6afa7282e | 6c68758da7a0dadc020b48cf99bf211c86498d12 | refs/heads/master | 2023-06-26T01:20:08.946781 | 2023-06-06T13:10:05 | 2023-06-06T13:10:05 | 183,258,656 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 9,977 | r | PlotPDFsOLE.R | #'Plotting two probability density gaussian functions and the optimal linear
#'estimation (OLE) as result of combining them.
#'
#'@author Eroteida Sanchez-Garcia - AEMET, //email{esanchezg@aemet.es}
#'
#'@description This function plots two probability density gaussian functions
#'and the optimal linear estimation (O... |
b62947fccd970e56d734c0df92beca488edd3429 | ba27dafd9f2dfda2cf487dd089a8d9c20dcf24ad | /man/sem.aic.Rd | 9fd7d419e93cf14c5d4078ea8b7bb07557bdb8fb | [] | no_license | guhjy/piecewiseSEM | 9dc9016c8d788228075a917660a854241607d0b7 | 4c74a86efc47e610bf4ebe9c1d180c8da1b6873f | refs/heads/master | 2020-05-21T21:45:21.494051 | 2016-12-08T18:54:35 | 2016-12-08T18:54:35 | 84,651,786 | 1 | 0 | null | 2017-03-11T13:27:26 | 2017-03-11T13:27:26 | null | UTF-8 | R | false | false | 3,590 | rd | sem.aic.Rd | \name{sem.aic}
\alias{sem.aic}
\title{
Extracts AIC scores for piecewise SEM
}
\description{
Extracts the AIC and AICc (corrected for small sample size) values from a piecewise structural equation model (SEM).
}
\usage{
sem.aic(modelList, data, corr.errors, add.vars, grouping.vars,
grouping.fun, adjust.p, basis.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.