search for: dossent

Displaying 3 results from an estimated 3 matches for "dossent".

Did you mean: dissent
2011 Feb 07
2
Confused
Hi Im confused by one thing, and if someone can explain it I would be a happy > rev(strsplit("hej",NULL)) [[1]] [1] "h" "e" "j" > lapply(strsplit("hej",NULL),rev) [[1]] [1] "j" "e" "h" Why dossent the first one work? What is it in R that "fails" so to say that you need to use lapply for it to get the correct output. -- View this message in context: http://r.789695.n4.nabble.com/Confused-tp3263700p3263700.html Sent from the R help mailing list archive at Nabble.com.
2011 Jun 16
1
Read file line by line
...- readLines(inFile, n=1000)) > 0){ for (i in seq_along(input)){ temp<-as.numeric(strsplit(input[i], " +")[[1]][3]) if(output<temp){ output<-temp } } } close(inFile) The problem is that it seems to get stuck on an infinity loop of the 1000 first rows of the file, it dossent continue with the next 1000 from the first loop so to say. Can someone see the error in my code or dose anyone have an other solution to the problem? -- View this message in context: http://r.789695.n4.nabble.com/Read-file-line-by-line-tp3602349p3602349.html Sent from the R help mailing list arch...
2010 Dec 01
3
Save R2HTML as an object instead of file
Hi Is it possible to instead of getting the HTML code written to a file, get it saved as a string in an object instead? Or is there any kind of package that can do this? //Joel -- View this message in context: http://r.789695.n4.nabble.com/Save-R2HTML-as-an-object-instead-of-file-tp3066776p3066776.html Sent from the R help mailing list archive at Nabble.com.