similar to: Select Random Rows from a dataframe

Displaying 20 results from an estimated 200 matches similar to: "Select Random Rows from a dataframe"

2011 Jul 22
1
applying a loop to multiple dataframes
Hello again R-folks, I'm trying to apply a loop to multiple data frames and then organize the data in a manageable form. I have the code for my loop figured out (thanks to help from this list)...it runs up to 2000 iterations of a "while" loop until it finds a 40-row "d2p" column sum >5 n<-nrow(dsub.f1) test<-0 for(k in 1:2001){ if(k>2000){ break} #stops
2011 Aug 11
2
sapply( ) a loop function
Hello R-universe... I am having trouble writing a function which contains a loop so I can sapply() it to a list of data frames Each data frame has 241 observations of 15 variables. My loop takes a random sample of one row until the 40 consecutive rows after the sample have a d2p(variable) sum greater than 5. here is my loop code (it works fine when applied to a 241 observation data frame):
2014 Apr 24
3
[LLVMdev] tablegen for fast isel
What is the purpose of tablegen created files for fast-isel? If I make the following change to Makefile in lib/Target/Mips BUILT_SOURCES = MipsGenRegisterInfo.inc MipsGenInstrInfo.inc \ MipsGenAsmWriter.inc MipsGenCodeEmitter.inc \ MipsGenDAGISel.inc MipsGenCallingConv.inc \ - MipsGenSubtargetInfo.inc MipsGenMCCodeEmitter.inc \ +
2012 Oct 16
2
gam (mgcv) problem: Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :, missing value where TRUE/FALSE needed
Hi All, I'm running into a problem with GAM (in the MGCV package). When I try to estimate the model, I get the following error message: 1> fit <- gam(ndvi~s(rain)+s(temp)+s(rainl1)+s(rainl2)+s(rainxY)+s(rainl1xY)+s(rainl2xY)+s(tempxY), data=dsub, weights=wvec) Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { : missing value where TRUE/FALSE needed Using
2024 Oct 22
1
invalid permissions
Dear Prof. Roger Koenker, On Tue, 22 Oct 2024 09:08:12 +0000 "Koenker, Roger W" <rkoenker at illinois.edu> wrote: > > fN <- rqss(y~qss(x,constraint="N")+z) > > *** caught segfault *** > address 0x0, cause 'invalid permissions? Given a freshly produced quantreg.Rcheck directory, I was able to reproduce this crash by running R -d gdb # make
2010 Mar 22
0
using lmer weights argument to represent heteroskedasticity
Hi- I want to fit a model with crossed random effects and heteroskedastic level-1 errors where inferences about fixed effects are of primary interest. The dimension of the random effects is making the model computationally prohibitive using lme() where I could model the heteroskedasticity with the "weights" argument. I am aware that the weights argument to lmer() cannot be used to
2024 Oct 22
1
invalid permissions
Gurus: I have a new version of my quantreg package with minimal changes, mainly to fix some obscure fortran problems. It fails R CMD check ?as-cran with the error: Running examples in ?quantreg-Ex.R? failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot.rqss > ### Title: Plot Method for rqss Objects
2013 Dec 21
3
[LLVMdev] running clang format on the Mips target
Hi David, What kind of "a lot of out-of-tree changes"? You should push changes incrementally as you do work. Holding onto changes means that many things, not just reformatting, can make them need to be redone. We frequently clean up and rewrite code to make it cleaner and easier to maintain. We are moving to a more strict internal review and pushing of changes and post commit
2006 Apr 12
1
bcmxcp_usb "Can't open POWERWARE USB device"
I tried switching to the USB version of bcmxcp_usb and get this error when I try starting up upsdrvctl or bcmxcp_usb like so: /etc/nut/bcmxcp_usb -DDDD -a powerware -u nut I used this for ups.conf: [powerware] driver = bcmxcp_usb port = auto With the serial/usb dongle, I used this successfully: [powerware] driver = bcmxcp port = /dev/ttyUSB0 What devices does
2015 Jan 12
2
2460x1440 video card recommendation
Can someone recommend a video card that's capable of driving a monitor at 2560x1600 or 2560x1440 and just works with Centos 7 without requiring any outside video drivers? I would prefer to stay with the built-in video drivers that are included with Centos 7 if possible; I don't play games and such, so I'm not looking for high performance 3D -- I just want a high resolution desktop.
2010 Oct 13
4
[Bug 30842] New: G84M/NVS 140M GPU Lockup
https://bugs.freedesktop.org/show_bug.cgi?id=30842 Summary: G84M/NVS 140M GPU Lockup Product: xorg Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at lists.freedesktop.org
2004 Jun 16
1
ATA186 v3.1 SIP - Attended transfer: NO JOY
Hi, I'm still hassling with the consultative/attended transfer stuff. Someone please help me identify this A lot has already been said about the ATA186. Some report it works fine, others say it doesn't. Lets get clarity on this. My scenario is reasonably simple (I think) Phone A: SIP/video1 Phone B: SIP/werkkamer Phone C: IAX2/provider Phone A calls phone B, they chat: *CLI> show
2008 Dec 16
2
utility to find which /dev/videoX
is there a utility or SOME method to determine which /dev/videoX (like /dev/video0 or /dev/video1) is being used by a device??? Example I have a USB camera and a USB TV module how do I determine which device is on /dev/video0 and which is on /dev/video1 I have seen perhaps a way in dmesg but I am looking for the BEST way and the correct way. Thanks, Jerry
2008 Feb 15
2
Skeletal relations
On 15-Feb-08, at 10:11 PM, Conrad Parker wrote: >> Lang: <locale> > > generally I think we should go with existing HTTP and email headers > where possible, eg. Content-Language 'k >> Description: <string> > > I kinda feel that this kind of human-readable metadata better belongs > in CMML; the skeleton tells you where to go (for each locale), the
2009 Jul 31
0
(no subject)
I have 2 video devices LML33 and PV155 $ lspci 06:00.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video cutting chipset (rev 02) 07:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11) 07:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11) 07:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture
2008 Feb 17
0
Skeletal relations
Ralph, Conrad, Now that we have ROE as a means to describe a multi-track ogg file - i.e. a means to author Skeleton - I assume this is supposed to describe how we map ROE information into Skeleton through the use of fisbone message header fields, right? In this case I wonder if you have gone over all the current ROE spec and made sure that all this information is either in ROE or easily
2013 Dec 24
2
[LLVMdev] running clang format on the Mips target
Hi David, I agree with you that it would be rude to simply clang-format the MIPS backend without coordination with any out-of-tree derivatives. To be honest, it hadn't occurred to me that there would be any such derivatives and the possibility wasn't raised in our internal discussion before we brought the subject up on this list. I'm keen to coordinate with such derivatives to
2011 Jun 08
38
[Bug 38074] New: Dual head doesn't work for some combination of monitors (second screen still off)
https://bugs.freedesktop.org/show_bug.cgi?id=38074 Summary: Dual head doesn't work for some combination of monitors (second screen still off) Product: xorg Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: major Priority: medium Component:
2010 Apr 05
17
[Bug 27455] New: dualhead not working, second display always black
https://bugs.freedesktop.org/show_bug.cgi?id=27455 Summary: dualhead not working, second display always black Product: xorg Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at
2019 Feb 25
0
Policy issue: C7 and motion
Not sure who's package let an error slip in, but I don't believe I've had this issue before: SELinux is preventing /usr/bin/motion from map access on the chr_file /dev/video1 Yes, that should be allowed by default. mark