How to translate R example code into R code for an "R Snippet"?

Hi all

 

I am just learnig R by implementing example code from literature. Typically examples start with:

data<-read.csv("filename")

That has to be translated to R<-R if a predecessor node is the input for a R Snippet node, correct? And the result for the next node has to be placed in variable R, too?

 

Frank

 

Frank,

Replace

data<-read.csv(“filename”)

with

data<-R

and use your code as given in the examples (working off “data”). Graphs get caught as output automatically, computations need to be stuffed back into the (multidimensional) “R” variable through something along the lines of

R<-resultdata

I’m no R expert, so I always struggle with matrices, data frames and the like, but fiddling will usually get you there. Too much of GUI guy, eh. :slight_smile: Eventually I’ll read “R in Action” and learn my share, I guess.

Cheers
E