search for: dataforr

Displaying 4 results from an estimated 4 matches for "dataforr".

Did you mean: dataform
2009 Apr 17
0
question about the Text Mining package tm
...ls in Japan, and mo... http://i.sitesays.com/lc7Japan Said to Sell 17 Trillion Yen of Extra Bonds - Bloomberg Actually there were no new lines in the original file but I inserted a new line before every occurrence of http. I ran the following code: library("tm") my.path <- 'C:\\dataForR\\textsTweet1\\' my.path.csv<-'C:\\dataForR\\textsTweet1\\myTextFile.csv' (ovid <- Corpus(DirSource(my.path), readerControl = list(reader = readPlain, language = "la"))) Response from R: A text document collection with 3 text documents Warning message: In readLines(filen...
2009 May 24
2
accuracy of a neural net
...( I was using the same data for training and prediction but I did not expect perfect prediction anyway). So I tried using only a sample of records to build the neural net. Even with this sample I got 980 out of 982 correct. Can anyone spot an error here? crs$dataset <- read.csv("file:///C:/dataForR/textsTweet1/cleanForPC.csv", na.strings=c(".", "NA", "", "?")) crs$nnet <- nnet(Value ~ ., data=crs$dataset[,c(1:22,922)], size=10, linout=TRUE, skip=TRUE, trace=FALSE, maxit=1000) targets=crs$dataset[,922] rawpredictions =predict(crs$nnet, crs$data...
2009 Apr 20
1
factanal error
Hi. I tried running the following code. I don't understand the error. mydata <- read.table("C:/dataForR/radiology/wordFrequencies.csv", header=TRUE, sep=",") > dim(mydata) [1] 982 924 mydataN<-mydata[,-923] > dim(mydataN) [1] 982 923 cor(mydataN) factanal(mydataN, factors=3) Error in solve.default(cv) : Lapack routine dgesv: system is exactly singular Thank you for loo...
2009 Apr 20
0
system is exactly singular
Hi. I have a csv file. I imported it with mydata<-read.table("C:/dataForR/radiology/WordFrequency.csv", header=TRUE, sep=",") > dim(mydata) [1] 982 925 The first column had the doc numbers like doc1, doc2, etc. so I did mydataNum<-mydata[,-1] > dim(mydataNum) [1] 982 924 The second to last column was also not numeric and so I did > mydataNu...