Displaying 20 results from an estimated 100 matches similar to: "Simple question about error on CSV import"
2009 Sep 17
3
Simple as.Date question dealing with a timezone offset
I've been trying to understand the as.Date functionality and I have a date
and time stamp field that looks like this:
"Tue Sep 15 09:22:09 -0600 2009"
and I need to turn it into an R Date object for analysis.
Simple date conversions I have down, no problem:
> adate = c("7/30/1959")
> as.Date(adate,"%m/%d/%Y")
[1] "1959-07-30"
>
But when it
2009 Sep 15
2
best method to format output of frequency table
I have some security alert log data that I'm parsing and doing some stats on.
One of the fields is the "Classtype" which is the enumerated value of the
type of alert found.
classtypes = factor( alerts$Classtype )
fclass_types = table( classtypes )
fclass_types gives me a frequency table of the intrusion types:
fclass_types
classtypes
2003 Feb 12
1
models for square tables
I've posted a sample file for estimating loglinear models for square
tables (mobility models) at http://www.xs4all.nl/~jhckx/mcl/R/
Comments and suggestions are welcome.
John Hendrickx
2000 Jul 07
1
reorganizing a data frame
Hi,
I have what I think is an easy question.
I have a data frame, called stockdata, of stock prices that looks like this:
date ticker close
1 01/02/1998 GE 24.667
2 01/05/1998 GE 25.104
3 01/06/1998 GE 24.771
4 01/07/1998 GE 24.979
5 01/08/1998 GE 24.750
6 01/02/1998 HIT 71.125
7 01/05/1998 HIT 72.313
2003 May 09
3
Windows 2000 Profiles Through Freeswan VPN
Hello,
I have setup a samba server at my office as a PDC it stores the profiles
on the server fine. I can access the profiles from any computer in the
office just fine. My problem is that I work from home 4 days a week and
need to access my work profile. I currently VPN into the office network
via freeswan. I can log into the the domain from the vpn'd connection
and I can access the samba
2015 Jan 16
1
S3 generic method dispatch on promises
Dear R friends
I wanted a function to make a simple percent table that would be easy for
students to use. The goal originally was to have a simple thing people
would call like this
pctable(rowvar, colvar, data)
and the things "rowvar" and "colvar" might be names of variables in data. I
wanted to avoid the usage of "with" (as we now see in the table help).
Then
1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I
received the following help. As always many thanks for the prompt
responses. Now I load my csv file in a text editor ( pfe) and delete
all spaces.
My original mail is at the end.
From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk>
Do you have spaces before the commas in your file?
> Yes, number , space,
1999 Nov 10
1
read.table problems
Yesterday I asked for help about read.table with a CSV file. I
received the following help. As always many thanks for the prompt
responses. Now I load my csv file in a text editor ( pfe) and delete
all spaces.
My original mail is at the end.
From: Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk>
Do you have spaces before the commas in your file?
> Yes, number , space,
2004 Sep 20
2
problem with R CMD build (PR#7240)
Hello,
This may not be a bug--but I'm not sure. I have R 1.91 installed on a
machine that's running Windows XP. In Cygwin, when I attempt to use the
"build" command it tells me that TMPDIR is set to an invalid directory.
See the results below:
stat20:/cygdrive/d/dirk/bands/implementation -> which r
/cygdrive/d/Programs/R/rw1091/bin/r
2004 May 04
1
rpart question
Wondered about the best way to control for input variables that have a
large number of levels in 'rpart' models. I understand the algorithm
searches through all possible splits (2^(k-1) for k levels) and so
variables with more levels are more prone to be good spliters... so I'm
looking for ways to compensate and adjust for this complexity.
For example, if two variables produce
2003 Aug 15
1
Unable to Access Inet via HostAP
Hello,
Thanx in advance to anyone who can help me get this going. I have
tinkered around and around with this and I have it functioning as a
visible access point that I can connect to. My problem comes in when
trying to access the internet. I''m not an iptables guru or anything but
I got the following as my iptables startup to supposedly masq the
connection correctly:
2002 Oct 01
2
Does R have graphlets?
I've been experimenting some with the graphlets which S-Plus 6.1 has. Is
there
something similar in R? I've looked through documentations, and at SJava,
but haven't found it.
(If you don't know what a graphlet is, here's what it appears to be:
a graphlet is a binary file that encodes information about
a graph. Java uses spgraph.jar to display the graph and allow certain
2006 Mar 31
2
rowVars
I am using the R 2.2.1 in a Windows XP environment.
I have a dataframe with 12 columns and 1,000 rows.
(Some of the rows have 1 or fewer values.)
I am trying to use rowVars to calculate the variance
of each row.
I am getting the following message:
?Error in na.remove.default(x) : length of 'dimnames'
[1] not equal to array extent?
Is there a good work-around?
2002 Feb 08
3
Plotting multiple columns on same graph
I'd like to produce a series of simple line graphs for my methods class
that show the three questions used on a repeated survey to make up a
particular index. The data frame is:
> efficacy.df
year complicated havesay dontcare
1 1952 71 68 63
2 1954 NA NA NA
3 1956 64 71 71
4 1958 NA NA NA
5 1960
2002 Aug 14
3
t-test via matrix operations
I need to calculate a large number of t statistics, and would like to do so via matrix operations. So far I have figured out a way to calculate the mean of each row of the matrix:
d <- matrix(runif(100000,1,10), 1000, 10) # some test data
s <- rep(1,ncol(d)) # a sum vector to use for matrix multiplication
means <- (d%*%s)/ncol(d)
This is at least 1 order of magnitude faster than
2004 Jun 09
1
Re: R equivalent of Splus rowVars function
Mark Leeds <mleeds at mlp.com> wrote (to S-News):
> does anyone know the R equivalent of the SPlus rowVars function ?
Andy Liaw <andy_liaw at merck.com> replied:
> More seriously, I seem to recall David Brahms at one time had created an R
> package with these dimensional summary statistics, using C code. (And I
> pointed him to the `two-pass' algorithm for variance.)
2004 Sep 20
0
RE: problem with R CMD build--FIXED (PR#7241)
> I'm puzzled. One thing I'd try would be to get Cygwin out of the picture,
> at least for a moment. Try to set TMPDIR (and maybe TMP and TEMP) to
> C:\Temp,
> and try to run the whole thing from a "DOS" Cmd.exe window.
Here it is:
D:\dirk\bands\implementation>set TMPDIR=d:\tmp
D:\dirk\bands\implementation>echo %TMPDIR%
d:\tmp
2002 Nov 15
2
Why no colSDs etc
Hi people,
If there is a fn "colMeans" why isn't there a "colSDs" etc
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Mobile: +61:0411-185-652
Fax: +61:2:8923-5363
E-mail: pri at chu.com.au
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2007 Mar 01
2
Row-wise two sample T-test on subsets of a matrix
Hello all,
I am trying to run a two sample t-test on a matrix which is a
196002*22 matrix. I want to run the t-test, row-wise, with the
first 11 columns being a part of the first group and columns
12-22 being a part of the second group.
I tried running something like (temp.matrix being my 196002*22
matrix)
t.test(temp.matrix[,1:11],temp.matrix[,12:22],paired=TRUE)
or somthing like
2010 Jul 09
8
DO NOT REPLY [Bug 7565] New: --check-point=<TIME> +options.c.patch +generator.c.patch
https://bugzilla.samba.org/show_bug.cgi?id=7565
Summary: --check-point=<TIME> +options.c.patch
+generator.c.patch
Product: rsync
Version: 3.0.7
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org