Displaying 4 results from an estimated 4 matches for "sorell".
Did you mean:
sorely
2005 Mar 17
1
Varying grid.rect in different panels of a Lattice plot
...ccured pooled across the two lakes. So after dreging r-help, I've messed
with subscripts and tried fiddling with panel.number, but can't get this to
work. Any suggestions most welcome!
# Make up a short data set
library(lattice)
library(grid)
Lake <- rep(c("Crescent","Sorell"), each=13)
Spawning <- c("Y", rep("N",7), rep("Y",4), rep("N",8), rep("Y",5), "N")
Catch <- rpois(26, 30) # fake data
Plotdate <- rep(seq(as.Date("2000/10/1"), by="month", length=13),2)
trellis.device(th...
2011 Aug 08
1
keeping output in memory
...their frequencies
filename<-paste("freq.list", i, "txt", sep=".") #creates a unique
file name for each iteration of this loop
write(freq.list, file=filename[[1]], sep="", append=FALSE) #writes
the current frequency list to file
}
Many thanks!
Joseph Sorell
2011 Aug 14
1
Using get() or similar function to access more than one element in a vector
Dear R-users,
I've written a script that produces a frequency table for a group of
texts. The table has a total frequency for each word type and
individual frequency counts for each of the files. (I have not
included the code for creating the column headers.) Below is a sample:
Word Total 01.txt 02.txt 03.txt 04.txt 05.txt
the 22442 2667 3651 1579 2132 3097
I 18377 3407 454 824 449
2010 Oct 11
1
plotting Zipf and Zipf-Mandelbrot curves in R
Using R, I plotted a log-log plot of the frequencies in the Brown Corpus
using
plot(sort(file.tfl$f, decreasing=TRUE), xlab="rank", ylab="frequency",
log="x,y")
However, I would also like to add lines showing the curves for a Zipfian
distribution and for Zipf-Mandelbrot.
I have seen these in many articles that used R in creating graphs.
Thank you!
[[alternative HTML