Displaying 20 results from an estimated 800 matches similar to: "Skipping lines and incomplete rows"
2010 Feb 26
3
Preserving lists in a function
Dear R users,
A co-worker and I are writing a function to facilitate graph plotting in R. The function makes use of a lot of lists in its defaults.
However, we discovered that R does not necessarily preserve the defaults if we were to input them in the form of list() when initializing the function. For example, if you feed the function codes below into R:
myfunction=function(
list1=list
2011 Apr 18
4
altering identity column
Hi there,
I have a huge dataframe containing 70,000 observations.
I have filtered this dataframe (let it's name be "transformed_dataframe") as I wanted to select only those observations which are greater than or equal to 60,001 regarding the very first identity column.
So I have a transformed dataframe now including 10,000 obeservations (from 60,001 - to 70,000) and if you send
2009 Jan 29
1
Multiple tables
Dear list,
I have a set of 100+ variables. I would like to have one by one crosstables for each variable. I started with
table(variable1, variable2)
table(variable1, variable3)
table(variable1, variable4)
...
table(variable2, variable3)
table(variable2, variable4)
...
It seems rather tedious.
Any better ideas around?
Thanks for any help!
Gerit
--
NUR NOCH BIS 31.01.! GMX FreeDSL -
2012 Feb 26
6
Continuous pings going through a full DROP policy
For a same configuration in which the default policy is drop and only
one connection is accepted in rules, continuous pinging to devices
will stop squarely in 4.0.15 as soon as a very basic firewall is
enabled whereas in 4.4.26.1, pinging will still continue after the
firewall is enabled.
All tests are done with proper reboot of the unit3 where the firewall
is applied:
unit1 <---> eth4
2007 Oct 18
4
Samba 3 + LDAP with multiple ou's
Hello, all.
I was wondering if anyone could help me with this configuration:
I had a LDAP tree with this structure:
dc=base
+ ou=unit1
+ ou=People
+ ou=Groups
+ ou=Computers
+ ou=unit2
+ ou=People
+ ou=Groups
+ ou=Computers
+ ou=unit3
+ ou=People
+ ou=Groups
+ ou=Computers
...
And I need people from unit1 logging on unit2, unit3, etc.
First thing is to put all users on one
2012 Jan 02
4
Create variable with AND IF statement
Hello,
I'm using SPSS at work but really would like to switch to R. Right now I'm
trying to learn R in reproducing calculations I did with SPSS but am stuck
with something that is quite simple and comprehensible in SPSS-Syntax:
IF (variable1.fac = 0 AND variable2.num = 0) variable3=1.
IF (variable1.fac = 0 AND variable2.num >= 1) variable3=2.
IF (variable1.fac = 1 AND variable2.num =
2011 Apr 07
3
Correlation Matrix
Listers,
I have a question regarding correlation matrices. It is fairly straight
forward to build a correlation matrix of an entire data frame. I simply use
the command cor(MyDataFrame). However, what I would like to do is construct
a smaller correlation matrix using just three of the variable out of my data
set.
When I run this:
cor(MyDataFrame$variable1,
2006 Sep 24
2
printing a variable name in a for loop
Hello,
How do you print a variable name in a for loop?
I'm trying to construct a csv file that looks like this:
Hello, variable1, value_of_variable1, World,
Hello, variable2, value_of_variable2, World,
Hello, variable3, value_of_variable3, World,
Using this:
for (variable in list(variable1, variable2, variable3)){
cat("Hello,", ???variable???, variable, ",
2009 Dec 04
2
Multiple Channel Variables with AMI Originate
Hi guys I seem to be having a problem, I don't know if it's a bug or whether
I'm just doing it incorrectly.
I want to set about 3 channel variables when I originate a call via AMI.
All the documentation I have found says to do it like this:
Variable: variable1=value|variable2=value|variable3=value
However when I do this it runs them all together and I end up with:
2010 Sep 01
8
how to replace NA with a specific score that is dependant on another indicator variable
Hi everyone,
I’m looking for a clever bit of code to replace NA’s with a specific score
depending on an indicator variable.
I can see how to do it using lots of if statements but I’m sure there most
be a neater, better way of doing it.
Any ideas at all will be much appreciated, I’m dreading coding up all those
if statements!!!!!
My problem is as follows:
I have a data set with
2012 Dec 06
1
clustering of binary data
Good morning,
I am analyzing a dataset composed by 364 subjects and 13 binary variables
(0,1 = absence,presence).
I am testing possible association (co-presence) of my variables. To do
this, I was trying with cluster analysis.
My main interest is to check for the significance of the obtained clusters.
First, I tried with the pvclust() function, by using method.hclust="ward"
and
2009 Dec 01
3
Using two (...) in a function
Hello R-Helpers,
I am not sure if it is a very simple question but I would like to use two
(...) in a function, for example,
this is a script where I would like to input the variable names (in one of
the (...)) and the variances associated to those variables which are not
calculated in the script because there is a specific software to calculate
it (the other (...))
data <- function
2008 May 05
1
Is there any way to find out how a certain functions are implemented in R?
Hello
I wrote a bootstrap program in C language that is called and run by R.
When I tried it, it is slow
and I'm trying to write and run the whole thing in C. But I cannot use
handy functions in R and
need to figure out how to write those functions by myself. Is there
any way that I can get the
actual codes that implement functions in R so that I can translate
them into other languages? For
2011 Mar 28
2
deleting the first two characters in each row of a factorized column
Hello,
I'd like to ask you something again.
I have a database and it has a column which looks like this one here:
small_factor <- factor(c("d_variable1","d_variable2","d_variable3"))
small_factor
Now the thing is that I would like to convert each element of this factorized column. Basically I want to rewrite the words in it without the first two characters:
2006 Apr 11
2
variable-substitution / command-substitution
Hello,
I have about 2000 data files which I want to analyse.
The file names are all very similar =>
p"variable1"_t"variable2"_c"variable3".txt
There aren?t so much different variables (about 70) , just different
combinations of them.
To allow an easy way of handling those data files I was wondering
whether R is able to do variable-substitution
2012 Apr 02
5
Usando R CMD BATCH no me funciona savePlot()
Buenas tardes:
Hasta ahora he utilizado savePlot() en ejecuciones de R en Windows, donde lo
que hago es grabar la ventana de gráficos mediante dev.cur() en formato pdf.
Concretamente éste es el código:
> savePlot(filename = ruta_pdf, type = "pdf", device = dev.cur(),
restoreConsole = TRUE)
Este comando está dentro de un bucle de "n" ejecuciones, por lo que guardo
un pdf por
2012 Jan 26
2
R extracting regression coefficients from multiple regressions using lapply command
Hi, I have a question about running multiple in regressions in R and then
storing the coefficients. I have a large dataset with several variables,
one of which is a state variable, coded 1-50 for each state. I'd like to
run a regression of 28 select variables on the remaining 27 variables of
the dataset (there are 55 variables total), and specific for each state, ie
run a regression of
2006 May 17
9
Render No Layout?
Hi guys,
Am having a problem.
I have this def in my index controller that works like this:
def do_something
$a = variable1
$b = variable2
$c = variable3
$d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'',
''#{$a} - #{$b}''); \n </script>"
$trigger = "1"
render(:partial =>
2012 Jan 22
1
how to load R data file into a structure?
Hi all,
I have already some important variables in the current R session;
and I wanted to load some rData file which was saved during the last R
session using "save.image"...
But how do I avoid the newly loaded data/variables messing with my existing
data/variables?
In Matlab, I can do:
mynewdata=load("imagefromlastRsession.rData")
and then I can access the variables
2007 May 08
13
Override to unspecify
In the normal override method, you can change the value of a parameter, but
can you unset a parameter?
file { "/etc/somefile":
mode => 644,
owner => "dude"
}
File ["/etc/somefile"] { mode => unset } ??