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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dcc99d3ed050859830199e327f39340087ca977 | c3d5dd693c83876a229fc2014e1a4ff3e9f05c8f | /R/calcPSG-bin.R | 37d38e70c634a139d179aaa52ffb4dc6b395f152 | [] | no_license | bvenner/OTM33A | 2d7ff779e49824085030ff4abb8353814334aebc | d1c2e0e2d224017cdd281335fc3df368b6f4fdec | refs/heads/master | 2021-07-23T18:30:47.129786 | 2018-12-13T23:11:52 | 2018-12-13T23:11:52 | 148,807,856 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,496 | r | calcPSG-bin.R | #' Calculate plume direction and spread using binned data and natural scale
#' @param dat Data table, with names obtained from GMAP data output as of 2018-Aug
#' @return object of class "lm" with plume fit, has the side effect of adding column theta to dat
#' @export
#' @examples
#' calcPSG.bin(dat)
calcPSG.bin <- fun... |
ddf42a6c7600de4e04c10c09095b13cbed812efa | 738661d07b2dbd0e947669d2e7e82ff544a91364 | /bioinformatics-final/core_script.r | fb1a8af631dc104b6124b6ab3da68d4462217a37 | [] | no_license | Joshuanguyen22/BioinformaticsFinal | 8794f5092cb31194a62871442bd9c44c3851176e | c1e7e2218410b82ab855b4786ac92720695c7da2 | refs/heads/master | 2020-05-18T08:43:51.563009 | 2019-05-15T02:18:14 | 2019-05-15T02:18:14 | 184,303,412 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,482 | r | core_script.r | # https://keras.rstudio.com/
# https://machinelearningmastery.com/tutorial-first-neural-network-python-keras/
# Install commands
# devtools::install_github("rstudio/keras")
library(keras)
# Here I will work through the digit recognition example
# Load in the data
mnist <- dataset_mnist()
x_train <- mnist$train$x
y_t... |
bb0ef510ac8c01aae06c74a75038c44f2cff3e6d | e44c19490a242076814bc634b4692a8be25b680f | /R/efast_sampling.R | baee658b725158fcd3a6565d3e8df7a90c865d15 | [] | no_license | jc1571/spartan | 5fea09f62be7fcac12f8ad6f76b6d2a93445a58a | 7f5f94506363dc811aa5790f31563659cd25a6a8 | refs/heads/master | 2021-01-02T23:09:57.394383 | 2017-08-09T12:20:02 | 2017-08-09T12:20:02 | 99,481,324 | 0 | 0 | null | 2017-08-06T11:12:16 | 2017-08-06T11:12:16 | null | UTF-8 | R | false | false | 7,247 | r | efast_sampling.R | #' Generates parameter sets for variance-based eFAST Sensitivity Analysis
#'
#' This technique analyses simulation results generated through sampling
#' using the eFAST approach (extended Fourier Amplitude Sampling Test).
#' This perturbs the value of all parameters at the same time, with the
#' aim of partitioning the... |
0b31b5b44122e43404d608dfe39bc31097c888e5 | 7ef8ab4e1cc09af5fd0b7a025213e6eabe7808f1 | /Tesser.R | 2214a0c32114dc3f713011ba98590c2a0995dc40 | [] | no_license | aegerton/tesseract | 5d4cc9edbcac93495ff9a9c796db54b39e9fa05b | 9eded0666a09991e1e8f782ac7a547ab3846ecca | refs/heads/master | 2021-08-29T17:53:05.556939 | 2017-12-14T14:14:12 | 2017-12-14T14:14:12 | 114,258,654 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 715 | r | Tesser.R | library("pdftools", lib.loc="~/R/win-library/3.4")
library("tesseract", lib.loc="~/R/win-library/3.4")
## tesseract_download("ind")
## indonesia<- tesseract("indonesia")
cat(ocr("D:/Users/user/Dropbox/AIH Underwriting/SCOR/Askrindo/PDF/File 4-12-17, 8 06 27 PM.png",
engine =tesseract("ind")))
dest <- "D:/Users/user/... |
5ea7aca4be16863e2c7a5dd8df06bf8ac3fe2a7c | 2f67c7aec09cfcd17c1ccb958abd4323095e74b7 | /R/pava.sa.R | af9dbd4d6a0f310673eeac57e79822b330b70a1d | [] | no_license | cran/Iso | 1adbb236f878019b3594288224f1e4edda19d429 | b580a5802d570e357f48ae1bf48a59ad9d583f84 | refs/heads/master | 2021-08-16T18:01:11.168883 | 2020-05-26T04:13:34 | 2020-05-26T04:13:34 | 17,691,833 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,752 | r | pava.sa.R | pava.sa <- function(y,w=NULL,decreasing=FALSE,long.out=FALSE,stepfun=FALSE)
{
#
# Function 'pava.sa' (stand-alone pava). To perform isotonic
# regression for a simple (increasing) linear ordering using the ``pool
# adjacent violators algorithm''. This version is programmed in raw
# R; i.e. it does not invoke dynamica... |
0b6b73da461c20471001fd3e8880f2e4afa777c1 | b3322b8ab4ea8a02c5b4d50aff2ed3ed7736aac1 | /Problema3-8.R | 7d5c3b5f1c022162abd10f3df32f42b2ce01bfc3 | [] | no_license | pgbeermann2017/ExpDesign | 78959e26b53ac259936066023218ac24e0793032 | 2c71bdf84f3e50405dd1dd5fa9b97a2bce5966c0 | refs/heads/master | 2020-03-31T07:00:38.572973 | 2018-10-08T15:26:21 | 2018-10-08T15:26:21 | 152,004,032 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 389 | r | Problema3-8.R | rm(list=c(ls()))
N10<-c(1530,1530,1440)
N15<-c(1610,1650,1500)
N20<-c(1560,1730,1530)
N25<-c(1500,1490,1510)
df<-data.frame(N10,N15,N20,N25)
df
df<-stack(df)
names(df)<-c("Y","Varillado")
df
modelo<-aov(Y~Varillado,data=df)
summary(modelo)
tk1<-TukeyHSD(modelo)
tk1
plot(tk1)
boxplot(Y~Varillado... |
c13caf3257cb24269f17fb2a64dd8ab63baaa213 | 4f5ce42e56302a2cf68e11374f27585377e8135c | /Assignment/run_analysis.R | 8958c8310e0cc476ae1a8f32efcb1dbc83fa89fb | [] | no_license | kevintham/Getting-and-Cleaning-Data-Coursera- | 4d4656ebb5ec5d5120064b19852c78828222c93f | 625356db880c0335ef413a7fc03ed02a1a9cf11c | refs/heads/master | 2021-06-24T05:34:03.848411 | 2017-09-05T10:16:40 | 2017-09-05T10:16:40 | 102,448,765 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,896 | r | run_analysis.R | rm(list=ls(all=TRUE))
library(plyr)
filename <- "getdata_dataset.zip"
## NOTE: setwd to repository path first! ##
## setwd('repository_path_here')
## Download and unzip the dataset:
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
... |
48129ad269bf4f98a11bd96709d6196ce3189797 | d1828c58599c9e5e0ff8304a739a45156897f9c6 | /ui.R | c119eb97c4f074627f4fb1b8e9cd002128298fe0 | [] | no_license | mriveroj/proyecto_FOCUS | dc88d247704eaf0d649866ef3f3cdff979a8762d | ca52ed6d4e5552bf7b3590d55846ec688494ae71 | refs/heads/main | 2023-04-02T06:50:47.202194 | 2021-04-07T15:56:59 | 2021-04-07T15:56:59 | 350,563,916 | 0 | 0 | null | 2021-03-23T03:10:47 | 2021-03-23T03:10:47 | null | UTF-8 | R | false | false | 8,014 | r | ui.R | library(shiny)
library(shinydashboard)
library(tidyverse)
library(leaflet)
library(plotly)
library(readr)
library(rsconnect)
library(repmis)
source_data("https://github.com/brianlli2000/Accident_UK/blob/main/datos_limpios.Rdata?raw=false")
#fit <- readRDS("modelo.rds")
datos$Accident_Severity=as.facto... |
9d821444e8167ebb036f6932f29ccc9553756a3a | 8ac03eb525450c5a88fc8f14370a2385b5b99a41 | /man-roxygen/roxlate-gf-sc.R | 108ba5039c9b1a078ad4a1f95017bea45f9bdc9c | [
"Apache-2.0"
] | permissive | felipegonzalez/graphframes | f4711a3dbb70a61ac860aec07463b67f2cb1ec05 | dd7e5985b1702d0c91ef558b15c890f21221f1ad | refs/heads/master | 2023-09-05T05:40:53.838876 | 2021-10-21T06:32:16 | 2021-10-21T06:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 33 | r | roxlate-gf-sc.R | #' @param sc A Spark connection.
|
0569d19485a36ca38567443b0cefd954ab393107 | ca5418a01faf094b74f13b7ba3b6bd29113a908e | /practice_r/pbdDMAT_ex2.r | 92cd531f380433c8d6cd7411cb86d89c900cf19c | [] | no_license | ikarus702/pbd_KRLS | fae59baf048ac1ca928e602b3656a86a323eb8bf | c26509a52ccb6c26b1d3bab30f5c08b0b89a07d7 | refs/heads/master | 2020-05-30T08:58:47.472019 | 2019-07-29T16:37:29 | 2019-07-29T16:37:29 | 189,629,987 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 386 | r | pbdDMAT_ex2.r | library(pbdDMAT, quiet=TRUE)
init.grid()
dx <- ddmatrix(1:30, nrow=10)
x <- as.block(dx)
x
comm.print(submatrix(x))
x <- as.rowblock(dx)
x
comm.print(submatrix(x))
x <- as.colblock(dx)
x
comm.print(submatrix(x))
x <- as.rowcyclic(dx)
x
comm.print(submatrix(x))
x <- as.colcyclic(dx)
x
comm.print(submatrix(x))
... |
28b202e132e3551be85905c14d0f950704cd55ce | 419029eade19b17407a57d991ff157a2c5142999 | /man/sedona_read_shapefile_to_typed_rdd.Rd | 25c5392e27e2b5052e2f2b01074bf6ee19157ad7 | [
"Apache-2.0"
] | permissive | lorenzwalthert/sparklyr.sedona | b045adf8fd1308c803c5dd9d212c4f0e4ea9cc98 | 0a1d7602ce1ff10a407b0ebd6383fa326df06ded | refs/heads/main | 2023-04-27T12:12:21.117184 | 2021-05-06T16:54:03 | 2021-05-06T16:54:03 | 365,710,939 | 0 | 0 | Apache-2.0 | 2021-05-09T09:07:26 | 2021-05-09T09:07:25 | null | UTF-8 | R | false | true | 1,501 | rd | sedona_read_shapefile_to_typed_rdd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_interface.R
\name{sedona_read_shapefile_to_typed_rdd}
\alias{sedona_read_shapefile_to_typed_rdd}
\title{Create a typed SpatialRDD from a shapefile data source.}
\usage{
sedona_read_shapefile_to_typed_rdd(
sc,
location,
type = c("po... |
6f09d3f140c64fc6eecaf8b994e2ff2d732fc5e5 | 819a5f52b0bb3be25156257c214b0b18f8c2612c | /R/covid_care_map.R | 9b47003b89b501b0c9610d250021d57089301af4 | [
"MIT"
] | permissive | kotliary/sars2pack | f605a81004535e382ee411a89fcae61af9753ee7 | 43abdafcc73ccbfb95c23b27cc20d3aadfd1fd9e | refs/heads/master | 2022-04-21T15:04:23.176685 | 2020-04-14T17:28:54 | 2020-04-14T17:28:54 | 255,723,912 | 1 | 0 | NOASSERTION | 2020-04-14T20:54:44 | 2020-04-14T20:54:44 | null | UTF-8 | R | false | false | 1,048 | r | covid_care_map.R | #' United States healthcare system capacity by provider
#'
#' @details
#' From the data providers:
#'
#' Mapping existing and forecasted health system capacity gaps (beds,
#' staffing, ventilators, supplies) to care for surging numbers of
#' COVID19 patients (especially ICU-level care) at high spatiotemporal
#' resolut... |
05af2501f9b8c7390b542f1d944195514b135112 | 8f789aa5b5e5c0054f8d501dbb00f22a70c7a22a | /man/getSequencesFromGenome.Rd | 3c8785ca830ba18455b07d86bb22a33ad03c9886 | [] | no_license | ddiez/rTRM | 3458ea89798a374736f19df59e8be64ddc480e9b | 8603c339ee67a94958d2be6f8cd8b7c6bb55f7f2 | refs/heads/master | 2021-01-10T20:30:21.929922 | 2015-10-09T03:14:59 | 2015-10-09T03:14:59 | 37,570,884 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 623 | rd | getSequencesFromGenome.Rd | \name{getSequencesFromGenome}
\alias{getSequencesFromGenome}
\title{
Retrieves a set of sequences from a BSgenome object and optionally appends a label to each sequence id.
}
\description{
This is just a wrapper to getSeq() in package Biostrings that facilitates adding a label to each sequence.}
\usage{
getSequencesFr... |
e934598455b0eb7255db672a167e26fc1212b20b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/btergm/examples/gofstatistics.Rd.R | 0aa0bfc2936dafd6289769b77f5c69710f7c7917 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,147 | r | gofstatistics.Rd.R | library(btergm)
### Name: gofstatistics
### Title: Statistics for goodness-of-fit assessment of network models
### Aliases: gofstatistics gof-statistics statistics gofterms gof-terms
### comemb dsp esp nsp deg ideg odeg b1deg b2deg istar kstar ostar b1star
### b2star kcycle geodesic triad.directed triad.undirecte... |
09d9831a748069b12bd4220e52c9afd5f20367aa | 184180d341d2928ab7c5a626d94f2a9863726c65 | /valgrind_test_dir/integrateStepFunc-test.R | 205e09d3e736caed3105b84724445abf892a4ccf | [] | no_license | akhikolla/RcppDeepStateTest | f102ddf03a22b0fc05e02239d53405c8977cbc2b | 97e73fe4f8cb0f8e5415f52a2474c8bc322bbbe5 | refs/heads/master | 2023-03-03T12:19:31.725234 | 2021-02-12T21:50:12 | 2021-02-12T21:50:12 | 254,214,504 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 285 | r | integrateStepFunc-test.R | function (x, bounds, values)
{
e <- get("data.env", .GlobalEnv)
e[["integrateStepFunc"]][[length(e[["integrateStepFunc"]]) +
1]] <- list(x = x, bounds = bounds, values = values)
.Call("_starvz_integrateStepFunc", PACKAGE = "starvz", x,
bounds, values)
}
|
7685750f69997bebf44d454d83d9e0c22c2b1d4c | c152f18566da3abd3ce757bcd25f02cd14215fdc | /plot4.R | f0e1e825b2042ef0280fa7781b0411740280c02d | [] | no_license | starship9/ExData_Plotting1 | c9d0c6c6b0778d88cece4a6db189161d8aedd3ee | 6e7ae43b6269ead0a9b45b901da1c01be45587bc | refs/heads/master | 2021-09-04T19:24:04.924625 | 2018-01-21T17:49:39 | 2018-01-21T17:49:39 | 114,762,427 | 0 | 0 | null | 2017-12-19T12:26:09 | 2017-12-19T12:26:09 | null | UTF-8 | R | false | false | 1,526 | r | plot4.R | subsetData <- read.csv("subsetData.csv",stringsAsFactors = FALSE)
str(subsetData)
png(file = "plot4.png",width = 480, height = 480)
par(mfrow=c(2,2))
plot(as.numeric(subsetData$Global_active_power),main ="",type="l", ylab="Global Active Power",xlab="",axes=FALSE)
axis(1, at = c(0,1500,2900),labels = c("Thu","Fri","Sat"... |
7e56975fb7cd55a43a9980c31a8a6e4f9ba4e1aa | e21575714abcf69b51d039c34fc48215ecfbdeca | /tests/testthat/test_replace_path_indicator.R | 2413db9521d55680630898f7e7567a6691fc1428 | [
"MIT"
] | permissive | jimsforks/pathformatr | 2585aa877fb8727ec4736c6e14365f3a63f898dc | efa4ee1ce273e460179ffda34809946c1e99dda2 | refs/heads/master | 2023-02-12T13:18:39.744357 | 2021-01-08T12:14:50 | 2021-01-08T12:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,777 | r | test_replace_path_indicator.R | context("Check path replacement 1 - indicator")
# This is a short indicator test. To fully test the functionality, the
# test_replace_path_local.R needs to be sourced interactively.
test_that("Check path reformatting",{
# Check it works for here()
expect_equal(split_path("here(\"inst/rstudio/addins.dcf\")"),
... |
f8c9ac54f0cf5751d026853be8610e843efdedcd | 722281e3bddbef275d0e165f58c15077f91741aa | /man/aliscore.Rd | 3996442b3284d4b4863b3c6f53be22bf4a045ac1 | [] | no_license | heibl/ips | ba824e8d2c185e22ad81c2d85d7e6368b9017f5d | 647ba4c9ae1104b649cacc901c527de0207b7775 | refs/heads/master | 2022-02-08T16:08:03.520858 | 2022-02-06T14:54:58 | 2022-02-06T14:54:58 | 50,670,472 | 9 | 3 | null | 2018-01-18T09:19:30 | 2016-01-29T15:18:38 | R | UTF-8 | R | false | true | 1,914 | rd | aliscore.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aliscore.R
\name{aliscore}
\alias{aliscore}
\title{Masking of Sequence Alignments with ALISCORE}
\usage{
aliscore(x, gaps = "5state", w = 6, r, t, l, s, o, exec)
}
\arguments{
\item{x}{DNA sequences of class \code{DNAbin}.}
\item{gaps}{A vec... |
f6ee04a84611196cf77ec045ab352bdb8ea5fc6c | 332590d9ac31a65c418ea7254174cd9dfac7d76a | /man/palette.jco.Rd | c34fd8f45cff3e14d2cdd667ebcc3d04f07d3805 | [] | no_license | djambar/hdnom | 34544a17168661410856f2709f824c148fbe6e8b | 38dc945ab50db35d5c8e71715b2a08c9a452be21 | refs/heads/master | 2021-01-12T22:22:12.840852 | 2016-07-05T02:58:22 | 2016-07-05T02:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 366 | rd | palette.jco.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/11.hdnom.color.palette.R
\name{palette.jco}
\alias{palette.jco}
\title{Color Palette for Journal of Clinical Oncology (JCO)}
\usage{
palette.jco()
}
\description{
A 10-color discrete color palette based on the colors
used in figures in Journa... |
0736c7cd0f414d7d7de208e9efd17faba4690700 | e629f64c9651b1349c820f35b45615b3925dc09e | /w1_all-in-one/.Rhistory | 1b4a5cb6ac47763cdf6f089b4615ff9ca07a770d | [] | no_license | jeremy-dai/15-Statistical-Computing-with-R | d2fea4f863bf1589c577b076913a549b9a3b870d | 82090ff1cf7dfbe6dd4b27f6af19864cc966bfb3 | refs/heads/master | 2022-04-08T19:18:07.696859 | 2020-02-20T14:08:42 | 2020-02-20T14:08:42 | 206,742,386 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 182 | rhistory | .Rhistory | as.numeric("four")
as.numeric(c("3", "2", "...", "1"))
T <- 5
Y=20
T*Y
save.image("~/GitHub/15 Statistical Computing with R/w1_all-in-one/Untitled.RData")
savehistory("Separated.R")
|
2bdfe4a579c333586760cba9e96de19ac7d1823b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dynatopmodel/examples/discretise.Rd.R | 059434279c10ebcf0cf001a186119ad923fdd5b5 | [] | 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,085 | r | discretise.Rd.R | library(dynatopmodel)
### Name: discretise
### Title: Discrete a catchment into hydrological response units (HRUs)
### Aliases: discretise
### ** Examples
# Landcover and soils are fairly homogenous throughout the Brompton catchment.
# Due to the extensive artifical sybsurface drainage discharging directly into
# ... |
2cf7971b7d5e9c8148fd08fb03d392dc3947bc0c | 16d1ae505aae32acd3c07973829a8145d3458095 | /AZ/ADD.R | 7d6ed68eea77d586d988bf8ab6998b6c9f0d5407 | [] | no_license | sailyen/ifc_data_manipulation | 528c25ed9206101aae2216926f2aa70ccb8d4ffc | 4bc04b7476cf586dbd0a692d12ef5da5586e1a64 | refs/heads/master | 2020-04-03T13:09:33.551882 | 2018-12-05T18:09:01 | 2018-12-05T18:09:01 | 155,275,704 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,277 | r | ADD.R | idct <- read.csv("IDCT.csv", header = T)
SL <- read.csv("SME_L.csv", header = T)
SM <- read.csv("SME_M.csv", header = T)
SN <- read.csv("SME_N.csv", header = T)
SO <- read.csv("SME_O.csv", header = T)
names(idct)[1] <- "Country"
names(SL)[1] <- "Country"
names(SM)[1] <- "Country"
names(SN)[1] <- "Country"
na... |
72fe9994a7a939cca06cb19bd76307e1b4de22ca | 28fd76376cea79ad0b7244b036589b179d1af756 | /countNA.R | f43658f601c7f92475393b35f178f5b50b295d81 | [] | no_license | mrzork/ConteoNA | 0d9465b70672aaee0acd84de7627e5c617d73950 | c153f09e9a1393293a6007f33d755670c46375cd | refs/heads/master | 2021-01-22T02:52:59.075861 | 2018-11-22T21:03:23 | 2018-11-22T21:03:23 | 24,518,300 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 413 | r | countNA.R | countNA<-function(data){
esna<-c(1,which(is.na(data)))
b<-a<-k<-0
for(i in 1:length(data)){
if((is.na(data)*1)[i]==1 ){
b<-b+1
}else{
if((is.na(data)*1)[i]==0 && b>0){
k<-k+1
a[k]<-b
b<-0
}
}
if(i==length(data) && b>0){
k<-k+1
a[k]<-b
b<-... |
2127875d29de41f9b228173be86a35c7d88196ff | cf82203ab8814e454b8af896e25637c1a547db94 | /code.R | 2080674d4a3cdd1f87f80ec9d712e0e120b2b8ad | [] | no_license | gldmt-duke/movies_data | 7e35bd08e35abf3f3cfe6fe67646ae85178251cb | dcaf573e867ba109d863135bc16b1ab6e1349402 | refs/heads/master | 2020-05-27T21:24:00.639167 | 2017-03-02T13:54:19 | 2017-03-02T13:54:19 | 83,682,262 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,519 | r | code.R | library(dplyr)
library(magrittr)
library(rvest)
setwd("E:/Dropbox/Duke/STA101")
load(url("https://stat.duke.edu/~mc301/data/movies.Rdata"))
movies %<>%
# Remove TV movies.
filter(title_type != "TV Movie") %>%
# Remove long and short runtimes.
filter(runtime < 250) %>%
filter(runtime >= 60)
# Add clean stud... |
13cffd7453cee9c29179a7589d2e3923fa6974f9 | 07cc930397f60f8a9e1d437198244543f64d6ca6 | /ctn_R/regression_avec_R/commandes_chapitre2.r | 5b49394142c45058c21ac2564b86aaea73fc7e01 | [] | no_license | BTA198D/ctnguyen | 98e22ee8b1b89a44befc713c37408561ac997dc8 | 0affe545bced1c489e682277b18dd7bd012c1403 | refs/heads/master | 2023-03-20T10:11:48.083165 | 2020-10-30T15:14:41 | 2020-10-30T15:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 980 | r | commandes_chapitre2.r | ############################################################
### L'ozone
############################################################
### representation des donnees
ozone <- read.table("ozone.txt",header=T,sep=";")
library("scatterplot3d")
scatterplot3d(ozone[,"T12"],ozone[,"Vx"],ozone[,"O3"],type="h",pch=16,box=FALSE,... |
2c8865b5c139db76f356e0037ed78d1c1e621ff5 | ed1b4c0f57ef37e22a6c1cb5130ed8f887e0700b | /inst/render.R | 7dbaead03a61ee4826f4712563715823dec41a75 | [] | no_license | langcog/wordbank-book | ccc063950c7ea2f13da3ea7856d99b5930d31561 | 9db9683f17864fd71f0ed740f542bc92be177c30 | refs/heads/master | 2021-07-19T17:05:37.107602 | 2021-07-09T17:39:11 | 2021-07-09T17:39:11 | 73,015,913 | 14 | 4 | null | null | null | null | UTF-8 | R | false | false | 199 | r | render.R | rmarkdown::render(output_format = 'bookdown::pdf_book',
encoding = 'UTF-8')
rmarkdown::render_site(output_format = 'bookdown::html_book',
encoding = 'UTF-8')
|
8cc54ad899c6872c77c39f5ab8a0f899bb25d7f5 | 1d17402d6b8afd0e889d5501fab725a137de18f8 | /R/mismatch.R | 9f94f0f7b248dd324fdb5f1a79123636bc097e06 | [] | no_license | UBod/kebabs | 50d2652faf10c4cb5aaec0b7137f9dfb9629db93 | 87431a1adf67a680060810cf0af78209f5a69b70 | refs/heads/master | 2023-05-04T15:30:45.351731 | 2023-04-21T10:53:53 | 2023-04-21T10:53:53 | 133,505,139 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 12,419 | r | mismatch.R | #2345678901234567890123456789012345678901234567890123456789012345678901234567890
#' @rdname mismatchKernel
#' @title Mismatch Kernel
#'
#' @description Create a mismatch kernel object and the kernel matrix
#'
#' @param k length of the substrings also called kmers; this parameter defines
#' the size of the feature space... |
bdc505260395605927b475e133e8baaa796c2df8 | 67be121f07b78e8337262f97673c94ff2e4471f9 | /R Programming/ProgrammingAssignment3/best.R | 99276ceeac89d9bdd2c06dffdeba016ff18f9b63 | [] | no_license | adamwlev/Coursera | 61099a2c9ab7c899aaf3c3d086297072525ccc75 | 9bd03ea561d0145d1e68e8fdc78759196361a3d3 | refs/heads/master | 2021-04-22T12:23:32.932089 | 2016-12-06T23:45:11 | 2016-12-06T23:45:11 | 75,781,302 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,011 | r | best.R | setwd("~/Documents/R Programming/ProgrammingAssignment3")
best <- function(state, outcome) {
data <- read.csv("rprog-data-ProgAssignment3-data/outcome-of-care-measures.csv", colClasses = "character")
data$State<-as.factor(data$State)
data[,11]<-as.numeric(data[,11])
data[,17]<-as.numeric(data[,17])
data[,23]<-as... |
2442de2fdb153326d45865cfda0b3899c524e2af | 7af4243925881859c18ed52e787ae46465173f26 | /R programming week3.R | f567fe891624267462c91b5d9efd95757da0a0d5 | [] | no_license | MoominBamboo/R-Programming-Week-3-Assignment | b7d3fca87649f8e190ed41a4e46c078b5b1a4e61 | 805403c65d3c29d8eb631e82e6cea5ff2708218e | refs/heads/master | 2021-03-31T01:04:08.034941 | 2018-03-12T18:30:58 | 2018-03-12T18:30:58 | 124,933,601 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,824 | r | R programming week3.R |
makeVector <- function(x = numeric()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setmean <- function(mean) m <<- mean
getmean <- function() m
list(set = set, get = get,
setmean = setmean,
getmean = getmean)
}
cachemean <- function(x, ... |
0a702f7eb2c7c23dca8b4afd40acd73d5b02d2bb | ccace74225fd645944cffa3218db445c29b5b38d | /hw/hw1/car.R | 2412337bda3d87ebc262ee4b61bcc9c78e773395 | [] | no_license | luiarthur/decision_ams221 | 31f3587aba928e143b5cfdc187d72db437e96662 | 9c1b993902a39980eeeefaa828e6f4f63600ae4d | refs/heads/master | 2020-04-11T05:31:45.767800 | 2019-01-24T17:34:03 | 2019-01-24T17:34:03 | 161,552,181 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 500 | r | car.R | f = function(n, x) {
p_snx = dbinom(x, n, .9) * .2 + dbinom(x, n, .4) * .8
p_nx = dbinom(x, n, .9) * .2 / p_snx
a = (-50 * n + 700) * p_nx + (-50 * n + 800) * (1-p_nx)
b = (-50 * n + 0) * p_nx + (-50 * n + 1000) * (1-p_nx)
cat('n: ', n, ', x: ', x, ', a: ', a, ', b: ', b, ', p_snx: ', p_snx, '\n', sep='')
... |
8135ff7b6e4a913feef1ef3811a22b5d7d84d6e1 | f8d2169fb12986ce3d0eec2ab5d6d208a7766eed | /R/frontend-score.R | a8abadeec7160701b7d810982ce7c5f42e23b9e6 | [] | no_license | MariusDanner/bnlearn | 934dec56136745517635dcfab96b009924c72bd8 | 3cb51471943811d94a32ec742d262a5d7b20481d | refs/heads/master | 2020-05-29T15:26:17.038590 | 2019-05-29T14:00:11 | 2019-05-29T14:00:11 | 189,220,392 | 2 | 0 | null | 2019-05-29T12:24:38 | 2019-05-29T12:24:37 | null | UTF-8 | R | false | false | 8,357 | r | frontend-score.R |
# compute the score of a network.
score = function(x, data, type = NULL, ..., by.node = FALSE, debug = FALSE) {
# check x's class.
check.bn(x)
# the original data set is needed.
check.data(data)
# check the network against the data.
check.bn.vs.data(x, data)
# check debug and by.node.
check.logical(by... |
26875ccfbbf1298a3bf67279b51cddde1ed3d066 | b83685030a9ba183d06d44e8865a1165b82bc2b3 | /plot2.R | c378f366f6b1bbf643c40519f87ff3bdd735d29e | [] | no_license | vovikdrg/Exploratory-Data-Analysis | 217e14d74b013f80c5125ed683369ea03d0ffa65 | 40cccb5e718c0f8405a8208024d8a4b882e70309 | refs/heads/master | 2021-01-10T20:51:29.594051 | 2015-02-08T21:39:36 | 2015-02-08T21:39:36 | 30,505,430 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 551 | r | plot2.R | data <- read.csv("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
data$Date <- as.Date(data$Date, format="%d/%m/%Y")
data$Global_active_power <- as.numeric(data$Global_active_power)
dataForPlot <- subset(data, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
dataForPlot$Dat... |
d841e82878144d9ed5df9f8b367aa3d01028345e | 8f339ff4d4565ceff9faac608f0dd3db70cd0534 | /man/orbit_read.Rd | b696918158b292608d7d41ed71ab6b9137d6a031 | [] | no_license | markwh/rivertile | a5960e4b92070bc276114f92383b2568358fb0f4 | 5c8969332b9ee8f187fdd209e059f51fb83327c8 | refs/heads/master | 2020-04-24T05:47:54.342603 | 2019-10-22T13:11:08 | 2019-10-22T13:11:08 | 171,742,418 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 470 | rd | orbit_read.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-priordb.R
\name{orbit_read}
\alias{orbit_read}
\title{Read orbit locations}
\usage{
orbit_read(ncfile, as_sf = TRUE, maxpoints = 1000)
}
\arguments{
\item{ncfile}{netcdf file containing prior info}
\item{as_sf}{Convert to spatial frame ... |
1d8756d76d247d4b9bb1aeb35691d556518f1fa0 | 186b58bad3b286be4411f5f0784fa97635f8faa9 | /run_analysis_long.R | d6ad549cd7a6ea519a75a36351fb301aade2cc6b | [] | no_license | ZedLeb/coursera-data-science-getdata-course-project | 07319534fadfe687bce00508ed667e4eaa0ec52e | c7364b801ec30ff376df97619734f0bdde3a8333 | refs/heads/master | 2021-01-22T20:54:58.833847 | 2014-12-01T09:44:11 | 2014-12-01T09:44:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,650 | r | run_analysis_long.R | # The course does not teach us data.table, but I prefer to use it at all times
# for its lightning speed when working with huge data sets and versatility.
# See benchmarks here:
# https://github.com/Rdatatable/data.table/wiki/Benchmarks-%3A-Grouping
# If you are not familiar with data.table I recommend these reads
# ht... |
22d2118341a8d9d163b018198060bfd72348b30b | 290f67b56cf2997f970cf662cffab1c6dd14f0e0 | /landslide.r | 2be8e06477afae49b155e8f2ccf30d13772dd76e | [] | no_license | sanchu01/Trend-Fitting | a48af8b5b9dbe4bf6593415cb7eb1c39beabbabf | 944daf6f894cc15007a7111e8080d47419eb203c | refs/heads/main | 2023-02-04T10:21:11.220973 | 2020-12-22T18:04:32 | 2020-12-22T18:04:32 | 323,698,498 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 690 | r | landslide.r | cat(" LANDSLIDE")
year=c(2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019)
y=c(29,32,17,13,11,15,20,13,25,13)
x=array()
x2=array()
x3=array()
x4=array()
x2y=array()
xy=array()
for(i in 1:10)
{
x[i]=year[i]-2013
x2[i]=x[i]*x[i]
x3[i]=x2[i]*x[i]
x4[i]=x2[i]*x2[i]
xy[i]=... |
fd9ca8cd1736e7414b09685ba046ab873fc027c4 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googleidentitytoolkitv3.auto/man/Relyingparty.Rd | eb1bf8a7f26fa381f607e485b13ff37f048e9a45 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,022 | rd | Relyingparty.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/identitytoolkit_objects.R
\name{Relyingparty}
\alias{Relyingparty}
\title{Relyingparty Object}
\usage{
Relyingparty(captchaResp = NULL, challenge = NULL, email = NULL,
idToken = NULL, newEmail = NULL, requestType = NULL, userIp = NULL)
}
\a... |
f04f17fd4d801e09e8e4523b6ddd0357d7d59b24 | 171084c6adea20e506b70125862549f57b671e01 | /R/utils.R | 6b37c70fbefb1fe8ed10f7467928057937d18c41 | [
"MIT"
] | permissive | hongyuanjia/ggpsychro | ce15e25e5673bfac5897399145df64f0bf348080 | 961d96d8b2239556ead600a304aab8b92e61a8a6 | refs/heads/master | 2022-02-01T08:45:10.099317 | 2021-02-02T14:22:46 | 2021-02-02T14:22:46 | 228,736,101 | 14 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,283 | r | utils.R | is.waive <- function(x) inherits(x, "waiver")
# new_data_frame {{{
# copied from ggplot2/R/performance.R
# Fast data.frame constructor and indexing
# No checking, recycling etc. unless asked for
new_data_frame <- function(x = list(), n = NULL) {
if (length(x) != 0 && is.null(names(x))) {
stop("Elements mus... |
265795ec8519cba30db7819c50f8998eaede336a | 90a905e25ccf99565b10616506395b4008373424 | /rankall.R | e821eb6adae9ef42de4e61d486fb6a2f568ab556 | [] | no_license | jerry-ban/coursera_rprog | 8016af286e2f55ecd5d1dbb657bfe9299fa8ad38 | 3a8d0db76ab7fadd1771629ebadbb6c3825785f0 | refs/heads/master | 2021-05-05T19:28:47.914105 | 2018-01-25T18:40:52 | 2018-01-25T18:40:52 | 117,782,524 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,049 | r | rankall.R |
library(dplyr)
#source("rankhospital.R")
rankall <- function(outcome, num = "best") {
## Read outcome data
## Check that state and outcome are valid
## Return hospital name in that state with the given rank
## 30-day death rate
#rankhospital("MD", "heart attack", "worst")
#state<- "TX"
#out... |
f315fc71645910d8c0e0484c7e04f99b0abe6bfc | b2ccc621a514e3b8f6201e74aeaf639873b9ac14 | /week4/seminar/week4.R | ba573bc6aec2bc42e8abfb195a9d1ef81222c1ff | [] | no_license | danilchenko-andrey/cs-matstat-2014 | 4e39855544a3700188fcad7567ac99c6429be24b | 88ca9556548c1dceb67cf0c0138ff6252caa594c | refs/heads/master | 2020-06-03T06:01:11.596377 | 2014-04-09T17:25:19 | 2014-04-09T17:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,697 | r | week4.R | # Task 1: paired and independed t-test
cor <- 0.6
K <- matrix(c(1, 0.6, 0.6, 1), ncol=2)
A <- chol(K)
# our function that will generate correlated samples
generate.f2 <- function(n, k, A, diff) {
XY <- sapply(1:k, FUN = function(k, n) {
X <- cbind(rnorm(n, 0, 1), rnorm(n, 0, 1))
Y <- A %*% t(X) + d... |
323cfff4a6ffce12461d86a643d3634e60dd23dd | ea5db4ea1b53886058be490089820ed419980628 | /homework/03-7-13 Donnelly homework ggplot changing existing plot.R | 49fa64769f8aa49ed7bb22c679b966835a5faf72 | [] | no_license | CatsCauseTypos/r-club | d5d082b432eaeef8b9815b8a2947f17e3daec664 | 07ba138504abb0cce272679dc9c00416cd99b213 | refs/heads/master | 2021-06-09T02:48:55.338192 | 2017-04-20T21:00:10 | 2017-04-20T21:01:36 | 9,950,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,703 | r | 03-7-13 Donnelly homework ggplot changing existing plot.R | #first, let's get rid of movies without mpaa's and without ratings:
mymov3 <- subset(x=movies, year>1990 & mpaa !="")
ggplot(data = mymov3, mapping = aes( x = year, fill = mpaa ) ) +
geom_density(alpha=0.4) +
labs(title="oh for heaven's sakes") +
theme(legend.position = "bottom")
#good.
#remembering what's the... |
9b7ba11bf9c19eddb1de62bd12d7a93225883c0c | 10a60179df1fb101d3f22da0ad63467e14daac3f | /R/bfs_get_catalog_tables.R | 5ef8012723c34d54cffbcf3ebd2b60e45db70cb2 | [] | no_license | cran/BFS | e17ac6e24b63e268882156e0c5ec1f274702ae07 | 4a80dbe521580a153388352eaa7f916d94ebb6ab | refs/heads/master | 2023-08-18T00:36:32.016655 | 2023-08-11T11:33:52 | 2023-08-11T13:30:27 | 236,560,495 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,354 | r | bfs_get_catalog_tables.R | #' Get the BFS tables catalog
#'
#' Get the list of the tables available in the official \href{https://www.bfs.admin.ch/bfs/en/home/statistiken/kataloge-datenbanken/daten/_jcr_content/par/ws_catalog.rss.xml}{RSS Feed} of the Swiss Federal Statistical Office tables catalog.
#'
#' @param language character The langua... |
f5df0c521483e8522ce3686e3595628eacfe3ea6 | 9c2f40ae8269413feb32cffa6d581dfe9f931dd0 | /R/matching_types.R | 21b0d55586934778674b294027f17ae48dbd681c | [
"MIT"
] | permissive | tpetricek/datadiff | ed5ca6cdfe8129ed947c24a42c62ea265aad86ef | 8941269b483da9abcacde804b7f6b6e0a122a57a | refs/heads/master | 2020-07-31T19:09:25.118489 | 2019-09-25T23:55:01 | 2019-09-25T23:55:01 | 210,723,004 | 0 | 0 | MIT | 2019-09-25T00:39:49 | 2019-09-25T00:39:49 | null | UTF-8 | R | false | false | 1,217 | r | matching_types.R | #' Identify matching patch types
#'
#' Returns the vector of elementary patch types found in the given \code{patch}
#' which have a parameter with the given name.
#'
#' @param patch
#' A patch.
#' @param param_name
#' A scalar parameter name.
#' @param short
#' A logical flag passed to the \code{patch_type} function.
#... |
8b29e5166ca8c9995886070a2dc2fc01cdd4a451 | 83b618a2d0f060a1142725d347810788c25c8440 | /FinalOutput/Code in R format/shiny_app_web/server.R | 01aeb7778a6bcdb5ec092a0eb8227a5fee93edad | [] | no_license | senthil-ramasamy/MovieLensDataset-SDL-R-Project | f38475c9d664912ac74978db9d5a734cb645e96d | 21239105ab395e99ea56ae9a1275c6dab13b8c33 | refs/heads/master | 2021-01-19T03:52:02.882710 | 2016-10-25T21:44:37 | 2016-10-25T21:44:37 | 65,266,386 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,763 | r | server.R | library(shiny)
library(reshape2)
library(data.table)
library(Matrix)
library(proxy)
library(recommenderlab)
library(reshape2)
movies <- read.csv("~/Works/Rworks/Movielens/Recom/movies.csv", stringsAsFactors=FALSE)
str(movies)
ratings <- read.csv("~/Works/Rworks/Movielens/Recom/ratings.csv", stringsAsFactors=FALSE)
str(... |
50632cd5f020e04a22d05c671aeff7825a8617e1 | 16e8405f836303f91ada43c6c500af188495ab1e | /test_data/TTTTTTT.R | 4f10b1ce7d4e8bf0a43147af94cc4f8e7b6a068d | [] | no_license | caokai001/kcaoplot | 2415da81660ab5a8eace24171a18c53d9235cf55 | 4c324968b7c28d6fea3aedc9921cb65db19ff57e | refs/heads/master | 2020-09-20T08:40:24.566144 | 2020-01-06T19:58:06 | 2020-01-06T19:58:06 | 223,578,393 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 895 | r | TTTTTTT.R | ctcf.motif=Fimo2GRanges("../TESTDATA/mynew.txt","GRanges")
# 开放区域合并
dnase.peak<-bed2GRanges("../TESTDATA/E094-DNase.all.peaks.v2.bed")
dnase.fdr<-bed2GRanges("../TESTDATA/E094-DNase.fdr0.01.peaks.v2.bed")
dnase.mac<-bed2GRanges("../TESTDATA/E094-DNase.macs2.narrowPeak")
dnase=c(dnase.peak,dnase.fdr,dnase.mac)
dnase=Gen... |
a90257b31a5551a9d0e1d57320175084bfe17637 | 369bff8173041a70d122004d4b82a46a4197adc7 | /app.R | ed3ea23fbf6cbada3c41dc7023ca9a0275b6d582 | [] | no_license | MaStadel/PsyCorona-WebApp | 8b66a44f11add317eb74526668bf6fb696e63627 | 1adf1272a03062b06363b53d62107818f5f5b2f4 | refs/heads/master | 2022-05-20T11:54:19.612914 | 2020-04-25T14:54:39 | 2020-04-25T14:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 60,715 | r | app.R | library(shiny)
library(dplyr)
library(tidyr)
library(ggplot2)
library(stats)
library(shinydashboard)
#library(dygraphs)
#library(RColorBrewer)
library(stringr)
#library(DT)
library(shinyjs)
library(shinyWidgets)
library(r2d3)
library(radarchart)
library(haven)
#library(leaflet)
library(highcharter)
library(rgeos)
libra... |
314adff505faeed032559528fb0d0eb1a0e6166b | c26390b0aaf512666dfae5003ebac48a2bad0e0a | /tests/testthat/helper-generate.R | f65ea9f84046e1cad358347e86198b393543688e | [] | no_license | cran/OrthoPanels | 25edd572167c9803cbc4e7ffbc48a56aeb5c09da | e97143db293bdcc810a5d1daf5ad1c309e1d3ddf | refs/heads/master | 2022-06-30T19:49:52.617343 | 2022-06-09T04:20:01 | 2022-06-09T04:20:01 | 48,085,305 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,052 | r | helper-generate.R | generate_data <- function(N, T, K = 1,
rho = 0.5,
beta = rep(0.5, K),
f = rep(-1:1, length=N),
drop_outs = 0,
sd.y = 1) {
## $x_i = 0.75 f + N(0, 1)$:
x <- array(.75*f, dim=c(... |
569f81a36e83164570862ff2ac537163a894a7e8 | 02451759a7ffe3d83fc2f09864e0516bbfc03ee8 | /man/nsRFA-internal.Rd | 6335a990f1c89196e630a0e8c9e69a7a31653e6c | [] | no_license | cran/nsRFA | feb117ac5c0041ce4595c6dcf239f81dd7680c00 | fd22cb58650c024d5266df29ea263e4db6dcf5be | refs/heads/master | 2020-06-06T21:58:59.800744 | 2020-02-26T15:50:02 | 2020-02-26T15:50:02 | 17,697,987 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,242 | rd | nsRFA-internal.Rd | % 2005-09-23, Alberto Viglione
%
\name{nsRFA-internal}
\alias{nsRFA-internal}
\alias{ksampleA2}
\alias{nonparboot}
%\alias{test.GOFmontecarlo}
%\alias{typeIerrorA2_GOFlaio}
%\alias{fw2}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{Internal functions}
\description{
User-level objects which are ... |
d6e2666e0dae253c2711842f1ecdfb8ffbe2064b | ae69f22a8bdcc712dbac8057504b7044bb57ace9 | /R/tag-export.r | 4caeb6b79d3aa082328a9fe4d648419920724382 | [] | no_license | kashenfelter/roxygen3 | 4fa4c61031bc3f0826ffb025eacf4751e79c6325 | 5ebffd6f41913e4737e71fb42dc5295170c8eadc | refs/heads/master | 2020-03-13T22:43:13.212468 | 2013-11-30T13:38:15 | 2013-11-30T13:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,832 | r | tag-export.r | #' Namespace: tags for exporting objects
#'
#' Generally, you will only need to use a bare \code{@@export} - this will
#' inspect the documented object and automatically figure out the correct
#' export (which varies based on whether it's a function, s3 method, s4
#' class, s4 generic/method).
#'
#' The convention in \... |
1d7b0d39496273ac7d882d843a8c4679d7122bed | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/geoknife/examples/geoknife-methods.Rd.R | 647fbcb48950806c4fffd595c18b6572072bece4 | [] | 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 | 386 | r | geoknife-methods.Rd.R | library(geoknife)
### Name: geoknife
### Title: geoknife
### Aliases: geoknife
### ** Examples
## Not run:
##D job <- geoknife(stencil = c(-89,42), fabric = 'prism')
##D check(job)
##D
##D #-- set up geoknife to email user when the process is complete
##D
##D job <- geoknife(webgeom("state::Wisconsin"), fabric =... |
4d3d2ec4ab2cba71ab9d7258257b3025d943743e | f86c61f0ec83bc7ed2281c9a2636eeee450eaca7 | /shiny_practice/04_radioButtons/server.R | 0b337a4d6b2e1b3a40fe8674d9940865ab08c9f8 | [] | no_license | j-harbin/shiny | e0f4d0465817bba0f3595f6ce6b039c76183e655 | b3ba46db0ef7e148e14a5058bb72ea50fd60f030 | refs/heads/main | 2023-06-06T06:24:10.661523 | 2021-06-24T14:52:06 | 2021-06-24T14:52:06 | 321,340,874 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 235 | r | server.R | library(shiny)
shinyServer(function(input,output) {
output$myname <- renderText(input$name)
output$myage <- renderText(input$age)
output$mygender <- renderText(input$gender)
}
)
|
a4b62b2e18331aac9374a6f686537f5f7b8e8b0f | 1b622a48cf7c8853d67605cb6501aea6ef4df678 | /Evolutionary Genomics/Nicolas Salamin Phylogeny/PracticalDay1_likelihood/model_selection_concat.R | 9ec582cb7b55b66412f58c68610e80c1186e9de0 | [] | no_license | ThibaultSchowing/unistuff | 0ab6e1c3ec27dda631b0399a1cfca351e959b7fc | 380506b30a69df6c82f639064b3d5700fe90de14 | refs/heads/master | 2020-09-08T19:43:24.176721 | 2020-05-14T21:59:24 | 2020-05-14T21:59:24 | 221,225,865 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 470 | r | model_selection_concat.R | library(ape)
# run phyml sequentially on each DNA model
#change the execname based on what you have on your computer
phyml.test<-phymltest(seqfile="clownfish_concat.phy", execname="PhyML_3.0/phyml_3.0_win32.exe -b 0 -o lr", append = FALSE, "sequential")
#takes a while...
#plot the results
plot(phyml.test)
# Save an ob... |
de76c87edfc7f60f8d9678875b8929c25e719e0b | c4b86ad27a16524b978bcad04d3920b98bd77aba | /no_change.R | b182908fbf98ab0da63f68d20fc63ce1f2e19ec5 | [] | no_license | nripeshtrivedi/Conversion_analysis | 5ec900a97ba685720356cba1b7e1f7111a867b90 | d9c9ac2c7a4a2e4e46492c82f530036b256120de | refs/heads/master | 2020-12-24T07:04:03.717117 | 2016-11-20T07:26:29 | 2016-11-20T07:26:29 | 73,382,456 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,796 | r | no_change.R |
listz<-rep(0,length(listi))
for(q in 1:length(listi))
{
rightafter<-0
burst<-0
excecuted<-0
p<-listi[q]
number<-newdata$number[p]
date<-0
ct<-0
c<-1
for(i in 1:length(nmum$memID))
{
if(number==nmum$memID[i]){
date[c]<-nmum$actDate[i]
ct[c]<-nmum$actCount[i]
c<-c+1
}
... |
acd95047bf6df5cfa13762429cc042fd294688fe | 22d114d86d77cbc042f1f651ee6b8feabb2f5149 | /tests/testthat/test-bm-read-file.R | c30aec31407a31cb3c2447dfa2cc492b4f1375fa | [
"MIT"
] | permissive | lidavidm/arrowbench | 544b8030ae203c2274a6c4c8a6c5ea1d76fc246b | ca08ea96678962c462dd8049511e72fbb6f3e9da | refs/heads/main | 2023-04-09T23:26:06.203856 | 2021-04-13T22:51:41 | 2021-04-13T22:51:41 | 358,266,146 | 0 | 0 | NOASSERTION | 2021-04-15T13:18:41 | 2021-04-15T13:18:40 | null | UTF-8 | R | false | false | 522 | r | test-bm-read-file.R | test_that("read_file validation", {
# read_file has a few combinations in its default arguments that aren't valid
read_file_no_validate <- read_file
read_file_no_validate$valid_params <- NULL
params_no_validate <- default_params(read_file_no_validate)
params <- default_params(read_file)
expect_lt(nrow(pa... |
f08a2faafe9674f058154de4e46d80aaf0d2bea3 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/stm/man/optimizeDocument.Rd | e794fee41bd5d08b4a1035a110b24e732113c9ab | [] | 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 | 3,926 | rd | optimizeDocument.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/STMlncpp.R
\name{optimizeDocument}
\alias{optimizeDocument}
\title{Optimize Document}
\usage{
optimizeDocument(
document,
eta,
mu,
beta,
sigma = NULL,
sigmainv = NULL,
sigmaentropy = NULL,
method = "BFGS",
control = list(max... |
ce1b4007d259320a55bb79cc1452ccc2915f6c37 | c2d7acd783bc15a599ad8712d4ef01f00aa100aa | /man/area_pal.Rd | d34a06d5d63cfe2327b8743ff212ee8b537728ef | [] | no_license | kohske/scales | 48d2f5ea4bd38e4bd312975543fd9fbf32a820d9 | e774baafb25ac4ef58aadaab5ca410eaa862cc58 | refs/heads/master | 2020-12-24T11:37:36.642076 | 2011-12-02T16:17:47 | 2011-12-02T16:17:47 | 1,102,403 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 285 | rd | area_pal.Rd | \name{area_pal}
\alias{area_pal}
\title{Point area palette (continuous).}
\usage{
area_pal(range = c(1, 6))
}
\arguments{
\item{range}{Numeric vector of length two, giving range
of possible sizes. Should be greater than 0.}
}
\description{
Point area palette (continuous).
}
|
d21ed5a440691f561c5d9af6ab50de7bf7027f42 | 08313c529a4d1ffecb9f6463534a537d670d775c | /man/coverage.yield.single.Rd | d7cdad1b1abb45046f8306deb6a44c65a552d6c3 | [] | no_license | emdann/hexamerModel | 5a95ac93852915f51cb4f11917919d9566586e00 | 5c6bf140d9841fa0dcf572b8acf789c9b82caaf0 | refs/heads/master | 2021-09-21T21:03:45.694694 | 2018-08-31T12:22:46 | 2018-08-31T12:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 658 | rd | coverage.yield.single.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compare_peaks.r
\name{coverage.yield.single}
\alias{coverage.yield.single}
\title{Compute coverage yield}
\usage{
coverage.yield.single(scaled.track, roi.track)
}
\arguments{
\item{scaled.track}{GRanges object with values for predicted covera... |
960b4107ee69385957947618fa364ab456c73398 | 7e77947f8edd12e07325aee3f82cb591d373dc5e | /predictiveTool/PredictiveTool.R | 3cb4adf983f3ed62ccf147cf63fe06e63d34696f | [] | no_license | tgowan/HabModel_PredictiveTool | 73cc6f23c2a13ab826f645d413ea9c60e8ab984a | 41db140509ca9dfe4f9c8be00aa866f0450b19ec | refs/heads/master | 2022-12-11T14:18:46.916606 | 2020-09-21T20:20:17 | 2020-09-21T20:20:17 | 297,450,297 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,803 | r | PredictiveTool.R |
# note: sstavg and processed SST rasters are not saved/exported
# note: Cannot write to PredictiveTool.gdb. And saving results as shapfile is problematic.
# So will need to join 'outf.csv' or 'enviro.gpkg/HabModelEnviro' to 'HabModelEnviro' and 'HabModelPrediction' in Arc after this R script is run
biweek = 'J... |
87049e03dacec8de6b175323f3e1be95aeb90f54 | c1c128884be20bd589342921036d4c1d82e5d480 | /man/read_NMRSTAR_file.Rd | 6c6c1fde0cfd573f25f1f157f1251c0be0476c10 | [
"BSD-3-Clause"
] | permissive | billchenxi/BaMORC | 6596d9444b163a2ef65f4c87583e2f7ff1f62d48 | 9d4beb83817fa6e08c8f669fb2cf891bfb32a699 | refs/heads/master | 2020-04-27T13:42:15.113201 | 2019-03-15T18:37:48 | 2019-03-15T18:37:48 | 174,380,290 | 2 | 0 | NOASSERTION | 2019-11-02T05:04:43 | 2019-03-07T16:22:25 | R | UTF-8 | R | false | true | 1,008 | rd | read_NMRSTAR_file.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{read_nmrstar_file}
\alias{read_nmrstar_file}
\title{Extracts data from BMRB STAR 3.0 file.
\code{read_nmrstar_file()} parses BMRB STAR 3.0 file. It will extract sequence information and chemical shifts for both alpha and beta ... |
3023d26c66de980f1bea19e12ff8777bfab92395 | 9fabf4c4f23a4c25b0d539ef442961138b8d5fdc | /man/runExample.Rd | 27baa648d10c8cf1c2813c4894418293e7d4d792 | [] | no_license | PCRuniversum/shinyMolBio | cc496699410dabf045c73fd3a2601706d31b0d7b | 6de5b243f77a81fabae1101b20d18f1f978e9e8b | refs/heads/master | 2022-06-25T15:04:09.047865 | 2020-05-07T09:37:28 | 2020-05-07T09:37:28 | 107,377,869 | 4 | 0 | null | null | null | null | UTF-8 | R | false | true | 735 | rd | runExample.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runExample.R
\name{runExample}
\alias{runExample}
\title{Run shinyMolBio Example Applications}
\usage{
runExample(example)
}
\arguments{
\item{example}{The name of the example to run, or NA (the default) to list the available examples.}
}
\de... |
57c209fc9889bbc41f713c36ebba20ae3d8f7d5b | 7206f57266b7ef6f79d9b87e726e6c387db35ef3 | /Impute.R | c1b28c438a62253aa46755687251764930442703 | [] | no_license | MatthewALanham/URBA2 | a78a1ac5e5042fe7e2c08e5c348296655cf988e7 | 98bccec5550772cc2af2185bd7be74501c411510 | refs/heads/master | 2020-05-17T06:59:01.190699 | 2015-02-25T17:15:42 | 2015-02-25T17:15:42 | 31,308,610 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,868 | r | Impute.R | ########################################################################
# Missing value imputation
# This function wraps the 'VIM' package's imputation techniques into one
# function that a user can use by specifying only two inputs
# 1) dataSetName
# 2) ImputeTechnique (kNN, median, hotdeck, irmi, regression)
# 3) A... |
6fba38c448c1292f4422eb2ec632c2159d053d83 | cbf10668bc271a33450f2813ec3f54feb6c26333 | /R/00-pairedStat.R | bf48367c442650e7b00ef58e838ec7a173bb28d7 | [] | no_license | cran/NewmanOmics | 06ef10a2550ed80a68cea5c1ef7e2129c97695aa | 3ce614e1e23a20b4304587925284aafce864c2ec | refs/heads/master | 2022-07-11T00:25:30.060241 | 2022-05-18T12:20:07 | 2022-05-18T12:20:07 | 236,631,708 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,363 | r | 00-pairedStat.R | setClass("NewmanPaired",
slots = c(
nu.statistics = "matrix",
p.values = "matrix",
pairedMean = "matrix",
difference = "matrix",
smoothSD = "matrix")
)
validNewmanPair <- function(object) {
all((dim(object@nu.statistics) == dim(object@p.values... |
eab419dbe6095efde90d6ea1f5e0293927762edc | 046e85ba3cd211e356278a30650199809e7cba67 | /PhotoProcessing_24Sep.R | e7557cce3aef1dea836cdef25b151525303a1b8d | [] | no_license | jwilli038/GradSchool | 462f1074c2cb3d10c731080f04ee67c54aed6e85 | 6cd98892956a1d0f515e8a598308cffa67f7708e | refs/heads/master | 2023-01-28T18:47:05.265618 | 2023-01-09T01:45:37 | 2023-01-09T01:45:37 | 150,174,270 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,475 | r | PhotoProcessing_24Sep.R | # Daubechies Image (DWT)
data(dau)
par(mfrow=c(1,1), pty="s")
image(dau, col=rainbow(128))
sum(dau^2)
dau.dwt <- dwt.2d(dau, "d4", 3)
plot.dwt.2d(dau.dwt)
sum(plot.dwt.2d(dau.dwt, plot=FALSE)^2)
## Xbox image (Reconstruction using wavelets)
data(xbox)
xbox.dwt <- dwt.2d(xbox, "haar", 3)
par(mfrow=c(1,1), p... |
6d87714596b7c9d887fc1afb53abb3e08ea2ae8b | 149783948019828de27a1830bd103acc233967b5 | /man/my_dmvn.Rd | aa4638ef84c134363d2a95e755bdc8ea8cf2b5c1 | [] | no_license | Karagul/copulafa | 10698d306815702aa62e51509f1eacdc7d23a02d | 7c2b9af54972cd5483dcba336528110429da5bf3 | refs/heads/master | 2020-06-02T05:36:35.809114 | 2019-02-22T12:04:24 | 2019-02-22T12:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 631 | rd | my_dmvn.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my_dmvn.R
\name{my_dmvn}
\alias{my_dmvn}
\title{Calculate the density}
\usage{
my_dmvn(my_vec, l, logl)
}
\arguments{
\item{my_vec}{numeric vector. First \code{l} values represent the
observations, the next \code{l} values represent the predi... |
cf93b449eed1cdfff92f7ad705b6055955c722e0 | d0cc0897a6a34a064588001b1aae74839c85ba23 | /R/CheckAbnChr.R | 56c80784339a3bb2cc4dc9e73defeacf7150866a | [] | no_license | rxseadew/iPsychCNV | 5d32ab6587f69d18558da9a7c70e764f2019ec6d | 1c8fa20a6440fa686917ddabbac57d13007fa44e | refs/heads/master | 2022-04-07T07:22:34.497169 | 2017-06-27T11:59:19 | 2017-06-27T11:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,972 | r | CheckAbnChr.R | ##' CheckAbnChr: Estimate abnormal chromosome.
##'
##' Specifically designed to reduce false positive CNVs and handle data from amplified DNA on dried blood spots.
##' @title CheckAbnChr
##' @param Path2RawFiles: Path for the Log R Ratio (LRR) and B Allele Frequency (BAF) files. Example: "/media/NeoScreen/NeSc_home/ILM... |
9956f1a44d81e0957c90aa53ed340b9658e3c988 | 3f927ad080842bcf0469654fb980d7100cf73b77 | /Swiper/server.R | a3cbdfdf5db3bcf7affde917e4d936f3050ebfce | [] | no_license | TheHuessy/Culler | 6564c705a5fae61737e4bc42aa356a5c5db019de | 361e472b5629ecef138738e0e240bef571ba9ec4 | refs/heads/master | 2023-04-16T09:08:05.968130 | 2021-04-29T15:25:10 | 2021-04-29T15:25:10 | 295,886,772 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,819 | r | server.R | library(shiny)
library(shinysense)
library(magick)
library(DBI)
library(RPostgreSQL)
library(yaml)
library(tools)
library(httr)
## For the logs
the_date <- format(Sys.time(), "%Y-%m-%d:%H:%M")
print(the_date)
##############
creds_path <<- Sys.getenv('CREDS_PATH')
if (nchar(creds_path) <= 0) {
pr... |
2452cd4d06f2ccfff0192db96d36b12945a21a39 | 0a9b010c4e36a2beffa730405a5977ce8588b61e | /R/drive.options.test.r | a008964de09a1cad1c2410ea4cf518c2f93e6baa | [] | no_license | 1beb/RGoogleDrive | 3ce2f26d106368686376247f8ac420f9e6fae2d5 | 2fb7cc50ca234fb76d127ce00b1a443ca08cf6ba | refs/heads/master | 2020-04-05T22:54:36.678404 | 2015-03-11T16:51:52 | 2015-03-11T16:51:52 | 14,985,867 | 3 | 3 | null | 2015-03-11T16:49:47 | 2013-12-06T15:17:25 | R | UTF-8 | R | false | false | 752 | r | drive.options.test.r | #' Tests if RGoogleDrive options are set
#'
#' Tests if RGoogleDrive options are set and if not, tells you which one has not been set.
#'
#' @export drive.options.test
drive.options.test <- function() {
any.not.set <- any(
is.null(getOption("drive.app")),
is.null(getOption("drive.secret")),
is.nul... |
d5b977392aa3fd503479797ca30fb45ac0c626c5 | 34030f0476a96d696c7a2843b98c80a778e5ce69 | /man/FamModelFit.Rd | efcd6df2ad7dbcef740acce91debf12e27067250 | [] | no_license | kinnamon-lab/FamModel | 536c2ea41b954b38e02836b600a53f890728b460 | d95e8559b9ef8d51d09562cff0bfd347a866e655 | refs/heads/master | 2023-04-14T07:46:28.209784 | 2021-04-19T13:24:59 | 2021-04-19T13:24:59 | 180,372,608 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,435 | rd | FamModelFit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FamModelFit.R
\name{FamModelFit}
\alias{FamModelFit}
\title{Abstract class for results of a fitted \code{FamModel} model}
\description{
An abstract R6 class defining the pattern for all \code{FamModelFit}
subclasses created by fitting a model... |
fbf69eeca284c7ebbad59613aaffd07b48bbb0e8 | 31bcd33e7d1d3d80840ab31420b2f2b90e69ab70 | /Exam_1/Hall_Skills_Test_1.R | 8a2f76dc8f4a68fc6eb9225dde7fa9abf1026aa0 | [] | no_license | Daltonah/Data_Course_HALL | 9aa5a2d8e6d275eab28da96fc3f6e2e9e9b91711 | b85a9d1884e7583ddf716390b7b8cdabaf965fbe | refs/heads/master | 2023-02-01T21:00:32.222539 | 2020-12-17T05:51:56 | 2020-12-17T05:51:56 | 290,382,879 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,981 | r | Hall_Skills_Test_1.R | #Load Libraries
library(tidyverse)
library(ggplot2)
library(dplyr)
#Read in the data we will be using and assign it as a data frame.
df<- read_csv("DNA_Conc_by_Extraction_Date.csv")
#Recreate Ben and Katy's histograms with labels.
hist(df$DNA_Concentration_Katy,main="DNA Concentration Histogram",xlab = "Katy's DNA Co... |
817ffb2d6883fa61dff9eb0244499a5a7369b345 | 897e7a6542bf5b0275505c179250ec9d48764fcd | /HW6/src.R | ea513a382f79e4ab9f62cdcbae22d19ae939131d | [
"MIT"
] | permissive | goldsail/BayesianHomework | 405501e9507dfd99445529adaf92afda098b2407 | d5506faccbf4d0b7b696c7c2bcb42d020bb0d357 | refs/heads/master | 2020-03-21T08:02:42.234503 | 2018-06-22T15:01:41 | 2019-07-30T15:30:55 | 138,315,780 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,290 | r | src.R | set.seed(2018)
weight <- function(x) {
return (dnorm(x, sd = sqrt(3)) / dt(x, 3))
}
for (S in c(100, 10000)) {
t = rt(S, 3)
w = unlist(lapply(t, weight))
png(sprintf("1_weight_%d.png", S), width = 640, height = 480)
hist(w, breaks = 100)
dev.off()
png(sprintf("1_log_weight_%d.png", S), width = 640... |
bc298b9db1ba310f0c31ff2d826572dedd8ece19 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sirt/examples/data.reck.Rd.R | 9c1db6fc1d56fda6f42726d9fb2ac5274ec2c714 | [] | 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 | 8,750 | r | data.reck.Rd.R | library(sirt)
### Name: data.reck
### Title: Datasets from Reckase' Book _Multidimensional Item Response
### Theory_
### Aliases: data.reck data.reck21 data.reck61DAT1 data.reck61DAT2
### data.reck73C1a data.reck73C1b data.reck75C2 data.reck78ExA
### data.reck79ExB
### Keywords: datasets
### ** Examples
## No... |
b1201eefd4044329d6754c462d2145fd5a34e1da | 7f0e3aee0dd7ea32de66f48f1cc36f4a2a144f14 | /generate_initial_networks.r | 2acd7318691819cc6e9452d91650d5d9aefa912d | [] | no_license | f-duchenne/Phenology-favors-persistence-of-mutualistic-communities | 55a744a11114ef07ef8e7300d6345bffc6424066 | 94d35f8bd45eae1d012e286481f36ff1c3bc8f71 | refs/heads/main | 2023-06-09T17:08:48.447348 | 2021-07-05T08:51:11 | 2021-07-05T08:51:11 | 373,263,253 | 0 | 0 | null | null | null | null | ISO-8859-2 | R | false | false | 2,328 | r | generate_initial_networks.r | library(truncnorm)
library(bipartite)
library(plot3D)
library(Rmpfr)
library(circular)
library(CircStats)
library(phylolm)
library(ggplot2)
library(phytools)
library(ape)
library(picante)
library(doBy)
library(phytools)
library(phylotools)
library(phangorn)
library(gridExtra)
library(doParallel)
librar... |
576f82c7a985965b7b49552411a8c8956d67f345 | ea524efd69aaa01a698112d4eb3ee4bf0db35988 | /R/test-example.R | 5b7fbc432d21299978dbdc67a0c1d047723f943f | [
"MIT"
] | permissive | r-lib/testthat | 92f317432e9e8097a5e5c21455f67563c923765f | 29018e067f87b07805e55178f387d2a04ff8311f | refs/heads/main | 2023-08-31T02:50:55.045661 | 2023-08-08T12:17:23 | 2023-08-08T12:17:23 | 295,311 | 452 | 217 | NOASSERTION | 2023-08-29T10:51:30 | 2009-09-02T12:51:44 | R | UTF-8 | R | false | false | 1,889 | r | test-example.R | #' Test package examples
#'
#' These helper functions make it easier to test the examples in a package.
#' Each example counts as one test, and it succeeds if the code runs without
#' an error. Generally, this is redundant with R CMD check, and is not
#' recommended in routine practice.
#'
#' @keywords internal
#' @par... |
e0d802afb34fc54591c93a3cd009404e942c7434 | ab6987f85e3524dc0da16f376aea9ced88967722 | /plot3.R | 09badc8f7e8bf3e7847eee12ae9cea11e6fb90fc | [] | no_license | ddgthub/ExData_Plotting1 | 346d907104c0e8e63a33c5687eba16e5390e950c | e884308fcc3aafd53fa691d435cb0ab8ebfb9d71 | refs/heads/master | 2021-01-18T17:40:24.884666 | 2014-06-07T14:56:42 | 2014-06-07T14:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,331 | r | plot3.R | ###################################################################
#### Exploratory Data Analysis - Coursera - Project 1 - Plot 3 ####
###################################################################
## Check if there is a raw data file and download it if necessary
if(!file.exists("raw_data.zip")) {
print("Dow... |
227068be6bb1704594015ed3ec209853eb9f5db0 | e5a9fb540ba9c62b9cf34999b17a0cdf4702c222 | /makeskel.R | 3b77d94dace748482b3343175f019ff56e76e612 | [] | no_license | ubiquitousidea/stat662 | 1e13065a71151dada863c7355fdf6573332f95e7 | 1404f3803f18c36b04f12df1a33f5e5930eb7028 | refs/heads/master | 2021-05-03T22:24:21.087166 | 2018-02-20T04:25:54 | 2018-02-20T04:25:54 | 120,393,249 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 216 | r | makeskel.R | # build the package skeleton
library(roxygen2)
code_file = "displaytimes.R"
source(code_file)
package.skeleton("CourseCollider",
code_files = code_file,
force = TRUE)
roxygenise()
|
e45b5ec3fe2a2e636f47cc5c87549c673484ba87 | a2175f2f375199359aca44d5e3b6815921d74f01 | /man/cookie_server.Rd | d1a73d14e1d0fea1b23ffe55c4d0455650ce027d | [] | no_license | djfunksalot/cognitoR | f4d1d23b7634091f4ade5ba2a3a59fb331adc9ce | b455c49baa6da8a470fb42107a5c493ab9d85240 | refs/heads/master | 2022-12-13T07:13:19.009142 | 2020-08-21T00:47:54 | 2020-08-21T00:47:54 | 297,429,634 | 1 | 0 | null | 2020-09-21T18:40:12 | 2020-09-21T18:40:11 | null | UTF-8 | R | false | true | 953 | rd | cookie_server.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cookie_server.R
\name{cookie_server}
\alias{cookie_server}
\title{Cookie Shiny Module Server}
\usage{
cookie_server(input, output, session, cookie_name = "user", cookie_expire = 7)
}
\arguments{
\item{input}{shiny input}
\item{output}{shiny ... |
e5aca371a5bf9ef17c20824429e22da6aeb0156d | 70dd6507c11fa1ecabe84d781e56dbd4ee93097b | /R/get_modern_co2.R | 776ca4b48541e5971629cc7bc6d17243eaa74d68 | [] | no_license | jrpriceUPS/Math160UPS | 4604d17f810be65ccd1d2cd03e294da9c345ce4f | d0ff7cec6eda8d8da860d7d4b8d6c6fe9185683d | refs/heads/master | 2023-06-09T11:55:19.386088 | 2023-06-08T18:11:25 | 2023-06-08T18:11:25 | 190,257,509 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 339 | r | get_modern_co2.R | #' Get Modern CO2
#'
#' Loads modern CO2 data from website (Penny Rowe - Polar Project)
#' @export
get_modern_co2 <- function() {
# .. Get the modern CO2 data from the NOAA website
website_co2 <- "ftp://aftp.cmdl.noaa.gov/products/trends/co2/co2_mm_mlo.txt"
modern_co2 <- try_read_url(website_co2, read_co2_url, mo... |
0ee9d66b3d5b3261f3858b397b1dfce37128a81f | 15d417ccfacf20314589ed086c0b8daa2245cc1f | /libxti/t_listen/man.r | fa5627620f90d0b07b7cfeb0209cecf6897532e9 | [] | no_license | paulohrpinheiro/tropix-libs | 17e7faf0715b104fbf6f305074de76bd1cf08fc5 | c41d33a6f95064ec6c0567a801048896be28c626 | refs/heads/master | 2021-12-03T19:21:09.621584 | 2014-11-06T17:47:26 | 2014-11-06T17:47:26 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 3,520 | r | man.r | .bp
.he 'T_LISTEN (xti)'TROPIX: Manual de Referência'T_LISTEN (xti)'
.fo 'Escrito em 27.07.92'Versão 3.0'Pag. %'
.b NOME
.in 5
.wo "t_listen -"
recebe pedidos de conexão
.br
.in
.sp
.b SINTAXE
.in 5
.(l
#include <xti.h>
int t_listen (int fd, T_CALL *call);
.)l
.in
.sp
.b DESCRIÇÃO
.in 5
A função "t_listen" recebe p... |
56bd6905df2969ef7d963133cc2bf684595aec2e | 525f2d1895f11e0e7ed15595f94d4e625c9e1c4d | /tests/testthat/test_OEIS_check.R | bcb95231524415795ece55cf96796d259448d715 | [
"MIT"
] | permissive | EnriquePH/OEIS.R | fc391284392703905154a148992e25b9dd06c389 | e9ad797dbd1e1f1529ce92dd5db085512e12a6b6 | refs/heads/master | 2023-03-17T05:48:45.987359 | 2023-03-12T13:28:38 | 2023-03-12T13:28:38 | 91,134,219 | 13 | 3 | null | null | null | null | UTF-8 | R | false | false | 353 | r | test_OEIS_check.R | id_error <- "A002000Z"
id_ok <- "A002000"
test_that("OEIS_check shows an error", {
testthat::expect_error(OEIS_check(id_error))
})
test_that("OEIS_check works", {
testthat::expect_error(OEIS_check(id_ok), NA)
})
test_that("OEIS_check returns an object of the class OEIS_ID", {
testthat::expect_identical(class(O... |
8ae2d201d2680b151ab762fbd91dbf891dc1cdb1 | a9c6f8ceabbaa9e49708d18d3495e4a88a5800bd | /bioinfo.practice/man/reexports.Rd | 00ea69dc79d1ee649b5b2722e83be5cb9f5dc1e4 | [] | no_license | ajayarunachalam/course_bioinfo_training | 20cf9bdbae0e947fcc65fc5faa08b8c0aa5e09e8 | 5f04bf80d3b158061c97d24fc7b82e6e69621144 | refs/heads/master | 2022-03-21T03:10:12.263617 | 2019-10-01T06:02:18 | 2019-10-01T06:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 462 | rd | reexports.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fasta.R
\docType{import}
\name{reexports}
\alias{reexports}
\alias{read.fasta}
\alias{base.freq}
\title{Objects exported from other packages}
\keyword{internal}
\description{
These objects are imported from other packages. Follow the links
be... |
38e0f25a05f0a58b2bf5091bada1df92e122ea1e | 6388ffa8fb0df6e4b9ab2e5a977dda03abd6dd2a | /QuizWeek3.R | 23a471c4e931f14cf27d08dc356c96443a74ed58 | [] | no_license | harbutler/datasciencecoursera | e240a3c0e9640a54a3b921a40858d920f7e746a1 | 45bbbfa2ccc0f93a26f62335fea010fe40368053 | refs/heads/master | 2021-01-15T14:32:00.402611 | 2014-09-21T21:17:40 | 2014-09-21T21:17:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 740 | r | QuizWeek3.R | library(datasets)
data(iris)
?iris
#mean of Sepal.Length for species virginca
s <- split(iris, iris$Species)
mean(s$virginica$Sepal.Length)
lapply(s$virginica,mean, na.rm = TRUE)
#vector of the means of the variables 'Sepal.Length', 'Sepal.Width', 'Petal.Length', and 'Petal.Width'
apply(iris[,1:4], 2, mean)
library... |
617ff9387a9a4dfa18d522cfc62cff033f5a8011 | 65938f7359b84cb41f0d1d5dc1ee5964bc7f6147 | /Algorithms/Regression/MultiLinear Regression/Computer Data/Computer_MultiLinear.R | 96a23f3eb28133fca79fb83e0794191f7287c046 | [] | no_license | Rashmi1404/Data-Science-R-code | d9565ad1d0fe62dfd25380b9367dd5cff17a769b | d7e1120569ba194bab7af947993e87c43eff6ef6 | refs/heads/master | 2020-12-29T14:52:21.155154 | 2020-08-07T15:17:16 | 2020-08-07T15:17:16 | 238,642,421 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,201 | r | Computer_MultiLinear.R | #Multi Linear Regression
#Predict Price of the computer
library(ggplot2)
#Lets Import the Dataset
pc <- read.csv("C:/Users/Rashmi/Desktop/Data Science/ASSIGNMENTS/multilinear/Computer_Data.csv")
pc <- pc[,-1] #Here we Remove the 1st Column as it contains Id values
attach(pc)
head(pc)
str(pc)
cor(pc[,-c(6,7,8,10)]... |
87fbe41c23cb4b6c81a4ca7c9ed8ead2c392ee73 | 326a2d966d5f46b463e6a5771e12157aa4d4ae31 | /R/gen.graph.R | 02d50aef59b9861d924b76f9d8e3e3f7595f007c | [] | no_license | frenchja/SAPATools | 7abcbb27c5b238ecd523e55065bc1d49b6520431 | 513ce15101947773c09fe26ef17dd0c8f2363688 | refs/heads/master | 2020-06-05T00:39:30.210915 | 2015-02-19T04:28:40 | 2015-02-19T04:28:40 | 10,363,871 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,167 | r | gen.graph.R | generate.scatter <- function(cor, n.obs = 500, add.text = FALSE, save = FALSE) {
# Author: Jason A. French
# Args:
# cor = List of desired correlations
# n.obs = Number of observations
# add.text = Annotate correlation to graph
# save = Save graph as PNG to current directory
n.obs <- n.obs
# ... |
a8db72c76d74d7b1a238b9c7b49e6cc737fee34a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/phenocamr/examples/daylength.Rd.R | 06009f236d0450e4bac0e5a52269a9246c329e68 | [] | 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 | 343 | r | daylength.Rd.R | library(phenocamr)
### Name: daylength
### Title: Calculates day length (in hours) and the solar elevation
### Aliases: daylength
### Keywords: ephemerids solar,
### ** Examples
## No test:
# calcualte the hours of sunlight and solar elevation on day of year 1
# and latitude 51
ephem <- daylength(1, 51)
print(eph... |
0d09db81713053468e0371b69ca60951e7690420 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.compute/man/proton_get_template_sync_config.Rd | 4330b7b05689c6c4d3303771ff539ead97330111 | [
"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 | 608 | rd | proton_get_template_sync_config.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proton_operations.R
\name{proton_get_template_sync_config}
\alias{proton_get_template_sync_config}
\title{Get detail data for a template sync configuration}
\usage{
proton_get_template_sync_config(templateName, templateType)
}
\arguments{
\it... |
fbf12a0b8327604460e56df8b9f402589a4778bf | 9ded8c1e3116b174bcc4a00b0fdab700f2f9ce3c | /R/mixture.R | 2715bbbd72f3e3feb6ec12cb6b263e7df2198d8c | [
"Apache-2.0"
] | permissive | njtierney/greta | 3bcf8d69b86caf555aac11924f3a48a1232d178c | 93aaf361c04591a0d20f73c25b6e6693023482fd | refs/heads/master | 2023-04-29T03:07:48.845793 | 2022-09-09T02:37:39 | 2022-09-09T02:37:39 | 303,113,354 | 3 | 0 | NOASSERTION | 2023-04-17T02:08:28 | 2020-10-11T12:14:11 | R | UTF-8 | R | false | false | 11,842 | r | mixture.R | #' @name mixture
#' @title mixtures of probability distributions
#'
#' @description `mixture` combines other probability distributions into a
#' single mixture distribution, either over a variable, or for fixed data.
#'
#' @param ... variable greta arrays following probability distributions (see
#' [distributions()... |
f3a69931ce9edba0a51e165dccfcbdd1b1b14a0a | 320ddefc84d992475db8b83befde46e2b780314f | /R/Kullback.R | bee304319ea1e80ee9721cd92276edb3aa9d06c2 | [] | no_license | cran/asbio | bca146e402058cd67ff5fc42423cb0c0544f942b | 3cb01b7cb1a8dec60a5f809f91bc460a6566954d | refs/heads/master | 2023-08-31T23:43:08.304864 | 2023-08-20T02:22:36 | 2023-08-20T04:30:48 | 17,694,492 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,239 | r | Kullback.R | Kullback <- function(Y,X)
{
X <- factor(X)
n <- length(X)
# n.j <- as.matrix(summary(X))
n.j <- summary(X)
p <- ncol(Y)
g <- nlevels(X)
lev.X <- levels(X)
#
# Vj will contain the within-group dispersion matrices of individual groups
Vj <- vector("list", g)
log.ratios <- NA
det.V.j <- NA
# Compute |V|
V <... |
0c445963e06693d63510ee184e5d2a4b1c61df6a | fea3aca116112b1f7f0fbad2781c01d2edef213f | /libs/r/tests/testthat/test_text_fragment_dto.R | bf81a8e9895b25dd58d02765db4474c810f7f9ce | [
"MIT"
] | permissive | Scripta-Qumranica-Electronica/SQE_API_Connectors | a708c0d6f185a047bb1d47f7099abe0f2155171a | aaa9b9eb8709d4257c32ea57321a179c6b1e041a | refs/heads/main | 2022-12-28T00:19:32.576336 | 2020-10-14T09:26:48 | 2020-10-14T09:26:48 | 302,660,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 960 | r | test_text_fragment_dto.R | # Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test TextFragmentDTO")
model.instance <- TextFragmentDTO$new()
test_that("textFragmentId", {
# tests for the property `textFragmentId` (integer)
# uncomment below to test the property ... |
371e08c6772cf12c22144ac5fb716d4cc69848de | 24739a6f3be1ea9e4fc14b473a1f870de86fea8f | /KMR0218/main3.R | 7380464bf251bbbdefd78c71715027c7dbfec4c9 | [] | no_license | IrisTeng/CVEK-boot | 46483139bba153004c4f9a8c514d152004802be1 | e6a7defa34313ce6370137cdcdecfe6f37d94c89 | refs/heads/master | 2021-07-06T03:09:24.542339 | 2019-04-01T19:52:14 | 2019-04-01T19:52:14 | 114,708,834 | 3 | 1 | null | 2017-12-25T04:54:17 | 2017-12-19T02:18:57 | R | UTF-8 | R | false | false | 3,349 | r | main3.R | library(mvtnorm)
library(MASS)
library(snowfall)
library(psych)
source('./source/KernelGenerate.R')
source('./source/LooCV.R')
source('./source/gpr.R')
source('./source/util.R')
verify <-
function(temptemp){
rawData <- data
rawData[, 1] <- rawData[, 1] + rnorm(n, 0, 0.01)
res <- KernelBoot(formula, ... |
99d488dcfb00e24193623766a3e14dc29381d669 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /borrowr/inst/testfiles/matchesToCor/libFuzzer_matchesToCor/matchesToCor_valgrind_files/1609958462-test.R | 6ced99da30c9fb48dc13a30f4fd3a1def0407bf3 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 244 | r | 1609958462-test.R | testlist <- list(x = structure(c(1.25160412001172e-308, -Inf, -Inf, 1.25214515436931e-308, 8.27634313663787e-317, 2.70270605950211e+257, 1.02078771303499e+258 ), .Dim = c(7L, 1L)))
result <- do.call(borrowr:::matchesToCor,testlist)
str(result) |
964b1cea8415026529f715d0223d47fc3cf65806 | 9b13fa9aa2ea7ddb9f3bf5900b322d06771d2932 | /Q8.R | 94bac76123c4e0d61066659e5aaf9e8f95cd5c1f | [] | no_license | driegert/stat854project | 405eabaa5011c898ff6bf245772d5c111a65cd95 | 6004fd28f22fb271fccee0676ee5a3edb2c86f3e | refs/heads/master | 2021-01-23T07:16:05.664165 | 2012-05-29T14:41:13 | 2012-05-29T14:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 507 | r | Q8.R | # Question 8
#############
# This function ONLY works for an AR2 ...
# I probably should have generalized it.
Q8 <- function(y.t, phi){
N <- length(y.t)
M <- 2^(floor(log2(N)) + 2)
est <- mt( y.t, N = N, NW = 10, K = 20 )
f <- seq(0, 1/(2*10), 1/(10*M))
corr <- 1 - (2*phi[1]*cos(2*pi*f)) - (2*phi[2]*cos... |
406e6eeeec51b4c07a134c20e040eb0dd23a1953 | a4909a7ff2801276c55b597f117c3afad6422424 | /2011MC04_Assignment_5/Q2.1.R | 898432385bcda8ac012f6295adcbb69f1d2e99b0 | [] | no_license | Avinash531997/Simulation-with-R- | bc962aa91b66ab677773e8a400108d9d9364f106 | 86cc5284103d205e5ed9ff68e39ff6771e05a3d1 | refs/heads/main | 2023-04-01T23:04:17.908538 | 2021-04-03T17:34:55 | 2021-04-03T17:34:55 | 342,793,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 861 | r | Q2.1.R | #2011MC04
#Avinash Singh
n = 5000
x =numeric(0)
X1 =numeric(0)
X2 =numeric(0)
Sample_Generation <- function(){
for(i in 1:n){
u = runif(1)
x[i] <- u
}
return(x)
}
Generated_Data1 <- Sample_Generation()
options(max.print=999999)
print(Generated_Data1)
Generated_Data2 <- Sample_Generat... |
2d24a7e2f0161aad733fe3272c805a4e1d12aa00 | 5dba9ec7bfa32fd4b2c0e24dd2a00e1663e75429 | /data/functions/find_vertex_based_on_centroid_function.R | a33dfc039368a0dc63952ac461dd558fa1ead774 | [] | no_license | JRunnebaum/habitat_overlap | 2a0086d15062e3b3647e3be0e37d14d1676a39f3 | de764e7c8d6b03ebfc2dd0f1158765cfc48f96b6 | refs/heads/master | 2022-03-12T14:35:24.860140 | 2019-11-11T13:18:33 | 2019-11-11T13:18:33 | 175,312,771 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 892 | r | find_vertex_based_on_centroid_function.R | #find the corners of the grid
find_vertex_based_on_centroid = function(x, lon.length = 0.05, lat.width = 0.05) {
#this function is only for finding vertex of a square based on its centroid
#x, longitude/latitude of the center points,
#which must be a matrix or data frame of 2 columns(first one is lon, second is ... |
9e92aefaad2adb7706b44c32b2ac56808fed1330 | b7ea8c0a96aedca03fd24d0548d3a0274db50fc4 | /affair.R | 99aba28e217c354bfc57589edce2a0b35ea74d51 | [] | no_license | aksaannamathew/Logistic- | 49a56221c27bda0c6cd2184475e28efca545f419 | 5fe765aa8346d8ad3bdad4031032fea1a3d3941e | refs/heads/master | 2022-12-26T09:29:46.436473 | 2020-09-03T00:03:29 | 2020-09-03T00:03:29 | 276,342,059 | 0 | 1 | null | 2020-10-01T05:24:01 | 2020-07-01T10:00:56 | R | UTF-8 | R | false | false | 2,429 | r | affair.R | install.packages("readr")
library(readr)
install.packages("ROSE")
library(ROSE)
install.packages("ROCR")
library(ROCR)
aff <- read.csv("C:\\Users\\91755\\Desktop\\Assignment\\8 - Logistic\\Logistic regression\\affairs.csv")
attach(aff)
View(aff)
sum(is.na(aff$affairs)) #no missing values
str(aff)
summary... |
181750ee4a819ca4a0b388a482ff590d476c2625 | 639b2aeb9de96fa6ef5053804c12fc0eab12cd44 | /run_analysis.R | 1c6058bb05e8ba940d20361ec01435f5c649a65d | [] | no_license | sbanerj3/GettingandCleaningData | 67ba705e109c5d30bf5e98f14d6ef85bea720241 | 25bb4d5b1824b33f0c5908647b0cf547fbe496f3 | refs/heads/master | 2021-01-15T21:44:35.784881 | 2015-08-22T01:21:17 | 2015-08-22T01:21:17 | 41,180,026 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,229 | r | run_analysis.R |
#loading Features and Test files in R
Features <- read.table("./UCI HAR Dataset/features.txt",sep=' ', header=F,fill=T)
Test <- read.table("./UCI HAR Dataset/test/X_test.txt", header=F,fill=T)
#using the Features file to change the column names for Test file
names(Test) <- Features[,2]
#loading Activity and Subje... |
a1f7c3748bf79823d0744632f4d78fe86ecbda43 | 6c498ad3e5c3b97cc4c8cb6a26b9c15d68d6a933 | /r/R/model_predict.r | 5e650dfe3cf81e5ca5187972a895c930ae29bf56 | [] | no_license | ModelOriented/weles | 6b327dcf4c97f0a2df637fed3b28a7bfb48aea1b | 2b76fb0ed6b42c0395426eebdb8fcb9765dc43e7 | refs/heads/master | 2020-07-27T09:06:29.253125 | 2019-11-30T14:08:21 | 2019-11-30T14:08:21 | 209,040,281 | 9 | 4 | null | 2019-09-18T14:55:07 | 2019-09-17T11:53:01 | HTML | UTF-8 | R | false | false | 2,349 | r | model_predict.r | #' @title Make a prediction using weles model
#'
#' @description
#' This tool allows you to make a prediction with model in weles.
#'
#' @param model_name name of the model in weles
#' @param X data to make a prediction of, must have named columns, may be path to *.csv* file (must contatin **/** sign) or *hash* of alre... |
21899f61764645156bf45c63ae2f0f6ece2042f4 | 8cd909e0f66fb5119f63b81528f0d7dd4f96bac4 | /R/1_data_import.R | 1845980685a1c49eb803d4af8e7959a1139b8351 | [] | no_license | strnda/hydrological_modelling | 360257c81a2338ca1cd96b2e7272e8f75e231b79 | d09f78c95c7ca6427ad360f72582d1ed8e4969c6 | refs/heads/master | 2021-04-29T21:19:59.815272 | 2021-02-11T18:55:57 | 2021-02-11T18:55:57 | 121,613,038 | 2 | 4 | null | null | null | null | UTF-8 | R | false | false | 759 | r | 1_data_import.R | source('R/aux_fun/aux_functions.R')
lop <- c('data.table', 'ggplot2', 'DEoptim', 'AMORE', 'Rcpp')
to.instal <- lop[which(!lop %in% installed.packages()[,'Package'])]
if(length(to.instal) != 0) install.packages(to.instal)
temp <- lapply(lop, library, character.only = T)
rm(temp)
id <- '04201500'
dta <- as.data.tab... |
2e92417ab8bda659b37183af3e7bcb4d9a76ad74 | 58759b651f5db231a118875eb0a7fba2a236a995 | /man/summarise_case_forecast.Rd | 77bf9a969536ba395036ec516674bedec274aee8 | [
"MIT"
] | permissive | epiforecasts/EpiSoon | 565223d175a749391cb9ca41f298c50634861f5a | d8eb427000f403ca09543ce9eab54c35855256a1 | refs/heads/main | 2023-07-20T14:46:29.266919 | 2023-03-03T15:31:23 | 2023-03-03T15:31:23 | 248,311,916 | 6 | 6 | NOASSERTION | 2023-07-14T14:05:10 | 2020-03-18T18:29:07 | HTML | UTF-8 | R | false | true | 889 | rd | summarise_case_forecast.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarise.R
\name{summarise_case_forecast}
\alias{summarise_case_forecast}
\title{Summarise Forecast Cases}
\usage{
summarise_case_forecast(pred_cases)
}
\arguments{
\item{pred_cases}{A dataframe as produced by \code{EpiSoon::forecast_cases}.... |
47e4e97b21304c6cbf78ddcb33f692fa0497e5a5 | 31ba946940e6da0cf05cfe91ac6beb6dd5cd2df8 | /R/overlapping.R | 5179fea1f4869cfc23982e513e94586574d2e92f | [
"MIT"
] | permissive | CodingLifeV/ImbCoL | 03b70a62b61fc274c7ba359385201f8cfca7a400 | be7682f1a4b9cbcecdf419f652de49d0fb95329f | refs/heads/master | 2023-06-14T10:48:11.263970 | 2021-05-14T20:21:06 | 2021-05-14T20:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,393 | r | overlapping.R | #' Measures of overlapping
#'
#' Classification task. The overlapping measures evaluate how informative the
#' available features are to separate the classes. If there is at least one very
#' discriminative feature in the dataset, the problem can be considered simpler
#' than if there is no such an attribute.
#'
#' ... |
45d21da255ea88a23273dabd3692f36c55ed3aed | 5a5bc9e1b0d59859b4e213b092e19afe232819e1 | /R/wind/wind_downscale2_orig.R | 45492a6b167f93633d378775dc1ed70ad9c92b7b | [] | no_license | jrmosedale/microclimates | bf469e07b688e9342c0a8d767db84ee428e778f3 | ae2e61969631506c523bd618c9106a61b00355dd | refs/heads/master | 2021-04-30T15:18:19.091728 | 2018-02-12T11:31:16 | 2018-02-12T11:31:16 | 121,236,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,297 | r | wind_downscale2_orig.R | library(ncdf4)
library(raster)
library(rgdal)
# Function for computing Julian data
# In this instance just used to work out number of days after 1st Jan 1950,
# so that correct element of array can be extracted
# Inputs:
# day: the day of the month (0-31)
# month: the month of the year (numeric: 0-12)
# ... |
30ca6cc11cba520e95752d32c0cd87e8a1c5bf69 | 66fac4228a78eb2d8c59a136ee8dd82636f4b3c4 | /plot4.R | ffa338137d60601855666f3f0bd335724376babd | [] | no_license | MohamedAMKamal/Assignement2- | 985f0c8b581ba19e3c1b03995b91bb4a51d77dad | 8bef431370c2013005b7259ff611553d0a9707ae | refs/heads/master | 2022-11-07T03:02:48.872587 | 2020-06-21T06:17:06 | 2020-06-21T06:17:06 | 273,845,923 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,108 | r | plot4.R | plot4 <- function(...){
library(dplyr)
library(data.table)
library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
SCC$SCC <- as.character(SCC$SCC)
NEI_SCC <- left_join(NEI, SCC, by="SCC")
NEI_SCC <- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.