content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
#metodo punto fijo #Declaracion de funciones puntofijo =function(g, x0, tol, maxIteraciones){ k = 1 # iteración hasta que abs(x1 - x0) <= tol o se alcance maxIteraciones repeat{ x1 = g(x0) dx = abs(x1 - x0) x0 = x1 #Imprimir estado cat("x_", k, "= ", x1, "\n") k = k+1 #until if(dx<...
/Taller1/Metodos/MetodoPuntoFijo.R
no_license
ruizcamilo/AnalisisNum-2019-03
R
false
false
617
r
#metodo punto fijo #Declaracion de funciones puntofijo =function(g, x0, tol, maxIteraciones){ k = 1 # iteración hasta que abs(x1 - x0) <= tol o se alcance maxIteraciones repeat{ x1 = g(x0) dx = abs(x1 - x0) x0 = x1 #Imprimir estado cat("x_", k, "= ", x1, "\n") k = k+1 #until if(dx<...
#cars data = read.csv("./../data/vehicles.csv", sep=",") View(data) names(data) hist(data$price) ncol(data)#[1] 25 nrow(data)#[1] 509577 # Check for missing values rowSums(is.na(data)) colSums(is.na(data)) sum(which((rowSums(is.na(data))/ncol(data))>0.5)) # 0 (colSums(is.na(data))/nrow(data))>0.5 # 1 sum(...
/cars/read.R
no_license
mariajoaolavoura/sda_project
R
false
false
3,596
r
#cars data = read.csv("./../data/vehicles.csv", sep=",") View(data) names(data) hist(data$price) ncol(data)#[1] 25 nrow(data)#[1] 509577 # Check for missing values rowSums(is.na(data)) colSums(is.na(data)) sum(which((rowSums(is.na(data))/ncol(data))>0.5)) # 0 (colSums(is.na(data))/nrow(data))>0.5 # 1 sum(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stream_data.R \name{stream_read_orc} \alias{stream_read_orc} \title{Read ORC Stream} \usage{ stream_read_orc(sc, path, name = NULL, columns = NULL, options = list(), ...) } \arguments{ \item{sc}{A \code{spark_connection}.} \item{path}{The ...
/man/stream_read_orc.Rd
permissive
zslajchrt/sparklyr
R
false
true
1,597
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stream_data.R \name{stream_read_orc} \alias{stream_read_orc} \title{Read ORC Stream} \usage{ stream_read_orc(sc, path, name = NULL, columns = NULL, options = list(), ...) } \arguments{ \item{sc}{A \code{spark_connection}.} \item{path}{The ...
### INIT START ##### library(devtools) # devtools::install_github("nriddiford/svBreaks", force = T) # devtools::install_github("nriddiford/mutationProfiles", force = T) devtools::load_all(path = '~/Desktop/script_test/svBreaks') devtools::load_all(path = '~/Desktop/script_test/mutationProfiles') library(svBreaks) li...
/sv_analysis.R
no_license
nriddiford/Riddiford_et_al_2020
R
false
false
32,876
r
### INIT START ##### library(devtools) # devtools::install_github("nriddiford/svBreaks", force = T) # devtools::install_github("nriddiford/mutationProfiles", force = T) devtools::load_all(path = '~/Desktop/script_test/svBreaks') devtools::load_all(path = '~/Desktop/script_test/mutationProfiles') library(svBreaks) li...
library(SPINA) ### Name: estimated.sTSHI ### Title: Jostels TSH index in standardised form ### Aliases: estimated.sTSHI ### Keywords: SPINA ### ** Examples TSH <- c(1, 3.24, 0.7); FT4 <- c(16.5, 7.7, 9); FT3 <- c(4.5, 28, 6.2); print(paste("GT^:", SPINA.GT(TSH, FT4))); print(paste("GD^:", SPINA.GD(FT4, FT3))); prin...
/data/genthat_extracted_code/SPINA/examples/estimated.sTSHI.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
363
r
library(SPINA) ### Name: estimated.sTSHI ### Title: Jostels TSH index in standardised form ### Aliases: estimated.sTSHI ### Keywords: SPINA ### ** Examples TSH <- c(1, 3.24, 0.7); FT4 <- c(16.5, 7.7, 9); FT3 <- c(4.5, 28, 6.2); print(paste("GT^:", SPINA.GT(TSH, FT4))); print(paste("GD^:", SPINA.GD(FT4, FT3))); prin...
## Put comments here that give an overall description of what your ## functions do ## Function which transcribes plain matrix into list that contains matrix and cache of inversion makeMatrix <- function(x = matrix()) { i <- NULL #sets variable for inversion set <- function(y) { ...
/cachematrix.R
no_license
stalmar/ProgrammingAssignment2
R
false
false
1,479
r
## Put comments here that give an overall description of what your ## functions do ## Function which transcribes plain matrix into list that contains matrix and cache of inversion makeMatrix <- function(x = matrix()) { i <- NULL #sets variable for inversion set <- function(y) { ...
#Plot 2 require(lubridate) #Download and read files if(!(file.exists("Source_Classification_Code.rds"))){ download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", "dataset.zip") unzip("dataset.zip") file.remove("dataset.zip") } #Variable creation and general cleanup SCC <- readRDS(fil...
/plot2.R
no_license
joaoclemencio/EDA-Course-Project-2
R
false
false
1,276
r
#Plot 2 require(lubridate) #Download and read files if(!(file.exists("Source_Classification_Code.rds"))){ download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip", "dataset.zip") unzip("dataset.zip") file.remove("dataset.zip") } #Variable creation and general cleanup SCC <- readRDS(fil...
#' getPrds #' #' This function returns calendar month periods for `map` GA queries #' #' @param start_date #' @param end_date #' #' @return #' @export #' #' @examples getPrds <- function(start_date, end_date = Sys.Date() - days(1)) { if (is.character(start_date)) { start_date <- ymd(start_date) } start_date ...
/R/getPrds.R
no_license
jimmyg3g/myfirstpackage
R
false
false
723
r
#' getPrds #' #' This function returns calendar month periods for `map` GA queries #' #' @param start_date #' @param end_date #' #' @return #' @export #' #' @examples getPrds <- function(start_date, end_date = Sys.Date() - days(1)) { if (is.character(start_date)) { start_date <- ymd(start_date) } start_date ...
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(2.6485709511171e-260, 0, 0, 0), .Dim = c(4L, 1L))) result <- do.call(palm:::pbc_distances,testlist) str(result)
/palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988224-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
189
r
testlist <- list(lims = structure(0, .Dim = c(1L, 1L)), points = structure(c(2.6485709511171e-260, 0, 0, 0), .Dim = c(4L, 1L))) result <- do.call(palm:::pbc_distances,testlist) str(result)
test_that("multiplication works", { library(tidyverse) library(class) library(randomForest) data("iris") set.seed(302) kk <- my_rf_cv(5) except_equal(kk, 0.132636682265531) })
/tests/testthat/test-my_rf_cv.R
no_license
Qiaozf/Stat302.Proj3
R
false
false
178
r
test_that("multiplication works", { library(tidyverse) library(class) library(randomForest) data("iris") set.seed(302) kk <- my_rf_cv(5) except_equal(kk, 0.132636682265531) })
#------------------------------------------------------------------------------# # I/O helper # # functions # #----------------------------------------------------------------------------...
/helper_io.R
permissive
hochwagenlab/SNP-ChIP
R
false
false
3,601
r
#------------------------------------------------------------------------------# # I/O helper # # functions # #----------------------------------------------------------------------------...
library(FactSetOnDemand) downloadUniverse <- function(portfolio_ofdb){ data <- FF.ExtractOFDBUniverse(portfolio_ofdb, "0O") print(paste("Loaded universe from", portfolio_ofdb)) universe <- data$Id return(universe) } outdir <- "/home/honda/mpg/frontier/output" dir.create(outdir) universe <- downlo...
/scripts/downloadUniverse.r
no_license
pickledplum/mpg
R
false
false
1,240
r
library(FactSetOnDemand) downloadUniverse <- function(portfolio_ofdb){ data <- FF.ExtractOFDBUniverse(portfolio_ofdb, "0O") print(paste("Loaded universe from", portfolio_ofdb)) universe <- data$Id return(universe) } outdir <- "/home/honda/mpg/frontier/output" dir.create(outdir) universe <- downlo...
context("test-individual-apps.R") test_that("individual simulator functions run correctly", { result <- simulate_modelvariants_ode(V = 100, k1 = 0 , k2 = 0, k3 = 1e-4) testthat::expect_equal(max(result$ts$A), 0) result <- simulate_pkpdmodel_ode(V = 100, txstart = 10, n = 1e5, dU =...
/tests/testthat/test-individual-apps.R
no_license
ahgroup/DSAIRM
R
false
false
717
r
context("test-individual-apps.R") test_that("individual simulator functions run correctly", { result <- simulate_modelvariants_ode(V = 100, k1 = 0 , k2 = 0, k3 = 1e-4) testthat::expect_equal(max(result$ts$A), 0) result <- simulate_pkpdmodel_ode(V = 100, txstart = 10, n = 1e5, dU =...
#plot(path_planning$D_distance, type="o", col="blue", xlab = "Map Number", ylab = "Path Distance (m)", ylim = c(20, 35), main = "Distance of Paths planned by Dijkstra and A*") #lines(path_planning$`A*_distance`, type="o", pch=22, lty=2, col="red") #legend(1, 32, legend=c("A*", "Dijkstra"), col=c("red", "blue"), lty=2:1...
/results/Data_plot_R.R
no_license
plhsu19/II2202-Project_Shortest-Path-Algorithms-based-Path-Planning-for-Autonomous-Vehicles
R
false
false
662
r
#plot(path_planning$D_distance, type="o", col="blue", xlab = "Map Number", ylab = "Path Distance (m)", ylim = c(20, 35), main = "Distance of Paths planned by Dijkstra and A*") #lines(path_planning$`A*_distance`, type="o", pch=22, lty=2, col="red") #legend(1, 32, legend=c("A*", "Dijkstra"), col=c("red", "blue"), lty=2:1...
################################################################################# # # Microbiome variation across bodysites in hyenas # # Rojas et al 2020.Body-site specific variation reflect sex and # age-class among wild spotted hyenas # # ...
/scripts/06_alpha_diversity.R
no_license
rojascon/Rojas_et_al_2020_BodySites_Microbiome
R
false
false
7,961
r
################################################################################# # # Microbiome variation across bodysites in hyenas # # Rojas et al 2020.Body-site specific variation reflect sex and # age-class among wild spotted hyenas # # ...
#' Summarise each group of a SpatVector down to one geometry #' #' @description #' `summarise()` creates a new SpatVector. It returns one geometry for each #' combination of grouping variables; if there are no grouping variables, the #' output will have a single geometry summarising all observations in the input #' and...
/R/summarise-SpatVector.R
permissive
dieghernan/tidyterra
R
false
false
3,148
r
#' Summarise each group of a SpatVector down to one geometry #' #' @description #' `summarise()` creates a new SpatVector. It returns one geometry for each #' combination of grouping variables; if there are no grouping variables, the #' output will have a single geometry summarising all observations in the input #' and...
pdf("f:/mygraph.pdf") attach(mtcars) plot(wt,mpg) abline(lm(mpg~wt)) title("Regression of MPG on Weight") detach(mtcars) dev.off()
/代码段/使用图形.R
no_license
duyux/R
R
false
false
132
r
pdf("f:/mygraph.pdf") attach(mtcars) plot(wt,mpg) abline(lm(mpg~wt)) title("Regression of MPG on Weight") detach(mtcars) dev.off()
# The function plotMtutSamp can display the number of derived strains with individual mutations. # Parameter GetSNP.data: The result of function GetSNP. # Parameter sample.number: The number of strain samples is used to obtain GetSNP.data. # Dependent package: reshape2, ggplot2. plotMtutSamp<-function(GetSNP.data,s...
/R/plotMtutSamp.R
no_license
liangcheng-hrbmu/FE-SARS-Cov-2
R
false
false
1,602
r
# The function plotMtutSamp can display the number of derived strains with individual mutations. # Parameter GetSNP.data: The result of function GetSNP. # Parameter sample.number: The number of strain samples is used to obtain GetSNP.data. # Dependent package: reshape2, ggplot2. plotMtutSamp<-function(GetSNP.data,s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecr_operations.R \name{ecr_put_image} \alias{ecr_put_image} \title{Creates or updates the image manifest and tags associated with an image} \usage{ ecr_put_image(registryId, repositoryName, imageManifest, imageManifestMediaType, imageTag, i...
/cran/paws.compute/man/ecr_put_image.Rd
permissive
TWarczak/paws
R
false
true
2,228
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecr_operations.R \name{ecr_put_image} \alias{ecr_put_image} \title{Creates or updates the image manifest and tags associated with an image} \usage{ ecr_put_image(registryId, repositoryName, imageManifest, imageManifestMediaType, imageTag, i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggPredict.R \name{restoreNames} \alias{restoreNames} \title{Restore factors in variable name as numeric} \usage{ restoreNames(x) } \arguments{ \item{x}{character vector} } \description{ Restore factors in variable name as numeric } \examples{...
/man/restoreNames.Rd
no_license
cardiomoon/predict3d
R
false
true
431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggPredict.R \name{restoreNames} \alias{restoreNames} \title{Restore factors in variable name as numeric} \usage{ restoreNames(x) } \arguments{ \item{x}{character vector} } \description{ Restore factors in variable name as numeric } \examples{...
#' Adjacency matrix of the Adirondack lakes #' #' A dataset containing the binary predator-prey interactions for the Adirondack #' lakes, obtained from the GATEWAy database 1.0 (Brose). #' #' @format A matrix with 211 rows and columns with 1 if species interacts and 0 #' if they don't. The names of the species are sa...
/R/data.R
permissive
emilio-berti/assembly
R
false
false
448
r
#' Adjacency matrix of the Adirondack lakes #' #' A dataset containing the binary predator-prey interactions for the Adirondack #' lakes, obtained from the GATEWAy database 1.0 (Brose). #' #' @format A matrix with 211 rows and columns with 1 if species interacts and 0 #' if they don't. The names of the species are sa...
# Exercise 1: practice with basic R syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Seattle" # Assign your name to the variable `my_name` my_name <- "Justin" # Assign your height (in inches) to a variable `my_height` my_height <- 75 # Create a variable `puppies` equal ...
/exercise-1/exercise.R
permissive
justinleonardo/ch5-r-intro
R
false
false
855
r
# Exercise 1: practice with basic R syntax # Create a variable `hometown` that stores the city in which you were born hometown <- "Seattle" # Assign your name to the variable `my_name` my_name <- "Justin" # Assign your height (in inches) to a variable `my_height` my_height <- 75 # Create a variable `puppies` equal ...
Disturbance <- function(metaPop,magnitude=0.5,DisType="uniform",N_p,prod,Npatches) { # function to apply the disturbance regime to patchy populations metaPop = round(metaPop) # what is our total metapopulation totalLoss = round(metaPop*magnitude) # how much is our targeted loss across metapopulation N_p = round...
/Functions/local disturbance.R
no_license
klwilson23/SpatialWatershed
R
false
false
3,831
r
Disturbance <- function(metaPop,magnitude=0.5,DisType="uniform",N_p,prod,Npatches) { # function to apply the disturbance regime to patchy populations metaPop = round(metaPop) # what is our total metapopulation totalLoss = round(metaPop*magnitude) # how much is our targeted loss across metapopulation N_p = round...
# Plik proszę nazwać numerem swojego indeksu. # # Zadanie 1: # a) Stwórz funkcję "KNNtrain" przyjmującą nastęujące parametry: "X", "y_tar", "k", "XminNew", "XmaxNew". # b) Funkcja w pierwszym kroku powinna sprawdzać czy analiza jest możliwa do wykonania tj: # czy "X" oraz "y_tar" nie mają braków danych, czy "k" jes...
/R_scripts/R_zadanka_vol-2/Zadanie_3/Zadania_3.r
no_license
Samox1/Python_Micro_Codes
R
false
false
10,451
r
# Plik proszę nazwać numerem swojego indeksu. # # Zadanie 1: # a) Stwórz funkcję "KNNtrain" przyjmującą nastęujące parametry: "X", "y_tar", "k", "XminNew", "XmaxNew". # b) Funkcja w pierwszym kroku powinna sprawdzać czy analiza jest możliwa do wykonania tj: # czy "X" oraz "y_tar" nie mają braków danych, czy "k" jes...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loading.R \name{as.DGEList} \alias{as.DGEList} \title{returns DGEList for edgeR from atacr object} \usage{ as.DGEList(atacr, which = "bait_windows", remove.zeros = FALSE) } \arguments{ \item{atacr}{an atacr object} \item{which}{the subset of...
/man/as.DGEList.Rd
no_license
TeamMacLean/atacr
R
false
true
516
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loading.R \name{as.DGEList} \alias{as.DGEList} \title{returns DGEList for edgeR from atacr object} \usage{ as.DGEList(atacr, which = "bait_windows", remove.zeros = FALSE) } \arguments{ \item{atacr}{an atacr object} \item{which}{the subset of...
# Copyright (C) Tal Galili # # This file is part of dendextend. # # dendextend is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # dend...
/R/labels_colors.R
no_license
CathG/dendextend
R
false
false
8,387
r
# Copyright (C) Tal Galili # # This file is part of dendextend. # # dendextend is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # dend...
source("src/BESummaryReport.R") dt_yields <- df_yields[1:300, -c(2:4)] %>% set_colnames(c( "Fire date", # "month", # "year", # "year_month", "LotNo", "Kiln", "Item", "Type", "EC", "PPI", "Composition", "Description", "Total Item Fired", "Total Item Rejected",...
/src/prepareTables.R
no_license
tastyCanOfMalk/FD_dashboard
R
false
false
2,746
r
source("src/BESummaryReport.R") dt_yields <- df_yields[1:300, -c(2:4)] %>% set_colnames(c( "Fire date", # "month", # "year", # "year_month", "LotNo", "Kiln", "Item", "Type", "EC", "PPI", "Composition", "Description", "Total Item Fired", "Total Item Rejected",...
#-------------------------------------------------------------------------------- # Problema a resolver #------------------------------------------------------------------------------- # Tres fabricas devem distribuir os produtos produzidos entre 5 depositos, e # queremos saber quanto devemos enviar de cada fabr...
/Transporte e Roteirização.R
no_license
LeooBassani/LinguagemR
R
false
false
4,004
r
#-------------------------------------------------------------------------------- # Problema a resolver #------------------------------------------------------------------------------- # Tres fabricas devem distribuir os produtos produzidos entre 5 depositos, e # queremos saber quanto devemos enviar de cada fabr...
## This file contains all the adjustment functions #' Adjust for latent factors, after rotationn #' #' @param corr.margin marginal correlations, p*d1 matrix #' @param n sample size #' @param X.cov estimated second moment of X, d*d matrix #' @param Gamma estimated confounding effects, p*r matrix #' @param Sigma diagona...
/R/adjust_functions.R
no_license
cran/cate
R
false
false
15,266
r
## This file contains all the adjustment functions #' Adjust for latent factors, after rotationn #' #' @param corr.margin marginal correlations, p*d1 matrix #' @param n sample size #' @param X.cov estimated second moment of X, d*d matrix #' @param Gamma estimated confounding effects, p*r matrix #' @param Sigma diagona...
## Together, these functions allow a matrix to be defined and its inverse ## calculated and cached. (It is assumed that matrices will be a square ## invertible matrix) ## This function contains methods to set a matrix, get the matrix, set the ## inverse of the matrix, and get the inverse of the matrix makeCacheMatrix...
/cachematrix.R
no_license
dschulz18/ProgrammingAssignment2
R
false
false
1,153
r
## Together, these functions allow a matrix to be defined and its inverse ## calculated and cached. (It is assumed that matrices will be a square ## invertible matrix) ## This function contains methods to set a matrix, get the matrix, set the ## inverse of the matrix, and get the inverse of the matrix makeCacheMatrix...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locations_and_currencies.R \name{get_country_information} \alias{get_country_information} \title{Get country information for a specific country.} \usage{ get_country_information(country_id) } \arguments{ \item{country_id}{Required. country_id...
/man/get_country_information.Rd
permissive
njcorona/mercadolibreR
R
false
true
732
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locations_and_currencies.R \name{get_country_information} \alias{get_country_information} \title{Get country information for a specific country.} \usage{ get_country_information(country_id) } \arguments{ \item{country_id}{Required. country_id...
% File man/print.summary.o_MMC.Rd \name{print.summary.o_MMC} \alias{print.summary.o_MMC} \title{Summary of the results of a M/M/c queueing model} \description{ Summary of the results of a M/M/c queueing model. } \usage{ \method{print}{summary.o_MMC}(x, \dots) } \arguments{ \item{x}{a object of class summary.o_MMC...
/man/print.summary.o_MMC.Rd
no_license
cran/queueing
R
false
false
983
rd
% File man/print.summary.o_MMC.Rd \name{print.summary.o_MMC} \alias{print.summary.o_MMC} \title{Summary of the results of a M/M/c queueing model} \description{ Summary of the results of a M/M/c queueing model. } \usage{ \method{print}{summary.o_MMC}(x, \dots) } \arguments{ \item{x}{a object of class summary.o_MMC...
require(data.table) library(lubridate) library(Hmisc) dt$Date <- dmy( dt$Date ) dt <- fread("H:\\LITERATURA_i_POBRANE\\R_kurs\\Cursera R\\Exploratory-Data-Analysis-Week-1\\household_power_consumption.txt") dt$Date <- dmy( dt$Date ) dt <- dt[Date >= "2007-02-01" & Date <= "2007-02-02", ] dt$data <- paste0(dt$Date , " " ...
/plot_2.R
no_license
JerzyOtwock/Exploratory-Data-Analysis-
R
false
false
867
r
require(data.table) library(lubridate) library(Hmisc) dt$Date <- dmy( dt$Date ) dt <- fread("H:\\LITERATURA_i_POBRANE\\R_kurs\\Cursera R\\Exploratory-Data-Analysis-Week-1\\household_power_consumption.txt") dt$Date <- dmy( dt$Date ) dt <- dt[Date >= "2007-02-01" & Date <= "2007-02-02", ] dt$data <- paste0(dt$Date , " " ...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(DT) # Define UI for application that draws a histogram shinyUI(flui...
/barseq/Archive/Shiny/ui.R
no_license
elianareal/Gametocytogenesis
R
false
false
1,165
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(DT) # Define UI for application that draws a histogram shinyUI(flui...
\name{pareto_density} \alias{pareto_density} \title{ Pareto density } \description{ A simple function is given here which returns the density function values for a Pareto RV. A more efficient implementation is obtainable in the function "dpareto" from the "VGAM" package. } \usage{ pareto_density(x, scale, shape) } \arg...
/man/pareto_density.Rd
no_license
cran/ACSWR
R
false
false
761
rd
\name{pareto_density} \alias{pareto_density} \title{ Pareto density } \description{ A simple function is given here which returns the density function values for a Pareto RV. A more efficient implementation is obtainable in the function "dpareto" from the "VGAM" package. } \usage{ pareto_density(x, scale, shape) } \arg...
#Sesión 7 # Pruebas de hipótesis y regresión lineal #hipotesis de varianza. #definimos la hipótesis. #1 h0: sigma=0.36 #2 h1: sigma =/ 0.36 #3 y 4 el ejemplo es el que presenta en el video con las siguientes variables. n= 18 s2 <- 0.68 #(varianza de la muestra) sigma20<- 0.36 #(varianza de la población) alfa <-...
/Tareas/sesion 7.R
no_license
Byron2012/ByronRamirez
R
false
false
3,067
r
#Sesión 7 # Pruebas de hipótesis y regresión lineal #hipotesis de varianza. #definimos la hipótesis. #1 h0: sigma=0.36 #2 h1: sigma =/ 0.36 #3 y 4 el ejemplo es el que presenta en el video con las siguientes variables. n= 18 s2 <- 0.68 #(varianza de la muestra) sigma20<- 0.36 #(varianza de la población) alfa <-...
install.packages("fpp") library(fpp) plot(melsyd[,"Economy.Class"],main="Economy class passengers: Melbourne-Sydney",xlab="Year",ylab="Thousands") plot(a10, ylab="$ million", xlab="Year", main="Antidiabetic drug sales") summary(melsyd) dj2 <- window(dj,end=250) plot(dj2,main="Dow Jones Index (daily ending 15 Jul 94)",...
/timeseries.R
no_license
sanjibb/R-Code
R
false
false
568
r
install.packages("fpp") library(fpp) plot(melsyd[,"Economy.Class"],main="Economy class passengers: Melbourne-Sydney",xlab="Year",ylab="Thousands") plot(a10, ylab="$ million", xlab="Year", main="Antidiabetic drug sales") summary(melsyd) dj2 <- window(dj,end=250) plot(dj2,main="Dow Jones Index (daily ending 15 Jul 94)",...
########### Data pre-processing and visualization######## # read data into memory data_set <- read.csv("hw05_data_set.csv") # get x and y values x <- data_set$x y <- data_set$y set.seed(521) # get number of samples N <- length(y) train_sample_count = 100 # randomly dividing the data set to training and ...
/05-Decision Tree Regression/Decision Tree Regression.R
permissive
ahakouz17/Machine-Learning-with-R
R
false
false
9,867
r
########### Data pre-processing and visualization######## # read data into memory data_set <- read.csv("hw05_data_set.csv") # get x and y values x <- data_set$x y <- data_set$y set.seed(521) # get number of samples N <- length(y) train_sample_count = 100 # randomly dividing the data set to training and ...
format <- c(Voltage="numeric", Global_active_power="numeric",Global_intensity="numeric",Sub_metering_1="numeric",Sub_metering_2="numeric",Sub_metering_3="numeric",Global_active_power="numeric",Global_reactive_power="numeric") data <- read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".", stringsAs...
/Plot4.R
no_license
Zephyr-Rising/ExData_Plotting1
R
false
false
1,504
r
format <- c(Voltage="numeric", Global_active_power="numeric",Global_intensity="numeric",Sub_metering_1="numeric",Sub_metering_2="numeric",Sub_metering_3="numeric",Global_active_power="numeric",Global_reactive_power="numeric") data <- read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".", stringsAs...
setwd("C:/Users/afrigo/Desktop/Hopkins Data Science/Class 3") # Load the NEI & SCC data frames. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #change back to correct folder setwd("C:/Users/afrigo/Desktop/Hopkins Data Science/Class 3/project_2") # Aggregate by sum the total em...
/Plot1.R
no_license
afrigo4/project_2
R
false
false
636
r
setwd("C:/Users/afrigo/Desktop/Hopkins Data Science/Class 3") # Load the NEI & SCC data frames. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #change back to correct folder setwd("C:/Users/afrigo/Desktop/Hopkins Data Science/Class 3/project_2") # Aggregate by sum the total em...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427829e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615765229-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427829e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
## REGIONAL CALCULATIONS # 2016-12-17 ## LOADING IN DATA population = read.csv("datasets/population2015.csv") attach(population) names(population) ## FIX POPULATION TO NUMERIC no_commas = sapply(Population, function(each_pop) { each_pop = gsub(",", "", each_pop) }) pop = as.numeric(no_commas) ## REGIONAL ...
/population/cleaningPopDataRegional.R
no_license
palautatan/philippineCrime
R
false
false
1,116
r
## REGIONAL CALCULATIONS # 2016-12-17 ## LOADING IN DATA population = read.csv("datasets/population2015.csv") attach(population) names(population) ## FIX POPULATION TO NUMERIC no_commas = sapply(Population, function(each_pop) { each_pop = gsub(",", "", each_pop) }) pop = as.numeric(no_commas) ## REGIONAL ...
# Script to prepare a tidy data set based on instructions given in # Getting clean data course project. # Instructions provided on Coursera.org # https://class.coursera.org/getdata-006/human_grading/view/courses/972584/assessments/3/submissions # You should create one R script called run_analysis.R that does the fo...
/run_analysis.R
no_license
git-madhav/getting_and_cleaning_data_cp
R
false
false
8,186
r
# Script to prepare a tidy data set based on instructions given in # Getting clean data course project. # Instructions provided on Coursera.org # https://class.coursera.org/getdata-006/human_grading/view/courses/972584/assessments/3/submissions # You should create one R script called run_analysis.R that does the fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/F0059.R \name{iba} \alias{iba} \title{iCellR Batch Alignment (IBA)} \usage{ iba( x = NULL, dims = 1:30, k = 10, ba.method = "CPCA", method = "base.mean.rank", top.rank = 500, plus.log.value = 0.1, scale.data = TRUE, gene.lis...
/iCellR/man/iba.Rd
no_license
akhikolla/InformationHouse
R
false
true
1,282
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/F0059.R \name{iba} \alias{iba} \title{iCellR Batch Alignment (IBA)} \usage{ iba( x = NULL, dims = 1:30, k = 10, ba.method = "CPCA", method = "base.mean.rank", top.rank = 500, plus.log.value = 0.1, scale.data = TRUE, gene.lis...
# make new column with average of two values comb.all.data$value.avg <- (comb.all.data$value.date1 + comb.all.data$value.date2) / 2 # calculate error and p error from real comb.all.data$error.date1 <- as.numeric(comb.all.data$value.date1) - as.numeric(comb.all.data$value.real) com...
/SCRIPTS/05.calculate.model.real.error.r
no_license
lanescher/tree-model-groundtruth-2018
R
false
false
950
r
# make new column with average of two values comb.all.data$value.avg <- (comb.all.data$value.date1 + comb.all.data$value.date2) / 2 # calculate error and p error from real comb.all.data$error.date1 <- as.numeric(comb.all.data$value.date1) - as.numeric(comb.all.data$value.real) com...
context("met2model") outfolder <- tempfile() setup(dir.create(outfolder, showWarnings = FALSE)) teardown(unlink(outfolder, recursive = TRUE)) test_that("Met conversion runs without error", { skip(paste0( "BIOCRO met2model is currently broken. ", "See issue #2274 (https://github.com/PecanProject/pecan/issues...
/models/biocro/tests/testthat/test.met2model.R
permissive
PecanProject/pecan
R
false
false
894
r
context("met2model") outfolder <- tempfile() setup(dir.create(outfolder, showWarnings = FALSE)) teardown(unlink(outfolder, recursive = TRUE)) test_that("Met conversion runs without error", { skip(paste0( "BIOCRO met2model is currently broken. ", "See issue #2274 (https://github.com/PecanProject/pecan/issues...
#!usr/bin/env Rscript ############################################################################# #### Author: Melanie van den Bosch #### Title: Computing iterated reference weight tables of codon pairs #### Purpose of script: Computation of iterative weight tables #### of codon pairs ########################...
/codonpairs_itweighttable.R
no_license
meeldurb/codonbias
R
false
false
10,312
r
#!usr/bin/env Rscript ############################################################################# #### Author: Melanie van den Bosch #### Title: Computing iterated reference weight tables of codon pairs #### Purpose of script: Computation of iterative weight tables #### of codon pairs ########################...
#' @title Tools for the analysis of ecosystem metabolism #' #' @description A collection of tools for the calculation of freewater metabolism. #' #' @details #' \tabular{ll}{ #' Package: \tab LakeMetabolizer\cr #' License: \tab GPL (>=2 )\cr #' Repository: \tab http://github.com/GLEON/LakeMetabolizer\cr #' } #' #' L...
/R/LakeMetabolizer.R
no_license
jzwart/LakeMetabolizer
R
false
false
1,557
r
#' @title Tools for the analysis of ecosystem metabolism #' #' @description A collection of tools for the calculation of freewater metabolism. #' #' @details #' \tabular{ll}{ #' Package: \tab LakeMetabolizer\cr #' License: \tab GPL (>=2 )\cr #' Repository: \tab http://github.com/GLEON/LakeMetabolizer\cr #' } #' #' L...
#merge all annotation into one single file setwd("~/Documents/stanford/grant/2019/ot2/work/") ### #column description # data_all = NULL data_v0 = read.csv("FDA-drug&biomarkers-v8_Ben.csv") data_v1 = data_v0[, c("Drug", "drug_drugbank_standard", "drug_pubchem", "Enrichment.biomarker", "biomarker_ensembl_standard", ...
/code/merger_v0.R
no_license
Bin-Chen-Lab/biomarker_curation
R
false
false
4,780
r
#merge all annotation into one single file setwd("~/Documents/stanford/grant/2019/ot2/work/") ### #column description # data_all = NULL data_v0 = read.csv("FDA-drug&biomarkers-v8_Ben.csv") data_v1 = data_v0[, c("Drug", "drug_drugbank_standard", "drug_pubchem", "Enrichment.biomarker", "biomarker_ensembl_standard", ...
estimateDlog = function(means, eV, samples=1000, thin=100){ drop = which(is.na(rowSums(means[-1]))) if(length(drop)>0){ means=means[-drop] eV=ev[-drop] } #Set prior n = ncol(means) #alpha.mu <- rep(0, n) #alpha.V <- diag(n)*400 prior<-list(R=list(V=diag(n), nu=n+0.002-1)) mev = eV/(me...
/code/estimateDlog.R
no_license
oysteiop/EvolDiv
R
false
false
1,113
r
estimateDlog = function(means, eV, samples=1000, thin=100){ drop = which(is.na(rowSums(means[-1]))) if(length(drop)>0){ means=means[-drop] eV=ev[-drop] } #Set prior n = ncol(means) #alpha.mu <- rep(0, n) #alpha.V <- diag(n)*400 prior<-list(R=list(V=diag(n), nu=n+0.002-1)) mev = eV/(me...
source("~/R/getConnection.R") ## ## pull the requested gene's ID (Locus Name) from the genes table given its name ## getLocusName = function(name) { con = getConnection(); tair = dbGetQuery(con, paste("SELECT * FROM genes WHERE name='",name,"'",sep="")) dbDisconnect(con) return(tair$id[1]) }
/getLocusName.R
no_license
carnegie-dpb/bartonlab-R
R
false
false
316
r
source("~/R/getConnection.R") ## ## pull the requested gene's ID (Locus Name) from the genes table given its name ## getLocusName = function(name) { con = getConnection(); tair = dbGetQuery(con, paste("SELECT * FROM genes WHERE name='",name,"'",sep="")) dbDisconnect(con) return(tair$id[1]) }
\name{getRidgeValue} \alias{getRidgeValue} %- Also NEED an '\alias' for EACH other topic documented here. \title{Get the CWT coefficient values corresponding to the peak ridge} \description{ Get the CWT coefficient values corresponding to the peak ridge } \usage{ getRidgeValue(ridgeList, wCoefs, skip = 0) } %- maybe al...
/man/getRidgeValue.Rd
no_license
forjobs/baselineWavelet
R
false
false
681
rd
\name{getRidgeValue} \alias{getRidgeValue} %- Also NEED an '\alias' for EACH other topic documented here. \title{Get the CWT coefficient values corresponding to the peak ridge} \description{ Get the CWT coefficient values corresponding to the peak ridge } \usage{ getRidgeValue(ridgeList, wCoefs, skip = 0) } %- maybe al...
############################### ################################################################## # # # Nathan W Anderson Heath Blackmon & Richard Adams # # Continuous value at nodes producing a # # derived state: A...
/Deprecated/To Dropbox/ancCond2/analyses/AncCond2testing.R
no_license
NW-Anderson/Ancestral-Condition-Test
R
false
false
8,640
r
############################### ################################################################## # # # Nathan W Anderson Heath Blackmon & Richard Adams # # Continuous value at nodes producing a # # derived state: A...
data=read_data() png("plot3.png", height=480, width=480) with(data, plot(Time, Sub_metering_1, type="l",ylab="Energy sub metering", xlab=" ", col="black")) with(data, lines(Time, Sub_metering_2, col="red")) with(data, lines(Time, Sub_metering_3, col="blue")) legend(x="topright", lwd=1, legend=c("Sub_metering_1", "Sub_m...
/plot3.R
no_license
neoeahit/ExData_Plotting1
R
false
false
392
r
data=read_data() png("plot3.png", height=480, width=480) with(data, plot(Time, Sub_metering_1, type="l",ylab="Energy sub metering", xlab=" ", col="black")) with(data, lines(Time, Sub_metering_2, col="red")) with(data, lines(Time, Sub_metering_3, col="blue")) legend(x="topright", lwd=1, legend=c("Sub_metering_1", "Sub_m...
#BETA ############################################################# #without plot beta = function(ind,mkt){ options(scipen = 100) IND.RET = round(diff(log(ind)),digits=5) MKT.RET = round(diff(log(mkt)),digits=5) BETA = round(cov(IND.RET,MKT.RET)/var(MKT.RET),digits = 3) } ##################################...
/주식베타.R
no_license
parkminhyung/R-code-for-finance
R
false
false
1,373
r
#BETA ############################################################# #without plot beta = function(ind,mkt){ options(scipen = 100) IND.RET = round(diff(log(ind)),digits=5) MKT.RET = round(diff(log(mkt)),digits=5) BETA = round(cov(IND.RET,MKT.RET)/var(MKT.RET),digits = 3) } ##################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sst.R \name{pr_scores} \alias{pr_scores} \title{Generates the affinity scores with the Page rank algorithm by Google from igraph} \usage{ pr_scores(simMatrix) } \arguments{ \item{simMatrix}{similarity matrix object handed by the user, it shou...
/FinalProject_sstr/sstr/man/pr_scores.Rd
no_license
violetasdev/SDR_geotech
R
false
true
500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sst.R \name{pr_scores} \alias{pr_scores} \title{Generates the affinity scores with the Page rank algorithm by Google from igraph} \usage{ pr_scores(simMatrix) } \arguments{ \item{simMatrix}{similarity matrix object handed by the user, it shou...
#' extract_flickrdb - Extract Flickr data from sqlite database #' @import sqldf #' @importFrom utils write.csv #' @param dbname name of the database (Generated using function flickrtodatabase) #' @param outputfile output csv file #' @return dataframe containing the Flickr data from database #' @examples \dontrun{ #' my...
/R/extract_flickrdb.R
no_license
vijaybarve/bdsns
R
false
false
787
r
#' extract_flickrdb - Extract Flickr data from sqlite database #' @import sqldf #' @importFrom utils write.csv #' @param dbname name of the database (Generated using function flickrtodatabase) #' @param outputfile output csv file #' @return dataframe containing the Flickr data from database #' @examples \dontrun{ #' my...
################################################## # # GEB 6895: Tools for Business Intelligence # # OLS Regression Demo # Regression with Data Entered Directly into the Script # # Lealand Morin, Ph.D. # Assistant Professor # Department of Economics # College of Business Administration # University of Central Florid...
/assignment_04/Calculating_beta_hat_2.R
no_license
cmgreear/GEB6895F19
R
false
false
5,529
r
################################################## # # GEB 6895: Tools for Business Intelligence # # OLS Regression Demo # Regression with Data Entered Directly into the Script # # Lealand Morin, Ph.D. # Assistant Professor # Department of Economics # College of Business Administration # University of Central Florid...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remapDB.R \name{getRemapContent} \alias{getRemapContent} \title{A function to get the remap content on strapi.} \usage{ getRemapContent(baseUrl = "https://db.remap.decafhub.com/", contentName) } \arguments{ \item{baseUrl}{The base url of the ...
/man/getRemapContent.Rd
no_license
beatnaut/remaputils
R
false
true
494
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remapDB.R \name{getRemapContent} \alias{getRemapContent} \title{A function to get the remap content on strapi.} \usage{ getRemapContent(baseUrl = "https://db.remap.decafhub.com/", contentName) } \arguments{ \item{baseUrl}{The base url of the ...
uploadData <- function(file){ df<-read.csv(file, sep=",", head=TRUE); #remove date column df_1<-df[,-(1)] #feature scaling bike_df<-scaleFeatures(df_1, c('temp','atemp','humidity', 'windspeed','casual','registered', 'count')); bike_df; } scaleFeatures<-function(df_1,features){ for (i in 1:length(feat...
/dataUtils.R
no_license
amitnagar/GradientDescent
R
false
false
458
r
uploadData <- function(file){ df<-read.csv(file, sep=",", head=TRUE); #remove date column df_1<-df[,-(1)] #feature scaling bike_df<-scaleFeatures(df_1, c('temp','atemp','humidity', 'windspeed','casual','registered', 'count')); bike_df; } scaleFeatures<-function(df_1,features){ for (i in 1:length(feat...
############################# # Author - Oyesh Mann Singh # Dataset - 311_Customer_Service_Request # Link - https://data.baltimorecity.gov/City-Services/311-Customer-Service-Requests/9agw-sxsr # Description - # Performing Data wrangling for various SRTypes # Performing regression/classification/clustering analysis...
/proj1_cheat_sheet.R
no_license
sharonsnh/R-project
R
false
false
7,314
r
############################# # Author - Oyesh Mann Singh # Dataset - 311_Customer_Service_Request # Link - https://data.baltimorecity.gov/City-Services/311-Customer-Service-Requests/9agw-sxsr # Description - # Performing Data wrangling for various SRTypes # Performing regression/classification/clustering analysis...
library(shiny) library(ggplot2) #load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) require(tigerstats) data(m111survey) mydata <- m111survey # just plug in your data here # Define UI for application that plots features of movies ui <- fluidPage( # Sidebar layout...
/twoDensity.R
no_license
WilliamKitto/shinyCourse
R
false
false
1,879
r
library(shiny) library(ggplot2) #load(url("http://s3.amazonaws.com/assets.datacamp.com/production/course_4850/datasets/movies.Rdata")) require(tigerstats) data(m111survey) mydata <- m111survey # just plug in your data here # Define UI for application that plots features of movies ui <- fluidPage( # Sidebar layout...
#' Add a sheet to the 'Excel' workbook #' #' Add a sheet to the 'Excel' workbook #' #' @param wbList list with workbook and default cell styles (i.e., output from getXLsettings) #' @param df data frame to output to sheet #' @param sheetName sheet name #' @param descrip description of sheet #' #' @details The \...
/R/addXLSheetStd.R
no_license
cran/xlsimple
R
false
false
4,676
r
#' Add a sheet to the 'Excel' workbook #' #' Add a sheet to the 'Excel' workbook #' #' @param wbList list with workbook and default cell styles (i.e., output from getXLsettings) #' @param df data frame to output to sheet #' @param sheetName sheet name #' @param descrip description of sheet #' #' @details The \...
#write start date for first analysis sD<-as.Date("2019-06-01") #Write end date for first analysis eD<-as.Date("2019-07-31") #Irrigation#### Irrig<- (downloadTOA5("PACE_AUTO_ALL_IRRIG_R_", startDate=sD, endDate=eD, keepFiles=FALSE))[,c(1,4:6)] #Rename columns names(Irrig)<-c("DateTime","Plot","Treatment","Irrigation")...
/scripts/Request_HIEv_soil_metrics_June-July_2019.R
no_license
kjfuller06/PACE
R
false
false
23,189
r
#write start date for first analysis sD<-as.Date("2019-06-01") #Write end date for first analysis eD<-as.Date("2019-07-31") #Irrigation#### Irrig<- (downloadTOA5("PACE_AUTO_ALL_IRRIG_R_", startDate=sD, endDate=eD, keepFiles=FALSE))[,c(1,4:6)] #Rename columns names(Irrig)<-c("DateTime","Plot","Treatment","Irrigation")...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apputils.R \name{update_toastr_css} \alias{update_toastr_css} \title{Update shinytoastr css} \usage{ update_toastr_css(container = NULL, toast = NULL, rgba = NULL, hover.rgba = NULL, opacity = NULL, hover.opacity = NULL, radius = NULL, po...
/apputils/man/update_toastr_css.Rd
permissive
ua-snap/snap-r-tools
R
false
true
2,151
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apputils.R \name{update_toastr_css} \alias{update_toastr_css} \title{Update shinytoastr css} \usage{ update_toastr_css(container = NULL, toast = NULL, rgba = NULL, hover.rgba = NULL, opacity = NULL, hover.opacity = NULL, radius = NULL, po...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tsum.R \name{condSum} \alias{condSum} \title{Fast conditional sum} \usage{ condSum(x, index, na.rm = FALSE, ...) } \arguments{ \item{x}{\code{numeric} vector to be summed} \item{index}{(list of) \code{factor(s)} for which the sum will be cal...
/pkg/man/condSum.Rd
no_license
namanpaul/ffbase
R
false
true
580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tsum.R \name{condSum} \alias{condSum} \title{Fast conditional sum} \usage{ condSum(x, index, na.rm = FALSE, ...) } \arguments{ \item{x}{\code{numeric} vector to be summed} \item{index}{(list of) \code{factor(s)} for which the sum will be cal...
\name{gtkShow} \alias{gtkShow} \title{Show/realize one or more Widgets} \description{ \strong{DEPRECATED!! (compatibility wrappers for RGtk 1!)} This causes each widget given in the call to be realized or actually displayed } \usage{ gtkShow(..., all = T) } \arguments{ \item{\dots}{any collection of widgets th...
/RGtk2/man/gtkShow.Rd
no_license
lawremi/RGtk2
R
false
false
1,240
rd
\name{gtkShow} \alias{gtkShow} \title{Show/realize one or more Widgets} \description{ \strong{DEPRECATED!! (compatibility wrappers for RGtk 1!)} This causes each widget given in the call to be realized or actually displayed } \usage{ gtkShow(..., all = T) } \arguments{ \item{\dots}{any collection of widgets th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binditmice.R \name{binditmice} \alias{binditmice} \title{Binds Imputed Datasets and Dataframes} \usage{ binditmice(datasets, data) } \arguments{ \item{datasets}{This argument specifies an object of the \code{mids}, \code{mimids}, or ...
/man/binditmice.Rd
no_license
cran/MatchIt.mice
R
false
true
1,915
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/binditmice.R \name{binditmice} \alias{binditmice} \title{Binds Imputed Datasets and Dataframes} \usage{ binditmice(datasets, data) } \arguments{ \item{datasets}{This argument specifies an object of the \code{mids}, \code{mimids}, or ...
# flashLIT term lists # flashLIT: fast, largely automated, systematic handling of literature. # workingconservation@gmail.com # ============================= # meaningless words are a combination of scimeetr and revtools meaningless_words <- c(tm::stopwords("english"), # scimeetr ...
/data/flashLIT_term_lists.R
permissive
lizlaw/flashLIT
R
false
false
4,637
r
# flashLIT term lists # flashLIT: fast, largely automated, systematic handling of literature. # workingconservation@gmail.com # ============================= # meaningless words are a combination of scimeetr and revtools meaningless_words <- c(tm::stopwords("english"), # scimeetr ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{ranef.glmmTMB} \alias{ranef.glmmTMB} \alias{ranef} \alias{as.data.frame.ranef.glmmTMB} \alias{coef.glmmTMB} \title{Extract Random Effects} \usage{ \method{ranef}{glmmTMB}(object, condVar = TRUE, ...) \method{as.data.frame}{ra...
/glmmTMB/man/ranef.glmmTMB.Rd
no_license
dfloresag/glmmTMB
R
false
true
3,134
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{ranef.glmmTMB} \alias{ranef.glmmTMB} \alias{ranef} \alias{as.data.frame.ranef.glmmTMB} \alias{coef.glmmTMB} \title{Extract Random Effects} \usage{ \method{ranef}{glmmTMB}(object, condVar = TRUE, ...) \method{as.data.frame}{ra...
i = 289 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
/data_preparation/R_batch3/_step3/step3_countReads_EA.288.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
651
r
i = 289 library(isoform, lib.loc="/nas02/home/w/e/weisun/R/Rlibs/") bedFile = "/nas02/home/w/e/weisun/research/data/human/Homo_sapiens.GRCh37.66.nonoverlap.exon.bed" setwd("/lustre/scr/w/e/weisun/TCGA/bam/") cmd = "ls *_asCounts_hetSNP_EA_hap1.bam" ffs = system(cmd, intern=TRUE) length(ffs) head(ffs) sams = gsub(...
test_that("grilladeOutput works", { TAG <- grilladeOutput("ID") expect_is(TAG, "shiny.tag") expect_is(htmltools::findDependencies(TAG), "list") }) test_that("renderGrillade works", { expect_null(renderGrillade(NULL)()) expect_error(renderGrillade("a")()) rendered <- renderGrillade(grillade())() exp...
/tests/testthat/test-shiny.R
no_license
kuzmenkov111/grillade
R
false
false
505
r
test_that("grilladeOutput works", { TAG <- grilladeOutput("ID") expect_is(TAG, "shiny.tag") expect_is(htmltools::findDependencies(TAG), "list") }) test_that("renderGrillade works", { expect_null(renderGrillade(NULL)()) expect_error(renderGrillade("a")()) rendered <- renderGrillade(grillade())() exp...
## sqldf package needs to be installed and loaded for the code to work power_consumption <- read.csv.sql("household_power_consumption.txt", sql = "select * from file where Date in ('1/2/2007', '2/2/2007')", sep = ";") datetime <- as.POSIXct(strptime(paste(power_consumpti...
/plot2.R
no_license
Aquarella/ExData_Plotting1
R
false
false
803
r
## sqldf package needs to be installed and loaded for the code to work power_consumption <- read.csv.sql("household_power_consumption.txt", sql = "select * from file where Date in ('1/2/2007', '2/2/2007')", sep = ";") datetime <- as.POSIXct(strptime(paste(power_consumpti...
#Two-sample means T-Test (Independent samples) ?mtcars t.test(mtcars$mpg~mtcars$am) ## DV first then IV,am&pm are in the same column, so we need to split them by using ~ ## Dependent sample (matched pairs) t.test ## Note that dependent sample implies that the result in the 2nd group is affected by result in fir...
/Two-sample means T-Test.R
no_license
MeizhouHan/INF1344-R
R
false
false
1,267
r
#Two-sample means T-Test (Independent samples) ?mtcars t.test(mtcars$mpg~mtcars$am) ## DV first then IV,am&pm are in the same column, so we need to split them by using ~ ## Dependent sample (matched pairs) t.test ## Note that dependent sample implies that the result in the 2nd group is affected by result in fir...
#' Filter track data for speed #' #' Create a filter of a track for "bad" points implying a speed of motion that #' is unrealistic. #' #' Using an algorithm (McConnnell et al., 1992), points are tested for speed #' between previous / next and 2nd previous / next points. Contiguous sections #' with an root mean square ...
/R/filter.R
no_license
cran/trip
R
false
false
10,143
r
#' Filter track data for speed #' #' Create a filter of a track for "bad" points implying a speed of motion that #' is unrealistic. #' #' Using an algorithm (McConnnell et al., 1992), points are tested for speed #' between previous / next and 2nd previous / next points. Contiguous sections #' with an root mean square ...
#Script to test the Combuilder and FindNCBI functions #Example will use gbif to build a database of all decapoda species in the Great Lakes #basin, and query NCBI for 16S species for that list (either through ComBuilder or FindNCBI) #Input folder contains the shape files required for the Great Lakes Database #and a com...
/RunFunctions.R
no_license
weiseell/ComBuilder
R
false
false
948
r
#Script to test the Combuilder and FindNCBI functions #Example will use gbif to build a database of all decapoda species in the Great Lakes #basin, and query NCBI for 16S species for that list (either through ComBuilder or FindNCBI) #Input folder contains the shape files required for the Great Lakes Database #and a com...
library(shiny) library(shinydashboard) library(RSQLite) library(ggplot2) suppressPackageStartupMessages(library(googleVis)) library(purrr) library(dplyr) library(stringr) library(tidyr) shinyServer(function(input, output, session) { conn <- dbConnect(drv = SQLite(), dbname = "./SOdevSurvey.db") session$onSession...
/SOdevSurvey/server.R
no_license
AJB0211/StackOverflowDeveloperSurvey
R
false
false
18,528
r
library(shiny) library(shinydashboard) library(RSQLite) library(ggplot2) suppressPackageStartupMessages(library(googleVis)) library(purrr) library(dplyr) library(stringr) library(tidyr) shinyServer(function(input, output, session) { conn <- dbConnect(drv = SQLite(), dbname = "./SOdevSurvey.db") session$onSession...
########################################################################################################## ### Neat singular graphics for GLS models of stability across pasture-dominated hectads across Ireland ### ########################################################################################################...
/PastureCoeffREFIT2.R
no_license
HannahWhite/StabilityDrivers
R
false
false
11,699
r
########################################################################################################## ### Neat singular graphics for GLS models of stability across pasture-dominated hectads across Ireland ### ########################################################################################################...
devtools::install_github("ellisp/nzelect/pkg1") library(nzelect) library(tidyverse) library(scales) library(lubridate) library(gridExtra) library(broom) library(mgcv) library(gratia) #-----------------------------polling overview--------------------- p1 <- polls %>% filter(MidDate > as.Date("2014-11-20") & !is.na...
/_working/0144-nzelect-update.R
no_license
ellisp/blog-source
R
false
false
5,914
r
devtools::install_github("ellisp/nzelect/pkg1") library(nzelect) library(tidyverse) library(scales) library(lubridate) library(gridExtra) library(broom) library(mgcv) library(gratia) #-----------------------------polling overview--------------------- p1 <- polls %>% filter(MidDate > as.Date("2014-11-20") & !is.na...
library(tidyverse) library(psych) library(gridExtra) library(lm.beta) library(ggplot2) library(car) library(lmtest) library(sjPlot) library(sjmisc) library(sjlabelled) library(cAIC4) library(r2glmm) library(lme4) library(lmerTest) library(MuMIn) library(sandwich) data_sample_1 = read.csv("https://tinyurl.com/ha-dataset...
/Home Assignment.R
no_license
Nico-STR/PSYP1420HT_Streckert
R
false
false
9,608
r
library(tidyverse) library(psych) library(gridExtra) library(lm.beta) library(ggplot2) library(car) library(lmtest) library(sjPlot) library(sjmisc) library(sjlabelled) library(cAIC4) library(r2glmm) library(lme4) library(lmerTest) library(MuMIn) library(sandwich) data_sample_1 = read.csv("https://tinyurl.com/ha-dataset...
% Auto-generated: do not edit by hand \name{daqLEDDisplay} \alias{daqLEDDisplay} \title{LEDDisplay component} \description{ A 7-bar LED display component. } \usage{ daqLEDDisplay(id=NULL, value=NULL, color=NULL, backgroundColor=NULL, size=NULL, theme=NULL, label=NULL, labelPosition=NULL, className=NULL, style=NULL)...
/man/daqLEDDisplay.Rd
permissive
collabsoft/dash-daq
R
false
false
1,453
rd
% Auto-generated: do not edit by hand \name{daqLEDDisplay} \alias{daqLEDDisplay} \title{LEDDisplay component} \description{ A 7-bar LED display component. } \usage{ daqLEDDisplay(id=NULL, value=NULL, color=NULL, backgroundColor=NULL, size=NULL, theme=NULL, label=NULL, labelPosition=NULL, className=NULL, style=NULL)...
function (bp, bin_repr, z) { e <- get("data.env", .GlobalEnv) e[["lossFunc"]][[length(e[["lossFunc"]]) + 1]] <- list(bp = bp, bin_repr = bin_repr, z = z) .Call("_cort_lossFunc", bp, bin_repr, z) }
/valgrind_test_dir/lossFunc-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
219
r
function (bp, bin_repr, z) { e <- get("data.env", .GlobalEnv) e[["lossFunc"]][[length(e[["lossFunc"]]) + 1]] <- list(bp = bp, bin_repr = bin_repr, z = z) .Call("_cort_lossFunc", bp, bin_repr, z) }
\name{do.call.emjmcmc} \alias{do.call.emjmcmc} \title{A help function used by parall.gmj to run parallel chains of (R)(G)MJMCMC algorithms} \usage{do.call.emjmcmc(vect)} \arguments{ \item{vect}{a vector of parameters of runemjmcmc as well as several additional fields that must come after runemjmcmc parameters such as: ...
/man/do.call.emjmcmc.rd
no_license
aliaksah/EMJMCMC2016
R
false
false
1,118
rd
\name{do.call.emjmcmc} \alias{do.call.emjmcmc} \title{A help function used by parall.gmj to run parallel chains of (R)(G)MJMCMC algorithms} \usage{do.call.emjmcmc(vect)} \arguments{ \item{vect}{a vector of parameters of runemjmcmc as well as several additional fields that must come after runemjmcmc parameters such as: ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10871 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10871 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/cycle-sched/cycle_sched_12_2_1.unsat.qdimacs c...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/cycle-sched/cycle_sched_12_2_1.unsat/cycle_sched_12_2_1.unsat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
655
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 10871 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 10871 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/cycle-sched/cycle_sched_12_2_1.unsat.qdimacs c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ingest_header.R \name{hash_filename} \alias{hash_filename} \title{Sanitize filenames for temporary header files} \usage{ hash_filename(filename) } \arguments{ \item{filename}{A file name sting} } \value{ Returns a character string with proble...
/man/hash_filename.Rd
permissive
jpshanno/ingestr
R
false
true
417
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ingest_header.R \name{hash_filename} \alias{hash_filename} \title{Sanitize filenames for temporary header files} \usage{ hash_filename(filename) } \arguments{ \item{filename}{A file name sting} } \value{ Returns a character string with proble...
library(metasens) ### Name: print.copas ### Title: Print and summary method for Copas selection model ### Aliases: print.copas summary.copas print.summary.copas ### Keywords: print ### ** Examples ## ## Load data ## data(Fleiss93) ## ## Perform meta analysis, effect measure is odds ratio (OR) ## meta1 <- metabin(ev...
/data/genthat_extracted_code/metasens/examples/print.copas.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
469
r
library(metasens) ### Name: print.copas ### Title: Print and summary method for Copas selection model ### Aliases: print.copas summary.copas print.summary.copas ### Keywords: print ### ** Examples ## ## Load data ## data(Fleiss93) ## ## Perform meta analysis, effect measure is odds ratio (OR) ## meta1 <- metabin(ev...
/Final_Source_Code/Optimal_UREA_Flow_Prediction.R
no_license
shinnyum/Optimal-UREA-flow-control-using-ANN-L-BFGS-B-
R
false
false
5,825
r
# -*- coding: us-ascii-unix -*- #' Draw a random sample. #' #' Act as a better substitute for \code{\link{sample}}, which behaves #' in a silly manner when the length of \code{x} is one. #' @param x a vector of elements from which to choose. #' @param ... passed to \code{\link{sample}}. #' @return A vector of random e...
/R/stat.R
permissive
Sithara26/strafica
R
false
false
5,824
r
# -*- coding: us-ascii-unix -*- #' Draw a random sample. #' #' Act as a better substitute for \code{\link{sample}}, which behaves #' in a silly manner when the length of \code{x} is one. #' @param x a vector of elements from which to choose. #' @param ... passed to \code{\link{sample}}. #' @return A vector of random e...
################################################################################ TG$set( which = "public", name = "get_A2mT", value = compiler::cmpfun( f = function(tg.model) { switch(tg.model, "None" = { return(rep(0, length(data$x))); ...
/src/TG_get_A2mT.R
no_license
DmitryMarkovich/Thrombin_Analyzer
R
false
false
16,287
r
################################################################################ TG$set( which = "public", name = "get_A2mT", value = compiler::cmpfun( f = function(tg.model) { switch(tg.model, "None" = { return(rep(0, length(data$x))); ...
library(tidyverse) install.packages("readxl") library("readxl") setwd("~/Desktop") soybean2011_2015 <- read_excel("ExportSalesDataByCommodity (4) copy.xls") soybean2015_2018 <- read_excel("ExportSalesDataByCommodity (4).xls") soybean2011_2015 <- na.omit(soybean2011_2015) soybean2015_2018 <- na.omit(soybean2015_2018) ...
/DataViz_for_Nov22.R
no_license
yihao-henry/DataViz
R
false
false
4,345
r
library(tidyverse) install.packages("readxl") library("readxl") setwd("~/Desktop") soybean2011_2015 <- read_excel("ExportSalesDataByCommodity (4) copy.xls") soybean2015_2018 <- read_excel("ExportSalesDataByCommodity (4).xls") soybean2011_2015 <- na.omit(soybean2011_2015) soybean2015_2018 <- na.omit(soybean2015_2018) ...
library(ggplot2) library(dplyr) library(lubridate) library(scales) library(plotly) library(tidyverse) SDL <- function(file){ setwd("C:/Users/dgallen/Desktop/Transition/Riverside/SDL") datDC <- read.csv(dir()[6]) DC <- select(datDC,DC.Reading,Record.Type,colnames(datDC[2]), Record.Type) Int <- paste(c(...
/telluricCompRiverside3010.R
no_license
declangallen/dataintegrity
R
false
false
5,129
r
library(ggplot2) library(dplyr) library(lubridate) library(scales) library(plotly) library(tidyverse) SDL <- function(file){ setwd("C:/Users/dgallen/Desktop/Transition/Riverside/SDL") datDC <- read.csv(dir()[6]) DC <- select(datDC,DC.Reading,Record.Type,colnames(datDC[2]), Record.Type) Int <- paste(c(...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827680-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
486
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/runRandomForest.R \name{runRandomForest} \alias{runRandomForest} \title{runRandomForest} \usage{ runRandomForest(indVar, depVar, ntree = 100, importance = TRUE, proximity = TRUE) } \arguments{ \item{indVar}{independent variables} \...
/man/runRandomForest.Rd
no_license
BKreakie/LakeTrophicModelling
R
false
false
1,194
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/runRandomForest.R \name{runRandomForest} \alias{runRandomForest} \title{runRandomForest} \usage{ runRandomForest(indVar, depVar, ntree = 100, importance = TRUE, proximity = TRUE) } \arguments{ \item{indVar}{independent variables} \...
# Compares models using posterior predictive error library(tidyverse) library(ggthemes) setwd("/Users/adkinsty/Box/LeeLab/Experiments/Exp_files/reach/") data <- read_csv("data/clean/exp2/test_data.csv") %>% filter(x > -2 & x < 2 & y > -2 & y < 2) %>% mutate(lr = ifelse(ratio==0,0,ifelse(ratio==-1,1,2))) y <- da...
/modeling/exp2/compare_error.R
no_license
adkinsty/reach
R
false
false
3,016
r
# Compares models using posterior predictive error library(tidyverse) library(ggthemes) setwd("/Users/adkinsty/Box/LeeLab/Experiments/Exp_files/reach/") data <- read_csv("data/clean/exp2/test_data.csv") %>% filter(x > -2 & x < 2 & y > -2 & y < 2) %>% mutate(lr = ifelse(ratio==0,0,ifelse(ratio==-1,1,2))) y <- da...
#' Save a ggplot (or other grid object) with sensible defaults #' #' `ggsave()` is a convenient function for saving a plot. It defaults to #' saving the last plot that you displayed, using the size of the current #' graphics device. It also guesses the type of graphics device from the #' extension. #' #' Note: Filename...
/R/save.r
permissive
larspijnappel/ggplot2
R
false
false
7,058
r
#' Save a ggplot (or other grid object) with sensible defaults #' #' `ggsave()` is a convenient function for saving a plot. It defaults to #' saving the last plot that you displayed, using the size of the current #' graphics device. It also guesses the type of graphics device from the #' extension. #' #' Note: Filename...
#' Number of rows #' #' Returns a named vector with the number of rows for each table. #' #' @param dm A [`dm`] object. #' #' @return A named vector with the number of rows for each table. #' #' @examplesIf rlang::is_installed("nycflights13") #' dm_nycflights13() %>% #' dm_filter(airports, faa %in% c("EWR", "LGA")) %...
/R/filter-helpers.R
permissive
jawond/dm
R
false
false
1,572
r
#' Number of rows #' #' Returns a named vector with the number of rows for each table. #' #' @param dm A [`dm`] object. #' #' @return A named vector with the number of rows for each table. #' #' @examplesIf rlang::is_installed("nycflights13") #' dm_nycflights13() %>% #' dm_filter(airports, faa %in% c("EWR", "LGA")) %...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.95,family="gaussian",standardize=TRUE) sink('./urinary_tract_095.txt',appe...
/Model/EN/Lasso/urinary_tract/urinary_tract_095.R
no_license
esbgkannan/QSMART
R
false
false
358
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/urinary_tract.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.95,family="gaussian",standardize=TRUE) sink('./urinary_tract_095.txt',appe...
library(ggplot2) PhenolAllData <- read.csv("../outputs/PhenolAllData.csv") PhenolAllData$Age_Group <-NULL PhenolAllData$Age_Group[PhenolAllData$time < 25]<-"A: < 25" PhenolAllData$Age_Group[PhenolAllData$time >= 25 & PhenolAllData$time <= 75]<-"B: 25 - 75" PhenolAllData$Age_Group[PhenolAllData$time >= 75]<-"C: > 75"...
/scripts/fig_2_fti_gd.R
no_license
ColauttiLab/WuColauttiHerbarium
R
false
false
1,478
r
library(ggplot2) PhenolAllData <- read.csv("../outputs/PhenolAllData.csv") PhenolAllData$Age_Group <-NULL PhenolAllData$Age_Group[PhenolAllData$time < 25]<-"A: < 25" PhenolAllData$Age_Group[PhenolAllData$time >= 25 & PhenolAllData$time <= 75]<-"B: 25 - 75" PhenolAllData$Age_Group[PhenolAllData$time >= 75]<-"C: > 75"...
##### 로지스틱 회귀 모형 data(iris) a <- subset(iris, Species == "setosa" | Species == "versicolor") a$Species <- factor(a$Species) as.numeric(a$Species) str(a) b <- glm(Species~Sepal.Length, data=a, family=binomial) summary(b) coef(b) exp(coef(b)) #신뢰구간 확인하기 confint.sl <- confint(b, parm = "Sepal.Length")...
/DM_로지스틱회귀모형.R
no_license
lch5518/DM
R
false
false
1,195
r
##### 로지스틱 회귀 모형 data(iris) a <- subset(iris, Species == "setosa" | Species == "versicolor") a$Species <- factor(a$Species) as.numeric(a$Species) str(a) b <- glm(Species~Sepal.Length, data=a, family=binomial) summary(b) coef(b) exp(coef(b)) #신뢰구간 확인하기 confint.sl <- confint(b, parm = "Sepal.Length")...
#' Volume 4: Table 2.18 #' #' Percentage Distribution of Conventional Households by Main Type of Cooking Fuel, #' Area of Residence, County and Sub-County. #' @docType data #' #' @usage data(V4_T2.18) #' #' @format A data frame with 12 variables #' \describe{ #' \item{\code{County}}{County} #' \item{\code{SubCounty}}{S...
/R/V4_T2.18.R
permissive
LucyNjoki/rKenyaCensus
R
false
false
579
r
#' Volume 4: Table 2.18 #' #' Percentage Distribution of Conventional Households by Main Type of Cooking Fuel, #' Area of Residence, County and Sub-County. #' @docType data #' #' @usage data(V4_T2.18) #' #' @format A data frame with 12 variables #' \describe{ #' \item{\code{County}}{County} #' \item{\code{SubCounty}}{S...