similar to: reading in results from system(). There must be an easier way...

Displaying 20 results from an estimated 600 matches similar to: "reading in results from system(). There must be an easier way..."

2009 Dec 20
2
read.table: mysterious line omissions
Hello again, I am simply trying to import a rectangular table of strings. The table's dimensions are 1990 x 2, yet my read.table() command can only find 362 of the rows (and they're not the first 362). I would've taken the time to figure out how to use scan, readLines, or some other tool that can read in character strings, and then parse and input to a table, but that seems like
2016 Apr 18
2
lists and rownames
I'm doing some string manipulation on a vector of file names, and noticed something curious. When I strsplit the vector, I get a list of character vectors. The list is numbered, as lists are. When I cast that list as a data frame with 'as.data.frame()', the resulting columns have names derived from the original filenames. Example code is below. My question is, where are these names
2009 Oct 15
2
Proper syntax for using varConstPower in nlme
Hello, Excuse me for posting two questions in one day, but I figured it would be better to ask my questions in separate emails. I will again give the caveat that I'm not a statistician by training, but have a fairly decent understanding of probability and likelihood. As before, I'm trying to fit a nonlinear model to a dataset which has two main factors using nlme. Within the dataset
2008 Aug 27
1
switch() usage
Hello, I am wondering if it is possible to run separate lines of code within switch() as one can do in most languages. For example, I'd like to have switch execute a few lines of code based on the value passed to it. For example, >index = 1 > >switch(index, > command 1; command 2; command 3, #execute if index = 1 > command 4; command 5; command 6, #execute if index = 2
2012 Apr 23
2
Windows 2008R2 AD, kerberos, NFSv4
Hi, I'm trying to set up NFSv4 on two boxes (centos 5.5) and have it authenticate against our Windows 2008R2 AD server acting as the KDC. (samba/winbind is running ok with "idmap config MYCOMPANY: backend = rid" so we have identical ids across the servers.) I can mount my test directory fine via NFSv4 *without* the sec=krb5 option. However, once I put the sec=krb5 option in,
2012 Aug 03
4
How to concatenate a several rows according with a column ?
Hi, I'm a new user or R and I try to concatenate a several rows according with the value in a column. this is my data.frame and I want to concatenate my data.frame according with the column "b" and make a new data.frame with the information in the others columns. >table1 a b c d 1 E001234 TSA IP234 like_domain 2
2008 Dec 10
2
Corrupt Header<==Help
Hi, I have a little problem with table header. I am enclosing my TOY example: I have a tab separated file(tsv) with two columns as follow: \\disk(c:) \\processor(1) 322 40 422 60 I read the file using read.table as follow: tab<-read.table("c:/R/file1.tsv", header = TRUE, sep = "\t") ; but when I print it i.e print(tab);
2011 Jun 16
1
Fwd: varimp_in_party_package
> > Hello everyone, > > I use the following command lines to get important variable from training > dataset. > > > data.controls <- cforest_unbiased(ntree=500, mtry=3) > data.cforest <- cforest(V1~.,data=rawinput,controls=data.controls) > data.cforest.varimp <- varimp(data.cforest, conditional = TRUE) > > I got error: "Error in
2013 Jan 24
1
Help regarding kmeans output. need to save the clusters into different directories/folders.
Hi Team, I am trying to run kmeans in R, and I need to save the different clusters into different folders. How can I achieve this? # this is how my data looks. $ *cat 1.tsv | head* userid bookid rating bookTotalRatings bookAvgRating userTotalRatings userAvgRating 1 100 0 24 2.7916666666666665 291 2.6735395189003435 2 200 7 24 2.9583333333333335 6 7.0
2011 Sep 19
6
Mouse not working in Hellgate
Ok, I've been a little bit all over with this. I'm running Ubuntu 11.04 64bit (kernel 2.6.38.11) and GNOME 2.32.1. I have Wine 1.3.28 installed and Hellgate is installed and runs well, except the mouse does not work. I've seen various patches, but I'm unsure as to how to install them, and I've also seen where someone said that this bug should be fixed if Wine is fully updated
2006 Jun 26
2
Inverse Error Function
Do any of the R libraries have an implementation of the Inverse Error Function (Inverse ERF)? ref: http://mathworld.wolfram.com/InverseErf.html http://functions.wolfram.com/GammaBetaErf/InverseErf/ Thanks, Nathan [[alternative HTML version deleted]]
2020 Jul 03
0
Wine release 5.12
The Wine development release 5.12 is now available. What's new in this release (see below for details): - NTDLL converted to PE format. - Support for the WebSocket API. - Improved RawInput support. - Vulkan spec update. - Various bug fixes. The source is available from the following locations: https://dl.winehq.org/wine/source/5.x/wine-5.12.tar.xz
2005 Feb 28
6
Trouble w/ transparent proxy in DMZ (fwmark, tc)
2004 Sep 16
3
Estimating parameters for a bimodal distribution
For several years, I have been using Splus to analyze an ongoing series of datasets that have a bimodal distribution. I have used the following functions, in particular the ms() function, to estimate the parameters: two means, two standard deviations, and one proportion. Here is the code I've been using in S: btmp.bi <- function(vec, p, m1, m2, sd1, sd2) {
2006 Jun 26
8
id of last element in a table
Hi, I would like to figure out how to determine what the id of the last element in a table is. Is there an equivalent to the Table.find() method which will tell me the number of elements in a table? also, maybe more importantly, where are the available methods on tables documented? What i am trying to do is to increment the id and work through a table and check whether the id i am currently
2006 Sep 23
2
Create a vector of indices from a matrix of start and end points
I have a very large dataframe and wish to extract a subset of rows. I have a two column matrix listing the starting and ending indices of one subset on each row. My idea is to create a vector of indices that could be applied to the dataframe and I have a solution using a for loop (below). But surely there is some more elegant way to do this! I looked thorough the archives without
2005 Oct 22
4
Male and female symbols?
Does anyone have an idea of how one might plot male and female symbols on a graph using R? Thanks! .................................................................. George W. Gilchrist Email #1: gwgilc at wm.edu Department of Biology, Box 8795 Email #2: kitesci at cox.net College of William & Mary Phone: (757) 221-7751 Williamsburg, VA
2011 Mar 15
4
HUNK #N Problems When Applying A Patch For Wine 1.3.15
Anarchy Online is running great through WINE. However, I need to apply this patch in order for the right mouse button to do extra functionality === Code: diff --git a/dlls/user32/Makefile.in b/dlls/user32/Makefile.in index 3dbde26..d1ebfe8 100644 --- a/dlls/user32/Makefile.in +++ b/dlls/user32/Makefile.in @@ -1,7 +1,7 @@ EXTRADEFS = -D_USER32_ -D_WINABLE_ MODULE = user32.dll IMPORTLIB =
2011 Apr 16
2
How to get RawInput support in 1.3.18
I compiled the latest developmental release of wine. The changelog seems to indicate that there is now "official" support of RawDeviceInput through the XInput2. I've verified that when I configured my build, it found X11/extensions/XInput2.h, but programs that use RawDeviceInput for mouse movement still seems to require source patches to work. Did I do something wrong when
2012 May 03
1
AMI disconnects
Hi all. I've got a perl script that connects to Asterisk's management interface using Asterisk::AMI. So far, its proven to be very useful. I'm hoping to use this to detect and respond to asterisk restarts and sip reloads. However, my script gets disconnected quite frequently, causing false alarms in my monitoring. Here's what the code looks like: