Wednesday 29 November 2017

Resources to open Word documents in R...


Extracting data from a docx file:
https://cran.r-project.org/web/packages/docxtractr/docxtractr.pdf

https://www.r-bloggers.com/new-pacakge-docxtractr-easily-extract-tables-from-microsoft-word-docs/

https://rud.is/b/2015/08/24/new-pacakge-docxtractr-easily-extract-tables-from-microsoft-word-docs/



Extracting data from a doc file:
https://cran.r-project.org/web/packages/textreadr/textreadr.pdf

Splitting a character vector into a data frame...
https://stackoverflow.com/questions/22455884/how-to-split-a-character-vector-into-data-frame

Rowbind when different numbers of columns...
https://stackoverflow.com/questions/3402371/combine-two-data-frames-by-rows-rbind-when-they-have-different-sets-of-columns

Thursday 9 November 2017

Some information regarding the ~ symbol...

Some information regarding the ~ symbol...

Some points:
  1. The symbol ~ is called tilde so searching with the word is useful. 
  2. It's use in v~Vmax*S/(Km+S) is to create the non-linear formula. 
  3. It's special R syntax rather than general bioinformatics syntax. 
  4. It's specific meaning in this context is to create a formula object in R which can be used later. 
  5. The ~ symbol (tilde) separates one side of the formula from the other.
  6. The symbol means that R doesn't try to evaluate the formula but creates an object - sometimes a "formula" object

By way of an example, here is some R code:
my_formula <- y ~ bot+(top-bot)/(1+( x / LD50)^slope)
class(my_formula)

The tilda means that the equation won't be run but just the object created. 
The object in this case is my_formula and the class of the object is "formula". The tilda sets y on the left hand side and x, bot, top, LD50 and slope on the right hand side. 

That's enough for a start but questions are welcome. 

Some resources:
END of info for now...