Displaying 9 results from an estimated 9 matches for "test_df".
2017 Nov 05
2
Help in R
R can have a bit of a learning curve... There are several ways to achieve
your goal - depending on what you want:
test_df <- data.frame(Movie = letters, some.value = rnorm(26))
test_df$Movie[1:10]
test_df$Movie[sample(c(1:26), 10)]
test_df[sample(c(1:26), 10), ]
Do read a tutorial or two on R - "Introduction to R" as suggested by David
or something else - so you can explain the code above to yourself....
2017 Nov 05
0
Help in R
Hello,
Also
tail(test_df$Movie, 10)
Hope this helps,
Rui Barradas
Em 05-11-2017 19:18, Ulrik Stervbo escreveu:
> R can have a bit of a learning curve... There are several ways to achieve
> your goal - depending on what you want:
>
> test_df <- data.frame(Movie = letters, some.value = rnorm(26))
>
>...
2017 Aug 26
0
about multi-optimal points
HI lily,
for the colouring of individual points you can set the colour aesthetic.
The ID is numeric so ggplot applies a colour scale. If we cast ID to a
factor we get the appropriate colouring.
test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 =
rnorm(20))
ggplot(data=test_df, aes(x=v1,y=v2, colour = as.factor(ID))) +
geom_point()+ theme_bw()+
xlab('Variable 1')+ ylab('Variable 2')
How to choose a number of samples from the dataset you can use the subset
f...
2010 Jun 28
2
Stacked Histogram, multiple lines for dates of news stories?
...n J. Kiss
test=sample(1:3, 50, replace=TRUE)
test=as.factor(test)
levels(test)=c("Star", "Globe and Mail", "Post")
test2=ISOdatetime(sample(2004:2009, 50, replace=TRUE), sample(1:12,
size=50, replace=TRUE), sample(1:30, 50, replace=TRUE), 0,0,0)
test2=as.Date(test2)
test_df=data.frame(test, test2)
*********************************
Simon J. Kiss, PhD
SSHRC and DAAD Post-Doctoral Fellow
John F. Kennedy Institute of North America Studies
Free University of Berlin
Lansstra?e 7-9
14195 Berlin, Germany
Cell: +49 (0)1525-300-2812,
Web: http://www.jfki.fu-berlin.de/index.htm...
2017 Aug 25
2
about multi-optimal points
Hi R users,
I have some sets of variables and put them into one dataframe, like in the
following. How to choose a specific set of pareto front, such as 10 from
the current datasets (which contains more than 100 sets)? And how to show
the 10 points on one figure with different colors? I can put all the points
on one figure though, and have the code below. I drew two ggplots to show
their
2017 Aug 26
1
about multi-optimal points
...at 12:37 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
wrote:
> HI lily,
>
> for the colouring of individual points you can set the colour aesthetic.
> The ID is numeric so ggplot applies a colour scale. If we cast ID to a
> factor we get the appropriate colouring.
>
> test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 =
> rnorm(20))
>
> ggplot(data=test_df, aes(x=v1,y=v2, colour = as.factor(ID))) +
> geom_point()+ theme_bw()+
> xlab('Variable 1')+ ylab('Variable 2')
>
> How to choose a number of samples from the...
2017 Nov 05
0
Help in R
> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help at r-project.org> wrote:
>
>
> Hey,
>
> I am a beginner in R.
>
> How do I read last 10 values from column- Movie, from a dataset?
Some questions are so simple that they strongly suggest no prior effort at self-leanrning. In such cases the usual recommendation given at Rhelp is that you read an
2017 Nov 05
2
Help in R
Hey,
I am a beginner in R.
How do I read last 10 values from column- Movie, from a dataset?
Pls help.
Sent from my iPhone
2010 Sep 06
2
dataframe row names from list
Hi,
I have a list which looks like this...
> str(y)
List of 10
$ : chr [1:4] "ABCD" "5" "0" "1"
$ : chr [1:4] "DEF" "15" "1" "16"
$ : chr [1:4] "AAA" "2" "17" "8"
$ : chr [1:4] "SSS" "15" "25" "1"
$ : chr [1:4] "III"