Learning R: Writing Functions & More

  • Context: High School 
  • Thread starter Thread starter Tereno
  • Start date Start date
  • Tags Tags
    Functions Writing
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
Tereno
Messages
8
Reaction score
0
Does anyone know how to use the R language to write functions and etc?
 
Physics news on Phys.org
Yeah I kinda did..and not to clear about it.
 
R programmation

Does anyone know how to use the R language to write functions for string?

I have this type of string:

ATGTTGCGTGTC

I want to evalute the number of A or T and G and C for every A/T a want to sum 2 for the other 4 I want to have one number...
did you have any suggestion? because with If else I have difficultis
Thanks for any help