I am using Ubuntu inside Windows XP using VirtualBox, and I installed R properly. I am using a library called psych for this. The following is my code:
impact <- read.table("stats1.ex.02.txt", header=T)
class(impact)
describe(impact)
I am taking Statistics One course on coursera.org and the Prof gives this txt file to work with. When I run this in R, using source("test.R") (where test.R is the filename I gave),
nothing happens. What could be problem here ?
Try using
source("test.R", echo=TRUE)or addingprintto whatever you want printed after sourcing your script. Thus, your script might be: