Displaying 20 results from an estimated 300 matches similar to: "R-help"
2009 Mar 27
0
read.table on long lines buggy (PR#13626)
Full_Name: Manikandan Narayanan
Version: 2.8.1
OS: linux-gnu
Submission from: (NULL) (155.91.28.231)
Hi R-folks,
I have two three-line text files: tst1, tst2 (they are the same except that
the second line is longer in tst1; see cat() cmds below).
read.table is only able to read the 3rd line in tst1, however reads tst2
correctly as shown below. This happens both in R 2.5.1 (windows) and R
2009 Apr 20
1
[LLVMdev] mingw build problems
On Mon, Apr 20, 2009 at 3:32 AM, Jay Foad <jay.foad at gmail.com> wrote:
>> The attached patch makes GenLibDeps.pl notice that nm has failed, so
>> that the build fails immediately rather than giving more obscure
>> errors later on.
>
> Would you mind applying the patch?
>
Sure. But could you add a message to the "die" commands? Something like:
close
2007 Aug 06
3
Error in using nlevels in apply function
Dear R users,
I am currently trying to create my first personnal function and use it
with the apply function. The purpose of this function is to create a
vector summarizing the number of levels in a given selection of
data.frame columns.
I tried to transpose the indexation method used by the nlevels function
but it doesn't seem to work. I did not find anything uesful in the
archives so
2007 Oct 15
2
Need some help
Hi!
I'm taking a course that requires some programming background, but I'm a
complete novice in the field.
when asked to generate a list of 20 uniform random numbers, is it alright if
I put in >randu, and just copy-paste the first 20 numbers?? Or is there, as
I suspect, a better way of calling out exactly 20 uniform random numbers??
I'm also unable to solve the following problem:
2003 Jan 02
3
random number generation
Can a single random number be generated in R? I have an exercise that wants
to simulate coin tosses, and I cannot seem to find a good example of the use
of random number generation in R. Any help?
Joshua Gramlich
Chicago, IL
2009 Aug 31
4
Offtopic, HT vs. HH in coin flips
Dear R-help,
Could someone please try to explain this paradox to me? What is more likely to show up first in a string of coin tosses, "Heads then Tails", or "Heads then Heads"?
##generate 2500 strings of random coin flips
ht <- replicate(2500,
paste(sample(c("H", "T"), 100, replace = TRUE),
collapse =
2010 Oct 13
2
Coin Toss Simulation
I am trying a simple toin coss simulation, of say 200 coin tosses. The idea
is to have a data frame like so:
Experiment# Number_Of_Heads
1 104
2 96
3 101
So I do:
d <-data.frame(exp_num=c(1,2,3)); /* Just 3 experiments to begin with */
d$head_ct <-sum(sample(0:1,200,repl=TRUE));
d;
exp_num head_ct
1
2009 Jun 08
5
mean
Hi,
I have gote the following data
x1 <- c(rep(1,6),rep(4,7),rep(6,10))
x2 <- rnorm(length(x1),6,1)
data <- data.frame(x1,x2)
and I would like to compute the mean of the x2 for each individual of x1, i. e. x1=1,4 and 6?
Thank you very much in advance,
Amori
[[alternative HTML version deleted]]
2008 May 28
2
functional testing joins table problem
I have models/controllers
Class Facility
has_many :facilities_services, :dependent => :delete_all
Class Service
has_many :facilities_services, :dependent => :delete_all
Class FacilitiesServices
belongs_to :facility
belongs_to :service
so in my test/functional/facilities_controller_test.rb, I have
post :destroy, :id => 5
which tosses an error...
2008 Jun 25
2
help with cube3d cube size
I'm using the command below on an open3d() object to create a shaded
cube. Changes to myScalingFactor do not effect changes in the size of
the cube. What is the correct approach? Mark
shade3d(translate3d(cube3d(identityMatrix() *
myScalingFactor),-6,1,-1),col="green", alpha = 0.2)
--
Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine
2005 Jan 25
1
Problems with H323 channels
Hello,
I trying to set up an h323 channel over TCP/IP network to connect two
PBX.
I just read http://www.voip-info.org/wiki-Asterisk+config+h323.conf
but, it don't solve my dubs.
How could I use a h323 channel with asterisk?
Could anyone paste a part of h323.conf file? I am no sure how to setting
up h323.conf.
And the part of extensions.conf where you use the h323 channels for an
specific
2006 May 22
2
text_field_with_auto_complete part II (newbie question)
now that tha auto complete works (thanks Craig) I''m at a stumbling point again.
here''s the situation.
I have a text box that gets populated from the auto complete that has
"ivanoff, john" and I want to add him to a list of approved users.
how do I get the id to add to the employees_users table?
do I need to look up the employee in the employee table or can I get
the
2009 Jan 22
2
"latex" in Hmisc: cell formating
Hi list,
Could you explain the error I see here? Thanks!
## I'm using R 2.8.0 on WinXP, Hmisc_3.4-3
> table1 <- matrix(10, 180,7)
> cell.format <- matrix("", ncol=7, nrow=180)
> cell.format[c(seq(3,180,6),seq(4,180,6)),] <- "color{red}"
> cell.format[c(seq(5,180,6),seq(6,180,6)),] <- "color{green}"
>
> latex(table1,
2009 Dec 08
3
re-ordering x-lables using barchart()
Hi R Users,
I'm trying to re-order the "site names" ("Waseca", "Morris", ...). I'm using
following code:
libarry(lattice)
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(6,1), aspect=.7,
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE, rot=45,
2006 Dec 13
2
why are my multiple box & whisker plots so small?
Hi all,
I'm sure this is reallly basic, but I just can get it to work. I want to
plot six box & whisker plots together to make one figure so that they
appear one below the next.
I can do this using >par(mfrow=c(6,1)), but each box&whisker plots end up
vertically compressed to the point where I can't see the actual bars, and
there is a large amount of white space between each
2008 Jan 28
2
matrix creation
Hello,
I am trying to create multiple matrices (to run a PVA) but can't import all
of them from a .csv without the numbers treated as labels and not factors.
I can enter the matrix slowly:
Site05_96 <- matrix(c(0.07,0,0.03,0.00,NA,0.00,
0.09,0.166666667,0.31,0.42,NA,0.00, 0.00,0,0.00,0.00,NA,0.00,
0.00,0,0.00,0.00,NA,0.00,
2011 Mar 25
2
Fw: PDC/wins on multiple networks
Hi,
The pc that runs the samba server is my own property, it also dubs as router and dhcp server. I assign WINS server to the clients by dhcp using dnsmasq. I do not need or want to setup a domain. I just want to share files between the two networks using windows neighborhood and a workgroup, just like the clients would have been connected in the same network.
I have deleted the "remote
2012 May 20
5
removeing only rows/columns with "na" value from square ( symmetrical ) matrix.
I have some square matrices with na values in corresponding rows and
columns.
M<-matrix(1:2,10,10)
M[6,1:2]<-NA
M[10,9]<-NA
M<-as.matrix(as.dist(M))
print (M)
1 2 3 4 5 6 7 8 9 10
1 0 2 1 2 1 NA 1 2 1 2
2 2 0 1 2 1 NA 1 2 1 2
3 1 1 0 2 1 2 1 2 1 2
4 2 2 2 0 1 2 1 2 1 2
5 1 1 1 1 0 2 1 2 1 2
6 NA NA 2 2 2 0 1 2 1 2
7 1 1 1 1 1 1 0 2 1 2
8
2004 Apr 19
2
Need Help with Dial Plan
Let me lay it out for you....
Call comes in over a T1 - Signal is em_w. The extension is seen as
*<callerid>*<last 4 digits of number being called>*. Which is fine in
it self.
I have my extension.conf file set up as follows...
[did]
; Receive call as *<calling>*<called>
exten => _.,1,Answer
exten => _.,2,Cut(CALLING=EXTEN,*,2)
exten =>
2004 Apr 27
2
T1 DID problem
Hello,
I have a T1 (not PRI) plugged into my Asterisk server.
Everything is working well, except I only get the first digit of the 4 digit DID in Asterisk. The T1 provider (Eschelon) tried switching to 7 digits, and I only got the first digit of the 7.
Can anybody help? We're adding another DID and I need to trap it correctly.
Thanks.
Here are snippets from the relevant files:
--