Re: [R] Data Carpentry - Creating a New SQLite Database

2020-01-10 Thread William Michels via R-help
Hi Phillip, Skipping to the last few lines of your email, did you download a program to look at Sqlite databases (independent of R) as listed below? Maybe that program ("DB Browser for SQLite") and/or the instructions below can help you locate your database directory: https://datacarpentry.org/se

Re: [R] Data Carpentry - Creating a New SQLite Database

2020-01-10 Thread Bert Gunter
Please note that tidyverse packages have their own support resources at RStudio, whence they came; e.g. here: https://education.rstudio.com/learn/beginner/ You may also do better asking about issues that concern them at their support site: https://support.rstudio.com/hc/en-us though, as you alrea

Re: [R] Data Carpentry - Creating a New SQLite Database

2020-01-10 Thread Ivan Krylov
On Fri, 10 Jan 2020 11:31:58 -0700 "Phillip Heinrich" wrote: > below is the text from the tutorial. The black type is from the > tutorial. The green and blue is the suggested R code. My comments > are in red R-help is a plain text mailing list, so the markup has been stripped off (and since H

[R] Data Carpentry - Creating a New SQLite Database

2020-01-10 Thread Phillip Heinrich
Working my way through a tutorial named Data Carpentry (https://datacarpentry.org/R-ecology-lesson/). for the most part it is excellent but I’m stuck on the very last section (https://datacarpentry.org/R-ecology-lesson/05-r-and-databases.html). First, below are the packages I have loaded: [1]

Re: [R] R-help Digest, Vol 203, Issue 8

2020-01-10 Thread Rui Barradas
Hello, And there's also # # library(caTools) # Author(s) # Jarek Tuszynski # # Original trapz <- function(x, y){ idx = 2:length(x) return(as.double( (x[idx] - x[idx-1]) %*% (y[idx] + y[idx-1]) ) / 2) } # Modified by me, input is x, f(x) trapzf <- function(x, FUN) trapz(x, FUN(x)) # Ca

Re: [R] editing plot

2020-01-10 Thread Rui Barradas
Hello, There are ways of reducing the white space between the bars but they are not obvious. Here are the two ways that I know. First a data example. library(ggplot2) library(gridExtra) df1 <- data.frame(x = LETTERS[1:5], y = c(40, 15, 30, 15, 20)) 1. The examples that fo