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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d32b5c3643743c353d9bb8823c333fc23ef0942 | 912886d0fe7a726f4946ef38395a5bfbf9e58f13 | /R/cv.gsvcm.R | 93073fdaba82bee74c185b27a2fa05f6e13eecdf | [] | no_license | FIRST-Data-Lab/gsvcm | 533f31bbfa5d53471f1c3e2d2ece6aac043055b1 | afa07506d94fee523b9db623ad747bf03fdc3914 | refs/heads/master | 2022-07-04T10:04:37.039922 | 2020-05-08T17:57:16 | 2020-05-08T17:57:16 | 262,356,872 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,037 | r | cv.gsvcm.R | #' k-fold cross-validation MSPE for generalized spatially varying coefficient regression
#'
#' \code{cv.gsvcm} implements k-fold cross-validation MSPE for generalized spartially varying coefficient regression, and returns the mean squared prediction error (MSPE).
#'
#' @importFrom BPST basis
#' @param y The respon... |
041cb1c4e7edea389dacfaa56902cd6d3a361bb0 | e321702ba009728989416776a51628382542af5f | /R/readOpenArray.R | 5d83aff30ab5ed4d8df4c11736a53bf075b80d3c | [] | no_license | alexbaras/openArray | 306c3fd749248555dec2ad1be97dd21766b1e46a | 7087ce105eeffff2900e8f5ed1cc03ae01ef2629 | refs/heads/master | 2021-01-09T07:42:38.937269 | 2014-08-29T17:18:37 | 2014-08-29T17:18:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,063 | r | readOpenArray.R | readOpenArray <- function(filename, fileFormat="default") {
# read in raw data table
if (fileFormat=="default") {
d <- read.table(filename, header=TRUE, dec=".", sep=",", comment.char="")
} else if (fileFormat=="LifeTech") {
d <- read.table(filename, skip=15, header=TRUE, dec=".", sep=",", comment.char="... |
19c9c4d0acf640d422296d207f08e60fe689bc86 | 98a24df7b9453c2045376ef2114bf6af09a50418 | /sandbox/parallel-evaluation/hcsb-05-script-tpf-par.R | 6982d177bce2bf2d47de7ad5d53d00806735130e | [
"CC-BY-4.0"
] | permissive | sdufault15/case-only-crtnd | 35fe7819bffe4e426c8062c31b683615a630462c | dc5b5865de1452664a29828d25431225b2381877 | refs/heads/master | 2021-08-27T16:46:17.872236 | 2021-08-24T21:42:36 | 2021-08-24T21:42:36 | 149,684,299 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,887 | r | hcsb-05-script-tpf-par.R | ###############################
# Suzanne Dufault
# All HCSB runs for Test-Postive Fraction and Random Effects
# October 9, 2018
# Sequential
###############################
load("Random10000Allocations.RData")
dta <- subset(Random10000Allocations, select = -X)
source("lib/txtSetFunction.R")
source("lib/quadraticFunct... |
da2d1c3a751fb0e08e2f40e3c844826def1af085 | 1dda40f8a1956e68ebbe4cda8f51dd73635f23cc | /R/highlightHTMLmaster.r | 62aa05719369fa7a0d4880792e1e40493b1ea7ce | [] | no_license | cran/highlightHTML | b99f13528ef90dc18a2a9f1145e90cef54a366be | 3c17dd0bc47741be6ebb9da44af5d1a2264e9a88 | refs/heads/master | 2021-01-13T04:08:43.893134 | 2020-04-21T11:20:18 | 2020-04-21T11:20:18 | 77,862,875 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,687 | r | highlightHTMLmaster.r | #' Master highlight HTML function
#'
#' This function inputs a markdown or rmarkdown document and exports an HTML file.
#' The HTML file is then processed to search for tags that inject CSS automatically
#' into the HTML file.
#'
#' A function that allows the alteration of HTML using CSS. This may be helpful
#' com... |
4894a34a7a618f6a556c456f301930d4e8325337 | 40085e8ec7f302204d2aa460b6be1cf9cb9a3098 | /R/ListExperimentFunctions.R | 6e1b02495cd874f8625e3369d397947502aef7f5 | [] | no_license | cran/misreport | 9102430b755712998d4a05436f60a2ac01cc78c6 | b541a33492924a56171063ca0fecc933c80083ec | refs/heads/master | 2020-06-11T19:14:11.260959 | 2017-02-27T07:15:34 | 2017-02-27T07:15:34 | 75,629,243 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 98,324 | r | ListExperimentFunctions.R | #' Add two numbers
#'
#' The function \code{logAdd} adds together two numbers using their log
#' to prevent under-/over-flow
#'
#' @param x log of the first number.
#' @param y log of the second number.
#' @return Log of the sum of \code{exp(x)} and \code{exp(y)}.
#'
#' @keywords internal
logAdd <- function(lx, ly) {... |
8e1ee736c938ecda57e58eac8e15895f725bded3 | 429043e07554ff6f860fe2c6507d2670519b6b1f | /R/refactor.R | 7dc6c1faf911b59b68cb2c6496438c75240a396f | [] | no_license | nicolaroberts/nrmisc | d393402f41e5620c1ccda8f2928b5bda38650241 | ffc82d1d6192d2d80fd20f65e962c026b868ece1 | refs/heads/master | 2020-04-05T08:08:40.120753 | 2018-08-01T13:22:17 | 2018-08-01T13:22:17 | 42,860,158 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 305 | r | refactor.R | #' Refactor factor variables in a data.frame
#'
#'
#' @param df data.frame
#'
#' @return A data.frame with each factor variable re-factored (old unused levels are dropped)
#'
#' @export
#'
refactor <- function(df){
cat <- sapply(df, is.factor)
df[cat] <- lapply(df[cat], factor)
return(df)
}
|
631fd3400bb586f19c3d118d00f2b5a8e6708648 | 986b80d564588d1d702aac13e2eb24a91cacfc05 | /man/write_fitted_parameters.Rd | d609aa4272557405802b8bd1e73b30991ba9121c | [] | no_license | strathclyde-marine-resource-modelling/StrathE2E2 | 592b73968d3f19513d3fffb435916605f7c47237 | a5f5c0507e92cd8c48afc75c14bffa91d4132cc5 | refs/heads/master | 2020-05-18T06:33:23.756987 | 2019-06-20T15:43:55 | 2019-06-20T15:43:55 | 184,236,707 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 467 | rd | write_fitted_parameters.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_fitted_parameters.R
\name{write_fitted_parameters}
\alias{write_fitted_parameters}
\title{Save current set of fitted parameters to file}
\usage{
write_fitted_parameters(model, parhistory)
}
\arguments{
\item{parhistory}{parameter set hi... |
a992998522823e96047a02ca19cb2afb60d7aadc | 87760ba06690cf90166a879a88a09cd2e64f3417 | /R/modeltime-accuracy.R | e789c7c0e4d9d164f095f339513d0aa4384ac419 | [
"MIT"
] | permissive | topepo/modeltime | 1189e5fe6c86ee3a70aec0f100387a495f8add5f | bff0b3784d1d8596aa80943b221eb621481534e1 | refs/heads/master | 2022-12-27T07:11:58.979836 | 2020-10-08T16:07:27 | 2020-10-08T16:07:27 | 289,933,114 | 1 | 0 | NOASSERTION | 2020-08-24T13:17:10 | 2020-08-24T13:17:10 | null | UTF-8 | R | false | false | 6,563 | r | modeltime-accuracy.R | # MODELTIME ACCURACY ----
#' Calculate Accuracy Metrics
#'
#' This is a wrapper for `yardstick` that simplifies time series regression accuracy metric
#' calculations from a fitted `workflow` (trained workflow) or `model_fit` (trained parsnip model).
#'
#' @param object A Modeltime Table
#' @param new_data A `tibble` ... |
e643a3cda4b5f2bf612206f10a306ffae5773306 | 5c8a76902901cf21d4ae0a478469148f7686950f | /00functions/measures.R | 23cfa3d1c8ff921e1045c79b06d90effbcee09bc | [] | no_license | markvanderloo/nsnet | 35e24440e85a46c4c3cda74d7ec15ffd3ea56388 | 858155b6de42b1bcea9f06ac71b4ed058c2eb791 | refs/heads/master | 2020-03-10T04:55:59.556690 | 2018-08-10T12:02:33 | 2018-08-10T12:02:33 | 129,204,912 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,778 | r | measures.R |
#' efficiency of a graph, according to Latora (2001)
#' @param g a graph
#'
efficiency <- function(g){
n <- length(V(g))
if (n==1) return(0)
nd <- igraph::distance_table(g)$res
d <- seq_along(nd)
N <- n*(n-1)
2*sum(nd/d)/N
}
#' local efficiency of a graph, according to Latora (2001)
#' @param g, a graph
l... |
c021257eff48058c6c232195b99fd5ad90dc4fb1 | 5f93c27bf3ad41c2adbc4f2e6e56b3ff3b31cf89 | /mmm_process_code/mmm_process_functions/gen_mmm_params.R | afcd70922dd8ddcd567d17d161b564c4fcccbfbe | [] | no_license | jbischof/HPC_model | fd6726abf3130075e1354d2139212c00b04ee4b0 | 5dd2c6ae7e36e31a4a71751e38b9fe4ef88c0fcf | refs/heads/master | 2021-01-01T19:07:31.094310 | 2014-05-06T04:18:26 | 2014-05-06T04:18:41 | 2,614,499 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,014 | r | gen_mmm_params.R | # Script to generate the parameters of the MMM
gen.mmm.params <- function(nchildren,nlevels,ndocs,nwords,
psi,gamma,nu,sigma2,
eta.vec=NULL,lambda2=NULL,
Sigma=NULL,full.Sigma=FALSE,
gp="dirichlet",verbose=FALSE... |
83556f8f38443ca781410ef7c8379d062d844913 | 73a92011ba758b076352909339084935e63c85c9 | /plot4.R | 71b8196801e2c98b9fd1ca5ef186df627ea18d5c | [] | no_license | DWdapengwang/ExData_Plotting1 | dccf6171b9ad423449c1c6db02665bf437f0efe5 | 744cf9007863de778e8f552ea1066c959d7c2b9c | refs/heads/master | 2021-01-16T20:48:34.928949 | 2015-06-02T18:15:08 | 2015-06-02T18:15:08 | 36,750,566 | 0 | 0 | null | 2015-06-02T17:43:36 | 2015-06-02T17:43:35 | null | UTF-8 | R | false | false | 1,451 | r | plot4.R | ##Reading the data
data <- read.table("household_power_consumption.txt", , sep = ";", skip = 66637, nrows = 2880, col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3"))
dataf <- data.frame(data)
dataf[["Date_Ti... |
255e2458b489337aa7fdf2693a627777e6b703ec | f58d0680a57f8c62d0d10431f6a747e4b81eae19 | /tests/testthat/test-get_net_long.R | c99d14fa0d04d316dd2d10e924a3f7e50a5973df | [] | no_license | awekim/WIODnet | fc99cb1cf1272bd73ac2ee5b90e44a2901b1a638 | 07966a9e856820667ef069be4a1f19592d7be3ae | refs/heads/master | 2020-08-13T15:25:17.406570 | 2019-10-14T12:31:47 | 2019-10-14T12:31:47 | 214,992,045 | 0 | 0 | null | 2019-10-14T08:42:33 | 2019-10-14T08:42:33 | null | UTF-8 | R | false | false | 211 | r | test-get_net_long.R | test_that("obtain long network table", {
## network matrix
w2002.IO <<- get(load("./wide_IO_w2002.rda"))
mini.long <- getNetLong(w2002.IO)
expect_equal(dim(mini.long), c(6888, 3))
})
|
5d8deba20002fe3536650f99585a61da18107419 | 7af0777279264ca1b68d1a226199b0fe06b464a3 | /exemplos/lendo_dados_csv_analise_descritiva.R | 60bf0d06c9df0a6c62a42dd639d64a94f3621d2d | [] | no_license | futxicaiadatec/mini-curso-r | 388ed6c0d39c327850e988c9223ed1759c7bbe40 | 441eca58857cc00ba4e30f90f9decf1b4615e6b4 | refs/heads/master | 2021-07-05T13:42:09.454697 | 2017-09-29T01:43:43 | 2017-09-29T01:43:43 | 105,052,319 | 0 | 1 | null | null | null | null | ISO-8859-1 | R | false | false | 602 | r | lendo_dados_csv_analise_descritiva.R | planilha=read.csv('dados.csv',header=TRUE,sep=',',dec='.')
temperatura = planilha$T_z1 #extraindo um vetor de dados (temperatura) a partir da coluna T_z1
minT = min(temperatura) #valor mínimo no vetor temperatura
maxT = max(temperatura) #valor máximo no vetor temperatura
meanT = mean(temperatura) ... |
e21361210c2deef12bf5da83f8813f3d584a4d02 | 26c7e13e0e52e7dab57f9e92b167b91a00760f05 | /plot2.R | 4e9b712b1e2e05cb11af950e63834886ea467005 | [] | no_license | aruneema/ExData_Plotting1 | e04d819a2717ffa32011ee8724e18780db3b5ec1 | c1417217165cb072fec4136b0292adca694ebd06 | refs/heads/master | 2021-01-15T18:41:47.054326 | 2014-08-08T05:38:01 | 2014-08-08T05:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 583 | r | plot2.R | ## Getting full dataset
data_full <- read.csv("household_power_consumption.txt", sep=';', na.strings="?", nrows=2075259)
data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y")
## Subsetting the data
data <- subset(data_full, subset=(Date >= "2007-02-01" & Date <= "2007-02-02"))
## Converting dates
datetime <- p... |
efb6ed1b08d9caf0143cbe9c49e3da6a809ac053 | d7ff71e8ffb07419aad458fb2114a752c5bf562c | /tests/testthat/test-public_api-0.R | e0d46f1050469e6c3736fea0d87634632dc098cd | [
"MIT"
] | permissive | r-lib/styler | 50dcfe2a0039bae686518959d14fa2d8a3c2a50b | ca400ad869c6bc69aacb2f18ec0ffae8a195f811 | refs/heads/main | 2023-08-24T20:27:37.511727 | 2023-08-22T13:27:51 | 2023-08-22T13:27:51 | 81,366,413 | 634 | 79 | NOASSERTION | 2023-09-11T08:24:43 | 2017-02-08T19:16:37 | R | UTF-8 | R | false | false | 2,433 | r | test-public_api-0.R | test_that("styler can style package", {
capture_output(expect_false({
styled <- style_pkg(testthat_file("public-api", "xyzpackage"))
any(styled$changed)
}))
})
test_that("styler can style package and exclude some directories", {
capture_output(
styled <- style_pkg(testthat_file("public-api", "xyzpack... |
444fc8682ddc5be83e74f04b572996985f524874 | fab43c4a98e556b83716ab892f3479c9720dc866 | /RiskMap/R/plotRisk.R | 9ce924caecccbc2932ad7a3b31a0e45f2eec596d | [] | no_license | bvanhezewijk/DynamicRiskMap | a8e3ef15cf334463c6e98f825cd3495e52a022be | 2684402e7c3dd39de5285366ac8039d7d3a22af1 | refs/heads/master | 2021-01-21T10:59:44.470862 | 2018-01-30T21:35:21 | 2018-01-30T21:35:21 | 83,509,927 | 0 | 0 | null | 2017-03-01T04:26:24 | 2017-03-01T04:03:30 | null | UTF-8 | R | false | false | 9,182 | r | plotRisk.R | # plotRisk()
# Function to create risk raster for each data layer
# Agruments: projectList
# KSchurmann March 10, 2017
#
## for layers plot - color scale not same for each layer
#
#' Plotting total risk
#'
#' Plots region showing total risk. Shows subregion map of total risk,
#' google map and risk of indivi... |
1bb02b7e43fc9a9fed1af9798d21465266908bd9 | 3c14ce20f358d8382395a2ddc4bc3e06001624cf | /man/cf.Rd | d1ee60428cb8e18294a4aca42786d8a3d1643acb | [] | no_license | pittlerf/hadron | 1900fb27a6382227036c02c9e70032f95f12ef1c | 281becdebc1551d2ac520b68ca6520eff8dfceed | refs/heads/master | 2022-03-08T14:52:23.194120 | 2018-12-22T07:34:14 | 2018-12-22T07:34:14 | 146,309,078 | 0 | 0 | null | 2018-08-27T14:29:20 | 2018-08-27T14:29:19 | null | UTF-8 | R | false | true | 1,119 | rd | cf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cf.R
\name{cf}
\alias{cf}
\title{Correlation function container}
\usage{
cf()
}
\description{
This function \code{cf()} creates containers for correlation functions
of class \code{cf}. This class is particularly designed to deal with
correlat... |
8c7de242e70b4923c92ea1845e82a78190e527e6 | 69766ac65a6c48196d9340f1b6d661baa13ecefd | /test/0511.R | 4496dbe63430f0b72544ceb0913e994e63d6eedd | [] | no_license | JamesYeh2017/R | 0944abc42dded45f531ded2cae40560b0227de47 | dcae81f1169582eae54cb4b0ee9706781eacb460 | refs/heads/master | 2021-06-20T23:24:25.889671 | 2017-08-14T13:42:22 | 2017-08-14T13:42:22 | 90,741,993 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,032 | r | 0511.R | getwd()
setwd("./data/")
match_txt = read.table("./match.txt" ,header = FALSE, sep="|")
match_txt
match_fun = function(match_txt=read.table("./match.txt" ,header = FALSE, sep="|")){
mat = matrix(rep(-1,length(levels(match_txt[i,1]))^2), nrow=5)
#return(mat)
#rownames(mat) = c("A","B","C","D","E")
#colnames(ma... |
c6e97ef10a8b1a3123d6071a4504114f6e74dd03 | 4df2640f0b6503bab3a21482013581258f957325 | /Wegan/src/main/webapp/resources/rscripts/metaboanalystr/general_load_libs.R | 23771c42ae06781aa6f44e921015db23ab094295 | [] | no_license | Sam-Stuart/WeganTest | c7223b9286af7559aa03520982dcbfde3da93923 | 5dd591c40df6e2a89c0f3b0ca41f759f4d17787e | refs/heads/master | 2022-04-08T11:12:29.355917 | 2020-03-13T20:20:06 | 2020-03-13T20:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,238 | r | general_load_libs.R | # Load lattice, necessary for power analysis
load_lattice <- function(){
suppressMessages(library(lattice))
}
# Load igraph, necessary for network analysis
load_igraph <- function(){
suppressMessages(library(igraph))
}
# Load reshape, necessary for graphics
load_reshape <- function(){
suppressMessages(library(r... |
7e4249fa8106ba1d420f5b8160aff8e6a683b400 | ac7209e01bd00ae436fc0c691c3dc164a3a00c42 | /upscale_disconnections/run_tests.R | 72bd8454e5111225f79acd9996313cdb129db9aa | [
"MIT"
] | permissive | Taru-AEMO/DER_disturbance_analysis | 8408eeb9b74847e6dc1bd6de725e10682a95ca8d | 2df8b2f469c3f05a010100cd567db25e42415678 | refs/heads/master | 2021-09-20T07:37:50.683738 | 2021-09-17T00:06:14 | 2021-09-17T00:06:14 | 162,227,323 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 95 | r | run_tests.R | library(testthat)
source("load_tool_environment.R")
test_dir("upscale_disconnections/tests")
|
1cae18402867d8b687586e12daf60175e8b2367d | c5c850791e054f5e4bcc559abf9fb71c22b79e80 | /R/bootPair2.R | d2fefc2875e9e758e57575a41389b4990942ffaa | [] | no_license | cran/generalCorr | 3412664373559d8f03d0b668bb6a5b6bdac40f2b | 6a26d66ddee3b518f34a64d25fdaa5e13a5a45a1 | refs/heads/master | 2023-08-31T09:59:03.135328 | 2023-08-16T16:24:36 | 2023-08-16T18:30:25 | 57,865,966 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,355 | r | bootPair2.R | #' Compute matrix of n999 rows and p-1 columns of bootstrap `sum'
#' (scores from Cr1 to Cr3).
#'
#' The `2' in the name of the function suggests a second implementation of `bootPair,'
#' where exact stochastic dominance, decileVote, and momentVote are used.
#' Maximum entropy bootstrap (meboot) package is used ... |
968c3edc838329f7956e69239c30cb39f09b0626 | 379b0d997ecfd40bc353db9abf5d3652929f36cc | /kmeans_cluster.R | 33485d00d9356f94efe4c534e6fafec3da652e52 | [] | no_license | Broccolito/kmeans_clustering | 1060dec3b7d4fbab8b6e3ea4b2798c3714fc6491 | be90c676c91594e4cdb9762df0ebfeb8d7b6e8e6 | refs/heads/master | 2020-06-16T06:38:26.793103 | 2019-07-06T06:06:13 | 2019-07-06T06:06:13 | 195,504,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,522 | r | kmeans_cluster.R | kmeans_cluster = function(x, y, n, graphic = TRUE){
# Define distance function
distance = function(point1, point2){
return(((point1[1] - point2[1]) ^ 2 + (point1[2] - point2[2]) ^ 2)^ 0.5)
}
# Setup pointset
pointset = cbind(x,y)
for(it in 1:100){
# Starting position of two... |
1bdd7a2ddc1babef048fb14fb3545b3be3e36f18 | e00fff4abb7dad3a49a12bc17900bad3435398b8 | /man/PredictionsBarplot.Rd | 67110e75eefb663d2e888556cbbe715f5f6b54a1 | [] | no_license | bhklab/MM2S | ea5a9a97cb9947b0aa6e0bdab12a7890efcdb6c6 | 4085384eb38f60603b0f12c2db234c59290b8c5d | refs/heads/master | 2021-12-31T08:46:20.585192 | 2021-12-14T21:27:42 | 2021-12-14T21:27:42 | 37,701,292 | 0 | 1 | null | 2015-06-19T04:21:07 | 2015-06-19T04:21:07 | null | UTF-8 | R | false | false | 1,965 | rd | PredictionsBarplot.Rd | \name{PredictionsBarplot}
\alias{PredictionsBarplot}
\title{
Stacked Barplot of MM2S Subtype Predictions for Given Samples
}
\description{
This function generates a stacked barplot of MM2S subtype predictions for samples of interest.
Users are provided the option to save this heatmap as a PDF file.
}
\usage{... |
e4787c390ef331044aa84155932ea86bcda5c527 | fbe57536cc2d84e69a5bf799c88fcb784e853558 | /R/unitconversion.siprefix.deka.to.base.R | 340503717d3413adb64fd1b7b15ca8a2a64da267 | [
"MIT"
] | permissive | burrm/lolcat | 78edf19886fffc02e922b061ce346fdf0ee2c80f | abd3915791d7e63f3827ccb10b1b0895aafd1e38 | refs/heads/master | 2023-04-02T11:27:58.636616 | 2023-03-24T02:33:34 | 2023-03-24T02:33:34 | 49,685,593 | 5 | 2 | null | 2016-10-21T05:14:49 | 2016-01-15T00:56:55 | R | UTF-8 | R | false | false | 7,040 | r | unitconversion.siprefix.deka.to.base.R | #' Unit Conversion - SI Prefixes - Deka- to Base
#'
#' Deka- tens, 10, or 10^1
#'
#' Performs a conversion from deka-units to base units (ex. dekagrams to grams).
#'
#' @param x Vector - Values in units of deka-units
#'
#' @return x, but converted to base units
#'
#' @references
#' NIST. Metric (SI) Prefixes. 202... |
39ba44c4835d307af210b31a8e7a00d7e93c6195 | fb8a11ec829b5ce524158608ca7ff02d03354ea2 | /R/cum_hist.R | 078ce74e4b649dc41ad04595cd863881455265e4 | [] | no_license | pacoalonso/alonsaRp | 840461cc444d6767408303d9829ac49f49218e4e | 14df264ed8d7b0e66f58e84c01da9050367d9e95 | refs/heads/master | 2022-02-09T21:24:31.219260 | 2020-05-09T19:59:48 | 2020-05-09T19:59:48 | 233,576,698 | 0 | 1 | null | 2020-02-13T22:56:47 | 2020-01-13T11:08:27 | R | UTF-8 | R | false | false | 810 | r | cum_hist.R | #' Función para hacer histogramas acumulados
#'
#' @param x Vector of values
#' @param probability If TRUE shows probability instead of frequency
#' @param xlab Etiqueta para el eje de abcisas
#' @param ylab Etiqueta para el eje de ordenadas
#' @param main Tïtulo principal
#'
#'
#' @export
#'
cumHist <- function(x, pro... |
009fbe5325aa574ea03dfa99d21d1dd57eec9102 | 4771e621e79287a22331ebd650cf81185cbf9fed | /Warton_2011_analysis_of_proportions_in_ecology/glmmeg.R | 10591735ca724bb6608338f95b582c49ecd87cae | [] | no_license | bniebuhr/learning-stats | 085e394a91983348e382901c7829aeabd9648e07 | 1ff502d8c8089c93e622d39d29c982cb92136e9a | refs/heads/master | 2022-10-12T23:53:22.401435 | 2020-06-08T07:17:20 | 2020-06-08T07:17:20 | 270,564,638 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 7,132 | r | glmmeg.R | ## glmmeg.R: R code demonstrating how to fit a logistic regression model, with a random intercept term, to randomly generated overdispersed binomial data.
## David I. Warton and Francis K. C. Hui
## School of Mathematics and Statistics
## The University of New South Wales
## Last modified: 27/7/10
## Some brief deta... |
284564395488a11945f2736898f741f22a42ba17 | 3a666fae684fd17095328e2972e367e7d596c925 | /week8/code/Models.R | b1fd7db77f7f181cd9a88b370ce8a29262b32148 | [] | no_license | emmadeeks/CMEECourseWork | 65a9628626a8216f622fa6fd3043086814729f71 | c21dd8545930ef50c3ceef5a4d4a1d6d92a2786b | refs/heads/master | 2021-07-12T09:36:33.989736 | 2020-10-20T15:23:59 | 2020-10-20T15:23:59 | 212,302,148 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,908 | r | Models.R | rm(list=ls()) #Clear global environment
#Set working directory
setwd("/Users/emmadeeks/Desktop/CMEECourseWork/week8/data")
# Get thee required packages
require('minpack.lm')
#Explore the data
data <- read.csv('modified_CRat.csv')
head(data)
<<<<<<< HEAD
#Subset data with a nice looking curve to model with
Data... |
01f2602b4ba3f4839bf2e908cfc575c26d89cf1c | faea5910e781dbefb973a76350ee7c9bd72548a4 | /07_eda.R | d3201c06d1cb7c6e927503ac6537b9dd52614339 | [] | no_license | lwawrowski/googlenews | ddaec3f2e63cb81436599692223adeaddde8c12e | beba5aa3620e5b6a07896e9ddd90322cc1d7f2a2 | refs/heads/master | 2020-07-04T06:43:10.647162 | 2020-01-16T17:37:47 | 2020-01-16T17:37:47 | 202,191,296 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 604 | r | 07_eda.R | library(tidyverse)
load("data/googlenews.RData")
googlenews %>%
count(name) %>%
top_n(10, n) %>%
mutate(name=fct_reorder(name, n)) %>%
ggplot(aes(x=name, y=n)) +
geom_col() +
coord_flip()
author_count <- googlenews %>%
count(author)
library(lubridate)
googlenews <- googlenews %>%
mutate(p... |
1a41b01b966f489ba6ebb1ac435e72a1adacee08 | d61b84cd394da5e7d63fa983fab0cb7eb33512a6 | /analytics2/agePrediction2.R | e377980f4957711f80a670433e922606ebe84c60 | [] | no_license | sixitingting/KapowskiChronicles | 4fd25a9568e654ffe9dee316b97a47f4f131ac15 | 4d7aafaa39135c29bfb073d0d17fa0c0166b01ad | refs/heads/master | 2021-08-14T13:32:21.933757 | 2017-11-15T20:49:24 | 2017-11-15T20:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,216 | r | agePrediction2.R | library( kernlab )
library( caret )
library( randomForest )
library( ggplot2 )
nPermutations <- 1000
trainingPortions <- c( 0.5 )
for( p in trainingPortions )
{
trainingPortion <- p
cat( "trainingPortion = ", trainingPortion, "\n", sep = '' )
resultsData <- data.frame( Pipeline = character( 0 ), Correlation... |
807efc78bedd859cfba36bbe697012d0185edb85 | 6e3c81e90730c199a0536854374010f3527bc292 | /analysis_scripts/ggcorr.R | 755b849839605c678006ef4f8be45c4c377933c2 | [] | no_license | camposfa/plhdbR | 0d01acc33a5d4878c9ddf3d2857396d837dc8fca | 4472c22d45835dde05debf4c0659c21a19c3bdcd | refs/heads/master | 2020-05-17T23:51:35.521989 | 2017-09-12T13:26:02 | 2017-09-12T13:26:02 | 32,407,178 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,823 | r | ggcorr.R | ggcorr_fc <- function (data, method = c("pairwise", "pearson"), cor_matrix = NULL,
nbreaks = NULL, digits = 2, name = "", low = "#3B9AB2", mid = "#EEEEEE",
high = "#F21A00", midpoint = 0, palette = NULL, geom = "tile", tile_color = "white",
min_size = 2, max_size = 6, label = FALSE, label_... |
03daa0e2a5c1e05efb646955d298750875762842 | 1eec56205889241fc9e47443f5534216acbac52c | /man/smargins.Rd | eb94646f6ed883595c34e6f24ec7de23eef9e6aa | [] | no_license | izahn/smargins | fac638a907e5ca75452bd399de27d007162ea68e | 949f8fc9e4729c19a22e2512c701fae2c422e69e | refs/heads/master | 2021-05-07T02:52:32.980547 | 2019-09-10T19:33:53 | 2019-09-10T19:33:53 | 110,725,408 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 835 | rd | smargins.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smargin.R
\name{smargins}
\alias{smargins}
\title{Calculate average marginal effects from a fitted model object.}
\usage{
smargins(model, ..., n = 1000)
}
\arguments{
\item{model}{A fitted model object.}
\item{...}{Further arguments passed t... |
9adfc62a139f6f41e9933108d90de45d9c9fa811 | a3a6cd9ca2730c4b9807eceb99eb77e18e15d6ce | /example.R | 9c14bfad87c46296f8c3f2c492374770a26903fa | [] | no_license | Shaun-Roberts/Honors-Dissertation-2017 | 820041eed57a3bf75adcb5ea0e1f4a36242619c5 | 908b27a1d1881f7072e42fda806c349b0bccf3af | refs/heads/master | 2021-07-22T02:32:33.425820 | 2017-10-30T04:26:13 | 2017-10-30T04:26:13 | 91,649,868 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,530 | r | example.R | example = function(ylimits = c(0,100), step_size = 25){
data = c("sampson", "kapferer", "samplk", "faux.mesa.high")
lincol = c("#D7191C", "#FDAE61", "#ABD9E9", "#c351e2")
linewidth = 2
ydiffs = diff(ylimits)
yupper = ylimits[2]
ylower = ylimits[1]
layout(c(1,1,1,2))
plot.new()
plot.window... |
7822b7cca2ebbafc4efa1eb1e15911f76b7077b8 | a23c67bdf8ed4d329ede8264ad34c555123ab16c | /R/getDesignWgts.R | 4674d55173937fd0664b0a56913d053af3a641e6 | [] | no_license | hunter-stanke/rFIA | 49af16f35f6322e950c404ef94f90464fff3aaa3 | 22458bafa6ca6c10b739e96aa01ae51e1fc34157 | refs/heads/master | 2023-05-01T15:34:29.888205 | 2023-04-09T03:25:37 | 2023-04-09T03:25:37 | 200,692,052 | 47 | 18 | null | 2023-04-14T15:37:04 | 2019-08-05T16:33:04 | R | UTF-8 | R | false | false | 7,530 | r | getDesignWgts.R | #' @export
## Pull strata and estimation units weights for a given inventory
getDesignInfo <- function(db,
type = c('ALL','CURR','VOL','GROW','MORT',
'REMV','CHNG','DWM','REGEN'),
mostRecent = TRUE,
evalid =... |
f0fff1965832339f407ddaa3f91727943e3baab6 | 0675a7da09eeca4377887549dcaa3ed4a2e24d43 | /inst/doc/how_to.R | 855ef6b7d4a529bec764647bd50e7f8bad5f677e | [] | no_license | cran/PropensitySub | 40fc763f32e0f755bea4c14d3ea34b81de1850b9 | 7daf869c4fcb7bce826396cd1ddd84492d40297f | refs/heads/master | 2023-06-25T19:44:54.655226 | 2021-07-29T07:50:11 | 2021-07-29T07:50:11 | 390,773,073 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,755 | r | how_to.R | ## ---- message=FALSE, warning=FALSE, comment=""--------------------------------
library(PropensitySub)
library(dplyr)
head(biomarker, 3)
# Control arm subjects have no STRATUM measurments
# Experimental arm subjects partially miss STRATUM measurement.
table(biomarker$Arm, biomarker$STRATUM, useNA = "ifany")
## ---... |
6a66fa7fb7872a3224f9ecd726d1c1441d21b377 | ed6c1cb4aa9b816c904ed52e22ef716409f3e62e | /Single Period Outliers/scripts/Single Period xG.R | 504813f0e7896a3eeae681c5afcd5693d239d80b | [] | no_license | loserpoints/Hockey | ecfca68be8d14d0fca5169cfbbcac3c46b54f262 | 94444b6fb04b7900930f918e432764993bbf6b1f | refs/heads/master | 2021-01-04T02:14:12.336819 | 2020-12-31T15:40:52 | 2020-12-31T15:40:52 | 240,337,779 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,414 | r | Single Period xG.R | ### load required packages
library(tidyverse)
library(extrafont)
library(RMariaDB)
### load fonts for viz
loadfonts(device = "win")
### query local mysql db for shot data
shots_db <-
dbConnect(
MariaDB(),
user = "root",
password = password,
dbname = "nhl_shots_eh",
host = "localhost"
)
... |
3077b90e45912d9c8c09417f4e92841b688c1ac9 | 87502e5d65358d4069dfab82a6c8aafea627f936 | /Code/KNN/01/knn_final_full_test.R | e5a9aa265639a7d86c68fe2d876087c4c51ee48e | [] | no_license | niive12/SML | 4c5dc361480d24652dff4602db4b84e96d7ef306 | a21570b8b2e6995dbcee083901160c718424ff8c | refs/heads/master | 2020-06-05T08:55:59.875092 | 2015-06-25T09:38:43 | 2015-06-25T09:38:43 | 30,865,578 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,869 | r | knn_final_full_test.R | # run full test on the best dataset, easy and hard problem
library("gplots") # for colorpanel
source("load_people_data.R")
source("pca_test.R")
source("normalize.R")
source("confusion_matrix.R")
trainSetSize = 400
testSetSize = 400
s_k = 1
s_size = 5
s_sigma = 0.9
s_pc = 40
s_crossrefs = 10
people = getPeople()
noP... |
d5089bc9c244b50f7bc54a23c0129a18ee4e9957 | 39a3b1f5d27882ea8364e94c484e14c603cb88e2 | /R/globals.R | 3e9e65ef30f685f0e8951c2e83d86a06a53ebfd2 | [] | no_license | MatthiasPucher/staRdom | 49c23ebfd977c9321fc09600c29d84ed872f0090 | af51796fff49a5dc670244066c2f18dd6badc9a3 | refs/heads/master | 2023-06-25T00:46:52.968743 | 2023-06-15T08:18:13 | 2023-06-15T08:18:13 | 128,365,215 | 16 | 2 | null | null | null | null | UTF-8 | R | false | false | 708 | r | globals.R | #' @import utils
globalVariables(c(
"eem",
".",
"samp",
"S275_295",
"S350_400",
"wavelength",
"a250",
"a365",
"a465",
"a665",
"ex",
"em",
"eemnam",
"eem_list",
"comp",
"amount",
"value",
"component",
"comps",
"fit",
"leverage",
"x",
"label",
"max_pos",
"max_em",
"max_... |
5f76860b290791bf9281a7d78977b80218748f23 | 34cc0de8269856373e4ccd1bf2f97d67de979169 | /man/cols_exist.Rd | 5571bee26cb310755f63d483fe4938603c5e5d10 | [] | no_license | mmp3/deltacomp | 0a120e9bdd40937f304cdc4709d40e529a128c13 | 366e689c0dcde7782858121384d43bc412d2af0d | refs/heads/master | 2023-06-04T11:29:05.434094 | 2021-05-28T07:36:22 | 2021-05-28T07:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 617 | rd | cols_exist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cols_exist.R
\name{cols_exist}
\alias{cols_exist}
\title{Check whether columns exist in a data.frame}
\usage{
cols_exist(dataf, cols)
}
\arguments{
\item{dataf}{a data.frame}
\item{cols}{character vector of columns to be checked in \code{dat... |
9663a3cb46c5b10b0aef21fd221fec7a38a103fd | 53ef0750de68471ee0b49537b3170df204a3c69a | /paper_code_compilation/Table S24.R | 2e0780dc59f7b8cbf5f370fde157589987f4cc22 | [] | no_license | rajkumarkarthik/weak_ties_data_and_code | ce10a1ff9326c0997a5870088786ebee0c31220f | b4c74c3cf9c46d67c634f82a6c13c6e7bb63662c | refs/heads/main | 2023-04-06T20:13:45.786011 | 2022-05-09T21:44:54 | 2022-05-09T21:44:54 | 485,168,828 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 560 | r | Table S24.R | library(tidyverse)
library(data.table)
library(xtable)
# Get engagement metrics data
engagement <- fread("engagement.csv")
# Show metrics: messages, posts, likes and shares
# Including standard error
engagement %>%
group_by(expt_id, metricName, variant) %>% select(lift, std_err, pval) %>%
unique() %>%
pi... |
a4b0b9633a431ffd2b14bf6062cd4ce40ab692a6 | eb490b4d0e974854d80f9a9e0a99cb340e19b387 | /data-raw/r4ds.R | ba714bfe26506092317ad75a97d1e116e985e417 | [] | no_license | echasnovski/jeroha | a64958d8ede4c0a2b2725e8eb16f6fec4acf63e1 | 929ca17e5ea3462a3bd7780787ddbe99968b5126 | refs/heads/master | 2021-05-05T18:35:04.995239 | 2017-10-08T12:43:36 | 2017-10-08T12:43:36 | 103,638,357 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,308 | r | r4ds.R | library(jeroha)
library(dplyr)
# Get rmd files -----------------------------------------------------------
# For folder "r4ds" go to https://github.com/hadley/r4ds ,
# download the repository, unpack and rename it to "r4ds", put into
# "data-raw" folder
# Get files used to knit the book
r4ds_file_names <- readLines(... |
16563fb1949ef38d6b51ab64b5bf842492a54065 | f16be4c611930661ca523ea4b02af50b520509df | /inst/benchmarks/cma.r | fc6c854bab7a561cae960585182070591e1c15a3 | [
"BSD-2-Clause"
] | permissive | wrathematics/fastmap | ca9f516e77f34c0f0889ad7ba3371f6eac7b6a2b | bdee0e043fced0cfe1106b53484ade24758eb993 | refs/heads/master | 2021-01-02T23:52:02.408944 | 2017-08-06T21:15:17 | 2017-08-06T21:15:17 | 99,512,417 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 211 | r | cma.r | library(rbenchmark)
cols <- c("test", "replications", "elapsed", "relative")
reps <- 5
x = matrix(rnorm(10000*1250), 10000)
benchmark(fastmap:::.cma(x, 2), fastmap::cma(x, 2), replications=reps, columns=cols)
|
cea859c78c5e0ae718351e228f94f07660466929 | a127e9e7abef8a3b5ba170cb02a68f3c3f2b3e6d | /Poczatki.R | b539ad284c17868a06401e487620472788cb475d | [] | no_license | Ida962/Super-Trio | 5771301fd662f24ac18076eaf5239984988ef441 | 9c5068ebdd373f5bebc647c03534b39539edaaee | refs/heads/master | 2021-08-17T00:57:54.058607 | 2017-11-20T16:14:53 | 2017-11-20T16:14:53 | 111,432,180 | 0 | 0 | null | 2017-11-20T16:14:35 | 2017-11-20T16:01:47 | R | UTF-8 | R | false | false | 28 | r | Poczatki.R | x = c(2,5,7,1,3,9)
length(x) |
a8171f75dac87108c28b143c337cb4b4ded1a230 | e939dc354287ac51d763977887afbff50a6ef4df | /process_Smit2008_for_validation.R | a8e9fe452dff37b4a8fabd7c1b7349ad01ec298a | [] | no_license | JanBlanke/pasture_management | 2e6dc5bc12d9911adafcc7fdcb5e6ff906fdc6ed | b5c6f2376d9f191e7b0f9580dad82de992607054 | refs/heads/master | 2016-08-12T20:30:39.325992 | 2016-04-08T09:33:16 | 2016-04-08T09:33:16 | 55,766,776 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,157 | r | process_Smit2008_for_validation.R | library(raster)
library(rgdal)
eu.nuts.2010 <- readOGR("/home/jan/Dropbox/Data/NUTS_2010_60M_SH/Data", "NUTS_RG_60M_2010")
### check netcdf files
smit.regions <- stack("/home/jan/Dropbox/Data/Smit_2008/map_nuts2_vector_new.nc", varname="nuts")
# 280 regions/layer, indexed as 0s
smit.ids <- stack("/home/jan/Dropbox/D... |
bd812ac967d2ef4b25d7f87fdcd3f4b78544c359 | d302b1738f57360ca73fc0aac1f380774bae72b2 | /app.R | 1d376c6a8b6dd742685006a795b4c4050fb56c32 | [] | no_license | CristianPachacama/Dgip | f586e3614ca4ebe8caf89fe6a03f5613e4156d7c | d5a7a9243e8b408ab84dec1d81c618e151255907 | refs/heads/master | 2020-03-17T02:48:57.359208 | 2018-05-17T21:31:34 | 2018-05-17T21:31:34 | 133,207,118 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,381 | r | app.R | #########################################################################
##### Installing packages into ‘/usr/local/lib/R/site-library’ ########
#########################################################################
### Instalcion de Paquetes para Shiny Server
# sudo su - -c "R -e \"install.packages('shiny')\""
#... |
60e1856d3825b8387fd8cea89d5d99837fb8e683 | 2233e696495f16a59b4cd49e45c56e178861ace0 | /R/cobot.R | 1fa05c3feb2a60f9e52998d7784dba3c4199112a | [] | no_license | vubiostat/PResiduals | 293558270c9ac0d63627ab9bf671b30c6b76f20a | 5c12221e58fd3e01a1f7b88b9efdfadbdf6a9dec | refs/heads/master | 2021-01-19T10:57:33.296753 | 2015-07-07T19:55:32 | 2015-07-07T19:55:32 | 17,527,736 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 27,285 | r | cobot.R | ordinal.scores.logit = function(y, X) {
## y is a numeric vector
## X is a vector or matrix with one or more columns.
## Ensure code works if called from somewhere else (not COBOT.scores()).
## Make X a matrix if it is a vector. This makes later coding consistent.
if(!is.matrix(X)) X = matrix(X, ncol=1)
... |
1113fd7e5e7f2c86e7673b56d4aabddeb651df27 | 634b4702b2f15e302015d4b961fcb9f8625d3d41 | /section6.within.jackknife.evaluation.normal.R | fd61dc05f38c00488258d25fc2967a39b0e6ba81 | [] | no_license | raduvro/TOCHI-supplementary | bef0bfe61e6a5ff54be611cced52154aca528569 | aca58c37dcdbc839fd62c5cbe6ab467c8a5375ba | refs/heads/master | 2020-06-10T15:34:24.583765 | 2018-10-19T10:10:53 | 2018-10-19T10:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,476 | r | section6.within.jackknife.evaluation.normal.R |
#===========================================================================================
# Simuation experiment for evaluating the Type I error of the jackknife technique
# Theophanis Tsandilas
#======================================================================================
rm(list=ls()) # Clean up... |
0f377b28da6219c2322b060a6336f9096adac8e9 | 00daf46a1286c20caa103a95b111a815ea539d73 | /AnalyzeCCode/class.R | aa595960796d0ec7ac0bbb51537afa7f3fd55106 | [] | no_license | duncantl/Rllvm | 5e24ec5ef50641535895de4464252d6b8430e191 | 27ae840015619c03b2cc6713bde71367edb1486d | refs/heads/master | 2023-01-10T15:12:40.759998 | 2023-01-02T18:05:26 | 2023-01-02T18:05:26 | 3,893,906 | 65 | 14 | null | 2017-03-09T07:59:25 | 2012-04-01T16:57:16 | R | UTF-8 | R | false | false | 334 | r | class.R | library(Rllvm)
source("getType.R")
m = parseIR("foo.ir")
setMethod("show", "Value", function(x) print(as(x,'character')))
o = compReturnType(m$rklass)
if(FALSE) {
ii = as(nm, "Instruction")
v = .Call("R_GlobalVariable_getInitializer", ii[[1]])
getClassName(v)
.Call("R_ConstantDataSequential_getAsCStri... |
98ac280bdad91be47ff5c4e1cd9b67f9e0cfb119 | 0bf034ee0fce24b754878e59c67c3c4a0d33cd92 | /app/global.R | 6aafdb33b9a427466d4c0e115afea8d4d6dae5ec | [] | no_license | mllewis/langLearnVar | 16c7761df7a4879c358ece8ab5cbd2d035e73612 | adb3540de81c0caa57e0fd910c652858f62e4b0a | refs/heads/master | 2020-12-14T23:39:16.397044 | 2017-07-18T21:05:10 | 2017-07-18T21:05:10 | 49,292,588 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,392 | r | global.R | # Variables that can be put on the x and y axes
axis_vars <- c(
"Area (log)" = "area_log",
"Complexity bias"= "complexity.bias",
"Complexity bias (partialing out frequency)" = "p.complexity.bias",
"Complexity bias (monomorphemic words only)" = "mono.complexity.bias", ... |
5479a2c4914a82b7e2415a283fb0458923cadc71 | 91634073099e254722a3bf759108429913e73d89 | /plot3.R | 3649c1d0eec6420d2d2ebf1a4bb525edaac08001 | [] | no_license | anushav85/ExData_Plotting1 | 508e49a34c884c9507c86765c358f1563194f8ca | 9d4f077c28becad356e982be8eb06ab5c3b245ef | refs/heads/master | 2020-12-25T09:38:13.971551 | 2014-06-08T22:50:07 | 2014-06-08T22:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 797 | r | plot3.R | png("plot3.png")
rawfile <- file("household_power_consumption.txt","r")
cat(grep("(^Date)|(^[1|2]/2/2007)", readLines(rawfile), value = TRUE), sep="\n", file="filtered.txt")
close(rawfile)
powerdata <- read.csv2("filtered.txt", na.strings = "?")
datetime <- strptime(paste(powerdata$Date, powerdata$Time), format = "%d/%... |
a7688b5938e7a3f65036f33af2343f4ab9042258 | 9a31e99c6e6c5fcee3be719a2cf5cc77c233e5ab | /docs/demo/basic-use-of-r/Data_Visualization.R | 86791442215c360fc49e14a50906ed8326b15ab1 | [] | no_license | NErler/BST02 | e7f26c6db87aeb790006a94a717cb68513971e56 | 35afe3d44c41f169da754c8acb4a6204829cf0a6 | refs/heads/master | 2021-06-25T01:37:13.798487 | 2021-03-02T14:01:17 | 2021-03-02T14:01:17 | 211,871,452 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 10,895 | r | Data_Visualization.R | #' ---
#' title: "Demo: Data Visualization"
#' subtitle: "NIHES BST02"
#' author: "Eleni-Rosalina Andrinopoulou, Department of Biostatistics, Erasmus Medical Center"
#' date: "`r Sys.setenv(LANG = 'en_US.UTF-8'); format(Sys.Date(), '%d %B %Y')`"
#' output:
#' html_document:
#' toc: true
#' toc_float:
#' ... |
84d1d2d2305bcab18044250428b74cd8c915af4e | c59f494aacfd20a71b4a44c1c1bc7fa91da60977 | /R/irf.svarest.R | 167f9f8dc28a42a8ce83c55c790dc8dd692dd612 | [] | no_license | cran/vars | 32a6b2be807d55b0dfaba321056ac460770c7eb6 | 3f80033a4a9169c13dc55c481ed3ba0b89256703 | refs/heads/master | 2023-04-06T11:14:54.671093 | 2023-03-22T21:20:03 | 2023-03-22T21:20:03 | 17,700,726 | 8 | 16 | null | null | null | null | UTF-8 | R | false | false | 1,822 | r | irf.svarest.R | "irf.svarest" <-
function(x, impulse=NULL, response=NULL, n.ahead=10, ortho=TRUE, cumulative=FALSE, boot=TRUE, ci=0.95, runs=100, seed=NULL, ...){
if(!is(x, "svarest")){
stop("\nPlease provide an object of class 'svarest', generated by 'SVAR()'.\n")
}
y.names <- colnames(x$var$y)
if(is.null(impulse)){... |
9d982851250cd4e33a212b5858a6fa7940b22141 | 494c71f56647f6695bd8b046372fd42c7f1b9040 | /man/roxygen/templates/ignore_case.R | 16e8473e8c78a0a3d7e9b129f0bd3175f0e0a3e5 | [] | no_license | minghao2016/tidysq | 1e813a019878dac2bb1cb239d05fa97e37bc93b4 | 953b1d3c1ce1e250f9afcb3f8fe044c6f7391c76 | refs/heads/master | 2023-03-23T20:03:08.700872 | 2021-03-12T17:03:05 | 2021-03-12T17:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 375 | r | ignore_case.R | #' @param ignore_case [\code{logical(1)}]\cr
#' If turned on, lowercase letters are turned into respective uppercase ones
#' and interpreted as such. If not, either \code{sq} object must be of type
#' \strong{unt} or all lowercase letters are interpreted as \code{NA} values.
#' Default value is \code{FALSE}. Ignori... |
2ae9c85a93130a60ff6337feffa53aa405ee7b57 | 39b974a89bac599687f4a777cad54edf18866584 | /R/lazy_plot.R | f0505efb72ab6ff26bfca21df74f2fde06c530a8 | [
"MIT"
] | permissive | XanderHorn/lazy | cde252acdf12b67f9e8f5dd5201785aec3d0c2bd | f83085477ad2275e53ab45095f187fbb7c34fbfe | refs/heads/master | 2022-04-10T15:37:07.500066 | 2020-02-28T08:54:50 | 2020-02-28T08:54:50 | 176,108,807 | 1 | 1 | null | 2019-06-26T06:21:25 | 2019-03-17T13:57:11 | R | UTF-8 | R | false | false | 5,720 | r | lazy_plot.R | #' Lazy ggplot plotting
#'
#' Quickly produces specifc plots using the ggplot library. This function is exported but its main purpose is to be used in the eda function.
#'
#' @param data [required | data.frame] Dataset containing predictor and / or target features.
#' @param x [optional | character | default=NULL] A ve... |
7c612608a49ed1a7797093f7b9f8e0cd1cd9f4ac | 1e912c54cb17be1e24fe47072498f3e7bbc37a1e | /R/derCOPinv.R | 34ff86aeb0925d178e6f8cab97ec3226aff57ee3 | [] | no_license | cran/copBasic | a3149fffc343130a77e693dae608dde9ca50cd05 | 84adb528160d3cd5abb83e06da276a6df9af382f | refs/heads/master | 2023-06-23T14:32:12.974136 | 2023-06-19T15:50:02 | 2023-06-19T15:50:02 | 17,695,240 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 973 | r | derCOPinv.R | "derCOPinv" <-
function(cop=NULL, u, t, trace=FALSE,
delu=.Machine$double.eps^0.50, para=NULL, ...) {
func <- function(x,u,LHS,cop,delu=delu,para=para, ...) {
LHS - derCOP(cop=cop, u=u, v=x, delu=delu, para=para, ...)
}
f.lower <- func(0,u,t,cop,delu=delu,para=para, ...)
f.upper <-... |
12da2b356ac3366022a9f3b6a09a18aeeb331cb0 | 69a2266141c50abf94e525391fbddaadb45b9169 | /plot3.R | 21a41e6e10bf77fb3cb10b18d3a4e18681b955f2 | [] | no_license | casco/ExData_Plotting1 | 1982789fbeaffba7fa76bda4b76e5eac70aad983 | c16b154254076215973895e8bd098d1da6abbe3f | refs/heads/master | 2020-12-28T23:34:54.469002 | 2014-05-09T04:38:52 | 2014-05-09T04:38:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 962 | r | plot3.R |
data <- read.table("household_power_consumption.txt", sep=";", header=T,
colClasses=c(rep("character",2),rep("numeric",7)),
na.strings = "?")
data$Date <- strptime(data$Date, format="%d/%m/%Y")
period.start <- strptime("01/02/2007", format="%d/%m/%Y")
period.end <- strptime("02/0... |
a7a1fedf6ab2e68de7b79a37912b2002fc200be2 | 6334b663b9508cf0cda2d992f3efdffc4b4ec2cf | /man/data.diag.Rd | f47bd4a9b3af910d9f2e1a8212a164eba3197856 | [] | no_license | cran/fdm2id | 40f7fb015f3ae231ca15ea7f5c5626187f753e1b | c55e577541b49e878f581b44dd2a8bae205779d0 | refs/heads/master | 2023-06-29T00:54:58.024554 | 2023-06-12T12:10:02 | 2023-06-12T12:10:02 | 209,820,600 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 959 | rd | data.diag.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataset.R
\name{data.diag}
\alias{data.diag}
\title{Square dataset}
\usage{
data.diag(
n = 200,
min = 0,
max = 1,
f = function(x) x,
levels = NULL,
graph = TRUE,
seed = NULL
)
}
\arguments{
\item{n}{Number of observations in the... |
bb926ad9661e7ef9e97ea46a6c2f3b1a3bb1f882 | 840c55a1b087be2e7d7d0750bcb66ec4415c686f | /Data meeting and cleaning/Archive/BSOC-STEP1.R | 5be463e79eca94f72ee39173410c24e7f7f98257 | [] | no_license | DecisionNeurosciencePsychopathology/redcap_in_r | 70cdfe116d16774444ec0262e5619f11d5c8de2a | b1668e85454eefb113e29e57d172a2865ce47e53 | refs/heads/master | 2021-05-15T04:04:47.938822 | 2021-04-09T17:21:01 | 2021-04-09T17:21:01 | 119,751,789 | 3 | 4 | null | 2020-08-14T16:04:48 | 2018-01-31T22:29:27 | R | UTF-8 | R | false | false | 14,671 | r | BSOC-STEP1.R | #################################### SAME ####################################
## startup
rootdir="~/Box/skinner/projects_analyses/suicide_trajectories/data/soloff_csv_new/"
source('~/Documents/github/UPMC/startup.R')
var_map<-read.csv('~/Box/skinner/data/Redcap Transfer/variable map/kexin_practice.csv',stringsAsFacto... |
190c742970d3f9da48e246593cba936b066ef9ec | 0836236c143346a53bbc505f0f13870fdb7bd393 | /pollutantmean.R | 270d6b7d66c2086b829a01196b0fc364cce53212 | [] | no_license | bethegeek/Hello_world | 034d5791bb02611930bdd766814b51df72573922 | b8c3b4a501acfb84d02bfbacf503faebb67bdd56 | refs/heads/master | 2021-01-10T14:06:41.584513 | 2016-02-08T10:01:03 | 2016-02-08T10:01:03 | 51,280,465 | 0 | 0 | null | 2016-02-08T05:25:25 | 2016-02-08T05:14:27 | null | UTF-8 | R | false | false | 243 | r | pollutantmean.R | pollutantmean <- function (directory, pollutant, id = 1:332){
my_files <- list.files(directory, full.names = TRUE)
dat <- data.frame()
for (i in id){
dat <- rbind(dat, read.csv(my_files[i]))
}
mean(dat[,pollutant], na.rm=TRUE)
} |
69da7a7957477959920d4006d2ad61c6f27bd3dc | b8b3443e3b7021e9ac458bc12166f3e6f470843d | /man/attribute_filter.Rd | 9b6a2a321b020a945ebf690d57e0e2cd3fc42932 | [
"MIT"
] | permissive | taylorpourtaheri/nr | e745a5734ca244e642ef089d9dfd20b957f00852 | 5c2710c197533ecf8b439d58d3d317bc203ac990 | refs/heads/main | 2023-07-14T04:53:48.773417 | 2021-08-11T22:15:55 | 2021-08-11T22:15:55 | 386,658,478 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 593 | rd | attribute_filter.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attribute_filter.R
\name{attribute_filter}
\alias{attribute_filter}
\title{Return subgraph where attributes match conditions}
\usage{
attribute_filter(graph, attr_expression)
}
\arguments{
\item{graph}{Graph of class '\code{igraph}'}
\item{a... |
474e556d461703d6d3004446f7905850ca10aca7 | 4041a4778ca91606294a9a1c879a921606ac597b | /R/functions/dms_to_decimal.R | b538c8b15a1aa5468a527212f4c810430576d2bb | [] | no_license | jeremieboudreault/flow_data_cehq | 83c2dff3d6d6e67f8f872c8e5f2b2f6e69e3008b | 3ef172089f2893635e7f1d2b8ab0726e971ff797 | refs/heads/master | 2023-08-25T11:00:13.777002 | 2021-11-02T14:32:08 | 2021-11-02T14:32:08 | 360,889,788 | 1 | 0 | null | 2021-05-01T13:43:10 | 2021-04-23T13:16:01 | R | UTF-8 | R | false | false | 464 | r | dms_to_decimal.R | # dms_to_decimal.R
#' @author Jeremie Boudreault.
#'
#' @export
dms_to_decimal <- function(dms) {
# Split DMS string to c(D, M, S)
dms_split <- as.numeric(strsplit(dms, split = c("º |\' |\""))[[1L]][1:3])
# Apply the minus symbol to all terms.
if (dms_split[1L] < 0L) {
dms_split[2L] <- dms_sp... |
10ca846912bea292b70556e3b910798348d96e1f | 411c0a855450e1e17445bdc73ab48144512b4ee4 | /tests/testthat/test_rescale.R | 963590d3ac8d6e86ddde8bf57ccd4d1b7996519e | [] | no_license | Gootjes/likerrt | e71c7893345a871011d6834122090fdab3c543bc | e294617d06320115ed3bc845f5e2bd9476ce7100 | refs/heads/master | 2020-05-24T22:35:25.348798 | 2020-03-29T15:51:10 | 2020-03-29T15:51:10 | 187,499,444 | 0 | 0 | null | 2020-03-29T15:26:24 | 2019-05-19T16:11:22 | R | UTF-8 | R | false | false | 1,678 | r | test_rescale.R | context("rescale")
library(tidyverse)
library(rlang)
library(haven)
n1 <- 100
values1 <- 1:10
gen <- function(values, n) sample(values, n, replace=TRUE, prob=rbeta(length(values), 1, 1))
d1 <- data.frame(A = gen(values1, n1), B = gen(values1, n1), C = gen(values1, n1)) %>%
as_likert(A, B, C, .labels = c("lowest" = ... |
8cf3ecda117c083e19031a395b34134dfb80db41 | 43468850099f4b805f44a726db2c402ea0891f07 | /findTradedBHCs v1.0.R | dc23d9654229a59c0d33ebe92e5f3e1d754207da | [] | no_license | jmalbornoz/Bank-Names-Reconciliation | 3a6ca27b23e456250043649d398213150e199f62 | 7a90ff942c97d795d6e74d9b37e65ad38e7236e1 | refs/heads/master | 2021-01-10T09:50:52.340552 | 2016-02-01T17:44:20 | 2016-02-01T17:44:20 | 50,854,808 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,086 | r | findTradedBHCs v1.0.R | # Find publicly traded BHCs in FDICs data
#
# JM Albornoz
# January 2016
#
# clear everything
rm(list=ls(all=TRUE))
# invokes libraries
library(dplyr)
library(stringdist)
# invokes utility functions
source("utility1.R")
############################################################
###################################... |
9d3d7e6f4113ee0f43942a067bf1fa4d5477ef80 | 9b52eb78cc08d42310da9b9d3f00d239a9be8b20 | /Solutions_for_Tasks/Task_from_Excel_Table_One/Code_I_Used_for_Calculations.r | 45c2d1e965df92d21f0c3835f401acf36c6d6fff | [] | no_license | richardrex/Mattoni_Data_Analyzation | 5007eb7e197726851cf6b29d90a184408c858e31 | adddea63032267c7934e21eef9c7d2b0206b9f07 | refs/heads/main | 2023-09-04T09:06:10.164400 | 2021-10-22T14:56:25 | 2021-10-22T14:56:25 | 412,146,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,379 | r | Code_I_Used_for_Calculations.r | getwd()
setwd("F:/folder")
install.packages("readxl")
library(readxl)
library(sqldf)
my_data = read_excel("task1_data.xlsx")
#1)
V1_fuzz = sqldf('SELECT * from my_data WHERE ITEM = "FUZETEA-GR.TEA LIME&MINT 1.5L PB" AND MARKET = "CZ Hypermarkets"' )
Answer1 = V1_fuzz[3,9]
### ANSWER : 90.51300
#2. J... |
7ffb0b6e85e6e1008887344e6b5cbb5f2b1cad8f | 383aca5c78267160efa1d69f409edd6fac4f90d4 | /R/cm.clopper.pearson.ci.R | 3904bccb3754179dd2c583718456daf989414e1f | [] | no_license | cran/GenBinomApps | e6b45f777136c21212c08fd8fb5e4926b8a4245f | d6fa7ae17c5f99fa8f2d0b8858db8893e2aa445c | refs/heads/master | 2022-07-07T04:14:17.488479 | 2022-06-21T12:30:02 | 2022-06-21T12:30:02 | 17,679,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,695 | r | cm.clopper.pearson.ci.R | cm.clopper.pearson.ci <-
function(n,size,cm.effect,alpha=0.1,
CI="upper",uniroot.lower=0,uniroot.upper=1,uniroot.maxiter=100000,uniroot.tol=1e-10){
k=sum(size)
l<-round(size)
if (any(is.na(size) | (size < 0)) || max(abs(size - l)) > 1e-07)
stop("'size' must be nonnegative and integer")
m<-round(n)
if (... |
fb30e3b8ef8bdd52b82215a8f30fb02532786265 | f2dc702fa270bf83e1b3263e93517b3196e73f81 | /R-Microvan factor and cluster analysis .R | d8a7b8dad2e34962a6834b5a91429e13a1e0103b | [] | no_license | yiwenjulie/data-analysis | bdecbc2741dcd250bc622d279985fa04a3e84d5a | 70d318f6c1d775bd548b9bc0bf324975b8e5b50d | refs/heads/master | 2023-07-19T04:57:02.409271 | 2021-09-13T13:25:41 | 2021-09-13T13:25:41 | 405,952,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,663 | r | R-Microvan factor and cluster analysis .R | library(foreign)
library(haven)
library(ggplot2)
# import data
data <- read.dta("microvan.dta")
str(data)
summary(data)
# exploratory analysis
variables <- colnames(data[,3:32])
p = ggplot(data)
p1 = p+geom_bar(aes_string(x=variables[1]))
p2 = p+geom_bar(aes_string(x=variables[2]))
p3 = p+geom_bar(aes_string(x=vari... |
e14edc1f624bb244852575a6bbe6aeaa3c980c4e | 8f67330a4700bc888d13dd92c62220e20e6b6828 | /tests/testthat/test_normalization1.R | c6cd3625b5f6620d0f6096026f2ba4d34cd60677 | [] | no_license | cran/clusterSim | cfcc584e368fa9f6d1d86887b0f61cc2f3676b32 | 54764dbd65330165e71fc1af2fadf75942915769 | refs/heads/master | 2023-06-25T15:51:42.061284 | 2023-06-10T17:30:02 | 2023-06-10T17:30:02 | 17,695,119 | 2 | 6 | null | 2015-12-05T19:09:43 | 2014-03-13T04:16:30 | R | UTF-8 | R | false | false | 475 | r | test_normalization1.R | context("normalization1")
test_that("normalization1", {
a<-matrix(runif(10,1,10),10,1)
b<-as.vector(a[,1])
for(i in 0:13){
t=paste("n",i,sep="")
an<-data.Normalization(a,type=t)
bn<-data.Normalization(b,type=t)
expect_equal(as.vector(an[,1]),as.vector(bn))
}
for(i in c(3,5,6,9,12)){
t=pa... |
ddd133eb573a189edcd15afc6c08eb45957c1696 | 3cb5ff85950ca7fbe3414684853c3b2e29f1fd76 | /handy/eda.R | a54d0e67534ffbadb32c67e17e3977c118900315 | [] | no_license | wal/R-Code | 007fba7b25e9b1a6d30e9a0bc9ce4427141eb71f | 49baf272e76367e7561d7725c7e1c52f817c9560 | refs/heads/master | 2021-07-04T23:13:03.395752 | 2020-09-30T10:02:31 | 2020-09-30T10:02:31 | 19,870,363 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,502 | r | eda.R | # EDA : To find patterns, reveal, structure, and make tentative model assessments
## Variables
# What are the variables, types, missing data, unique values
### Variables Table
create_variables_table <- function(data) {
join_all(list(
data %>% summarise_all(~ class(.)[[1]]) %>% gather(Name, class),
data %>% ... |
dc678d64a7e9649b48a66c08d55737fbd41430b0 | 6fbe95a40778339a65d0500e3f51269d25f216bf | /man/maxlevels.Rd | 857e465abfa768558600c9a8070651081b374603 | [] | no_license | zeta1999/OneR | 82e5d2fe5b63c2439b3c798dea97cb8d40f8bba4 | 72dd03301b552d928ddc6bccf3d246c01918f17d | refs/heads/master | 2021-09-15T14:41:38.819687 | 2018-06-04T17:09:36 | 2018-06-04T17:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,237 | rd | maxlevels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OneR.R
\name{maxlevels}
\alias{maxlevels}
\title{Remove factors with too many levels}
\usage{
maxlevels(data, maxlevels = 20, na.omit = TRUE)
}
\arguments{
\item{data}{data frame which contains the data.}
\item{maxlevels}{number of maximum f... |
62136f662eaf3137ae1f943516bfc7c729e8f792 | 8ee4947786144359eb66ad9f8718c0e673ba4166 | /man/check_schema_for_duplicates.Rd | b561a4cec51c3fd7681ce265907bcb30a8315f22 | [
"MIT"
] | permissive | antonmalko/ettools | 263e4ef67202b9abf7aea5389ede2a52b5f73a38 | fe57227850faecff4afbc081e95077972403cf71 | refs/heads/master | 2021-09-09T21:14:53.376409 | 2018-03-19T18:35:36 | 2018-03-19T18:35:36 | 113,387,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 945 | rd | check_schema_for_duplicates.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/naming_functions.R
\name{check_schema_for_duplicates}
\alias{check_schema_for_duplicates}
\title{A validation function for schemas. Checks whether names of the list element
contain duplicates, throws an error if they do. A wrapper around
\cod... |
7b6a5723d9ae72560dcf1a48120b18a9044f959f | fa60f8262586afbf25096cfb954e5a9d391addf7 | /R_Machine_Learning/hw_Emp_SVM_Tune_DecTree_RandFor_.R | fee5d94f1447fec35c03c07b01bcfa800593649e | [] | no_license | pprasad14/Data_Science_with_R | ce5a2526dad5f6fa2c1fdff9f97c71d2655b2570 | 3b61e54b7b4b0c6a6ed0a5cc8243519481bb11b9 | refs/heads/master | 2020-05-05T08:56:39.708519 | 2019-04-06T20:42:11 | 2019-04-06T20:42:11 | 179,884,402 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,540 | r | hw_Emp_SVM_Tune_DecTree_RandFor_.R | # Emp dataset : Decision Tree, Random Forest using SVM and tuning
dataset = read.csv("Emp.csv")
#select around 3k observations, since 32K observations is computationally expensive
library(caTools)
set.seed(123)
split = sample.split(dataset$Emp_Sal, 0.90)
dataset = subset(dataset, split == F)
#changin Emp_Sal to '... |
89652f170dcd9d7ef6f2d0ed81140b7da7616f06 | 42e359d703bdb6ddfac67cb2ec3dcf38d01bb494 | /grids/NASIS/m_NASIS.R | e377f7b57a03c125402be211b8b821dcf6da5275 | [] | no_license | avijeet1132/SoilGrids250m | d27311960bc5c9959d4b6f28d53605f629f6290c | 67603870af79ffe774a9344d84c442aa56d2e131 | refs/heads/master | 2020-04-06T04:36:17.046925 | 2016-04-29T06:35:51 | 2016-04-29T06:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,754 | r | m_NASIS.R | ## Fit models for GreatGroups based on NASIS points (ca 350,000)
## Code by Tom.Hengl@isric.org / points prepared by Travis Nauman (tnauman@usgs.gov)
setwd("/data/NASIS")
library(aqp)
library(plyr)
library(stringr)
library(dplyr)
library(sp)
library(devtools)
library(caret)
#devtools::install_github("imbs-hl/ranger/ra... |
ae3f23b45fe29fc8cb6040ecd11df364985e7f1e | 05b3d551133a9f5f56a54fced65778c3c670e52f | /s05_multiple_linear_regression.R | 64dc45ecb293ddbccdbffae6cb2f5ac936b269da | [] | no_license | mbeveridge/SDS_MachineLearning | dd4a90692bbbdf02e7d60f2980533139e25b05ea | b33287c7adabc9bea526d7934a1da667f174488f | refs/heads/master | 2021-07-10T03:20:18.803325 | 2019-01-21T16:35:59 | 2019-01-21T16:35:59 | 135,911,406 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,878 | r | s05_multiple_linear_regression.R | # Multiple Linear Regression
# Importing the dataset
dataset = read.csv('data/s5_50_Startups.csv')
# dataset = dataset[, 2:3]
# Encoding categorical data [§5 Lect48: "MLR - R pt1" ...@3min00]
dataset$State = factor(dataset$State,
levels = c('New York', 'California', 'Florida'),
... |
7d12d5b856345be0015db325464ad98292e1ba58 | a7045f6708f8bd65a54a946a544682325a4ae004 | /man/figLayout.rd | 4cea2df84438c7c125519d537874a563052a16da | [] | no_license | jjcurtin/lmSupport | a621e2a38211e4aacd4e41597d92df6ac303f97c | 1ba8feed959abd9c01c7041f8457d775cb59bb24 | refs/heads/main | 2023-04-06T01:36:59.490682 | 2021-05-06T02:12:53 | 2021-05-06T02:12:53 | 364,758,953 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,468 | rd | figLayout.rd | \name{figLayout}
\alias{figLayout}
\title{Wrapper for standarized use of layout()}
\description{
Wrapper function for standardized use of layout() and layout.show()
}
\usage{figLayout(nRows, nCols, heights=rep(1,nRows), widths=rep(1,nCols),
layout.display=NULL)}
\arguments{
\item{nRows, nCols}{integers spec... |
d115f6ce93adad09e8fa8f60ab4c3712c9030348 | a09b27e16aac0233f01567851eb99a99c6116af3 | /sesion_3/retos/Entrega_retos_sesion3/reto_3_p3.R | 78a2a5ce4c5f5e0a0f3bc01578fa02e9a3190630 | [] | no_license | raqueljimenezm/ecoinformatica_2014_2015 | 2f974bb87ecb7236fffc7d4796373daa49942c00 | d0123683a7bfd61aae34bb4fb56a5c3d97fa7a73 | refs/heads/master | 2021-01-16T20:57:52.332052 | 2015-02-09T00:39:35 | 2015-02-09T00:39:35 | 30,033,204 | 0 | 0 | null | 2015-01-29T17:54:20 | 2015-01-29T17:54:20 | null | UTF-8 | R | false | false | 157 | r | reto_3_p3.R | # Introduzco la cantidad de datos de temperaturas de los cuales quiero hacer la media
temp<-scan(n=10)
# Hago la media de esas 10 temperaturas.
mean(temp)
|
71312fb688cea42192f3e30323b5c852b2fcbf30 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/QFRM/examples/BarrierLT.Rd.R | acec65eaa04943c53acc88227f4f767b7507ed76 | [] | 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,291 | r | BarrierLT.Rd.R | library(QFRM)
### Name: BarrierLT
### Title: Barrrier option valuation via lattice tree (LT)
### Aliases: BarrierLT
### ** Examples
# default Up and Knock-in Call Option with H=60, approximately 7.09
(o = BarrierLT())$PxLT
#Visualization of price changes as Nsteps change.
o = Opt(Style="Barrier")
visual=sapply(10:... |
2ca3e9025d449f5edd187a870b23bd9695b9d187 | 37ac06cf0247ccf7af1553e8098643b7350102db | /tests/testthat/test_subset_points.R | c446f0024f498243b29cc843ccbe941fbf0202e3 | [
"MIT"
] | permissive | shenyang1981/iSEE | 7c6606889e97594d76f7532ff1b1aeef03cdf2fa | 3f81ffcdd12bf457a280f5a4df0d2dd5e440a62c | refs/heads/master | 2020-04-15T17:46:41.172946 | 2019-12-31T10:26:14 | 2019-12-31T10:26:14 | 164,887,242 | 0 | 0 | MIT | 2019-12-31T10:26:15 | 2019-01-09T15:21:35 | R | UTF-8 | R | false | false | 1,000 | r | test_subset_points.R | context("subset_points")
# This tests the subsetPointsByGrid function.
# library(testthat); library(iSEE); source("test_subset_points.R")
set.seed(110001)
test_that("subsetPointsByGrid works correctly", {
x <- rnorm(20000)
y <- rnorm(20000)
chosen <- subsetPointsByGrid(x, y, resolution=200)
expect_tru... |
fe502504cd37617bc658c66a6226d95490ca8161 | 8f8494b8b2da1d7191b30905ed35ef37e4b7f21b | /Project2-TxtMining_v2.R | ae2c1f84d02f789933e5d61e2f871f66a336aa99 | [] | no_license | Leesann1987/Tweet-Text-Mining | c007ed46991348e2f9a7d0d2a8d34737790facd9 | 59b9ee19d7a5d0dcdf0f3cd9820f194cd62ab154 | refs/heads/master | 2022-05-25T04:05:19.466467 | 2020-04-30T14:33:05 | 2020-04-30T14:33:05 | 260,234,416 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,757 | r | Project2-TxtMining_v2.R | ########################### PROJECT 2 - TEXT MINING ################################
library(textclean)
library(twitteR)
library(tm)
library(stopwords)
library(wordcloud)
library(topicmodels)
library(ggplot2)
library(data.table)
library(sentimentr)
library(dplyr)
library(tidyverse)
library(ggtheme... |
2e77f776dfa5a8297a94182e243b996d191ef417 | 7bb3f64824627ef179d5f341266a664fd0b69011 | /Basic_Engineering_Mathematics_by_John_Bird/CH16/EX16.18/Ex16_18.R | 0b76afb01bae295db257f35b2e549fb759044ef5 | [
"MIT"
] | permissive | prashantsinalkar/R_TBC_Uploads | 8bd0f71834814b1d03df07ce90b2eae3b7d357f8 | b3f3a8ecd454359a2e992161844f2fb599f8238a | refs/heads/master | 2020-08-05T23:06:09.749051 | 2019-10-04T06:54:07 | 2019-10-04T06:54:07 | 212,746,586 | 0 | 0 | MIT | 2019-10-04T06:03:49 | 2019-10-04T06:03:48 | null | UTF-8 | R | false | false | 659 | r | Ex16_18.R | #page no. 147
#problem 18
#load package --->measurements
library(measurements)
#formula used: alpha = (1/theta)log(R/R0)
#
#function:
find_alpha = function(theta,R,R0)
{
return((1/theta)*log(R/R0))
}
find_theta = function(alpha,R,R0)
{
return((1/alpha)*log(R/R0))
}
#given:
r0 = 5 #kilo_ohm... |
88cbaaff0a2690aba90d118ae5798b36a71fdfed | d76e36ad72d9d8775d1c7f084c16e8d3335ae943 | /R/Poisson Distribution.R | 08b814aad4bc6b0e02bfeaef2f84d330210e6612 | [
"MIT"
] | permissive | natitaw/write-to-learn | 73f84f2703fccae35c94c2b5d0984c75355af44d | 3744d25d1cbeb8a4d056cb853431c3212118d56e | refs/heads/master | 2022-12-02T05:23:24.214468 | 2022-12-01T16:05:32 | 2022-12-01T16:05:32 | 272,259,522 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 343 | r | Poisson Distribution.R | # Poisson Distribution
# X follows a POISSON distribution with a known
# rate of lambda = 7
# X ~ POISSON(lambda=7)
# Probability x=4
dpois(x=4, lambda=7)
# P(X=0) & P(X=1) & ... & P(X=4)
dpois(x=0:4, lambda=7)
# P(X<=4)
sum(dpois(x=0:4, lambda=7))
# OR
ppois(q=4, lambda=7, lower.tail=T)
# P (X>=12)
ppois(q=12, l... |
a50eb46497ab78afac69bec6d96dd27013e99ead | a5a653041e1d3455c920b19c277cc8826e1fb707 | /man/fars_read.Rd | 8fbe8808d81c9a657df62086172ea9929f58e136 | [] | no_license | demydd/Rpackagebuild | dbdbf8bbe0ff5426d70f6d6097599b93220734ff | 4ed2ba8ad339be7e9a5773e3f0e85f1ebfbafe0c | refs/heads/master | 2020-03-10T23:17:38.311759 | 2018-04-17T22:17:59 | 2018-04-17T22:17:59 | 129,638,140 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,132 | rd | fars_read.Rd | \name{fars_read}
\alias{fars_read}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Read files
}
\description{
The function read data from files specified by the user
}
\usage{
fars_read(filename)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{filename}{
the file na... |
c3f7ffba51da87161b3cb3ddff7ffb085f379b3e | fac4706f542ff0c4e96625597008aeeab12509e8 | /shiny_arboc-score/app.R | 3d6a9f20746aa1cd298668c8fee36079cd1ad4d5 | [
"MIT"
] | permissive | alwinw/arboc-score | e1897687caff4e5b07ae4d5231f55f6bd88601ed | 0761dd4cf30afd11fdbd313ea17eca4320c29055 | refs/heads/main | 2023-05-10T05:26:17.587201 | 2021-06-05T12:10:39 | 2021-06-05T12:10:39 | 374,060,891 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,935 | r | app.R | library(shiny)
library(DT)
# Define UI for application that draws a histogram
ui <- fluidPage(
titlePanel("AKI risk based on creatinine (ARBOC) score"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
checkboxGroupInput(
inputId = "factors",
label = "Risk ... |
a57ef623dac4189c82d4384c8c7502b5f70d71d6 | 29585dff702209dd446c0ab52ceea046c58e384e | /HistogramTools/inst/unitTests/runit.subset.R | 8b34e9c45de43c243537e8edddc2d26e3d33c055 | [] | 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 | 1,604 | r | runit.subset.R | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
90cf95c97802f8f56bd4c1e26f7b79f8ea8c3350 | ee3186683b1576e011a5c1935b8a95b6b05a2ee5 | /Classification Models Dataset & Code/SVM.R | f2f3867b2a2f5d5b3e777ce1c83d15850ac67ea7 | [] | no_license | SrishtiIssrani/DissertationProject | 70136613dfd696b7cb296af9aa343df79d44ebc9 | dfda7a3f4bba5d74662690747e353914ac364a89 | refs/heads/master | 2020-05-18T02:49:07.069391 | 2019-04-29T19:17:05 | 2019-04-29T19:17:05 | 184,128,508 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,244 | r | SVM.R | install.packages('caTools')
install.packages('e1071')
install.packages('caret')
install.packages('randomForest')
library(caTools)
library(e1071)
library(caret)
library(randomForest)
dataset = read.csv('DataPrepforClassification copy 3.csv')
dataset = dataset[3:14]
#Encoding Categorical Data Verdict
dataset$Verdict = f... |
db177a7c21b55747589f857ec13fb0751cf90581 | 65061d49c0c51ab8db342adfd28df593ef8cf361 | /best.r | af67b9d44146772d3a5a81e3a41a415c25839de0 | [] | no_license | ahmed007/RAssignment3 | b1d85a961aabd196fe983cdcc652caf618672d18 | 128d45bd2fb86aae504cddd93028e8c83c5cf59c | refs/heads/master | 2021-01-19T01:02:32.477237 | 2016-07-14T15:41:01 | 2016-07-14T15:41:01 | 63,348,433 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,909 | r | best.r | #Write a function called best that take two arguments: the 2-character abbreviated name of a state and an outcome name. The function reads the
#outcome-of-care-measures.csv le and returns a character vector with the name of the hospital that has the best (i.e. lowest) 30-day mortality for the speci ... |
6a3c9d9a5d83dd5d4db86e31f1276be6c2532da3 | 8213941f015535abc4eda6aabaad02a6f31736de | /App.R | b4d64a7a921981abb2bf696863487bc79d9c6e52 | [] | no_license | mayank221/TABA-Assignment | 515c40c820f322011fedb607c87b5452e47fc6b1 | 30822abd1a306e2dc4480a8a81eaaa0cf35a26c9 | refs/heads/master | 2020-06-25T11:02:57.629882 | 2019-07-28T19:51:16 | 2019-07-28T19:51:16 | 199,291,247 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,057 | r | App.R | library("shiny")
shinyUI(
fluidPage(
titlePanel("Udipipe Shiny App"),
sidebarLayout(
sidebarPanel(
fileInput("Text_Input", "Upload English Text File in .txt format:"),
checkboxGroupInput("checkGroup", label = h3("Speech Tags"),
... |
5003529d520a7c492b6fcf68f672450768440642 | 8f98e70fef3d9e7f3dd1fd07f687e01995d0b6d7 | /HW1/hw1_4_matrix2.R | ae6e17af255835d7cf693d244dbaa801f59e6868 | [] | no_license | QihangYang/Computational-Statistics | 63814aa9ce6763f905db3665f1ed8f37391e7dfb | d26c30c3cdddecc7962144da1266439507cecfab | refs/heads/master | 2020-12-22T00:14:32.193964 | 2020-04-10T00:02:23 | 2020-04-10T00:02:23 | 236,611,768 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,405 | r | hw1_4_matrix2.R | # HW1: matrix3
#
# 1. Set the random seed as 5206. (hint: check the set.seed function)
# Save the random seed vector to `seed`.(hint: use the command seed <- .Random.seed)
# 2. Create a vector `v1` of length 30 by sampling from 1 to 30 without replacement.(hint: check the sample function)
# 3. Convert the vector `v1... |
e17ac9457a3ccdf615b4b25c1cf2982c2ebe987b | 6464efbccd76256c3fb97fa4e50efb5d480b7c8c | /paws/man/computeoptimizer_get_enrollment_status.Rd | 02b01a6b2bd66af904097018dd9f83070fc07589 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | johnnytommy/paws | 019b410ad8d4218199eb7349eb1844864bd45119 | a371a5f2207b534cf60735e693c809bd33ce3ccf | refs/heads/master | 2020-09-14T23:09:23.848860 | 2020-04-06T21:49:17 | 2020-04-06T21:49:17 | 223,286,996 | 1 | 0 | NOASSERTION | 2019-11-22T00:29:10 | 2019-11-21T23:56:19 | null | UTF-8 | R | false | true | 711 | rd | computeoptimizer_get_enrollment_status.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/computeoptimizer_operations.R
\name{computeoptimizer_get_enrollment_status}
\alias{computeoptimizer_get_enrollment_status}
\title{Returns the enrollment (opt in) status of an account to the AWS Compute
Optimizer service}
\usage{
computeoptimi... |
a089e2ba20f50978e39b5ceb6a724a07702fae55 | 8fe9874a997b45c0aaad7344ed63114b1e0aa3ca | /final/4_w2v_final.R | b6b12b639b48e35f971a387a6172a22f4ec6728b | [] | no_license | Dongwoooon/BA562_cleaned | 87a0a227e83f61fd74fcf286de6f462288eaaca3 | 11b022a6339107df24cdcf072a3f11f3dd3edee8 | refs/heads/master | 2021-01-23T10:35:59.103751 | 2017-09-27T05:50:33 | 2017-09-27T05:50:33 | 102,622,456 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,011 | r | 4_w2v_final.R | library(dplyr)
library(data.table)
library(wordVectors)
setwd('J:/data/BA562/final/2_Data')
dic = read.csv('keyword_dict.csv',stringsAsFactors=F)
load("train_str.Rdata") # train.str
load("test_str.Rdata") # test.str
tr.train <- merge(train.str,dic,by="QRY",all.x=FALSE, all.y=TRUE) ## 검색어 중 dictionary에 있는 단... |
9253fca43c9a809c87aefbc452b0f80e8c426dbe | 6a28ba69be875841ddc9e71ca6af5956110efcb2 | /Probability_And_Statistics_For_Engineers_And_Scientists_by_Ronald_E._Walpole,_Raymond_H._Myers,_Sharon_L._Myers,_Keying_Ye/CH1/EX1.2/Ex1_2.R | b577f66875be7c1da9738b250b9151e2b9373006 | [] | permissive | FOSSEE/R_TBC_Uploads | 1ea929010b46babb1842b3efe0ed34be0deea3c0 | 8ab94daf80307aee399c246682cb79ccf6e9c282 | refs/heads/master | 2023-04-15T04:36:13.331525 | 2023-03-15T18:39:42 | 2023-03-15T18:39:42 | 212,745,783 | 0 | 3 | MIT | 2019-10-04T06:57:33 | 2019-10-04T05:57:19 | null | UTF-8 | R | false | false | 619 | r | Ex1_2.R | # Chapter 1
# Example 1.2 page no, 4 from the Pdf..
# To plot the Dotplot for the above data..
# package used "ggplot2" if not installed can be done using install.packages("ggplot2")
library(ggplot2)
obs <- c(0.32,0.53,0.28,0.37,0.47,0.43,0.36,0.42,0.38,0.43,0.26,0.43,0.47,0.49,0.52,0.75,0.79,0.86,0.62,0.46)... |
e8760e1c3ed93ddcfe11908f4f127f02a907f06f | 3f312cabe37e69f3a2a8c2c96b53e4c5b7700f82 | /ver_devel/bio3d/man/pca.xyz.Rd | 8b08f6a5795a9dbad60b9397973809462179b0a3 | [] | no_license | Grantlab/bio3d | 41aa8252dd1c86d1ee0aec2b4a93929ba9fbc3bf | 9686c49cf36d6639b51708d18c378c8ed2ca3c3e | refs/heads/master | 2023-05-29T10:56:22.958679 | 2023-04-30T23:17:59 | 2023-04-30T23:17:59 | 31,440,847 | 16 | 8 | null | null | null | null | UTF-8 | R | false | false | 4,820 | rd | pca.xyz.Rd | \name{pca.xyz}
\alias{pca.xyz}
\alias{print.pca}
\title{ Principal Component Analysis }
\description{
Performs principal components analysis (PCA) on a \code{xyz}
numeric data matrix.
}
\usage{
\method{pca}{xyz}(xyz, subset = rep(TRUE, nrow(as.matrix(xyz))),
use.svd = FALSE, rm.gaps=FALSE, mass ... |
562096e200566c93ae1b1f91623323ef6e55214e | 256f220648296026714d24947d25be71c9d5cf09 | /gen_supplmentary_figure.R | ecf1bdf73ca2f169d84a9c820634d07d2b3344c5 | [] | no_license | Xiaojieqiu/Census_BEAM | f07f9d37f20646469a14f9e88d459b1b6046d662 | b84a377f5890bc7829dc1565c4c4d2dc2c824f83 | refs/heads/master | 2021-03-22T05:03:42.708956 | 2015-11-14T20:12:17 | 2015-11-14T20:12:17 | 45,900,189 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 42,551 | r | gen_supplmentary_figure.R | library(monocle)
library(xacHelper)
load_all_libraries()
# load('analysis_other_supplementary_data.RData')
# load('analysis_lung_data.RData')
load('analysis_HSMM_data.RData')
##############################################################################################################
####generate th... |
10832804433d4aa2fa0bdbccd9b770d265664ae3 | a5d834452097b7cce7d001b057b9636c5a737bf2 | /R/utils.R | dae8650e56e7456f252eb13167c7559dac650109 | [] | no_license | a-benini/mdepriv | 0a8b21bd66167bbf9a980dbe7a5816fd26de05ff | 484adce29b6677fb5f65dcc7d10ff6cd88a36bb2 | refs/heads/master | 2021-10-23T21:33:33.810404 | 2021-10-09T10:57:54 | 2021-10-09T10:57:54 | 233,093,633 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,296 | r | utils.R | corr_mat_ <- function(data, items, corr_type, sampling_weights) {
weightedCorr_automated <- function(x, y, corr_type, sampling_weights) {
n_distinct_x <- length(unique(x))
n_distinct_y <- length(unique(y))
if (n_distinct_x < n_distinct_y) {
x_temp <- x
y_temp <- y
x <- y_temp
y <-... |
ab6578770660ba1a12db5d77a9702c6e6824d0d1 | 0fcbf5c651245a85ced0c6ecaacc34a483a83afd | /tests/testthat/test_object.R | 7bb9e2ff9765a7378e203cee8c77ca70a6f36eed | [
"MIT"
] | permissive | AndersenLab/cegwas2 | 48a0c2bd8e840d97c680ceab7513116893754b30 | 3717c0236f398b0fb819bf2a83ee947db4f95625 | refs/heads/master | 2021-06-03T15:26:16.323174 | 2020-08-23T23:11:17 | 2020-08-23T23:11:17 | 113,356,402 | 0 | 2 | MIT | 2020-02-24T22:29:49 | 2017-12-06T19:06:00 | R | UTF-8 | R | false | false | 1,109 | r | test_object.R | testthat::context("tests/testthat/test_object.R")
options(stringsAsFactors = FALSE)
df <- data.table::fread(system.file("extdata",
"test_phenotype.tsv",
package = "cegwas2",
mustWork = TRUE)) %>%
dplyr::sel... |
ce3babc06b720afe0ec6eaf150f988502e86ab6e | 82f22590405a457c63cb9f9baeafee96ac9eb431 | /apa_tools/apa_tools.R | 68bd93af4ddf3df1e5c2b68bbf2e6b603c7c4f90 | [] | no_license | zm-git-dev/apa_bin | df5026b74fe02f4f6d6f948dad8d12867bd3afad | 73816825db72a1f7203b625a7651507afd25142f | refs/heads/master | 2022-09-13T07:04:40.922889 | 2018-07-24T20:37:08 | 2018-07-24T20:37:08 | 191,887,492 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 41 | r | apa_tools.R | /home/apa/local/git/apa_tools/apa_tools.R |
0962fd4c114fda62effde6db2b57f42da0080960 | 04a7c98ebecf2db764395c90455e8058711d8443 | /man/pvdiv_gwas.Rd | 1d357846f4681e408270ddc1a30d1142bb2f3c39 | [] | no_license | Alice-MacQueen/switchgrassGWAS | f9be4830957952c7bba26be4f953082c6979fdf2 | 33264dc7ba0b54aff031620af171aeedb4d8a82d | refs/heads/master | 2022-02-01T01:12:40.807451 | 2022-01-17T20:56:20 | 2022-01-17T20:56:20 | 198,465,914 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,637 | rd | pvdiv_gwas.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pvdiv_gwas.R
\name{pvdiv_gwas}
\alias{pvdiv_gwas}
\title{Wrapper for bigsnpr for GWAS on Panicum virgatum.}
\usage{
pvdiv_gwas(
df,
type = c("linear", "logistic"),
snp,
covar = NA,
ncores = 1,
npcs = 10,
saveoutput = FALSE
)
}
\... |
04d41c77f6f5f4c01486233045caabcfdc6ca551 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/riverdist/examples/addverts.Rd.R | 69ad2be0548cea51529ca3fe61b30cfe457b860a | [] | 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 | 420 | r | addverts.Rd.R | library(riverdist)
### Name: addverts
### Title: Add Vertices To Maintain a Minimum Distance Between Vertices
### Aliases: addverts
### ** Examples
data(Kenai3)
Kenai3split <- addverts(Kenai3,mindist=200)
zoomtoseg(seg=c(47,74,78), rivers=Kenai3)
points(Kenai3$lines[[74]]) # vertices before adding
zoomtose... |
7d4e2fa760f4f49b95e6438664201999992c9f6a | 3819c5c65f13b185b8fb714d7349abfecb793a72 | /man/BOWLBasic-class.Rd | 7aa27b899fcfc274192b86e41702c5858652f66f | [] | no_license | cran/DynTxRegime | ed877579c6ffc6156fb6c84298a58d1db5940dff | 9ecb35dfd9abf9617e0179d3d4d552dce22314e5 | refs/heads/master | 2023-06-25T03:37:01.776586 | 2023-04-25T13:50:11 | 2023-04-25T13:50:11 | 37,244,072 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,287 | rd | BOWLBasic-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/R_class_BOWLBasic.R
\docType{class}
\name{BOWLBasic-class}
\alias{BOWLBasic-class}
\title{Class \code{BOWLBasic}}
\description{
Class \code{BOWLBasic} contains the results for a single OWL analysis and the
weights needed for next iteration
... |
8c63773bc387ba75b21b1dbf2a9ad0457bb861ce | 8cca3a9614dcce73ed38663972ea60de19ef75d8 | /analyses/analyses_decision_making/OLD_/functions/plot_measures.R | 68793023e923d4ecc16350f4c284395050e2590d | [] | no_license | moramaldonado/MouseTracking | e418396511042fc78b9ea910f962e5f21e4b12d3 | 474c9297ab7d9c797219ad7ef362a46b7b0a81da | refs/heads/master | 2021-12-15T12:30:51.668939 | 2021-12-13T12:44:39 | 2021-12-13T12:44:39 | 75,234,939 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,586 | r | plot_measures.R |
##PLOTTING different measures
#Input: data= data, measure = 'measure', division = 'division'
#Output: multiplot with plots for histogram, density and bar graph taken from means + print of means + SE
plot_measure <- function(data, measure, division){
histogram <- ggplot(data, aes_string(x=measure, fill=division), env... |
74e3554011c9878c70422efe3d79eb3799d68850 | 32f251147606d865a04834ba8f08f8be75410738 | /man/check_species_byclass.Rd | 9eeed94c489b4bd717aaad99873453b214858aeb | [] | no_license | cdv04/ACTR | 4e17aaab32d319b1b609b6c1c0c553a0f7e41317 | d1762dc8884eb37b023cf146a71c05a96508cc08 | refs/heads/master | 2021-01-01T05:11:47.528297 | 2017-04-07T10:16:40 | 2017-04-07T10:16:40 | 59,212,181 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 582 | rd | check_species_byclass.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_levels.R
\name{check_species_byclass}
\alias{check_species_byclass}
\title{Print all the levels (modalities) of Species for each Class of for each Dose Type}
\usage{
check_species_byclass(dataset)
}
\arguments{
\item{dataset}{A datafram... |
093868c5eff16220e92eedcc77f5dc7edf415ace | 91168649462ac9871e31d45491021e9909080023 | /pruebas_iniciales_R.r | d04aa9504d5130cab300b582651b22745b795812 | [] | no_license | giss-ignacio/data-science | 0da6a6a8df46613d7a2cd640aa8669bddb80c9b2 | 350803273e2c84b0176c48c8f94a5a01ca73a620 | refs/heads/master | 2021-01-21T11:40:00.302280 | 2018-06-03T23:54:12 | 2018-06-03T23:54:12 | 42,420,598 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,357 | r | pruebas_iniciales_R.r | #directorio donde están los set de datos. Lo mismo que ir a Session->Set Working Directory -> Choose Directory
setwd("C:/Dev/Datos/TP/Data")
# lee el csv train y lo asigna a la variable train
train <- read.csv("train.csv")
# lee el csv test y lo asigna a la variable test
test <- read.csv("test.csv")
# --------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.