similar to: sampling problem - new to R

Displaying 20 results from an estimated 500 matches similar to: "sampling problem - new to R"

2007 Jun 06
0
Odp: Odp: sampling problem - new to R
> Hi > > If I understand correctly, use split and sample with lapply. If DF is your dataframe > > lapply(split(DF$Tree, DF$Plot), function(x) sample(x,1)) > > shall select random tree from each plot. Or you can get it in tabular form with sapply. > > Regards > Petr Sorry, you shall use resample from sample help page as Prof.Ripley pointed if you can have
2010 Apr 07
1
extracting ctree() output information
Hi, I am new to R and am using the ctree() function to do customer segmentation. I am using the following code to generate the tree: treedata$Response<-factor(treedata$Conversion) fit<-ctree(Response ~ .,controls=ctree_control(mincriterion=0.99,maxdepth=4),data=treedata) plot(fit) print(fit) The variable "Response" above equals 1 if the customer responded to an offering and
2011 Jan 06
8
Accessing data via url
# Can anyone suggest why this works datafilename <- "http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data" person.data <- read.table(datafilename,header=TRUE) # but this does not? dd <- "https://sites.google.com/site/jrkrideau/home/general-stores/trees.txt" treedata <- read.table(dd, header=TRUE)
2003 Jan 16
2
No access to root-level of shares on NT4 SP6 with Samba 2.2.2 on FBSD-4.7
Hi all, I've got a strange problem with my German NT4 SP6 and my FreebSD-4.7 Samba 2.2.2 server running as a PDC. I connect to several shares on the Samba-machine by linking them to drive letters. I can browse them but I can not copy anything to the root-level of the share, neither directories nor files. The error message is on the NT4-box is: BLA kann nicht kopiert werden: Der Zugriff wurde
2005 Oct 05
2
problem in installing a package
I'm using R in Windows XP. I created a package myself. I've used R CMD check to check it. Everything seems OK except the latex. I get the error message: * checking bbHist-manual.tex ... ERROR LaTeX errors when creating DVI version. This typically indicates Rd problems. I ignored it because I didn't want to submit it to CRAN. Then I tried to use R CMD INSTALL to install it. First I
2005 Mar 30
2
editing gnome menu
Is there any easy way to edit the gnome menu under CentOS 4? The same versions of gnome under different distros allow easy (to different degrees) of menu editing.
2018 Jul 23
1
Suggestion for updating `p.adjust` with new method (BKY 2006)
Dear R contributors, I suggest adding a new method to `p.adjust` ("Adjust P-values for Multiple Comparisons", https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html). This new method is published in Benjamini, Krieger, Yekutieli 2016 Adaptive linear step-up procedures that control the false discovery rate (Biometrika). https://doi.org/10.1093/biomet/93.3.491 This paper
2004 Dec 06
4
confession
Gang, I've got to admit, what really sold me on debian was apt-get. And I've been resisting getting up to speed with yum. So, can any of ya point me to a good starter page, maybe one with migrators like me in mind? Many thanks. -- Robert Thomas ("beau") Hayes Link Open your heart, pray for peace, preach healing (c)2004ISR http://www.semanticrestructuring.com/
2006 Jul 11
2
help
Please, is there any R-list about survival package ? Thanks Mauricio
2008 May 10
3
Creating Matrix
Hello, I have two data. x<-c(1, 2, 1, 3, 2) y<-c(3, 1, 2, 3, 5) 1. How do i create matrix from this two. what i want is this x y 1 1 3 2 2 1 3 1 2 4 3 3 5 2 5 2. what is the best way to use chisq.test to get the p.value thanks Claire -- View this message in context: http://www.nabble.com/Creating-Matrix-tp17168173p17168173.html Sent from the R help mailing list
2008 Apr 30
2
arcsine transformation
I have been trying to preform both a bartlett's test and an arcsine transformation on some average percentage data. I've tried inputting it different ways and I keep getting the same error message: > head(workingdata) DYAD BEFORE AFTER 1 BG-FL 4.606772 5.787520 2 BG-LL 5.467503 7.847395 3 AD-MV 5.333735 11.107380 4 MM-FL 5.578708 12.063500 5 MM-MV 2.037605 6.415303 6 MM-RM
2013 Feb 01
2
mountain lion install, error message
Hi, I have been trying to install R on my mac which is running mountain lion. It is partially working, but one error message I am getting is: Error in function () : object '.activeModel' not found. I cannot find anything on this by googling. It appears, for example, when I try to 'add observation statistics to data' under the 'models' menu in R commander. I wondered
2012 Nov 09
1
R function data variable name argument
Hello fellow R-ers, I have spent some time on this and it is driving me NUTS! I am sure there is a solution, so please help. I am trying to create a function that will plot different lines for subsets of a dataset. For example, I am trying to look at different drug groups (drug2), let's say 1,2,3,4, and 5. The data has 2 different rates, college students and high school students (var names cs
2007 Jun 01
2
Ferret FileNotFound error after adding counter_cache to mode
I have a model that I''ve been indexing and searching with ferret with no problems. I just added a counter_cache for some voting functionality to the same model and now when I perform the voting fxn on an object from that model, I get the FileNotFound error as it looks for a file named "_1c_1.del" ...which breaks my voting function. I tried killing the server and my index
2005 Oct 06
1
problem with installing a package
I do have full access to that directory. I have the bbHist package in c:/PROGRA~1/R/rw2011/library/bbHist directory. Then under the library directory I did check and build. Here's what I got: $ R CMD check bbHist * checking for working latex ... OK * using log directory 'c:/progra~1/r/rw2011/library/bbHist.Rcheck' * using R version 2.1.1, 2005-06-20 * checking for file
2005 Mar 04
3
PXE(bis) boot Centos 4.0 problems
"AS" == Alan Sparks <asparks@quris.com> "MH" == Martin Hamant <mh@accelance.fr> AS> Has anyone yet tried PXE booting the vmlinuz/initrd.img AS> set from Centos 4.0beta2? AS> Anyone had luck? Any changes for PXE boots known for 4.0? AS> Thanks in advance. MH> No luck. this is exactly the same issue i''m in front of.
2010 Apr 06
1
glmpath in R
Hi Claire, I'm replying and CC-ing to the R-help list to get more eyes on your question since others will likely have more/better advice, and perhaps someone else in the future will have a similar question, and might find this thread handy. I've removed your specific research aim since that might be private information, but you can include that later if others find it necessary to know
2010 Oct 28
1
Key combination that removes all R objects
Dear readers, There is a combination of keys that I have (on several occasions now) typed by accident into R (2.10.0) which removes all the objects in the environment, and clears the console, as though I had typed rm(list=ls()). Unfortunately I don't know what the combination of keys are, so I am struggling to find out more about this behaviour on my own and I was hoping that someone has
2006 Mar 01
3
Form helpers and overloaded methods - help!
Can someone explain why form helpers appear to bypass any model methods I override for fields that are bound to database fields? It would be great if someone could tell me how to force the form field, etc to call the method instead of looking at the database / attributes collection. Let''s say I have a column called ''price'' in my database table "books"
2005 Dec 04
5
CentOS and Dell Support
I'm a fairly experienced RH and Fedora user and admin looking to try CentOS for the first time. I have lots of experience with Dell servers and I'd like to stick with them. Although I'm sure it's not always strictly enforced, Dell claims that it won't provide warranty hardware support on servers installed with an un-Dell-supported OS (basically, anything other Windows, RH, and