- Details
- Written by Tom Gredig
- Category: R
- Hits: 164
Error in asNamespace(ns) : not a namespace
Triggered in R package, where /R folder contains non-functions, scripts or code that should not be executed.
- Details
- Written by Tom Gredig
- Category: R
- Hits: 1958
This app written in R makes a map from Strava data with all the stops along the way. It can be used to find an optimal path for commuting as it highlights the stops that you make at traffic signals, for example.
The project can be forked on GitHub: https://github.com/i7ed/read-Strava-GPX

- Details
- Written by Tom Gredig
- Category: R
- Hits: 780
With abundant data, graphing has become an essential to represent the data. Besides ggplot2, there are tools from BBC. Some good examples are given on the "You can replicate almost any plot with R"
- Details
- Written by Tom Gredig
- Category: R
- Hits: 1795
Many books that are published on R are also freely available online at Bookdown.org. If authoring a book in R, then use the bookdown package.
A longer description is available on https://www.r-bloggers.com/how-to-self-publish-a-book-customizing-bookdown/
A Python alternative would be Sphinx. Here is an example on statistical physics.
- Details
- Written by Tom Gredig
- Category: R
- Hits: 834
Sometimes it is convenient to have the data in the same file as the computation in R. Further complications arise that text files often have irregular number of columns or empty columns. Reading such data with read.table() into R is accomplished in the following way:
text = "ORDER DATE
STATUS
SOURCE
DELIVERY MODE
ORDER NUMBER
AMOUNT
06/22/2017")
grep('^\\d{2}',r$V1)
Page 1 of 2