Re: [R] R problem: Error in data[2:4] : object of type 'closure' is not subsettable

2013-12-11 Thread arun
Hi, May be this helps: dat1 - read.csv(Human_Rights_Excel_Data.csv) #converted .xlsx to .csv mat1 - log10(t(as.matrix(dat1[,2:4]))) mat1[!is.finite(mat1)] - 0 par(mar=c(5,22,4,0.2)) COLOR-c('red','brown4','black')

Re: [R] R problem: Error in data[2:4] : object of type 'closure' is not subsettable

2013-12-11 Thread Michael Sumner
That message refers to the function (closure) data, which is a function in R and that you have not overwritten with a data.frame in that session. Note how you two versions of the code: dat1 - read.csv(Human_Rights_Excel_Data.csv) #converted .xlsx to .csv and #data-readcsv(HumanRightsExcelData)

[R] R problem: Error in data[2:4] : object of type 'closure' is not subsettable

2013-12-11 Thread andrepavlik
of type 'closure' is not subsettable Can someone please help me out? Also I am terrible with R so please try and make your responses idiot proof hahahaha. -- View this message in context: http://r.789695.n4.nabble.com/R-problem-Error-in-data-2-4-object-of-type-closure-is-not-subsettable