Displaying 20 results from an estimated 4000 matches similar to: "Print density of 600 dpi for a plot"
2006 Jun 19
2
saving rounded numbers as a new variable in a dataframe
A basic question, but one that eludes me. I have created a new variable
$numurder, which I have rounded off. I want to save the rounded off version
of this variable to an existing datafile called 'ngri.csv' .
numurder <-c((murder*no.of.cases)/100)
[[1]]
[1] 48.952 112.073 182.160 974.610 122.140 663.432 150.856 18.988
137.925 198.045 68.930 203.148 30.056 100.955
2007 Dec 16
4
improving a bar graph
Hello,
Below is the code for a basic bar graph. I was seeking advice
regarding the following:
(a) For each time period there are values from 16 people. How I can
change the colour value so that each person has a different colour,
which recurs across each of the three graphs/tie epriods?
(b) I have seen much more sophisticated examples using lattice (e.g
each person has a separate
2008 Apr 26
6
resolution (dpi) problem
I am using R 2.4.1 with Windows XP.
I use the plot command in a fairly simple script and I use the right mouse
click on the plot and save as a postscript file. I used the resultant file
in a paper which was submitted electronically. However, I get the following
response from the journal:
Your manuscript has been unsubmitted because you failed to meet the
submission guidelines as indicated
2023 Jul 26
1
Downloading a directory of text files into R
?s 23:06 de 25/07/2023, Bob Green escreveu:
> Hello,
>
> I am seeking advice as to how I can download the 833 files from this
> site:"http://home.brisnet.org.au/~bgreen/Data/"
>
> I want to be able to download them to perform a textual analysis.
>
> If the 833 files, which are in a Directory with two subfolders were on
> my computer I could read them
2005 Dec 20
1
Wilcoxon Mann-Whitney Rank Sum Test in R
An earlier post had posed the question: "Does anybody know what is relation
between 'T' value calculated by 'wilcox_test' function (coin package) and
more common 'W' value?"
I found the question interesting and ran the commands in R and SPSS. The W
reported by R did not seem to correspond to either Mann-Whitney U,
Wilcoxon W or the Z which I have more
2006 Aug 06
1
ordering by a datframe date
I am hoping for some advice regarding ordering a dataframe, by date.
The dataframe is in the format below.
$story $datepub
story10 1 April 1999
story 90 1 March 2002
story 37 10 July 1985
I want to reorder the entire dataframe so the earliest story is first, and
save the reordered dataframe. The command, 'class' (datepub) reveals
$datepub is a factor variable.
I tried
2006 Aug 31
1
grep question
I am hoping for some advice as to how to modify the following syntax, so
that instead of saving all records which refer to Farrah, I select all
instances that do not include Farrah, or the word Coolum.
test <- read.csv("c:\\newdat.csv", as.is=TRUE, header=T)
sure <- test[grep('Farrah', paste(test$V3.HD, test$V3.LP, test$V3.TD)),]
2007 Jan 09
1
logistic regression in R - changing defaults
Hello,
I was hoping for some advice in changing 2 defaults in a logistic regression.
1. It looks like the first category is the reference category? In the
following syntax 'where' has 4 levels, how can I make the reference
category the third category?
model<- glm(cbind(sucesses, failures) ~ where + who + firstep + dxnarrow +
age + sex + medyear, family = binomial, data=life.use)
2007 Nov 29
1
Prorating scale items
Hello,
I am hoping for some advice as to how I can prorate a number of scale
items that comprise a score. At least 69 of 159 cases have at least 1
value missing (65 cases have H7 missing). The maximum number of missing is
5.
I want to compute a total score, a score for the H items, the R items and
C items.
H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, C1, C2, C3, C4, C5, R1, R2, R3,
R4, R5
I am
2009 Apr 04
1
comparing columns in a dataframe
hello,
I am hoping for some advice regarding comparing variables from 3
versions of a spreadsheet which have been combined into a single
dataframe. The aim is to identify which rows have been changed.
The dataframe contains 177 rows of data (each cell contains text).
'intersect' produced a file with 35 rows, 'union' a file with 303
rows and 'setdiff' a file with 130
2006 Sep 10
2
formatting data to be analysed using multinomial logistic regression (nnet)
I am looking into using the multinomial logistic regression option in the
nnet library and have two questions about formatting the data.
1. Can data be analysed in the following format or does it need to be
transformed into count data, such as the housing data in MASS?
Id Crime paranoia hallucinate toc disorg crimhist age
1 2 1 0 1 0 1 25
2 2 0 1 1 1 1 37
3 1 1 0 1 1 0 42
4 3 0
2011 Jan 14
1
CSV value not being read as it appears
I have a frustrating issue which I am hoping someone may have a suggestion
about.
I am running XP and R 2.12.0 and saved an EXCEL file that I was sent as a
csv file.
The initial code I ran follows.
dec <- read.csv("g://FMH/FO30122010.csv",header=T)
dec.open <- subset (dec, Status == "Open")
table(dec.open$AMHS)
I was checking the output and noticed a difference
2006 Sep 28
2
recode problem - unexplained values
I am hoping for some advice regarding the difficulties I have been having
recoding variables which are contained in a csv file. Table 1 (below)
shows there are two types of blanks - as reported in the first two
columns. I am using windows XP & the latets version of R.
When blanks cells are replaced with a value of n using syntax: > affect
[affect==""] <- "n"
there
2006 Aug 18
1
using R to perform a word count - syntax refinement and incorrect number of dimensions error
Hello,
I am hoping someone can advise me regarding an error message I received and
if needed, refine some syntax. I am wanting to calculate the word count for
each row of a dataframe. Below, I have 3 variables ("V3.PD", "V3.HD",
"V3.LP") which I want to obtain a word count for, by each row which
contains these variables.
Any assistance is much appreciated,
Bob
2008 Sep 20
2
removing a word, the following space and the next word
>Hello,
I am hoping for advice as to how I could remove all words immediately
following the words 'Mr' or 'Mr.' in a csv file. For example, the
following phrases are included in lines of text (along with other Mr)
that could be anywhere in the file: "Mr Jones ate lunch" and "Mr
Smith was tied".
I want to remove the words Jones and Smith (etc) leaving
2006 Nov 19
2
improving barplot output
Hello,
I was hoping for some advice on improving a barplot. Below is the syntax I
have used. I wanted to do two things differently How would I alter the
syntax so that (a) the y-axis finishes at 25 and not 20, and (b) 'past
ideation' and 'pastwk ideation' are coloured blue and 'past attempt' &
'past wk attempt' are coloured red ?
I was also curious as to
2007 Mar 12
2
altering prefix to multiple variables in different locations within a command file
Hello,
I am seeking advice regarding how I might add the prefix " kc$ " to
variables in a series of commands. The complication is that there is
a large number of variables with different commands. Examples of the
variables in typical commands follow.
It is simple to use search & replace for common variables such as
"group" but I would appreciate advice about whether
2006 Apr 22
1
Missing values detected when there are no missing values
I am hoping for some advice on the following matters.
I have a csv data file with 153 variables x 92 rows. To determine what
the variables looked like I ran the summary command. One variable had a
large number of missing values 54/92. For some reason, all subsequent 74
variables are reported as having 92 NA values, irrespective of whether the
original csv variable was complete or not.
2008 Mar 05
2
Updating packages from one hard-drive to another, after upgrade of R
The CPU on my computer 'died' and I have had to purchase a new
computer. I have just installed v 2.6.2. My previous computer had v
2.5.1 and a large number of files in the library folder. These files
have been copied to a partition on my new hard drive, along with the
old R installation.
Can I just copy all the folders/files in the old library to the new
v2.6.2 library or do the
2006 Mar 31
3
can R be run without installation on to a computer
I have been trying for a year to get approval to install R on a work
computer and am not optimistic of a positive reply in the near future. I
was considering whether an option might be to run R from a CD/USB stick. I
looked through the installation manual but could see no mention of this option.
If it is possible to run R from a CD or a USB stick without installation to
a computer, I would