Ctrl + Alt + i
marks <- c(6,7,9,6,7)
sex <- c("M","M","F","M","M")
df <- data.frame(marks,sex)
df
FullScreen : Ctrl + Shift + 1
library(readr)
data <- read_csv("C:/R Analysis/Sara_Data Analysis/sara_apa/Participant Report/Working file/Data/AirVisual_Indoor_EMB020_AVG_5min.csv")
## Rows: 2269 Columns: 14
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (5): ID, Machine, Position, Burn.Site, timepoint
## dbl (8): mean_PM1.ug.m3., mean_PM2_5.ug.m3., mean_PM10.ug.m3., mean_Tempera...
## dttm (1): DateTime
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
View(data)
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
names(iris)
## [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species"
ctrl + shift +m
iris %>%
select(
"Species" ,
"Sepal.Length",
"Petal.Width"
) %>%
filter(
Species == "versicolor"
)