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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0acc4b6b12f949f456b71e933fc804499c9f5585 | f59eb4a66aefa4da49184f241d22011f5e74baee | /0-Implementation/R Files/Decision Trees/Season - ELO/ELO11-12.R | d1006f4c014eb67f926f75cf2f907492f4f06ef8 | [] | no_license | Chanter08/Thesis | c89c0fa4173a7139ca4a588133e75032ccd54160 | 37e43db4eaa8c119c1ce99d55bedd06270f2ff73 | refs/heads/master | 2020-12-02T16:47:56.214945 | 2020-01-02T23:07:52 | 2020-01-02T23:07:52 | 143,121,644 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,610 | r | ELO11-12.R | library("caret")
library(corrplot)
library(C50)
library(dummies)
library(gmodels)
library(Metrics)
library(neuralnet)
library(plyr)
library(rpart)
library(tree)
library(e1071)
library(rpart.plot)
library(fastDummies)
################################## Load Files #############################################
x <-
read... |
4d83ed92157123055ac356bf4f6cd9babfccae71 | 31be2f912b67317696c3c361ee0c6c32ce14a6f2 | /rscripts/03_agency_level.R | c3cf9ed3dae1356fa2444f7a4c56b4232a9fe4cf | [] | no_license | mayerantoine/QuarterlyProgress | de2548972398244cd319655dcd28fee3c2155cee | 7a86ca11da7c05360a4a15856c20638f1d96aeac | refs/heads/master | 2021-09-06T17:16:33.769634 | 2018-02-08T22:02:08 | 2018-02-08T22:02:08 | 111,563,713 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,054 | r | 03_agency_level.R | ######################################################################################
## Quaterly Progress Report
## APR17
## Mayer Antoine , CDC Haiti
## Purpose : Create OU Leve... |
054c63b88b670203f7fbf86bb1404ae7b492225e | 99e681afa2d7fead8d48034b9536d1360bff04af | /Vaja2/vaja2.r | 0071eb5d057a5aa8c2837530bb672ca2f0e5299e | [] | no_license | janpristovnik/Financni_praktikum | 9def6419494c9e1fa5dd8b17f13bf415bad537c8 | dbed1ea09412b7eb39111ec73d6e779d3fc2a679 | refs/heads/master | 2021-05-15T09:08:00.548115 | 2017-12-22T15:43:51 | 2017-12-22T15:43:51 | 108,002,774 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,142 | r | vaja2.r | library(actuar)
#Uvozimo podatke in narišemo histogram 1.a
vzorec <- scan("Vaja2/Podatki/vzorec1.txt")
#1.b izberem Weibulovo porazdelitev, saj pri parametrih lambda =1, k=1.5
#njena gosota najbolj spominja na histogram, ki sem ga dobil iz vzorca
Vektor1 <- mde(vzorec, pweibull, start = list(shape = 1, scale = 1), ... |
2b77eacc7a3db0563be0e13c5b65e921d44f84f9 | 7372f0f88b855f3377745206ebe9629a1064f185 | /seawaveQ/man/pesticideTrendCalcs.Rd | 49dbd3cc0c53c325d7d04db29df2326ccc4d45d9 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"CC0-1.0"
] | permissive | kryberg-USGS/seawaveQ | eae47969876e6b3977bd4b3eafa449525854a505 | 1ca36d280d4bd4a62baf0fe02b805b4193a430cd | refs/heads/master | 2021-04-09T11:44:21.420868 | 2020-12-13T21:20:42 | 2020-12-13T21:20:42 | 125,564,524 | 0 | 2 | null | 2020-12-14T22:22:10 | 2018-03-16T20:05:54 | R | UTF-8 | R | false | true | 4,221 | rd | pesticideTrendCalcs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pesticideTrendCalcs.R
\name{pesticideTrendCalcs}
\alias{pesticideTrendCalcs}
\title{Summarize linear trends}
\format{
The data frame returned has one row for each chemical analyzed
and the number of columns are defined as follows: \cr
\tabul... |
669f4b859e9eb19a03fed381beb27b604b65f522 | 280c2378eaeca0585e1656fd0b7530123933b805 | /shiny-server/rsloan/data/ashd.R | 5d2c5a65ee2ef3561640d6bbd5295617b6c143bd | [
"MIT"
] | permissive | kancheng/rsloan | a62c025fc40aadcc19468a41a8fe1cdffbbad719 | 2b2c658ca951f83615fa20711fade428f8bfa143 | refs/heads/master | 2020-05-23T10:11:56.172790 | 2017-10-23T04:00:39 | 2017-10-23T04:00:39 | 80,401,210 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 316 | r | ashd.R | # data handle
chfa.as = function(x)
{
as.character(as.factor(x))
}
ncf.as = function(x)
{
as.numeric(chfa.as(x))
}
nuch.as = function(x)
{
as.numeric(as.character(x))
}
# data head list
hdlis = function( hliobj, hrol = 5){
lethl = length(hliobj)
for( frl in 1:lethl){
print(head( hliobj[[frl]], hrol))
}
} |
71eb32723db74ce275be666853171c42b2c654f3 | 7255f071174e76a76399ec3cca5cd674cf397afd | /man/gender_vector.Rd | b1292acf5789cf2de4dab7663a3003332713e0a1 | [
"MIT"
] | permissive | bmschmidt/gender | 628fa527b599aa24e826ac8ba240b996b7a6c09e | 3ca8f9eb721c1eb22c5f6506f1cf8e3e93f969fb | refs/heads/master | 2021-01-18T17:59:42.170732 | 2016-09-15T19:21:25 | 2016-09-15T19:21:53 | 20,813,775 | 1 | 0 | null | 2016-09-08T22:02:45 | 2014-06-13T18:28:21 | R | UTF-8 | R | false | true | 2,358 | rd | gender_vector.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gender_vector.R
\name{gender_vector}
\alias{gender_vector}
\title{Predict gender on each element of vector, with automatic defaults}
\usage{
gender_vector(names, years = 2000, year_ends = years,
countries = "United States", threshold = 0.5)... |
01404c6859f635efcf69917fc488f5f79c23ca78 | 61c19d82e358cdd3fc7466c748953670ee30e09f | /man/id.to.rs.Rd | 603d7fe49dfad0d2163b2b3ba492df60a5f6b746 | [] | no_license | cran/humarray | 7d0352fc54528e30085935922b849f07b26b4cad | 7d9a894a6ee7ce3a67bdc521bdad9313f567e175 | refs/heads/master | 2020-04-06T21:25:50.701686 | 2017-11-19T23:12:32 | 2017-11-19T23:12:32 | 54,423,012 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,097 | rd | id.to.rs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/humarray.R
\name{id.to.rs}
\alias{id.to.rs}
\title{Convert from chip ID labels to dbSNP rs-ids}
\usage{
id.to.rs(ids)
}
\arguments{
\item{ids}{character, meant to be a list of chip ids, but if rs-ids are present they will not be altered.}
}
\... |
267f56fde8fb9fdeaeb2aa38d48e29cff5f4f39d | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.customer.engagement/man/pinpointemail_create_dedicated_ip_pool.Rd | 748824289d20b3f9eb100df513d0fc0802d4c978 | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 1,077 | rd | pinpointemail_create_dedicated_ip_pool.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpointemail_operations.R
\name{pinpointemail_create_dedicated_ip_pool}
\alias{pinpointemail_create_dedicated_ip_pool}
\title{Create a new pool of dedicated IP addresses}
\usage{
pinpointemail_create_dedicated_ip_pool(PoolName, Tags)
}
\argu... |
69467bb78ca49b55cc42f6e30a1831518d8c454a | 13fd537c59bf51ebc44b384d2b5a5d4d8b4e41da | /R/tests/testdir_autoGen/runit_simpleFilterTest_syn_fp_prostate_35.R | cc033c942ced9ea78f1a24390aefc49a2a22d33f | [
"Apache-2.0"
] | permissive | hardikk/h2o | 8bd76994a77a27a84eb222a29fd2c1d1c3f37735 | 10810480518d43dd720690e729d2f3b9a0f8eba7 | refs/heads/master | 2020-12-25T23:56:29.463807 | 2013-11-28T19:14:17 | 2013-11-28T19:14:17 | 14,797,021 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 12,760 | r | runit_simpleFilterTest_syn_fp_prostate_35.R | ##
# Author: Autogenerated on 2013-11-27 18:13:58
# gitHash: c4ad841105ba82f4a3979e4cf1ae7e20a5905e59
# SEED: 4663640625336856642
##
source('./findNSourceUtils.R')
Log.info("======================== Begin Test ==========================... |
a0647fd4b056cbecb11f03aec2d764566aa1c1d2 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/5972_9/rinput.R | f09b7110a787d71c8aeb17551c64a47ca5ef901b | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("5972_9.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5972_9_unrooted.txt") |
c69394a900d1876acd537102d15f1d6bcc81fa9a | 4201e9b754760dc35fc0aeef9df5a8b9d801c47f | /bin/R-3.5.1/src/library/tools/R/dynamicHelp.R | 4a1cdeb9578f47d973ed4a4326866ec350447e4a | [
"Artistic-2.0",
"GPL-2.0-or-later",
"LGPL-2.0-or-later",
"Artistic-1.0",
"CECILL-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"GPL-2.0-only",
"BSL-1.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lifebit-ai/exomedepth | cbe59cb7fcf2f9183d187f8d466c6620fb1a0c2e | 5a775ae5e2a247aeadc5208a34e8717c7855d080 | refs/heads/master | 2020-03-27T12:55:56.400581 | 2018-10-11T10:00:07 | 2018-10-11T10:00:07 | 146,578,924 | 0 | 0 | MIT | 2018-08-29T09:43:52 | 2018-08-29T09:43:51 | null | UTF-8 | R | false | false | 28,560 | r | dynamicHelp.R | # File src/library/tools/R/dynamicHelp.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# 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 Foundation; ei... |
857db95d6f03168d5ff7af5e92e33d787ddf9865 | a5b1cc470773889f88d19070dca627f7bcf952ad | /run_analysis.R | 9042a2a8d74c4c5f4e24d4343fa73586579eb73a | [] | no_license | sir-real/coursera_getting_cleaning_data | 313b41d0b9aa5498d3b3934cf5e278bda6db86e1 | 1ba6a5b5669ee48341b7c727f862ea0f53aaa45c | refs/heads/master | 2021-04-26T23:52:51.642849 | 2018-03-05T07:07:01 | 2018-03-05T07:07:01 | 123,874,073 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,172 | r | run_analysis.R | #Package Includes
library(dplyr)
# Step 1 - Getting and Merging the Data
featuredata <- read.table("./UCI HAR Dataset/features.txt")
featuredata <- as.character(featuredata[,2])
xtraindata <- read.table("./UCI HAR Dataset/train/X_train.txt")
ytraindata <- read.table("./UCI HAR Dataset/train/y_train.txt")
subjecttrai... |
38638778d45bad068bfd0d4ff72539ee51e1cb63 | ab7d15d06ed92cd51cc383dc9e98ae2a8fa41eaa | /R/zzz.R | e55da2823a952cf79c036bfafb8550760306d742 | [
"MIT"
] | permissive | rich-iannone/DiagrammeR | 14c46eb994eb8de90c50166a5d2d7e0668d3f7c5 | 218705d52d445c5d158a04abf8107b425ea40ce1 | refs/heads/main | 2023-08-18T10:32:30.784039 | 2023-05-19T16:33:47 | 2023-05-19T16:33:47 | 28,556,914 | 1,750 | 293 | NOASSERTION | 2023-07-10T20:46:28 | 2014-12-28T08:01:15 | R | UTF-8 | R | false | false | 1,266 | r | zzz.R | #nocov start
utils::globalVariables(
c(
".",
"action_index",
"action_name",
"attr",
"attr_type",
"deg",
"degree",
"df_id",
"df_id__",
"display",
"duration",
"edge",
"edges",
"edge_from_to",
"e_id",
"fa_uri",
"fillcolor",
"from",
"from.y",
... |
4aed18a0b289e4c77310cebf73d79d510d837cb0 | 7b74f00cd80694634e6925067aaeb6572b09aef8 | /2018/Assignment/FE8828-LiangXuesen/Assignment1/app.R | a5fcd7b527cef9da45a80cb8a91c40a9c56f27ed | [] | no_license | leafyoung/fe8828 | 64c3c52f1587a8e55ef404e8cedacbb28dd10f3f | ccd569c1caed8baae8680731d4ff89699405b0f9 | refs/heads/master | 2023-01-13T00:08:13.213027 | 2020-11-08T14:08:10 | 2020-11-08T14:08:10 | 107,782,106 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,542 | 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(ggplot2)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Ap... |
4c0ece0db60a1742e53900189cad37f678298c16 | 6b2ccc8032c85e93cc67971c5a6dabf1bf6aac20 | /download-and-unzip-data.r | bda473a22e64b7c4c549e72f49ee0031bc896b56 | [] | no_license | anhnguyendepocen/r-code-examples | 851adbbff4f51b8a75a8b71a1dfd303669e5de44 | 13fbab181f874de1db2b0899b10efafc825fa625 | refs/heads/master | 2022-01-28T21:19:54.726404 | 2019-04-02T14:35:27 | 2019-04-02T14:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 481 | r | download-and-unzip-data.r | # Download And Unzip Data
# download a zip file containing broadband data, save it to the working directory
download.file("http://www2.ntia.doc.gov/files/broadband-data/AK-NBM-CSV-Dec-2012.zip", destfile="AK-NBM-CSV-Dec-2012.zip")
# unzip the file
unzip("AK-NBM-CSV-Dec-2012.zip")
# unzip the file inside the zip file... |
67e107371d63a44a6c76d72915de937d5eb2710e | 0cc8920c857ada69f8d15d734663062c1337f109 | /R/spaceopt/scoring/space_allocation_loop.R | 9b020f97d52f7b65d7cf1029a0fc9be9c12283a2 | [] | no_license | kpushkar/scalene | 783f08a13ade0da14454f3b19b71b1c1cc92cdae | d38412597dcb8b3081b6e0b9567fd2c4e93a91df | refs/heads/master | 2021-01-12T02:27:28.296528 | 2017-01-26T10:36:02 | 2017-01-26T10:36:02 | 77,958,383 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,664 | r | space_allocation_loop.R | # version 2 of space allocation
# this time using a completely simplistic approach of space allocation
# and then compare with the non-linear optimisation answer
# logic is as follows
# while space left to allocate
# allocate space to product with greatest incremental sales
# update next incremental sales value fo... |
eb9c4e5600f01e228459473a809f2f7b71fb2553 | 703ba5f02aaeddbfd44489ee75b38b7bddc68b1d | /stuff.R | 65feb62db79f11b7710e5a04f70a6161763d5c5d | [] | no_license | phil8192/kaggle-lmgpip | 237f21ab62aa2e841e4962f06fcdde646cee2ad9 | 56c1d16fd67a98cea2fcea7c4247263de66ff007 | refs/heads/master | 2016-09-05T17:02:06.954235 | 2015-08-29T17:32:14 | 2015-08-29T17:32:14 | 41,601,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,351 | r | stuff.R | rm(list=ls())
# kaggle's gini function (ripped verbatim from https://www.kaggle.com/wiki/RCodeForGini)
#"NormalizedGini" is the other half of the metric. This function does most of the work, though
SumModelGini <- function(solution, submission) {
df = data.frame(solution = solution, submission = submission)
df <- ... |
6268f242bceecb05e35bc41fc6b7578b9065ffa6 | cb8470ace865d214643ad99b8d6538f364a651a0 | /inst/extdata/article/repeat_tracks.R | 72daafc22ed6f0d42303f3a08eb58628825b63bd | [] | no_license | sonthuybacha/soysambu | edac3fc7a0c5831c8c6c1ac8059ff57d179d1828 | 67d691cd09359b0b76a71259f09d53cf030447eb | refs/heads/master | 2020-09-22T02:49:50.310680 | 2019-05-22T04:32:08 | 2019-05-22T04:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,883 | r | repeat_tracks.R | pacman::p_load(spatstat,Soysambu,sf)
pplot=curry(plot.ppp,use.marks=F,main="")
# split transects --------------------------------------
s=sf_dt(gps_tracks)
s[, trackdate := lubridate::ymd_hms(time) %>% as.Date]
tr=ppp(x=s$lon,y=s$lat,window=Window(snares))
# split by track
marks(tr)=factor(s$track_nr)
ss=split(tr)... |
226d956770a1f97c0e71359fe01bf06cbbc1d470 | 6ed74fa0cf68e3a16c101f89a14824e8a950002b | /Demoscripts/HadoopIOQ_Tests.R | 1125787064c732ccb90a408a19059ec67f5f4f19 | [
"MIT"
] | permissive | dem108/Revolution-R-Enterprise-for-Academic-Users | 5956d16c5ea5301f4d6d66341a0009e5a2adeb56 | dd3b5de7a96d2c9d2515edeac739e12d6d7ca7b0 | refs/heads/master | 2021-01-24T20:46:37.489023 | 2014-06-04T18:30:15 | 2014-06-04T18:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,642 | r | HadoopIOQ_Tests.R |
############################################################################################
# Copyright (C) 2013 Revolution Analytics, Inc
############################################################################################
#
# Run tests using both RxHadoopMR and local compute contexts
#
#####################... |
0477218f11213ea0d2d415690e0e4851955430b9 | 60e96724924a3d2988c16a5b80106755e3471fc3 | /20200607 Grafico animado.R | e03ffef0e8a8cdb04c98cf18ec1108d758360614 | [] | no_license | estadisticavlc/RetoGraficos | e96014b80dc4bd9666f300f8f6ab06078d49cd09 | d116c0648fe9282881e222aee81fc46af253349a | refs/heads/master | 2022-09-26T20:35:24.126578 | 2020-06-05T08:12:01 | 2020-06-05T08:12:01 | 262,992,341 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,102 | r | 20200607 Grafico animado.R | lista_de_paquetes <- c("curl", "gganimate","ggplot2","magick") # Definimos los paquetes que queremos cargar
paquetes_nuevos <- lista_de_paquetes[!(lista_de_paquetes %in% installed.packages()[,"Package"])] # Buscamos los paquetes que no tenemos
if(length(paquetes_nuevos)) install.packages(paquetes_nuevos) # Instalamos... |
6490f7b8993f45b9c388927c0a19e5af172a0e11 | 7b84d52058afecaee3e2ddc1c80a3949328e0529 | /Plot1.R | 70ecc18ae033ebbe42ec4dcaa7705fdd587b2b5c | [] | no_license | NN123/ExData_Plotting1 | ec555312ea3db4606f92de8f75e3d0071e85b5c4 | 1a283be343fd51e28feb996f542253662cf12f8f | refs/heads/master | 2021-01-17T10:18:25.111871 | 2016-02-10T10:37:08 | 2016-02-10T10:37:08 | 51,430,154 | 0 | 0 | null | 2016-02-10T08:57:27 | 2016-02-10T08:57:27 | null | UTF-8 | R | false | false | 847 | r | Plot1.R | setwd("C:/Users/narayane/Documents/GitHub/Neena_Exploratory")
## Project 1 - EDA
library(data.table)
file1<-("./household_power_consumption.txt")
house_power<-read.table(text= grep("^[1,2]/2/2007",readLines(file1),value=TRUE), col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "... |
7848eca5426549e4e37f8179c61bd1c233f7a729 | 5fcde27b46bca2a87fd3607a378994c271f9df53 | /best.R | fa2dacd7f3fcdc683a93a3f99bd57cb4b6c44d0b | [] | no_license | dvsdimas/ProgrammingAssignment3 | cf2aa0c8efefbaaf28028c815026605319512e77 | 449873acb609e1cf901fe72c1efd961947ad0323 | refs/heads/master | 2021-03-22T05:14:10.150980 | 2016-10-04T13:42:25 | 2016-10-04T13:42:25 | 69,997,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,063 | r | best.R | best <- function(state, outcome) {
directory <- "data"
outcomes_data <- c("heart attack", "heart failure", "pneumonia")
for (letters in list.files()) {
if(identical(letters, directory)){
setwd(directory)
}
}
outcome_data <- read.csv("outcome-of-ca... |
857d960ebe023966006d2adfb8b3a593c9604cfe | a46293558d70f0cd960bd63094b44e53a0e19da6 | /main.R | 25081dbb331ba1aab1478b2c197712478e7bcc2a | [] | no_license | bigtongue5566/R_SOM | cc3334e5e40f432e921b4cf5a37966fee0692f96 | 657397b19dc6b13e4230d438c06d0f3927e558f1 | refs/heads/master | 2022-03-02T15:19:50.277641 | 2019-09-23T03:00:45 | 2019-09-23T03:00:45 | 110,215,285 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,394 | r | main.R | set.seed(0)
calculate.nets <- function(input.vector,weights,x,y){
nets <- matrix(colSums((input.vector - weights)^2),x,y)
return(nets)
}
find.winning.node <- function(nets){
min.position <- which(nets == min(nets), arr.ind = TRUE)
return(min.position)
}
training <- function(data,xsize=10,ysize=10,training.r... |
e4890e33ac24d73a4265243bd26cefb93ea9fa56 | 052989647c39e571aa2d5637f52ff08772404e29 | /3/IO/dputdump.R | 5a4008d07e5d1dc4cedd99eb0c7772476e5b6be0 | [] | no_license | bhaskar-manguluri/JHU | f13736df9447ba96de3b927d8f2fd79fe62e6aae | 2c0d24b9152598d6605a26b930b1c59402b2b198 | refs/heads/master | 2021-01-17T08:04:00.528427 | 2017-03-29T16:18:13 | 2017-03-29T16:18:13 | 83,831,943 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15 | r | dputdump.R | c("temp", "x")
|
50735fa27ae44458645f7663a2d5aba6edc8f63b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/bayesmeta/examples/HinksEtAl2010.Rd.R | ef3dcf9ec37c0b9eac09c7446c38fdcf590e801e | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,771 | r | HinksEtAl2010.Rd.R | library(bayesmeta)
### Name: HinksEtAl2010
### Title: JIA example data
### Aliases: HinksEtAl2010
### Keywords: datasets
### ** Examples
data("HinksEtAl2010")
## Not run:
##D # perform meta analysis based on weakly informative half-normal prior:
##D bma01 <- bayesmeta(y = HinksEtAl2010$log.or,
##D ... |
3fc508cdab5fc9fb47bc85b9f4192c08d22dcf01 | 78e656557b5cc6b77f8a30a3792e41b6f79f2f69 | /aslib/R/convertFeats.R | 1acc53605129889647f84bdbafc18e82e11ccdb9 | [] | no_license | coseal/aslib-r | f7833aa6d9750f00c6955bade2b8dba6b452c9e1 | 2363baf4607971cd2ed1d784d323ecef898b2ea3 | refs/heads/master | 2022-09-12T15:19:20.609668 | 2022-09-02T17:48:51 | 2022-09-02T17:48:51 | 27,724,280 | 6 | 7 | null | 2021-10-17T17:34:54 | 2014-12-08T16:38:21 | R | UTF-8 | R | false | false | 1,617 | r | convertFeats.R | # helper to convert feats to llama or mlr
convertFeats = function(asscenario, feature.steps, with.id, type) {
assertChoice(type, c("instance", "algorithm"))
if (type == "instance") {
feature.col = "feature.values"
step.col = "feature_steps"
id.col = "instance_id"
sortBy = c("instance_id", "repeti... |
ded1a3b83265dc9ebe06e6aac51e808a8d4f5376 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /IntervalSurgeon/man/breaks.Rd | 5b91ff4ef71e40b04a2dfbf189b564b313ce3906 | [] | 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 | true | 626 | rd | breaks.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{breaks}
\alias{breaks}
\title{Get break points for set of intervals}
\usage{
breaks(x)
}
\arguments{
\item{x}{Integer matrix of two columns, the first column giving the (inclusive) start points of intervals and the ... |
f9ad8e4620bc12a6a3506bc57ebf50dceef149ca | 5c133fd27806cfe67789dd4b2db1508764908ee8 | /PLOT2.R | 71d581f2e5426a25c2d20aef0191683e62381df3 | [] | no_license | nsamniegorojas/ExData_Plotting1 | 6a42a644911b93d8c9a31ef1d23d6e09e98d4d11 | d79160dfe6e759284d5c4916513c2fa5eae0c89d | refs/heads/master | 2023-01-20T15:56:30.154420 | 2020-11-28T16:52:56 | 2020-11-28T16:52:56 | 300,127,236 | 0 | 0 | null | 2020-10-01T03:21:08 | 2020-10-01T03:21:07 | null | UTF-8 | R | false | false | 717 | r | PLOT2.R | #reading file csv
rm(list=ls())
#reading file csv
setwd ("C:/R_PROJECTS/EXPLORATORY_DATA")
#install.packages ("readr")
#library("readr")
data <-read.csv2 ("C:/R_PROJECTS/EXPLORATORY_DATA/PROJECT1_EDA/household_power_consumption.txt", header = TRUE)
data <- na.omit(data)
#subsetting data
subdata<-subset(data, data$... |
9bfe92dbfd954e11fac2a2750b28f3c59427bb55 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.security.identity/man/ssoadmin_create_account_assignment.Rd | 59786817173769d6174d5390f33ef942f99c772c | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 1,655 | rd | ssoadmin_create_account_assignment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssoadmin_operations.R
\name{ssoadmin_create_account_assignment}
\alias{ssoadmin_create_account_assignment}
\title{Assigns access to a principal for a specified AWS account using a
specified permission set}
\usage{
ssoadmin_create_account_assi... |
cb31b90bca2e2205e186a97a7c02b10798d375e1 | d4149554bdfa874ada418d6bf7cfd2ad044e402e | /Consulting Final.R | 5de00aaeb2f0abed46c3236c61e67938383c3c93 | [] | no_license | njfox12/Genetic_Expression | 82f412af6ee5b916277f5ff67c11bd2abf78310d | a0cba42b684fcbddfdcbb515f6f7ca7456ea9826 | refs/heads/master | 2021-01-13T04:39:01.131774 | 2017-01-23T18:44:52 | 2017-01-23T18:44:52 | 79,382,832 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,789 | r | Consulting Final.R | ####This script takes Matrix eQTL input files and creates a weight file and a predictive performance (R2) file
####The weight output file can be used to generate a .db file for use in PrediXcan with generate_sqlite_dbs.py
####by Heather E. Wheeler 20160803####
###This is script is based on Heather Wheeler's origin... |
e1d020b2afd1414a6e0bca676a87a2f7bb923e30 | 487a34c5ace2b1a60229c5403335de734616561e | /4f2-quantmod1.R | 5b3e4946de7e61a27e1d271f28e335940ed828ce | [] | no_license | hhenoida/dataanalytics | 39d261a288f90c97effc0358d49fd2ffb8566578 | c563272f7890a0731fbb9e24e5ff6309ea8586ee | refs/heads/master | 2020-03-31T19:50:12.135620 | 2018-10-29T12:40:39 | 2018-10-29T12:40:39 | 152,513,808 | 259 | 15 | null | null | null | null | UTF-8 | R | false | false | 3,688 | r | 4f2-quantmod1.R | #https://ntguardian.wordpress.com/2017/03/27/introduction-stock-market-data-r-1/
#Stock Analysis
#install package quantmod
# Get quantmod
if (!require("quantmod")) {
install.packages("quantmod")
library(quantmod)
}
start <- as.Date("2017-01-01")
end <- as.Date("2018-10-28")
# Let's get Apple stock data; Apple's... |
23c8bfed8f5ac132400863f7072ff536efd0efbb | 81be8ee066df08136b774f8a95f97d2fbd90a1eb | /man/at_inq.Rd | f9f2c4c03289af04f5f88af562fe52a872e384a2 | [] | no_license | patperu/AriaToscana | 7e80dbad0a292276a2be7c0c347c0d52f0569fee | 8c289c74c5c4595643227301ea72a31d436739ec | refs/heads/master | 2021-01-18T21:52:33.076624 | 2016-05-28T10:07:19 | 2016-05-28T10:07:19 | 51,249,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 981 | rd | at_inq.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/at_inq.R
\docType{data}
\name{at_inq}
\alias{at_inq}
\title{Measurements of Air Pollutants (2008 - 2014)}
\format{Data frame with columns
\describe{
\item{stazione}{Stazione, first two characters are the Provincia}
\item{parameter}{inquinante... |
9cd8edb6c05bab695ad8d42031a5e1f765862ded | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/1941_2/rinput.R | 10e67ff25f295db9e8bb99e6538002565706a9a2 | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("1941_2.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1941_2_unrooted.txt") |
550b317523f7c43760dc1dbeff60641a1aaa0c49 | 384c3dbc571be91c6f743d1427dec00f13e0d8ae | /r/kernels/stevengolo-titanic-machine-learning-from-disaster/script/titanic-machine-learning-from-disaster.R | 53155f021c6d18c3f9b792519e7a7a8dcdaa6691 | [] | no_license | helenaK/trustworthy-titanic | b9acdd8ca94f2fa3f7eb965596eed4a62821b21e | ade0e487820cf38974561da2403ebe0da9de8bc6 | refs/heads/master | 2022-12-09T20:56:30.700809 | 2020-09-10T14:22:24 | 2020-09-10T14:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,036 | r | titanic-machine-learning-from-disaster.R | ## ----setup, include=FALSE--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE)
## ----packages, mess... |
397e10e2e63a78a34e6439afa76914c530ba196c | 8363dcba0ae7bdb88bc1d9763ec4f55a0b80cd6b | /R-proj/sensitivity/one_run.R | bc62a9f9764014988bc0462cc002f0f31f7cd3ce | [] | no_license | FredHutch/COVID_modeling_sensitivity | 359753ce19434829b09401d687b7bb40379bdfc3 | c0fe21db64e29dd5e70488da4ad60cc37cfd1747 | refs/heads/master | 2023-05-08T18:23:37.274565 | 2021-06-01T21:12:16 | 2021-06-01T21:12:16 | 351,925,937 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,488 | r | one_run.R | set.seed(20)
print_legend = 0
setwd("..") # run from R-proj directory
source("covid-model.R")
source("kc_read-data.R")
#Settings used in all scenarios (for now)
#max_sd<-0.6 # how far to tighten SD
#Rscript one_run.R $dist $age_code $vac_eff_i $vac_eff_s $vac_eff_p $vac_rate $mut_inf $sd_lower $sd_upper $sd_loosen $s... |
fd6226a7e64f8fd7dab72b680272984338ed8cc8 | 6b36070e2801967efcfd1f0d4b39d5e7b1623458 | /demo/aggResults2.R | 127a2cf48183d083eeb2fefb165b1a35c94b939a | [] | no_license | nmmarquez/PointPolygon | fbcfd351e2f38a5f30a832fdbe4ff8f15fca3eef | a2f9386c3a737528e5dc0db0222c2f6bb6d7a83a | refs/heads/master | 2021-06-22T14:32:21.422859 | 2020-12-06T22:47:00 | 2020-12-06T22:47:00 | 155,793,434 | 1 | 2 | null | 2020-03-05T00:24:59 | 2018-11-02T00:42:02 | R | UTF-8 | R | false | false | 21,176 | r | aggResults2.R | .libPaths(c("~/R3.6/", .libPaths()))
rm(list=ls())
library(tibble)
library(dplyr)
library(parallel)
library(readr)
library(PointPolygon)
library(stringr)
library(tidyr)
library(ggplot2)
library(sf)
library(forcats)
rdsPathList <- list.files("~/Data/spaceTimeTest3/", full.names=TRUE)
resultsDF <- bind_rows(mclapply(rd... |
8e8a2211b80a8c0360027911199add90b08daa88 | 6e37685e4b0101dd50c06bbdb358bf6ae8038022 | /R/get_payload.R | 46c1a048a53254e4641431a32abfca8d40a6aa07 | [] | no_license | cran/mlbgameday | 63a8226b53f3807600a26100f5ea5979fbf8bd32 | dae629de90c55ddf26d8048a92fd4c404b776a17 | refs/heads/master | 2022-03-28T06:41:31.078674 | 2019-04-02T17:50:07 | 2019-04-02T17:50:07 | 112,774,760 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,944 | r | get_payload.R | #' Get Gameday data from MLBAM.
#' @param start A start date passed as a character in ISO 8601 format. \code{"2017-05-01"}
#' @param end An end date passed as a character in ISO 8601 format. \code{"2017-09-01"}
#' @param league The league to gather gids for. The default is \code{"mlb"}. Other options include \code{"aaa... |
08290e2c01655aff4668ee34c37e6a43ef49941d | f7a4328c2c33fe5c1a4fc7895cffabac75f3d40c | /man/plotGraphic.Rd | 1bc8b5bb49f79a27fc6158a517b13e64b238ea99 | [] | no_license | Frederic-bioinfo/MetaFeatures | 447834d966c4f7ec140a366666e8de7878f34f94 | 69a625852597ab72ebc339da98b2d11d36770440 | refs/heads/master | 2021-01-18T12:45:11.243150 | 2014-06-18T19:25:08 | 2014-06-18T19:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 496 | rd | plotGraphic.Rd | \name{plotGraphic}
\alias{plotGraphic}
\title{
Produce a plot with based on a data.frame
}
\description{
This function will produce the final plot for an analysis.
}
\usage{
plotGraphic(
DF,
title)
}
\arguments{
\item{DF}{The data frame produced by the getDataFrame
function}
\item{title}{The ... |
dfddda3b2287a017c2b760c73b3a71897839434b | af3aad98bff24bcae224ee377b47ebfb05e9ba84 | /man/play_game.Rd | dce9916194ec243ec2f5f25e68e5451128ae96a4 | [] | no_license | bbmoren2/montyhall | 39cb0ac99ccbadc953d9fab64430373740450e60 | 745e668b4c2c51a6bdc3dbed421d53b04ac0d26c | refs/heads/main | 2023-07-19T05:20:06.452409 | 2021-09-11T00:33:27 | 2021-09-11T00:33:27 | 405,245,712 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 711 | rd | play_game.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monty-hall-problem.R
\name{play_game}
\alias{play_game}
\title{The whole Monty Hall Problem game}
\usage{
play_game()
}
\arguments{
\item{...}{no arguments are used by the function.}
}
\value{
The function returns "WIN" or "LOSE" as the game.... |
dbc89a1f3911e1ca68c06c1fcbb55736d6613071 | 1fd8b00e9265e4998e5b76ea020f2420853b5875 | /puts_posts_cnt.R | 1a702d2bb16339576a131bbab2eafb1f5af8e4ac | [] | no_license | avrao/log_analysis_r | b705f09936c1af1f34e6e9f6802edf786b8e4ca4 | 950f15aebf63e66e5c99cd5806c52eae67743f04 | refs/heads/master | 2020-03-28T12:08:09.745261 | 2018-09-12T16:24:35 | 2018-09-12T16:24:35 | 148,271,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 842 | r | puts_posts_cnt.R | # How many puts / posts were there.
library(ggplot2)
library(stringr)
#access.log is required to be included int eh same directory
df = read.table('access.log')
#head(df)
colnames(df) = c('ip_address', 'nameless_v2', 'nameless_v3', 'date', 'nameless_v5', 'request', 'status', 'bytes', 'url', 'browser_specs')
head(df['re... |
794c2a4cb3f13dcb20ff36a11559bc451dbf4711 | fcb1476bffeb6e1016680c23b32ce83221c1d6f5 | /EDA.R | ea30d257a27022d3afbb3802867054197d8d84b2 | [
"MIT"
] | permissive | jcarlosmayo/helsinki_housing | fc0ab1c0aaacc8172720a1b5ec1290eb98a8877b | dbfa8934dc4ebf8d44e9087f1c8fb113cef2dd2a | refs/heads/master | 2020-05-15T23:35:31.215697 | 2016-01-25T16:40:10 | 2016-01-25T16:40:10 | 30,873,150 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,949 | r | EDA.R | # Load required libraries
library(ggplot2); library(dplyr); library(RSvgDevice)
#######################
# Load all clean data #
#######################
files <- dir("clean_data/")
clean_data <- data.frame()
for (i in files){
print(paste("clean_data/", i, sep=""))
rds <- readRDS(paste("clean_data/", i, sep=... |
31b60f566ec7ec69f2c456fed4bcbcc91105aa02 | 7ac79798b6c04c6fefa2c6738c0fd4dcfcebfe48 | /R-Neural-Network/nnplay.r | 5aba6641375e338e93ce4b43db5219852413adcd | [] | no_license | noiseux1523/Machine-Learning | 34e724d064fc776649157202eed7d183bfae47a8 | ef8a8820f4d9af526286f9597fcbaabe54bd9a31 | refs/heads/master | 2021-01-25T12:49:58.902351 | 2018-03-02T15:54:45 | 2018-03-02T15:54:45 | 123,517,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,215 | r | nnplay.r | ##
## must have the next two
## install.packages("neuralnet")
## install.packages('caTools')
##
## nice and optional
##
## install.packages("plyr")
## install.packages('ISLR')
##
## to play with rnn
##
## install.packages('rnn')
##
library(neuralnet)
library(caTools)
# data.pat... |
e9c5c6a619c2d962b8b3d6e56c1a353e839c8e97 | bdc3d3565cb86add876cd7afe7455f9fb415ddd8 | /R/generate.R | dfea40cc59faf72f462a81121ede3d001581ac50 | [
"BSD-3-Clause"
] | permissive | jbencook/dishonest-casino | 53ad7d5ce88511846b38373e7ba3064237b8a616 | ef32cfd8ed328cef1d320898eb40fdb5b8fa5182 | refs/heads/master | 2021-01-22T05:05:59.456593 | 2013-07-16T14:16:05 | 2013-07-16T14:16:05 | 11,451,141 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 645 | r | generate.R | #The first die is fair:
die <- "F"
casino <- die
cat("Generating 10,000 rolls... \n\n")
rolls <- NULL
for (i in 1:10000){
if (die == "F"){
rollx <- sample(1:6,1)
y <- runif(1)
if (y <= 0.05)
{
newdie <- "L"
} else {newdie <- "F"}
}
if (die=="L"){
x <- runif(1)
... |
9ab79247c9cb590ac53f2814e1f4135284bbb291 | c4f2df4cd1610124fa0a72a62254a97c33e4b7d6 | /package/BEAST/man/OrthogonalityReg.Rd | 647d2ad91512f813767e0073431e57d6cc6f8fa7 | [] | no_license | jeremylhour/alternative-synthetic-control-sparsity | bc5136e91dedd356a31fc91bc0b2d5f09205a193 | a37330d24789b739b5b7a4e6a8b576f095786f2a | refs/heads/master | 2023-05-03T03:16:06.835203 | 2021-05-19T19:10:19 | 2021-05-19T19:10:19 | 52,441,372 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,715 | rd | OrthogonalityReg.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/OrthogonalityReg.R
\name{OrthogonalityReg}
\alias{OrthogonalityReg}
\title{Function to compute mu, the covariate balancing weights}
\usage{
OrthogonalityReg(y, d, X, beta, method = "WLSLasso", c = 1.1,
nopenset = c(1), RescaleY = F,... |
52c5a1bddba1e2cde46dc2b6a9d1a3b381a546d8 | fc29db7345a87579142ce3538f0f50ed427c4331 | /PREDICT 401/Assignments/Assignment 2/A2_template.R | 14937cd6b7d5067059b101269f31c78e3f14e9bd | [] | no_license | estelle3627/MSPA | 8a65b14b059a0a61daf93a32e7ee917e415f58d4 | 4ce30f13f362ca25fc845bb3a3b600fe6d4814d0 | refs/heads/master | 2021-01-20T09:13:31.666384 | 2017-01-13T09:51:10 | 2017-01-13T09:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,543 | r | A2_template.R | #Predict 401
##Data Analysis Assignment 2
#----------------------------------------------------------------------------
# Part 1 Table Construction and Probability Calculations
#----------------------------------------------------------------------------
#This part of the assignment will use the data in "Hospital.csv... |
aa26e800b9e4a44bfdb2751136000634629b8d4d | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ADMMnet/R/ADMMnet.R | c32f1db977447554869c25bacdd1eb2dddfe40ef | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,628 | r | ADMMnet.R |
####################################################
##### ADMMnet (ADMM-L0) #####
##### Penalty: L1, L2, Laplacian #####
##### Algorithm: one-step coordinate descent #####
####################################################
ADMMnet=function(x, y, family=c("gaussian", ... |
7b39a45c78e5a25526d76f27cb23e259b0f57eae | 6e774b671a32c125c159907e5d92c1caec8dfad4 | /test.R | edb4e58f80ccd0eb25a926656ad3878fe2dfc37f | [] | no_license | bellhkim/dbscan | 015681b12aed8bb60129958161bb4205950c67d0 | 5c0ed56794f04e0ac4c434a46368e95114dfea98 | refs/heads/master | 2020-03-22T14:49:28.486718 | 2018-07-09T01:32:07 | 2018-07-09T01:32:07 | 140,208,347 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,089 | r | test.R | setwd('C:/Users/dsc/dbscan')
df = USArrests
dist(df, method = "manhattan") # "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski"
mahalanobis(df, colMeans(df), cov(df)) # mahalanobis(x, center : 각 변수의 평균, cov : 공분산행렬)
> x = data.frame(c(1,3,6,12,20))
> rownames(x) = c("a","b","c","d","e")
> d = ... |
9c45952724012703e38050cbdf2d8714eaed55cb | 001811302399f314465780ad5732c0169fa5f894 | /0501.R | 55893dfe50d7045f8f00a7ac4fe1059563d792c1 | [] | no_license | wdwdz/learning-environment-survey | ec5c14c491b0152b42d2e32cdb866624082d43fe | 5af03190fa6e3d4a927e85996c3b508cb1f6e2eb | refs/heads/main | 2023-02-21T11:53:07.655698 | 2021-01-21T02:36:50 | 2021-01-21T02:36:50 | 331,481,142 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,331 | r | 0501.R | setwd("~/R Scripts/Learning Environment")
library(psych)
library(GPArotation)
library(lavaan)
library(lavaanPlot)
library(corrplot)
######################transfer chinese to numbers
data2 <- read.csv("almostalldata.csv",encoding = "UTF-8",header = F)
#data2[1,3]
#for (i in 1:40){
# print(i)
# print(data2[1,i])
#... |
a48906b7b6cfd7c4e9d284f490bd6114280d5339 | cb90bf49b725d96cf69d0c249d5097d0ce88d00d | /src/DESeq_bowtie.R | 20b3917ff6138eaf1cd4026058d0febe00bd6149 | [] | no_license | weidagong/Metatranscriptomics | b8dcfaa87135f589180c7847eca08d4e1173497d | 5abaa00a4eb1cbdc975f07e31226090f8528687b | refs/heads/master | 2020-04-07T13:44:23.329624 | 2018-11-28T00:35:07 | 2018-11-28T00:35:07 | 158,416,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,923 | r | DESeq_bowtie.R | library(DESeq2)
library(readr)
###differential expression analysis with DESeq2 for Salmon output
setwd("/proj/marchlab/projects/EXPORTS/metatranscriptomics/Tara-test/assembly/bowtie/bowtie")
quant_filename <- list.files(pattern = "*counts.tab")
srr <- sub(".counts.tab", "", quant_filename)
samples <- re... |
17a4b7b88bb0f71db6591daa95bc1f06b2640fa8 | 54f8e843045e8edb16152b6999491613080c758e | /2 CreateIntraannualProfiles_1.7.R | 8ab8e9f32494f824cdce686fd8c8531f1b0bce2d | [] | no_license | patrickfonti/QWA | 43d9416881a2ec43f42427bfd5f505748bdf36a4 | 8c451b4161c808f6c39d616264f85038b5d9b78a | refs/heads/master | 2021-04-10T06:10:27.300168 | 2020-03-22T16:54:21 | 2020-03-22T16:54:21 | 248,915,889 | 0 | 0 | null | null | null | null | IBM852 | R | false | false | 194,729 | r | 2 CreateIntraannualProfiles_1.7.R | #%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#%#
# GENERAL DESCRIPTION:
#
# This scripts creates intra-annual profiles of anatomical parameters based on
# summary files (one per radial wood piece) of ROXAS text file output for rings
# and cells. No data is shared across ring bo... |
9af564bc4ab18631b3522f5c1d05cf1273153397 | 08fd1da1a01bf9b5f0af39cee5c18f96c0964d69 | /Rscripts/12_population_trajectories.R | 26679851307535a66b5f61e6c7cdac4cd01e593d | [] | no_license | OConnor-Lab-UBC/J-TEMP | 9e917efabb410f1aa43f5d1c3465fdb53d4dcba1 | 74548ab187cdfc70d868f838704317ae664b8eeb | refs/heads/master | 2021-01-11T08:28:33.966999 | 2018-08-02T11:08:45 | 2018-08-02T11:08:45 | 72,261,748 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,415 | r | 12_population_trajectories.R |
library(tidyverse)
library(stringr)
data <- read_csv("/Users/Joey/Documents/J-TEMP/data-processed/output_rK_TT_cell_abundance.csv")
obs_sim_data <- read_csv("/Users/Joey/Documents/J-TEMP/data-processed/TT_obs_sim_data_cell_abundance.csv")
obs <- obs_sim_data %>%
filter(ID == "16_4") %>%
filter(type == "obser... |
32e93ed83aae1708e6290e1e402581e5deeba7ca | f8af4d6f0e26d19dc2d956f8397d0896b8b961ba | /ch09/sec1_covariance.R | 91bf78b8676e2a7849373271e69c2cabb8e0cbce | [] | no_license | JadenChoi94/R_Stactistics | 767b30b9096fd3021923172bb9c1917d683e7042 | 4dc5b10e0b794d60a8974bd9f35ffabe826b6e3d | refs/heads/master | 2020-06-05T12:57:03.123781 | 2019-08-24T13:02:30 | 2019-08-24T13:02:30 | 192,445,149 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 982 | r | sec1_covariance.R | # 예제 9-1. 아버지와 아들 키의 공분산과 상관계수
hf <- read.table("http://www.randomservices.org/random/data/Galton.txt", header=T, stringsAsFactors = FALSE)
str(hf)
hf$Gender <- factor(hf$Gender, levels=c("M", "F"))
hf.son <- subset(hf, Gender=="M")
hf.son <- hf.son[c("Father", "Height")]
str(hf.son)
f.mean <- mean(hf.son$Father)
s.m... |
b3a14a1c6335d247997bb83cc6b3d685e8bd370e | 1ba5b7c213871eb2b9aa5d194fa403f87d728193 | /R/delete.R | 2d68c617a0daf8e70a5c925381893aadd14c89f5 | [
"MIT"
] | permissive | noelnamai/RNeo4j | 6a0c42ffe5a6f3f9ffc19d15ad25453696ea3760 | 4af57a9b00593109155e9f2c55108fe8b94c8f0b | refs/heads/master | 2020-04-01T23:02:26.894316 | 2015-04-17T18:03:26 | 2015-04-17T18:03:26 | 34,324,382 | 1 | 0 | null | 2015-04-21T12:02:52 | 2015-04-21T12:02:51 | R | UTF-8 | R | false | false | 496 | r | delete.R | delete = function(...) UseMethod("delete")
delete.default = function(...) {
entities = list(...)
classes = lapply(entities, class)
stopifnot(all(vapply(classes, function(c) "entity" %in% c, logical(1))))
headers = setHeaders(entities[[1]])
urls = vapply(entities, function(x) (attr(x, "self")), "")
for(i... |
b368bec8ebbb6efd3d1921961cdcc244f16b1ea0 | c32c54f47c35737ea4ba3a026c81b594fd02b1cf | /man/nbaSetFactorsForProj.Rd | 2243e41286514d206bc59de9628cdf5f08313206 | [] | no_license | quinnpertuit/rDailyFantasy | cd46596122d979b5c389d67b19bc354109fa0722 | fb00d802573c855f58d5b7b4d84f96d6724a66a6 | refs/heads/master | 2022-10-24T06:04:42.025973 | 2020-01-11T15:12:36 | 2020-01-11T15:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 552 | rd | nbaSetFactorsForProj.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nbaSetFactorsForProjFunction.R
\name{nbaSetFactorsForProj}
\alias{nbaSetFactorsForProj}
\title{nba Factors Setting Function for Projections}
\usage{
nbaSetFactorsForProj(train = train, target = "ActualPoints")
}
\arguments{
\item{train}{dataf... |
087e1fd318f6cc2834610751ade97fc3cd1d1708 | 7a2f2e124856390022fee7019cf484f819f0d36d | /code/test-lassosum2-auto.R | d1e9d36a16468b73a770fd30ce9f36c2e8858ad1 | [] | no_license | privefl/paper-lassosum2 | 1e214eafbba03f93c908a53997635d341ca6341e | 420343346e867823f4091d4358fda8c53d05afe3 | refs/heads/main | 2023-04-22T23:29:53.222346 | 2021-04-29T07:41:57 | 2021-04-29T07:41:57 | 346,615,252 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,801 | r | test-lassosum2-auto.R | library(bigsnpr)
ukb <- snp_attach("data/UKBB_imp_HM3.rds")
load("data/ind_gwas_val_test.RData")
(NCORES <- parallelly::availableCores() - 1L)
chr <- 22
ind.chr <- which(ukb$map$chromosome == chr)
corr0 <- readRDS(paste0("data/corr/chr", chr, ".rds"))
corr <- runonce::save_run(as_SFBM(corr0, "tmp-data/corr_chr22"),
... |
d9e5380765fa1164d1cccc00edc0dc8fae7a13bc | 29585dff702209dd446c0ab52ceea046c58e384e | /ebGenotyping/R/rlogit.R | 15badbe7ee7b9b9de2f43f6bd74360ff369a1724 | [] | 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 | 66 | r | rlogit.R | rlogit <-
function(x) return(ifelse(x>100,1,exp(x)/(1+exp(x))))
|
bd5b26787c75c187deefafff3da79426d0d455d1 | faa40c8b2cef4c58b652d1f22d8493e82941d266 | /R/Createsubset.R | 38062befc6d8f3300cc00443e58c6510dcc8a55b | [] | no_license | AVJdataminer/Squeaky | 5d4c311964de758ebadbfbf06d1add37d187dbf4 | b3fda5491338c466e407deabfb0b1ffab3488c5c | refs/heads/master | 2021-03-27T09:39:04.963702 | 2018-08-24T17:32:40 | 2018-08-24T17:32:40 | 102,994,776 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 342 | r | Createsubset.R | Createsubset<-function(df,response,percent,pathout){
#example input:test2=Createsubset(test1,'TOBACCO_RATING_APPLIED_N',.3,path)
in_train <- caret::createDataPartition(df[['response']], p = percent, list = FALSE)
out=df[in_train,]
setwd(pathout)
write.csv(out, paste("df_subset.csv",sep =""), row.names = ... |
29f461dffa18d066f6877a7e5ffbe13f2709c8a2 | 023e03b73d8279bb3debffdf26e3bf071dce407a | /application/ui.R | 6960803857c14a3aa8b35a8577a6dbdbcabba2d3 | [] | no_license | WEILU-ZHAO/marital | 5caed707d0cc9d11d48a4195e7195fdb9b8f1650 | cc4e2b6ebe0f626d14fd4ca93a4a6522e8e301ed | refs/heads/master | 2020-03-19T10:10:14.082582 | 2018-06-06T15:31:18 | 2018-06-06T15:31:18 | 136,349,555 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,009 | r | ui.R | library(shiny)
library(shinythemes)
library(readr)
library(ggplot2)
library(stringr)
library(dplyr)
library(DT)
library(tools)
library(marital)
library(ggpubr)
data("floridaCountyMarital")
countyNames<-levels(as.factor(floridaCountyMarital@geography$NAME))
codebookColon<-str_locate(countyNames, "County")[,1]
codebo... |
727cdea384ae1e7f3bc90e3c62c31353d0915143 | 7b74f00cd80694634e6925067aaeb6572b09aef8 | /2020/notes-2020/session_files/week5.R | 47812f5e7cb26f46ea1b9595ca4554064a11c778 | [] | no_license | leafyoung/fe8828 | 64c3c52f1587a8e55ef404e8cedacbb28dd10f3f | ccd569c1caed8baae8680731d4ff89699405b0f9 | refs/heads/master | 2023-01-13T00:08:13.213027 | 2020-11-08T14:08:10 | 2020-11-08T14:08:10 | 107,782,106 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 323 | r | week5.R | library(conflicted)
library(quantmod)
conflict_prefer('lag', 'dplyr')
conflict_prefer('filter', 'dplyr')
getSymbols("SPY", src = "yahoo", adjusted = TRUE, output.size = "full")
SPY
str(SPY)
head(SPY)
tail(SPY)
SPY['2009-11']
SPY['2009-11/']
tibble(Date = index(SPY['2009-11']), as_tibble(coredata(SPY['2009-11'])))... |
7c5ef93cc5aae2271a4918cef46f9e377bfee4e6 | b84d89b3f67fbd57e2d41f42c23c1f82fe7ba9fd | /R/tef_fitAll2brms.R | 384ac2087fe0a58f139cca29e78f3bc2e0dc2f34 | [
"MIT"
] | permissive | akcochrane/TEfits | 04305849bd8393c9e816312085a228ccdbd621e3 | e11b07b2d9fed9eb6e8221c8cfdd86b9e287180e | refs/heads/master | 2023-06-08T00:04:21.025346 | 2023-06-07T22:20:11 | 2023-06-07T22:20:11 | 225,967,950 | 1 | 0 | MIT | 2023-06-07T22:20:13 | 2019-12-04T22:22:41 | HTML | UTF-8 | R | false | false | 6,651 | r | tef_fitAll2brms.R |
#' Refit a TEfitAll model with brms
#'
#' \emph{This method has been superceded by} \code{\link{TEbrm}}. \emph{Please use
#' that method instead.}
#'
#' Passes a \code{\link{TEfitAll}} model to [nonlinear mixed-effects Bayesian] fitting using
#' \code{\link[brms]{brms-package}}. Note that, due to the extensive time ne... |
09d944f103403cfbded460328be0bef5935ccd6a | a34b4aa795fbfe55d30cc5f26deeb7fb25b6edcc | /run_analysis.R | 7e61b7dfb0333a3d6b6a4818dfa05319e76aecc7 | [] | no_license | Kuladeep27/Data-cleaning | 615b601e850a5b825160436f5ca8379b94156c9b | cb2e2c6aa51a4548df72b34362bc19fcca9d3839 | refs/heads/master | 2022-12-08T07:58:23.727005 | 2020-08-31T04:38:43 | 2020-08-31T04:38:43 | 291,609,799 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,988 | r | run_analysis.R |
library(tidyverse)
# download the zip file
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip",
destfile = "C:/Users/kulad/Documents/getdata_projectfiles_UCI HAR Dataset.zip")
# Features and activity labels
features <- read.table("~/UCI HAR ... |
1c936d2647c2f9d81b63e90447b3e5045dc8afa0 | 739f4e16cd01f5d870551d0e1fe3e2e4c0c69b69 | /Day 15 Classification/20170211_Batch24_CSE7405c_Clustering_PCA_LabActivity/Cereals.R | 0a9adb43423c734bf3d7659f1f2971e422608b16 | [] | no_license | AyubQuadri/Backup | bff0365da7dd2a099cd946827860506d337cb88c | c6e2c1bf2719fb4271ce43268b3d9645f5187206 | refs/heads/master | 2021-01-20T10:32:15.022115 | 2017-08-28T13:19:53 | 2017-08-28T13:19:53 | 101,644,051 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,174 | r | Cereals.R | ###Author: Ayub Quadri ###
###Problem: Clustering Activity
rm(list = ls())
#set working directory
setwd("C:/Users/quadris/Desktop/My Learning/INSOFE CPEE/Day 15 Classification/20170211_Batch24_CSE7405c_Clustering_PCA_LabActivity")
#Read the data
cereals <- read.csv("Cereals.csv",header = T,sep = ",")
str(cer... |
dd867cdcbbe1f14a8d16704199899596ebcc7f2c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/NORMA/examples/ILF_cost_der.Rd.R | 38cba16d571380b04d7f932b8e85f2db8ad556ea | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,218 | r | ILF_cost_der.Rd.R | library(NORMA)
### Name: ILF_cost_der
### Title: Cost Functions Derivatives
### Aliases: ILF_cost_der beta_cost_der general_gaussian_cost_der
### general_laplace_cost_der moge_cost_der weibull_cost_der
### zero_gaussian_cost_der zero_laplace_cost_der
### ** Examples
# ILF derivative value at point phi=1 with de... |
b207454313453832edb6f0a590e146fbde5b82c8 | 3cd3f6c838790c492c9d027051f374f4ad5759f4 | /man/cheating.Rd | d7f891960eb7c5e157e25d8c25a650c8fe1ff9d3 | [] | no_license | cran/rockchalk | 0814a7d5c6d057ff67a3ddd87b878b1832fde166 | b5ee84d33158b428b2fe423ac99aa3609ad09e2e | refs/heads/master | 2022-09-01T08:14:20.829386 | 2022-08-06T16:00:06 | 2022-08-06T16:00:06 | 17,699,309 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,118 | rd | cheating.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rockchalk-package.R
\docType{data}
\name{cheating}
\alias{cheating}
\title{Cheating and Looting in Japanese Electoral Politics}
\format{
data.frame: 16623 obs. on 27 variables
}
\source{
\url{https://bnyblade.com/research/publications/}.
}
\u... |
b1b1b2960a15673e02bd9fb2297dd2322ff22741 | 3c5e3f9a4c5db7b26a0a2cf4c286aa8fd4edd051 | /man/chi_sqQ.Rd | 85da9cb633dd997d1196ce4a43ba5bcc7752af3d | [
"MIT"
] | permissive | leahpom/MATH5793POMERANTZ | f8f8f639e1f522da200f57cd242173e58d11ab1d | b8357d19142f15c9d0d7fa27c03af4a64083a352 | refs/heads/master | 2023-04-20T06:21:21.447810 | 2021-05-04T04:37:17 | 2021-05-04T04:37:17 | 335,433,107 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 737 | rd | chi_sqQ.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chi_sqQ.R
\name{chi_sqQ}
\alias{chi_sqQ}
\title{Values for Chi-Square Plot}
\usage{
chi_sqQ(df)
}
\arguments{
\item{df}{a bivariate data.frame}
}
\value{
j the observation number, ordered by the squared distance
d_jsq the squared distance
q... |
eac46b2c09284d41be950ae9e4f35f185b6a605c | a86f32451020888a23ea99ad4770fe6ec3a2aaaa | /R/zzz.R | 3fd5332175abe5be6ce2a76dfabd21b9c90ec660 | [] | no_license | Geoany/spatstat.sphere | 2d806b3a2ee78f83743c404be780fec3dcb5562f | 9131f1e8c48d44ec97320d73f5949d7ac4473f98 | refs/heads/master | 2021-01-23T04:29:11.326783 | 2017-07-05T09:11:16 | 2017-07-05T09:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 650 | r | zzz.R | #' Package documentation for spatstat.sphere
#'
#' The package `spatstat.sphere` extends the `spatstat` package to work with
#' point pattens on the sphere.
#'
#' @docType package
#' @import globe
#' @import s2
#' @import spatstat
#' @importFrom spatstat.utils splat resolve.defaults do.call.matched %orifnull% check.1.i... |
4c28a5ddeb4f98ca9d1a24a1a4a0102189faa961 | 52c876f9d074ab0d4fb5dd569b338ce1595c1b3d | /project_code/Other source/dportal.R | 9083f53f843e15853541d911b296b4839ee93c1d | [] | no_license | danjwalton/covid_funding | 50966c323f06a0c81e1a15ca02c9f42e9d8283d7 | 20e7624f4f2c1ebb8f8c1bb062d9e738c3441f10 | refs/heads/master | 2023-03-12T00:02:29.671886 | 2021-03-02T12:31:35 | 2021-03-02T12:31:35 | 293,513,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,429 | r | dportal.R | required.packages <- c("data.table", "httr", "ggplot2", "WDI", "XML")
lapply(required.packages, require, character.only=T)
setwd("G:/My Drive/Work/GitHub/covid_funding/")
iati.1 <- xmlParse("http://d-portal.org/q.xml?from=act&limit=-1&distincton=aid&%2Fhumanitarian-scope@code=EP-2020-000012-001")
iati.2 <- xmlParse("... |
7062001f0d85399b661e01bf936cf0f64bea87e2 | e01e76528b33478f59c0be5773182da0ff6b9573 | /man/elevation.Rd | aad0308dd427eeaf84337c3d69445e6a2f2f2c18 | [] | no_license | Nowosad/spDataLarge | 6884d6d5a62fa189c040633a8dd72743d0d756f3 | 96e83955e0d50da5591d561680ae3279a4e10e1e | refs/heads/master | 2023-01-05T03:16:51.557676 | 2022-12-23T10:04:03 | 2022-12-23T10:04:03 | 79,939,092 | 24 | 11 | null | 2022-12-23T09:57:40 | 2017-01-24T18:10:22 | R | UTF-8 | R | false | true | 408 | rd | elevation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{elevation}
\alias{elevation}
\title{Elevation raster data}
\format{
A RasterLayer object
}
\source{
\url{http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/srtm_14_05.zip}
}
\usage{
elevation
}
\descripti... |
d53310fc5389ccd661fad2056caad08955099607 | e5ebddef173d10c4722c68f0ac090e5ecc626b8b | /IL2/bin/repeatability/pstat5-repeatability.R | 8cc5f68c162113320be2f04efbd7120618a72b2b | [] | no_license | pontikos/PhD_Projects | 1179d8f84c1d7a5e3c07943e61699eb3d91316ad | fe5cf169d4624cb18bdd09281efcf16ca2a0e397 | refs/heads/master | 2021-05-30T09:43:11.106394 | 2016-01-27T15:14:37 | 2016-01-27T15:14:37 | 31,047,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,847 | r | pstat5-repeatability.R | library(iterators)
library(plyr)
library(flowCore)
library(lubridate)
REPEATS <- structure(list(individual = c("CB00165D", "CB00366X", "CB00396E",
"CB00406Q", "CB01484M", "CB01494Y", "CB01495Z", "CB01498C", "CB01503H",
"CB01504J"), pch = c("a", "b", "c", "d", "e", "f", "g", "h",
"i", "j"), day1 = c("2012-11-29", "2... |
053d840f9c29c9404c6d1344f57ee6a41e624f80 | 1fc421ae8d2d0cc87944ec21ea53b37b1ef02544 | /man/Reserve.t_1.Rd | 0f79e125fb226ce17e98f59f5e6de2cf7704b1f7 | [] | no_license | EduardoRamosP/MackNet | 5f3df28a30385e83c4d3de0eb10606a416499c92 | 1281f90ccad86df2f496b6e1a33aeab18cf81807 | refs/heads/master | 2022-12-18T22:17:47.097987 | 2020-09-21T20:30:55 | 2020-09-21T20:30:55 | 296,931,038 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 389 | rd | Reserve.t_1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SupportFunctions_I_Results_ChainLadder.R
\name{Reserve.t_1}
\alias{Reserve.t_1}
\title{Reserve.t_1}
\usage{
Reserve.t_1(Triangle.Incremental)
}
\arguments{
\item{Triangle.Incremental}{Upper and lower incremental triangle.}
}
\value{
Reserve e... |
51d2338ef7bd932060e1507a8ede8ebac49d8070 | 221072e790a97e05eea0debadbe87955b81ae2e1 | /man/raw_signal-Squiggle-method.Rd | 8a00ab1c6946188272efbc839fdfd239627c070b | [
"Apache-2.0"
] | permissive | Shians/PorexploreR | 2ca3d93956ba4592564c8019f1a76252a0696283 | 5086f3e704c6c6036a80d103752d9bce984a0e15 | refs/heads/master | 2020-06-06T05:51:25.714267 | 2019-06-20T07:44:16 | 2019-06-20T07:44:16 | 192,655,626 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 391 | rd | raw_signal-Squiggle-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Squiggle-methods.R
\docType{methods}
\name{raw_signal,Squiggle-method}
\alias{raw_signal,Squiggle-method}
\title{Extract raw signal}
\usage{
\S4method{raw_signal}{Squiggle}(object)
}
\arguments{
\item{object}{the Squiggle object}
}
\value{
nu... |
21cbe0ab85c242aa70dafa096bb13931de79029c | 19c5698bddc8d527b262d6fb01e1691ea13c53c3 | /man/mergeData.Rd | 938746958a86ad40672cd56d82d990bb8c6c275d | [] | no_license | Michael-L-Miller/CoveRageAnalysis | ebcbfebb858708860863bc3bf15ebdebdd827c2e | 264312ea14ebcc9e0472659167d7718efa1ff5d9 | refs/heads/master | 2020-03-11T05:08:51.594754 | 2018-06-20T20:40:42 | 2018-06-20T20:40:42 | 129,794,506 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 242 | rd | mergeData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mergeData.R
\name{mergeData}
\alias{mergeData}
\title{Merge data}
\usage{
mergeData()
}
\description{
This function merges amplicon- and gene-wise coverage data.
}
|
10c804ddcf16270a45a1707fe7ada9ee3d15068a | b80536b66314869762808f385257246a26d121c5 | /DataS1/R/z-decision-functions.R | 00fcdebc191c46776d39c80b93008c624b38aecb | [] | no_license | kbanner14/SuppS2_IrvineEtAl-ecosphere | 21ad776eafd182f83049808e27949a64b7b6268a | fa66b4ada7f2a285c95392ceb3f407cf69abaf13 | refs/heads/main | 2023-04-16T19:53:07.992828 | 2022-04-07T19:10:41 | 2022-04-07T19:10:41 | 465,492,153 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,917 | r | z-decision-functions.R | #####################################
## Simulation Processing Functions ##
#####################################
# process results with a specific z_cutoff
# for Bayesian models
z_table_nimble <- function(sim_results, z_cutoff = 0.5){
# filter to just look at Z states and estimates
idx_z <- which(substring(sim_re... |
bcad1a4bb40416a9de8b0f1a26b82be1aff6a0aa | d9440aa266da5fc208d744421cbe2c5c1ec9eaf5 | /man/forest.dat.Rd | d5096796933567315b2342d89bae3090b83435bb | [] | no_license | leonpheng/lhplot | a76a424aa77823d97b54a2764175a61dd4d4033d | c28f035e53c08a2f9d248e05b3d8a3d0f041e977 | refs/heads/master | 2023-08-16T11:04:04.315247 | 2023-08-04T19:53:42 | 2023-08-04T19:53:42 | 120,557,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,158 | rd | forest.dat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lhplot.R
\name{forest.dat}
\alias{forest.dat}
\title{Prepare dataset for Forest plot in Shiny App}
\usage{
forest.dat(
data = t,
parameter = c("Cmax..ng.mL.", "AUCtau..ng.h.mL."),
catcov = c("Cohort", "WT_group"),
stats = c("quantile(... |
a2fd5de15828b568d151d8a4f0af49ed54493f2b | ab7d15d06ed92cd51cc383dc9e98ae2a8fa41eaa | /man/node_aes.Rd | 617666daec35268f8577f502f44176fc1596378c | [
"MIT"
] | permissive | rich-iannone/DiagrammeR | 14c46eb994eb8de90c50166a5d2d7e0668d3f7c5 | 218705d52d445c5d158a04abf8107b425ea40ce1 | refs/heads/main | 2023-08-18T10:32:30.784039 | 2023-05-19T16:33:47 | 2023-05-19T16:33:47 | 28,556,914 | 1,750 | 293 | NOASSERTION | 2023-07-10T20:46:28 | 2014-12-28T08:01:15 | R | UTF-8 | R | false | true | 6,534 | rd | node_aes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/node_aes.R
\name{node_aes}
\alias{node_aes}
\title{Insert node aesthetic attributes during node creation}
\usage{
node_aes(
shape = NULL,
style = NULL,
penwidth = NULL,
color = NULL,
fillcolor = NULL,
image = NULL,
fontname = NU... |
76777c1f8aa5c407f337b021c2381c18f4003a4c | a41ff9969e033f0f11518813a5d095f79846046e | /R/test_and_visuals.R | 6574c316f0c4030d64875e26dfa13c5066360961 | [] | no_license | cran/visStatistics | 1b126f8732f58f8c25f4149432bff7a25ea954d4 | db39c0b649f9fb607b18e7cfff2b9c9e0927d497 | refs/heads/master | 2023-03-10T07:11:11.718383 | 2021-02-12T10:10:02 | 2021-02-12T10:10:02 | 340,028,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 44,277 | r | test_and_visuals.R | # MIT License-----
#Copyright (c) 2021 Sabine Schilling
# Plotting functions----
# Testing for normality and visualization ----
test_norm_vis = function(x, y_axis_hist = c(0, 0.04)) {
#store default graphical parameters------
oldparnormvis <- par(no.readonly = TRUE)
on.exit(par(oldparnormvis))
par(mfro... |
911c2c6da5b3df23388008a038f16a13f909fb5f | a2c49abf81454652767dd98812f3276aaf2dfe03 | /R/dynamr.R | c6b74f78919637f4da25b626ef733f5b195217c1 | [
"MIT"
] | permissive | dnkent/dynamr | 1e85587e83fd83064012e2af9fbf6e1383c33f50 | fa34c81aabb95550efdd2324a8f8c6e16daff567 | refs/heads/master | 2021-07-15T04:25:16.931134 | 2021-06-29T02:33:38 | 2021-06-29T02:33:38 | 205,764,951 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,115 | r | dynamr.R | #' A Permutation-Based Changepoint Technique for Monitoring Effect Sizes
#'
#' \code{dynamr} is used to detect where effect values change temporally when
#' estimating generalized linear models with panel data.
#'
#' @param dat Data frame with panel data of interest
#' @param time_var Name of variable denoting time per... |
f27c03e44d0b55ebccd95aba029730bf7dada669 | 41fd1d5722c03eb80f985b92c90e99b199c88422 | /r4ds_ch3.R | acbd72179fb3f3621003caca6995224f3bd26ddd | [] | no_license | yan9914/R4DS | 6036bbb169466fd732c6fcfbc8b40163e5c96e40 | 993381f46063fc52db7ba398956787f724a914c4 | refs/heads/master | 2020-04-14T23:51:42.871327 | 2019-08-20T13:26:03 | 2019-08-20T13:26:03 | 164,219,529 | 0 | 0 | null | null | null | null | BIG5 | R | false | false | 6,514 | r | r4ds_ch3.R | library(nycflights13)
library(tidyverse)
flights
## 以filter()過濾列資料 ##
filter(flights, month == 1, day == 1)
(dec25 <- filter(flights, month == 12, day == 25))
sqrt(2)^2 == 2
1/49*49 == 1
near(sqrt(2)^2, 2)
near(1/49*49, 1)
filter(flights, month == 11 | month == 12)
filter(flights, month == 11|12)... |
e01268802bc867940dea84f8cc45608fee07c0f3 | ee6d07dcacee34e2d2ae890e3a50f34af9e062b8 | /functions/plot_referrals.R | a36ea8a855871ffcdb3cb7d41d2fbd907aea68f6 | [] | no_license | Public-Health-Scotland/dementia-pds | 36025977265b0425d410fbdd3198b40bda574f70 | f9deea8b4abdf128a562661ff1dfe4308fa310cb | refs/heads/master | 2023-04-27T19:38:37.580113 | 2021-05-13T14:32:54 | 2021-05-13T14:32:54 | 198,057,483 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,421 | r | plot_referrals.R |
plot_referrals <- function(data,
scotland = FALSE,
quarter = NA){
# Determine whether IJBs breakdown is included
ijb_group <- ifelse(scotland == TRUE |
n_distinct(data$ijb) == 1,
FALSE,
... |
d1eab60e7c274b788adea509cb08dd370e83cc9e | 858a8d27a2eddd64d60cd392f428eb7164a8c5ce | /app.R | d1fbc65da883d52ee5ca422e01c6bb281b303d08 | [] | no_license | rmarasiganjr/My-Fishing-Spot | 94225cc2dadc75befa56b19c4160657c9798052b | 83c617abb7e4bd0d9d27994fb2bd56a28cb64520 | refs/heads/master | 2020-04-21T05:45:36.747356 | 2019-02-06T04:39:18 | 2019-02-06T04:39:18 | 169,349,667 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 49 | r | app.R | shinyApp(ui = htmlTemplate("index.html"), server) |
9f86bd5fed63cbec2268440394581e3544bdd30d | f252c7af74b27070ec28fc6120a72273fce2c39b | /Leukimia.R | 0aa70590eef46628e348d3580f1f706a094e0a92 | [] | no_license | sadapple/Research | bf142ff98a30c28713281aed6a870e19045cb11b | a07b5894c0c6be7e5d980ef79730fd8442046a15 | refs/heads/master | 2016-09-05T11:36:56.473431 | 2016-02-01T02:22:41 | 2016-02-01T02:22:41 | 28,351,519 | 0 | 0 | null | 2016-01-29T21:25:15 | 2014-12-22T18:05:05 | R | UTF-8 | R | false | false | 798 | r | Leukimia.R | ## haha, this line only to test pull request!
## load data from mulltest
install.packages("multtest") ## failed, package removed from CRAN
## so I tried Bioconductor
source("http://bioconductor.org/biocLite.R")
biocLite("multtest")
## find the pooled covariance matrix and the mean difference vector
data(golub)
index ... |
b271d5bdf445f2527982ed637915de7c92813fac | b6fff2d53f9efc71c65d769950a76f26cea20588 | /SAT/SAT_summer_work/individual_shiny_apps/3Dplot/3D_plot_0.1/server.R | 8485d854cf7aedee1a8eec596e6cf31776c3d699 | [] | no_license | debnolan/DynDocs | 845b3514771abf0bf917243372f1342a025a3f43 | 17e5950d96ad0bca6440101ffbbc909bb33b6d94 | refs/heads/master | 2021-01-10T11:58:02.234230 | 2015-09-28T17:46:22 | 2015-09-28T17:46:22 | 36,089,609 | 4 | 7 | null | null | null | null | UTF-8 | R | false | false | 631 | r | server.R | # Must be executed BEFORE rgl is loaded on headless devices.
options(rgl.useNULL=TRUE)
library(shiny)
library(shinyRGL)
library(rgl)
load("data/satDF.rda")
shinyServer(function(input, output) {
# Expression that generates a rgl scene with a number of points corresponding
# to the value currently set in the slider... |
6b4b9d17ca3319e7b1d1a1c039d06a0336808bb3 | 7826e33f5b2525e87a9321d4878be889d9176cbd | /utils/update_nowcasts.R | cab7701bffd4890ac73d8c27d524cb0d9b528d82 | [
"MIT"
] | permissive | pucciami/covid | ac1b39de38597d50254e3780b567e56c77e01fa5 | e03af99d4e65fbf37c5e4f11cbb424553ea98bad | refs/heads/master | 2021-05-22T19:52:36.975003 | 2020-04-04T15:09:54 | 2020-04-04T15:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 348 | r | update_nowcasts.R | require(stringr)
require(magrittr)
require(purrr)
nowcasts <- c("global", "national/united-kingdom",
"national/germany", "national/italy",
"national/united-states")
purrr::walk(nowcasts,
function(nowcast) {
source(file.path("_posts", nowcast, "nowcast/update_n... |
748cd3cad5809c7b6315c98c2cdde73cd23d833d | 63d50cbf64469abd6d4729ba0266496ced3433cf | /chaaya/matrix_transpose.r | a4fcac9198e400f5574a3881c4409cd298baad0e | [] | no_license | tactlabs/r-samples | a391a9a07022ecd66f29e04d15b3d7abeca7ea7c | a5d7985fe815a87b31e4eeee739bc2b7c600c9dc | refs/heads/master | 2023-07-08T09:00:59.805757 | 2021-07-25T15:16:20 | 2021-07-25T15:16:20 | 381,659,818 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 274 | r | matrix_transpose.r | # Created on
# Course work:
# @author:
# Source:
# function declaration syntax:
# <fn_name> <- function(<parameters>){
# <body>
# }
mat <- matrix(c(1,2,3,4),nrow = 2)
print(" before transpose: ")
print(mat)
t_mat = t(mat)
print(" before transpose: ")
print(t_mat) |
a2ee1bcb9ee04d538e33700c9f4343f17d900860 | 9089472e1305ce457a5acd759985319f57b274dd | /bmsgpk/obsolete.R | b7c0042916452c881582b66b316d0275b7dbd055 | [] | no_license | at062084/COVID-19-Austria | 2eee6901ea2976e9dfc5b3eb10123e99ed41951e | 12eaf153420e2cae1c784d9aac5f5c6f1215fe2e | refs/heads/master | 2023-06-25T21:43:05.301057 | 2023-06-12T13:27:26 | 2023-06-12T13:27:26 | 248,818,185 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,495 | r | obsolete.R |
# geom_line(data=df %>% dplyr::filter(Region=="Wien"), aes(x=Date, y=rm7NewConfTest/rm7NewConfirmed*1000), linetype=1, size=1, inherit.aes=FALSE) +
# daily stats
ggplot(data=dfw, aes(x=Date, y=Count, color=Status, shape=Status)) +
scale_x_date(limits=c(as.Date(strptime("2020-07-01",format="%Y-%m-%d")),NA),
... |
63baec3c6b71aa770fd851c63068b2685fcb12ca | 1dfecbca8017ac66df7abd497f86982778628b3a | /R/proxies.R | 9765c3b3ca072f349aa042d411f1bbc85336188c | [] | no_license | jimsforks/datamaps | ff4972bf64b09b01bf634a29e17c0c76c674f741 | e186d012f452c64814587ed1ce18a39fdbdcfabf | refs/heads/master | 2022-12-08T11:33:35.297391 | 2020-08-27T09:46:44 | 2020-08-27T09:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,378 | r | proxies.R | #' Dynamically add bubbles
#'
#' Dynamically add bubble using Shiny.
#'
#' @param proxy a proxy as returned by \code{\link{datamapsProxy}}.
#' @param lon,lat coordinates of bubbles.
#' @param radius radius of bubbles.
#' @param color color of bubbles.
#' @param name name of bubbles.
#' @param ... any other variable to ... |
ad9fcda04c1b79cb77562b950eca4fc3c3b62f15 | 5fa83ec459262563b3b334092da42e3e320bf5a3 | /steem_crawler.R | 20abaede3ea1049c07753d26bf6a4367d6ed28b6 | [] | no_license | ferozah83/Steemit_Monthly_Analytics | d8d23f9add566162663158ef1c4245a5839c7569 | a3f2ff2a16bbd73c904ad72360a9d40843c27bdd | refs/heads/master | 2021-04-28T01:14:42.703194 | 2018-02-20T23:56:06 | 2018-02-20T23:56:06 | 122,271,112 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,076 | r | steem_crawler.R | install.packages(c('rvest','httr','KoNLP','stringr','tm','qgraph','xml2'))
install.packages("dplyr")
rm(list=ls())
library(rvest)
library(httr)
library(KoNLP)
library(stringr)
library(tm)
library(qgraph)
library(dplyr)
library('xml2')
for ( x in 1:100){
url_base <- 'https://s... |
800fdf2917d33e958ee339da6b6b0cb73b3d9625 | cc3b15cc6e5ca42bf8cb6a241e09aa96c4271a24 | /man/medoids.Rd | addb360e77dc7f5bde51342a81ef8530e1fc512f | [] | no_license | larssnip/microcontax | a840a6c7f32c16c462de2a5aed97c54f408acc7e | bb6fc9ac6545717786d33e4e870095a35decc519 | refs/heads/master | 2021-01-15T22:20:30.999000 | 2020-08-11T13:18:19 | 2020-08-11T13:18:19 | 99,899,704 | 1 | 1 | null | 2020-06-12T10:40:00 | 2017-08-10T08:25:27 | R | UTF-8 | R | false | true | 1,113 | rd | medoids.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{medoids}
\alias{medoids}
\title{The ConTax medoids}
\usage{
data(medoids)
}
\description{
The genus medoids from the ConTax data set.
}
\details{
\code{medoids} is a \code{data.frame} object containing the medo... |
2c96fafb77b075ec5bf895dffc1eb80ca87b6c57 | d3495d13f00666d4f65ca25fc113b9e65dccff86 | /annotation/annotate/annotate_pedigree_af.R | 2278506ef75ce032ebf20aaedb61b93fbb784d70 | [] | no_license | valecipriani/DNASeq_pipeline | 45a991d5e6a69df0f27aecae82ccf72f1277d680 | f30a1605aa97ecea1c2c2e34035004bea8b1b5e8 | refs/heads/master | 2021-01-20T11:21:50.391525 | 2015-11-07T19:59:38 | 2015-11-07T19:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,018 | r | annotate_pedigree_af.R | #!/usr/bin/env Rscript
err.cat <- function(x) cat(x, '\n', file=stderr())
###
err.cat(dim( d <- read.csv(file('stdin')) ))
#
samples <- gsub('geno\\.','',grep('geno',colnames(d),value=TRUE))
#
pedigree <- 'DNA_pedigree_details.csv'
# pedigree
message('dim of pedigree')
err.cat(nrow(pedigree <- read.csv(pedigree)))... |
95148fd82782c3a2d6ebac13873360b9dfcd9e0e | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.internet.of.things/man/iot_replace_topic_rule.Rd | d447d67977d6ec536648b22546a2a5209bb99de5 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 9,953 | rd | iot_replace_topic_rule.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_replace_topic_rule}
\alias{iot_replace_topic_rule}
\title{Replaces the rule}
\usage{
iot_replace_topic_rule(ruleName, topicRulePayload)
}
\arguments{
\item{ruleName}{[required] The name of the rule.}
\item{topicRul... |
6f5f1191f7cff8705222aef981b1577ecca0d8d6 | 54796cc65f9afd8043705375eb0755f27834761f | /linregpackage/tests/testthat/test_linreg.R | de100ea15f60865b60fdb6a44f690b676ce1f254 | [] | no_license | camgu844/Lab4 | ec574a960617f3a4cb7c35b93be847a1f6c89de1 | 77a1c8bc1b455d094653bfe1c31b7b4f040d1b6d | refs/heads/master | 2021-03-12T23:34:39.183936 | 2015-10-05T19:49:00 | 2015-10-05T19:49:00 | 42,175,055 | 0 | 1 | null | 2015-09-18T10:58:45 | 2015-09-09T11:44:05 | R | UTF-8 | R | false | false | 232 | r | test_linreg.R | library(linregpackage)
context("tests the function linreg")
data(faithful)
formula <- eruptions ~ waiting
data <- faithful
test_that("Class returned by linreg", {
expect_that(class(linreg(formula, data)), equals("linreg"))
})
|
954c702083eaa3bd5bc815e97bd2339890dcda6d | 85afd9a0e2bb8b97d2b1e507b8beadd18c24b1c6 | /figure/scripts/12 - Appendix_7_absolute_k_nitrogen.R | 31059ef3bad8fe29c17d249465f90e33fb63e1f8 | [
"MIT"
] | permissive | SrivastavaLab/ecological-responses-altered-rainfall | e7280c61777ed373ce4c33d3550ddcd2cc8daae4 | 11b3b47a134a329eef29abc6c80bc3ffc87f68ea | refs/heads/master | 2021-08-31T15:50:15.085311 | 2017-12-21T23:33:03 | 2017-12-21T23:33:03 | 114,942,363 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,599 | r | 12 - Appendix_7_absolute_k_nitrogen.R | # clean up the environment ------------------------------------------------------------------------------------------------------------
rm(list=ls(all=TRUE))
# load packages -----------------------------------------------------------------------------------------------------------------------
library(tidyverse)
libr... |
bcd0d57aea9672323f31db4f0c044c407e94798a | ce3bc493274116150497e73aa7539fef1c07442a | /man/queryDB.Rd | d2482b1c5c7442c622819734c76fa707530cf4d9 | [] | no_license | laresbernardo/lares | 6c67ff84a60efd53be98d05784a697357bd66626 | 8883d6ef3c3f41d092599ffbdd4c9c352a9becef | refs/heads/main | 2023-08-10T06:26:45.114342 | 2023-07-27T23:47:30 | 2023-07-27T23:48:57 | 141,465,288 | 235 | 61 | null | 2023-07-27T15:58:31 | 2018-07-18T17:04:39 | R | UTF-8 | R | false | true | 1,002 | rd | queryDB.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/querieSQL.R
\name{queryDB}
\alias{queryDB}
\title{PostgreSQL Queries on Database (Read)}
\usage{
queryDB(query, from, creds = NA)
}
\arguments{
\item{query}{Character. SQL Query}
\item{from}{Character. Credential's user (see \code{get_creds(... |
7902ea1f26e6b5cff14c23a861bdca5229f0d633 | 2e83b3630df102c1581cab01ba15b477d50dacfb | /plotboxScript.R | de98228c2ddbd2d9855baf69c92a4cfbedb7373d | [] | no_license | pacoraggio/MelbourneHousePriceShinyApp | b543f50a5479b717ccb03799771cd22be75c4825 | 533c5cdd84184c217f4fb2c119cecff9129ac65c | refs/heads/master | 2022-04-07T17:36:07.857074 | 2020-02-14T16:35:40 | 2020-02-14T16:35:40 | 238,421,217 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,661 | r | plotboxScript.R | # Scripting for testing plotbox configurations
library(plotly)
region <- c("Select a Region",
"Northern Metropolitan",
"Western Metropolitan",
"Southern Metropolitan",
"Eastern Metropolitan",
"South-Eastern Metropolitan",
"Easter... |
861c2a2a94f2be4bd193b3f76e1340507b39dc78 | 80355e30ba75884de9bf4091ad49caef52dd8dad | /hw04.R | 69ad7f71b48b1a145f4e7a6e81891a938e9d1afa | [
"BSD-2-Clause"
] | permissive | maikenek/stata-to-r | 491252c31fae87be198d6b022adf4f907672afad | e06f2813d4a0c4a01fa587e58b331512c2fb6d17 | refs/heads/master | 2020-03-12T14:58:10.431634 | 2018-05-15T11:48:54 | 2018-05-15T11:48:54 | 130,680,336 | 0 | 0 | null | 2018-04-23T10:32:05 | 2018-04-23T10:32:04 | null | UTF-8 | R | false | false | 10,751 | r | hw04.R | # ==============================================================================
# File name: hw04.do
# Task: Homework
# Project: Research seminar pt. 1
# Author: YOUR NAME HERE
# ==============================... |
4215f7fae4dcfbbf4f3058bd8bb2d49fb2e18f23 | 28d8018036af366af8da2a8ff699b8bf1e419ec6 | /R/c_artificial.R | 557617275e112efc466d96b2b073500ed98731f0 | [] | no_license | cran/intpoint | d98a8251f17921ed878a402930707314b04d046c | a803f5aba0b5a39ad25f88ca2b63fc2bf4063fcf | refs/heads/master | 2020-04-13T15:21:07.574580 | 2012-05-30T00:00:00 | 2012-05-30T00:00:00 | 17,696,805 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 143 | r | c_artificial.R | c_artificial <-
function(c,A){
col<-ncol(A)
l<-length(c)
cn<-array(0,c(col,1))
for(i in 1:l)
cn[i]<-c[i]
cn[col]<-1000000
return(cn)}
|
952207b8ce1d303398afd7c44a15fc9a3234d60d | 974c2c2f10f94098e90d8a1bfc9cd167e2340b58 | /man/spr_heat_scrape.Rd | c38c1316cf4594c1fa5b38ea9600182b477defb8 | [] | no_license | joranE/fiscrape | 784983a3314f0004983182019075c5f777902dd0 | e5026654836cd87b944b5382ea72df9a46777f63 | refs/heads/master | 2023-04-07T00:14:03.133624 | 2022-11-27T02:26:22 | 2022-11-27T02:26:22 | 9,248,589 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 260 | rd | spr_heat_scrape.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spr_heat_scrape.R
\name{spr_heat_scrape}
\alias{spr_heat_scrape}
\title{Scrape WC Sprint Heat Times}
\usage{
spr_heat_scrape(url, race)
}
\description{
Scrape WC Sprint Heat Times
}
|
71a9b222cdf01809f084c6a7163a28c72549f09e | 11de724b543fc892da056f0d960e154548a52acb | /plot/density/prediction_score.R | 02bc5c579967947e0cb0cef56b5325dd3f8e2511 | [] | no_license | Luanshasha/Bioinformatics_ML | 695f9fba00bdcd49ac90cb997054f464d3690383 | 59c0cc7833b8e93b16e9c03a889377d63b5ecd82 | refs/heads/master | 2021-06-28T19:18:57.481986 | 2021-02-02T06:42:35 | 2021-02-02T06:42:35 | 219,302,875 | 2 | 1 | null | null | null | null | GB18030 | R | false | false | 2,952 | r | prediction_score.R | ###S3_prediction_score
library(ggplot2)
library(grid)
###图1
test <- read.csv("C:/Users/Lenovo/Desktop/R/S3_presion.csv")
data1 <- data.frame(labels = test[,1],scores=test[,2])
p1 <- ggplot(data1 ,aes(x=scores,fill=labels))+
geom_density(alpha=.3)+labs(tag = "A",y="Density",x="Prediction scores")+
guides(fill = guide_l... |
7d24b2bc78a9940480f07f42f3fc777656799904 | bab0ce3c8a81762101b3af466d018f5425ab7fcc | /covidhub-common.R | e994a1df74d0b45cb1487a1805e18a9c26d3dbb6 | [
"MIT"
] | permissive | signaturescience/random-walks | 1f0e6f5127e1ffdba76283fc6340d66dea1a79b6 | 853f96aae54b2985d1c55ef9be5da341d945081a | refs/heads/master | 2023-01-22T22:02:08.643403 | 2020-12-07T07:28:36 | 2020-12-07T07:28:36 | 319,381,303 | 0 | 0 | null | 2020-12-07T16:39:00 | 2020-12-07T16:38:59 | null | UTF-8 | R | false | false | 9,296 | r | covidhub-common.R | state_abb_fips <-
readr::read_csv(
file = "state,state_code,state_name
AK,02,Alaska
AL,01,Alabama
AR,05,Arkansas
AS,60,American Samoa
AZ,04,Arizona
CA,06,California
CO,08,Colorado
CT,09,Connecticut
DC,11,District of Columbia
DE,10,Delaware
FL,12,Florida
GA,13,Georgia
GU,66,Guam
HI,15,Hawaii
IA,19,Iowa
ID,16,Idaho... |
3fbff6ca6c2f8c6382b7ec061577a5d39c06dc2b | ec37ae37c4f29995ead8b1ba212b01000033088f | /4.ExploratoryDataAnalysis_Week4/plot2.R | 4251ca4635724d8bc5fb8126383a9644fa00f073 | [] | no_license | williamrelf/DataScienceCoursera | 48430bbaff61cd26e83d1c03a3fb407063decb6f | face3687bacd507176c3bb93de349f2271df88cd | refs/heads/master | 2021-01-21T12:59:40.002900 | 2016-05-25T13:49:12 | 2016-05-25T13:49:12 | 51,294,082 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 954 | r | plot2.R | ##Download the zip file, if not exists, containing the data and unpack it
if(!file.exists("FNEI_data/summarySCC_PM25.rds")) {
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", destfile = "FNEI_data.zip")
unzip(zipfile = "FNEI_data.zip", exdir = "FNEI_data")
}
##Load in the two... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.