Skip to content
Prev 293826 / 398502 Next

Problem in executing R-script

R is a functional language so, by default, assignments (and other
things) within function scope doesn't have global effects. This is
generally considered a _very good thing_ in language design. You'd
perhaps prefer something like:

readData <- function() {
    read.csv("medialData.csv")
}

med <- readData()

which will have the desired outcome.

On Mon, May 7, 2012 at 1:41 PM, Suhaila Haji Mohd Hussin
<bell_beauty12 at hotmail.com> wrote: