Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

36 results for “from:Steven Kennedy”

to check if a group of values is randomly distributed
Steven Kennedy · May 13, 2011 · r-help

try the fitdistr() function in the MASS package

escape characters in shell commands
Steven Kennedy · May 24, 2011 · r-help

As a different approach, you could just use the readLines function: length(readLines(D:\my_dir\my_file))

subseting data
Steven Kennedy · May 2, 2011 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110502/c30a24cf/attachment.pl>

INSERT OR UPDATE
Steven Kennedy · May 2, 2011 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110503/e4a18f5a/attachment.pl>

Missing completely at random
Steven Kennedy · Jun 1, 2011 · r-help

This works, but there might be a better way: misscols<-lapply(howmanyMiss, function(x) sample(1:n, x)) for (i in 1:nMiss){ for (j in misscols[[i]]){ X[idMiss[i],j]<-NA } }

Insert values to histogram
Steven Kennedy · May 5, 2011 · r-help

Histograms plot data in bins - you don't get the exact value, because each bin contains a range of values. Do you want to plot the range of values the bin contains? Also, check ?hist to see how to set...

RMySQL problem on Windows 7 32 bit
Steven Kennedy · May 13, 2011 · r-help

It looks like your MySQL is missing the libmysql.lib file. Download it from MySQL then put it in the following location: C:/Program Files/MySQL/MySQL Server 5.5/lib/opt/libmysql.lib If you are still having problems...

Plotting n a scale up to 6 decimal places
Steven Kennedy · May 8, 2011 · r-help

The plot works fine for me with the example data you have given. Maybe it is something in your par settings. Try putting a ylim in your plot the same as you have done for the xlim: y1<-min(original...

Reordering inputs
Steven Kennedy · May 11, 2011 · r-help

You can order each matrix by any column you choose like: a<-matrix(rnorm(20),ncol=2) > a[order(a[,1]),] #orders by column 1 [,1] [,2] [1,] -1.86523489 -1.6920270 [2,] -0.94488744 0.2815087 [3,] 0.02380494...

Plotting a gragh or histogram in a certain colour
Steven Kennedy · Jun 26, 2011 · r-help

plot(1:20,col='blue') On Mon, Jun 27, 2011 at 9:40 AM, <Gwanmesia at aol.com> wrote: > Dear Sir, > > Just started using R. I want to plot x>-1:20, for example, in the colour > blue. How do...

Converting ordinal dates and time into sensible formats
Steven Kennedy · May 10, 2011 · r-help

How about something like: > data$DateTime<- strptime(paste(data$day.hour,data$min.sec,sep=" "),format="%j%H %M%S") > data$Date <- strftime(data$DateTime,format="%Y-%m-%d") > data$Time <- strftime(data$DateTime,format="%H:%M:%S") > data day...

IDE with table/matrix preview
Steven Kennedy · Jul 18, 2011 · r-help

Try RStudio. It is the best IDE for R I've seen. On Tue, Jul 19, 2011 at 3:31 AM, Michael Bernsteiner <dethlef1 at hotmail.com> wrote: > > I know there are several threads about IDEs for R. > > I've...

How to fit a random data into Beta distribution?
Steven Kennedy · May 3, 2011 · r-help

library(MASS) fitdistr(x,"beta",list(shape1=1,shape2=1)) On Tue, May 3, 2011 at 9:44 PM, Shekhar <shekhar2581 at gmail.com> wrote: > > Hi, > I have some random data and i want to find out the parameters of...

How to read 20 columns from the file
Steven Kennedy · Jul 13, 2011 · r-help

save it as .csv, then use read.csv("your_file.csv") On Wed, Jul 13, 2011 at 6:23 PM, Kishorenalluri <kishorenalluri.au at gmail.com> wrote: > Friends, > ? ? ? ? ?Could anyone help me the script, how to read the more than...

How to Execute A Query Stored In Access 2007
Steven Kennedy · Jul 6, 2011 · r-help

What package are you using to connect to the Access database? On Thu, Jul 7, 2011 at 7:02 AM, Alex Zhang <alex.zhang at ymail.com> wrote: > Hey guys, > > Could you please teach me how to run or execute...

Histogram
Steven Kennedy · Jun 8, 2011 · r-help

Have a look at: http://addictedtor.free.fr/graphiques/thumbs.php One of the graph examples they have is exactly what you are after. On Wed, Jun 8, 2011 at 11:14 PM, nandini_bn <nandini_bn at hotmail.com...

converting character to numeric
Steven Kennedy · Jun 21, 2011 · r-help

You need: mydata$apples<-as.numeric(mydata$apples) On Wed, Jun 22, 2011 at 6:38 AM, Alina Sheyman <alinashe at gmail.com> wrote: > I'm trying to convert data from character to numeric. > > ?I've imported data as a...

analysis with the data from mysql database
Steven Kennedy · Jun 20, 2011 · r-help

Please tell us the package you are using and the specific commands. It is most likely you are retrieving the data into a list or some other structure that hist() doesn't like. On Mon, Jun 20, 2011 at 12...

for loop looking for file names
Steven Kennedy · Dec 2, 2008 · r-help

I have a series of csv files in several folders. All begin with a 7 digit number and end with the letter "E" (eg. 0726016E.csv). I want to be able to read a file in to R, take some...

Count occurances in integers (or strings)
Steven Kennedy · Jun 15, 2011 · r-help

This should work: mydata$my_column<-as.character(mydata$my_column) sum(unlist(strsplit(mydata[,"my_column"], "")) == "1") On Wed, Jun 15, 2011 at 7:09 PM, Jay <josip.2000 at gmail.com> wrote: > Hi, > > I have a dataframe column...

Can't find what you're looking for? Try searching with Google .