Displaying 16 results from an estimated 16 matches similar to: "like SPSS"
2007 Apr 27
5
weight
Hi,
I have the file below called happyguys. It is a subset of data. How do I
apply the weight variable (WTPP) to this file? Can i just multiply each
column (except the first column because it is a record id) by WTPP? If the
answer is yes, how do I multiply one variable name by another?
Thanks,
Nat
PROV REGION GRADE Y_Q10A WTPP
83 48 4 7 2 342233324020
115
2007 Apr 26
4
select if + other questions
Hi,
i am trying to read a .txt file, do a couple of select if statements on my
data, and then finally use the ?table function to get frequency counts on
the data. Specifically, i am looking at answering the following question:
What is the frequency of Grade 7 students in the province of Alberta who
are smokers?
I am having some problems:
1)i cannot get the column names to show up when print
2007 Apr 30
0
thousand separator (was RE: weight)
Thank-you Andy!!!!!! That works great now
Nat
__________________
I've run into this occasionally. My current solution is simply to read
it into Excel, re-format the offending column(s) by unchecking the
"thousand separator" box, and write it back out. Not exactly ideal to
say the least. If anyone can provide a better solution in R, I'm all
ears...
Andy
From: Natalie
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi,
How are you? I have a quick question.... I have code that works perfectly
with R desktop, but does not work with RWeb. Could you please tell me how
to modify the code below so it will work with RWeb?
#Read in txt file
happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1)
#Subset the txt file to only include certain values
test<-subset(happyguys, GRADE == 7
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
Hi,
I got this working. i had to get rid of an underscore in one of my
variable names to work on RWeb.
Thanks for your help though!!
Natalie
__________________
I think you have to be either honest or careful, since the code you
submitted to Rweb is different with your former code! Why the
condition was changed from "test<-subset(X, GRADE == 7 & Y_Q10A < 9)"
to
2003 Dec 14
3
Problem with data conversion
Hi All:
I came across the following problem while working with a dataset, and
wondered if there could be a solution I sought here.
My dataset consists of information on 402 individuals with the followng five
variables (age,sex, status = a binary variable with levels "case" or
"control", mma, dma).
During data check, I found that in the raw data, the data entry
2013 Feb 21
2
ggplot2, geomtile fill assignment
Dear R help,
I have some readings in three dimensions (x, y, z) and an amplitude for
each. I'd like to visualize the data using ggplot, using tile plots, as I
have some additional point data I would like to eventually overlay on the
tile plots.
I would like to subset the data by sections, slices if you will, in the z
dimension, and plot the data for that slice.
I can do all of this, but am
2012 Nov 07
8
Aggregate data frame across columns
Folks,
I have a data frame with columns 200401, 200402, ..., 201207, 201208.
These represent years/months. What would be the best way to sum these columns by year? What about by quarter?
Thanks for your time,
KW
--
[[alternative HTML version deleted]]
2010 Mar 25
8
Mysterious 15 second startup delay running Wine as www-data
I'm using Wine to run a text mode cgi-bin Win32 program on Ubuntu 9.10. If I run it under my regular account, or via
sudo -H -u www-data ./mycgi.exe
it runs instantly (< 1 sec.)
When run as a cgi-bin program (therefore as www-data user), there is a (measured) 15 second delay and then the program runs in 350ms and the data is returned to the client.
Any idea what might be causing this
2011 Sep 13
3
x %>% y as an alternative to which( x > y)
Dear R cognoscenti,
While having NA as a native type is nifty, it is annoying when making binary choices.
Question: Is there anything bad about writing comparison functions that behavior like %in% (which I love) and ignore NAs?
"%>%" <- function(table, x) {
return(which(table > x))
}
"%<%" <- function(table, x) {
return(which(table < x))
}
test <-
2007 Jul 24
7
Obtaining summary of frequencies of value occurrences for a variable in a multivariate dataset.
Hi all,
If the question below as been answered before I
apologize for the posting.
I would like to get the frequencies of occurrence of
all values in a given variable in a multivariate
dataset. In short for each variable (or field) a
summary of values contained with in a value:frequency
pair, there can be many such pairs for a given
variable. I would like to do the same for several such
variables.
2012 Mar 07
4
Subset problem
Good Morning
??? I have a small question regarding the function subset.
I am copying data from one table but I just want to collect data from a
user.
When do I take the view, presents the results I want.
The problem arises when can I make the tab. for RES_ID, introduces me to
zero results do not envision noVIEW
val_user='16'
x.sub <-
2004 Feb 02
3
ordering and plotting question
Hi,
I am trying to plot several rows out of a list of thousands. I have 40
columns, and about 16,000 rows with the following Df structure.
ID X01 X02 X03..X40
AI456 45 64 23...
AI943 14 3 45 ..
AI278 78 12 68..
BW768 -2 -7 34..
...
My question is, I have a list of 100 IDs generated elsewhere
(Df-"Ofinterest"), I would like to plot the 100 IDs from that data
frame over the 40 columns
2003 Oct 20
4
selecting subsets of data from matrix
Probably a stupid question, but I don't seem to be able to find the answer
I'm looking for from any of the R literature. Basically I have a matrix
with several thousand rows and 20 columns(weather stations) of wind
direction data.
I am wanting to extract a matrix which contains data for all columns
conditional on column 20 having a value of _either_ less than 45 or
greater than 315. (ie I
2007 May 03
0
unscrible pls
On 5/2/07, r-help-request@stat.math.ethz.ch <
r-help-request@stat.math.ethz.ch> wrote:
>
> Send R-help mailing list submissions to
> r-help@stat.math.ethz.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://stat.ethz.ch/mailman/listinfo/r-help
> or, via email, send a message with subject or body 'help' to
>
2013 Jan 03
3
Small changes to big objects (1)
Martin Morgan commented in email to me that a change to any slot of an
object that has other, large slot(s) does substantial computation,
presumably from copying the whole object. Is there anything to be done?
There are in fact two possible changes, one automatic but only partial,
the other requiring some action on the programmer's part. Herewith the
first; I'll discuss the second