Displaying 20 results from an estimated 6000 matches similar to: "read complicated file"
2010 Oct 01
3
Converting a dataframe column from string to datetime
Hi,
I have a dataframe column of the form
v<-c("Fri Feb 05 20:00:01.43000 2010","Fri Feb 05 20:00:02.274000 2010","Fri Feb 05 20:00:02.274000 2010","Fri Feb 05 20:00:06.34000 2010")
I need to convert this to datetime form. I did the following..
lapply(v,function(x){strptime(x, "%a %b %d %H:%M:%OS %Y")})
This gives me a list that looks like
2008 Jul 23
2
Can't Load Text Files
Hi,
I've completely forgotten how to do R, and it seems I can't even load
simple files correctly.
I have two tab deliminated text files (attached, these were test files
of the larger data files I'm trying to work with) that I am trying to
load into R so that I can merge them. They were originally excel files
but I used "saved as" to reformat to text. I don't know if
2012 Jun 13
1
How to calculate the statistcs for extracted region?
I have a binary file(a) with size of (360 720 )for the globe.I wrote the code
given below to read and extract an area (south america)from that file. when
I use summary for the whole file I got:
summary(a, na.rm=FALSE)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0.00 1.00 3.00 4.15 7.00 20.00 200083 .
But when I used summary for the region(b) which I extracted, I got
2008 Jul 24
2
Can R fill in missing values?
Hi,
I know this can be done in Stata (which is quite messy) but I wanted to
know if it can be done in R. So lets say I have a merged data set (I
used the merge function by date for the attached two files), where all
the missing values are filled with NAs (which is what the all.x=TRUE does).
Is there any way to replace those NAs with the value of the latest row
that contains a value?
For
2020 Sep 21
2
Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"
Hello everyone,
I am using *mlogit* to analyse my choice experiment data. I have *3
alternatives* for each individual and for each individual I have *9
questions*. I have a response from *516 individuals*. So it is a panel of
9*516 observations. I have arranged the data in long format (it contains
100 columns indicating different variables and identifiers).
In mlogit I tried the following
2009 Jul 23
1
Activation Functions in Package Neural
Hi,
I am trying to build a VERY basic neural network as a practice before
hopefully increasing my scope. To do so, I have been using package "neural"
and the MLP related functions (mlp and mlptrain) within that package.
So far, I have created a basic network, but I have been unable to change the
default activation function. If someone has a suggestion, please advise.
The goal of the
2006 May 12
1
[ESRI-L] outline polygons of point clumps
Sorry, I did not make my question clear. Since I have a point theme
with many points, some of them may clump together. the problems here
are:
1. how to find clumps in a point theme?
2. the convex-hull extension I found only deal with all the points in
a theme at each time? how to make each convex hull around each point
clump automatically?
Thanks.
Xiaohua
On 5/12/06, Bob Booth <bbooth
2005 Dec 06
6
Planning Mail Server (with low resources)
Hello,
I'm planning the installation of the school's Mail Server. This is the
first time I get in administration. I've been reading about postfix,
cyrus and the first page in the guide of HughesJR.com[2] about
installing postfix-cyrus, but due my low hardware resources, I ask for
suggestions to see If what I need can be done (and|or) stable.
Hardware:
Pentium III 1.4Ghz
256 RAM
40
2010 Feb 17
2
extract the data that match
Hi r-users,
I would like to extract the data that match. Attached is my data:
I'm interested in matchind the value in column 'intg' with value in column 'rand_no'
> cbind(z=z,intg=dd,rand_no = rr)
z intg rand_no
[1,] 0.00 0.000 0.001
[2,] 0.01 0.000 0.002
[3,] 0.02 0.000 0.002
[4,] 0.03 0.000 0.003
[5,] 0.04 0.000 0.003
[6,]
1999 May 06
0
matrix weirdness
I am using R on unix version 63.0
I am doing an image plot of the following data file:
================================
lag1 lag2 cif2d
0.000 0.000 NaN
0.000 1.000 0.500000
0.000 2.000 0.489831
0.000 3.000 0.492986
0.000 4.000 0.493409
0.000 5.000 0.492727
0.000 6.000 0.494485
1.000 0.000 0.500000
1.000 1.000 NaN
1.000 2.000 0.495098
1.000 3.000 0.489831
1.000 4.000 0.492986
1.000 5.000
2003 Sep 17
2
Date on x-axis of xyplot
xyplot doesn't seem to want to label my x-axis with dates but instead puts
the day-number for each date.
begdate is the number of days since January 1, 1960 and was initially
created by
library(date)
...
polls$begdate<-mdy.date(begmm,begdd,begyy)
I create a new dataframe (pollstack) which includes begdate. In the process
begdate seems to lose its date attribute so I redo it as:
>
2008 Nov 25
0
Frequency Spectrum fft plot dillema
Hi,
I have more questions about the fft. The application in Excel is very
limited.
In Excel I can adjust graphs and calibrate the x and y-axis. The input and
process, however, is limited compared to R.
With a Dataset table where one column is the hour difference and the second
are the values with hidden frequencies, how is it possible to plot a
frequency spectrum with the x-axis calibrated to
2009 Apr 25
0
[LLVMdev] Calling-convention lowering proposal
On Apr 23, 2009, at 8:09 PM, Dan Gohman wrote:
> Attached is a patch which significantly reworks how calls, incoming
> arguments, and outgoing return values are lowered. It's a major
> change,
> affecting all targets, so I'm looking for feedback on the approach.
>
> The goal of the patch is to eliminate a bunch of awkward code,
> eliminate some unnecessary
2006 May 12
0
outline polygons of point clumps
Dear all,
How to generate one outline polygon for each point clump? Are there
any present functions in ArcView, ArcGIS, R or some freewares? I just
had a quick look at the package adehabitat and did not find the
function.
To my knowledge, I could do it as follows: 1) make a grid map of my
study area with cell values = 0; 2) assign 1 to the cells containing
at least one point; 3) convert the
2005 Sep 07
2
max concurrent CIFS connections
Hello,
I need some help please. I have been told from an administrator that Samba
does only support up to 3.000 concurrent CIFS connections and each
connections reserve 5MB of memory.
If this is true that I would need 15GB of memory to support 3.000 concurrent
CIFS sessions how many people have this amount of memory in any server?
The second argument which he used was and I quote him
2015 Mar 13
6
[LLVMdev] On LLD performance
> I will do a run with --merge-strings. This should probably the the
> default to match other ELF linkers.
Trying --merge-strings with today's trunk I got
* comment got 77 797 bytes smaller.
* rodata got 9 394 257 bytes smaller.
Comparing with gold, comment now has the same size and rodata is 55
021 bytes bigger.
Amusingly, merging strings seems to make lld a bit faster. With
2009 May 15
1
help on Nan error
Hi guys
My data is Tasmania txt
There are *N *= 16 samples, consisting of 8 replicate cores (taken from
different areas across the sandflat) from each of 2 natural
'treatments' (either
disturbed "D" or undisturbed "U" by soldier crab burrowing activity. The
abundances of each of *p *= 56 species were recorded from each core
(variables 1 to 39 in the file are
2009 May 09
0
clump of binary pixels on raster
Dear all,
I have a set od 30,000 binary landscapes, which represent habitat and
non-habitat cover.
I need to generate images that identify those neighbour (rule 8) pixels as
one patch ID,
and a different patch ID for each clump of pixels. I coded it using
labcon(adehabitat),
but as some of my landscapes have so many patches, labcon not finish and
entry in
a eternal looping. By other side, I coded
2015 Mar 22
5
Facebook CentOS group close to 15.000 members!
Hi everyone.
I have a pleasure to announce that official CentOS group on Facebook
will reach 15.000 members in next 6-9 days, somewhere just before April
1st :)
Average rate of new members, mostly total newbies, is around 140-180
members per week.
Group's link is https://www.facebook.com/groups/centosproject/
--
Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe
StarOS,
2008 Sep 09
1
Genmod in SAS vs. glm in R
Hello,
I have different results from these two softwares for a simple binomial GLM
problem.
>From Genmod in SAS: LogLikelihood=-4.75, coeff(intercept)=-3.59,
coeff(x)=0.95
>From glm in R: LogLikelihood=-0.94, coeff(intercept)=-3.99, coeff(x)=1.36
Is there anyone tell me what I did wrong?
Here are the code and results,
1) SAS Genmod:
% r: # of failure
% k: size of a risk set
data