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.
try the fitdistr() function in the MASS package
As a different approach, you could just use the readLines function: length(readLines(D:\my_dir\my_file))
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110502/c30a24cf/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110503/e4a18f5a/attachment.pl>
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 } }
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 .