Displaying 20 results from an estimated 5000 matches similar to: "Percentages in bar plot"
2013 Apr 03
5
scanning data in R
Dear R-user,
May I seek your suggestion. I have a data file 'stop' to be scanned in R.
But I want to ignore one specific number '21' there. Putting differently, I
want to get all numbers in the file except 21. Is there any command to
achieve it?
--------------------------------------------------------------
b<-scan("F:\\stop.txt")
2013 Mar 11
2
vertical lines in R plot
Dear All,
May I seek your suggestion on a simple issue. I want to draw vertical lines
at some positions in the following R plot. To be more specific, I wish to
draw vertical lines at d=c(5.0,5.5,6) and they should go till
p=c(0.12,0.60,0.20) . I haven't found any way out, though made several
attempts. Please run the following commands first if you are interested in!
2012 Oct 02
3
Integration in R
Dear R-users,
I am facing problem with integrating in R a likelihood function which is a
function of four parameters. It's giving me the result at the end but
taking more than half an hour to run. I'm wondering is there any other
efficient way deal with. The following is my code. I am ready to provide
any other description of my function if you need to move forward.
2012 Oct 23
1
Minimizing Computational Time
Dear R-users,
May I seek some suggestions from you. I have a long programme written in R
with several 'for' loops inside. I just want to get them out by any elegant
way (if there is!) to reduce the computational time of the main programme.
For instance, is there any smart way for the following programme that will
lessen time?
2013 Jan 08
2
Integration in R
Hi R-users.
I'm having difficulty with an integration in R via
the package "cubature". I'm putting it with a simple example here. I wish
to integrate a function like:
f(x1,x2)=2/3*(x1+x2) in the interval 0<x1<x2<7. To be sure I tried it
by hand and got 114.33, but the following R code is giving me 102.6667.
2012 Oct 14
1
PFIM 3.2
Dear R-user,
I'm having some difficulty with working PFIM 3.2, a package for
implementing population PK/PD in R. I wish to evaluate the determinant of
Fisher information matrix each time with successive dose from a pre defined
sequence of doses and want to store those values in a vector. It's
important to note that in my 'stdin.r' file, dose<-c(u) and each time u is
to be
2008 Nov 05
2
Adding another swap
Hi ALL,
I have a harddisk with 3 primary partitions and one extended
partitions. Under extented partions , there are 15 partions.
Whole hard disk has been partitioned in a standard way, (i.e NOT LVM)
It has 2GB ram. swap is also 2GB.
Now I want to extend this swap to 4 GB.
If I use dd coomand and create a file with 2GB, Will I be able to
extend the swap witn swapon commnad?
How can I achive
2010 Jan 12
2
Calculate the percentages of the "numbers" in every column.
Dear friends,
I have a table like this, I have A B C D ... levels, the first column
you see is just the index, and there are different numbers in the
table.
A B C D ...
1 0 2 1 0
2 1 0 2 1
3 2 3 0 0
4 0 0 1 0
5 0 2 3 1
...
I want to calculate the frequencies or the percentages of the numbers
in every column.
How do I get a table like this,
2007 Sep 20
2
acl permissions not staying
Hi guys,
I've got a problem where if I set permissions on a folder(Admin)
"setfacl -R -d -m u::rwx,g::wrx,o::- Admin/" and "setfacl -m o:- Admin"
I get the following.
mail:/data/samba/shared # getfacl Admin/
# file: Admin
# owner: BCP+administrator
# group: samba
user::rwx
user:samba:rwx
group::rwx
group:BCP+admin:r-x
mask::rwx
other::---
default:user::rwx
2009 Feb 27
1
cross tabulation: convert frequencies to percentages
Hello,
might be rather easy for R pros, but I've been searching to the dead
end to ...
twsource.area <- table(twsource, area, useNA="ifany")
gives me a nice cross tabulation of frequencies of two factors, but
now I want to convert to pecentages of those absolute values. In
addition I'd like an extra column and an extra row with absolute sums.
I know, Excel or the
2011 Oct 22
1
virt-install with set vnc password
Hi Guy,
Anyone know how we can set up the vnc password during using virt-install
command ?
# virt-install \
--connect qemu:///system \
--name demo \
--ram 500 \
--disk path=/var/lib/libvirt/images/demo.img,size=5 \
--network network=default,model=virtio \
--vnc \
--cdrom /dev/cdrom
2001 Feb 12
1
logistic regression with percentages
Hello
I've got some data and I want to fit a binomial glm. The problem is that I don't have the number of successes or failures, I have only the percentages. If I want to make all these numbers integers, I have to multiply them for 1000, because there are some low percentages (0.05%). Besides, I don't know if this is correct.
Any help?
Thanks in advance, and sorry for my english
2010 Nov 15
1
Converting numbers to percentages for boxplots
Hi,
I need to convert general numbers to percentages in R to create a boxplot for purposes of comparison.
Can you please tell me how I can do that? My data is attached as a csv file.
Thanks.
Daniel
2010 Oct 27
2
Generate random percentages and placing vectors
Hello everyone,
I have two questions:
1.) I would like to generate random percentages that add up to 100. For
example, if I need 5 percentages, I would obtain something like: 20, 30, 40,
5, 5. Is there some way to do this in R?
2.) I would like to insert vectors of specified length into a larger vector
of specified length randomly, and fill the gaps with zeroes. For example, if
I have 3 vectors
2005 Feb 16
2
Sampling given a table of percentages?
I have a vector V. sum(V) = 100, i.e. it's percentages. length(V) is
large. I wish to generate samples (with replacement is fine),
integers, in the range 1:length(V) who's distribution is driven by the
distribution implied by the percentages in V. V is unsorted, but
that could change. I'd rather not be too specific about the
distribution of V. I can certainly solve the
2008 Sep 17
3
t-test between percentages
Hi all,
though i know this is a simple question, i really hope someone could.
I am just trying to compare percents respectively the difference in
percents by a simple test. t.test usually compares means and is
working like it is supposed to be. Now i wonder how i can use a test
in R to test for significant difference between two percentages.
2010 May 14
2
multhist,labels and percentages
Hi All,
I am in the annoying position of having to present some data to someone who seems to be somewhat less than numerate. I need to label the y-axes of a multhist with the y-axis labeled not as counts but as percentage of a population. Plotting the standard histogram is in a way fine, all I need is to:
-- have a left-handside y-axis labels for pop 1 and a right-handside y-axis labels for pop2
2008 Mar 09
2
format numbers into percentages
Hi,
I am currently using the following to formate numbers into percentages:
x=0.00112
paste(round(x*100,2),"%",sep="")
I am wondering if there is a built in R function that does the same. Does
anyone know?
Thanks,
--
Tom
[[alternative HTML version deleted]]
2008 Mar 13
4
a more elegant way to get percentages?
Hi,
I am trying to get percentages in a more elegant way. I have a data.frame with locations and values (counts) of species at that location. Each location is repeated for each species i have values for and i would like to get percentages of each species at that location. I am not sure if i am clear in my explanations so i will paste my code below:
#####################
> x
locat val
1
2008 May 23
3
Percentages for categorical data by group
I can think of several ways to blunt force hard code what I want but I
imagine there is a command or two that can be easily combined to do this:
I have a data frame with about 23000 observations. There first variable is
the group to which the observation belongs (about 500 different groups). The
second variable is a response for each observation that is a 1,2,3,4 or 5. I
want to be able to